Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'js/editor.js')
-rw-r--r--js/editor.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/editor.js b/js/editor.js
index b5090eda4..75ef4b4f2 100644
--- a/js/editor.js
+++ b/js/editor.js
@@ -1,3 +1,3 @@
/*! For license information please see editor.js.LICENSE.txt */
-(self.webpackChunk_nextcloud_text=self.webpackChunk_nextcloud_text||[]).push([["editor"],{31728:(t,e,n)=>{"use strict";n.d(e,{BG:()=>h,Cy:()=>A,FQ:()=>a,HB:()=>i,IT:()=>d,QT:()=>m,Uw:()=>o,Zf:()=>C,a_:()=>v,cY:()=>l,fB:()=>p,q$:()=>s,rz:()=>f,vo:()=>c,wU:()=>u,ww:()=>g});var r=n(52029),o=Symbol("tiptap:editor"),i=Symbol("editor:file"),a=Symbol("attachment:resolver"),s=Symbol("editor:is-mobile"),l=Symbol("editor:is-public"),c=Symbol("editor:is-rich-editor"),d=Symbol("editor:is-rich-woskapace"),u=Symbol("sync:service"),A={inject:{$editor:{from:o,default:null}}},h={inject:{$syncService:{from:u,default:null}}},p={inject:{$isPublic:{from:l,default:!1}}},f={inject:{$isRichWorkspace:{from:d,default:!1}}},m={inject:{$isRichEditor:{from:c,default:!1}}},g={inject:{$isMobile:{from:s,default:!1}}},v={inject:{$file:{from:i,default:function(){return{fileId:0,relativePath:null,document:null}}}}},C={inject:{$attachmentResolver:{from:a,default:{resolve:function(t){return r.k.warn("No attachment resolver provided. Some attachment sources cannot be resolved."),[t]}}}}}},32318:(t,e,n)=>{"use strict";n.d(e,{Ah:()=>Bt,BB:()=>ot,BF:()=>it,Bz:()=>yt,Cj:()=>mt,DB:()=>dt,Ee:()=>wt,F5:()=>It,Fv:()=>gt,HG:()=>rt,Ho:()=>Et,IY:()=>Ot,J4:()=>pt,Jw:()=>Mt,Lo:()=>bt,Lz:()=>ct,Nk:()=>et,Pn:()=>X,UX:()=>Ct,VK:()=>lt,WP:()=>Lt,WW:()=>xt,XD:()=>ut,Ze:()=>ht,_2:()=>Tt,b0:()=>nt,fy:()=>At,gb:()=>J,gq:()=>Nt,gt:()=>st,iA:()=>St,kI:()=>_t,mH:()=>vt,mV:()=>ft,pR:()=>Pt,ph:()=>Zt,pn:()=>Dt,rU:()=>kt,tk:()=>at,uU:()=>Rt,x8:()=>tt,xP:()=>jt});var r=n(367),o=n(98293),i=n(38384),a=n(49489),s=n(46327),l=n(11341),c=n(70178),d=n(6915),u=n(33395),A=n(44580),h=n(38143),p=n(9284),f=n(68191),m=n(43270),g=n(95062),v=n(43468),C=n(35050),b=n(66911),y=n(24360),x=n(2874),w=n(88836),k=n(10637),_=n(83061),j=n(48773),P=n(31116),E=n(75548),M=n(62522),S=n(48237),B=n(4559),O=n(46602),I=n(31438),D=n(65012),T=n(62974),L=n(51249),N=n(14588),R=n(77697),Z=n(89974),G=n(84855),$=n(37193),F=n(23664),U=n(55782),z=n(99272),H=n(53983),W=n(44193),q=n(96772);function Y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function V(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Y(Object(n),!0).forEach((function(e){K(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function K(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Q=function(t){return{functional:!0,render:function(e,n){var r=n.data,o=n.props;return e(t,{data:r,key:r.key,staticClass:r.staticClass,props:V({size:20},o)})}}},J={functional:!0,render:function(t,e){var n=e.data,r=e.props;return t(I.Z,{data:n,staticClass:"animation-rotate",props:V({size:20},r)})}},X=Q(r.Z),tt=Q(o.default),et=(Q(i.default),Q(a.Z)),nt=Q(s.default),rt=Q(l.Z),ot=Q(c.Z),it=Q(d.default),at=Q(u.Z),st=Q(A.default),lt=Q(h.Z),ct=Q(p.Z),dt=Q(f.Z),ut=Q(m.Z),At=Q(g.Z),ht=Q(v.Z),pt=Q(C.Z),ft=Q(b.Z),mt=Q(y.Z),gt=Q(x.Z),vt=Q(w.Z),Ct=Q(k.Z),bt=Q(_.Z),yt=Q(j.Z),xt=Q(P.default),wt=Q(E.Z),kt=Q(M.Z),_t=Q(S.Z),jt=Q(B.Z),Pt=Q(O.Z),Et=(Q(D.Z),Q(T.default)),Mt=Q(L.Z),St=Q(N.Z),Bt=Q(R.Z),Ot=Q(Z.Z),It=Q(G.Z),Dt=Q($.Z),Tt=Q(F.Z),Lt=(Q(U.Z),Q(z.Z)),Nt=Q(H.Z),Rt=Q(W.default),Zt=Q(q.Z)},31049:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=n(47191).Z.extend({toMarkdown:function(t,e,n,r){for(var o=r+1;o<n.childCount;o++){var i;if(n.child(o).type!==e.type)return void(null!==(i=n.child(o).text)&&void 0!==i&&i.startsWith("\n")?t.write(" "):t.write(" \n"))}}})},90488:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=n(19958).vc.create({name:"keep-syntax",parseHTML:function(){return[{tag:"span.keep-md"}]},renderHTML:function(){return["span",{class:"keep-md"},0]},toMarkdown:{open:"",close:"",mixable:!0,escape:!1,expelEnclosingWhitespace:!0},onUpdate:function(){var t=this,e=this.editor.state.tr;this.editor.state.doc.descendants((function(n,r,o,i){-1!==n.marks.findIndex((function(e){return e.type.name===t.name}))&&("text"===n.type.name&&1===n.text.length||e.removeMark(r,r+n.nodeSize,t.type))})),e.docChanged&&(e.setMeta("addToHistory",!1),e.setMeta("preventUpdate",!0),this.editor.view.dispatch(e))}})},73073:(t,e,n)=>{"use strict";n.d(e,{Z:()=>p,g:()=>u});var r=n(19958),o=n(55963);function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d=r.hj.create({name:"markdown",extendMarkSchema:function(t){var e={name:t.name,options:t.options,storage:t.storage};return{toMarkdown:(0,r.Nl)(t,"toMarkdown",e)}},extendNodeSchema:function(t){var e={name:t.name,options:t.options,storage:t.storage};return{toMarkdown:(0,r.Nl)(t,"toMarkdown",e)}}}),u=function(t){var e=t.nodes,n=t.marks,r=h(o.Dm.nodes),i=h(o.Dm.marks);return{serializer:new o.nZ(l(l({},r),A(e)),l(l({},i),A(n))),serialize:function(t,e){return this.serializer.serialize(t,l(l({},e),{},{tightLists:!0}))}}},A=function(t){return Object.entries(t).map((function(t){var e=i(t,2);return[e[0],e[1].spec.toMarkdown]})).filter((function(t){return i(t,2)[1]})).reduce((function(t,e){var n=i(e,2),r=n[0],o=n[1];return l(l({},t),{},c({},r,o))}),{})},h=function(t){var e=function(t){return t.replace(/_(\w)/g,(function(t,e){return e.toUpperCase()}))};return Object.fromEntries(Object.entries(t).map((function(t){var n=i(t,2),r=n[0],o=n[1];return[e(r),o]})))};const p=d},92223:(t,e,n)=>{"use strict";n.d(e,{Z:()=>k});var r=n(49602),o=n(15961),i=n(7049),a=n(45994);const s={name:"Mention",components:{NcUserBubble:o.uq,NodeViewWrapper:i.T5},props:{updateAttributes:{type:Function,required:!0},node:{type:Object,required:!0}},data:function(){return{username:this.node.attrs.label}},computed:{isCurrentUser:function(){var t;return this.node.attrs.id===(null===(t=(0,a.ts)())||void 0===t?void 0:t.uid)}}};var l=n(93379),c=n.n(l),d=n(7795),u=n.n(d),A=n(90569),h=n.n(A),p=n(3565),f=n.n(p),m=n(19216),g=n.n(m),v=n(44589),C=n.n(v),b=n(35460),y={};y.styleTagTransform=C(),y.setAttributes=f(),y.insert=h().bind(null,"head"),y.domAPI=u(),y.insertStyleElement=g();c()(b.Z,y);b.Z&&b.Z.locals&&b.Z.locals;const x=(0,n(51900).Z)(s,(function(){var t=this,e=t._self._c;return e("NodeViewWrapper",{staticClass:"mention",attrs:{as:"span",contenteditable:"false"}},[e("NcUserBubble",{staticClass:"mention-user-bubble",attrs:{user:t.node.attrs.id,"display-name":t.username,primary:t.isCurrentUser}},[t._v("\n\t\t@"+t._s(t.username)+"\n\t")])],1)}),[],!1,null,"297bb5fa",null).exports;var w=n(19958);const k=r.ZP.extend({parseHTML:function(){return[{tag:'span[data-type="user"]',getAttrs:function(t){return{id:t.getAttribute("data-id"),label:t.innerText||t.textContent||t.getAttribute("data-label")}},priority:100}]},renderHTML:function(t){var e=t.node,n=t.HTMLAttributes;return["span",(0,w.P1)({"data-type":"user"},this.options.HTMLAttributes,n),this.options.renderLabel({options:this.options,node:e})]},addNodeView:function(){return(0,i.uf)(x)},toMarkdown:function(t,e){t.write(" "),t.write("@[".concat(e.attrs.label,"](mention://user/").concat(e.attrs.id,")")),t.write(" ")}})},81401:(e,n,r)=>{"use strict";r.d(n,{Z:()=>Te});var o=r(19958),i=r(56856);const a=r(7082).ZP.extend({parseHTML:function(){return this.parent().map((function(t){return Object.assign(t,{preserveWhitespace:!0})}))},addInputRules:function(){return[(t=/^\s*([-+*])\s([^\s[]+)$/,e=this.type,new o.VK({find:t,handler:function(r){var i=r.state,a=r.range,s=r.match;(0,o.S0)({find:t,type:e,getAttributes:n}).handler({state:i,range:a,match:s}),s.length>=3&&i.tr.insertText(s[2])}}))];var t,e,n}});var s=r(7049),l=r(30744),c=r(32318),d={info:c.kI,success:c.Ho,error:c.b0,warn:c.uU};const u={name:"Callout",components:{NodeViewWrapper:s.T5,NodeViewContent:s.ms},props:{node:{type:Object,required:!0}},computed:{icon:function(){return d[this.type]||c.kI},type:function(){var t,e;return(null===(t=this.node)||void 0===t||null===(e=t.attrs)||void 0===e?void 0:e.type)||"info"}}};var A=r(93379),h=r.n(A),p=r(7795),f=r.n(p),m=r(90569),g=r.n(m),v=r(3565),C=r.n(v),b=r(19216),y=r.n(b),x=r(44589),w=r.n(x),k=r(73819),_={};_.styleTagTransform=w(),_.setAttributes=C(),_.insert=g().bind(null,"head"),_.domAPI=f(),_.insertStyleElement=y();h()(k.Z,_);k.Z&&k.Z.locals&&k.Z.locals;var j=r(51900);const P=(0,j.Z)(u,(function(){var t=this,e=t._self._c;return e("NodeViewWrapper",{staticClass:"callout",class:"callout--".concat(t.type),attrs:{"data-text-el":"callout",as:"div"}},[e(t.icon,{tag:"component",staticClass:"callout__icon"}),t._v(" "),e("NodeViewContent",{staticClass:"callout__content"})],1)}),[],!1,null,"6b292428",null).exports;function E(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function M(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?E(Object(n),!0).forEach((function(e){S(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function S(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const B=o.NB.create({name:"callout",content:"paragraph+",group:"block",defining:!0,addOptions:function(){return{types:l.F,HTMLAttributes:{class:"callout"}}},addAttributes:function(){return{type:{default:"info",rendered:!1,parseHTML:function(t){return t.getAttribute("data-callout")||l.F.find((function(e){return t.classList.contains(e)}))||t.classList.contains("warning")&&"warn"},renderHTML:function(t){return{"data-callout":t.type,class:"callout-".concat(t.type)}}}}},parseHTML:function(){return[{tag:"div.callout"},{tag:"p.callout",priority:1001}]},renderHTML:function(t){var e=t.node,n=t.HTMLAttributes,r=this.options.HTMLAttributes.class,i=M(M({},this.options.HTMLAttributes),{},{"data-callout":e.attrs.type,class:"".concat(r," ").concat(r,"-").concat(e.attrs.type)});return["div",(0,o.P1)(i,n),0]},toMarkdown:function(t,e){t.write("::: "+(e.attrs.type||"info")+"\n"),t.renderContent(e),t.ensureNewLine(),t.write(":::"),t.closeBlock(e)},addNodeView:function(){return(0,s.uf)(P)},addCommands:function(){var t=this;return{setCallout:function(e){return function(n){return n.commands.wrapIn(t.name,e)}},toggleCallout:function(e){return function(n){var r=n.commands,i=n.state;return(0,o.Ig)(i,t.name)?(0,o.Ig)(i,t.name,e)?r.unsetCallout():r.updateAttributes(t.name,e):r.setCallout(e)}},unsetCallout:function(){return function(e){return e.commands.lift(t.name)}}}}});var O=r(85693),I=r(60054),D=r(9889),T=r(55963);const L=D.ZP.extend({parseHTML:function(){return[{tag:"pre",preserveWhitespace:"full",getContent:function(t,e){return e.nodes.codeBlock.create(null,[e.text(t.textContent.replace(/\n$/,""))])}}]},toMarkdown:function(t,e,n,r){return e.attrs.params=e.attrs.language,T.Dm.nodes.code_block(t,e,n,r)}});var N=r(8481),R=r(25277);const Z=D.ZP.extend({name:"frontMatter",draggable:!1,renderHTML:function(e){var n=e.node,r=e.HTMLAttributes;return this.parent({node:n,HTMLAttributes:(0,o.P1)(r,{"data-title":t("text","Front matter"),class:"frontmatter"})})},parseHTML:function(){return[{tag:"pre#frontmatter",preserveWhitespace:"full",priority:9001,attrs:{language:"yaml"}}]},toMarkdown:function(t,e){if(!t.out.match(/^\s*/))throw Error("FrontMatter must be the first node of the document!");var n=e.textContent,r=n.match(/-{3,}/gm),o="-".repeat(r?r.sort().slice(-1)[0].length+1:3);t.write(""),t.out="",t.write("".concat(o,"\n")),t.text(n,!1),t.ensureNewLine(),t.write(o),t.closeBlock(e)},addInputRules:function(){var t=this;return[{find:/^---$/g,handler:function(e){var n=e.state,r=e.range,o=e.chain;return 1===r.from&&(n.doc.resolve(1).parent.type.name!==t.name&&(o().deleteRange(r).insertContentAt(0,{type:t.name}),!0))}}]},addCommands:function(){return{}},addPasteRules:function(){return[]},addProseMirrorPlugins:function(){return[]}});var G=r(69457),$=r(33696),F=r(20296),U=r.n(F);r(37043);const z={name:"ParagraphView",components:{NodeViewWrapper:s.T5,NodeViewContent:s.ms,ReferenceList:$.vZ},props:s.Un,data:function(){return{text:null}},watch:{node:{handler:function(t){null!=t&&t.textContent?this.debouncedUpdateText(t):this.text=""}}},beforeCreate:function(){var t=this;this.debouncedUpdateText=U()((function(e){var n;t.text=t.getTextReference(null===(n=t.node)||void 0===n?void 0:n.textContent)}),500)},created:function(){var t;this.text=this.getTextReference(null===(t=this.node)||void 0===t?void 0:t.textContent)},beforeUnmount:function(){var t;null===(t=this.debouncedUpdateText)||void 0===t||t.cancel()},methods:{getTextReference:function(t){return new RegExp(/(^)(https?:\/\/)?((?:[-A-Z0-9+_]+\.)+[-A-Z]+(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)($)/gi).test(t)?t:null}}};var H=r(87591),W={};W.styleTagTransform=w(),W.setAttributes=C(),W.insert=g().bind(null,"head"),W.domAPI=f(),W.insertStyleElement=y();h()(H.Z,W);H.Z&&H.Z.locals&&H.Z.locals;const q=(0,j.Z)(z,(function(){var t=this,e=t._self._c;return e("NodeViewWrapper",{staticClass:"vue-component",attrs:{as:"p"}},[e("NodeViewContent",{staticClass:"paragraph-content"}),t._v(" "),t.text?e("ReferenceList",{attrs:{text:t.text,limit:1,contenteditable:"false"}}):t._e()],1)}),[],!1,null,"7a1db318",null).exports;const Y=G.Z.extend({addNodeView:function(){return(0,s.uf)(q)},parseHTML:function(){return this.parent().map((function(t){return Object.assign(t,{preserveWhitespace:"full"})}))}});var V=r(31049),K=r(41769),Q=r(25030),J=r(63811),X=r.n(J),tt=r(28721);function et(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function nt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?et(Object(n),!0).forEach((function(e){rt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):et(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function rt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ot=function(t){return Q.Z.dispatch("setHeadings",t)},it=function(t){var e=new Map,n=[],r=t.state.tr;t.state.doc.descendants((function(t,o){if("heading"===t.type.name){var i,a=t.textContent,s=function(t){var n=X()(t);if(e.has(n)){var r=e.get(n);return e.set(n,r+1),"".concat(n,"--").concat(r)}return e.set(n,1),n}(a),l=null!==(i=t.attrs.uuid)&&void 0!==i?i:(0,tt.Z)();if(t.attrs.id!==s||!t.attrs.uuid){var c=nt(nt({},t.attrs),{},{uuid:l,id:s});r.setNodeMarkup(o,void 0,c)}n.push(Object.freeze({level:t.attrs.level,position:o,text:a,id:s,uuid:l}))}})),r.setMeta("addToHistory",!1),r.setMeta("preventUpdate",!0),t.view.dispatch(r),ot(n)},at=r(20144),st=r(31728);const lt=at.default.extend({name:"HeadingView",components:{NodeViewWrapper:s.T5,NodeViewContent:s.ms},mixins:[st.Cy],props:{node:{type:Object,required:!0},extension:{type:Object,required:!0}},data:function(){return{content:null}},computed:{href:function(){return"#".concat(this.node.attrs.id)},domElement:function(){var t=this.extension.options.levels.includes(this.node.attrs.level)?this.node.attrs.level:this.extension.options.levels[0];return"h".concat(t)},linkSymbol:function(){return this.extension.options.linkSymbol},t:function(){return window.t}},methods:{click:function(){this.$refs.container.$el.scrollIntoView(),window.location.hash=this.href}}});var ct=r(32815),dt={};dt.styleTagTransform=w(),dt.setAttributes=C(),dt.insert=g().bind(null,"head"),dt.domAPI=f(),dt.insertStyleElement=y();h()(ct.Z,dt);ct.Z&&ct.Z.locals&&ct.Z.locals;const ut=(0,j.Z)(lt,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("NodeViewWrapper",{ref:"container",attrs:{id:t.node.attrs.id,as:t.domElement}},[e("a",{staticClass:"heading-anchor",attrs:{"aria-hidden":"true",href:t.href,title:t.t("text","Link to this section"),contenteditable:!1},on:{click:function(e){return e.stopPropagation(),t.click.apply(null,arguments)}}},[t._v(t._s(t.linkSymbol))]),t._v(" "),e("NodeViewContent",{attrs:{as:"span"}})],1)}),[],!1,null,null,null).exports;function At(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ht(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?At(Object(n),!0).forEach((function(e){pt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):At(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function pt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const ft=K.Z.extend({addAttributes:function(){return ht(ht({},this.parent()),{},{id:{default:void 0,rendered:!0},uuid:{default:void 0,rendered:!1}})},addOptions:function(){var t;return ht(ht({},null===(t=this.parent)||void 0===t?void 0:t.call(this)),{},{linkSymbol:"#"})},addKeyboardShortcuts:function(){var t=this;return this.options.levels.reduce((function(e,n){return ht(ht({},e),{},pt({},"Mod-Shift-".concat(n),(function(){return t.editor.commands.toggleHeading({level:n})})))}),{})},addNodeView:function(){var t=this;return(0,s.uf)(ut,{update:function(e){var n=e.oldNode,r=e.newNode,o=e.updateProps;return r.type.name===t.name&&(r.attrs===n.attrs&&(o(),!0))}})},onDestroy:function(){ot([]),this.parent&&this.parent()},onCreate:function(){it(this.editor),this.parent&&this.parent()},onUpdate:U()((function(t){var e=t.editor;it(e)}),900)});var mt=r(6829),gt=r(92943),vt=r(2376),Ct=r(26937),bt=r(2649),yt=r.n(bt),xt=r(15961),wt=r(79753),kt=r(13815),_t=r(52029),jt=r(74411);function Pt(t){return Pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pt(t)}function Et(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Mt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mt(t,e)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function St(){St=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof u?e:u,i=Object.create(o.prototype),a=new w(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return _()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),i}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var d={};function u(){}function A(){}function h(){}var p={};s(p,o,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(k([])));m&&m!==e&&n.call(m,o)&&(p=m);var g=h.prototype=u.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,a,s){var l=c(t[o],t,i);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==Pt(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){d.value=t,a(d)}),(function(t){return r("throw",t,a,s)}))}s(l.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(y,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:_}}function _(){return{value:void 0,done:!0}}return A.prototype=h,s(g,"constructor",h),s(h,"constructor",A),A.displayName=s(h,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===A||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,s(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},v(C.prototype),s(C.prototype,i,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(g),s(g,a,"Generator"),s(g,o,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=k,w.prototype={constructor:w,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function Bt(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function Ot(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Bt(i,r,o,a,s,"next",t)}function s(t){Bt(i,r,o,a,s,"throw",t)}a(void 0)}))}}function It(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Dt(t,e){if(e&&("object"===Pt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Tt(t){var e="function"==typeof Map?new Map:void 0;return Tt=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return Lt(t,arguments,Zt(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Rt(r,t)},Tt(t)}function Lt(t,e,n){return Lt=Nt()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&Rt(o,n.prototype),o},Lt.apply(null,arguments)}function Nt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function Rt(t,e){return Rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Rt(t,e)}function Zt(t){return Zt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Zt(t)}var Gt=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Rt(t,e)}(l,e);var n,r,o,i,a,s=(n=l,r=Nt(),function(){var t,e=Zt(n);if(r){var o=Zt(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return Dt(this,t)});function l(e,n){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(r=s.call(this,(null==e?void 0:e.message)||t("text","Failed to load"))).reason=e,r.imageUrl=n,r}return o=l,i&&It(o.prototype,i),a&&It(o,a),Object.defineProperty(o,"prototype",{writable:!1}),o}(Tt(Error));const $t={name:"ImageView",components:{ImageIcon:c.Ee,DeleteIcon:c.HG,NcButton:xt.P2,NodeViewWrapper:s.T5},directives:{ClickOutside:yt()},mixins:[kt.Z,st.Zf],props:["editor","node","extension","updateAttributes","deleteNode"],data:function(){return{imageLoaded:!1,loaded:!1,failed:!1,showIcons:!1,imageUrl:null,errorMessage:null,attachmentType:null,attachmentMetadata:{}}},computed:{isMediaAttachment:function(){return this.attachmentType===this.$attachmentResolver.ATTACHMENT_TYPE_MEDIA},editable:function(){return this.editor.isEditable},showDeleteIcon:function(){return this.editable&&this.showIcons},showImageDeleteIcon:function(){return this.showDeleteIcon&&!this.isMediaAttachment},canDisplayImage:function(){return!!this.isSupportedImage&&(!(!this.failed||!this.loaded)||this.loaded&&this.imageLoaded)},imageFileId:function(){return function(t,e){var n=t.split("?")[1];if(void 0!==n){var r=n.split(/[&#]/);if(void 0!==r)for(var o=0;o<r.length;o++){var i=r[o].split("=");if(decodeURIComponent(i[0])===e)return decodeURIComponent(i[1])}}}(this.src,"fileId")},isSupportedImage:function(){return void 0===this.mime||-1!==jt.$Z.indexOf(this.mime)},internalLinkOrImage:function(){return this.imageFileId?(0,wt.generateUrl)("/f/"+this.imageFileId):this.src},src:{get:function(){return this.node.attrs.src||""},set:function(t){this.updateAttributes({src:t})}},alt:{get:function(){return this.node.attrs.alt?this.node.attrs.alt:""},set:function(t){this.updateAttributes({alt:t})}},t:function(){return function(t,e){return window.t(t,e)}},token:function(){return document.getElementById("sharingToken")&&document.getElementById("sharingToken").value}},beforeMount:function(){if(!this.isSupportedImage)return this.failed=!0,this.imageLoaded=!1,this.loaded=!0,void(this.errorMessage=t("text","Unsupported image type"));this.init().catch(this.onImageLoadFailure)},methods:{init:function(){var t=this;return Ot(St().mark((function e(){var n;return St().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.$attachmentResolver.resolve(t.src),e.abrupt("return",t.load(n));case 2:case"end":return e.stop()}}),e)})))()},load:function(t){var e=this;return Ot(St().mark((function n(){var r,o,i;return St().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=Et(t),o=r[0],i=r.slice(1),n.abrupt("return",e.loadImage(o.url,o.type,o.name).catch((function(t){return i.length>0?e.load(i):Promise.reject(t)})));case 2:case"end":return n.stop()}}),n)})))()},loadImage:function(t,e){var n=arguments,r=this;return Ot(St().mark((function o(){var i;return St().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return i=n.length>2&&void 0!==n[2]?n[2]:null,o.abrupt("return",new Promise((function(n,o){var a=new Image;a.onload=Ot(St().mark((function o(){return St().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(r.imageUrl=t,r.imageLoaded=!0,r.loaded=!0,r.attachmentType=e,e!==r.$attachmentResolver.ATTACHMENT_TYPE_MEDIA){o.next=7;break}return o.next=7,r.loadMediaMetadata(i);case 7:n(t);case 8:case"end":return o.stop()}}),o)}))),a.onerror=function(e){o(new Gt(e,t))},a.src=t})));case 2:case"end":return o.stop()}}),o)})))()},loadMediaMetadata:function(t){var e=this,n=this.$attachmentResolver.getMediaMetadataUrl(t);return Ct.Z.get(n).then((function(t){e.attachmentMetadata=t.data})).catch((function(t){_t.k.error("Failed to load media metadata",{error:t})}))},onImageLoadFailure:function(t){this.failed=!0,this.imageLoaded=!1,this.loaded=!0,this.errorMessage=t.message,t instanceof Gt&&(this.errorMessage="".concat(this.errorMessage," ").concat(this.src)),this.$emit("error",{error:t,src:this.src})},updateAlt:function(t){this.updateAttributes({alt:t.target.value})},onLoaded:function(){var t=this;this.loaded=!0,this.$nextTick((function(){t.editor.commands.scrollIntoView()}))}}};var Ft=r(54239),Ut={};Ut.styleTagTransform=w(),Ut.setAttributes=C(),Ut.insert=g().bind(null,"head"),Ut.domAPI=f(),Ut.insertStyleElement=y();h()(Ft.Z,Ut);Ft.Z&&Ft.Z.locals&&Ft.Z.locals;const zt=(0,j.Z)($t,(function(){var t=this,e=t._self._c;return e("NodeViewWrapper",[e("div",{staticClass:"image image-view",class:{"icon-loading":!t.loaded,"image-view--failed":t.failed},attrs:{"data-component":"image-view","data-src":t.src}},[t.canDisplayImage?e("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:function(){return t.showIcons=!1},expression:"() => showIcons = false"}],staticClass:"image__view",on:{click:function(e){t.showIcons=!0},mouseover:function(e){t.showIcons=!0},mouseleave:function(e){t.showIcons=!1}}},[e("transition",{attrs:{name:"fade"}},[t.failed?[e("ImageIcon",{staticClass:"image__main image__main--broken-icon",attrs:{size:100}})]:[t.isMediaAttachment?e("div",{staticClass:"media"},[e("div",{staticClass:"media__wrapper"},[e("img",{directives:[{name:"show",rawName:"v-show",value:t.loaded,expression:"loaded"}],staticClass:"image__main",attrs:{src:t.imageUrl},on:{load:t.onLoaded}}),t._v(" "),e("div",{staticClass:"metadata"},[e("span",{staticClass:"name"},[t._v(t._s(t.alt))]),t._v(" "),e("span",{staticClass:"size"},[t._v(t._s(t.attachmentMetadata.size))])])]),t._v(" "),t.showDeleteIcon?e("div",{staticClass:"buttons"},[e("NcButton",{attrs:{"aria-label":t.t("text","Delete this attachment"),title:t.t("text","Delete this attachment")},on:{click:t.deleteNode},scopedSlots:t._u([{key:"icon",fn:function(){return[e("DeleteIcon")]},proxy:!0}],null,!1,3930079857)})],1):t._e()]):e("div",[e("img",{directives:[{name:"show",rawName:"v-show",value:t.loaded,expression:"loaded"}],staticClass:"image__main",attrs:{src:t.imageUrl},on:{load:t.onLoaded}})])]],2),t._v(" "),e("transition",{attrs:{name:"fade"}},[t.isMediaAttachment?t._e():e("div",{directives:[{name:"show",rawName:"v-show",value:t.loaded,expression:"loaded"}],staticClass:"image__caption"},[e("div",{staticClass:"image__caption__wrapper"},[e("input",{directives:[{name:"show",rawName:"v-show",value:!t.isMediaAttachment,expression:"!isMediaAttachment"}],ref:"altInput",staticClass:"image__caption__input",attrs:{type:"text",disabled:!t.editable},domProps:{value:t.alt},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.updateAlt.apply(null,arguments)}}}),t._v(" "),t.showImageDeleteIcon?e("div",{staticClass:"image__caption__delete"},[e("NcButton",{attrs:{"aria-label":t.t("text","Delete this image"),title:t.t("text","Delete this image")},on:{click:t.deleteNode},scopedSlots:t._u([{key:"icon",fn:function(){return[e("DeleteIcon")]},proxy:!0}],null,!1,3930079857)})],1):t._e()])])])],1):e("div",{staticClass:"image-view__cant_display"},[e("transition",{attrs:{name:"fade"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.loaded,expression:"loaded"}]},[e("a",{attrs:{href:t.internalLinkOrImage,target:"_blank"}},[t.isSupportedImage?t._e():e("span",[t._v(t._s(t.alt))])])])]),t._v(" "),t.isSupportedImage?e("transition",{attrs:{name:"fade"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.loaded,expression:"loaded"}],staticClass:"image__caption"},[e("input",{ref:"altInput",attrs:{type:"text",disabled:!t.editable},domProps:{value:t.alt},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.updateAlt()}}})])]):t._e()],1),t._v(" "),t.errorMessage?e("small",{staticClass:"image__error-message"},[t._v("\n\t\t\t"+t._s(t.errorMessage)+"\n\t\t")]):t._e()])])}),[],!1,null,"c615c456",null).exports;function Ht(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Wt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const qt=gt.ZP.extend({selectable:!1,renderHTML:function(){return["img"]},addOptions:function(){var t;return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ht(Object(n),!0).forEach((function(e){Wt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},null===(t=this.parent)||void 0===t?void 0:t.call(this))},addNodeView:function(){return(0,s.uf)(zt)},addProseMirrorPlugins:function(){return[new vt.Sy({props:{handleDrop:function(t,e,n){if(e.dataTransfer.files&&e.dataTransfer.files.length>0){var r=t.posAtCoords({left:e.clientX,top:e.clientY}),o=new CustomEvent("file-drop",{bubbles:!0,detail:{files:e.dataTransfer.files,position:r.pos}});return e.target.dispatchEvent(o),!0}},handlePaste:function(t,e,n){if(e.clipboardData.files&&e.clipboardData.files.length>0){var r=new CustomEvent("image-paste",{bubbles:!0,detail:{files:e.clipboardData.files}});return e.target.dispatchEvent(r),!0}}}})]}});var Yt=r(90488),Vt=r(93427),Kt=r(92223),Qt=r(85961);const Jt=r(30865).Z;var Xt=r(26667),te=r(69124);function ee(t){return function(t){if(Array.isArray(t))return ne(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return ne(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ne(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ne(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function re(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function oe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const ie=Xt.ZP.extend({addOptions:function(){return{nested:!0,HTMLAttributes:{}}},draggable:!1,content:"paragraph block*",addAttributes:function(){var t=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?re(Object(n),!0).forEach((function(e){oe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this.parent());return t.checked.parseHTML=function(t){var e;return null===(e=t.querySelector("input[type=checkbox]"))||void 0===e?void 0:e.checked},t},parseHTML:[{priority:101,tag:"li",getAttrs:function(t){return t.querySelector("input[type=checkbox]")},context:"taskList/"}],renderHTML:function(t){var e=t.node,n=t.HTMLAttributes,r={class:"checkbox-item"},i={type:"checkbox",class:"",contenteditable:!1};return e.attrs.checked&&(i.checked=!0,r.class+=" checked"),["li",(0,o.P1)(n,r),["input",i],["label",0]]},addNodeView:!1,toMarkdown:function(t,e){t.write("[".concat(e.attrs.checked?"x":" ","] ")),t.renderContent(e)},addInputRules:function(){return[].concat(ee(this.parent()),[(0,o.S0)({find:/^\s*([-+*])\s(\[(x|X|\s)?\])\s$/,type:this.type,getAttributes:function(t){return{checked:"xX".includes(t[t.length-1])}}})])},addProseMirrorPlugins:function(){return[new vt.Sy({props:{handleClick:function(t,e,n){var r=t.state,o=r.schema,i=t.posAtCoords({left:n.clientX,top:n.clientY}),a=r.doc.resolve(i.pos),s=(0,te.qv)(a,(function(t){return t.type===o.nodes.taskItem||t.type===o.nodes.listItem}));if("li"===n.target.tagName.toLowerCase()&&s&&s.node.type===o.nodes.taskItem&&t.editable){var l=r.tr;l.setNodeMarkup(s.pos,o.nodes.taskItem,{checked:!s.node.attrs.checked}),t.dispatch(l)}}}})]}});const ae=r(34746).Z.extend({parseHTML:[{priority:100,tag:"ul.contains-task-list"}],toMarkdown:function(t,e){t.renderList(e," ",(function(){return(e.attrs.bullet||"*")+" "}))}});var se=r(79068),le=r(29802),ce=r(18802),de=r(53322);function ue(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ae(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ae(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ae(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var he=function(t){var e=t.lastIndexOf("/");return e>0?t.slice(0,e):t.slice(0,e+1)},pe=function(t,e){var n=t.attrs.href;if(!n)return n;if(n.match(/^[a-zA-Z]*:/))return n;if(n.startsWith("#"))return n;var r=n.match(/^([^?]*)\?fileId=(\d+)/);if(r){var o=ue(r,3),i=o[1],a=o[2],s=function(t,e){if(!e)return t;if("/"===e[0])return e;for(t=t.split("/"),e=e.split("/");".."===e[0]||"."===e[0];)".."===e[0]&&t.pop(),e.shift();return t.concat(e).join("/")}(he(e||OCA.Viewer.file),he(i));return i.length>1&&i.endsWith("/")?(0,wt.generateUrl)("/apps/files/?dir=".concat(s,"&fileId=").concat(a)):(0,wt.generateUrl)("/apps/files/?dir=".concat(s,"&openfile=").concat(a,"#relPath=").concat(i))}return n},fe=function(t){var e=t.getAttribute("href");if(!e)return e;var n=e.match(/\?dir=([^&]*)&openfile=([^&]*)#relPath=([^&]*)/);if(n){var r=ue(n,4),o=r[2],i=r[3];return"".concat(i,"?fileId=").concat(o)}return e},me=function(t,e){var n=t.target.closest("a").href,r=OC.parseQueryString(n),o=n.split("#").pop(),i=OC.parseQueryString(o);if(null!=r&&r.dir&&null!=i&&i.relPath){var a=i.relPath.split("/").pop(),s="".concat(r.dir,"/").concat(a);return document.title="".concat(a," - ").concat(OC.theme.title),window.location.pathname.match(/apps\/files\/$/),void OCA.Viewer.open({path:s})}if(null==r||!r.fileId){if(!de.Z.validateLink(n))return _t.k.error("Invalid link",{htmlHref:n}),!1;if(o){var l=document.getElementById(o);if(l)return l.scrollIntoView(),void(window.location.hash=o)}return window.open(n),!0}window.open((0,wt.generateUrl)("/f/".concat(r.fileId)),"_self")},ge=function(t){t.editor;var e=t.type,n=t.onClick;return new vt.Sy({props:{key:new vt.H$("textLink"),handleClick:function(t,r,o){var i=t.state.doc.resolve(r).marks().find((function(t){return t.type.name===e.name}));return!!i&&(i.attrs.href?0!==o.button||o.ctrlKey?void 0:(o.stopPropagation(),null==n?void 0:n(o,i.attrs)):(_t.k.warn("Could not determine href of link."),_t.k.debug("Link",{link:i}),!1))}}})};function ve(t){return function(t){if(Array.isArray(t))return Ce(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Ce(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ce(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ce(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function be(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ye(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?be(Object(n),!0).forEach((function(e){xe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function xe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var we=ce.Z.extend({addOptions:function(){var t;return ye(ye({},null===(t=this.parent)||void 0===t?void 0:t.call(this)),{},{onClick:me,relativePath:null})},addAttributes:function(){return{href:{default:null},title:{default:null}}},inclusive:!1,parseHTML:[{tag:"a[href]",getAttrs:function(t){return{href:fe(t),title:t.getAttribute("title")}}}],renderHTML:function(t){var e=t.mark;return["a",ye(ye({},e.attrs),{},{href:pe(e,this.options.relativePath),rel:"noopener noreferrer nofollow"}),0]},addProseMirrorPlugins:function(){var t=this.parent().filter((function(t){return!t.key.startsWith("handleClickLink")}));return this.options.openOnClick?[].concat(ve(t),[ge({editor:this.editor,type:this.type,onClick:this.options.onClick}),new vt.Sy({props:{key:new vt.H$("textAvoidLinkClick"),handleDOMEvents:{click:function(t,e){if(!t.editable)return e.preventDefault(),!1}}}})]):t}});const ke=we;const _e=r(53418).ZP.extend({parseHTML:function(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",getAttrs:function(t){return"line-through"===t}}]},renderHTML:function(){return["s",0]},toMarkdown:{open:"~~",close:"~~",mixable:!0,expelEnclosingWhitespace:!0}});var je=r(70128);const Pe=je.d8.extend({name:"strong",addInputRules:function(){return[(0,o.Cf)({find:je.bP,type:this.type})]},addPasteRules:function(){return[(0,o.K9)({find:je.lN,type:this.type})]}});const Ee=r(53237).Z.extend({parseHTML:function(){return[{tag:"u"},{style:"text-decoration",getAttrs:function(t){return"underline"===t}}]},renderHTML:function(){return["u",0]},toMarkdown:{open:"__",close:"__",mixable:!0,expelEnclosingWhitespace:!0},addInputRules:function(){return[(0,o.Cf)({find:je.fJ,type:this.type})]},addPasteRules:function(){return[(0,o.K9)({find:je.lD,type:this.type})]}});var Me=le.ZP.extend({name:"em"});function Se(t){return function(t){if(Array.isArray(t))return Be(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Be(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Be(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Be(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Oe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ie(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Oe(Object(n),!0).forEach((function(e){De(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function De(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Te=o.hj.create({name:"RichText",addOptions:function(){return{link:{},extensions:[]}},addExtensions:function(){var t=[N.Z,se.Z,Y,V.Z,ft,Pe,Me,_e,i.ZP,O.Z,I.ZP,L,a,mt.Z,Qt.ZP,Vt.Z,Jt,ae,ie,B,Ee,qt.configure({inline:!0}),R.Z,Yt.Z,Z,Kt.Z.configure({HTMLAttributes:{class:"mention"}})];!1!==this.options.link&&t.push(ke.configure(Ie(Ie({},this.options.link),{},{openOnClick:!0,validate:function(t){return/^https?:\/\//.test(t)},relativePath:this.options.relativePath})));var e=this.options.extensions.map((function(t){return t.name}));return[].concat(Se(this.options.extensions),Se(t.filter((function(t){return!e.includes(t.name)}))))}})},9137:(t,e,n)=>{"use strict";n.d(e,{mn:()=>w,dy:()=>d,N8:()=>u,UG:()=>k.Z,pf:()=>B.Z,f3:()=>M,Ho:()=>S.Z,LA:()=>C});var r=n(19958),o=n(2376),i=n(74967);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c=new o.H$("emoji");const d=r.NB.create({name:"emoji",addOptions:function(){return{HTMLAttributes:{},suggestion:{char:":",allowedPrefixes:[" "],pluginKey:c,command:function(t){var e=t.editor,n=t.range,r=t.props;e.chain().focus().insertContentAt(n,r.native+" ").run()}}}},content:"text*",addCommands:function(){return{emoji:function(t){return function(e){return e.commands.insertContent(t.native+" ")}}}},addProseMirrorPlugins:function(){return[(0,i.ZP)(s({editor:this.editor},this.options.suggestion))]}});n(31049);const u=r.hj.create({name:"customkeymap",addKeyboardShortcuts:function(){return this.options},addProseMirrorPlugins:function(){return[new o.Sy({props:{handleKeyDown:function(t,e){var n=e.key||e.keyCode;if((e.ctrlKey||e.metaKey)&&!e.shiftKey&&("f"===n||70===n))return e.stopPropagation(),window.dispatchEvent(e),!0}}})]}});var A=n(84348);function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e,n){return e&&h(t.prototype,e),n&&h(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var f=p((function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.from=e,this.to=n,this.author=r}));function m(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function g(t,e,n){for(var r=[],o=e.mapping,i=0;i<t.length;i++){var a=t[i],s=o.map(a.from,1),l=o.map(a.to,-1);s<l&&r.push(new f(s,l,a.author))}for(var c=function(t){var e=o.maps[t],i=o.slice(t+1);e.forEach((function(e,o,a,s){!function(t,e,n,r){if(e>=n)return;for(var o,i=0;i<t.length;i++)if((o=t[i]).author===r){if(o.to>=e)break}else if(o.to>e){if(o.from<e){var a=new f(o.from,e,o.author);o.to>n?t.splice(i++,0,a):t[i++]=a}break}for(;o=t[i];)if(o.author===r){if(o.from>n)break;e=Math.min(e,o.from),n=Math.max(n,o.to),t.splice(i,1)}else{if(o.from>=n)break;if(o.to>n){t[i]=new f(n,o.to,o.author);break}t.splice(i,1)}t.splice(i,0,new f(e,n,r))}(r,i.map(a,1),i.map(s,-1),n[t])}))},d=0;d<o.maps.length;d++)c(d);return r}var v=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.blameMap=e}var e,n,r;return e=t,(n=[{key:"applyTransform",value:function(e){var n,r=null!==(n=e.getMeta("clientID"))&&void 0!==n?n:e.steps.map((function(t){return"self"}));return new t(g(this.blameMap,e,r))}}])&&m(e.prototype,n),r&&m(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();const C=r.hj.create({name:"users",addOptions:function(){return{clientID:0,color:function(t){return"#"+Math.floor(Math.abs(16777215*Math.sin(t))%16777215).toString(16)+"aa"},name:function(t){return"Unknown user "+t}}},addProseMirrorPlugins:function(){return[new o.Sy({clientID:this.options.clientID,color:this.options.color,name:this.options.name,state:{init:function(t,e){return{tracked:new v([new f(0,e.doc.content.size,null)],[],[],[]),deco:A.EH.empty}},apply:function(t,e,n,r){var o=this,i=e.tracked,a=e.decos,s=this.getState(n).tracked;return t.docChanged&&(t.getMeta("clientID")||t.setMeta("clientID",t.steps.map((function(t){return o.spec.clientID}))),s=i=i.applyTransform(t)),a=s.blameMap.map((function(t){var e=t.author;return A.p.inline(t.from,t.to,{class:"author-annotation",style:"background-color: "+o.spec.color(e)+"66;",title:o.spec.name(e)})})).filter((function(t){return null!==t})),{tracked:i,deco:A.EH.create(r.doc,a)}}},props:{decorations:function(t){return this.getState(t).deco}}})]}});var b,y=n(16560),x=n(69066);const w=r.hj.create({name:"collaboration",onCreate:function(){var t,e,n=this;this.getSendableSteps=(t=function(t){var e=(0,x._1)(t);e&&n.editor.options.editable&&n.options.onSendable({editor:n.editor,sendable:{version:e.version,steps:e.steps.map((function(t){return t.toJSON()})),clientID:e.clientID}})},e=this.options.debounce,function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];b&&clearTimeout(b),b=setTimeout((function(){t.apply(void 0,r),b=null}),e)}),this.editor.on("transaction",(function(t){var e=t.editor;n.getSendableSteps(e.state)}))},addOptions:function(){var t=this;return{version:0,clientID:Math.floor(4294967295*Math.random()),debounce:250,onSendable:function(){},update:function(e){var n=e.steps,r=e.version,o=t.editor,i=o.state,a=o.view,s=o.schema;(0,x.bo)(i)>r||a.dispatch((0,x.$E)(i,n.map((function(t){return y.h8.fromJSON(s,t.step)})),n.map((function(t){return t.clientID}))))}}},addProseMirrorPlugins:function(){return[(0,x.Cw)({version:this.options.version,clientID:this.options.clientID})]}});var k=n(73073),_=n(50137),j=n(79068),P=n(96470);const E=r.NB.create({name:"doc",content:"block",addKeyboardShortcuts:function(){var t=this;return{Tab:function(){return t.editor.commands.insertContent("\t")}}}}),M=r.hj.create({name:"PlainText",addExtensions:function(){return[E,j.Z,_.Z.configure({lowlight:P})]}});var S=n(81401),B=(n(90488),n(92223))},7166:(e,n,r)=>{"use strict";if(r.d(n,{h0:()=>D,Lz:()=>B,YZ:()=>I,tH:()=>O}),"public"==r.j)var o=r(79954);var i=r(62610),a=r(74411);if(!/^(text|viewer)$/.test(r.j))var s=r(42397);var l=r(26937),c=r(79753),d=r(52029),u=!!document.getElementById("isPublic"),A=(0,c.generateOcsUrl)("apps/text"+(u?"/public":"")+"/workspace",2);const h={name:"RichWorkspace",components:{Editor:function(){return Promise.all([r.e("vendors"),r.e("editor")]).then(r.bind(r,89191))}},props:{path:{type:String,required:!0},active:{type:Boolean,default:!0}},data:function(){return{focus:!1,folder:null,file:null,loaded:!1,ready:!1,autofocus:!1,autohide:!0,darkTheme:OCA.Accessibility&&"dark"===OCA.Accessibility.theme,enabled:OCA.Text.RichWorkspaceEnabled}},computed:{shareToken:function(){var t;return null===(t=document.getElementById("sharingToken"))||void 0===t?void 0:t.value},canCreate:function(){return!!(this.folder&&this.folder.permissions&OC.PERMISSION_CREATE)},showEmptyWorkspace:function(){return(!this.file||this.autofocus&&!this.ready)&&this.canCreate}},watch:{path:function(){this.getFileInfo()},focus:function(t){t||document.querySelector("#rich-workspace .text-editor__main").scrollTo(0,0)}},mounted:function(){this.enabled&&this.getFileInfo(),(0,i.Ld)("Text::showRichWorkspace",this.showRichWorkspace),(0,i.Ld)("Text::hideRichWorkspace",this.hideRichWorkspace),this.listenKeydownEvents()},beforeDestroy:function(){(0,i.r1)("Text::showRichWorkspace",this.showRichWorkspace),(0,i.r1)("Text::hideRichWorkspace",this.hideRichWorkspace),this.unlistenKeydownEvents()},methods:{onBlur:function(){this.listenKeydownEvents()},onFocus:function(){this.focus=!0,this.unlistenKeydownEvents()},reset:function(){var t=this;this.file=null,this.focus=!1,this.$nextTick((function(){t.creating=!1,t.getFileInfo()}))},getFileInfo:function(){var t=this;this.loaded=!1,this.autofocus=!1,this.ready=!1;var e={path:this.path};return u&&(e.shareToken=this.shareToken),l.Z.get(A,{params:e}).then((function(e){var n=e.data.ocs.data;return t.folder=n.folder||null,t.file=n.file,t.editing=!0,t.loaded=!0,!0})).catch((function(e){return e.response.data.ocs&&e.response.data.ocs.data.folder?t.folder=e.response.data.ocs.data.folder:t.folder=null,t.file=null,t.loaded=!0,t.ready=!0,t.creating=!1,!1}))},createNew:function(){var t=this;this.creating||(this.creating=!0,this.getFileInfo().then((function(e){if(!e)return window.FileList.createFile("Readme.md",{scrollTo:!1,animate:!1}).then((function(e,n){return t.getFileInfo()}))})).then((function(){t.autofocus=!0})).catch((function(t){d.k.warn("Create readme failed",{error:t})})))},showRichWorkspace:function(){this.enabled=!0,this.getFileInfo()},hideRichWorkspace:function(){this.enabled=!1},listenKeydownEvents:function(){window.addEventListener("keydown",this.onKeydown)},unlistenKeydownEvents:function(){clearInterval(this.$_timeoutAutohide),window.removeEventListener("keydown",this.onKeydown)},onTimeoutAutohide:function(){this.autohide=!0},onKeydown:function(t){"Tab"===t.key&&(clearInterval(this.$_timeoutAutohide),this.autohide=!1,this.$_timeoutAutohide=setTimeout(this.onTimeoutAutohide,7e3))}}};var p=r(93379),f=r.n(p),m=r(7795),g=r.n(m),v=r(90569),C=r.n(v),b=r(3565),y=r.n(b),x=r(19216),w=r.n(x),k=r(44589),_=r.n(k),j=r(89375),P={};P.styleTagTransform=_(),P.setAttributes=y(),P.insert=C().bind(null,"head"),P.domAPI=g(),P.insertStyleElement=w();f()(j.Z,P);j.Z&&j.Z.locals&&j.Z.locals;const E=(0,r(51900).Z)(h,(function(){var t=this,e=t._self._c;return t.enabled&&t.active?e("div",{class:{"icon-loading":!t.loaded||!t.ready,focus:t.focus,dark:t.darkTheme,creatable:t.canCreate,empty:t.showEmptyWorkspace},attrs:{id:"rich-workspace"}},[t.showEmptyWorkspace?e("a",{staticClass:"empty-workspace",attrs:{tabindex:"0"},on:{keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.createNew.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:t.createNew.apply(null,arguments)}],click:t.createNew}},[e("p",{staticClass:"placeholder"},[t._v("\n\t\t\t"+t._s(t.t("text","Add notes, lists or links …"))+"\n\t\t")])]):t._e(),t._v(" "),t.file?e("Editor",{directives:[{name:"show",rawName:"v-show",value:t.ready,expression:"ready"}],key:t.file.path,attrs:{"file-id":t.file.id,"relative-path":t.file.path,"share-token":t.shareToken,mime:t.file.mimetype,autofocus:t.autofocus,autohide:t.autohide,active:"","rich-workspace":""},on:{ready:function(e){t.ready=!0},focus:t.onFocus,blur:t.onBlur,error:t.reset}}):t._e()],1):t._e()}),[],!1,null,"681f5dbf",null).exports;var M=r(25030),S="Edit with text app",B=function(t,e){var n=t.split("/"),r=e.split("/");for(n.pop();n[0]===r[0];)if(n.shift(),r.shift(),0===n.length&&0===r.length)return".";var o=n.fill("..").concat(r),i=e.split("/");return o.length<i.length?o.join("/"):e},O=function(){var e={attach:function(e){var n=e.fileList;"files"!==n.id&&"files.public"!==n.id||e.addMenuEntry({id:"file",displayName:t("text","New text file"),templateName:t("text","New text file")+"."+(0,o.j)("text","default_file_extension"),iconClass:"icon-filetype-text",fileType:"file",actionHandler:function(t){n.createFile(t).then((function(t,e){var r=new OCA.Files.FileInfoModel(e);void 0!==OCA.Viewer?OCA.Files.fileActions.triggerAction("view",r,n):void 0===OCA.Viewer&&OCA.Files.fileActions.triggerAction(S,r,n)}))}})}};OC.Plugins.register("OCA.Files.NewFileMenu",e)},I=function(){var e=(0,s.a)(),n=document.querySelector("#preview table.files-filestable");if(!e||!n){var o=document.createElement("div");o.id="text-viewer-fallback",document.body.appendChild(o);for(var i=function(n){return OCA.Files.fileActions.register(n,S,OC.PERMISSION_UPDATE|OC.PERMISSION_READ,(0,c.imagePath)("core","actions/rename"),(function(t){var n=window.FileList.findFile(t);Promise.all([Promise.resolve().then(r.bind(r,20144)),Promise.all([r.e("vendors"),r.e("files-modal")]).then(r.bind(r,7827))]).then((function(r){var i=window.FileList.getCurrentDirectory()+"/"+t,a=r[0].default;a.prototype.t=window.t,a.prototype.n=window.n,a.prototype.OCA=window.OCA;var s=r[1].default;new a({render:function(t){var r=this;return t(s,{props:{fileId:n?n.id:null,active:!0,shareToken:e,relativePath:i,mimeType:n.mimetype},on:{close:function(){r.$destroy()}}})}}).$mount(o)}))}),t("text","Edit"))},l=0;l<a.SP.length;l++)i(a.SP[l]),OCA.Files.fileActions.setDefault(a.SP[l],S)}},D={el:null,attach:function(t){"files"!==t.id&&"files.public"!==t.id||(this.el=document.createElement("div"),t.registerHeader({id:"workspace",el:this.el,render:this.render.bind(this),priority:10}))},render:function(t){var e=this;"files"!==t.id&&"files.public"!==t.id||Promise.resolve().then(r.bind(r,20144)).then((function(n){var r=n.default;e.el.id="files-workspace-wrapper",r.prototype.t=window.t,r.prototype.n=window.n,r.prototype.OCA=window.OCA;var o=new(r.extend(E))({propsData:{path:t.getCurrentDirectory()},store:M.Z}).$mount(e.el);(0,i.Ld)("files:navigation:changed",(function(){o.active=OCA.Files.App.getCurrentFileList()===t})),t.$el.on("urlChanged",(function(t){o.path=t.dir.toString()})),t.$el.on("changeDirectory",(function(t){o.path=t.dir.toString()}))}))}}},17712:(t,e,n)=>{"use strict";n.d(e,{A:()=>o,F:()=>a});var r=n(79753),o=function(t){(document.attachEvent?"complete"===document.readyState:"loading"!==document.readyState)?setTimeout(t,0):document.addEventListener("DOMContentLoaded",t)},i=(0,r.generateUrl)("/apps/text"),a=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?"".concat(i,"/public/").concat(t):"".concat(i,"/").concat(t)}},52029:(t,e,n)=>{"use strict";n.d(e,{k:()=>r});var r=(0,n(17499).IY)().setApp("text").detectUser().build()},74411:(t,e,n)=>{"use strict";var r,o;n.d(e,{$Z:()=>i,SP:()=>l,lF:()=>a,w_:()=>s});var i=["image/png","image/jpeg","image/jpg","image/gif","image/x-xbitmap","image/x-ms-bmp","image/bmp","image/svg+xml","image/webp"],a=["text/markdown"],s=["text/plain","application/cmd","application/x-empty","application/x-msdos-program","application/javascript","application/json","application/x-perl","application/x-php","application/x-tex","application/xml","application/yaml","text/css","text/html","text/org","text/x-c","text/x-c++src","text/x-h","text/x-java-source","text/x-ldif","text/x-python","text/x-shellscript"];null!==(r=window.oc_appswebroots)&&void 0!==r&&r.richdocuments||null!==(o=window.oc_appswebroots)&&void 0!==o&&o.onlyoffice||s.push("text/csv");var l=[].concat(a,s)},42397:(t,e,n)=>{"use strict";n.d(e,{a:()=>r});var r=function(){return document.getElementById("sharingToken")?document.getElementById("sharingToken").value:null}},30744:(t,e,n)=>{"use strict";n.d(e,{F:()=>i,Z:()=>s});var r=n(40591),o=n.n(r),i=["info","warn","error","success"],a=function(t){return function(e,n,r,o,i){var a=e[n];return 1===a.nesting&&(a.attrSet("data-callout",t),a.attrJoin("class","callout callout-".concat(t))),i.renderToken(e,n,r,o,i)}};const s=function(t){return i.forEach((function(e){t.use(o(),e,{render:a(e)})})),t}},53322:(t,e,n)=>{"use strict";n.d(e,{Z:()=>p});var r=n(9980),o=n.n(r),i=n(28087),a=n(17251),s=n.n(a);function l(t,e){var n;return(null===(n=t.attrGet("class"))||void 0===n?void 0:n.split(" ").includes(e))||!1}var c=n(30744);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function u(){u=function(t,e){return new n(t,void 0,e)};var t=RegExp.prototype,e=new WeakMap;function n(t,r,o){var i=new RegExp(t,r);return e.set(i,o||e.get(t)),h(i,n.prototype)}function r(t,n){var r=e.get(n);return Object.keys(r).reduce((function(e,n){var o=r[n];if("number"==typeof o)e[n]=t[o];else{for(var i=0;void 0===t[o[i]]&&i+1<o.length;)i++;e[n]=t[o[i]]}return e}),Object.create(null))}return A(n,RegExp),n.prototype.exec=function(e){var n=t.exec.call(this,e);return n&&(n.groups=r(n,this)),n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var i=e.get(this);return t[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(t,e){return"$"+i[e]})))}if("function"==typeof o){var a=this;return t[Symbol.replace].call(this,n,(function(){var t=arguments;return"object"!=d(t[t.length-1])&&(t=[].slice.call(t)).push(r(t,a)),o.apply(this,t)}))}return t[Symbol.replace].call(this,n,o)},u.apply(this,arguments)}function A(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}const p=o()("commonmark",{html:!1,breaks:!1}).enable("strikethrough").enable("table").use(i.Z,{enable:!0,labelAfter:!0}).use((function(t){t.core.ruler.after("task-lists","split-mixed-task-lists",(function(t){for(var e=t.tokens,n=function(n){var r=e[n];if(!l(r,"contains-task-list"))return"continue";var o=l(e[n+1],"task-list-item");o||(r.attrs.splice(r.attrIndex("class")),0===r.attrs.length&&(r.attrs=null));var i=function(t,e,n){for(var r=t[e].level+1,o=e+1;o<t.length;o++){var i=t[o];if(i.level<r)return-1;if(i.level===r&&n(t[o]))return o}return-1}(e,n,(function(t){return 1===t.nesting&&l(t,"task-list-item")!==o}));i>n&&function(t,e,n){var r=new n("bullet_list_close","ul",-1);r.block=!0;var o=new n("bullet_list_open","ul",1);o.attrSet("class","contains-task-list"),o.block=!0,t.splice(e,0,r,o)}(e,i,t.Token)},r=0;r<e.length;r++)n(r);return!1}))})).use((function(t){t.inline.ruler2.after("emphasis","underline",(function(t){for(var e=t.tokens,n=e.length-1;n>0;n--){var r=e[n];"__"===r.markup&&("strong_open"===r.type&&(e[n].tag="u",e[n].type="u_open"),"strong_close"===r.type&&(e[n].tag="u",e[n].type="u_close"))}return!1}))})).use(c.Z).use((function(t){var e=u(/(\n([#\-*+>])|([`*\\~[\]]+))/,{linestart:2,special:3});t.core.ruler.before("text_join","tag-markdown-syntax",(function(t){var n=new t.Token("keep_md_open","span",1);n.attrSet("class","keep-md");for(var r=new t.Token("keep_md_close","span",-1),o=0;o<t.tokens.length;o++){var i=t.tokens[o];if("inline"===i.type)for(var a=0;a<i.children.length;a++){var s=i.children[a];if("text"===s.type){var l=e.exec(s.content);if(l){var c,d=l.groups.linestart?l.index+1:l.index,u=d+(null!==(c=l.groups.linestart)&&void 0!==c?c:l.groups.special).length;i.children.splice(a,1,Object.assign({},s,{content:s.content.slice(0,d)}),Object.assign({},n),Object.assign({},s,{content:s.content.slice(d,u)}),Object.assign({},r),Object.assign({},s,{content:s.content.slice(u)})),a+=3}}}}return!1}))})).use(s())},13815:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(25030);const o={data:function(){return{$store:r.Z}},beforeMount:function(){void 0===this.$store&&(this.$store=r.Z)}}},30865:(t,e,n)=>{"use strict";n.d(e,{Z:()=>f});var r=n(19958),o=n(20510),i=n(79007),a=n(17209),s=n(79307),l=n(89044),c=n(70650),d=n(2376),u=n(42302);function A(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?A(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const f=o.iA.extend({content:"tableCaption? tableHeadRow tableRow*",addExtensions:function(){return[i.Z,a.Z,s.Z,l.Z,c.Z]},addCommands:function(){return h(h({},this.parent()),{},{insertTable:function(){return function(t){var e=t.tr,n=t.dispatch,r=t.editor;if((0,u.Lw)(e))return!1;var o=function(t,e,n,r){for(var o=[],i=[],a=0;a<n;a+=1){var s=t.nodes.tableCell.createAndFill();s&&i.push(s);var l=t.nodes.tableHeader.createAndFill();l&&o.push(l)}for(var c=t.nodes.tableHeadRow.createChecked(null,o),d=[],u=1;u<e;u+=1)d.push(t.nodes.tableRow.createChecked(null,i));return t.nodes.table.createChecked(null,[c].concat(d))}(r.schema,3,3);if(n){var i=e.selection.anchor+1;e.replaceSelectionWith(o).scrollIntoView().setSelection(d.Bs.near(e.doc.resolve(i)))}return!0}},leaveTable:function(){return function(t){var e=t.tr,n=t.dispatch;t.editor;if(!(0,u.Lw)(e))return!1;var r=e.selection,o=r.$head;if(!r.empty)return!1;var i=o.depth<3?1:o.depth-2;if(n){var a=e.doc.resolve(o.after(i)+1),s=d.Bs.near(a);n(e.setSelection(s).scrollIntoView())}return!0}},goToNextRow:function(){return function(t){var e=t.tr,n=t.dispatch;t.editor;if(!(0,u.Lw)(e))return!1;var r=function(t){if(t.index(-1)===t.node(-1).childCount-1)return null;for(var e=t.after(),n=t.node(-1),r=t.indexAfter(-1);r<n.childCount;r++){var o=n.child(r);if(o.childCount>=t.index()){for(var i=0;i<t.index();i++)e+=o.child(i).nodeSize;return e+1}e+=o.nodeSize}}((0,u.Le)(e));if(null!=r){if(n){var o=e.doc.resolve(r),i=d.Bs.between(o,(0,u.SZ)(o));n(e.setSelection(i).scrollIntoView())}return!0}}}})},renderHTML:function(t){var e=t.HTMLAttributes;return["table",(0,r.P1)(this.options.HTMLAttributes,e),0]},toMarkdown:function(t,e){t.renderContent(e),t.closeBlock(e)},addKeyboardShortcuts:function(){var t=this;return h(h({},this.parent()),{},{Tab:function(){return t.editor.commands.goToNextCell()||t.editor.commands.leaveTable()},Enter:function(){return!!t.editor.commands.goToNextRow()||!!t.editor.can().addRowAfter()&&t.editor.chain().addRowAfter().goToNextRow().run()}})}})},79007:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=n(19958).NB.create({name:"tableCaption",content:"inline*",addAttributes:function(){return{}},renderHTML:function(){return["caption"]},toMarkdown:function(t,e){},parseHTML:function(){return[{tag:"table caption",priority:90}]}})},17209:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=n(29467).p.extend({content:"inline*",toMarkdown:function(t,e){var n;t.write(" ");var r=null===(n=t.options)||void 0===n?void 0:n.escapeExtraCharacters;t.options.escapeExtraCharacters=/\|/,t.renderInline(e),t.options.escapeExtraCharacters=r,t.write(" |")},parseHTML:function(){return[{tag:"td"},{tag:"th"},{tag:"table thead ~ tbody th",priority:70},{tag:"table thead ~ tbody td",priority:70}]}})},89044:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=n(70650).Z.extend({name:"tableHeadRow",content:"tableHeader*",toMarkdown:function(t,e){t.write("|"),t.renderInline(e),t.ensureNewLine(),t.write("|"),e.forEach((function(e){t.write(t.repeat("-",e.textContent.length+2)),t.write("|")})),t.ensureNewLine()},parseHTML:function(){return[{tag:"tr",priority:70}]}})},79307:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=n(82992).x.extend({content:"inline*",toMarkdown:function(t,e){t.write(" "),t.renderInline(e),t.write(" |")},parseHTML:function(){return[{tag:"table thead:empty ~ tbody :first-child th",priority:80},{tag:"table thead:empty ~ tbody :first-child td",priority:80},{tag:"table thead :first-child th",priority:60},{tag:"table thead :first-child td",priority:60},{tag:"table tbody :first-child th",priority:60},{tag:"table tbody :first-child td",priority:60},{tag:"table > :first-child > th",priority:60},{tag:"table > :first-child > td",priority:60}]}})},70650:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=n(40157).S.extend({content:"tableCell*",toMarkdown:function(t,e){t.write("|"),t.renderInline(e),t.ensureNewLine()},parseHTML:function(){return[{tag:"tr",priority:80}]}})},25030:(t,e,n)=>{"use strict";n.d(e,{Z:()=>C});var r=n(20144),o=n(20629),i=n(62556),a="SET_VIEW_WIDTH",s="SET_SHOW_AUTHOR_ANNOTATIONS",l="SET_CURRENT_SESSION",c="SET_HEADINGS",d=n(20296),u=n.n(d),A=function(){return document.documentElement.clientWidth};const h=function(t){var e=t.commit,n=u()((function(){e(a,A())}),100);window.addEventListener("resize",n)};var p;function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var v=(0,i.getBuilder)("text").persist().build();r.default.use(o.ZP);const C=new o.yh({plugins:[h],state:{showAuthorAnnotations:"true"===v.getItem("showAuthorAnnotations"),currentSession:v.getItem("currentSession"),viewWidth:A(),headings:Object.freeze([])},mutations:(p={},g(p,a,(function(t,e){t.viewWidth=e})),g(p,s,(function(t,e){t.showAuthorAnnotations=e,v.setItem("showAuthorAnnotations",""+e)})),g(p,l,(function(t,e){t.currentSession=e,v.setItem("currentSession",e)})),g(p,c,(function(t,e){if(t.headings.length===e.length){var n=t.headings,r=e.map((function(t,e){var r=n[e].level;return Object.freeze(m(m({},t),{},{previous:r}))}));t.headings=Object.freeze(r)}else t.headings=Object.freeze(e)})),p),getters:{isMobileView:function(t){return t.viewWidth<768},hasHeadings:function(t){return t.headings.length>0}},actions:{setShowAuthorAnnotations:function(t,e){(0,t.commit)(s,e)},setCurrentSession:function(t,e){(0,t.commit)(l,e)},setHeadings:function(t,e){(0,t.commit)(c,e)}}})},97646:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".text-menubar .entry-action.is-active:not(.entry-action-item),.v-popper__inner .entry-action.is-active:not(.entry-action-item),.text-menubar button.entry-action__button.is-active,.v-popper__inner button.entry-action__button.is-active{opacity:1;background-color:var(--color-primary-light);border-radius:50%}.text-menubar .entry-action.is-active:not(.entry-action-item) .material-design-icon>svg,.v-popper__inner .entry-action.is-active:not(.entry-action-item) .material-design-icon>svg,.text-menubar button.entry-action__button.is-active .material-design-icon>svg,.v-popper__inner button.entry-action__button.is-active .material-design-icon>svg{fill:var(--color-primary)}.text-menubar button.entry-action__button,.v-popper__inner button.entry-action__button{height:44px;margin:0;border:0;position:relative;color:var(--color-main-text);background-color:rgba(0,0,0,0);vertical-align:top;box-shadow:none;padding:0}.text-menubar button.entry-action__button p,.v-popper__inner button.entry-action__button p{padding:0}.text-menubar button.entry-action__button:is(li.entry-action-item button),.v-popper__inner button.entry-action__button:is(li.entry-action-item button){padding:0 .5em 0 0}.text-menubar button.entry-action__button:not(li.entry-action-item button),.v-popper__inner button.entry-action__button:not(li.entry-action-item button){width:44px}.text-menubar button.entry-action__button:hover,.text-menubar button.entry-action__button:focus,.text-menubar button.entry-action__button:active,.v-popper__inner button.entry-action__button:hover,.v-popper__inner button.entry-action__button:focus,.v-popper__inner button.entry-action__button:active{background-color:var(--color-background-dark)}.text-menubar button.entry-action__button:hover:not(:disabled),.text-menubar button.entry-action__button:focus:not(:disabled),.text-menubar button.entry-action__button:active:not(:disabled),.v-popper__inner button.entry-action__button:hover:not(:disabled),.v-popper__inner button.entry-action__button:focus:not(:disabled),.v-popper__inner button.entry-action__button:active:not(:disabled){box-shadow:var(--color-primary)}.text-menubar button.entry-action__button:hover,.text-menubar button.entry-action__button:focus,.v-popper__inner button.entry-action__button:hover,.v-popper__inner button.entry-action__button:focus{opacity:1}.text-menubar button.entry-action__button:focus-visible,.v-popper__inner button.entry-action__button:focus-visible{box-shadow:var(--color-primary)}.text-menubar .entry-action.entry-action-item.is-active,.v-popper__inner .entry-action.entry-action-item.is-active{background-color:var(--color-primary-light);border-radius:var(--border-radius-large)}.text-menubar .button-vue svg,.v-popper__inner .button-vue svg{fill:var(--color-main-text)}.text-menubar .action-item__menutoggle.action-item__menutoggle--with-icon-slot,.v-popper__inner .action-item__menutoggle.action-item__menutoggle--with-icon-slot{opacity:1}","",{version:3,sources:["webpack://./src/components/Menu/ActionEntry.scss"],names:[],mappings:"AAAA,0OACC,SAAA,CACA,2CAAA,CACA,iBAAA,CACA,kVACC,yBAAA,CAKD,uFACC,WAAA,CACA,QAAA,CACA,QAAA,CAEA,iBAAA,CACA,4BAAA,CACA,8BAAA,CACA,kBAAA,CACA,eAAA,CACA,SAAA,CAEA,2FACC,SAAA,CAGD,uJACC,kBAAA,CAGD,yJACC,UAAA,CAGD,2SAGC,6CAAA,CACA,qYACC,+BAAA,CAIF,sMAEC,SAAA,CAED,mHACC,+BAAA,CAaD,mHACC,2CAAA,CACA,wCAAA,CAKD,+DACC,2BAAA,CAIF,iKACC,SAAA",sourcesContent:["%text__is-active-item-btn {\n\topacity: 1;\n\tbackground-color: var(--color-primary-light);\n\tborder-radius: 50%;\n\t.material-design-icon > svg {\n\t\tfill: var(--color-primary);\n\t}\n}\n\n.text-menubar, .v-popper__inner {\n\tbutton.entry-action__button {\n\t\theight: 44px;\n\t\tmargin: 0;\n\t\tborder: 0;\n\t\t// opacity: 0.5;\n\t\tposition: relative;\n\t\tcolor: var(--color-main-text);\n\t\tbackground-color: transparent;\n\t\tvertical-align: top;\n\t\tbox-shadow: none;\n\t\tpadding: 0;\n\n\t\tp {\n\t\t\tpadding: 0;\n\t\t}\n\n\t\t&:is(li.entry-action-item button) {\n\t\t\tpadding: 0 0.5em 0 0;\n\t\t}\n\n\t\t&:not(li.entry-action-item button) {\n\t\t\twidth: 44px;\n\t\t}\n\n\t\t&:hover,\n\t\t&:focus,\n\t\t&:active {\n\t\t\tbackground-color: var(--color-background-dark);\n\t\t\t&:not(:disabled) {\n\t\t\t\tbox-shadow: var(--color-primary);\n\t\t\t}\n\t\t}\n\n\t\t&:hover,\n\t\t&:focus {\n\t\t\topacity: 1;\n\t\t}\n\t\t&:focus-visible {\n\t\t\tbox-shadow: var(--color-primary);\n\t\t}\n\n\t\t&.is-active {\n\t\t\t@extend %text__is-active-item-btn;\n\t\t}\n\t}\n\n\t.entry-action.is-active:not(.entry-action-item) {\n\t\t@extend %text__is-active-item-btn;\n\t}\n\n\t.entry-action.entry-action-item {\n\t\t&.is-active {\n\t\t\tbackground-color: var(--color-primary-light);\n\t\t\tborder-radius: var(--border-radius-large);\n\t\t}\n\t}\n\n\t.button-vue {\n\t\tsvg {\n\t\t\tfill: var(--color-main-text);\n\t\t}\n\t}\n\n\t.action-item__menutoggle.action-item__menutoggle--with-icon-slot {\n\t\topacity: 1;\n\t}\n}\n"],sourceRoot:""}]);const s=a},70060:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,"#resolve-conflicts[data-v-4a5d4c0f]{display:flex;position:fixed;z-index:10000;bottom:0;max-width:900px;width:100vw;margin:auto;padding:20px 0}#resolve-conflicts button[data-v-4a5d4c0f]{margin:auto;box-shadow:0 0 10px var(--color-box-shadow)}","",{version:3,sources:["webpack://./src/components/CollisionResolveDialog.vue"],names:[],mappings:"AACA,oCACC,YAAA,CACA,cAAA,CACA,aAAA,CACA,QAAA,CACA,eAAA,CACA,WAAA,CACA,WAAA,CACA,cAAA,CAEA,2CACC,WAAA,CACA,2CAAA",sourcesContent:["\n#resolve-conflicts {\n\tdisplay: flex;\n\tposition: fixed;\n\tz-index: 10000;\n\tbottom: 0;\n\tmax-width: 900px;\n\twidth: 100vw;\n\tmargin: auto;\n\tpadding: 20px 0;\n\n\tbutton {\n\t\tmargin: auto;\n\t\tbox-shadow: 0 0 10px var(--color-box-shadow);\n\t}\n}\n"],sourceRoot:""}]);const s=a},67888:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".modal-container .text-editor[data-v-4f6cb163]{top:0;height:calc(100vh - var(--header-height))}.text-editor[data-v-4f6cb163]{display:block;width:100%;max-width:100%;height:100%;left:0;margin:0 auto;position:relative;background-color:var(--color-main-background)}.text-editor .text-editor__wrapper.has-conflicts[data-v-4f6cb163]{height:calc(100% - 50px)}.text-editor .text-editor__wrapper.has-conflicts .text-editor__main[data-v-4f6cb163],.text-editor .text-editor__wrapper.has-conflicts #read-only-editor[data-v-4f6cb163]{width:50%;height:100%}#body-public[data-v-4f6cb163]{height:auto}#files-public-content .text-editor[data-v-4f6cb163]{top:0;width:100%}#files-public-content .text-editor .text-editor__main[data-v-4f6cb163]{overflow:auto;z-index:20}#files-public-content .text-editor .has-conflicts .text-editor__main[data-v-4f6cb163]{padding-top:0}.menubar-placeholder[data-v-4f6cb163],.text-editor--readonly-bar[data-v-4f6cb163]{position:fixed;position:-webkit-sticky;position:sticky;top:0;opacity:0;visibility:hidden;height:44px;padding-top:3px;padding-bottom:3px}.text-editor--readonly-bar[data-v-4f6cb163],.menubar-placeholder--with-slot[data-v-4f6cb163]{opacity:unset;visibility:unset;z-index:50;max-width:var(--text-editor-max-width);margin:auto;width:100%;background-color:var(--color-main-background)}","",{version:3,sources:["webpack://./src/components/Editor.vue"],names:[],mappings:"AACA,+CACC,KAAA,CACA,yCAAA,CAGD,8BACC,aAAA,CACA,UAAA,CACA,cAAA,CACA,WAAA,CACA,MAAA,CACA,aAAA,CACA,iBAAA,CACA,6CAAA,CAGD,kEACC,wBAAA,CAEA,yKACC,SAAA,CACA,WAAA,CAIF,8BACC,WAAA,CAIA,oDACC,KAAA,CACA,UAAA,CAEA,uEACC,aAAA,CACA,UAAA,CAED,sFACC,aAAA,CAKH,kFAEC,cAAA,CACA,uBAAA,CACA,eAAA,CACA,KAAA,CACA,SAAA,CACA,iBAAA,CACA,WAAA,CACA,eAAA,CACA,kBAAA,CAGD,6FAEC,aAAA,CACA,gBAAA,CAEA,UAAA,CACA,sCAAA,CACA,WAAA,CACA,UAAA,CACA,6CAAA",sourcesContent:["\n.modal-container .text-editor {\n\ttop: 0;\n\theight: calc(100vh - var(--header-height));\n}\n\n.text-editor {\n\tdisplay: block;\n\twidth: 100%;\n\tmax-width: 100%;\n\theight: 100%;\n\tleft: 0;\n\tmargin: 0 auto;\n\tposition: relative;\n\tbackground-color: var(--color-main-background);\n}\n\n.text-editor .text-editor__wrapper.has-conflicts {\n\theight: calc(100% - 50px);\n\n\t.text-editor__main, #read-only-editor {\n\t\twidth: 50%;\n\t\theight: 100%;\n\t}\n}\n\n#body-public {\n\theight: auto;\n}\n\n#files-public-content {\n\t.text-editor {\n\t\ttop: 0;\n\t\twidth: 100%;\n\n\t\t.text-editor__main {\n\t\t\toverflow: auto;\n\t\t\tz-index: 20;\n\t\t}\n\t\t.has-conflicts .text-editor__main {\n\t\t\tpadding-top: 0;\n\t\t}\n\t}\n}\n\n.menubar-placeholder,\n.text-editor--readonly-bar {\n\tposition: fixed;\n\tposition: -webkit-sticky;\n\tposition: sticky;\n\ttop: 0;\n\topacity: 0;\n\tvisibility: hidden;\n\theight: 44px; // important for mobile so that the buttons are always inside the container\n\tpadding-top:3px;\n\tpadding-bottom: 3px;\n}\n\n.text-editor--readonly-bar,\n.menubar-placeholder--with-slot {\n\topacity: unset;\n\tvisibility: unset;\n\n\tz-index: 50;\n\tmax-width: var(--text-editor-max-width);\n\tmargin: auto;\n\twidth: 100%;\n\tbackground-color: var(--color-main-background);\n}\n\n"],sourceRoot:""}]);const s=a},63859:(t,e,n)=>{"use strict";n.d(e,{Z:()=>A});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i),s=n(61667),l=n.n(s),c=new URL(n(64989),n.b),d=a()(o()),u=l()(c);d.push([t.id,':root{--text-editor-max-width: 670px }.modal-container .text-editor{position:absolute}.ProseMirror-hideselection{caret-color:rgba(0,0,0,0);color:var(--color-main-text)}.ProseMirror-hideselection *::selection{background:rgba(0,0,0,0);color:var(--color-main-text)}.ProseMirror-hideselection *::-moz-selection{background:rgba(0,0,0,0);color:var(--color-main-text)}.ProseMirror-selectednode{outline:2px solid #8cf}li.ProseMirror-selectednode{outline:none}li.ProseMirror-selectednode:after{content:"";position:absolute;left:-32px;right:-2px;top:-2px;bottom:-2px;border:2px solid #8cf;pointer-events:none}.has-conflicts .ProseMirror-menubar,.text-editor__wrapper.icon-loading .ProseMirror-menubar{display:none}.ProseMirror-gapcursor{display:none;pointer-events:none;position:absolute}.ProseMirror-gapcursor:after{content:"";display:block;position:absolute;top:-2px;width:20px;border-top:1px solid var(--color-main-text);animation:ProseMirror-cursor-blink 1.1s steps(2, start) infinite}@keyframes ProseMirror-cursor-blink{to{visibility:hidden}}.animation-rotate{animation:rotate var(--animation-duration, 0.8s) linear infinite}[data-handler=text]{background-color:var(--color-main-background);border-top:3px solid var(--color-primary-element)}[data-handler=text] .modal-title{font-weight:bold}@keyframes fadeInDown{from{opacity:0;transform:translate3d(0, -100%, 0)}to{opacity:1;transform:translate3d(0, 0, 0)}}@keyframes fadeInLeft{from{opacity:0;transform:translate3d(-100%, 0, 0)}to{opacity:1;transform:translate3d(0, 0, 0)}}.fadeInLeft{animation-name:fadeInLeft}@media print{@page{size:A4;margin:2.5cm 2cm 2cm 2.5cm}body{position:absolute;overflow:visible !important}#viewer[data-handler=text]{border:none;width:100% !important;position:absolute !important}#viewer[data-handler=text] .modal-header{display:none !important}#viewer[data-handler=text] .modal-container{top:0px;height:fit-content}.text-editor .text-menubar{display:none !important}.text-editor .action-item{display:none !important}.text-editor .editor__content{max-width:100%}.text-editor .text-editor__wrapper{height:fit-content;position:unset}.text-editor div.ProseMirror h1,.text-editor div.ProseMirror h2,.text-editor div.ProseMirror h3,.text-editor div.ProseMirror h4,.text-editor div.ProseMirror h5{break-after:avoid}.text-editor div.ProseMirror .image,.text-editor div.ProseMirror img,.text-editor div.ProseMirror table{break-inside:avoid-page;max-width:90% !important;margin:5vw auto 5vw 5% !important}.text-editor div.ProseMirror th{color:#000 !important;font-weight:bold !important;border-width:0 1px 2px 0 !important;border-color:gray !important;border-style:none solid solid none !important}.text-editor div.ProseMirror th:last-of-type{border-width:0 0 2px 0 !important}.text-editor div.ProseMirror td{border-style:none solid none none !important;border-width:1px !important;border-color:gray !important}.text-editor div.ProseMirror td:last-of-type{border:none !important}.menubar-placeholder,.text-editor--readonly-bar{display:none}.text-editor__content-wrapper.--show-outline{display:block}.text-editor__content-wrapper .editor--outline{width:auto;height:auto;overflow:unset;position:relative}.text-editor__content-wrapper .editor--outline__btn-close{display:none}}.text-editor__wrapper div.ProseMirror{height:100%;position:relative;word-wrap:break-word;white-space:pre-wrap;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;padding:4px 8px 200px 14px;line-height:150%;font-size:14px;outline:none}.text-editor__wrapper div.ProseMirror :target{scroll-margin-top:50px}.text-editor__wrapper div.ProseMirror[contenteditable=true],.text-editor__wrapper div.ProseMirror[contenteditable=false],.text-editor__wrapper div.ProseMirror [contenteditable=true],.text-editor__wrapper div.ProseMirror [contenteditable=false]{border:none !important;width:100%;background-color:rgba(0,0,0,0);color:var(--color-main-text);opacity:1;-webkit-user-select:text;user-select:text;font-size:14px}.text-editor__wrapper div.ProseMirror[contenteditable=true]:focus,.text-editor__wrapper div.ProseMirror[contenteditable=true]:focus-visible,.text-editor__wrapper div.ProseMirror[contenteditable=false]:focus,.text-editor__wrapper div.ProseMirror[contenteditable=false]:focus-visible,.text-editor__wrapper div.ProseMirror [contenteditable=true]:focus,.text-editor__wrapper div.ProseMirror [contenteditable=true]:focus-visible,.text-editor__wrapper div.ProseMirror [contenteditable=false]:focus,.text-editor__wrapper div.ProseMirror [contenteditable=false]:focus-visible{box-shadow:none !important}.text-editor__wrapper div.ProseMirror .checkbox-item{display:flex;align-items:start;margin-left:-23px}.text-editor__wrapper div.ProseMirror .checkbox-item input[type=checkbox]{display:none}.text-editor__wrapper div.ProseMirror .checkbox-item:before{content:"";vertical-align:middle;margin:3px 6px 3px 2px;border:1px solid var(--color-text-maxcontrast);position:relative;display:block;border-radius:var(--border-radius);height:14px;width:14px;box-shadow:none !important;background-position:center;cursor:pointer}.text-editor__wrapper div.ProseMirror .checkbox-item.checked:before{background-image:url('+u+');background-color:var(--color-primary-element);border-color:var(--color-primary-element)}.text-editor__wrapper div.ProseMirror .checkbox-item.checked label{color:var(--color-text-maxcontrast);text-decoration:line-through}.text-editor__wrapper div.ProseMirror .checkbox-item label{display:block;flex-grow:1;max-width:calc(100% - 28px)}.text-editor__wrapper div.ProseMirror>*:first-child{margin-top:10px}.text-editor__wrapper div.ProseMirror>h1:first-child,.text-editor__wrapper div.ProseMirror h2:first-child,.text-editor__wrapper div.ProseMirror h3:first-child,.text-editor__wrapper div.ProseMirror h4:first-child,.text-editor__wrapper div.ProseMirror h5:first-child,.text-editor__wrapper div.ProseMirror h6:first-child{margin-top:0}.text-editor__wrapper div.ProseMirror a{color:var(--color-primary-element);text-decoration:underline;padding:.5em 0}.text-editor__wrapper div.ProseMirror p{margin-bottom:1em;line-height:150%}.text-editor__wrapper div.ProseMirror em{font-style:italic}.text-editor__wrapper div.ProseMirror h1,.text-editor__wrapper div.ProseMirror h2,.text-editor__wrapper div.ProseMirror h3,.text-editor__wrapper div.ProseMirror h4,.text-editor__wrapper div.ProseMirror h5,.text-editor__wrapper div.ProseMirror h6{font-weight:600;line-height:1.1em;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}.text-editor__wrapper div.ProseMirror h1{font-size:36px}.text-editor__wrapper div.ProseMirror h2{font-size:30px}.text-editor__wrapper div.ProseMirror h3{font-size:24px}.text-editor__wrapper div.ProseMirror h4{font-size:21px}.text-editor__wrapper div.ProseMirror h5{font-size:17px}.text-editor__wrapper div.ProseMirror h6{font-size:14px}.text-editor__wrapper div.ProseMirror img{cursor:default;max-width:100%}.text-editor__wrapper div.ProseMirror hr{padding:2px 0;border:none;margin:2em 0;width:100%}.text-editor__wrapper div.ProseMirror hr:after{content:"";display:block;height:1px;background-color:var(--color-border-dark);line-height:2px}.text-editor__wrapper div.ProseMirror pre{white-space:pre-wrap;background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:1em 1.3em;margin-bottom:1em}.text-editor__wrapper div.ProseMirror pre.frontmatter{margin-bottom:2em;border-left:4px solid var(--color-primary-element)}.text-editor__wrapper div.ProseMirror pre.frontmatter::before{display:block;content:attr(data-title);color:var(--color-text-maxcontrast);padding-bottom:.5em}.text-editor__wrapper div.ProseMirror p code{background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:.1em .3em}.text-editor__wrapper div.ProseMirror li{position:relative;padding-left:3px}.text-editor__wrapper div.ProseMirror li p{margin-bottom:.5em}.text-editor__wrapper div.ProseMirror ul,.text-editor__wrapper div.ProseMirror ol{padding-left:10px;margin-left:10px;margin-bottom:1em}.text-editor__wrapper div.ProseMirror ul>li{list-style-type:disc}.text-editor__wrapper div.ProseMirror li ul>li{list-style-type:circle}.text-editor__wrapper div.ProseMirror li li ul>li{list-style-type:square}.text-editor__wrapper div.ProseMirror blockquote{padding-left:1em;border-left:4px solid var(--color-primary-element);color:var(--color-text-maxcontrast);margin-left:0;margin-right:0}:root{--table-color-border: var(--color-border);--table-color-heading: var(--color-text-maxcontrast);--table-color-heading-border: var(--color-border-dark);--table-color-background: var(--color-main-background);--table-color-background-hover: var(--color-primary-light);--table-border-radius: var(--border-radius)}.text-editor__wrapper div.ProseMirror table{border-spacing:0;width:calc(100% - 50px);table-layout:auto;white-space:normal;margin-bottom:1em}.text-editor__wrapper div.ProseMirror table{margin-top:1em}.text-editor__wrapper div.ProseMirror table td,.text-editor__wrapper div.ProseMirror table th{border:1px solid var(--table-color-border);border-left:0;vertical-align:top;max-width:100%}.text-editor__wrapper div.ProseMirror table td:first-child,.text-editor__wrapper div.ProseMirror table th:first-child{border-left:1px solid var(--table-color-border)}.text-editor__wrapper div.ProseMirror table td{padding:.5em .75em;border-top:0;color:var(--color-main-text)}.text-editor__wrapper div.ProseMirror table th{padding:0 0 0 .75em;font-weight:normal;border-bottom-color:var(--table-color-heading-border);color:var(--table-color-heading)}.text-editor__wrapper div.ProseMirror table th>div{display:flex}.text-editor__wrapper div.ProseMirror table tr{background-color:var(--table-color-background)}.text-editor__wrapper div.ProseMirror table tr:hover,.text-editor__wrapper div.ProseMirror table tr:active,.text-editor__wrapper div.ProseMirror table tr:focus{background-color:var(--table-color-background-hover)}.text-editor__wrapper div.ProseMirror table tr:first-child th:first-child{border-top-left-radius:var(--table-border-radius)}.text-editor__wrapper div.ProseMirror table tr:first-child th:last-child{border-top-right-radius:var(--table-border-radius)}.text-editor__wrapper div.ProseMirror table tr:last-child td:first-child{border-bottom-left-radius:var(--table-border-radius)}.text-editor__wrapper div.ProseMirror table tr:last-child td:last-child{border-bottom-right-radius:var(--table-border-radius)}.text-editor__wrapper .ProseMirror-focused .ProseMirror-gapcursor{display:block}.text-editor__wrapper .editor__content p.is-empty:first-child::before{content:attr(data-placeholder);float:left;color:var(--color-text-maxcontrast);pointer-events:none;height:0}.text-editor__wrapper .editor__content{tab-size:4}.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre{background-color:var(--color-main-background)}.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre::before{content:attr(data-language);text-transform:uppercase;display:block;text-align:right;font-weight:bold;font-size:.6rem}.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-comment,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-quote{color:#999}.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-variable,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-template-variable,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-attribute,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-tag,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-name,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-regexp,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-link,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-selector-id,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-selector-class{color:#f2777a}.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-number,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-meta,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-built_in,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-builtin-name,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-literal,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-type,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-params{color:#f99157}.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-string,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-symbol,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-bullet{color:#9c9}.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-title,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-section{color:#fc6}.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-keyword,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-selector-tag{color:#69c}.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-emphasis{font-style:italic}.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-strong{font-weight:700}.text-editor__wrapper .text-editor__main.draggedOver{background-color:var(--color-primary-light)}.text-editor__wrapper .text-editor__main .text-editor__content-wrapper{position:relative}#files-public-content{height:100%}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',"",{version:3,sources:["webpack://./css/style.scss","webpack://./css/print.scss","webpack://./css/prosemirror.scss","webpack://./src/components/Editor.vue"],names:[],mappings:"AAEA,MACC,+BAAA,CAGD,8BACC,iBAAA,CAGD,2BACC,yBAAA,CACA,4BAAA,CAEA,wCACC,wBAAA,CACA,4BAAA,CAGD,6CACC,wBAAA,CACA,4BAAA,CAIF,0BACC,sBAAA,CAID,4BACC,YAAA,CAEA,kCACC,UAAA,CACA,iBAAA,CACA,UAAA,CACA,UAAA,CAAA,QAAA,CAAA,WAAA,CACA,qBAAA,CACA,mBAAA,CAMD,4FACC,YAAA,CAIF,uBACC,YAAA,CACA,mBAAA,CACA,iBAAA,CAEA,6BACC,UAAA,CACA,aAAA,CACA,iBAAA,CACA,QAAA,CACA,UAAA,CACA,2CAAA,CACA,gEAAA,CAIF,oCACC,GACC,iBAAA,CAAA,CAIF,kBACC,gEAAA,CAGD,oBACC,6CAAA,CACA,iDAAA,CACA,iCACC,gBAAA,CAKF,sBACC,KACC,SAAA,CACA,kCAAA,CAGD,GACC,SAAA,CACA,8BAAA,CAAA,CAMF,sBACC,KACC,SAAA,CACA,kCAAA,CAGD,GACC,SAAA,CACA,8BAAA,CAAA,CAIF,YACC,yBAAA,CChHD,aACC,MACC,OAAA,CACA,0BAAA,CAGD,KAEC,iBAAA,CACA,2BAAA,CAGD,2BAEC,WAAA,CACA,qBAAA,CAEA,4BAAA,CAEA,yCAEC,uBAAA,CAED,4CAEC,OAAA,CACA,kBAAA,CAKD,2BAEC,uBAAA,CAED,0BAEC,uBAAA,CAED,8BAEC,cAAA,CAED,mCACC,kBAAA,CACA,cAAA,CAIA,gKAEC,iBAAA,CAED,wGAEC,uBAAA,CAEA,wBAAA,CACA,iCAAA,CAID,gCACC,qBAAA,CACA,2BAAA,CACA,mCAAA,CACA,4BAAA,CACA,6CAAA,CAED,6CACC,iCAAA,CAGD,gCACC,4CAAA,CACA,2BAAA,CACA,4BAAA,CAED,6CACC,sBAAA,CAKH,gDACC,YAAA,CAIA,6CACC,aAAA,CAGD,+CACC,UAAA,CACA,WAAA,CACA,cAAA,CACA,iBAAA,CAED,0DACC,YAAA,CAAA,CCjGH,sCACC,WAAA,CACA,iBAAA,CACA,oBAAA,CACA,oBAAA,CACA,mCAAA,CACA,2BAAA,CACA,0BAAA,CACA,gBAAA,CACA,cAAA,CACA,YAAA,CAEA,8CAEC,sBAAA,CAGD,oPAIC,sBAAA,CACA,UAAA,CACA,8BAAA,CACA,4BAAA,CACA,SAAA,CACA,wBAAA,CACA,gBAAA,CACA,cAAA,CAEA,wjBACC,0BAAA,CAIF,qDACC,YAAA,CACA,iBAAA,CAEA,iBAAA,CAEA,0EACC,YAAA,CAED,4DACC,UAAA,CACA,qBAAA,CACA,sBAAA,CACA,8CAAA,CACA,iBAAA,CACA,aAAA,CACA,kCAAA,CACA,WAAA,CACA,UAAA,CACA,0BAAA,CACA,0BAAA,CACA,cAAA,CAGA,oEACC,wDAAA,CACA,6CAAA,CACA,yCAAA,CAED,mEACC,mCAAA,CACA,4BAAA,CAGF,2DACC,aAAA,CACA,WAAA,CACA,2BAAA,CAIF,oDACC,eAAA,CAIA,8TACC,YAAA,CAIF,wCACC,kCAAA,CACA,yBAAA,CACA,cAAA,CAGD,wCACC,iBAAA,CACA,gBAAA,CAGD,yCACC,iBAAA,CAGD,sPAMC,eAAA,CACA,iBAAA,CACA,eAAA,CACA,kBAAA,CACA,4BAAA,CAGD,yCACC,cAAA,CAGD,yCACC,cAAA,CAGD,yCACC,cAAA,CAGD,yCACC,cAAA,CAGD,yCACC,cAAA,CAGD,yCACC,cAAA,CAGD,0CACC,cAAA,CACA,cAAA,CAGD,yCACC,aAAA,CACA,WAAA,CACA,YAAA,CACA,UAAA,CAGD,+CACC,UAAA,CACA,aAAA,CACA,UAAA,CACA,yCAAA,CACA,eAAA,CAGD,0CACC,oBAAA,CACA,6CAAA,CACA,kCAAA,CACA,iBAAA,CACA,iBAAA,CAGD,sDACC,iBAAA,CACA,kDAAA,CAGD,8DACC,aAAA,CACA,wBAAA,CACA,mCAAA,CACA,mBAAA,CAGD,6CACC,6CAAA,CACA,kCAAA,CACA,iBAAA,CAGD,yCACC,iBAAA,CACA,gBAAA,CAEA,2CACC,kBAAA,CAIF,kFACC,iBAAA,CACA,gBAAA,CACA,iBAAA,CAGD,4CACC,oBAAA,CAID,+CACC,sBAAA,CAID,kDACC,sBAAA,CAGD,iDACC,gBAAA,CACA,kDAAA,CACA,mCAAA,CACA,aAAA,CACA,cAAA,CAIQ,MACR,yCAAA,CACA,oDAAA,CACA,sDAAA,CACA,sDAAA,CACA,0DAAA,CACA,2CAAA,CAGD,4CACC,gBAAA,CACA,uBAAA,CACA,iBAAA,CACA,kBAAA,CACA,iBAAA,CACA,4CACC,cAAA,CAID,8FACC,0CAAA,CACA,aAAA,CACA,kBAAA,CACA,cAAA,CACA,sHACC,+CAAA,CAGF,+CACC,kBAAA,CACA,YAAA,CACA,4BAAA,CAED,+CACC,mBAAA,CACA,kBAAA,CACA,qDAAA,CACA,gCAAA,CAEA,mDACC,YAAA,CAGF,+CACC,8CAAA,CACA,gKACC,oDAAA,CAKD,0EAAA,iDAAA,CACA,yEAAA,kDAAA,CAIA,yEAAA,oDAAA,CACA,wEAAA,qDAAA,CAOH,kEACC,aAAA,CAGD,sEACC,8BAAA,CACA,UAAA,CACA,mCAAA,CACA,mBAAA,CACA,QAAA,CAGD,uCACC,UAAA,CCvSC,4DACC,6CAAA,CAEA,oEACC,2BAAA,CACA,wBAAA,CACA,aAAA,CACA,gBAAA,CACA,gBAAA,CACA,eAAA,CAGA,4JAEC,UAAA,CAED,otBASC,aAAA,CAED,uiBAOC,aAAA,CAED,0OAGC,UAAA,CAED,4JAEC,UAAA,CAED,mKAEC,UAAA,CAED,gFACC,iBAAA,CAED,8EACC,eAAA,CAQH,qDACC,2CAAA,CAED,uEACC,iBAAA,CAOH,sBACC,WAAA,CAGD,gBACC,GAAA,sBAAA,CACA,KAAA,wBAAA,CAAA",sourcesContent:["@use 'sass:math';\n\n:root {\n\t--text-editor-max-width: 670px\n}\n\n.modal-container .text-editor {\n\tposition: absolute;\n}\n\n.ProseMirror-hideselection {\n\tcaret-color: transparent;\n\tcolor: var(--color-main-text);\n\n\t*::selection {\n\t\tbackground: transparent;\n\t\tcolor: var(--color-main-text);\n\t}\n\n\t*::-moz-selection {\n\t\tbackground: transparent;\n\t\tcolor: var(--color-main-text);\n\t}\n}\n\n.ProseMirror-selectednode {\n\toutline: 2px solid #8cf;\n}\n\n/* Make sure li selections wrap around markers */\nli.ProseMirror-selectednode {\n\toutline: none;\n\n\t&:after {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tleft: -32px;\n\t\tright: -2px; top: -2px; bottom: -2px;\n\t\tborder: 2px solid #8cf;\n\t\tpointer-events: none;\n\t}\n}\n\n.has-conflicts,\n.text-editor__wrapper.icon-loading {\n\t.ProseMirror-menubar {\n\t\tdisplay: none;\n\t}\n}\n\n.ProseMirror-gapcursor {\n\tdisplay: none;\n\tpointer-events: none;\n\tposition: absolute;\n\n\t&:after {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\ttop: -2px;\n\t\twidth: 20px;\n\t\tborder-top: 1px solid var(--color-main-text);\n\t\tanimation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n\t}\n}\n\n@keyframes ProseMirror-cursor-blink {\n\tto {\n\t\tvisibility: hidden;\n\t}\n}\n\n.animation-rotate {\n\tanimation: rotate var(--animation-duration, 0.8s) linear infinite;\n}\n\n[data-handler='text'] {\n\tbackground-color: var(--color-main-background);\n\tborder-top: 3px solid var(--color-primary-element);\n\t.modal-title {\n\t\tfont-weight: bold;\n\t}\n}\n\n// from https://github.com/animate-css/animate.css/blob/main/source/fading_entrances/fadeInDown.css\n@keyframes fadeInDown {\n\tfrom {\n\t\topacity: 0;\n\t\ttransform: translate3d(0, -100%, 0);\n\t}\n\n\tto {\n\t\topacity: 1;\n\t\ttransform: translate3d(0, 0, 0);\n\t}\n}\n\n\n// from https://github.com/animate-css/animate.css/blob/main/source/fading_entrances/fadeInLeft.css\n@keyframes fadeInLeft {\n\tfrom {\n\t\topacity: 0;\n\t\ttransform: translate3d(-100%, 0, 0);\n\t}\n\n\tto {\n\t\topacity: 1;\n\t\ttransform: translate3d(0, 0, 0);\n\t}\n}\n\n.fadeInLeft {\n\tanimation-name: fadeInLeft;\n}\n","@media print {\n\t@page {\n\t\tsize: A4;\n\t\tmargin: 2.5cm 2cm 2cm 2.5cm;\n\t}\n\n\tbody {\n\t\t// position: fixed does not support scrolling and as such only prints one page\n\t\tposition: absolute;\n\t\toverflow: visible!important;\n\t}\n\n\t#viewer[data-handler='text'] {\n\t\t// Hide top border\n\t\tborder: none;\n\t\twidth: 100%!important;\n\t\t// NcModal uses fixed, which will be cropped when printed\n\t\tposition: absolute!important;\n\n\t\t.modal-header {\n\t\t\t// Hide modal header (close button)\n\t\t\tdisplay: none!important;\n\t\t}\n\t\t.modal-container {\n\t\t\t// Make sure top aligned as we hided the menubar */\n\t\t\ttop: 0px;\n\t\t\theight: fit-content;\n\t\t}\n\t}\n\n\t.text-editor {\n\t\t.text-menubar {\n\t\t\t// Hide menu bar\n\t\t\tdisplay: none!important;\n\t\t}\n\t\t.action-item {\n\t\t\t// Hide table settings\n\t\t\tdisplay: none!important;\n\t\t}\n\t\t.editor__content {\n\t\t\t// Margins set by page rule\n\t\t\tmax-width: 100%;\n\t\t}\n\t\t.text-editor__wrapper {\n\t\t\theight: fit-content;\n\t\t\tposition: unset;\n\t\t}\n\n\t\tdiv.ProseMirror {\n\t\t\th1, h2, h3, h4, h5 {\n\t\t\t\t// orphaned headlines are ugly\n\t\t\t\tbreak-after: avoid;\n\t\t\t}\n\t\t\t.image, img, table {\n\t\t\t\t// try no page breaks within tables or images\n\t\t\t\tbreak-inside: avoid-page;\n\t\t\t\t// Some more indention\n\t\t\t\tmax-width: 90%!important;\n\t\t\t\tmargin: 5vw auto 5vw 5%!important;\n\t\t\t}\n\n\t\t\t// Add some borders below header and between columns\n\t\t\tth {\n\t\t\t\tcolor: black!important;\n\t\t\t\tfont-weight: bold!important;\n\t\t\t\tborder-width: 0 1px 2px 0!important;\n\t\t\t\tborder-color: gray!important;\n\t\t\t\tborder-style: none solid solid none!important;\n\t\t\t}\n\t\t\tth:last-of-type {\n\t\t\t\tborder-width: 0 0 2px 0!important;\n\t\t\t}\n\n\t\t\ttd {\n\t\t\t\tborder-style: none solid none none!important;\n\t\t\t\tborder-width: 1px!important;\n\t\t\t\tborder-color: gray!important;\n\t\t\t}\n\t\t\ttd:last-of-type {\n\t\t\t\tborder: none!important;\n\t\t\t}\n\t\t}\n\t}\n\n\t.menubar-placeholder, .text-editor--readonly-bar {\n\t\tdisplay: none;\n\t}\n\n\t.text-editor__content-wrapper {\n\t\t&.--show-outline {\n\t\t\tdisplay: block;\n\t\t}\n\n\t\t.editor--outline {\n\t\t\twidth: auto;\n\t\t\theight: auto;\n\t\t\toverflow: unset;\n\t\t\tposition: relative;\n\t\t}\n\t\t.editor--outline__btn-close {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n","@use 'sass:selector';\n\n/* Document rendering styles */\ndiv.ProseMirror {\n\theight: 100%;\n\tposition: relative;\n\tword-wrap: break-word;\n\twhite-space: pre-wrap;\n\t-webkit-font-variant-ligatures: none;\n\tfont-variant-ligatures: none;\n\tpadding: 4px 8px 200px 14px;\n\tline-height: 150%;\n\tfont-size: 14px;\n\toutline: none;\n\n\t:target {\n\t\t// Menubar height: 44px + 3px bottom + 3px top padding\n\t\tscroll-margin-top: 50px;\n\t}\n\n\t&[contenteditable=true],\n\t&[contenteditable=false],\n\t[contenteditable=true],\n\t[contenteditable=false] {\n\t\tborder: none !important;\n\t\twidth: 100%;\n\t\tbackground-color: transparent;\n\t\tcolor: var(--color-main-text);\n\t\topacity: 1;\n\t\t-webkit-user-select: text;\n\t\tuser-select: text;\n\t\tfont-size: 14px;\n\n\t\t&:focus, &:focus-visible {\n\t\t\tbox-shadow: none !important;\n\t\t}\n\t}\n\n\t.checkbox-item {\n\t\tdisplay: flex;\n\t\talign-items: start;\n\t\t// Left-align with list item text\n\t\tmargin-left: -23px;\n\n\t\tinput[type=checkbox] {\n\t\t\tdisplay: none;\n\t\t}\n\t\t&:before {\n\t\t\tcontent: '';\n\t\t\tvertical-align: middle;\n\t\t\tmargin: 3px 6px 3px 2px;\n\t\t\tborder: 1px solid var(--color-text-maxcontrast);\n\t\t\tposition: relative;\n\t\t\tdisplay: block;\n\t\t\tborder-radius: var(--border-radius);\n\t\t\theight: 14px;\n\t\t\twidth: 14px;\n\t\t\tbox-shadow: none !important;\n\t\t\tbackground-position: center;\n\t\t\tcursor: pointer;\n\t\t}\n\t\t&.checked{\n\t\t\t&:before {\n\t\t\t\tbackground-image: url('../../img/checkbox-mark.svg');\n\t\t\t\tbackground-color: var(--color-primary-element);\n\t\t\t\tborder-color: var(--color-primary-element);\n\t\t\t}\n\t\t\tlabel {\n\t\t\t\tcolor: var(--color-text-maxcontrast);\n\t\t\t\ttext-decoration: line-through;\n\t\t\t}\n\t\t}\n\t\tlabel {\n\t\t\tdisplay: block;\n\t\t\tflex-grow: 1;\n\t\t\tmax-width: calc(100% - 28px);\n\t\t}\n\t}\n\n\t> *:first-child {\n\t\tmargin-top: 10px;\n\t}\n\n\t> h1,h2,h3,h4,h5,h6 {\n\t\t&:first-child {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\n\ta {\n\t\tcolor: var(--color-primary-element);\n\t\ttext-decoration: underline;\n\t\tpadding: .5em 0;\n\t}\n\n\tp {\n\t\tmargin-bottom: 1em;\n\t\tline-height: 150%;\n\t}\n\n\tem {\n\t\tfont-style: italic;\n\t}\n\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6 {\n\t\tfont-weight: 600;\n\t\tline-height: 1.1em;\n\t\tmargin-top: 24px;\n\t\tmargin-bottom: 12px;\n\t\tcolor: var(--color-main-text);\n\t}\n\n\th1 {\n\t\tfont-size: 36px;\n\t}\n\n\th2 {\n\t\tfont-size: 30px;\n\t}\n\n\th3 {\n\t\tfont-size: 24px;\n\t}\n\n\th4 {\n\t\tfont-size: 21px;\n\t}\n\n\th5 {\n\t\tfont-size: 17px;\n\t}\n\n\th6 {\n\t\tfont-size: 14px;\n\t}\n\n\timg {\n\t\tcursor: default;\n\t\tmax-width: 100%;\n\t}\n\n\thr {\n\t\tpadding: 2px 0;\n\t\tborder: none;\n\t\tmargin: 2em 0;\n\t\twidth: 100%;\n\t}\n\n\thr:after {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\theight: 1px;\n\t\tbackground-color: var(--color-border-dark);\n\t\tline-height: 2px;\n\t}\n\n\tpre {\n\t\twhite-space: pre-wrap;\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: 1em 1.3em;\n\t\tmargin-bottom: 1em;\n\t}\n\n\tpre.frontmatter {\n\t\tmargin-bottom: 2em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t}\n\n\tpre.frontmatter::before {\n\t\tdisplay: block;\n\t\tcontent: attr(data-title);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tpadding-bottom: 0.5em;\n\t}\n\n\tp code {\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: .1em .3em;\n\t}\n\n\tli {\n\t\tposition: relative;\n\t\tpadding-left: 3px;\n\n\t\tp {\n\t\t\tmargin-bottom: 0.5em;\n\t\t}\n\t}\n\n\tul, ol {\n\t\tpadding-left: 10px;\n\t\tmargin-left: 10px;\n\t\tmargin-bottom: 1em;\n\t}\n\n\tul > li {\n\t\tlist-style-type: disc;\n\t}\n\n\t// Second-level list entries\n\tli ul > li {\n\t\tlist-style-type: circle;\n\t}\n\n\t// Third-level and further down list entries\n\tli li ul > li {\n\t\tlist-style-type: square;\n\t}\n\n\tblockquote {\n\t\tpadding-left: 1em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tmargin-left: 0;\n\t\tmargin-right: 0;\n\t}\n\n\t// table variables\n\t@at-root :root {\n\t\t--table-color-border: var(--color-border);\n\t\t--table-color-heading: var(--color-text-maxcontrast);\n\t\t--table-color-heading-border: var(--color-border-dark);\n\t\t--table-color-background: var(--color-main-background);\n\t\t--table-color-background-hover: var(--color-primary-light);\n\t\t--table-border-radius: var(--border-radius);\n\t}\n\n\ttable {\n\t\tborder-spacing: 0;\n\t\twidth: calc(100% - 50px);\n\t\ttable-layout: auto;\n\t\twhite-space: normal; // force text to wrapping\n\t\tmargin-bottom: 1em;\n\t\t+ & {\n\t\t\tmargin-top: 1em;\n\t\t}\n\n\n\t\ttd, th {\n\t\t\tborder: 1px solid var(--table-color-border);\n\t\t\tborder-left: 0;\n\t\t\tvertical-align: top;\n\t\t\tmax-width: 100%;\n\t\t\t&:first-child {\n\t\t\t\tborder-left: 1px solid var(--table-color-border);\n\t\t\t}\n\t\t}\n\t\ttd {\n\t\t\tpadding: 0.5em 0.75em;\n\t\t\tborder-top: 0;\n\t\t\tcolor: var(--color-main-text);\n\t\t}\n\t\tth {\n\t\t\tpadding: 0 0 0 0.75em;\n\t\t\tfont-weight: normal;\n\t\t\tborder-bottom-color: var(--table-color-heading-border);\n\t\t\tcolor: var(--table-color-heading);\n\n\t\t\t& > div {\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t}\n\t\ttr {\n\t\t\tbackground-color: var(--table-color-background);\n\t\t\t&:hover, &:active, &:focus {\n\t\t\t\tbackground-color: var(--table-color-background-hover);\n\t\t\t}\n\t\t}\n\n\t\ttr:first-child {\n\t\t\tth:first-child { border-top-left-radius: var(--table-border-radius); }\n\t\t\tth:last-child { border-top-right-radius: var(--table-border-radius); }\n\t\t}\n\n\t\ttr:last-child {\n\t\t\ttd:first-child { border-bottom-left-radius: var(--table-border-radius); }\n\t\t\ttd:last-child { border-bottom-right-radius: var(--table-border-radius); }\n\t\t}\n\n\t}\n\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n\tdisplay: block;\n}\n\n.editor__content p.is-empty:first-child::before {\n\tcontent: attr(data-placeholder);\n\tfloat: left;\n\tcolor: var(--color-text-maxcontrast);\n\tpointer-events: none;\n\theight: 0;\n}\n\n.editor__content {\n\ttab-size: 4;\n}\n","\n@import './../../css/style';\n@import './../../css/print';\n\n.text-editor__wrapper {\n\t@import './../../css/prosemirror';\n\n\t&:not(.is-rich-editor) .ProseMirror {\n\t\tpre {\n\t\t\tbackground-color: var(--color-main-background);\n\n\t\t\t&::before {\n\t\t\t\tcontent: attr(data-language);\n\t\t\t\ttext-transform: uppercase;\n\t\t\t\tdisplay: block;\n\t\t\t\ttext-align: right;\n\t\t\t\tfont-weight: bold;\n\t\t\t\tfont-size: 0.6rem;\n\t\t\t}\n\t\t\tcode {\n\t\t\t\t.hljs-comment,\n\t\t\t\t.hljs-quote {\n\t\t\t\t\tcolor: #999999;\n\t\t\t\t}\n\t\t\t\t.hljs-variable,\n\t\t\t\t.hljs-template-variable,\n\t\t\t\t.hljs-attribute,\n\t\t\t\t.hljs-tag,\n\t\t\t\t.hljs-name,\n\t\t\t\t.hljs-regexp,\n\t\t\t\t.hljs-link,\n\t\t\t\t.hljs-selector-id,\n\t\t\t\t.hljs-selector-class {\n\t\t\t\t\tcolor: #f2777a;\n\t\t\t\t}\n\t\t\t\t.hljs-number,\n\t\t\t\t.hljs-meta,\n\t\t\t\t.hljs-built_in,\n\t\t\t\t.hljs-builtin-name,\n\t\t\t\t.hljs-literal,\n\t\t\t\t.hljs-type,\n\t\t\t\t.hljs-params {\n\t\t\t\t\tcolor: #f99157;\n\t\t\t\t}\n\t\t\t\t.hljs-string,\n\t\t\t\t.hljs-symbol,\n\t\t\t\t.hljs-bullet {\n\t\t\t\t\tcolor: #99cc99;\n\t\t\t\t}\n\t\t\t\t.hljs-title,\n\t\t\t\t.hljs-section {\n\t\t\t\t\tcolor: #ffcc66;\n\t\t\t\t}\n\t\t\t\t.hljs-keyword,\n\t\t\t\t.hljs-selector-tag {\n\t\t\t\t\tcolor: #6699cc;\n\t\t\t\t}\n\t\t\t\t.hljs-emphasis {\n\t\t\t\t\tfont-style: italic;\n\t\t\t\t}\n\t\t\t\t.hljs-strong {\n\t\t\t\t\tfont-weight: 700;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// relative position for the alignment of the menububble\n\t.text-editor__main {\n\t\t&.draggedOver {\n\t\t\tbackground-color: var(--color-primary-light);\n\t\t}\n\t\t.text-editor__content-wrapper {\n\t\t\tposition: relative;\n\t\t}\n\t}\n}\n\n// Required in order to make the public pages behave the same if talk is enabled or not\n// as Talk overwrites the public page styles and changes the DOM layout for the sidebar injection\n#files-public-content {\n\theight: 100%;\n}\n\n@keyframes spin {\n\t0% { transform: rotate(0deg); }\n\t100% { transform: rotate(360deg); }\n}\n"],sourceRoot:""}]);const A=d},52130:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".editor__content[data-v-3850603b]{max-width:var(--text-editor-max-width);margin:auto;position:relative;width:100%}.ie .editor__content[data-v-3850603b] .ProseMirror{padding-top:50px}.text-editor__content-wrapper[data-v-3850603b]{--side-width: calc((100% - var(--text-editor-max-width)) / 2);display:grid;grid-template-columns:1fr auto}.text-editor__content-wrapper.--show-outline[data-v-3850603b]{grid-template-columns:var(--side-width) auto var(--side-width)}.text-editor__content-wrapper .text-editor__content-wrapper__left[data-v-3850603b],.text-editor__content-wrapper .text-editor__content-wrapper__right[data-v-3850603b]{height:100%;position:relative}.is-rich-workspace .text-editor__content-wrapper[data-v-3850603b]{--side-width: var(--text-editor-max-width);grid-template-columns:var(--side-width) auto}.is-rich-workspace .text-editor__content-wrapper .text-editor__content-wrapper__left[data-v-3850603b],.is-rich-workspace .text-editor__content-wrapper .text-editor__content-wrapper__right[data-v-3850603b]{display:none}","",{version:3,sources:["webpack://./src/components/Editor/ContentContainer.vue"],names:[],mappings:"AACA,kCACC,sCAAA,CACA,WAAA,CACA,iBAAA,CACA,UAAA,CAIA,mDACC,gBAAA,CAIF,+CACC,6DAAA,CACA,YAAA,CACA,8BAAA,CACA,8DACC,8DAAA,CAED,uKAEC,WAAA,CACA,iBAAA,CAKD,kEACC,0CAAA,CACA,4CAAA,CACA,6MAEC,YAAA",sourcesContent:["\n.editor__content {\n\tmax-width: var(--text-editor-max-width);\n\tmargin: auto;\n\tposition: relative;\n\twidth: 100%;\n}\n\n.ie {\n\t.editor__content:deep(.ProseMirror) {\n\t\tpadding-top: 50px;\n\t}\n}\n\n.text-editor__content-wrapper {\n\t--side-width: calc((100% - var(--text-editor-max-width)) / 2);\n\tdisplay: grid;\n\tgrid-template-columns: 1fr auto;\n\t&.--show-outline {\n\t\tgrid-template-columns: var(--side-width) auto var(--side-width);\n\t}\n\t.text-editor__content-wrapper__left,\n\t.text-editor__content-wrapper__right {\n\t\theight: 100%;\n\t\tposition: relative;\n\t}\n}\n\n.is-rich-workspace {\n\t.text-editor__content-wrapper {\n\t\t--side-width: var(--text-editor-max-width);\n\t\tgrid-template-columns: var(--side-width) auto;\n\t\t.text-editor__content-wrapper__left,\n\t\t.text-editor__content-wrapper__right {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=a},24198:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".document-status[data-v-a9040100]{position:relative;background-color:var(--color-main-background)}.document-status .msg[data-v-a9040100]{padding:12px;background-position:8px center;color:var(--color-text-maxcontrast)}.document-status .msg.icon-error[data-v-a9040100]{padding-left:30px}.document-status .msg .button[data-v-a9040100]{margin-left:8px}.document-status .msg.msg-locked .lock-icon[data-v-a9040100]{padding:0 10px;float:left}","",{version:3,sources:["webpack://./src/components/Editor/DocumentStatus.vue"],names:[],mappings:"AACA,kCACC,iBAAA,CACA,6CAAA,CAEA,uCACC,YAAA,CACA,8BAAA,CACA,mCAAA,CAEA,kDACC,iBAAA,CAGD,+CACC,eAAA,CAGD,6DACC,cAAA,CACA,UAAA",sourcesContent:["\n.document-status {\n\tposition: relative;\n\tbackground-color: var(--color-main-background);\n\n\t.msg {\n\t\tpadding: 12px;\n\t\tbackground-position: 8px center;\n\t\tcolor: var(--color-text-maxcontrast);\n\n\t\t&.icon-error {\n\t\t\tpadding-left: 30px;\n\t\t}\n\n\t\t.button {\n\t\t\tmargin-left: 8px;\n\t\t}\n\n\t\t&.msg-locked .lock-icon {\n\t\t\tpadding: 0 10px;\n\t\t\tfloat: left;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=a},38334:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".editor--outline[data-v-685e37af]{width:300px;padding:0 10px;position:fixed;height:calc(100% - 100px);overflow:auto}.editor--outline-mobile[data-v-685e37af]{box-shadow:8px 0 17px -19px var(--color-box-shadow);background-color:var(--color-main-background-translucent);z-index:1}.editor--outline__header[data-v-685e37af]{margin:0;position:sticky;padding:.6em .6em .6em 0;display:flex;align-items:center}.editor--outline__header h2[data-v-685e37af]{font-size:1rem;line-height:1.1rem;flex-grow:1;padding:0;margin:0}","",{version:3,sources:["webpack://./src/components/Editor/EditorOutline.vue"],names:[],mappings:"AACA,kCACC,WAAA,CACA,cAAA,CACA,cAAA,CACA,yBAAA,CACA,aAAA,CAEA,yCACC,mDAAA,CACA,yDAAA,CACA,SAAA,CAGD,0CACC,QAAA,CACA,eAAA,CACA,wBAAA,CACA,YAAA,CACA,kBAAA,CAEA,6CACC,cAAA,CACA,kBAAA,CACA,WAAA,CACA,SAAA,CACA,QAAA",sourcesContent:["\n.editor--outline {\n\twidth: 300px;\n\tpadding: 0 10px;\n\tposition: fixed;\n\theight: calc(100% - 100px);\n\toverflow: auto;\n\n\t&-mobile {\n\t\tbox-shadow: 8px 0 17px -19px var(--color-box-shadow);\n\t\tbackground-color: var(--color-main-background-translucent);\n\t\tz-index: 1;\n\t}\n\n\t&__header {\n\t\tmargin: 0;\n\t\tposition: sticky;\n\t\tpadding: 0.6em 0.6em 0.6em 0;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\n\t\th2 {\n\t\t\tfont-size: 1rem;\n\t\t\tline-height: 1.1rem;\n\t\t\tflex-grow: 1;\n\t\t\tpadding: 0;\n\t\t\tmargin: 0;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=a},63812:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".text-editor__main[data-v-7d451d50],.editor[data-v-7d451d50]{background:var(--color-main-background);color:var(--color-main-text);background-clip:padding-box;border-radius:var(--border-radius);padding:0;position:relative;overflow-y:auto;overflow-x:hidden;width:100%}","",{version:3,sources:["webpack://./src/components/Editor/MainContainer.vue"],names:[],mappings:"AACA,6DACC,uCAAA,CACA,4BAAA,CACA,2BAAA,CACA,kCAAA,CACA,SAAA,CACA,iBAAA,CACA,eAAA,CACA,iBAAA,CACA,UAAA",sourcesContent:["\n.text-editor__main, .editor {\n\tbackground: var(--color-main-background);\n\tcolor: var(--color-main-text);\n\tbackground-clip: padding-box;\n\tborder-radius: var(--border-radius);\n\tpadding: 0;\n\tposition: relative;\n\toverflow-y: auto;\n\toverflow-x: hidden;\n\twidth: 100%;\n}\n"],sourceRoot:""}]);const s=a},37708:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".text-editor__session-list[data-v-5d3d5888]{display:flex}.text-editor__session-list input[data-v-5d3d5888],.text-editor__session-list div[data-v-5d3d5888]{vertical-align:middle;margin-left:3px}.save-status[data-v-5d3d5888]{display:inline-flex;padding:0;text-overflow:ellipsis;color:var(--color-text-lighter);position:relative;top:9px;min-width:85px;max-height:36px}.save-status.error[data-v-5d3d5888]{background-color:var(--color-error);color:var(--color-main-background);border-radius:3px}","",{version:3,sources:["webpack://./src/components/Editor/Status.vue"],names:[],mappings:"AAEA,4CACC,YAAA,CAEA,kGACC,qBAAA,CACA,eAAA,CAIF,8BACC,mBAAA,CACA,SAAA,CACA,sBAAA,CACA,+BAAA,CACA,iBAAA,CACA,OAAA,CACA,cAAA,CACA,eAAA,CAEA,oCACC,mCAAA,CACA,kCAAA,CACA,iBAAA",sourcesContent:["\n\n.text-editor__session-list {\n\tdisplay: flex;\n\n\tinput, div {\n\t\tvertical-align: middle;\n\t\tmargin-left: 3px;\n\t}\n}\n\n.save-status {\n\tdisplay: inline-flex;\n\tpadding: 0;\n\ttext-overflow: ellipsis;\n\tcolor: var(--color-text-lighter);\n\tposition: relative;\n\ttop: 9px;\n\tmin-width: 85px;\n\tmax-height: 36px;\n\n\t&.error {\n\t\tbackground-color: var(--color-error);\n\t\tcolor: var(--color-main-background);\n\t\tborder-radius: 3px;\n\t}\n}\n"],sourceRoot:""}]);const s=a},78285:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".saved-status,.saving-status{display:inline-flex;padding:0;text-overflow:ellipsis;color:var(--color-text-lighter);background-color:var(--color-main-background);width:38px !important;height:38px !important;z-index:2}.saved-status{border:2px solid #04aa6d;border-radius:50%}.saving-status{border:2px solid #f3f3f3;border-top:2px solid #3498db;border-radius:50%;animation:spin 2s linear infinite}.last-saved{padding:6px}","",{version:3,sources:["webpack://./src/components/Editor/Status.vue"],names:[],mappings:"AACA,6BACC,mBAAA,CACA,SAAA,CACA,sBAAA,CACA,+BAAA,CACA,6CAAA,CACA,qBAAA,CACA,sBAAA,CACA,SAAA,CAGD,cACC,wBAAA,CACA,iBAAA,CAGD,eACC,wBAAA,CACA,4BAAA,CACA,iBAAA,CACA,iCAAA,CAGD,YACC,WAAA",sourcesContent:["\n.saved-status,.saving-status {\n\tdisplay: inline-flex;\n\tpadding: 0;\n\ttext-overflow: ellipsis;\n\tcolor: var(--color-text-lighter);\n\tbackground-color: var(--color-main-background);\n\twidth: 38px !important;\n\theight: 38px !important;\n\tz-index: 2;\n}\n\n.saved-status {\n\tborder: 2px solid #04AA6D;\n\tborder-radius: 50%;\n}\n\n.saving-status {\n\tborder: 2px solid #f3f3f3;\n\tborder-top: 2px solid #3498db;\n\tborder-radius: 50%;\n\tanimation: spin 2s linear infinite;\n}\n\n.last-saved {\n\tpadding: 6px;\n}\n"],sourceRoot:""}]);const s=a},73741:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".--initial-render .editor--toc__item{--initial-padding-left: 0;animation:initialPadding 1.5s}.editor--toc{padding:0 10px;color:var(--color-main-text-maxcontrast);--animation-duration: 0.8s}.editor--toc h3{padding-left:.75rem}.editor--toc__list{width:100%;list-style:none;font-size:.9rem;padding:0;animation-name:fadeInLeft;animation-duration:var(--animation-duration)}.editor--toc__item{transform:translateX(var(--padding-left, 0rem));text-overflow:ellipsis;overflow:hidden;white-space:nowrap;animation:initialPadding calc(var(--animation-duration)*2)}.editor--toc__item a:hover{color:var(--color-primary-hover)}.editor--toc__item--1{--padding-left: 0rem;font-weight:600}.editor--toc__item--1:not(:nth-child(1)){margin-top:.5rem}.editor--toc__item--2{--padding-left: 1rem}.editor--toc__item--3{--padding-left: 2rem}.editor--toc__item--4{--padding-left: 3rem}.editor--toc__item--5{--padding-left: 4rem}.editor--toc__item--6{--padding-left: 5rem}.editor--toc__item--previous-1{--initial-padding-left: 0rem }.editor--toc__item--previous-2{--initial-padding-left: 1rem }.editor--toc__item--previous-3{--initial-padding-left: 2rem }.editor--toc__item--previous-4{--initial-padding-left: 3rem }.editor--toc__item--previous-5{--initial-padding-left: 4rem }.editor--toc__item--previous-6{--initial-padding-left: 5rem }@keyframes initialPadding{from{transform:translateX(var(--initial-padding-left, initial))}to{transform:translateX(var(--padding-left, 0rem))}}","",{version:3,sources:["webpack://./src/components/Editor/TableOfContents.vue"],names:[],mappings:"AAGE,qCACC,yBAAA,CACA,6BAAA,CAKH,aACC,cAAA,CACA,wCAAA,CACA,0BAAA,CAEA,gBACC,mBAAA,CAGD,mBACC,UAAA,CACA,eAAA,CACA,eAAA,CACA,SAAA,CAEA,yBAAA,CACA,4CAAA,CAGD,mBACC,+CAAA,CACA,sBAAA,CACA,eAAA,CACA,kBAAA,CACA,0DAAA,CAEA,2BACC,gCAAA,CAGD,sBACC,oBAAA,CACA,eAAA,CACA,yCACC,gBAAA,CAIF,sBACC,oBAAA,CAGD,sBACC,oBAAA,CAGD,sBACC,oBAAA,CAGD,sBACC,oBAAA,CAGD,sBACC,oBAAA,CAGD,+BACC,6BAAA,CAGD,+BACC,6BAAA,CAGD,+BACC,6BAAA,CAGD,+BACC,6BAAA,CAGD,+BACC,6BAAA,CAGD,+BACC,6BAAA,CAKH,0BACE,KACD,0DAAA,CAGC,GACD,+CAAA,CAAA",sourcesContent:["\n.--initial-render {\n\t.editor--toc {\n\t\t&__item {\n\t\t\t--initial-padding-left: 0;\n\t\t\tanimation: initialPadding 1.5s;\n\t\t}\n\t}\n}\n\n.editor--toc {\n\tpadding: 0 10px;\n\tcolor: var(--color-main-text-maxcontrast);\n\t--animation-duration: 0.8s;\n\n\th3 {\n\t\tpadding-left: 0.75rem;\n\t}\n\n\t&__list {\n\t\twidth: 100%;\n\t\tlist-style: none;\n\t\tfont-size: 0.9rem;\n\t\tpadding: 0;\n\n\t\tanimation-name: fadeInLeft;\n\t\tanimation-duration: var(--animation-duration);\n\t}\n\n\t&__item {\n\t\ttransform: translateX(var(--padding-left, 0rem));\n\t\ttext-overflow: ellipsis;\n\t\toverflow: hidden;\n\t\twhite-space: nowrap;\n\t\tanimation: initialPadding calc(var(--animation-duration) * 2);\n\n\t\ta:hover {\n\t\t\tcolor: var(--color-primary-hover);\n\t\t}\n\n\t\t&--1 {\n\t\t\t--padding-left: 0rem;\n\t\t\tfont-weight: 600;\n\t\t\t&:not(:nth-child(1)) {\n\t\t\t\tmargin-top: 0.5rem;\n\t\t\t}\n\t\t}\n\n\t\t&--2 {\n\t\t\t--padding-left: 1rem;\n\t\t}\n\n\t\t&--3 {\n\t\t\t--padding-left: 2rem;\n\t\t}\n\n\t\t&--4 {\n\t\t\t--padding-left: 3rem;\n\t\t}\n\n\t\t&--5 {\n\t\t\t--padding-left: 4rem;\n\t\t}\n\n\t\t&--6 {\n\t\t\t--padding-left: 5rem;\n\t\t}\n\n\t\t&--previous-1 {\n\t\t\t--initial-padding-left: 0rem\n\t\t}\n\n\t\t&--previous-2 {\n\t\t\t--initial-padding-left: 1rem\n\t\t}\n\n\t\t&--previous-3 {\n\t\t\t--initial-padding-left: 2rem\n\t\t}\n\n\t\t&--previous-4 {\n\t\t\t--initial-padding-left: 3rem\n\t\t}\n\n\t\t&--previous-5 {\n\t\t\t--initial-padding-left: 4rem\n\t\t}\n\n\t\t&--previous-6 {\n\t\t\t--initial-padding-left: 5rem\n\t\t}\n\t}\n}\n\n@keyframes initialPadding {\n from {\n\ttransform: translateX(var(--initial-padding-left, initial));\n }\n\n to {\n\ttransform: translateX(var(--padding-left, 0rem));\n }\n}\n\n"],sourceRoot:""}]);const s=a},3274:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".text-editor__wrapper[data-v-068e7935]{display:flex;width:100%;height:100%;overflow:hidden;position:absolute}.text-editor__wrapper.show-color-annotations[data-v-068e7935] .author-annotation{padding-top:2px;padding-bottom:2px}.text-editor__wrapper[data-v-068e7935]:not(.show-color-annotations) .author-annotation,.text-editor__wrapper[data-v-068e7935]:not(.show-color-annotations) .image{background-color:rgba(0,0,0,0) !important}.text-editor__wrapper .ProseMirror[data-v-068e7935]{margin-top:0 !important}.text-editor__wrapper.icon-loading .text-editor__main[data-v-068e7935]{opacity:.3}","",{version:3,sources:["webpack://./src/components/Editor/Wrapper.vue"],names:[],mappings:"AAEA,uCACC,YAAA,CACA,UAAA,CACA,WAAA,CACA,eAAA,CACA,iBAAA,CAEA,iFACC,eAAA,CACA,kBAAA,CAGD,kKAEC,yCAAA,CAGD,oDACC,uBAAA,CAGA,uEACC,UAAA",sourcesContent:["\n\n.text-editor__wrapper {\n\tdisplay: flex;\n\twidth: 100%;\n\theight: 100%;\n\toverflow: hidden;\n\tposition: absolute;\n\n\t&.show-color-annotations:deep(.author-annotation) {\n\t\tpadding-top: 2px;\n\t\tpadding-bottom: 2px;\n\t}\n\n\t&:not(.show-color-annotations):deep(.author-annotation),\n\t&:not(.show-color-annotations):deep(.image) {\n\t\tbackground-color: transparent !important;\n\t}\n\n\t.ProseMirror {\n\t\tmargin-top: 0 !important;\n\t}\n\t&.icon-loading {\n\t\t.text-editor__main {\n\t\t\topacity: 0.3;\n\t\t}\n\t}\n}\n\n"],sourceRoot:""}]);const s=a},85885:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".emoji-list[data-v-7a04fd10]{border-radius:var(--border-radius);background-color:var(--color-main-background);box-shadow:0 1px 5px var(--color-box-shadow);overflow:auto;min-width:200px;max-width:200px;padding:4px;max-height:195.5px;margin:5px 0}.emoji-list__item[data-v-7a04fd10]{border-radius:8px;padding:4px 8px;margin-bottom:4px;opacity:.8;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.emoji-list__item[data-v-7a04fd10]:last-child{margin-bottom:0}.emoji-list__item__emoji[data-v-7a04fd10]{padding-right:8px}.emoji-list__item.is-selected[data-v-7a04fd10],.emoji-list__item[data-v-7a04fd10]:focus,.emoji-list__item[data-v-7a04fd10]:hover{opacity:1;background-color:var(--color-primary-light)}","",{version:3,sources:["webpack://./src/components/EmojiList.vue"],names:[],mappings:"AACA,6BACC,kCAAA,CACA,6CAAA,CACA,4CAAA,CACA,aAAA,CAEA,eAAA,CACA,eAAA,CACA,WAAA,CAEA,kBAAA,CACA,YAAA,CAEA,mCACC,iBAAA,CACA,eAAA,CACA,iBAAA,CACA,UAAA,CACA,cAAA,CAGA,kBAAA,CACA,eAAA,CACA,sBAAA,CAEA,8CACC,eAAA,CAGD,0CACC,iBAAA,CAGD,iIAGC,SAAA,CACA,2CAAA",sourcesContent:["\n.emoji-list {\n\tborder-radius: var(--border-radius);\n\tbackground-color: var(--color-main-background);\n\tbox-shadow: 0 1px 5px var(--color-box-shadow);\n\toverflow: auto;\n\n\tmin-width: 200px;\n\tmax-width: 200px;\n\tpadding: 4px;\n\t// Show maximum 5 entries and a half to show scroll\n\tmax-height: 35.5px * 5 + 18px;\n\tmargin: 5px 0;\n\n\t&__item {\n\t\tborder-radius: 8px;\n\t\tpadding: 4px 8px;\n\t\tmargin-bottom: 4px;\n\t\topacity: 0.8;\n\t\tcursor: pointer;\n\n\t\t// Take care of long names\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\n\t\t&:last-child {\n\t\t\tmargin-bottom: 0;\n\t\t}\n\n\t\t&__emoji {\n\t\t\tpadding-right: 8px;\n\t\t}\n\n\t\t&.is-selected,\n\t\t&:focus,\n\t\t&:hover {\n\t\t\topacity: 1;\n\t\t\tbackground-color: var(--color-primary-light);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=a},8977:(t,e,n)=>{"use strict";n.d(e,{Z:()=>A});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i),s=n(61667),l=n.n(s),c=new URL(n(64989),n.b),d=a()(o()),u=l()(c);d.push([t.id,'[data-v-c85fd486] .modal-wrapper .modal-container{padding:30px 40px 20px;user-select:text}@media only screen and (max-width: 512px){[data-v-c85fd486] .modal-wrapper .modal-container{padding:30px 0px 20px 40px}}table[data-v-c85fd486]{margin-top:24px;border-collapse:collapse}table tbody tr[data-v-c85fd486]:hover,table tbody tr[data-v-c85fd486]:focus,table tbody tr[data-v-c85fd486]:active{background-color:rgba(0,0,0,0) !important}table thead tr[data-v-c85fd486]{border:none}table th[data-v-c85fd486]{font-weight:bold;padding:.75rem 1rem .75rem 0;border-bottom:2px solid var(--color-background-darker)}table td[data-v-c85fd486]{padding:.75rem 1rem .75rem 0;border-top:1px solid var(--color-background-dark);border-bottom:unset}table td.noborder[data-v-c85fd486]{border-top:unset}table td.ellipsis_top[data-v-c85fd486]{padding-bottom:0}table td.ellipsis[data-v-c85fd486]{padding-top:0;padding-bottom:0}table td.ellipsis_bottom[data-v-c85fd486]{padding-top:0}table kbd[data-v-c85fd486]{font-size:smaller}table code[data-v-c85fd486]{padding:.2em .4em;font-size:90%;background-color:var(--color-background-dark);border-radius:6px}div.ProseMirror[data-v-c85fd486]{height:100%;position:relative;word-wrap:break-word;white-space:pre-wrap;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;padding:4px 8px 200px 14px;line-height:150%;font-size:14px;outline:none}div.ProseMirror[data-v-c85fd486] :target{scroll-margin-top:50px}div.ProseMirror[contenteditable=true][data-v-c85fd486],div.ProseMirror[contenteditable=false][data-v-c85fd486],div.ProseMirror [contenteditable=true][data-v-c85fd486],div.ProseMirror [contenteditable=false][data-v-c85fd486]{border:none !important;width:100%;background-color:rgba(0,0,0,0);color:var(--color-main-text);opacity:1;-webkit-user-select:text;user-select:text;font-size:14px}div.ProseMirror[contenteditable=true][data-v-c85fd486]:focus,div.ProseMirror[contenteditable=true][data-v-c85fd486]:focus-visible,div.ProseMirror[contenteditable=false][data-v-c85fd486]:focus,div.ProseMirror[contenteditable=false][data-v-c85fd486]:focus-visible,div.ProseMirror [contenteditable=true][data-v-c85fd486]:focus,div.ProseMirror [contenteditable=true][data-v-c85fd486]:focus-visible,div.ProseMirror [contenteditable=false][data-v-c85fd486]:focus,div.ProseMirror [contenteditable=false][data-v-c85fd486]:focus-visible{box-shadow:none !important}div.ProseMirror .checkbox-item[data-v-c85fd486]{display:flex;align-items:start;margin-left:-23px}div.ProseMirror .checkbox-item input[type=checkbox][data-v-c85fd486]{display:none}div.ProseMirror .checkbox-item[data-v-c85fd486]:before{content:"";vertical-align:middle;margin:3px 6px 3px 2px;border:1px solid var(--color-text-maxcontrast);position:relative;display:block;border-radius:var(--border-radius);height:14px;width:14px;box-shadow:none !important;background-position:center;cursor:pointer}div.ProseMirror .checkbox-item.checked[data-v-c85fd486]:before{background-image:url('+u+');background-color:var(--color-primary-element);border-color:var(--color-primary-element)}div.ProseMirror .checkbox-item.checked label[data-v-c85fd486]{color:var(--color-text-maxcontrast);text-decoration:line-through}div.ProseMirror .checkbox-item label[data-v-c85fd486]{display:block;flex-grow:1;max-width:calc(100% - 28px)}div.ProseMirror>*[data-v-c85fd486]:first-child{margin-top:10px}div.ProseMirror>h1[data-v-c85fd486]:first-child,div.ProseMirror h2[data-v-c85fd486]:first-child,div.ProseMirror h3[data-v-c85fd486]:first-child,div.ProseMirror h4[data-v-c85fd486]:first-child,div.ProseMirror h5[data-v-c85fd486]:first-child,div.ProseMirror h6[data-v-c85fd486]:first-child{margin-top:0}div.ProseMirror a[data-v-c85fd486]{color:var(--color-primary-element);text-decoration:underline;padding:.5em 0}div.ProseMirror p[data-v-c85fd486]{margin-bottom:1em;line-height:150%}div.ProseMirror em[data-v-c85fd486]{font-style:italic}div.ProseMirror h1[data-v-c85fd486],div.ProseMirror h2[data-v-c85fd486],div.ProseMirror h3[data-v-c85fd486],div.ProseMirror h4[data-v-c85fd486],div.ProseMirror h5[data-v-c85fd486],div.ProseMirror h6[data-v-c85fd486]{font-weight:600;line-height:1.1em;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}div.ProseMirror h1[data-v-c85fd486]{font-size:36px}div.ProseMirror h2[data-v-c85fd486]{font-size:30px}div.ProseMirror h3[data-v-c85fd486]{font-size:24px}div.ProseMirror h4[data-v-c85fd486]{font-size:21px}div.ProseMirror h5[data-v-c85fd486]{font-size:17px}div.ProseMirror h6[data-v-c85fd486]{font-size:14px}div.ProseMirror img[data-v-c85fd486]{cursor:default;max-width:100%}div.ProseMirror hr[data-v-c85fd486]{padding:2px 0;border:none;margin:2em 0;width:100%}div.ProseMirror hr[data-v-c85fd486]:after{content:"";display:block;height:1px;background-color:var(--color-border-dark);line-height:2px}div.ProseMirror pre[data-v-c85fd486]{white-space:pre-wrap;background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:1em 1.3em;margin-bottom:1em}div.ProseMirror pre.frontmatter[data-v-c85fd486]{margin-bottom:2em;border-left:4px solid var(--color-primary-element)}div.ProseMirror pre.frontmatter[data-v-c85fd486]::before{display:block;content:attr(data-title);color:var(--color-text-maxcontrast);padding-bottom:.5em}div.ProseMirror p code[data-v-c85fd486]{background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:.1em .3em}div.ProseMirror li[data-v-c85fd486]{position:relative;padding-left:3px}div.ProseMirror li p[data-v-c85fd486]{margin-bottom:.5em}div.ProseMirror ul[data-v-c85fd486],div.ProseMirror ol[data-v-c85fd486]{padding-left:10px;margin-left:10px;margin-bottom:1em}div.ProseMirror ul>li[data-v-c85fd486]{list-style-type:disc}div.ProseMirror li ul>li[data-v-c85fd486]{list-style-type:circle}div.ProseMirror li li ul>li[data-v-c85fd486]{list-style-type:square}div.ProseMirror blockquote[data-v-c85fd486]{padding-left:1em;border-left:4px solid var(--color-primary-element);color:var(--color-text-maxcontrast);margin-left:0;margin-right:0}[data-v-c85fd486]:root{--table-color-border: var(--color-border);--table-color-heading: var(--color-text-maxcontrast);--table-color-heading-border: var(--color-border-dark);--table-color-background: var(--color-main-background);--table-color-background-hover: var(--color-primary-light);--table-border-radius: var(--border-radius)}div.ProseMirror table[data-v-c85fd486]{border-spacing:0;width:calc(100% - 50px);table-layout:auto;white-space:normal;margin-bottom:1em}div.ProseMirror table[data-v-c85fd486]{margin-top:1em}div.ProseMirror table td[data-v-c85fd486],div.ProseMirror table th[data-v-c85fd486]{border:1px solid var(--table-color-border);border-left:0;vertical-align:top;max-width:100%}div.ProseMirror table td[data-v-c85fd486]:first-child,div.ProseMirror table th[data-v-c85fd486]:first-child{border-left:1px solid var(--table-color-border)}div.ProseMirror table td[data-v-c85fd486]{padding:.5em .75em;border-top:0;color:var(--color-main-text)}div.ProseMirror table th[data-v-c85fd486]{padding:0 0 0 .75em;font-weight:normal;border-bottom-color:var(--table-color-heading-border);color:var(--table-color-heading)}div.ProseMirror table th>div[data-v-c85fd486]{display:flex}div.ProseMirror table tr[data-v-c85fd486]{background-color:var(--table-color-background)}div.ProseMirror table tr[data-v-c85fd486]:hover,div.ProseMirror table tr[data-v-c85fd486]:active,div.ProseMirror table tr[data-v-c85fd486]:focus{background-color:var(--table-color-background-hover)}div.ProseMirror table tr:first-child th[data-v-c85fd486]:first-child{border-top-left-radius:var(--table-border-radius)}div.ProseMirror table tr:first-child th[data-v-c85fd486]:last-child{border-top-right-radius:var(--table-border-radius)}div.ProseMirror table tr:last-child td[data-v-c85fd486]:first-child{border-bottom-left-radius:var(--table-border-radius)}div.ProseMirror table tr:last-child td[data-v-c85fd486]:last-child{border-bottom-right-radius:var(--table-border-radius)}.ProseMirror-focused .ProseMirror-gapcursor[data-v-c85fd486]{display:block}.editor__content p.is-empty[data-v-c85fd486]:first-child::before{content:attr(data-placeholder);float:left;color:var(--color-text-maxcontrast);pointer-events:none;height:0}.editor__content[data-v-c85fd486]{tab-size:4}div.ProseMirror[data-v-c85fd486]{display:inline;margin-top:unset;position:unset;padding:unset;line-height:unset}div.ProseMirror h1[data-v-c85fd486],div.ProseMirror h6[data-v-c85fd486]{display:inline;padding:0;margin:0}',"",{version:3,sources:["webpack://./src/components/HelpModal.vue","webpack://./css/prosemirror.scss"],names:[],mappings:"AAEC,kDACC,sBAAA,CACA,gBAAA,CAID,0CACC,kDACC,0BAAA,CAAA,CAKH,uBACC,eAAA,CACA,wBAAA,CAGC,mHACC,yCAAA,CAIF,gCACC,WAAA,CAGD,0BACC,gBAAA,CACA,4BAAA,CACA,sDAAA,CAGD,0BACC,4BAAA,CACA,iDAAA,CACA,mBAAA,CAEA,mCACC,gBAAA,CAGD,uCACC,gBAAA,CAGD,mCACC,aAAA,CACA,gBAAA,CAGD,0CACC,aAAA,CAIF,2BACC,iBAAA,CAGD,4BACC,iBAAA,CACA,aAAA,CACA,6CAAA,CACA,iBAAA,CC/DF,iCACC,WAAA,CACA,iBAAA,CACA,oBAAA,CACA,oBAAA,CACA,mCAAA,CACA,2BAAA,CACA,0BAAA,CACA,gBAAA,CACA,cAAA,CACA,YAAA,CAEA,yCAEC,sBAAA,CAGD,gOAIC,sBAAA,CACA,UAAA,CACA,8BAAA,CACA,4BAAA,CACA,SAAA,CACA,wBAAA,CACA,gBAAA,CACA,cAAA,CAEA,ghBACC,0BAAA,CAIF,gDACC,YAAA,CACA,iBAAA,CAEA,iBAAA,CAEA,qEACC,YAAA,CAED,uDACC,UAAA,CACA,qBAAA,CACA,sBAAA,CACA,8CAAA,CACA,iBAAA,CACA,aAAA,CACA,kCAAA,CACA,WAAA,CACA,UAAA,CACA,0BAAA,CACA,0BAAA,CACA,cAAA,CAGA,+DACC,wDAAA,CACA,6CAAA,CACA,yCAAA,CAED,8DACC,mCAAA,CACA,4BAAA,CAGF,sDACC,aAAA,CACA,WAAA,CACA,2BAAA,CAIF,+CACC,eAAA,CAIA,gSACC,YAAA,CAIF,mCACC,kCAAA,CACA,yBAAA,CACA,cAAA,CAGD,mCACC,iBAAA,CACA,gBAAA,CAGD,oCACC,iBAAA,CAGD,wNAMC,eAAA,CACA,iBAAA,CACA,eAAA,CACA,kBAAA,CACA,4BAAA,CAGD,oCACC,cAAA,CAGD,oCACC,cAAA,CAGD,oCACC,cAAA,CAGD,oCACC,cAAA,CAGD,oCACC,cAAA,CAGD,oCACC,cAAA,CAGD,qCACC,cAAA,CACA,cAAA,CAGD,oCACC,aAAA,CACA,WAAA,CACA,YAAA,CACA,UAAA,CAGD,0CACC,UAAA,CACA,aAAA,CACA,UAAA,CACA,yCAAA,CACA,eAAA,CAGD,qCACC,oBAAA,CACA,6CAAA,CACA,kCAAA,CACA,iBAAA,CACA,iBAAA,CAGD,iDACC,iBAAA,CACA,kDAAA,CAGD,yDACC,aAAA,CACA,wBAAA,CACA,mCAAA,CACA,mBAAA,CAGD,wCACC,6CAAA,CACA,kCAAA,CACA,iBAAA,CAGD,oCACC,iBAAA,CACA,gBAAA,CAEA,sCACC,kBAAA,CAIF,wEACC,iBAAA,CACA,gBAAA,CACA,iBAAA,CAGD,uCACC,oBAAA,CAID,0CACC,sBAAA,CAID,6CACC,sBAAA,CAGD,4CACC,gBAAA,CACA,kDAAA,CACA,mCAAA,CACA,aAAA,CACA,cAAA,CAIQ,uBACR,yCAAA,CACA,oDAAA,CACA,sDAAA,CACA,sDAAA,CACA,0DAAA,CACA,2CAAA,CAGD,uCACC,gBAAA,CACA,uBAAA,CACA,iBAAA,CACA,kBAAA,CACA,iBAAA,CACA,uCACC,cAAA,CAID,oFACC,0CAAA,CACA,aAAA,CACA,kBAAA,CACA,cAAA,CACA,4GACC,+CAAA,CAGF,0CACC,kBAAA,CACA,YAAA,CACA,4BAAA,CAED,0CACC,mBAAA,CACA,kBAAA,CACA,qDAAA,CACA,gCAAA,CAEA,8CACC,YAAA,CAGF,0CACC,8CAAA,CACA,iJACC,oDAAA,CAKD,qEAAA,iDAAA,CACA,oEAAA,kDAAA,CAIA,oEAAA,oDAAA,CACA,mEAAA,qDAAA,CAOH,6DACC,aAAA,CAGD,iEACC,8BAAA,CACA,UAAA,CACA,mCAAA,CACA,mBAAA,CACA,QAAA,CAGD,kCACC,UAAA,CDvOD,iCACC,cAAA,CACA,gBAAA,CACA,cAAA,CACA,aAAA,CACA,iBAAA,CAEA,wEACC,cAAA,CACA,SAAA,CACA,QAAA",sourcesContent:["\n:deep(.modal-wrapper) {\n\t.modal-container {\n\t\tpadding: 30px 40px 20px;\n\t\tuser-select: text;\n\t}\n\n\t// Remove padding-right on mobile, screen might not be wide enough\n\t@media only screen and (max-width: 512px) {\n\t\t.modal-container {\n\t\t\tpadding: 30px 0px 20px 40px;\n\t\t}\n\t}\n}\n\ntable {\n\tmargin-top: 24px;\n\tborder-collapse: collapse;\n\n\ttbody tr {\n\t\t&:hover, &:focus, &:active {\n\t\t\tbackground-color: transparent !important;\n\t\t}\n\t}\n\n\tthead tr {\n\t\tborder: none;\n\t}\n\n\tth {\n\t\tfont-weight: bold;\n\t\tpadding: .75rem 1rem .75rem 0;\n\t\tborder-bottom: 2px solid var(--color-background-darker);\n\t}\n\n\ttd {\n\t\tpadding: .75rem 1rem .75rem 0;\n\t\tborder-top: 1px solid var(--color-background-dark);\n\t\tborder-bottom: unset;\n\n\t\t&.noborder {\n\t\t\tborder-top: unset;\n\t\t}\n\n\t\t&.ellipsis_top {\n\t\t\tpadding-bottom: 0;\n\t\t}\n\n\t\t&.ellipsis {\n\t\t\tpadding-top: 0;\n\t\t\tpadding-bottom: 0;\n\t\t}\n\n\t\t&.ellipsis_bottom {\n\t\t\tpadding-top: 0;\n\t\t}\n\t}\n\n\tkbd {\n\t\tfont-size: smaller;\n\t}\n\n\tcode {\n\t\tpadding: .2em .4em;\n\t\tfont-size: 90%;\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: 6px;\n\t}\n}\n\n@import '../../css/prosemirror';\n\ndiv.ProseMirror {\n\tdisplay: inline;\n\tmargin-top: unset;\n\tposition: unset;\n\tpadding: unset;\n\tline-height: unset;\n\n\th1, h6 {\n\t\tdisplay: inline;\n\t\tpadding: 0;\n\t\tmargin: 0;\n\t}\n}\n","@use 'sass:selector';\n\n/* Document rendering styles */\ndiv.ProseMirror {\n\theight: 100%;\n\tposition: relative;\n\tword-wrap: break-word;\n\twhite-space: pre-wrap;\n\t-webkit-font-variant-ligatures: none;\n\tfont-variant-ligatures: none;\n\tpadding: 4px 8px 200px 14px;\n\tline-height: 150%;\n\tfont-size: 14px;\n\toutline: none;\n\n\t:target {\n\t\t// Menubar height: 44px + 3px bottom + 3px top padding\n\t\tscroll-margin-top: 50px;\n\t}\n\n\t&[contenteditable=true],\n\t&[contenteditable=false],\n\t[contenteditable=true],\n\t[contenteditable=false] {\n\t\tborder: none !important;\n\t\twidth: 100%;\n\t\tbackground-color: transparent;\n\t\tcolor: var(--color-main-text);\n\t\topacity: 1;\n\t\t-webkit-user-select: text;\n\t\tuser-select: text;\n\t\tfont-size: 14px;\n\n\t\t&:focus, &:focus-visible {\n\t\t\tbox-shadow: none !important;\n\t\t}\n\t}\n\n\t.checkbox-item {\n\t\tdisplay: flex;\n\t\talign-items: start;\n\t\t// Left-align with list item text\n\t\tmargin-left: -23px;\n\n\t\tinput[type=checkbox] {\n\t\t\tdisplay: none;\n\t\t}\n\t\t&:before {\n\t\t\tcontent: '';\n\t\t\tvertical-align: middle;\n\t\t\tmargin: 3px 6px 3px 2px;\n\t\t\tborder: 1px solid var(--color-text-maxcontrast);\n\t\t\tposition: relative;\n\t\t\tdisplay: block;\n\t\t\tborder-radius: var(--border-radius);\n\t\t\theight: 14px;\n\t\t\twidth: 14px;\n\t\t\tbox-shadow: none !important;\n\t\t\tbackground-position: center;\n\t\t\tcursor: pointer;\n\t\t}\n\t\t&.checked{\n\t\t\t&:before {\n\t\t\t\tbackground-image: url('../../img/checkbox-mark.svg');\n\t\t\t\tbackground-color: var(--color-primary-element);\n\t\t\t\tborder-color: var(--color-primary-element);\n\t\t\t}\n\t\t\tlabel {\n\t\t\t\tcolor: var(--color-text-maxcontrast);\n\t\t\t\ttext-decoration: line-through;\n\t\t\t}\n\t\t}\n\t\tlabel {\n\t\t\tdisplay: block;\n\t\t\tflex-grow: 1;\n\t\t\tmax-width: calc(100% - 28px);\n\t\t}\n\t}\n\n\t> *:first-child {\n\t\tmargin-top: 10px;\n\t}\n\n\t> h1,h2,h3,h4,h5,h6 {\n\t\t&:first-child {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\n\ta {\n\t\tcolor: var(--color-primary-element);\n\t\ttext-decoration: underline;\n\t\tpadding: .5em 0;\n\t}\n\n\tp {\n\t\tmargin-bottom: 1em;\n\t\tline-height: 150%;\n\t}\n\n\tem {\n\t\tfont-style: italic;\n\t}\n\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6 {\n\t\tfont-weight: 600;\n\t\tline-height: 1.1em;\n\t\tmargin-top: 24px;\n\t\tmargin-bottom: 12px;\n\t\tcolor: var(--color-main-text);\n\t}\n\n\th1 {\n\t\tfont-size: 36px;\n\t}\n\n\th2 {\n\t\tfont-size: 30px;\n\t}\n\n\th3 {\n\t\tfont-size: 24px;\n\t}\n\n\th4 {\n\t\tfont-size: 21px;\n\t}\n\n\th5 {\n\t\tfont-size: 17px;\n\t}\n\n\th6 {\n\t\tfont-size: 14px;\n\t}\n\n\timg {\n\t\tcursor: default;\n\t\tmax-width: 100%;\n\t}\n\n\thr {\n\t\tpadding: 2px 0;\n\t\tborder: none;\n\t\tmargin: 2em 0;\n\t\twidth: 100%;\n\t}\n\n\thr:after {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\theight: 1px;\n\t\tbackground-color: var(--color-border-dark);\n\t\tline-height: 2px;\n\t}\n\n\tpre {\n\t\twhite-space: pre-wrap;\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: 1em 1.3em;\n\t\tmargin-bottom: 1em;\n\t}\n\n\tpre.frontmatter {\n\t\tmargin-bottom: 2em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t}\n\n\tpre.frontmatter::before {\n\t\tdisplay: block;\n\t\tcontent: attr(data-title);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tpadding-bottom: 0.5em;\n\t}\n\n\tp code {\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: .1em .3em;\n\t}\n\n\tli {\n\t\tposition: relative;\n\t\tpadding-left: 3px;\n\n\t\tp {\n\t\t\tmargin-bottom: 0.5em;\n\t\t}\n\t}\n\n\tul, ol {\n\t\tpadding-left: 10px;\n\t\tmargin-left: 10px;\n\t\tmargin-bottom: 1em;\n\t}\n\n\tul > li {\n\t\tlist-style-type: disc;\n\t}\n\n\t// Second-level list entries\n\tli ul > li {\n\t\tlist-style-type: circle;\n\t}\n\n\t// Third-level and further down list entries\n\tli li ul > li {\n\t\tlist-style-type: square;\n\t}\n\n\tblockquote {\n\t\tpadding-left: 1em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tmargin-left: 0;\n\t\tmargin-right: 0;\n\t}\n\n\t// table variables\n\t@at-root :root {\n\t\t--table-color-border: var(--color-border);\n\t\t--table-color-heading: var(--color-text-maxcontrast);\n\t\t--table-color-heading-border: var(--color-border-dark);\n\t\t--table-color-background: var(--color-main-background);\n\t\t--table-color-background-hover: var(--color-primary-light);\n\t\t--table-border-radius: var(--border-radius);\n\t}\n\n\ttable {\n\t\tborder-spacing: 0;\n\t\twidth: calc(100% - 50px);\n\t\ttable-layout: auto;\n\t\twhite-space: normal; // force text to wrapping\n\t\tmargin-bottom: 1em;\n\t\t+ & {\n\t\t\tmargin-top: 1em;\n\t\t}\n\n\n\t\ttd, th {\n\t\t\tborder: 1px solid var(--table-color-border);\n\t\t\tborder-left: 0;\n\t\t\tvertical-align: top;\n\t\t\tmax-width: 100%;\n\t\t\t&:first-child {\n\t\t\t\tborder-left: 1px solid var(--table-color-border);\n\t\t\t}\n\t\t}\n\t\ttd {\n\t\t\tpadding: 0.5em 0.75em;\n\t\t\tborder-top: 0;\n\t\t\tcolor: var(--color-main-text);\n\t\t}\n\t\tth {\n\t\t\tpadding: 0 0 0 0.75em;\n\t\t\tfont-weight: normal;\n\t\t\tborder-bottom-color: var(--table-color-heading-border);\n\t\t\tcolor: var(--table-color-heading);\n\n\t\t\t& > div {\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t}\n\t\ttr {\n\t\t\tbackground-color: var(--table-color-background);\n\t\t\t&:hover, &:active, &:focus {\n\t\t\t\tbackground-color: var(--table-color-background-hover);\n\t\t\t}\n\t\t}\n\n\t\ttr:first-child {\n\t\t\tth:first-child { border-top-left-radius: var(--table-border-radius); }\n\t\t\tth:last-child { border-top-right-radius: var(--table-border-radius); }\n\t\t}\n\n\t\ttr:last-child {\n\t\t\ttd:first-child { border-bottom-left-radius: var(--table-border-radius); }\n\t\t\ttd:last-child { border-bottom-right-radius: var(--table-border-radius); }\n\t\t}\n\n\t}\n\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n\tdisplay: block;\n}\n\n.editor__content p.is-empty:first-child::before {\n\tcontent: attr(data-placeholder);\n\tfloat: left;\n\tcolor: var(--color-text-maxcontrast);\n\tpointer-events: none;\n\theight: 0;\n}\n\n.editor__content {\n\ttab-size: 4;\n}\n"],sourceRoot:""}]);const A=d},90:(t,e,n)=>{"use strict";n.d(e,{Z:()=>m});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i),s=n(61667),l=n.n(s),c=new URL(n(63423),n.b),d=new URL(n(32605),n.b),u=new URL(n(87127),n.b),A=a()(o()),h=l()(c),p=l()(d),f=l()(u);A.push([t.id,".autocomplete-result[data-v-0f63f2d0]{display:flex;height:30px;padding:10px}.highlight .autocomplete-result[data-v-0f63f2d0]{color:var(--color-main-text);background:var(--color-primary-light)}.highlight .autocomplete-result[data-v-0f63f2d0],.highlight .autocomplete-result *[data-v-0f63f2d0]{cursor:pointer}.autocomplete-result__icon[data-v-0f63f2d0]{position:relative;flex:0 0 30px;width:30px;min-width:30px;height:30px;border-radius:30px;background-color:var(--color-background-darker);background-repeat:no-repeat;background-position:center;background-size:10px}.autocomplete-result__icon--with-avatar[data-v-0f63f2d0]{color:inherit;background-size:cover}.autocomplete-result__status[data-v-0f63f2d0]{position:absolute;right:-4px;bottom:-4px;box-sizing:border-box;width:18px;height:18px;border:2px solid var(--color-main-background);border-radius:50%;background-color:var(--color-main-background);font-size:var(--default-font-size);line-height:15px;background-repeat:no-repeat;background-size:16px;background-position:center}.autocomplete-result__status--online[data-v-0f63f2d0]{background-image:url("+h+")}.autocomplete-result__status--dnd[data-v-0f63f2d0]{background-image:url("+p+");background-color:#fff}.autocomplete-result__status--away[data-v-0f63f2d0]{background-image:url("+f+")}.autocomplete-result__status--icon[data-v-0f63f2d0]{border:none;background-color:rgba(0,0,0,0)}.autocomplete-result__content[data-v-0f63f2d0]{display:flex;flex:1 1 100%;flex-direction:column;justify-content:center;min-width:0;padding-left:10px}.autocomplete-result__title[data-v-0f63f2d0],.autocomplete-result__subline[data-v-0f63f2d0]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.autocomplete-result__subline[data-v-0f63f2d0]{color:var(--color-text-lighter)}","",{version:3,sources:["webpack://./src/components/Mention/AutoCompleteResult.vue"],names:[],mappings:"AAIA,sCACC,YAAA,CACA,WALgB,CAMhB,YALsB,CAOtB,iDACC,4BAAA,CACA,qCAAA,CACA,oGACC,cAAA,CAIF,4CACC,iBAAA,CACA,aAAA,CACA,UAnBe,CAoBf,cApBe,CAqBf,WArBe,CAsBf,kBAtBe,CAuBf,+CAAA,CACA,2BAAA,CACA,0BAAA,CACA,oBAAA,CACA,yDACC,aAAA,CACA,qBAAA,CAIF,8CACC,iBAAA,CACA,UAAA,CACA,WAAA,CACA,qBAAA,CACA,UAAA,CACA,WAAA,CACA,6CAAA,CACA,iBAAA,CACA,6CAAA,CACA,kCAAA,CACA,gBAAA,CACA,2BAAA,CACA,oBAAA,CACA,0BAAA,CAEA,sDACC,wDAAA,CAED,mDACC,wDAAA,CACA,qBAAA,CAED,oDACC,wDAAA,CAED,oDACC,WAAA,CACA,8BAAA,CAIF,+CACC,YAAA,CACA,aAAA,CACA,qBAAA,CACA,sBAAA,CACA,WAAA,CACA,iBAtEqB,CAyEtB,4FAEC,kBAAA,CACA,eAAA,CACA,sBAAA,CAGD,+CACC,+BAAA",sourcesContent:["\n$clickable-area: 30px;\n$autocomplete-padding: 10px;\n\n.autocomplete-result {\n\tdisplay: flex;\n\theight: $clickable-area;\n\tpadding: $autocomplete-padding;\n\n\t.highlight & {\n\t\tcolor: var(--color-main-text);\n\t\tbackground: var(--color-primary-light);\n\t\t&, * {\n\t\t\tcursor: pointer;\n\t\t}\n\t}\n\n\t&__icon {\n\t\tposition: relative;\n\t\tflex: 0 0 $clickable-area;\n\t\twidth: $clickable-area;\n\t\tmin-width: $clickable-area;\n\t\theight: $clickable-area;\n\t\tborder-radius: $clickable-area;\n\t\tbackground-color: var(--color-background-darker);\n\t\tbackground-repeat: no-repeat;\n\t\tbackground-position: center;\n\t\tbackground-size: $clickable-area - 2 * $autocomplete-padding;\n\t\t&--with-avatar {\n\t\t\tcolor: inherit;\n\t\t\tbackground-size: cover;\n\t\t}\n\t}\n\n\t&__status {\n\t\tposition: absolute;\n\t\tright: -4px;\n\t\tbottom: -4px;\n\t\tbox-sizing: border-box;\n\t\twidth: 18px;\n\t\theight: 18px;\n\t\tborder: 2px solid var(--color-main-background);\n\t\tborder-radius: 50%;\n\t\tbackground-color: var(--color-main-background);\n\t\tfont-size: var(--default-font-size);\n\t\tline-height: 15px;\n\t\tbackground-repeat: no-repeat;\n\t\tbackground-size: 16px;\n\t\tbackground-position: center;\n\n\t\t&--online{\n\t\t\tbackground-image: url('../../assets/status-icons/user-status-online.svg');\n\t\t}\n\t\t&--dnd{\n\t\t\tbackground-image: url('../../assets/status-icons/user-status-dnd.svg');\n\t\t\tbackground-color: #ffffff;\n\t\t}\n\t\t&--away{\n\t\t\tbackground-image: url('../../assets/status-icons/user-status-away.svg');\n\t\t}\n\t\t&--icon {\n\t\t\tborder: none;\n\t\t\tbackground-color: transparent;\n\t\t}\n\t}\n\n\t&__content {\n\t\tdisplay: flex;\n\t\tflex: 1 1 100%;\n\t\tflex-direction: column;\n\t\tjustify-content: center;\n\t\tmin-width: 0;\n\t\tpadding-left: $autocomplete-padding;\n\t}\n\n\t&__title,\n\t&__subline {\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n\n\t&__subline {\n\t\tcolor: var(--color-text-lighter);\n\t}\n}\n\n"],sourceRoot:""}]);const m=A},92192:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".items{position:relative;border-radius:var(--border-radius);background:var(--color-main-background);overflow:hidden;font-size:.9rem;box-shadow:0 1px 5px var(--color-box-shadow);min-width:250px}.item-empty{padding:4px 8px;opacity:.8}","",{version:3,sources:["webpack://./src/components/Mention/List.vue"],names:[],mappings:"AACA,OACC,iBAAA,CACA,kCAAA,CACA,uCAAA,CACA,eAAA,CACA,eAAA,CACA,4CAAA,CACA,eAAA,CAGD,YACC,eAAA,CACA,UAAA",sourcesContent:["\n.items {\n\tposition: relative;\n\tborder-radius: var(--border-radius);\n\tbackground: var(--color-main-background);\n\toverflow: hidden;\n\tfont-size: 0.9rem;\n\tbox-shadow: 0 1px 5px var(--color-box-shadow);\n\tmin-width: 250px;\n}\n\n.item-empty {\n\tpadding: 4px 8px;\n\topacity: 0.8;\n}\n"],sourceRoot:""}]);const s=a},60432:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".text-menubar[data-v-4ac89b96]{--background-blur: blur(10px);position:sticky;top:0;z-index:10021;background-color:var(--color-main-background-translucent);backdrop-filter:var(--background-blur);max-height:44px;padding-top:3px;padding-bottom:3px;visibility:hidden;display:flex;justify-content:flex-end;align-items:center}.text-menubar.text-menubar--ready[data-v-4ac89b96]:not(.text-menubar--autohide){visibility:visible;animation-name:fadeInDown;animation-duration:.3s}.text-menubar.text-menubar--autohide[data-v-4ac89b96]{opacity:0;transition:visibility .2s .4s,opacity .2s .4s}.text-menubar.text-menubar--autohide.text-menubar--show[data-v-4ac89b96]{visibility:visible;opacity:1}.text-menubar .text-menubar__entries[data-v-4ac89b96]{display:flex;flex-grow:1;margin-left:calc((100% - var(--text-editor-max-width))/2)}.text-menubar .text-menubar__slot[data-v-4ac89b96]{justify-content:flex-end;display:flex}.text-menubar.text-menubar--is-workspace .text-menubar__entries[data-v-4ac89b96]{margin-left:0}@media(max-width: 660px){.text-menubar .text-menubar__entries[data-v-4ac89b96]{margin-left:0}}","",{version:3,sources:["webpack://./src/components/Menu/MenuBar.vue"],names:[],mappings:"AACA,+BACC,6BAAA,CACA,eAAA,CACA,KAAA,CACA,aAAA,CACA,yDAAA,CACA,sCAAA,CACA,eAAA,CACA,eAAA,CACA,kBAAA,CAEA,iBAAA,CAEA,YAAA,CACA,wBAAA,CACA,kBAAA,CAEA,gFACC,kBAAA,CACA,yBAAA,CACA,sBAAA,CAGD,sDACC,SAAA,CACA,6CAAA,CACA,yEACC,kBAAA,CACA,SAAA,CAGF,sDACC,YAAA,CACA,WAAA,CACA,yDAAA,CAGD,mDAEC,wBAAA,CACA,YAAA,CAIA,iFACC,aAAA,CAIF,yBACC,sDACC,aAAA,CAAA",sourcesContent:["\n.text-menubar {\n\t--background-blur: blur(10px);\n\tposition: sticky;\n\ttop: 0;\n\tz-index: 10021; // above modal-header so menubar is always on top\n\tbackground-color: var(--color-main-background-translucent);\n\tbackdrop-filter: var(--background-blur);\n\tmax-height: 44px; // important for mobile so that the buttons are always inside the container\n\tpadding-top:3px;\n\tpadding-bottom: 3px;\n\n\tvisibility: hidden;\n\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\n\t&.text-menubar--ready:not(.text-menubar--autohide) {\n\t\tvisibility: visible;\n\t\tanimation-name: fadeInDown;\n\t\tanimation-duration: 0.3s;\n\t}\n\n\t&.text-menubar--autohide {\n\t\topacity: 0;\n\t\ttransition: visibility 0.2s 0.4s, opacity 0.2s 0.4s;\n\t\t&.text-menubar--show {\n\t\t\tvisibility: visible;\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t.text-menubar__entries {\n\t\tdisplay: flex;\n\t\tflex-grow: 1;\n\t\tmargin-left: calc((100% - var(--text-editor-max-width)) / 2);\n\t}\n\n\t.text-menubar__slot {\n\t\t// width: 100%;\n\t\tjustify-content: flex-end;\n\t\tdisplay: flex;\n\t}\n\n\t&.text-menubar--is-workspace {\n\t\t.text-menubar__entries {\n\t\t\tmargin-left: 0;\n\t\t}\n\t}\n\n\t@media (max-width: 660px) {\n\t\t.text-menubar__entries {\n\t\t\tmargin-left: 0;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=a},62886:(t,e,n)=>{"use strict";n.d(e,{Z:()=>A});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i),s=n(61667),l=n.n(s),c=new URL(n(64989),n.b),d=a()(o()),u=l()(c);d.push([t.id,'#read-only-editor{overflow:scroll}#read-only-editor div.ProseMirror{height:100%;position:relative;word-wrap:break-word;white-space:pre-wrap;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;padding:4px 8px 200px 14px;line-height:150%;font-size:14px;outline:none}#read-only-editor div.ProseMirror :target{scroll-margin-top:50px}#read-only-editor div.ProseMirror[contenteditable=true],#read-only-editor div.ProseMirror[contenteditable=false],#read-only-editor div.ProseMirror [contenteditable=true],#read-only-editor div.ProseMirror [contenteditable=false]{border:none !important;width:100%;background-color:rgba(0,0,0,0);color:var(--color-main-text);opacity:1;-webkit-user-select:text;user-select:text;font-size:14px}#read-only-editor div.ProseMirror[contenteditable=true]:focus,#read-only-editor div.ProseMirror[contenteditable=true]:focus-visible,#read-only-editor div.ProseMirror[contenteditable=false]:focus,#read-only-editor div.ProseMirror[contenteditable=false]:focus-visible,#read-only-editor div.ProseMirror [contenteditable=true]:focus,#read-only-editor div.ProseMirror [contenteditable=true]:focus-visible,#read-only-editor div.ProseMirror [contenteditable=false]:focus,#read-only-editor div.ProseMirror [contenteditable=false]:focus-visible{box-shadow:none !important}#read-only-editor div.ProseMirror .checkbox-item{display:flex;align-items:start;margin-left:-23px}#read-only-editor div.ProseMirror .checkbox-item input[type=checkbox]{display:none}#read-only-editor div.ProseMirror .checkbox-item:before{content:"";vertical-align:middle;margin:3px 6px 3px 2px;border:1px solid var(--color-text-maxcontrast);position:relative;display:block;border-radius:var(--border-radius);height:14px;width:14px;box-shadow:none !important;background-position:center;cursor:pointer}#read-only-editor div.ProseMirror .checkbox-item.checked:before{background-image:url('+u+');background-color:var(--color-primary-element);border-color:var(--color-primary-element)}#read-only-editor div.ProseMirror .checkbox-item.checked label{color:var(--color-text-maxcontrast);text-decoration:line-through}#read-only-editor div.ProseMirror .checkbox-item label{display:block;flex-grow:1;max-width:calc(100% - 28px)}#read-only-editor div.ProseMirror>*:first-child{margin-top:10px}#read-only-editor div.ProseMirror>h1:first-child,#read-only-editor div.ProseMirror h2:first-child,#read-only-editor div.ProseMirror h3:first-child,#read-only-editor div.ProseMirror h4:first-child,#read-only-editor div.ProseMirror h5:first-child,#read-only-editor div.ProseMirror h6:first-child{margin-top:0}#read-only-editor div.ProseMirror a{color:var(--color-primary-element);text-decoration:underline;padding:.5em 0}#read-only-editor div.ProseMirror p{margin-bottom:1em;line-height:150%}#read-only-editor div.ProseMirror em{font-style:italic}#read-only-editor div.ProseMirror h1,#read-only-editor div.ProseMirror h2,#read-only-editor div.ProseMirror h3,#read-only-editor div.ProseMirror h4,#read-only-editor div.ProseMirror h5,#read-only-editor div.ProseMirror h6{font-weight:600;line-height:1.1em;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}#read-only-editor div.ProseMirror h1{font-size:36px}#read-only-editor div.ProseMirror h2{font-size:30px}#read-only-editor div.ProseMirror h3{font-size:24px}#read-only-editor div.ProseMirror h4{font-size:21px}#read-only-editor div.ProseMirror h5{font-size:17px}#read-only-editor div.ProseMirror h6{font-size:14px}#read-only-editor div.ProseMirror img{cursor:default;max-width:100%}#read-only-editor div.ProseMirror hr{padding:2px 0;border:none;margin:2em 0;width:100%}#read-only-editor div.ProseMirror hr:after{content:"";display:block;height:1px;background-color:var(--color-border-dark);line-height:2px}#read-only-editor div.ProseMirror pre{white-space:pre-wrap;background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:1em 1.3em;margin-bottom:1em}#read-only-editor div.ProseMirror pre.frontmatter{margin-bottom:2em;border-left:4px solid var(--color-primary-element)}#read-only-editor div.ProseMirror pre.frontmatter::before{display:block;content:attr(data-title);color:var(--color-text-maxcontrast);padding-bottom:.5em}#read-only-editor div.ProseMirror p code{background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:.1em .3em}#read-only-editor div.ProseMirror li{position:relative;padding-left:3px}#read-only-editor div.ProseMirror li p{margin-bottom:.5em}#read-only-editor div.ProseMirror ul,#read-only-editor div.ProseMirror ol{padding-left:10px;margin-left:10px;margin-bottom:1em}#read-only-editor div.ProseMirror ul>li{list-style-type:disc}#read-only-editor div.ProseMirror li ul>li{list-style-type:circle}#read-only-editor div.ProseMirror li li ul>li{list-style-type:square}#read-only-editor div.ProseMirror blockquote{padding-left:1em;border-left:4px solid var(--color-primary-element);color:var(--color-text-maxcontrast);margin-left:0;margin-right:0}:root{--table-color-border: var(--color-border);--table-color-heading: var(--color-text-maxcontrast);--table-color-heading-border: var(--color-border-dark);--table-color-background: var(--color-main-background);--table-color-background-hover: var(--color-primary-light);--table-border-radius: var(--border-radius)}#read-only-editor div.ProseMirror table{border-spacing:0;width:calc(100% - 50px);table-layout:auto;white-space:normal;margin-bottom:1em}#read-only-editor div.ProseMirror table{margin-top:1em}#read-only-editor div.ProseMirror table td,#read-only-editor div.ProseMirror table th{border:1px solid var(--table-color-border);border-left:0;vertical-align:top;max-width:100%}#read-only-editor div.ProseMirror table td:first-child,#read-only-editor div.ProseMirror table th:first-child{border-left:1px solid var(--table-color-border)}#read-only-editor div.ProseMirror table td{padding:.5em .75em;border-top:0;color:var(--color-main-text)}#read-only-editor div.ProseMirror table th{padding:0 0 0 .75em;font-weight:normal;border-bottom-color:var(--table-color-heading-border);color:var(--table-color-heading)}#read-only-editor div.ProseMirror table th>div{display:flex}#read-only-editor div.ProseMirror table tr{background-color:var(--table-color-background)}#read-only-editor div.ProseMirror table tr:hover,#read-only-editor div.ProseMirror table tr:active,#read-only-editor div.ProseMirror table tr:focus{background-color:var(--table-color-background-hover)}#read-only-editor div.ProseMirror table tr:first-child th:first-child{border-top-left-radius:var(--table-border-radius)}#read-only-editor div.ProseMirror table tr:first-child th:last-child{border-top-right-radius:var(--table-border-radius)}#read-only-editor div.ProseMirror table tr:last-child td:first-child{border-bottom-left-radius:var(--table-border-radius)}#read-only-editor div.ProseMirror table tr:last-child td:last-child{border-bottom-right-radius:var(--table-border-radius)}#read-only-editor .ProseMirror-focused .ProseMirror-gapcursor{display:block}#read-only-editor .editor__content p.is-empty:first-child::before{content:attr(data-placeholder);float:left;color:var(--color-text-maxcontrast);pointer-events:none;height:0}#read-only-editor .editor__content{tab-size:4}.thumbnailContainer #read-only-editor{width:100%}.thumbnailContainer #read-only-editor .ProseMirror{height:auto;margin:0 0 0 0;padding:0}',"",{version:3,sources:["webpack://./src/components/Reader.vue","webpack://./css/prosemirror.scss"],names:[],mappings:"AAEA,kBAEC,eAAA,CCDD,kCACC,WAAA,CACA,iBAAA,CACA,oBAAA,CACA,oBAAA,CACA,mCAAA,CACA,2BAAA,CACA,0BAAA,CACA,gBAAA,CACA,cAAA,CACA,YAAA,CAEA,0CAEC,sBAAA,CAGD,oOAIC,sBAAA,CACA,UAAA,CACA,8BAAA,CACA,4BAAA,CACA,SAAA,CACA,wBAAA,CACA,gBAAA,CACA,cAAA,CAEA,whBACC,0BAAA,CAIF,iDACC,YAAA,CACA,iBAAA,CAEA,iBAAA,CAEA,sEACC,YAAA,CAED,wDACC,UAAA,CACA,qBAAA,CACA,sBAAA,CACA,8CAAA,CACA,iBAAA,CACA,aAAA,CACA,kCAAA,CACA,WAAA,CACA,UAAA,CACA,0BAAA,CACA,0BAAA,CACA,cAAA,CAGA,gEACC,wDAAA,CACA,6CAAA,CACA,yCAAA,CAED,+DACC,mCAAA,CACA,4BAAA,CAGF,uDACC,aAAA,CACA,WAAA,CACA,2BAAA,CAIF,gDACC,eAAA,CAIA,sSACC,YAAA,CAIF,oCACC,kCAAA,CACA,yBAAA,CACA,cAAA,CAGD,oCACC,iBAAA,CACA,gBAAA,CAGD,qCACC,iBAAA,CAGD,8NAMC,eAAA,CACA,iBAAA,CACA,eAAA,CACA,kBAAA,CACA,4BAAA,CAGD,qCACC,cAAA,CAGD,qCACC,cAAA,CAGD,qCACC,cAAA,CAGD,qCACC,cAAA,CAGD,qCACC,cAAA,CAGD,qCACC,cAAA,CAGD,sCACC,cAAA,CACA,cAAA,CAGD,qCACC,aAAA,CACA,WAAA,CACA,YAAA,CACA,UAAA,CAGD,2CACC,UAAA,CACA,aAAA,CACA,UAAA,CACA,yCAAA,CACA,eAAA,CAGD,sCACC,oBAAA,CACA,6CAAA,CACA,kCAAA,CACA,iBAAA,CACA,iBAAA,CAGD,kDACC,iBAAA,CACA,kDAAA,CAGD,0DACC,aAAA,CACA,wBAAA,CACA,mCAAA,CACA,mBAAA,CAGD,yCACC,6CAAA,CACA,kCAAA,CACA,iBAAA,CAGD,qCACC,iBAAA,CACA,gBAAA,CAEA,uCACC,kBAAA,CAIF,0EACC,iBAAA,CACA,gBAAA,CACA,iBAAA,CAGD,wCACC,oBAAA,CAID,2CACC,sBAAA,CAID,8CACC,sBAAA,CAGD,6CACC,gBAAA,CACA,kDAAA,CACA,mCAAA,CACA,aAAA,CACA,cAAA,CAIQ,MACR,yCAAA,CACA,oDAAA,CACA,sDAAA,CACA,sDAAA,CACA,0DAAA,CACA,2CAAA,CAGD,wCACC,gBAAA,CACA,uBAAA,CACA,iBAAA,CACA,kBAAA,CACA,iBAAA,CACA,wCACC,cAAA,CAID,sFACC,0CAAA,CACA,aAAA,CACA,kBAAA,CACA,cAAA,CACA,8GACC,+CAAA,CAGF,2CACC,kBAAA,CACA,YAAA,CACA,4BAAA,CAED,2CACC,mBAAA,CACA,kBAAA,CACA,qDAAA,CACA,gCAAA,CAEA,+CACC,YAAA,CAGF,2CACC,8CAAA,CACA,oJACC,oDAAA,CAKD,sEAAA,iDAAA,CACA,qEAAA,kDAAA,CAIA,qEAAA,oDAAA,CACA,oEAAA,qDAAA,CAOH,8DACC,aAAA,CAGD,kEACC,8BAAA,CACA,UAAA,CACA,mCAAA,CACA,mBAAA,CACA,QAAA,CAGD,mCACC,UAAA,CDxSD,sCACC,UAAA,CAEA,mDACC,WAAA,CACA,cAAA,CACA,SAAA",sourcesContent:["\n\n#read-only-editor {\n\t@import './../../css/prosemirror';\n\toverflow: scroll;\n}\n\n.thumbnailContainer #read-only-editor {\n\twidth: 100%;\n\n\t.ProseMirror {\n\t\theight: auto;\n\t\tmargin: 0 0 0 0;\n\t\tpadding: 0;\n\t}\n}\n\n","@use 'sass:selector';\n\n/* Document rendering styles */\ndiv.ProseMirror {\n\theight: 100%;\n\tposition: relative;\n\tword-wrap: break-word;\n\twhite-space: pre-wrap;\n\t-webkit-font-variant-ligatures: none;\n\tfont-variant-ligatures: none;\n\tpadding: 4px 8px 200px 14px;\n\tline-height: 150%;\n\tfont-size: 14px;\n\toutline: none;\n\n\t:target {\n\t\t// Menubar height: 44px + 3px bottom + 3px top padding\n\t\tscroll-margin-top: 50px;\n\t}\n\n\t&[contenteditable=true],\n\t&[contenteditable=false],\n\t[contenteditable=true],\n\t[contenteditable=false] {\n\t\tborder: none !important;\n\t\twidth: 100%;\n\t\tbackground-color: transparent;\n\t\tcolor: var(--color-main-text);\n\t\topacity: 1;\n\t\t-webkit-user-select: text;\n\t\tuser-select: text;\n\t\tfont-size: 14px;\n\n\t\t&:focus, &:focus-visible {\n\t\t\tbox-shadow: none !important;\n\t\t}\n\t}\n\n\t.checkbox-item {\n\t\tdisplay: flex;\n\t\talign-items: start;\n\t\t// Left-align with list item text\n\t\tmargin-left: -23px;\n\n\t\tinput[type=checkbox] {\n\t\t\tdisplay: none;\n\t\t}\n\t\t&:before {\n\t\t\tcontent: '';\n\t\t\tvertical-align: middle;\n\t\t\tmargin: 3px 6px 3px 2px;\n\t\t\tborder: 1px solid var(--color-text-maxcontrast);\n\t\t\tposition: relative;\n\t\t\tdisplay: block;\n\t\t\tborder-radius: var(--border-radius);\n\t\t\theight: 14px;\n\t\t\twidth: 14px;\n\t\t\tbox-shadow: none !important;\n\t\t\tbackground-position: center;\n\t\t\tcursor: pointer;\n\t\t}\n\t\t&.checked{\n\t\t\t&:before {\n\t\t\t\tbackground-image: url('../../img/checkbox-mark.svg');\n\t\t\t\tbackground-color: var(--color-primary-element);\n\t\t\t\tborder-color: var(--color-primary-element);\n\t\t\t}\n\t\t\tlabel {\n\t\t\t\tcolor: var(--color-text-maxcontrast);\n\t\t\t\ttext-decoration: line-through;\n\t\t\t}\n\t\t}\n\t\tlabel {\n\t\t\tdisplay: block;\n\t\t\tflex-grow: 1;\n\t\t\tmax-width: calc(100% - 28px);\n\t\t}\n\t}\n\n\t> *:first-child {\n\t\tmargin-top: 10px;\n\t}\n\n\t> h1,h2,h3,h4,h5,h6 {\n\t\t&:first-child {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\n\ta {\n\t\tcolor: var(--color-primary-element);\n\t\ttext-decoration: underline;\n\t\tpadding: .5em 0;\n\t}\n\n\tp {\n\t\tmargin-bottom: 1em;\n\t\tline-height: 150%;\n\t}\n\n\tem {\n\t\tfont-style: italic;\n\t}\n\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6 {\n\t\tfont-weight: 600;\n\t\tline-height: 1.1em;\n\t\tmargin-top: 24px;\n\t\tmargin-bottom: 12px;\n\t\tcolor: var(--color-main-text);\n\t}\n\n\th1 {\n\t\tfont-size: 36px;\n\t}\n\n\th2 {\n\t\tfont-size: 30px;\n\t}\n\n\th3 {\n\t\tfont-size: 24px;\n\t}\n\n\th4 {\n\t\tfont-size: 21px;\n\t}\n\n\th5 {\n\t\tfont-size: 17px;\n\t}\n\n\th6 {\n\t\tfont-size: 14px;\n\t}\n\n\timg {\n\t\tcursor: default;\n\t\tmax-width: 100%;\n\t}\n\n\thr {\n\t\tpadding: 2px 0;\n\t\tborder: none;\n\t\tmargin: 2em 0;\n\t\twidth: 100%;\n\t}\n\n\thr:after {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\theight: 1px;\n\t\tbackground-color: var(--color-border-dark);\n\t\tline-height: 2px;\n\t}\n\n\tpre {\n\t\twhite-space: pre-wrap;\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: 1em 1.3em;\n\t\tmargin-bottom: 1em;\n\t}\n\n\tpre.frontmatter {\n\t\tmargin-bottom: 2em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t}\n\n\tpre.frontmatter::before {\n\t\tdisplay: block;\n\t\tcontent: attr(data-title);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tpadding-bottom: 0.5em;\n\t}\n\n\tp code {\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: .1em .3em;\n\t}\n\n\tli {\n\t\tposition: relative;\n\t\tpadding-left: 3px;\n\n\t\tp {\n\t\t\tmargin-bottom: 0.5em;\n\t\t}\n\t}\n\n\tul, ol {\n\t\tpadding-left: 10px;\n\t\tmargin-left: 10px;\n\t\tmargin-bottom: 1em;\n\t}\n\n\tul > li {\n\t\tlist-style-type: disc;\n\t}\n\n\t// Second-level list entries\n\tli ul > li {\n\t\tlist-style-type: circle;\n\t}\n\n\t// Third-level and further down list entries\n\tli li ul > li {\n\t\tlist-style-type: square;\n\t}\n\n\tblockquote {\n\t\tpadding-left: 1em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tmargin-left: 0;\n\t\tmargin-right: 0;\n\t}\n\n\t// table variables\n\t@at-root :root {\n\t\t--table-color-border: var(--color-border);\n\t\t--table-color-heading: var(--color-text-maxcontrast);\n\t\t--table-color-heading-border: var(--color-border-dark);\n\t\t--table-color-background: var(--color-main-background);\n\t\t--table-color-background-hover: var(--color-primary-light);\n\t\t--table-border-radius: var(--border-radius);\n\t}\n\n\ttable {\n\t\tborder-spacing: 0;\n\t\twidth: calc(100% - 50px);\n\t\ttable-layout: auto;\n\t\twhite-space: normal; // force text to wrapping\n\t\tmargin-bottom: 1em;\n\t\t+ & {\n\t\t\tmargin-top: 1em;\n\t\t}\n\n\n\t\ttd, th {\n\t\t\tborder: 1px solid var(--table-color-border);\n\t\t\tborder-left: 0;\n\t\t\tvertical-align: top;\n\t\t\tmax-width: 100%;\n\t\t\t&:first-child {\n\t\t\t\tborder-left: 1px solid var(--table-color-border);\n\t\t\t}\n\t\t}\n\t\ttd {\n\t\t\tpadding: 0.5em 0.75em;\n\t\t\tborder-top: 0;\n\t\t\tcolor: var(--color-main-text);\n\t\t}\n\t\tth {\n\t\t\tpadding: 0 0 0 0.75em;\n\t\t\tfont-weight: normal;\n\t\t\tborder-bottom-color: var(--table-color-heading-border);\n\t\t\tcolor: var(--table-color-heading);\n\n\t\t\t& > div {\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t}\n\t\ttr {\n\t\t\tbackground-color: var(--table-color-background);\n\t\t\t&:hover, &:active, &:focus {\n\t\t\t\tbackground-color: var(--table-color-background-hover);\n\t\t\t}\n\t\t}\n\n\t\ttr:first-child {\n\t\t\tth:first-child { border-top-left-radius: var(--table-border-radius); }\n\t\t\tth:last-child { border-top-right-radius: var(--table-border-radius); }\n\t\t}\n\n\t\ttr:last-child {\n\t\t\ttd:first-child { border-bottom-left-radius: var(--table-border-radius); }\n\t\t\ttd:last-child { border-bottom-right-radius: var(--table-border-radius); }\n\t\t}\n\n\t}\n\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n\tdisplay: block;\n}\n\n.editor__content p.is-empty:first-child::before {\n\tcontent: attr(data-placeholder);\n\tfloat: left;\n\tcolor: var(--color-text-maxcontrast);\n\tpointer-events: none;\n\theight: 0;\n}\n\n.editor__content {\n\ttab-size: 4;\n}\n"],sourceRoot:""}]);const A=d},51716:(t,e,n)=>{"use strict";n.d(e,{Z:()=>A});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i),s=n(61667),l=n.n(s),c=new URL(n(64989),n.b),d=a()(o()),u=l()(c);d.push([t.id,'div.ProseMirror{height:100%;position:relative;word-wrap:break-word;white-space:pre-wrap;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;padding:4px 8px 200px 14px;line-height:150%;font-size:14px;outline:none}div.ProseMirror :target{scroll-margin-top:50px}div.ProseMirror[contenteditable=true],div.ProseMirror[contenteditable=false],div.ProseMirror [contenteditable=true],div.ProseMirror [contenteditable=false]{border:none !important;width:100%;background-color:rgba(0,0,0,0);color:var(--color-main-text);opacity:1;-webkit-user-select:text;user-select:text;font-size:14px}div.ProseMirror[contenteditable=true]:focus,div.ProseMirror[contenteditable=true]:focus-visible,div.ProseMirror[contenteditable=false]:focus,div.ProseMirror[contenteditable=false]:focus-visible,div.ProseMirror [contenteditable=true]:focus,div.ProseMirror [contenteditable=true]:focus-visible,div.ProseMirror [contenteditable=false]:focus,div.ProseMirror [contenteditable=false]:focus-visible{box-shadow:none !important}div.ProseMirror .checkbox-item{display:flex;align-items:start;margin-left:-23px}div.ProseMirror .checkbox-item input[type=checkbox]{display:none}div.ProseMirror .checkbox-item:before{content:"";vertical-align:middle;margin:3px 6px 3px 2px;border:1px solid var(--color-text-maxcontrast);position:relative;display:block;border-radius:var(--border-radius);height:14px;width:14px;box-shadow:none !important;background-position:center;cursor:pointer}div.ProseMirror .checkbox-item.checked:before{background-image:url('+u+');background-color:var(--color-primary-element);border-color:var(--color-primary-element)}div.ProseMirror .checkbox-item.checked label{color:var(--color-text-maxcontrast);text-decoration:line-through}div.ProseMirror .checkbox-item label{display:block;flex-grow:1;max-width:calc(100% - 28px)}div.ProseMirror>*:first-child{margin-top:10px}div.ProseMirror>h1:first-child,div.ProseMirror h2:first-child,div.ProseMirror h3:first-child,div.ProseMirror h4:first-child,div.ProseMirror h5:first-child,div.ProseMirror h6:first-child{margin-top:0}div.ProseMirror a{color:var(--color-primary-element);text-decoration:underline;padding:.5em 0}div.ProseMirror p{margin-bottom:1em;line-height:150%}div.ProseMirror em{font-style:italic}div.ProseMirror h1,div.ProseMirror h2,div.ProseMirror h3,div.ProseMirror h4,div.ProseMirror h5,div.ProseMirror h6{font-weight:600;line-height:1.1em;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}div.ProseMirror h1{font-size:36px}div.ProseMirror h2{font-size:30px}div.ProseMirror h3{font-size:24px}div.ProseMirror h4{font-size:21px}div.ProseMirror h5{font-size:17px}div.ProseMirror h6{font-size:14px}div.ProseMirror img{cursor:default;max-width:100%}div.ProseMirror hr{padding:2px 0;border:none;margin:2em 0;width:100%}div.ProseMirror hr:after{content:"";display:block;height:1px;background-color:var(--color-border-dark);line-height:2px}div.ProseMirror pre{white-space:pre-wrap;background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:1em 1.3em;margin-bottom:1em}div.ProseMirror pre.frontmatter{margin-bottom:2em;border-left:4px solid var(--color-primary-element)}div.ProseMirror pre.frontmatter::before{display:block;content:attr(data-title);color:var(--color-text-maxcontrast);padding-bottom:.5em}div.ProseMirror p code{background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:.1em .3em}div.ProseMirror li{position:relative;padding-left:3px}div.ProseMirror li p{margin-bottom:.5em}div.ProseMirror ul,div.ProseMirror ol{padding-left:10px;margin-left:10px;margin-bottom:1em}div.ProseMirror ul>li{list-style-type:disc}div.ProseMirror li ul>li{list-style-type:circle}div.ProseMirror li li ul>li{list-style-type:square}div.ProseMirror blockquote{padding-left:1em;border-left:4px solid var(--color-primary-element);color:var(--color-text-maxcontrast);margin-left:0;margin-right:0}:root{--table-color-border: var(--color-border);--table-color-heading: var(--color-text-maxcontrast);--table-color-heading-border: var(--color-border-dark);--table-color-background: var(--color-main-background);--table-color-background-hover: var(--color-primary-light);--table-border-radius: var(--border-radius)}div.ProseMirror table{border-spacing:0;width:calc(100% - 50px);table-layout:auto;white-space:normal;margin-bottom:1em}div.ProseMirror table{margin-top:1em}div.ProseMirror table td,div.ProseMirror table th{border:1px solid var(--table-color-border);border-left:0;vertical-align:top;max-width:100%}div.ProseMirror table td:first-child,div.ProseMirror table th:first-child{border-left:1px solid var(--table-color-border)}div.ProseMirror table td{padding:.5em .75em;border-top:0;color:var(--color-main-text)}div.ProseMirror table th{padding:0 0 0 .75em;font-weight:normal;border-bottom-color:var(--table-color-heading-border);color:var(--table-color-heading)}div.ProseMirror table th>div{display:flex}div.ProseMirror table tr{background-color:var(--table-color-background)}div.ProseMirror table tr:hover,div.ProseMirror table tr:active,div.ProseMirror table tr:focus{background-color:var(--table-color-background-hover)}div.ProseMirror table tr:first-child th:first-child{border-top-left-radius:var(--table-border-radius)}div.ProseMirror table tr:first-child th:last-child{border-top-right-radius:var(--table-border-radius)}div.ProseMirror table tr:last-child td:first-child{border-bottom-left-radius:var(--table-border-radius)}div.ProseMirror table tr:last-child td:last-child{border-bottom-right-radius:var(--table-border-radius)}.ProseMirror-focused .ProseMirror-gapcursor{display:block}.editor__content p.is-empty:first-child::before{content:attr(data-placeholder);float:left;color:var(--color-text-maxcontrast);pointer-events:none;height:0}.editor__content{tab-size:4}@media print{@page{size:A4;margin:2.5cm 2cm 2cm 2.5cm}body{position:absolute;overflow:visible !important}#viewer[data-handler=text]{border:none;width:100% !important;position:absolute !important}#viewer[data-handler=text] .modal-header{display:none !important}#viewer[data-handler=text] .modal-container{top:0px;height:fit-content}.text-editor .text-menubar{display:none !important}.text-editor .action-item{display:none !important}.text-editor .editor__content{max-width:100%}.text-editor .text-editor__wrapper{height:fit-content;position:unset}.text-editor div.ProseMirror h1,.text-editor div.ProseMirror h2,.text-editor div.ProseMirror h3,.text-editor div.ProseMirror h4,.text-editor div.ProseMirror h5{break-after:avoid}.text-editor div.ProseMirror .image,.text-editor div.ProseMirror img,.text-editor div.ProseMirror table{break-inside:avoid-page;max-width:90% !important;margin:5vw auto 5vw 5% !important}.text-editor div.ProseMirror th{color:#000 !important;font-weight:bold !important;border-width:0 1px 2px 0 !important;border-color:gray !important;border-style:none solid solid none !important}.text-editor div.ProseMirror th:last-of-type{border-width:0 0 2px 0 !important}.text-editor div.ProseMirror td{border-style:none solid none none !important;border-width:1px !important;border-color:gray !important}.text-editor div.ProseMirror td:last-of-type{border:none !important}.menubar-placeholder,.text-editor--readonly-bar{display:none}.text-editor__content-wrapper.--show-outline{display:block}.text-editor__content-wrapper .editor--outline{width:auto;height:auto;overflow:unset;position:relative}.text-editor__content-wrapper .editor--outline__btn-close{display:none}}@media print{#content{display:none}}',"",{version:3,sources:["webpack://./css/prosemirror.scss","webpack://./css/print.scss","webpack://./src/components/RichTextReader.vue"],names:[],mappings:"AAGA,gBACC,WAAA,CACA,iBAAA,CACA,oBAAA,CACA,oBAAA,CACA,mCAAA,CACA,2BAAA,CACA,0BAAA,CACA,gBAAA,CACA,cAAA,CACA,YAAA,CAEA,wBAEC,sBAAA,CAGD,4JAIC,sBAAA,CACA,UAAA,CACA,8BAAA,CACA,4BAAA,CACA,SAAA,CACA,wBAAA,CACA,gBAAA,CACA,cAAA,CAEA,wYACC,0BAAA,CAIF,+BACC,YAAA,CACA,iBAAA,CAEA,iBAAA,CAEA,oDACC,YAAA,CAED,sCACC,UAAA,CACA,qBAAA,CACA,sBAAA,CACA,8CAAA,CACA,iBAAA,CACA,aAAA,CACA,kCAAA,CACA,WAAA,CACA,UAAA,CACA,0BAAA,CACA,0BAAA,CACA,cAAA,CAGA,8CACC,wDAAA,CACA,6CAAA,CACA,yCAAA,CAED,6CACC,mCAAA,CACA,4BAAA,CAGF,qCACC,aAAA,CACA,WAAA,CACA,2BAAA,CAIF,8BACC,eAAA,CAIA,0LACC,YAAA,CAIF,kBACC,kCAAA,CACA,yBAAA,CACA,cAAA,CAGD,kBACC,iBAAA,CACA,gBAAA,CAGD,mBACC,iBAAA,CAGD,kHAMC,eAAA,CACA,iBAAA,CACA,eAAA,CACA,kBAAA,CACA,4BAAA,CAGD,mBACC,cAAA,CAGD,mBACC,cAAA,CAGD,mBACC,cAAA,CAGD,mBACC,cAAA,CAGD,mBACC,cAAA,CAGD,mBACC,cAAA,CAGD,oBACC,cAAA,CACA,cAAA,CAGD,mBACC,aAAA,CACA,WAAA,CACA,YAAA,CACA,UAAA,CAGD,yBACC,UAAA,CACA,aAAA,CACA,UAAA,CACA,yCAAA,CACA,eAAA,CAGD,oBACC,oBAAA,CACA,6CAAA,CACA,kCAAA,CACA,iBAAA,CACA,iBAAA,CAGD,gCACC,iBAAA,CACA,kDAAA,CAGD,wCACC,aAAA,CACA,wBAAA,CACA,mCAAA,CACA,mBAAA,CAGD,uBACC,6CAAA,CACA,kCAAA,CACA,iBAAA,CAGD,mBACC,iBAAA,CACA,gBAAA,CAEA,qBACC,kBAAA,CAIF,sCACC,iBAAA,CACA,gBAAA,CACA,iBAAA,CAGD,sBACC,oBAAA,CAID,yBACC,sBAAA,CAID,4BACC,sBAAA,CAGD,2BACC,gBAAA,CACA,kDAAA,CACA,mCAAA,CACA,aAAA,CACA,cAAA,CAIQ,MACR,yCAAA,CACA,oDAAA,CACA,sDAAA,CACA,sDAAA,CACA,0DAAA,CACA,2CAAA,CAGD,sBACC,gBAAA,CACA,uBAAA,CACA,iBAAA,CACA,kBAAA,CACA,iBAAA,CACA,sBACC,cAAA,CAID,kDACC,0CAAA,CACA,aAAA,CACA,kBAAA,CACA,cAAA,CACA,0EACC,+CAAA,CAGF,yBACC,kBAAA,CACA,YAAA,CACA,4BAAA,CAED,yBACC,mBAAA,CACA,kBAAA,CACA,qDAAA,CACA,gCAAA,CAEA,6BACC,YAAA,CAGF,yBACC,8CAAA,CACA,8FACC,oDAAA,CAKD,oDAAA,iDAAA,CACA,mDAAA,kDAAA,CAIA,mDAAA,oDAAA,CACA,kDAAA,qDAAA,CAOH,4CACC,aAAA,CAGD,gDACC,8BAAA,CACA,UAAA,CACA,mCAAA,CACA,mBAAA,CACA,QAAA,CAGD,iBACC,UAAA,CC/SD,aACC,MACC,OAAA,CACA,0BAAA,CAGD,KAEC,iBAAA,CACA,2BAAA,CAGD,2BAEC,WAAA,CACA,qBAAA,CAEA,4BAAA,CAEA,yCAEC,uBAAA,CAED,4CAEC,OAAA,CACA,kBAAA,CAKD,2BAEC,uBAAA,CAED,0BAEC,uBAAA,CAED,8BAEC,cAAA,CAED,mCACC,kBAAA,CACA,cAAA,CAIA,gKAEC,iBAAA,CAED,wGAEC,uBAAA,CAEA,wBAAA,CACA,iCAAA,CAID,gCACC,qBAAA,CACA,2BAAA,CACA,mCAAA,CACA,4BAAA,CACA,6CAAA,CAED,6CACC,iCAAA,CAGD,gCACC,4CAAA,CACA,2BAAA,CACA,4BAAA,CAED,6CACC,sBAAA,CAKH,gDACC,YAAA,CAIA,6CACC,aAAA,CAGD,+CACC,UAAA,CACA,WAAA,CACA,cAAA,CACA,iBAAA,CAED,0DACC,YAAA,CAAA,CChGH,aAEC,SACC,YAAA,CAAA",sourcesContent:["@use 'sass:selector';\n\n/* Document rendering styles */\ndiv.ProseMirror {\n\theight: 100%;\n\tposition: relative;\n\tword-wrap: break-word;\n\twhite-space: pre-wrap;\n\t-webkit-font-variant-ligatures: none;\n\tfont-variant-ligatures: none;\n\tpadding: 4px 8px 200px 14px;\n\tline-height: 150%;\n\tfont-size: 14px;\n\toutline: none;\n\n\t:target {\n\t\t// Menubar height: 44px + 3px bottom + 3px top padding\n\t\tscroll-margin-top: 50px;\n\t}\n\n\t&[contenteditable=true],\n\t&[contenteditable=false],\n\t[contenteditable=true],\n\t[contenteditable=false] {\n\t\tborder: none !important;\n\t\twidth: 100%;\n\t\tbackground-color: transparent;\n\t\tcolor: var(--color-main-text);\n\t\topacity: 1;\n\t\t-webkit-user-select: text;\n\t\tuser-select: text;\n\t\tfont-size: 14px;\n\n\t\t&:focus, &:focus-visible {\n\t\t\tbox-shadow: none !important;\n\t\t}\n\t}\n\n\t.checkbox-item {\n\t\tdisplay: flex;\n\t\talign-items: start;\n\t\t// Left-align with list item text\n\t\tmargin-left: -23px;\n\n\t\tinput[type=checkbox] {\n\t\t\tdisplay: none;\n\t\t}\n\t\t&:before {\n\t\t\tcontent: '';\n\t\t\tvertical-align: middle;\n\t\t\tmargin: 3px 6px 3px 2px;\n\t\t\tborder: 1px solid var(--color-text-maxcontrast);\n\t\t\tposition: relative;\n\t\t\tdisplay: block;\n\t\t\tborder-radius: var(--border-radius);\n\t\t\theight: 14px;\n\t\t\twidth: 14px;\n\t\t\tbox-shadow: none !important;\n\t\t\tbackground-position: center;\n\t\t\tcursor: pointer;\n\t\t}\n\t\t&.checked{\n\t\t\t&:before {\n\t\t\t\tbackground-image: url('../../img/checkbox-mark.svg');\n\t\t\t\tbackground-color: var(--color-primary-element);\n\t\t\t\tborder-color: var(--color-primary-element);\n\t\t\t}\n\t\t\tlabel {\n\t\t\t\tcolor: var(--color-text-maxcontrast);\n\t\t\t\ttext-decoration: line-through;\n\t\t\t}\n\t\t}\n\t\tlabel {\n\t\t\tdisplay: block;\n\t\t\tflex-grow: 1;\n\t\t\tmax-width: calc(100% - 28px);\n\t\t}\n\t}\n\n\t> *:first-child {\n\t\tmargin-top: 10px;\n\t}\n\n\t> h1,h2,h3,h4,h5,h6 {\n\t\t&:first-child {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\n\ta {\n\t\tcolor: var(--color-primary-element);\n\t\ttext-decoration: underline;\n\t\tpadding: .5em 0;\n\t}\n\n\tp {\n\t\tmargin-bottom: 1em;\n\t\tline-height: 150%;\n\t}\n\n\tem {\n\t\tfont-style: italic;\n\t}\n\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6 {\n\t\tfont-weight: 600;\n\t\tline-height: 1.1em;\n\t\tmargin-top: 24px;\n\t\tmargin-bottom: 12px;\n\t\tcolor: var(--color-main-text);\n\t}\n\n\th1 {\n\t\tfont-size: 36px;\n\t}\n\n\th2 {\n\t\tfont-size: 30px;\n\t}\n\n\th3 {\n\t\tfont-size: 24px;\n\t}\n\n\th4 {\n\t\tfont-size: 21px;\n\t}\n\n\th5 {\n\t\tfont-size: 17px;\n\t}\n\n\th6 {\n\t\tfont-size: 14px;\n\t}\n\n\timg {\n\t\tcursor: default;\n\t\tmax-width: 100%;\n\t}\n\n\thr {\n\t\tpadding: 2px 0;\n\t\tborder: none;\n\t\tmargin: 2em 0;\n\t\twidth: 100%;\n\t}\n\n\thr:after {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\theight: 1px;\n\t\tbackground-color: var(--color-border-dark);\n\t\tline-height: 2px;\n\t}\n\n\tpre {\n\t\twhite-space: pre-wrap;\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: 1em 1.3em;\n\t\tmargin-bottom: 1em;\n\t}\n\n\tpre.frontmatter {\n\t\tmargin-bottom: 2em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t}\n\n\tpre.frontmatter::before {\n\t\tdisplay: block;\n\t\tcontent: attr(data-title);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tpadding-bottom: 0.5em;\n\t}\n\n\tp code {\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: .1em .3em;\n\t}\n\n\tli {\n\t\tposition: relative;\n\t\tpadding-left: 3px;\n\n\t\tp {\n\t\t\tmargin-bottom: 0.5em;\n\t\t}\n\t}\n\n\tul, ol {\n\t\tpadding-left: 10px;\n\t\tmargin-left: 10px;\n\t\tmargin-bottom: 1em;\n\t}\n\n\tul > li {\n\t\tlist-style-type: disc;\n\t}\n\n\t// Second-level list entries\n\tli ul > li {\n\t\tlist-style-type: circle;\n\t}\n\n\t// Third-level and further down list entries\n\tli li ul > li {\n\t\tlist-style-type: square;\n\t}\n\n\tblockquote {\n\t\tpadding-left: 1em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tmargin-left: 0;\n\t\tmargin-right: 0;\n\t}\n\n\t// table variables\n\t@at-root :root {\n\t\t--table-color-border: var(--color-border);\n\t\t--table-color-heading: var(--color-text-maxcontrast);\n\t\t--table-color-heading-border: var(--color-border-dark);\n\t\t--table-color-background: var(--color-main-background);\n\t\t--table-color-background-hover: var(--color-primary-light);\n\t\t--table-border-radius: var(--border-radius);\n\t}\n\n\ttable {\n\t\tborder-spacing: 0;\n\t\twidth: calc(100% - 50px);\n\t\ttable-layout: auto;\n\t\twhite-space: normal; // force text to wrapping\n\t\tmargin-bottom: 1em;\n\t\t+ & {\n\t\t\tmargin-top: 1em;\n\t\t}\n\n\n\t\ttd, th {\n\t\t\tborder: 1px solid var(--table-color-border);\n\t\t\tborder-left: 0;\n\t\t\tvertical-align: top;\n\t\t\tmax-width: 100%;\n\t\t\t&:first-child {\n\t\t\t\tborder-left: 1px solid var(--table-color-border);\n\t\t\t}\n\t\t}\n\t\ttd {\n\t\t\tpadding: 0.5em 0.75em;\n\t\t\tborder-top: 0;\n\t\t\tcolor: var(--color-main-text);\n\t\t}\n\t\tth {\n\t\t\tpadding: 0 0 0 0.75em;\n\t\t\tfont-weight: normal;\n\t\t\tborder-bottom-color: var(--table-color-heading-border);\n\t\t\tcolor: var(--table-color-heading);\n\n\t\t\t& > div {\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t}\n\t\ttr {\n\t\t\tbackground-color: var(--table-color-background);\n\t\t\t&:hover, &:active, &:focus {\n\t\t\t\tbackground-color: var(--table-color-background-hover);\n\t\t\t}\n\t\t}\n\n\t\ttr:first-child {\n\t\t\tth:first-child { border-top-left-radius: var(--table-border-radius); }\n\t\t\tth:last-child { border-top-right-radius: var(--table-border-radius); }\n\t\t}\n\n\t\ttr:last-child {\n\t\t\ttd:first-child { border-bottom-left-radius: var(--table-border-radius); }\n\t\t\ttd:last-child { border-bottom-right-radius: var(--table-border-radius); }\n\t\t}\n\n\t}\n\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n\tdisplay: block;\n}\n\n.editor__content p.is-empty:first-child::before {\n\tcontent: attr(data-placeholder);\n\tfloat: left;\n\tcolor: var(--color-text-maxcontrast);\n\tpointer-events: none;\n\theight: 0;\n}\n\n.editor__content {\n\ttab-size: 4;\n}\n","@media print {\n\t@page {\n\t\tsize: A4;\n\t\tmargin: 2.5cm 2cm 2cm 2.5cm;\n\t}\n\n\tbody {\n\t\t// position: fixed does not support scrolling and as such only prints one page\n\t\tposition: absolute;\n\t\toverflow: visible!important;\n\t}\n\n\t#viewer[data-handler='text'] {\n\t\t// Hide top border\n\t\tborder: none;\n\t\twidth: 100%!important;\n\t\t// NcModal uses fixed, which will be cropped when printed\n\t\tposition: absolute!important;\n\n\t\t.modal-header {\n\t\t\t// Hide modal header (close button)\n\t\t\tdisplay: none!important;\n\t\t}\n\t\t.modal-container {\n\t\t\t// Make sure top aligned as we hided the menubar */\n\t\t\ttop: 0px;\n\t\t\theight: fit-content;\n\t\t}\n\t}\n\n\t.text-editor {\n\t\t.text-menubar {\n\t\t\t// Hide menu bar\n\t\t\tdisplay: none!important;\n\t\t}\n\t\t.action-item {\n\t\t\t// Hide table settings\n\t\t\tdisplay: none!important;\n\t\t}\n\t\t.editor__content {\n\t\t\t// Margins set by page rule\n\t\t\tmax-width: 100%;\n\t\t}\n\t\t.text-editor__wrapper {\n\t\t\theight: fit-content;\n\t\t\tposition: unset;\n\t\t}\n\n\t\tdiv.ProseMirror {\n\t\t\th1, h2, h3, h4, h5 {\n\t\t\t\t// orphaned headlines are ugly\n\t\t\t\tbreak-after: avoid;\n\t\t\t}\n\t\t\t.image, img, table {\n\t\t\t\t// try no page breaks within tables or images\n\t\t\t\tbreak-inside: avoid-page;\n\t\t\t\t// Some more indention\n\t\t\t\tmax-width: 90%!important;\n\t\t\t\tmargin: 5vw auto 5vw 5%!important;\n\t\t\t}\n\n\t\t\t// Add some borders below header and between columns\n\t\t\tth {\n\t\t\t\tcolor: black!important;\n\t\t\t\tfont-weight: bold!important;\n\t\t\t\tborder-width: 0 1px 2px 0!important;\n\t\t\t\tborder-color: gray!important;\n\t\t\t\tborder-style: none solid solid none!important;\n\t\t\t}\n\t\t\tth:last-of-type {\n\t\t\t\tborder-width: 0 0 2px 0!important;\n\t\t\t}\n\n\t\t\ttd {\n\t\t\t\tborder-style: none solid none none!important;\n\t\t\t\tborder-width: 1px!important;\n\t\t\t\tborder-color: gray!important;\n\t\t\t}\n\t\t\ttd:last-of-type {\n\t\t\t\tborder: none!important;\n\t\t\t}\n\t\t}\n\t}\n\n\t.menubar-placeholder, .text-editor--readonly-bar {\n\t\tdisplay: none;\n\t}\n\n\t.text-editor__content-wrapper {\n\t\t&.--show-outline {\n\t\t\tdisplay: block;\n\t\t}\n\n\t\t.editor--outline {\n\t\t\twidth: auto;\n\t\t\theight: auto;\n\t\t\toverflow: unset;\n\t\t\tposition: relative;\n\t\t}\n\t\t.editor--outline__btn-close {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n","\n@import './../../css/prosemirror';\n@import './../../css/print';\n\n@media print {\n\t// Hide Content behind modal, this also hides the sidebar if open\n\t#content {\n\t\tdisplay: none;\n\t}\n}\n"],sourceRoot:""}]);const A=d},73819:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".callout[data-v-6b292428]{background-color:var(--callout-background, var(--color-background-hover));border-left-color:var(--callout-border, var(--color-primary-element));border-radius:var(--border-radius);padding:1em;padding-left:.5em;border-left-width:.3em;border-left-style:solid;position:relative;margin-bottom:.5em;display:flex;align-items:center;justify-content:flex-start}.callout[data-v-6b292428]{margin-top:.5em}.callout .callout__content[data-v-6b292428]{margin-left:1em}.callout .callout__content[data-v-6b292428] p:last-child{margin-bottom:0}.callout .callout__icon[data-v-6b292428],.callout .callout__icon[data-v-6b292428] svg{color:var(--callout-border)}.callout[data-v-6b292428],.callout--info[data-v-6b292428]{--callout-border: var(--color-primary-element)}.callout--warn[data-v-6b292428]{--callout-border: var(--color-warning)}.callout--error[data-v-6b292428]{--callout-border: var(--color-error)}.callout--success[data-v-6b292428]{--callout-border: var(--color-success)}","",{version:3,sources:["webpack://./src/nodes/Callout.vue"],names:[],mappings:"AACA,0BACC,yEAAA,CACA,qEAAA,CACA,kCAAA,CACA,WAAA,CACA,iBAAA,CACA,sBAAA,CACA,uBAAA,CACA,iBAAA,CACA,kBAAA,CAEA,YAAA,CACA,kBAAA,CACA,0BAAA,CAEA,0BACC,eAAA,CAGD,4CACC,eAAA,CAEC,yDACC,eAAA,CAMF,sFACC,2BAAA,CAKF,0DACC,8CAAA,CAID,gCACC,sCAAA,CAID,iCACC,oCAAA,CAID,mCACC,sCAAA",sourcesContent:["\n.callout {\n\tbackground-color: var(--callout-background, var(--color-background-hover));\n\tborder-left-color: var(--callout-border, var(--color-primary-element));\n\tborder-radius: var(--border-radius);\n\tpadding: 1em;\n\tpadding-left: 0.5em;\n\tborder-left-width: 0.3em;\n\tborder-left-style: solid;\n\tposition: relative;\n\tmargin-bottom: 0.5em;\n\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: flex-start;\n\n\t+ & {\n\t\tmargin-top: 0.5em;\n\t}\n\n\t.callout__content {\n\t\tmargin-left: 1em;\n\t\t&:deep(p) {\n\t\t\t&:last-child {\n\t\t\t\tmargin-bottom: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t.callout__icon {\n\t\t&, :deep(svg) {\n\t\t\tcolor: var(--callout-border);\n\t\t}\n\t}\n\n\t// Info (default) variables\n\t&, &--info {\n\t\t--callout-border: var(--color-primary-element);\n\t}\n\n\t// Warn variables\n\t&--warn {\n\t\t--callout-border: var(--color-warning);\n\t}\n\n\t// Error variables\n\t&--error {\n\t\t--callout-border: var(--color-error);\n\t}\n\n\t// Success variables\n\t&--success {\n\t\t--callout-border: var(--color-success);\n\t}\n}\n"],sourceRoot:""}]);const s=a},32815:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,"div.ProseMirror h1,div.ProseMirror h2,div.ProseMirror h3,div.ProseMirror h4,div.ProseMirror h5,div.ProseMirror h6{position:relative}div.ProseMirror h1 .heading-anchor[contenteditable=false],div.ProseMirror h2 .heading-anchor[contenteditable=false],div.ProseMirror h3 .heading-anchor[contenteditable=false],div.ProseMirror h4 .heading-anchor[contenteditable=false],div.ProseMirror h5 .heading-anchor[contenteditable=false],div.ProseMirror h6 .heading-anchor[contenteditable=false]{opacity:0;padding:0;left:-1em;bottom:0;font-size:max(1em,16px);position:absolute;text-decoration:none;transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}div.ProseMirror h1:hover .heading-anchor,div.ProseMirror h2:hover .heading-anchor,div.ProseMirror h3:hover .heading-anchor,div.ProseMirror h4:hover .heading-anchor,div.ProseMirror h5:hover .heading-anchor,div.ProseMirror h6:hover .heading-anchor{opacity:.5 !important}div.ProseMirror h1:focus-visible,div.ProseMirror h2:focus-visible,div.ProseMirror h3:focus-visible,div.ProseMirror h4:focus-visible,div.ProseMirror h5:focus-visible,div.ProseMirror h6:focus-visible{outline:none}div.ProseMirror[contenteditable=true] h1 .heading-anchor,div.ProseMirror[contenteditable=true] h2 .heading-anchor,div.ProseMirror[contenteditable=true] h3 .heading-anchor,div.ProseMirror[contenteditable=true] h4 .heading-anchor,div.ProseMirror[contenteditable=true] h5 .heading-anchor,div.ProseMirror[contenteditable=true] h6 .heading-anchor{width:1em}","",{version:3,sources:["webpack://./src/nodes/Heading/HeadingView.vue"],names:[],mappings:"AAGC,kHACC,iBAAA,CACA,4VACC,SAAA,CACA,SAAA,CACA,SAAA,CACA,QAAA,CACA,uBAAA,CACA,iBAAA,CACA,oBAAA,CACA,wBAAA,CACA,2BAAA,CACA,uDAAA,CAGD,sPACC,qBAAA,CAGD,sMACC,YAAA,CAOA,sVACC,SAAA",sourcesContent:['\ndiv.ProseMirror {\n\t/* Anchor links */\n\th1,h2,h3,h4,h5,h6 {\n\t\tposition: relative;\n\t\t.heading-anchor[contenteditable="false"] {\n\t\t\topacity: 0;\n\t\t\tpadding: 0;\n\t\t\tleft: -1em;\n\t\t\tbottom: 0;\n\t\t\tfont-size: max(1em, 16px);\n\t\t\tposition: absolute;\n\t\t\ttext-decoration: none;\n\t\t\ttransition-duration: .15s;\n\t\t\ttransition-property: opacity;\n\t\t\ttransition-timing-function: cubic-bezier(.4,0,.2,1);\n\t\t}\n\n\t\t&:hover .heading-anchor {\n\t\t\topacity: 0.5!important;\n\t\t}\n\n\t\t&:focus-visible {\n\t\t\toutline: none;\n\t\t}\n\t}\n\n\t// Shrink clickable area of anchor permalinks while editing\n\t&[contenteditable="true"] {\n\t\th1,h2,h3,h4,h5,h6 {\n\t\t\t.heading-anchor {\n\t\t\t\twidth: 1em;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const s=a},54239:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".image[data-v-c615c456]{margin:0;padding:0}.image[data-v-c615c456],.image *[data-v-c615c456]{-webkit-user-modify:read-only !important}.image__caption[data-v-c615c456]{text-align:center;color:var(--color-text-lighter);display:flex;align-items:center;justify-content:center}.image__caption__wrapper[data-v-c615c456]{position:relative}.image__caption input[type=text][data-v-c615c456]{width:200px;max-width:80%;text-align:center;background-color:rgba(0,0,0,0);border:none !important;color:var(--color-text-maxcontrast) !important}.image__caption input[type=text][data-v-c615c456]:focus{border:2px solid var(--color-border-dark) !important;color:var(--color-main-text) !important}.image__loading[data-v-c615c456]{height:100px}.image__main--broken-icon[data-v-c615c456],.image__error-message[data-v-c615c456]{color:var(--color-text-maxcontrast)}.image__view[data-v-c615c456]{text-align:center;position:relative}.image__view img[data-v-c615c456]{max-width:100%}.image__view:hover input[type=text][data-v-c615c456]{border:2px solid var(--color-border-dark) !important;color:var(--color-main-text) !important}.image__main[data-v-c615c456]{max-height:calc(100vh - 50px - 50px)}.media[data-v-c615c456]{display:flex;align-items:center;justify-content:left}.media .media__wrapper[data-v-c615c456]{display:flex;border:2px solid var(--color-border);border-radius:var(--border-radius-large);padding:8px}.media .media__wrapper img[data-v-c615c456]{width:44px;height:44px}.media .media__wrapper .metadata[data-v-c615c456]{margin-left:8px;display:flex;flex-direction:column;align-items:start}.media .media__wrapper .metadata span[data-v-c615c456]{line-height:20px;font-weight:normal}.media .media__wrapper .metadata span.size[data-v-c615c456]{color:var(--color-text-maxcontrast)}.media .buttons[data-v-c615c456]{margin-left:8px}.image__error-message[data-v-c615c456]{display:block;text-align:center}.fade-enter-active[data-v-c615c456]{transition:opacity .3s ease-in-out}.fade-enter-to[data-v-c615c456]{opacity:1}.fade-enter[data-v-c615c456]{opacity:0}.image__caption__delete[data-v-c615c456]{display:flex;align-items:center;width:20px;height:20px;position:absolute;right:-6px;bottom:10px}.image__caption__delete[data-v-c615c456],.image__caption__delete svg[data-v-c615c456]{cursor:pointer}","",{version:3,sources:["webpack://./src/nodes/ImageView.vue"],names:[],mappings:"AACA,wBACC,QAAA,CACA,SAAA,CAEA,kDACC,wCAAA,CAIF,iCACC,iBAAA,CACA,+BAAA,CACA,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,0CACC,iBAAA,CAED,kDACC,WAAA,CACA,aAAA,CACA,iBAAA,CACA,8BAAA,CACA,sBAAA,CACA,8CAAA,CAEA,wDACC,oDAAA,CACA,uCAAA,CAKH,iCACC,YAAA,CAGD,kFACC,mCAAA,CAGD,8BACC,iBAAA,CACA,iBAAA,CAEA,kCACC,cAAA,CAIA,qDACC,oDAAA,CACA,uCAAA,CAKH,8BACC,oCAAA,CAGD,wBACC,YAAA,CACA,kBAAA,CACA,oBAAA,CACA,wCACC,YAAA,CACA,oCAAA,CACA,wCAAA,CACA,WAAA,CAEA,4CACC,UAAA,CACA,WAAA,CAGD,kDACC,eAAA,CACA,YAAA,CACA,qBAAA,CACA,iBAAA,CAEA,uDACC,gBAAA,CACA,kBAAA,CAEA,4DACC,mCAAA,CAKJ,iCACC,eAAA,CAIF,uCACC,aAAA,CACA,iBAAA,CAGD,oCACC,kCAAA,CAGD,gCACC,SAAA,CAGD,6BACC,SAAA,CAGD,yCACC,YAAA,CACA,kBAAA,CACA,UAAA,CACA,WAAA,CACA,iBAAA,CACA,UAAA,CACA,WAAA,CACA,sFACC,cAAA",sourcesContent:["\n.image {\n\tmargin: 0;\n\tpadding: 0;\n\n\t&, * {\n\t\t-webkit-user-modify: read-only !important;\n\t}\n}\n\n.image__caption {\n\ttext-align: center;\n\tcolor: var(--color-text-lighter);\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\t&__wrapper {\n\t\tposition: relative;\n\t}\n\tinput[type='text'] {\n\t\twidth: 200px;\n\t\tmax-width: 80%;\n\t\ttext-align: center;\n\t\tbackground-color: transparent;\n\t\tborder: none !important;\n\t\tcolor: var(--color-text-maxcontrast) !important;\n\n\t\t&:focus {\n\t\t\tborder: 2px solid var(--color-border-dark) !important;\n\t\t\tcolor: var(--color-main-text) !important;\n\t\t}\n\t}\n}\n\n.image__loading {\n\theight: 100px;\n}\n\n.image__main--broken-icon, .image__error-message {\n\tcolor: var(--color-text-maxcontrast);\n}\n\n.image__view {\n\ttext-align: center;\n\tposition: relative;\n\n\timg {\n\t\tmax-width: 100%;\n\t}\n\n\t&:hover {\n\t\tinput[type='text'] {\n\t\t\tborder: 2px solid var(--color-border-dark) !important;\n\t\t\tcolor: var(--color-main-text) !important;\n\t\t}\n\t}\n}\n\n.image__main {\n\tmax-height: calc(100vh - 50px - 50px);\n}\n\n.media {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: left;\n\t.media__wrapper {\n\t\tdisplay: flex;\n\t\tborder: 2px solid var(--color-border);\n\t\tborder-radius: var(--border-radius-large);\n\t\tpadding: 8px;\n\n\t\timg {\n\t\t\twidth: 44px;\n\t\t\theight: 44px;\n\t\t}\n\n\t\t.metadata {\n\t\t\tmargin-left: 8px;\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\talign-items: start;\n\n\t\t\tspan {\n\t\t\t\tline-height: 20px;\n\t\t\t\tfont-weight: normal;\n\n\t\t\t\t&.size {\n\t\t\t\t\tcolor: var(--color-text-maxcontrast);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t.buttons {\n\t\tmargin-left: 8px;\n\t}\n}\n\n.image__error-message {\n\tdisplay: block;\n\ttext-align: center;\n}\n\n.fade-enter-active {\n\ttransition: opacity .3s ease-in-out;\n}\n\n.fade-enter-to {\n\topacity: 1;\n}\n\n.fade-enter {\n\topacity: 0;\n}\n\n.image__caption__delete {\n\tdisplay: flex;\n\talign-items: center;\n\twidth: 20px;\n\theight: 20px;\n\tposition: absolute;\n\tright: -6px;\n\tbottom: 10px;\n\t&, svg {\n\t\tcursor: pointer;\n\t}\n}\n"],sourceRoot:""}]);const s=a},87591:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,"[data-v-7a1db318] div.widgets--list a.widget-default{color:var(--color-main-text);padding:0;text-decoration:none}[data-v-7a1db318] .widget-default--details{overflow:hidden}[data-v-7a1db318] .widget-default--details p{margin-bottom:4px !important}","",{version:3,sources:["webpack://./src/nodes/ParagraphView.vue"],names:[],mappings:"AACA,qDACC,4BAAA,CACA,SAAA,CACA,oBAAA,CAGD,2CACC,eAAA,CACA,6CACC,4BAAA",sourcesContent:["\n:deep(div.widgets--list a.widget-default) {\n\tcolor: var(--color-main-text);\n\tpadding: 0;\n\ttext-decoration: none;\n}\n\n:deep(.widget-default--details) {\n\toverflow:hidden;\n\tp {\n\t\tmargin-bottom: 4px !important;\n\t}\n}\n"],sourceRoot:""}]);const s=a},92199:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,"td[data-v-75e621dc]{position:relative}td .container[data-v-75e621dc]{display:flex;flex-wrap:wrap;min-height:36px}td .content[data-v-75e621dc]{flex:1 1 0;margin:0;padding-top:.6em}td .action-item[data-v-75e621dc]{position:absolute;right:-48px;flex:0 1 auto;display:none;top:2px}td:last-child .action-item[data-v-75e621dc]{display:block;opacity:50%}td:last-child:hover .action-item[data-v-75e621dc],td:last-child:active .action-item[data-v-75e621dc],td:last-child:focus .action-item[data-v-75e621dc],td:last-child:focus-within .action-item[data-v-75e621dc]{opacity:100%}","",{version:3,sources:["webpack://./src/nodes/Table/TableCellView.vue"],names:[],mappings:"AACA,oBACC,iBAAA,CAEA,+BACC,YAAA,CACA,cAAA,CACA,eAAA,CAGD,6BACC,UAAA,CACA,QAAA,CACA,gBAAA,CAGD,iCACC,iBAAA,CACA,WAAA,CACA,aAAA,CACA,YAAA,CACA,OAAA,CAIA,4CACC,aAAA,CACA,WAAA,CAIA,gNACC,YAAA",sourcesContent:["\ntd {\n\tposition: relative;\n\n\t.container {\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t\tmin-height: 36px;\n\t}\n\n\t.content {\n\t\tflex: 1 1 0;\n\t\tmargin: 0;\n\t\tpadding-top: 0.6em;\n\t}\n\n\t.action-item {\n\t\tposition: absolute;\n\t\tright: -48px;\n\t\tflex: 0 1 auto;\n\t\tdisplay: none;\n\t\ttop: 2px;\n\t}\n\n\t&:last-child {\n\t\t.action-item {\n\t\t\tdisplay: block;\n\t\t\topacity: 50%;\n\t\t}\n\n\t\t&:hover, &:active, &:focus, &:focus-within {\n\t\t\t.action-item {\n\t\t\t\topacity: 100%;\n\t\t\t}\n\t\t}\n\t}\n\n}\n\n"],sourceRoot:""}]);const s=a},59964:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,"th .content[data-v-779edfde]{margin:0;padding-top:.75em;flex-grow:1}th .action-item[data-v-779edfde]{opacity:50%}th:hover .action-item[data-v-779edfde],th:active .action-item[data-v-779edfde],th:focus .action-item[data-v-779edfde],th:focus-within .action-item[data-v-779edfde]{opacity:100%}","",{version:3,sources:["webpack://./src/nodes/Table/TableHeaderView.vue"],names:[],mappings:"AAGC,6BACC,QAAA,CACA,iBAAA,CACA,WAAA,CAGD,iCACC,WAAA,CAIA,oKACC,YAAA",sourcesContent:["\nth {\n\n\t.content {\n\t\tmargin: 0;\n\t\tpadding-top: 0.75em;\n\t\tflex-grow: 1;\n\t}\n\n\t.action-item {\n\t\topacity: 50%;\n\t}\n\n\t&:hover, &:active, &:focus, &:focus-within {\n\t\t.action-item {\n\t\t\topacity: 100%;\n\t\t}\n\t}\n}\n\n"],sourceRoot:""}]);const s=a},84339:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".table-wrapper[data-v-731856ac]{position:relative}.clearfix[data-v-731856ac]{clear:both}table[data-v-731856ac]{float:left}.table-settings[data-v-731856ac]{padding-left:3px;opacity:.5;position:absolute;top:0;right:3px}.table-settings[data-v-731856ac]:hover{opacity:1}","",{version:3,sources:["webpack://./src/nodes/Table/TableView.vue"],names:[],mappings:"AACA,gCACC,iBAAA,CAGD,2BACC,UAAA,CAGD,uBACC,UAAA,CAGD,iCACC,gBAAA,CACA,UAAA,CACA,iBAAA,CACA,KAAA,CACA,SAAA,CAEA,uCACC,SAAA",sourcesContent:["\n.table-wrapper {\n\tposition: relative;\n}\n\n.clearfix {\n\tclear: both;\n}\n\ntable {\n\tfloat: left;\n}\n\n.table-settings {\n\tpadding-left: 3px;\n\topacity: .5;\n\tposition: absolute;\n\ttop: 0;\n\tright: 3px;\n\n\t&:hover {\n\t\topacity: 1;\n\t}\n}\n"],sourceRoot:""}]);const s=a},82837:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,"#content[class=app-public]{margin:0;margin-top:0}","",{version:3,sources:["webpack://./src/views/DirectEditing.vue"],names:[],mappings:"AACA,2BACC,QAAA,CACA,YAAA",sourcesContent:["\n#content[class=app-public] {\n\tmargin: 0;\n\tmargin-top: 0;\n}\n"],sourceRoot:""}]);const s="text"==n.j?a:null},42294:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,"body[data-v-74e56a7a]{position:fixed}#direct-editor[data-v-74e56a7a]{width:100%;height:100%;position:fixed;overflow:hidden}#direct-editor[data-v-74e56a7a] .text-editor{height:100%;top:0}#direct-editor[data-v-74e56a7a] .text-editor__wrapper div.ProseMirror{margin-top:0}pre[data-v-74e56a7a]{width:100%;max-width:700px;margin:auto;background-color:var(--color-background-dark)}button[data-v-74e56a7a]{width:44px;height:44px;margin:0;background-size:16px;border:0;background-color:rgba(0,0,0,0);opacity:.5;color:var(--color-main-text);background-position:center center;vertical-align:top}button[data-v-74e56a7a]:hover,button[data-v-74e56a7a]:focus,button[data-v-74e56a7a]:active{background-color:var(--color-background-dark)}button.is-active[data-v-74e56a7a],button[data-v-74e56a7a]:hover,button[data-v-74e56a7a]:focus{opacity:1}","",{version:3,sources:["webpack://./src/views/DirectEditing.vue"],names:[],mappings:"AACA,sBACC,cAAA,CAGD,gCACC,UAAA,CACA,WAAA,CACA,cAAA,CACA,eAAA,CAEA,6CACC,WAAA,CACA,KAAA,CAED,sEACC,YAAA,CAIF,qBACC,UAAA,CACA,eAAA,CACA,WAAA,CACA,6CAAA,CAGD,wBACC,UAAA,CACA,WAAA,CACA,QAAA,CACA,oBAAA,CACA,QAAA,CACA,8BAAA,CACA,UAAA,CACA,4BAAA,CACA,iCAAA,CACA,kBAAA,CACA,2FACC,6CAAA,CAED,8FAGC,SAAA",sourcesContent:["\nbody {\n\tposition: fixed;\n}\n\n#direct-editor {\n\twidth: 100%;\n\theight: 100%;\n\tposition: fixed;\n\toverflow: hidden;\n\n\t&:deep(.text-editor) {\n\t\theight: 100%;\n\t\ttop: 0;\n\t}\n\t&:deep(.text-editor__wrapper div.ProseMirror) {\n\t\tmargin-top: 0;\n\t}\n}\n\npre {\n\twidth: 100%;\n\tmax-width: 700px;\n\tmargin: auto;\n\tbackground-color: var(--color-background-dark);\n}\n\nbutton {\n\twidth: 44px;\n\theight: 44px;\n\tmargin: 0;\n\tbackground-size: 16px;\n\tborder: 0;\n\tbackground-color: transparent;\n\topacity: .5;\n\tcolor: var(--color-main-text);\n\tbackground-position: center center;\n\tvertical-align: top;\n\t&:hover, &:focus, &:active {\n\t\tbackground-color: var(--color-background-dark);\n\t}\n\t&.is-active,\n\t&:hover,\n\t&:focus {\n\t\topacity: 1;\n\t}\n}\n"],sourceRoot:""}]);const s="text"==n.j?a:null},89375:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,'#rich-workspace[data-v-681f5dbf]{padding:0 50px;margin-bottom:-24px;text-align:left;max-height:0;transition:max-height .5s cubic-bezier(0, 1, 0, 1);z-index:61;position:relative}#rich-workspace.creatable[data-v-681f5dbf]{min-height:90px}#rich-workspace[data-v-681f5dbf]:only-child{margin-bottom:0}.empty-workspace[data-v-681f5dbf]{cursor:pointer;display:block;padding-top:43px;color:var(--color-text-maxcontrast)}#rich-workspace[data-v-681f5dbf] div[contenteditable=false]{width:100%;padding:0px;background-color:var(--color-main-background);opacity:1;border:none}#rich-workspace[data-v-681f5dbf] .text-editor{height:100%;position:unset !important;top:auto !important}#rich-workspace[data-v-681f5dbf] .text-editor__wrapper{position:unset !important;overflow:visible}#rich-workspace[data-v-681f5dbf] .text-editor__main{overflow:visible !important}#rich-workspace[data-v-681f5dbf] .content-wrapper{overflow:scroll !important;max-height:calc(40vh - 50px);padding-left:10px;padding-bottom:10px}#rich-workspace[data-v-681f5dbf] .text-editor__wrapper .ProseMirror{padding:0px;margin:0}#rich-workspace[data-v-681f5dbf] .editor__content{margin:0}#rich-workspace.focus[data-v-681f5dbf]{max-height:50vh}#rich-workspace[data-v-681f5dbf]:not(.focus){max-height:30vh;position:relative;overflow:hidden}#rich-workspace[data-v-681f5dbf]:not(.focus):not(.icon-loading):not(.empty):after{content:"";position:absolute;z-index:1;bottom:0;left:0;pointer-events:none;background-image:linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--color-main-background));width:100%;height:4em}#rich-workspace.dark[data-v-681f5dbf]:not(.focus):not(.icon-loading):after{background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0), var(--color-main-background))}@media only screen and (max-width: 1024px){#rich-workspace[data-v-681f5dbf]:not(.focus){max-height:30vh}}html.ie #rich-workspace[data-v-681f5dbf] .text-editor{position:initial}html.ie #rich-workspace[data-v-681f5dbf] .text-editor__wrapper{position:relative !important;top:auto !important}html.ie #rich-workspace[data-v-681f5dbf] .text-editor__main{display:flex;flex-direction:column;overflow:hidden !important}html.ie #rich-workspace[data-v-681f5dbf] .menubar{position:relative;overflow:hidden;flex-shrink:0;height:44px;top:auto}html.ie #rich-workspace[data-v-681f5dbf] .text-editor__main>div:nth-child(2){min-height:44px;overflow-x:hidden;overflow-y:auto;flex-shrink:1}',"",{version:3,sources:["webpack://./src/views/RichWorkspace.vue"],names:[],mappings:"AACA,iCACC,cAAA,CAEA,mBAAA,CACA,eAAA,CACA,YAAA,CACA,kDAAA,CACA,UAAA,CACA,iBAAA,CACA,2CACC,eAAA,CAKF,4CACC,eAAA,CAGD,kCACC,cAAA,CACA,aAAA,CACA,gBAAA,CACA,mCAAA,CAGD,4DACC,UAAA,CACA,WAAA,CACA,6CAAA,CACA,SAAA,CACA,WAAA,CAGD,8CACC,WAAA,CACA,yBAAA,CACA,mBAAA,CAGD,uDACC,yBAAA,CACA,gBAAA,CAGD,oDACC,2BAAA,CAGD,kDACC,0BAAA,CACA,4BAAA,CACA,iBAAA,CACA,mBAAA,CAGD,oEACC,WAAA,CACA,QAAA,CAGD,kDACC,QAAA,CAGD,uCACC,eAAA,CAGD,6CACC,eAAA,CACA,iBAAA,CACA,eAAA,CAGD,kFACC,UAAA,CACA,iBAAA,CACA,SAAA,CACA,QAAA,CACA,MAAA,CACA,mBAAA,CACA,iGAAA,CACA,UAAA,CACA,UAAA,CAGD,2EACC,2FAAA,CAGD,2CACC,6CACC,eAAA,CAAA,CAMA,uDACC,gBAAA,CAGD,gEACC,4BAAA,CACA,mBAAA,CAGD,6DACC,YAAA,CACA,qBAAA,CACA,0BAAA,CAGD,mDACC,iBAAA,CACA,eAAA,CACA,aAAA,CACA,WAAA,CACA,QAAA,CAGD,8EACC,eAAA,CACA,iBAAA,CACA,eAAA,CACA,aAAA",sourcesContent:["\n#rich-workspace {\n\tpadding: 0 50px;\n\t/* Slightly reduce vertical space */\n\tmargin-bottom: -24px;\n\ttext-align: left;\n\tmax-height: 0;\n\ttransition: max-height 0.5s cubic-bezier(0, 1, 0, 1);\n\tz-index: 61;\n\tposition: relative;\n\t&.creatable {\n\t\tmin-height: 90px;\n\t}\n}\n\n/* For subfolders, where there are no Recommendations */\n#rich-workspace:only-child {\n\tmargin-bottom: 0;\n}\n\n.empty-workspace {\n\tcursor: pointer;\n\tdisplay: block;\n\tpadding-top: 43px;\n\tcolor: var(--color-text-maxcontrast);\n}\n\n#rich-workspace:deep(div[contenteditable=false]){\n\twidth: 100%;\n\tpadding: 0px;\n\tbackground-color: var(--color-main-background);\n\topacity: 1;\n\tborder: none;\n}\n\n#rich-workspace:deep(.text-editor) {\n\theight: 100%;\n\tposition: unset !important;\n\ttop: auto !important;\n}\n\n#rich-workspace:deep(.text-editor__wrapper) {\n\tposition: unset !important;\n\toverflow: visible;\n}\n\n#rich-workspace:deep(.text-editor__main) {\n\toverflow: visible !important;\n}\n\n#rich-workspace:deep(.content-wrapper) {\n\toverflow: scroll !important;\n\tmax-height: calc(40vh - 50px);\n\tpadding-left: 10px;\n\tpadding-bottom: 10px;\n}\n\n#rich-workspace:deep(.text-editor__wrapper .ProseMirror) {\n\tpadding: 0px;\n\tmargin: 0;\n}\n\n#rich-workspace:deep(.editor__content) {\n\tmargin: 0;\n}\n\n#rich-workspace.focus {\n\tmax-height: 50vh;\n}\n\n#rich-workspace:not(.focus) {\n\tmax-height: 30vh;\n\tposition: relative;\n\toverflow: hidden;\n}\n\n#rich-workspace:not(.focus):not(.icon-loading):not(.empty):after {\n\tcontent: '';\n\tposition: absolute;\n\tz-index: 1;\n\tbottom: 0;\n\tleft: 0;\n\tpointer-events: none;\n\tbackground-image: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--color-main-background));\n\twidth: 100%;\n\theight: 4em;\n}\n\n#rich-workspace.dark:not(.focus):not(.icon-loading):after {\n\tbackground-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), var(--color-main-background));\n}\n\n@media only screen and (max-width: 1024px) {\n\t#rich-workspace:not(.focus) {\n\t\tmax-height: 30vh;\n\t}\n}\n\nhtml.ie {\n\t#rich-workspace:deep() {\n\t\t.text-editor {\n\t\t\tposition: initial;\n\t\t}\n\n\t\t.text-editor__wrapper {\n\t\t\tposition: relative !important;\n\t\t\ttop: auto !important;\n\t\t}\n\n\t\t.text-editor__main {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\toverflow: hidden !important;\n\t\t}\n\n\t\t.menubar {\n\t\t\tposition: relative;\n\t\t\toverflow: hidden;\n\t\t\tflex-shrink: 0;\n\t\t\theight: 44px;\n\t\t\ttop: auto;\n\t\t}\n\n\t\t.text-editor__main > div:nth-child(2) {\n\t\t\tmin-height: 44px;\n\t\t\toverflow-x: hidden;\n\t\t\toverflow-y: auto;\n\t\t\tflex-shrink: 1;\n\t\t}\n\t}\n}\n\n"],sourceRoot:""}]);const s=a},27295:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,"\n.action[data-v-0a1aa55a] {\n\t/* to unify width of ActionInput and ActionButton */\n\tmin-width: 218px;\n}\n","",{version:3,sources:["webpack://./src/components/Menu/ActionInsertLink.vue"],names:[],mappings:";AAqOA;CACA,mDAAA;CACA,gBAAA;AACA",sourcesContent:["\x3c!--\n - @copyright Copyright (c) 2022\n -\n - @license AGPL-3.0-or-later\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n -\n --\x3e\n<template>\n\t<NcActions ref=\"menu\"\n\t\tclass=\"entry-action entry-action__insert-link\"\n\t\taria-haspopup\n\t\t:aria-label=\"actionEntry.label\"\n\t\t:class=\"activeClass\"\n\t\t:container=\"menuIDSelector\"\n\t\t:data-text-action-entry=\"actionEntry.key\"\n\t\t:title=\"actionEntry.label\">\n\t\t<template #icon>\n\t\t\t<component :is=\"icon\"\n\t\t\t\t:title=\"actionEntry.label\"\n\t\t\t\t:aria-label=\"actionEntry.label\"\n\t\t\t\taria-haspopup />\n\t\t</template>\n\t\t<NcActionButton v-if=\"state.active\"\n\t\t\tclose-after-click\n\t\t\t:data-text-action-entry=\"`${actionEntry.key}-remove`\"\n\t\t\t@click=\"removeLink\">\n\t\t\t<template #icon>\n\t\t\t\t<LinkOff />\n\t\t\t</template>\n\t\t\t{{ t('text', 'Remove link') }}\n\t\t</NcActionButton>\n\t\t<NcActionButton close-after-click\n\t\t\t:data-text-action-entry=\"`${actionEntry.key}-file`\"\n\t\t\t@click=\"linkFile\">\n\t\t\t<template #icon>\n\t\t\t\t<Document />\n\t\t\t</template>\n\t\t\t{{ t('text', 'Link to file or folder') }}\n\t\t</NcActionButton>\n\t\t<NcActionInput v-if=\"isInputMode\"\n\t\t\ttype=\"text\"\n\t\t\t:value=\"href\"\n\t\t\t:data-text-action-entry=\"`${actionEntry.key}-input`\"\n\t\t\t@submit=\"linkWebsite\">\n\t\t\t<template #icon>\n\t\t\t\t<Web />\n\t\t\t</template>\n\t\t\t{{ t('text', 'Link to website') }}\n\t\t</NcActionInput>\n\t\t<NcActionButton v-else\n\t\t\t:data-text-action-entry=\"`${actionEntry.key}-website`\"\n\t\t\t@click=\"linkWebsite\">\n\t\t\t<template #icon>\n\t\t\t\t<Web />\n\t\t\t</template>\n\t\t\t{{ state.active ? t('text', 'Update link') : t('text', 'Link to website') }}\n\t\t</NcActionButton>\n\t</NcActions>\n</template>\n\n<script>\nimport NcActions from '@nextcloud/vue/dist/Components/NcActions.js'\nimport NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js'\nimport NcActionInput from '@nextcloud/vue/dist/Components/NcActionInput.js'\nimport { FilePicker, FilePickerType } from '@nextcloud/dialogs'\n\nimport { getMarkAttributes, isActive } from '@tiptap/core'\n\nimport { Document, Loading, LinkOff, Web } from '../icons.js'\nimport { BaseActionEntry } from './BaseActionEntry.js'\nimport { optimalPath } from '../../helpers/files.js'\nimport { useFileMixin } from '../Editor.provider.js'\nimport { useMenuIDMixin } from './MenuBar.provider.js'\n\nexport default {\n\tname: 'ActionInsertLink',\n\tcomponents: {\n\t\tNcActions,\n\t\tNcActionButton,\n\t\tNcActionInput,\n\t\tDocument,\n\t\tLoading,\n\t\tLinkOff,\n\t\tWeb,\n\t},\n\textends: BaseActionEntry,\n\tmixins: [\n\t\tuseFileMixin,\n\t\tuseMenuIDMixin,\n\t],\n\tdata: () => {\n\t\treturn {\n\t\t\thref: null,\n\t\t\tisInputMode: false,\n\t\t\tstartPath: null,\n\t\t}\n\t},\n\tcomputed: {\n\t\tactiveClass() {\n\t\t\treturn this.state.active ? 'is-active' : ''\n\t\t},\n\t},\n\tmethods: {\n\t\t/**\n\t\t * Open dialog and ask user which file to link to\n\t\t * Triggered by the \"link file\" button\n\t\t */\n\t\tlinkFile() {\n\t\t\tif (this.startPath === null) {\n\t\t\t\tthis.startPath = this.$file.relativePath.split('/').slice(0, -1).join('/')\n\t\t\t}\n\n\t\t\tconst filePicker = new FilePicker(\n\t\t\t\tt('text', 'Select file or folder to link to'),\n\t\t\t\tfalse, // multiselect\n\t\t\t\t[], // mime filter\n\t\t\t\ttrue, // modal\n\t\t\t\tFilePickerType.Choose, // type\n\t\t\t\ttrue, // directories\n\t\t\t\tthis.startPath // path\n\t\t\t)\n\n\t\t\tfilePicker.pick().then((file) => {\n\t\t\t\tconst client = OC.Files.getClient()\n\t\t\t\tclient.getFileInfo(file).then((_status, fileInfo) => {\n\t\t\t\t\tconst path = optimalPath(this.$file.relativePath, `${fileInfo.path}/${fileInfo.name}`)\n\t\t\t\t\tconst encodedPath = path.split('/').map(encodeURIComponent).join('/') + (fileInfo.type === 'dir' ? '/' : '')\n\t\t\t\t\tconst href = `${encodedPath}?fileId=${fileInfo.id}`\n\t\t\t\t\tthis.setLink(href, fileInfo.name)\n\t\t\t\t\tthis.startPath = fileInfo.path + (fileInfo.type === 'dir' ? `/${fileInfo.name}/` : '')\n\t\t\t\t})\n\t\t\t})\n\t\t},\n\t\t/**\n\t\t * Allow user to enter an URL manually\n\t\t * Triggered when by the \"link url\" button\n\t\t *\n\t\t * @param {Event} event Triggering event\n\t\t */\n\t\tlinkWebsite(event) {\n\t\t\tif (event?.type === 'submit') {\n\t\t\t\tconst href = [...event.target.elements].filter(e => e?.type === 'text')[0].value\n\t\t\t\t// Close menu manually as autoclose does not work form ActionInput\n\t\t\t\tthis.$refs.menu.closeMenu()\n\t\t\t\tthis.isInputMode = false\n\t\t\t\tthis.href = null\n\t\t\t\treturn this.setLink(href, href)\n\t\t\t}\n\n\t\t\tif (isActive(this.$editor.state, 'link')) {\n\t\t\t\tconst attrs = getMarkAttributes(this.$editor.state, 'link')\n\t\t\t\tthis.href = attrs.href\n\t\t\t}\n\t\t\tthis.isInputMode = true\n\t\t},\n\t\t/**\n\t\t * Save user entered URL as a link markup\n\t\t * Triggered when the user submits the ActionInput\n\t\t *\n\t\t * @param {string} url href attribute of the link\n\t\t * @param {string} text Text part of the link\n\t\t */\n\t\tsetLink(url, text) {\n\t\t\t// Heuristics for determining if we need a https:// prefix.\n\t\t\tconst noPrefixes = [\n\t\t\t\t/^[a-zA-Z]+:/, // url with protocol (\"mailTo:email@domain.tld\")\n\t\t\t\t/^\\//, // absolute path\n\t\t\t\t/\\?fileId=/, // relative link with fileId\n\t\t\t\t/^\\.\\.?\\//, // relative link starting with ./ or ../\n\t\t\t\t/^[^.]*[/$]/, // no dots before first '/' - not a domain name\n\t\t\t\t/^#/, // url fragment\n\t\t\t]\n\t\t\tif (url && !noPrefixes.find(regex => url.match(regex))) {\n\t\t\t\turl = 'https://' + url\n\t\t\t}\n\n\t\t\t// Avoid issues when parsing urls later on in markdown that might be entered in an invalid format (e.g. \"mailto: example@example.com\")\n\t\t\tconst href = url.replaceAll(' ', '%20')\n\t\t\tconst chain = this.$editor.chain()\n\t\t\t// Check if any text is selected, if not insert the lunk using the given text property\n\t\t\tif (this.$editor.view.state?.selection.empty) {\n\t\t\t\tchain.insertContent({\n\t\t\t\t\ttype: 'paragraph',\n\t\t\t\t\tcontent: [{\n\t\t\t\t\t\ttype: 'text',\n\t\t\t\t\t\tmarks: [{\n\t\t\t\t\t\t\ttype: 'link',\n\t\t\t\t\t\t\tattrs: {\n\t\t\t\t\t\t\t\thref,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t}],\n\t\t\t\t\t\ttext,\n\t\t\t\t\t}],\n\t\t\t\t})\n\t\t\t} else {\n\t\t\t\tchain.setLink({ href })\n\t\t\t}\n\t\t\tchain.focus().run()\n\t\t},\n\t\t/**\n\t\t * Remove link markup at current position\n\t\t * Triggered by the \"remove link\" button\n\t\t */\n\t\tremoveLink() {\n\t\t\tthis.$editor.chain().unsetLink().focus().run()\n\t\t},\n\t},\n}\n<\/script>\n\n<style scoped>\n\t.action {\n\t\t/* to unify width of ActionInput and ActionButton */\n\t\tmin-width: 218px;\n\t}\n</style>\n"],sourceRoot:""}]);const s=a},96614:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,"\n.text-readonly-bar__entries[data-v-59dd87ec] {\n\tdisplay: flex;\n\tflex-grow: 1;\n}\n","",{version:3,sources:["webpack://./src/components/Menu/ReadonlyBar.vue"],names:[],mappings:";AA8BA;CACA,aAAA;CACA,YAAA;AACA",sourcesContent:['<template>\n\t<div data-text-el="readonly-bar" class="text-readonly-bar">\n\t\t<div ref="menubar"\n\t\t\trole="group"\n\t\t\tclass="text-readonly-bar__entries"\n\t\t\t:aria-label="t(\'text\', \'Editor actions\')">\n\t\t\t<ActionEntry v-for="actionEntry of visibleEntries"\n\t\t\t\tv-bind="{ actionEntry }"\n\t\t\t\t:key="`text-action--${actionEntry.key}`" />\n\t\t</div>\n\t</div>\n</template>\n\n<script>\nimport { defineComponent } from \'vue\'\nimport { ReadonlyEntries as entries } from \'./entries.js\'\nimport ActionEntry from \'./ActionEntry.js\'\n\nexport default defineComponent({\n\tname: \'ReadonlyBar\',\n\tcomponents: { ActionEntry },\n\tsetup() {\n\t\treturn {\n\t\t\tvisibleEntries: entries,\n\t\t}\n\t},\n})\n<\/script>\n\n<style scoped>\n.text-readonly-bar__entries {\n\tdisplay: flex;\n\tflex-grow: 1;\n}\n</style>\n'],sourceRoot:""}]);const s=a},35460:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,"\n/* This is required to properly render the bubble text (which seems linke a browser bug) */\n.text-editor__wrapper div.ProseMirror .mention[contenteditable=false][data-v-297bb5fa] * {\n\t-webkit-user-modify: read-only !important;\n}\n","",{version:3,sources:["webpack://./src/extensions/Mention.vue"],names:[],mappings:";AA8CA,0FAAA;AACA;CACA,yCAAA;AACA",sourcesContent:['<template>\n\t<NodeViewWrapper as="span" class="mention" contenteditable="false">\n\t\t<NcUserBubble :user="node.attrs.id"\n\t\t\t:display-name="username"\n\t\t\t:primary="isCurrentUser"\n\t\t\tclass="mention-user-bubble">\n\t\t\t@{{ username }}\n\t\t</NcUserBubble>\n\t</NodeViewWrapper>\n</template>\n\n<script>\nimport { NcUserBubble } from \'@nextcloud/vue\'\nimport { NodeViewWrapper } from \'@tiptap/vue-2\'\nimport { getCurrentUser } from \'@nextcloud/auth\'\n\nexport default {\n\tname: \'Mention\',\n\tcomponents: {\n\t\tNcUserBubble,\n\t\tNodeViewWrapper,\n\t},\n\tprops: {\n\t\tupdateAttributes: {\n\t\t\ttype: Function,\n\t\t\trequired: true,\n\t\t},\n\n\t\tnode: {\n\t\t\ttype: Object,\n\t\t\trequired: true,\n\t\t},\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tusername: this.node.attrs.label,\n\t\t}\n\t},\n\tcomputed: {\n\t\tisCurrentUser() {\n\t\t\treturn this.node.attrs.id === getCurrentUser()?.uid\n\t\t},\n\t},\n}\n<\/script>\n<style scoped>\n/* This is required to properly render the bubble text (which seems linke a browser bug) */\n.text-editor__wrapper div.ProseMirror .mention[contenteditable=false] :deep(*) {\n\t-webkit-user-modify: read-only !important;\n}\n</style>\n'],sourceRoot:""}]);const s=a},47802:(t,e,n)=>{var r=n(25108);function o(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach((function(e){var n=t[e];"object"!=typeof n||Object.isFrozen(n)||o(n)})),t}var i=o,a=o;i.default=a;class s{constructor(t){void 0===t.data&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function l(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function c(t,...e){const n=Object.create(null);for(const e in t)n[e]=t[e];return e.forEach((function(t){for(const e in t)n[e]=t[e]})),n}const d=t=>!!t.kind;class u{constructor(t,e){this.buffer="",this.classPrefix=e.classPrefix,t.walk(this)}addText(t){this.buffer+=l(t)}openNode(t){if(!d(t))return;let e=t.kind;t.sublanguage||(e=`${this.classPrefix}${e}`),this.span(e)}closeNode(t){d(t)&&(this.buffer+="</span>")}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}class A{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const e={kind:t,children:[]};this.add(e),this.stack.push(e)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,e){return"string"==typeof e?t.addText(e):e.children&&(t.openNode(e),e.children.forEach((e=>this._walk(t,e))),t.closeNode(e)),t}static _collapse(t){"string"!=typeof t&&t.children&&(t.children.every((t=>"string"==typeof t))?t.children=[t.children.join("")]:t.children.forEach((t=>{A._collapse(t)})))}}class h extends A{constructor(t){super(),this.options=t}addKeyword(t,e){""!==t&&(this.openNode(e),this.addText(t),this.closeNode())}addText(t){""!==t&&this.add(t)}addSublanguage(t,e){const n=t.root;n.kind=e,n.sublanguage=!0,this.add(n)}toHTML(){return new u(this,this.options).value()}finalize(){return!0}}function p(t){return t?"string"==typeof t?t:t.source:null}const f=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;const m="[a-zA-Z]\\w*",g="[a-zA-Z_]\\w*",v="\\b\\d+(\\.\\d+)?",C="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",b="\\b(0b[01]+)",y={begin:"\\\\[\\s\\S]",relevance:0},x={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[y]},w={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[y]},k={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/},_=function(t,e,n={}){const r=c({className:"comment",begin:t,end:e,contains:[]},n);return r.contains.push(k),r.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),r},j=_("//","$"),P=_("/\\*","\\*/"),E=_("#","$"),M={className:"number",begin:v,relevance:0},S={className:"number",begin:C,relevance:0},B={className:"number",begin:b,relevance:0},O={className:"number",begin:v+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},I={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[y,{begin:/\[/,end:/\]/,relevance:0,contains:[y]}]}]},D={className:"title",begin:m,relevance:0},T={className:"title",begin:g,relevance:0},L={begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0};var N=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:m,UNDERSCORE_IDENT_RE:g,NUMBER_RE:v,C_NUMBER_RE:C,BINARY_NUMBER_RE:b,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=function(...t){return t.map((t=>p(t))).join("")}(e,/.*\b/,t.binary,/\b.*/)),c({className:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,e)=>{0!==t.index&&e.ignoreMatch()}},t)},BACKSLASH_ESCAPE:y,APOS_STRING_MODE:x,QUOTE_STRING_MODE:w,PHRASAL_WORDS_MODE:k,COMMENT:_,C_LINE_COMMENT_MODE:j,C_BLOCK_COMMENT_MODE:P,HASH_COMMENT_MODE:E,NUMBER_MODE:M,C_NUMBER_MODE:S,BINARY_NUMBER_MODE:B,CSS_NUMBER_MODE:O,REGEXP_MODE:I,TITLE_MODE:D,UNDERSCORE_TITLE_MODE:T,METHOD_GUARD:L,END_SAME_AS_BEGIN:function(t){return Object.assign(t,{"on:begin":(t,e)=>{e.data._beginMatch=t[1]},"on:end":(t,e)=>{e.data._beginMatch!==t[1]&&e.ignoreMatch()}})}});function R(t,e){"."===t.input[t.index-1]&&e.ignoreMatch()}function Z(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=R,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,void 0===t.relevance&&(t.relevance=0))}function G(t,e){Array.isArray(t.illegal)&&(t.illegal=function(...t){return"("+t.map((t=>p(t))).join("|")+")"}(...t.illegal))}function $(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function F(t,e){void 0===t.relevance&&(t.relevance=1)}const U=["of","and","for","in","not","or","if","then","parent","list","value"];function z(t,e,n="keyword"){const r={};return"string"==typeof t?o(n,t.split(" ")):Array.isArray(t)?o(n,t):Object.keys(t).forEach((function(n){Object.assign(r,z(t[n],e,n))})),r;function o(t,n){e&&(n=n.map((t=>t.toLowerCase()))),n.forEach((function(e){const n=e.split("|");r[n[0]]=[t,H(n[0],n[1])]}))}}function H(t,e){return e?Number(e):function(t){return U.includes(t.toLowerCase())}(t)?0:1}function W(t,{plugins:e}){function n(e,n){return new RegExp(p(e),"m"+(t.case_insensitive?"i":"")+(n?"g":""))}class r{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(t,e){e.position=this.position++,this.matchIndexes[this.matchAt]=e,this.regexes.push([e,t]),this.matchAt+=function(t){return new RegExp(t.toString()+"|").exec("").length-1}(t)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const t=this.regexes.map((t=>t[1]));this.matcherRe=n(function(t,e="|"){let n=0;return t.map((t=>{n+=1;const e=n;let r=p(t),o="";for(;r.length>0;){const t=f.exec(r);if(!t){o+=r;break}o+=r.substring(0,t.index),r=r.substring(t.index+t[0].length),"\\"===t[0][0]&&t[1]?o+="\\"+String(Number(t[1])+e):(o+=t[0],"("===t[0]&&n++)}return o})).map((t=>`(${t})`)).join(e)}(t),!0),this.lastIndex=0}exec(t){this.matcherRe.lastIndex=this.lastIndex;const e=this.matcherRe.exec(t);if(!e)return null;const n=e.findIndex(((t,e)=>e>0&&void 0!==t)),r=this.matchIndexes[n];return e.splice(0,n),Object.assign(e,r)}}class o{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(t){if(this.multiRegexes[t])return this.multiRegexes[t];const e=new r;return this.rules.slice(t).forEach((([t,n])=>e.addRule(t,n))),e.compile(),this.multiRegexes[t]=e,e}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(t,e){this.rules.push([t,e]),"begin"===e.type&&this.count++}exec(t){const e=this.getMatcher(this.regexIndex);e.lastIndex=this.lastIndex;let n=e.exec(t);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const e=this.getMatcher(0);e.lastIndex=this.lastIndex+1,n=e.exec(t)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=c(t.classNameAliases||{}),function e(r,i){const a=r;if(r.isCompiled)return a;[$].forEach((t=>t(r,i))),t.compilerExtensions.forEach((t=>t(r,i))),r.__beforeBegin=null,[Z,G,F].forEach((t=>t(r,i))),r.isCompiled=!0;let s=null;if("object"==typeof r.keywords&&(s=r.keywords.$pattern,delete r.keywords.$pattern),r.keywords&&(r.keywords=z(r.keywords,t.case_insensitive)),r.lexemes&&s)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return s=s||r.lexemes||/\w+/,a.keywordPatternRe=n(s,!0),i&&(r.begin||(r.begin=/\B|\b/),a.beginRe=n(r.begin),r.endSameAsBegin&&(r.end=r.begin),r.end||r.endsWithParent||(r.end=/\B|\b/),r.end&&(a.endRe=n(r.end)),a.terminatorEnd=p(r.end)||"",r.endsWithParent&&i.terminatorEnd&&(a.terminatorEnd+=(r.end?"|":"")+i.terminatorEnd)),r.illegal&&(a.illegalRe=n(r.illegal)),r.contains||(r.contains=[]),r.contains=[].concat(...r.contains.map((function(t){return function(t){t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map((function(e){return c(t,{variants:null},e)})));if(t.cachedVariants)return t.cachedVariants;if(q(t))return c(t,{starts:t.starts?c(t.starts):null});if(Object.isFrozen(t))return c(t);return t}("self"===t?r:t)}))),r.contains.forEach((function(t){e(t,a)})),r.starts&&e(r.starts,i),a.matcher=function(t){const e=new o;return t.contains.forEach((t=>e.addRule(t.begin,{rule:t,type:"begin"}))),t.terminatorEnd&&e.addRule(t.terminatorEnd,{type:"end"}),t.illegal&&e.addRule(t.illegal,{type:"illegal"}),e}(a),a}(t)}function q(t){return!!t&&(t.endsWithParent||q(t.starts))}function Y(t){const e={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!t.getLanguage(this.language))return r.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,l(this.code);let e={};return this.autoDetect?(e=t.highlightAuto(this.code),this.detectedLanguage=e.language):(e=t.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),e.value},autoDetect(){return!this.language||(t=this.autodetect,Boolean(t||""===t));var t},ignoreIllegals:()=>!0},render(t){return t("pre",{},[t("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:e,VuePlugin:{install(t){t.component("highlightjs",e)}}}}const V={"after:highlightElement":({el:t,result:e,text:n})=>{const r=Q(t);if(!r.length)return;const o=document.createElement("div");o.innerHTML=e.value,e.value=function(t,e,n){let r=0,o="";const i=[];function a(){return t.length&&e.length?t[0].offset!==e[0].offset?t[0].offset<e[0].offset?t:e:"start"===e[0].event?t:e:t.length?t:e}function s(t){function e(t){return" "+t.nodeName+'="'+l(t.value)+'"'}o+="<"+K(t)+[].map.call(t.attributes,e).join("")+">"}function c(t){o+="</"+K(t)+">"}function d(t){("start"===t.event?s:c)(t.node)}for(;t.length||e.length;){let e=a();if(o+=l(n.substring(r,e[0].offset)),r=e[0].offset,e===t){i.reverse().forEach(c);do{d(e.splice(0,1)[0]),e=a()}while(e===t&&e.length&&e[0].offset===r);i.reverse().forEach(s)}else"start"===e[0].event?i.push(e[0].node):i.pop(),d(e.splice(0,1)[0])}return o+l(n.substr(r))}(r,Q(o),n)}};function K(t){return t.nodeName.toLowerCase()}function Q(t){const e=[];return function t(n,r){for(let o=n.firstChild;o;o=o.nextSibling)3===o.nodeType?r+=o.nodeValue.length:1===o.nodeType&&(e.push({event:"start",offset:r,node:o}),r=t(o,r),K(o).match(/br|hr|img|input/)||e.push({event:"stop",offset:r,node:o}));return r}(t,0),e}const J={},X=t=>{r.error(t)},tt=(t,...e)=>{r.log(`WARN: ${t}`,...e)},et=(t,e)=>{J[`${t}/${e}`]||(r.log(`Deprecated as of ${t}. ${e}`),J[`${t}/${e}`]=!0)},nt=l,rt=c,ot=Symbol("nomatch");var it=function(t){const e=Object.create(null),n=Object.create(null),r=[];let o=!0;const a=/(^(<[^>]+>|\t|)+|\n)/gm,l="Could not find the language '{}', did you forget to load/include a language module?",c={disableAutodetect:!0,name:"Plain text",contains:[]};let d={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:h};function u(t){return d.noHighlightRe.test(t)}function A(t,e,n,r){let o="",i="";"object"==typeof e?(o=t,n=e.ignoreIllegals,i=e.language,r=void 0):(et("10.7.0","highlight(lang, code, ...args) has been deprecated."),et("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),i=t,o=e);const a={code:o,language:i};j("before:highlight",a);const s=a.result?a.result:p(a.language,a.code,n,r);return s.code=a.code,j("after:highlight",s),s}function p(t,n,i,a){function c(t,e){const n=y.case_insensitive?e[0].toLowerCase():e[0];return Object.prototype.hasOwnProperty.call(t.keywords,n)&&t.keywords[n]}function u(){null!=_.subLanguage?function(){if(""===E)return;let t=null;if("string"==typeof _.subLanguage){if(!e[_.subLanguage])return void P.addText(E);t=p(_.subLanguage,E,!0,j[_.subLanguage]),j[_.subLanguage]=t.top}else t=f(E,_.subLanguage.length?_.subLanguage:null);_.relevance>0&&(M+=t.relevance),P.addSublanguage(t.emitter,t.language)}():function(){if(!_.keywords)return void P.addText(E);let t=0;_.keywordPatternRe.lastIndex=0;let e=_.keywordPatternRe.exec(E),n="";for(;e;){n+=E.substring(t,e.index);const r=c(_,e);if(r){const[t,o]=r;if(P.addText(n),n="",M+=o,t.startsWith("_"))n+=e[0];else{const n=y.classNameAliases[t]||t;P.addKeyword(e[0],n)}}else n+=e[0];t=_.keywordPatternRe.lastIndex,e=_.keywordPatternRe.exec(E)}n+=E.substr(t),P.addText(n)}(),E=""}function A(t){return t.className&&P.openNode(y.classNameAliases[t.className]||t.className),_=Object.create(t,{parent:{value:_}}),_}function h(t,e,n){let r=function(t,e){const n=t&&t.exec(e);return n&&0===n.index}(t.endRe,n);if(r){if(t["on:end"]){const n=new s(t);t["on:end"](e,n),n.isMatchIgnored&&(r=!1)}if(r){for(;t.endsParent&&t.parent;)t=t.parent;return t}}if(t.endsWithParent)return h(t.parent,e,n)}function m(t){return 0===_.matcher.regexIndex?(E+=t[0],1):(O=!0,0)}function g(t){const e=t[0],n=t.rule,r=new s(n),o=[n.__beforeBegin,n["on:begin"]];for(const n of o)if(n&&(n(t,r),r.isMatchIgnored))return m(e);return n&&n.endSameAsBegin&&(n.endRe=new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")),n.skip?E+=e:(n.excludeBegin&&(E+=e),u(),n.returnBegin||n.excludeBegin||(E=e)),A(n),n.returnBegin?0:e.length}function v(t){const e=t[0],r=n.substr(t.index),o=h(_,t,r);if(!o)return ot;const i=_;i.skip?E+=e:(i.returnEnd||i.excludeEnd||(E+=e),u(),i.excludeEnd&&(E=e));do{_.className&&P.closeNode(),_.skip||_.subLanguage||(M+=_.relevance),_=_.parent}while(_!==o.parent);return o.starts&&(o.endSameAsBegin&&(o.starts.endRe=o.endRe),A(o.starts)),i.returnEnd?0:e.length}let C={};function b(e,r){const a=r&&r[0];if(E+=e,null==a)return u(),0;if("begin"===C.type&&"end"===r.type&&C.index===r.index&&""===a){if(E+=n.slice(r.index,r.index+1),!o){const e=new Error("0 width match regex");throw e.languageName=t,e.badRule=C.rule,e}return 1}if(C=r,"begin"===r.type)return g(r);if("illegal"===r.type&&!i){const t=new Error('Illegal lexeme "'+a+'" for mode "'+(_.className||"<unnamed>")+'"');throw t.mode=_,t}if("end"===r.type){const t=v(r);if(t!==ot)return t}if("illegal"===r.type&&""===a)return 1;if(B>1e5&&B>3*r.index){throw new Error("potential infinite loop, way more iterations than matches")}return E+=a,a.length}const y=w(t);if(!y)throw X(l.replace("{}",t)),new Error('Unknown language: "'+t+'"');const x=W(y,{plugins:r});let k="",_=a||x;const j={},P=new d.__emitter(d);!function(){const t=[];for(let e=_;e!==y;e=e.parent)e.className&&t.unshift(e.className);t.forEach((t=>P.openNode(t)))}();let E="",M=0,S=0,B=0,O=!1;try{for(_.matcher.considerAll();;){B++,O?O=!1:_.matcher.considerAll(),_.matcher.lastIndex=S;const t=_.matcher.exec(n);if(!t)break;const e=b(n.substring(S,t.index),t);S=t.index+e}return b(n.substr(S)),P.closeAllNodes(),P.finalize(),k=P.toHTML(),{relevance:Math.floor(M),value:k,language:t,illegal:!1,emitter:P,top:_}}catch(e){if(e.message&&e.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:e.message,context:n.slice(S-100,S+100),mode:e.mode},sofar:k,relevance:0,value:nt(n),emitter:P};if(o)return{illegal:!1,relevance:0,value:nt(n),emitter:P,language:t,top:_,errorRaised:e};throw e}}function f(t,n){n=n||d.languages||Object.keys(e);const r=function(t){const e={relevance:0,emitter:new d.__emitter(d),value:nt(t),illegal:!1,top:c};return e.emitter.addText(t),e}(t),o=n.filter(w).filter(_).map((e=>p(e,t,!1)));o.unshift(r);const i=o.sort(((t,e)=>{if(t.relevance!==e.relevance)return e.relevance-t.relevance;if(t.language&&e.language){if(w(t.language).supersetOf===e.language)return 1;if(w(e.language).supersetOf===t.language)return-1}return 0})),[a,s]=i,l=a;return l.second_best=s,l}const m={"before:highlightElement":({el:t})=>{d.useBR&&(t.innerHTML=t.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,"\n"))},"after:highlightElement":({result:t})=>{d.useBR&&(t.value=t.value.replace(/\n/g,"<br>"))}},g=/^(<[^>]+>|\t)+/gm,v={"after:highlightElement":({result:t})=>{d.tabReplace&&(t.value=t.value.replace(g,(t=>t.replace(/\t/g,d.tabReplace))))}};function C(t){let e=null;const r=function(t){let e=t.className+" ";e+=t.parentNode?t.parentNode.className:"";const n=d.languageDetectRe.exec(e);if(n){const e=w(n[1]);return e||(tt(l.replace("{}",n[1])),tt("Falling back to no-highlight mode for this block.",t)),e?n[1]:"no-highlight"}return e.split(/\s+/).find((t=>u(t)||w(t)))}(t);if(u(r))return;j("before:highlightElement",{el:t,language:r}),e=t;const o=e.textContent,i=r?A(o,{language:r,ignoreIllegals:!0}):f(o);j("after:highlightElement",{el:t,result:i,text:o}),t.innerHTML=i.value,function(t,e,r){const o=e?n[e]:r;t.classList.add("hljs"),o&&t.classList.add(o)}(t,r,i.language),t.result={language:i.language,re:i.relevance,relavance:i.relevance},i.second_best&&(t.second_best={language:i.second_best.language,re:i.second_best.relevance,relavance:i.second_best.relevance})}const b=()=>{if(b.called)return;b.called=!0,et("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead.");document.querySelectorAll("pre code").forEach(C)};let y=!1;function x(){if("loading"===document.readyState)return void(y=!0);document.querySelectorAll("pre code").forEach(C)}function w(t){return t=(t||"").toLowerCase(),e[t]||e[n[t]]}function k(t,{languageName:e}){"string"==typeof t&&(t=[t]),t.forEach((t=>{n[t.toLowerCase()]=e}))}function _(t){const e=w(t);return e&&!e.disableAutodetect}function j(t,e){const n=t;r.forEach((function(t){t[n]&&t[n](e)}))}"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){y&&x()}),!1),Object.assign(t,{highlight:A,highlightAuto:f,highlightAll:x,fixMarkup:function(t){return et("10.2.0","fixMarkup will be removed entirely in v11.0"),et("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),e=t,d.tabReplace||d.useBR?e.replace(a,(t=>"\n"===t?d.useBR?"<br>":t:d.tabReplace?t.replace(/\t/g,d.tabReplace):t)):e;var e},highlightElement:C,highlightBlock:function(t){return et("10.7.0","highlightBlock will be removed entirely in v12.0"),et("10.7.0","Please use highlightElement now."),C(t)},configure:function(t){t.useBR&&(et("10.3.0","'useBR' will be removed entirely in v11.0"),et("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),d=rt(d,t)},initHighlighting:b,initHighlightingOnLoad:function(){et("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),y=!0},registerLanguage:function(n,r){let i=null;try{i=r(t)}catch(t){if(X("Language definition for '{}' could not be registered.".replace("{}",n)),!o)throw t;X(t),i=c}i.name||(i.name=n),e[n]=i,i.rawDefinition=r.bind(null,t),i.aliases&&k(i.aliases,{languageName:n})},unregisterLanguage:function(t){delete e[t];for(const e of Object.keys(n))n[e]===t&&delete n[e]},listLanguages:function(){return Object.keys(e)},getLanguage:w,registerAliases:k,requireLanguage:function(t){et("10.4.0","requireLanguage will be removed entirely in v11."),et("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const e=w(t);if(e)return e;throw new Error("The '{}' language is required, but not loaded.".replace("{}",t))},autoDetection:_,inherit:rt,addPlugin:function(t){!function(t){t["before:highlightBlock"]&&!t["before:highlightElement"]&&(t["before:highlightElement"]=e=>{t["before:highlightBlock"](Object.assign({block:e.el},e))}),t["after:highlightBlock"]&&!t["after:highlightElement"]&&(t["after:highlightElement"]=e=>{t["after:highlightBlock"](Object.assign({block:e.el},e))})}(t),r.push(t)},vuePlugin:Y(t).VuePlugin}),t.debugMode=function(){o=!1},t.safeMode=function(){o=!0},t.versionString="10.7.3";for(const t in N)"object"==typeof N[t]&&i(N[t]);return Object.assign(t,N),t.addPlugin(m),t.addPlugin(V),t.addPlugin(v),t}({});t.exports=it},23506:(t,e,n)=>{var r={"./1c":[73870,"highlight/1c"],"./1c.js":[73870,"highlight/1c"],"./abnf":[1122,"highlight/abnf"],"./abnf.js":[1122,"highlight/abnf"],"./accesslog":[63074,"highlight/accesslog"],"./accesslog.js":[63074,"highlight/accesslog"],"./actionscript":[39696,"highlight/actionscript"],"./actionscript.js":[39696,"highlight/actionscript"],"./ada":[19389,"highlight/ada"],"./ada.js":[19389,"highlight/ada"],"./angelscript":[46147,"highlight/angelscript"],"./angelscript.js":[46147,"highlight/angelscript"],"./apache":[96936,"highlight/apache"],"./apache.js":[96936,"highlight/apache"],"./applescript":[5460,"highlight/applescript"],"./applescript.js":[5460,"highlight/applescript"],"./arcade":[43178,"highlight/arcade"],"./arcade.js":[43178,"highlight/arcade"],"./arduino":[1232,"highlight/arduino"],"./arduino.js":[1232,"highlight/arduino"],"./armasm":[71196,"highlight/armasm"],"./armasm.js":[71196,"highlight/armasm"],"./asciidoc":[90630,"highlight/asciidoc"],"./asciidoc.js":[90630,"highlight/asciidoc"],"./aspectj":[25044,"highlight/aspectj"],"./aspectj.js":[25044,"highlight/aspectj"],"./autohotkey":[67130,"highlight/autohotkey"],"./autohotkey.js":[67130,"highlight/autohotkey"],"./autoit":[75039,"highlight/autoit"],"./autoit.js":[75039,"highlight/autoit"],"./avrasm":[18324,"highlight/avrasm"],"./avrasm.js":[18324,"highlight/avrasm"],"./awk":[40070,"highlight/awk"],"./awk.js":[40070,"highlight/awk"],"./axapta":[80149,"highlight/axapta"],"./axapta.js":[80149,"highlight/axapta"],"./bash":[61519,"highlight/bash"],"./bash.js":[61519,"highlight/bash"],"./basic":[56827,"highlight/basic"],"./basic.js":[56827,"highlight/basic"],"./bnf":[78349,"highlight/bnf"],"./bnf.js":[78349,"highlight/bnf"],"./brainfuck":[44536,"highlight/brainfuck"],"./brainfuck.js":[44536,"highlight/brainfuck"],"./c":[25745,"highlight/c"],"./c-like":[58212,"highlight/c-like"],"./c-like.js":[58212,"highlight/c-like"],"./c.js":[25745,"highlight/c"],"./cal":[45041,"highlight/cal"],"./cal.js":[45041,"highlight/cal"],"./capnproto":[51446,"highlight/capnproto"],"./capnproto.js":[51446,"highlight/capnproto"],"./ceylon":[1795,"highlight/ceylon"],"./ceylon.js":[1795,"highlight/ceylon"],"./clean":[82280,"highlight/clean"],"./clean.js":[82280,"highlight/clean"],"./clojure":[36134,"highlight/clojure"],"./clojure-repl":[36746,"highlight/clojure-repl"],"./clojure-repl.js":[36746,"highlight/clojure-repl"],"./clojure.js":[36134,"highlight/clojure"],"./cmake":[71422,"highlight/cmake"],"./cmake.js":[71422,"highlight/cmake"],"./coffeescript":[6691,"highlight/coffeescript"],"./coffeescript.js":[6691,"highlight/coffeescript"],"./coq":[73621,"highlight/coq"],"./coq.js":[73621,"highlight/coq"],"./cos":[69586,"highlight/cos"],"./cos.js":[69586,"highlight/cos"],"./cpp":[74006,"highlight/cpp"],"./cpp.js":[74006,"highlight/cpp"],"./crmsh":[37641,"highlight/crmsh"],"./crmsh.js":[37641,"highlight/crmsh"],"./crystal":[91139,"highlight/crystal"],"./crystal.js":[91139,"highlight/crystal"],"./csharp":[681,"highlight/csharp"],"./csharp.js":[681,"highlight/csharp"],"./csp":[60530,"highlight/csp"],"./csp.js":[60530,"highlight/csp"],"./css":[68914,"highlight/css"],"./css.js":[68914,"highlight/css"],"./d":[89968,"highlight/d"],"./d.js":[89968,"highlight/d"],"./dart":[65778,"highlight/dart"],"./dart.js":[65778,"highlight/dart"],"./delphi":[48008,"highlight/delphi"],"./delphi.js":[48008,"highlight/delphi"],"./diff":[91833,"highlight/diff"],"./diff.js":[91833,"highlight/diff"],"./django":[45253,"highlight/django"],"./django.js":[45253,"highlight/django"],"./dns":[65594,"highlight/dns"],"./dns.js":[65594,"highlight/dns"],"./dockerfile":[27055,"highlight/dockerfile"],"./dockerfile.js":[27055,"highlight/dockerfile"],"./dos":[85215,"highlight/dos"],"./dos.js":[85215,"highlight/dos"],"./dsconfig":[71524,"highlight/dsconfig"],"./dsconfig.js":[71524,"highlight/dsconfig"],"./dts":[29702,"highlight/dts"],"./dts.js":[29702,"highlight/dts"],"./dust":[27115,"highlight/dust"],"./dust.js":[27115,"highlight/dust"],"./ebnf":[26254,"highlight/ebnf"],"./ebnf.js":[26254,"highlight/ebnf"],"./elixir":[27204,"highlight/elixir"],"./elixir.js":[27204,"highlight/elixir"],"./elm":[58259,"highlight/elm"],"./elm.js":[58259,"highlight/elm"],"./erb":[328,"highlight/erb"],"./erb.js":[328,"highlight/erb"],"./erlang":[87489,"highlight/erlang"],"./erlang-repl":[27670,"highlight/erlang-repl"],"./erlang-repl.js":[27670,"highlight/erlang-repl"],"./erlang.js":[87489,"highlight/erlang"],"./excel":[94369,"highlight/excel"],"./excel.js":[94369,"highlight/excel"],"./fix":[51377,"highlight/fix"],"./fix.js":[51377,"highlight/fix"],"./flix":[72041,"highlight/flix"],"./flix.js":[72041,"highlight/flix"],"./fortran":[28362,"highlight/fortran"],"./fortran.js":[28362,"highlight/fortran"],"./fsharp":[34639,"highlight/fsharp"],"./fsharp.js":[34639,"highlight/fsharp"],"./gams":[9392,"highlight/gams"],"./gams.js":[9392,"highlight/gams"],"./gauss":[44859,"highlight/gauss"],"./gauss.js":[44859,"highlight/gauss"],"./gcode":[38036,"highlight/gcode"],"./gcode.js":[38036,"highlight/gcode"],"./gherkin":[65962,"highlight/gherkin"],"./gherkin.js":[65962,"highlight/gherkin"],"./glsl":[85243,"highlight/glsl"],"./glsl.js":[85243,"highlight/glsl"],"./gml":[94807,"highlight/gml"],"./gml.js":[94807,"highlight/gml"],"./go":[33048,"highlight/go"],"./go.js":[33048,"highlight/go"],"./golo":[87140,"highlight/golo"],"./golo.js":[87140,"highlight/golo"],"./gradle":[88267,"highlight/gradle"],"./gradle.js":[88267,"highlight/gradle"],"./groovy":[12175,"highlight/groovy"],"./groovy.js":[12175,"highlight/groovy"],"./haml":[25268,"highlight/haml"],"./haml.js":[25268,"highlight/haml"],"./handlebars":[83512,"highlight/handlebars"],"./handlebars.js":[83512,"highlight/handlebars"],"./haskell":[56703,"highlight/haskell"],"./haskell.js":[56703,"highlight/haskell"],"./haxe":[429,"highlight/haxe"],"./haxe.js":[429,"highlight/haxe"],"./hsp":[90793,"highlight/hsp"],"./hsp.js":[90793,"highlight/hsp"],"./htmlbars":[93202,"highlight/htmlbars"],"./htmlbars.js":[93202,"highlight/htmlbars"],"./http":[30786,"highlight/http"],"./http.js":[30786,"highlight/http"],"./hy":[35359,"highlight/hy"],"./hy.js":[35359,"highlight/hy"],"./inform7":[68968,"highlight/inform7"],"./inform7.js":[68968,"highlight/inform7"],"./ini":[29560,"highlight/ini"],"./ini.js":[29560,"highlight/ini"],"./irpf90":[10811,"highlight/irpf90"],"./irpf90.js":[10811,"highlight/irpf90"],"./isbl":[15044,"highlight/isbl"],"./isbl.js":[15044,"highlight/isbl"],"./java":[37721,"highlight/java"],"./java.js":[37721,"highlight/java"],"./javascript":[96344,"highlight/javascript"],"./javascript.js":[96344,"highlight/javascript"],"./jboss-cli":[40412,"highlight/jboss-cli"],"./jboss-cli.js":[40412,"highlight/jboss-cli"],"./json":[82026,"highlight/json"],"./json.js":[82026,"highlight/json"],"./julia":[47337,"highlight/julia"],"./julia-repl":[79989,"highlight/julia-repl"],"./julia-repl.js":[79989,"highlight/julia-repl"],"./julia.js":[47337,"highlight/julia"],"./kotlin":[48099,"highlight/kotlin"],"./kotlin.js":[48099,"highlight/kotlin"],"./lasso":[54082,"highlight/lasso"],"./lasso.js":[54082,"highlight/lasso"],"./latex":[850,"highlight/latex"],"./latex.js":[850,"highlight/latex"],"./ldif":[33310,"highlight/ldif"],"./ldif.js":[33310,"highlight/ldif"],"./leaf":[2774,"highlight/leaf"],"./leaf.js":[2774,"highlight/leaf"],"./less":[23874,"highlight/less"],"./less.js":[23874,"highlight/less"],"./lisp":[17169,"highlight/lisp"],"./lisp.js":[17169,"highlight/lisp"],"./livecodeserver":[63909,"highlight/livecodeserver"],"./livecodeserver.js":[63909,"highlight/livecodeserver"],"./livescript":[39563,"highlight/livescript"],"./livescript.js":[39563,"highlight/livescript"],"./llvm":[40119,"highlight/llvm"],"./llvm.js":[40119,"highlight/llvm"],"./lsl":[12130,"highlight/lsl"],"./lsl.js":[12130,"highlight/lsl"],"./lua":[31067,"highlight/lua"],"./lua.js":[31067,"highlight/lua"],"./makefile":[30465,"highlight/makefile"],"./makefile.js":[30465,"highlight/makefile"],"./markdown":[93839,"highlight/markdown"],"./markdown.js":[93839,"highlight/markdown"],"./mathematica":[61083,"highlight/mathematica"],"./mathematica.js":[61083,"highlight/mathematica"],"./matlab":[41304,"highlight/matlab"],"./matlab.js":[41304,"highlight/matlab"],"./maxima":[46747,"highlight/maxima"],"./maxima.js":[46747,"highlight/maxima"],"./mel":[70483,"highlight/mel"],"./mel.js":[70483,"highlight/mel"],"./mercury":[53038,"highlight/mercury"],"./mercury.js":[53038,"highlight/mercury"],"./mipsasm":[45802,"highlight/mipsasm"],"./mipsasm.js":[45802,"highlight/mipsasm"],"./mizar":[90918,"highlight/mizar"],"./mizar.js":[90918,"highlight/mizar"],"./mojolicious":[92210,"highlight/mojolicious"],"./mojolicious.js":[92210,"highlight/mojolicious"],"./monkey":[97350,"highlight/monkey"],"./monkey.js":[97350,"highlight/monkey"],"./moonscript":[27239,"highlight/moonscript"],"./moonscript.js":[27239,"highlight/moonscript"],"./n1ql":[77669,"highlight/n1ql"],"./n1ql.js":[77669,"highlight/n1ql"],"./nginx":[42387,"highlight/nginx"],"./nginx.js":[42387,"highlight/nginx"],"./nim":[35587,"highlight/nim"],"./nim.js":[35587,"highlight/nim"],"./nix":[88170,"highlight/nix"],"./nix.js":[88170,"highlight/nix"],"./node-repl":[93668,"highlight/node-repl"],"./node-repl.js":[93668,"highlight/node-repl"],"./nsis":[29269,"highlight/nsis"],"./nsis.js":[29269,"highlight/nsis"],"./objectivec":[61896,"highlight/objectivec"],"./objectivec.js":[61896,"highlight/objectivec"],"./ocaml":[78550,"highlight/ocaml"],"./ocaml.js":[78550,"highlight/ocaml"],"./openscad":[41078,"highlight/openscad"],"./openscad.js":[41078,"highlight/openscad"],"./oxygene":[89015,"highlight/oxygene"],"./oxygene.js":[89015,"highlight/oxygene"],"./parser3":[6247,"highlight/parser3"],"./parser3.js":[6247,"highlight/parser3"],"./perl":[78529,"highlight/perl"],"./perl.js":[78529,"highlight/perl"],"./pf":[15994,"highlight/pf"],"./pf.js":[15994,"highlight/pf"],"./pgsql":[86509,"highlight/pgsql"],"./pgsql.js":[86509,"highlight/pgsql"],"./php":[73306,"highlight/php"],"./php-template":[75377,"highlight/php-template"],"./php-template.js":[75377,"highlight/php-template"],"./php.js":[73306,"highlight/php"],"./plaintext":[76572,"highlight/plaintext"],"./plaintext.js":[76572,"highlight/plaintext"],"./pony":[28422,"highlight/pony"],"./pony.js":[28422,"highlight/pony"],"./powershell":[66336,"highlight/powershell"],"./powershell.js":[66336,"highlight/powershell"],"./processing":[44148,"highlight/processing"],"./processing.js":[44148,"highlight/processing"],"./profile":[9129,"highlight/profile"],"./profile.js":[9129,"highlight/profile"],"./prolog":[58074,"highlight/prolog"],"./prolog.js":[58074,"highlight/prolog"],"./properties":[81245,"highlight/properties"],"./properties.js":[81245,"highlight/properties"],"./protobuf":[3306,"highlight/protobuf"],"./protobuf.js":[3306,"highlight/protobuf"],"./puppet":[73736,"highlight/puppet"],"./puppet.js":[73736,"highlight/puppet"],"./purebasic":[34055,"highlight/purebasic"],"./purebasic.js":[34055,"highlight/purebasic"],"./python":[30308,"highlight/python"],"./python-repl":[93725,"highlight/python-repl"],"./python-repl.js":[93725,"highlight/python-repl"],"./python.js":[30308,"highlight/python"],"./q":[76891,"highlight/q"],"./q.js":[76891,"highlight/q"],"./qml":[63259,"highlight/qml"],"./qml.js":[63259,"highlight/qml"],"./r":[30806,"highlight/r"],"./r.js":[30806,"highlight/r"],"./reasonml":[82050,"highlight/reasonml"],"./reasonml.js":[82050,"highlight/reasonml"],"./rib":[44613,"highlight/rib"],"./rib.js":[44613,"highlight/rib"],"./roboconf":[33176,"highlight/roboconf"],"./roboconf.js":[33176,"highlight/roboconf"],"./routeros":[25096,"highlight/routeros"],"./routeros.js":[25096,"highlight/routeros"],"./rsl":[61025,"highlight/rsl"],"./rsl.js":[61025,"highlight/rsl"],"./ruby":[58473,"highlight/ruby"],"./ruby.js":[58473,"highlight/ruby"],"./ruleslanguage":[65506,"highlight/ruleslanguage"],"./ruleslanguage.js":[65506,"highlight/ruleslanguage"],"./rust":[11374,"highlight/rust"],"./rust.js":[11374,"highlight/rust"],"./sas":[35457,"highlight/sas"],"./sas.js":[35457,"highlight/sas"],"./scala":[5818,"highlight/scala"],"./scala.js":[5818,"highlight/scala"],"./scheme":[10336,"highlight/scheme"],"./scheme.js":[10336,"highlight/scheme"],"./scilab":[47691,"highlight/scilab"],"./scilab.js":[47691,"highlight/scilab"],"./scss":[36632,"highlight/scss"],"./scss.js":[36632,"highlight/scss"],"./shell":[19514,"highlight/shell"],"./shell.js":[19514,"highlight/shell"],"./smali":[60522,"highlight/smali"],"./smali.js":[60522,"highlight/smali"],"./smalltalk":[75030,"highlight/smalltalk"],"./smalltalk.js":[75030,"highlight/smalltalk"],"./sml":[79664,"highlight/sml"],"./sml.js":[79664,"highlight/sml"],"./sqf":[85168,"highlight/sqf"],"./sqf.js":[85168,"highlight/sqf"],"./sql":[97181,"highlight/sql"],"./sql.js":[97181,"highlight/sql"],"./sql_more":[83224,"highlight/sql_more"],"./sql_more.js":[83224,"highlight/sql_more"],"./stan":[53413,"highlight/stan"],"./stan.js":[53413,"highlight/stan"],"./stata":[92417,"highlight/stata"],"./stata.js":[92417,"highlight/stata"],"./step21":[52706,"highlight/step21"],"./step21.js":[52706,"highlight/step21"],"./stylus":[82054,"highlight/stylus"],"./stylus.js":[82054,"highlight/stylus"],"./subunit":[36886,"highlight/subunit"],"./subunit.js":[36886,"highlight/subunit"],"./swift":[26306,"highlight/swift"],"./swift.js":[26306,"highlight/swift"],"./taggerscript":[54858,"highlight/taggerscript"],"./taggerscript.js":[54858,"highlight/taggerscript"],"./tap":[49113,"highlight/tap"],"./tap.js":[49113,"highlight/tap"],"./tcl":[74562,"highlight/tcl"],"./tcl.js":[74562,"highlight/tcl"],"./thrift":[55063,"highlight/thrift"],"./thrift.js":[55063,"highlight/thrift"],"./tp":[27092,"highlight/tp"],"./tp.js":[27092,"highlight/tp"],"./twig":[35488,"highlight/twig"],"./twig.js":[35488,"highlight/twig"],"./typescript":[91533,"highlight/typescript"],"./typescript.js":[91533,"highlight/typescript"],"./vala":[65431,"highlight/vala"],"./vala.js":[65431,"highlight/vala"],"./vbnet":[86479,"highlight/vbnet"],"./vbnet.js":[86479,"highlight/vbnet"],"./vbscript":[80824,"highlight/vbscript"],"./vbscript-html":[3316,"highlight/vbscript-html"],"./vbscript-html.js":[3316,"highlight/vbscript-html"],"./vbscript.js":[80824,"highlight/vbscript"],"./verilog":[49115,"highlight/verilog"],"./verilog.js":[49115,"highlight/verilog"],"./vhdl":[53260,"highlight/vhdl"],"./vhdl.js":[53260,"highlight/vhdl"],"./vim":[5298,"highlight/vim"],"./vim.js":[5298,"highlight/vim"],"./x86asm":[43377,"highlight/x86asm"],"./x86asm.js":[43377,"highlight/x86asm"],"./xl":[731,"highlight/xl"],"./xl.js":[731,"highlight/xl"],"./xml":[42157,"highlight/xml"],"./xml.js":[42157,"highlight/xml"],"./xquery":[46629,"highlight/xquery"],"./xquery.js":[46629,"highlight/xquery"],"./yaml":[54587,"highlight/yaml"],"./yaml.js":[54587,"highlight/yaml"],"./zephir":[58737,"highlight/zephir"],"./zephir.js":[58737,"highlight/zephir"]};function o(t){if(!n.o(r,t))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=r[t],o=e[0];return n.e(e[1]).then((()=>n.t(o,23)))}o.keys=()=>Object.keys(r),o.id=23506,t.exports=o},46700:(t,e,n)=>{var r={"./af":42786,"./af.js":42786,"./ar":30867,"./ar-dz":14130,"./ar-dz.js":14130,"./ar-kw":96135,"./ar-kw.js":96135,"./ar-ly":56440,"./ar-ly.js":56440,"./ar-ma":47702,"./ar-ma.js":47702,"./ar-sa":16040,"./ar-sa.js":16040,"./ar-tn":37100,"./ar-tn.js":37100,"./ar.js":30867,"./az":31083,"./az.js":31083,"./be":9808,"./be.js":9808,"./bg":68338,"./bg.js":68338,"./bm":67438,"./bm.js":67438,"./bn":8905,"./bn-bd":76225,"./bn-bd.js":76225,"./bn.js":8905,"./bo":11560,"./bo.js":11560,"./br":1278,"./br.js":1278,"./bs":80622,"./bs.js":80622,"./ca":2468,"./ca.js":2468,"./cs":5822,"./cs.js":5822,"./cv":50877,"./cv.js":50877,"./cy":47373,"./cy.js":47373,"./da":24780,"./da.js":24780,"./de":59740,"./de-at":60217,"./de-at.js":60217,"./de-ch":60894,"./de-ch.js":60894,"./de.js":59740,"./dv":5300,"./dv.js":5300,"./el":50837,"./el.js":50837,"./en-au":78348,"./en-au.js":78348,"./en-ca":77925,"./en-ca.js":77925,"./en-gb":22243,"./en-gb.js":22243,"./en-ie":46436,"./en-ie.js":46436,"./en-il":47207,"./en-il.js":47207,"./en-in":44175,"./en-in.js":44175,"./en-nz":76319,"./en-nz.js":76319,"./en-sg":31662,"./en-sg.js":31662,"./eo":92915,"./eo.js":92915,"./es":55655,"./es-do":55251,"./es-do.js":55251,"./es-mx":96112,"./es-mx.js":96112,"./es-us":71146,"./es-us.js":71146,"./es.js":55655,"./et":5603,"./et.js":5603,"./eu":77763,"./eu.js":77763,"./fa":76959,"./fa.js":76959,"./fi":11897,"./fi.js":11897,"./fil":42549,"./fil.js":42549,"./fo":94694,"./fo.js":94694,"./fr":94470,"./fr-ca":63049,"./fr-ca.js":63049,"./fr-ch":52330,"./fr-ch.js":52330,"./fr.js":94470,"./fy":5044,"./fy.js":5044,"./ga":29295,"./ga.js":29295,"./gd":2101,"./gd.js":2101,"./gl":38794,"./gl.js":38794,"./gom-deva":27884,"./gom-deva.js":27884,"./gom-latn":23168,"./gom-latn.js":23168,"./gu":95349,"./gu.js":95349,"./he":24206,"./he.js":24206,"./hi":30094,"./hi.js":30094,"./hr":30316,"./hr.js":30316,"./hu":22138,"./hu.js":22138,"./hy-am":11423,"./hy-am.js":11423,"./id":29218,"./id.js":29218,"./is":90135,"./is.js":90135,"./it":90626,"./it-ch":10150,"./it-ch.js":10150,"./it.js":90626,"./ja":39183,"./ja.js":39183,"./jv":24286,"./jv.js":24286,"./ka":12105,"./ka.js":12105,"./kk":47772,"./kk.js":47772,"./km":18758,"./km.js":18758,"./kn":79282,"./kn.js":79282,"./ko":33730,"./ko.js":33730,"./ku":1408,"./ku.js":1408,"./ky":33291,"./ky.js":33291,"./lb":36841,"./lb.js":36841,"./lo":55466,"./lo.js":55466,"./lt":57010,"./lt.js":57010,"./lv":37595,"./lv.js":37595,"./me":39861,"./me.js":39861,"./mi":35493,"./mi.js":35493,"./mk":95966,"./mk.js":95966,"./ml":87341,"./ml.js":87341,"./mn":5115,"./mn.js":5115,"./mr":10370,"./mr.js":10370,"./ms":9847,"./ms-my":41237,"./ms-my.js":41237,"./ms.js":9847,"./mt":72126,"./mt.js":72126,"./my":56165,"./my.js":56165,"./nb":64924,"./nb.js":64924,"./ne":16744,"./ne.js":16744,"./nl":93901,"./nl-be":59814,"./nl-be.js":59814,"./nl.js":93901,"./nn":83877,"./nn.js":83877,"./oc-lnc":92135,"./oc-lnc.js":92135,"./pa-in":15858,"./pa-in.js":15858,"./pl":64495,"./pl.js":64495,"./pt":89520,"./pt-br":57971,"./pt-br.js":57971,"./pt.js":89520,"./ro":96459,"./ro.js":96459,"./ru":21793,"./ru.js":21793,"./sd":40950,"./sd.js":40950,"./se":10490,"./se.js":10490,"./si":90124,"./si.js":90124,"./sk":64249,"./sk.js":64249,"./sl":14985,"./sl.js":14985,"./sq":51104,"./sq.js":51104,"./sr":49131,"./sr-cyrl":79915,"./sr-cyrl.js":79915,"./sr.js":49131,"./ss":85893,"./ss.js":85893,"./sv":98760,"./sv.js":98760,"./sw":91172,"./sw.js":91172,"./ta":27333,"./ta.js":27333,"./te":23110,"./te.js":23110,"./tet":52095,"./tet.js":52095,"./tg":27321,"./tg.js":27321,"./th":9041,"./th.js":9041,"./tk":19005,"./tk.js":19005,"./tl-ph":75768,"./tl-ph.js":75768,"./tlh":89444,"./tlh.js":89444,"./tr":72397,"./tr.js":72397,"./tzl":28254,"./tzl.js":28254,"./tzm":51106,"./tzm-latn":30699,"./tzm-latn.js":30699,"./tzm.js":51106,"./ug-cn":9288,"./ug-cn.js":9288,"./uk":67691,"./uk.js":67691,"./ur":13795,"./ur.js":13795,"./uz":6791,"./uz-latn":60588,"./uz-latn.js":60588,"./uz.js":6791,"./vi":65666,"./vi.js":65666,"./x-pseudo":14378,"./x-pseudo.js":14378,"./yo":75805,"./yo.js":75805,"./zh-cn":83839,"./zh-cn.js":83839,"./zh-hk":55726,"./zh-hk.js":55726,"./zh-mo":99807,"./zh-mo.js":99807,"./zh-tw":74152,"./zh-tw.js":74152};function o(t){var e=i(t);return n(e)}function i(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}o.keys=function(){return Object.keys(r)},o.resolve=i,t.exports=o,o.id=46700},84413:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>v});const r={name:"CollisionResolveDialog"};var o=n(93379),i=n.n(o),a=n(7795),s=n.n(a),l=n(90569),c=n.n(l),d=n(3565),u=n.n(d),A=n(19216),h=n.n(A),p=n(44589),f=n.n(p),m=n(70060),g={};g.styleTagTransform=f(),g.setAttributes=u(),g.insert=c().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=h();i()(m.Z,g);m.Z&&m.Z.locals&&m.Z.locals;const v=(0,n(51900).Z)(r,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"collision-resolve-dialog",attrs:{id:"resolve-conflicts"}},[e("button",{on:{click:function(e){return t.$emit("resolve-use-this-version")}}},[t._v("\n\t\t"+t._s(t.t("text","Use current version"))+"\n\t")]),t._v(" "),e("button",{on:{click:function(e){return t.$emit("resolve-use-server-version")}}},[t._v("\n\t\t"+t._s(t.t("text","Use the saved version"))+"\n\t")])])}),[],!1,null,"4a5d4c0f",null).exports},89191:(e,n,r)=>{"use strict";r.r(n),r.d(n,{default:()=>vo});var o,i=r(20144),a=r(95573),s=r.n(a),l=r(80351),c=r.n(l),d=r(69066),u=r(16560),A=r(45994),h=r(79954),p=r(31728),f=r(32318),m=r(15961),g=r(20296),v=r.n(g),C=Symbol("wrapper:outline-state"),b=Symbol("wrapper:outline-actions"),y={inject:{$outlineState:{from:C,default:{visible:!1,enable:!1}}}},x={inject:{$outlineActions:{from:b,default:{toggle:function(){}}}}};function w(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var k=navigator.userAgent.includes("Mac"),_={Mod:k?"Meta":"Control",Alt:"Alt",Control:"Control",Shift:"Shift"},j=(w(o={},_.Mod,k?t("text","Command"):t("text","Control")),w(o,_.Control,t("text","Ctrl")),w(o,_.Alt,t("text",k?"Option":"Alt")),w(o,_.Shift,t("text","Shift")),o);function P(t){return function(t){if(Array.isArray(t))return E(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return E(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var M=function(t,e){return n={"is-active":e},r="action-menu-".concat(t.key),o=!0,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n;var n,r,o},S=function(t,e){var n=e.keyChar,r=e.keyModifiers;return!t&&n?"(".concat(function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).map((function(t){return j[t]})).concat(t.toUpperCase()).join("+")}(n,r),")"):""},B=function(t,e){return t.action&&!t.action(e.can())},O=function(t,e){var n=t.isActive;if(!n)return!1;var r=Array.isArray(n)?n:[n];return e.isActive.apply(e,P(r))},I=function(t,e){var n=O(t,e);return{disabled:B(t,e),class:M(t,n),active:n}},D=r(13815),T=r(93379),L=r.n(T),N=r(7795),R=r.n(N),Z=r(90569),G=r.n(Z),$=r(3565),F=r.n($),U=r(19216),z=r.n(U),H=r(44589),W=r.n(H),q=r(97646),Y={};Y.styleTagTransform=W(),Y.setAttributes=F(),Y.insert=G().bind(null,"head"),Y.domAPI=R(),Y.insertStyleElement=z();L()(q.Z,Y);q.Z&&q.Z.locals&&q.Z.locals;var V={directives:{Tooltip:m.u},mixins:[p.Cy,p.ww,D.Z,x,y],props:{actionEntry:{type:Object,required:!0}},data:function(){return{state:I(this.actionEntry,this.$editor)}},computed:{label:function(){var t=this.actionEntry.label;return"function"==typeof t?t(this):t},icon:function(){return this.actionEntry.icon},keyshortcuts:function(){return t=this.actionEntry,e=t.keyChar,(void 0===(n=t.keyModifiers)?[]:n).map((function(t){return _[t]})).concat(e).join("+");var t,e,n},tooltip:function(){return[this.label,S(this.$isMobile,this.actionEntry)].join(" ")}},mounted:function(){this.$_updateState=v()(this.updateState.bind(this),50),this.$editor.on("update",this.$_updateState),this.$editor.on("selectionUpdate",this.$_updateState)},beforeDestroy:function(){this.$editor.off("update",this.$_updateState),this.$editor.off("selectionUpdate",this.$_updateState)},methods:{updateState:function(){this.state=I(this.actionEntry,this.$editor)}}},K=Symbol("menu::id"),Q={inject:{$menuID:{from:K,default:null}},computed:{menuIDSelector:function(){return"#".concat(this.$menuID)}}};const J={name:"EmojiPickerAction",components:{NcEmojiPicker:m.Xo,NcButton:m.P2},extends:V,mixins:[Q],methods:{addEmoji:function(t){var e=t.id,n=t.native;this.actionEntry.action(this.$editor.chain(),{id:e,native:n}).focus().run()}}};var X=r(51900);const tt=(0,X.Z)(J,(function(){var t=this,e=t._self._c;return e("NcEmojiPicker",{staticClass:"entry-action entry-action__emoji",attrs:{"data-text-action-entry":t.actionEntry.key,container:t.menuIDSelector},on:{"select-data":t.addEmoji}},[e("NcButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.actionEntry.label,expression:"actionEntry.label"}],staticClass:"entry-action__button",attrs:{role:"menu",title:t.actionEntry.label,"aria-label":t.actionEntry.label,"aria-haspopup":!0},scopedSlots:t._u([{key:"icon",fn:function(){return[e(t.icon,{tag:"component"})]},proxy:!0}])})],1)}),[],!1,null,null,null).exports;var et=Symbol("state:uploading-state"),nt=Symbol("editor:action:attachment-prompt"),rt=Symbol("editor:action:upload-attachment"),ot={inject:{$uploadingState:{from:et,default:{isUploadingAttachments:!1}}}},it={inject:{$callAttachmentPrompt:{from:nt,default:function(){}}}},at={inject:{$callChooseLocalAttachment:{from:rt,default:function(){}}}};const st={name:"ActionAttachmentUpload",components:{NcActions:m.O3,NcActionButton:m.Js,Loading:f.gb,Folder:f.gt,Upload:f.gq},extends:V,mixins:[p.fB,it,ot,at,Q],computed:{icon:function(){return this.isUploadingAttachments?f.gb:this.actionEntry.icon},isUploadingAttachments:function(){return this.$uploadingState.isUploadingAttachments}}};const lt=(0,X.Z)(st,(function(){var t=this,e=t._self._c;return e("NcActions",{staticClass:"entry-action entry-action__image-upload",attrs:{"data-text-action-entry":t.actionEntry.key,title:t.actionEntry.label,"aria-label":t.actionEntry.label,container:t.menuIDSelector,role:"menu","aria-haspopup":""},scopedSlots:t._u([{key:"icon",fn:function(){return[e(t.icon,{tag:"component",attrs:{title:t.actionEntry.label,"aria-label":t.actionEntry.label,"aria-haspopup":""}})]},proxy:!0}])},[t._v(" "),e("NcActionButton",{attrs:{"close-after-click":"",disabled:t.isUploadingAttachments,"data-text-action-entry":"".concat(t.actionEntry.key,"-upload")},on:{click:t.$callChooseLocalAttachment},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Upload")]},proxy:!0}])},[t._v("\n\t\t"+t._s(t.t("text","Upload from computer"))+"\n\t")]),t._v(" "),t.$isPublic?t._e():e("NcActionButton",{attrs:{"close-after-click":"",disabled:t.isUploadingAttachments,"data-text-action-entry":"".concat(t.actionEntry.key,"-insert")},on:{click:t.$callAttachmentPrompt},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Folder")]},proxy:!0}],null,!1,2750733237)},[t._v("\n\t\t"+t._s(t.t("text","Insert from Files"))+"\n\t")])],1)}),[],!1,null,null,null).exports;var ct=r(12945),dt=r.n(ct),ut=r(45400),At=r.n(ut),ht=r(79570),pt=r.n(ht),ft=r(82880),mt=r(19958),gt=r(7166);function vt(t){return function(t){if(Array.isArray(t))return Ct(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Ct(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ct(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ct(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}const bt={name:"ActionInsertLink",components:{NcActions:dt(),NcActionButton:At(),NcActionInput:pt(),Document:f.BB,Loading:f.gb,LinkOff:f.pR,Web:f.ph},extends:V,mixins:[p.a_,Q],data:function(){return{href:null,isInputMode:!1,startPath:null}},computed:{activeClass:function(){return this.state.active?"is-active":""}},methods:{linkFile:function(){var e=this;null===this.startPath&&(this.startPath=this.$file.relativePath.split("/").slice(0,-1).join("/")),new ft.FilePicker(t("text","Select file or folder to link to"),!1,[],!0,ft.FilePickerType.Choose,!0,this.startPath).pick().then((function(t){OC.Files.getClient().getFileInfo(t).then((function(t,n){var r=(0,gt.Lz)(e.$file.relativePath,"".concat(n.path,"/").concat(n.name)).split("/").map(encodeURIComponent).join("/")+("dir"===n.type?"/":""),o="".concat(r,"?fileId=").concat(n.id);e.setLink(o,n.name),e.startPath=n.path+("dir"===n.type?"/".concat(n.name,"/"):"")}))}))},linkWebsite:function(t){if("submit"===(null==t?void 0:t.type)){var e=vt(t.target.elements).filter((function(t){return"text"===(null==t?void 0:t.type)}))[0].value;return this.$refs.menu.closeMenu(),this.isInputMode=!1,this.href=null,this.setLink(e,e)}if((0,mt.zh)(this.$editor.state,"link")){var n=(0,mt.Jo)(this.$editor.state,"link");this.href=n.href}this.isInputMode=!0},setLink:function(t,e){var n;t&&![/^[a-zA-Z]+:/,/^\//,/\?fileId=/,/^\.\.?\//,/^[^.]*[/$]/,/^#/].find((function(e){return t.match(e)}))&&(t="https://"+t);var r=t.replaceAll(" ","%20"),o=this.$editor.chain();null!==(n=this.$editor.view.state)&&void 0!==n&&n.selection.empty?o.insertContent({type:"paragraph",content:[{type:"text",marks:[{type:"link",attrs:{href:r}}],text:e}]}):o.setLink({href:r}),o.focus().run()},removeLink:function(){this.$editor.chain().unsetLink().focus().run()}}},yt=bt;var xt=r(27295),wt={};wt.styleTagTransform=W(),wt.setAttributes=F(),wt.insert=G().bind(null,"head"),wt.domAPI=R(),wt.insertStyleElement=z();L()(xt.Z,wt);xt.Z&&xt.Z.locals&&xt.Z.locals;const kt=(0,X.Z)(yt,(function(){var t=this,e=t._self._c;return e("NcActions",{ref:"menu",staticClass:"entry-action entry-action__insert-link",class:t.activeClass,attrs:{"aria-haspopup":"","aria-label":t.actionEntry.label,container:t.menuIDSelector,"data-text-action-entry":t.actionEntry.key,title:t.actionEntry.label},scopedSlots:t._u([{key:"icon",fn:function(){return[e(t.icon,{tag:"component",attrs:{title:t.actionEntry.label,"aria-label":t.actionEntry.label,"aria-haspopup":""}})]},proxy:!0}])},[t._v(" "),t.state.active?e("NcActionButton",{attrs:{"close-after-click":"","data-text-action-entry":"".concat(t.actionEntry.key,"-remove")},on:{click:t.removeLink},scopedSlots:t._u([{key:"icon",fn:function(){return[e("LinkOff")]},proxy:!0}],null,!1,3589828876)},[t._v("\n\t\t"+t._s(t.t("text","Remove link"))+"\n\t")]):t._e(),t._v(" "),e("NcActionButton",{attrs:{"close-after-click":"","data-text-action-entry":"".concat(t.actionEntry.key,"-file")},on:{click:t.linkFile},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Document")]},proxy:!0}])},[t._v("\n\t\t"+t._s(t.t("text","Link to file or folder"))+"\n\t")]),t._v(" "),t.isInputMode?e("NcActionInput",{attrs:{type:"text",value:t.href,"data-text-action-entry":"".concat(t.actionEntry.key,"-input")},on:{submit:t.linkWebsite},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Web")]},proxy:!0}],null,!1,1844845715)},[t._v("\n\t\t"+t._s(t.t("text","Link to website"))+"\n\t")]):e("NcActionButton",{attrs:{"data-text-action-entry":"".concat(t.actionEntry.key,"-website")},on:{click:t.linkWebsite},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Web")]},proxy:!0}])},[t._v("\n\t\t"+t._s(t.state.active?t.t("text","Update link"):t.t("text","Link to website"))+"\n\t")])],1)}),[],!1,null,"0a1aa55a",null).exports;var _t=[{key:"outline",forceLabel:!0,icon:f.Cj,click:function(t){return t.$outlineActions.toggle()},label:function(e){return e.$outlineState.visible?t("text","Hide outline"):t("text","Show outline")}}];const jt=[{key:"undo",label:t("text","Undo"),keyChar:"z",keyModifiers:[_.Mod],icon:f.WP,action:function(t){return t.undo()},priority:6},{key:"redo",label:t("text","Redo"),keyChar:"y",keyModifiers:[_.Mod],icon:f.Jw,action:function(t){return t.redo()},priority:12},{key:"bold",label:t("text","Bold"),keyChar:"b",keyModifiers:[_.Mod],icon:f.VK,isActive:"strong",action:function(t){return t.toggleBold()},priority:7},{key:"italic",label:t("text","Italic"),keyChar:"i",keyModifiers:[_.Mod],icon:f.mV,isActive:"em",action:function(t){return t.toggleItalic()},priority:8},{key:"underline",label:t("text","Underline"),keyChar:"u",keyModifiers:[_.Mod],icon:f.Bz,isActive:"underline",action:function(t){return t.toggleUnderline()},priority:15},{key:"strikethrough",label:t("text","Strikethrough"),keyChar:"x",keyModifiers:[_.Mod,_.Shift],icon:f.Lo,isActive:"strike",action:function(t){return t.toggleStrike()},priority:16},{key:"headings",label:t("text","Headings"),keyChar:"1…6",keyModifiers:[_.Mod,_.Shift],icon:f.Lz,isActive:"heading",children:[{key:"headings-h1",label:t("text","Heading 1"),icon:f.Lz,isActive:["heading",{level:1}],action:function(t){return t.toggleHeading({level:1})}},{key:"headings-h2",label:t("text","Heading 2"),icon:f.DB,isActive:["heading",{level:2}],action:function(t){return t.toggleHeading({level:2})}},{key:"headings-h3",label:t("text","Heading 3"),icon:f.XD,isActive:["heading",{level:3}],action:function(t){return t.toggleHeading({level:3})}},{key:"headings-h4",label:t("text","Heading 4"),isActive:["heading",{level:4}],icon:f.fy,action:function(t){return t.toggleHeading({level:4})}},{key:"headings-h5",label:t("text","Heading 5"),isActive:["heading",{level:5}],icon:f.Ze,action:function(t){return t.toggleHeading({level:5})}},{key:"headings-h6",label:t("text","Heading 6"),isActive:["heading",{level:6}],icon:f.J4,action:function(t){return t.toggleHeading({level:6})}},{key:"outline",icon:f.Cj,click:function(t){return t.$outlineActions.toggle()},visible:function(t){return t.$outlineState.enable},label:function(e){return e.$outlineState.visible?t("text","Hide outline"):t("text","Show outline")}}],priority:1},{key:"unordered-list",label:t("text","Unordered list"),keyChar:"8",keyModifiers:[_.Mod,_.Shift],isActive:"bulletList",icon:f.Cj,action:function(t){return t.toggleBulletList()},priority:9},{key:"ordered-list",label:t("text","Ordered list"),keyChar:"7",keyModifiers:[_.Mod,_.Shift],isActive:"orderedList",icon:f.mH,action:function(t){return t.toggleOrderedList()},priority:10},{key:"task-list",label:t("text","To-Do list"),keyChar:"9",keyModifiers:[_.Mod,_.Shift],isActive:"taskList",icon:f.Fv,action:function(t){return t.toggleTaskList()},priority:11},{key:"insert-link",label:t("text","Insert link"),isActive:"link",icon:f.xP,component:kt,priority:2},{key:"blockquote",label:t("text","Blockquote"),keyChar:"b",keyModifiers:[_.Mod,_.Shift],isActive:"blockquote",icon:f.UX,action:function(t){return t.toggleBlockquote()},priority:13},{key:"callouts",label:t("text","Callouts"),visible:!1,icon:f.kI,isActive:"callout",children:[{key:"callout-info",label:t("text","Info"),isActive:["callout",{type:"info"}],icon:f.kI,action:function(t){return t.toggleCallout({type:"info"})}},{key:"callout-success",label:t("text","Success"),isActive:["callout",{type:"success"}],icon:f.Ho,action:function(t){return t.toggleCallout({type:"success"})}},{key:"callout-warn",label:t("text","Warning"),isActive:["callout",{type:"warn"}],icon:f.uU,action:function(t){return t.toggleCallout({type:"warn"})}},{key:"callout-error",label:t("text","Danger"),isActive:["callout",{type:"error"}],icon:f.b0,action:function(t){return t.toggleCallout({type:"error"})}}],priority:3},{key:"code-block",label:t("text","Code block"),keyChar:"c",keyModifiers:[_.Mod,_.Alt],isActive:"codeBlock",icon:f.Nk,action:function(t){return t.toggleCodeBlock()},priority:14},{key:"table",label:t("text","Table"),isActive:"table",icon:f.iA,action:function(t){return t.insertTable()},priority:17},{key:"emoji-picker",label:t("text","Insert emoji"),icon:f.tk,component:tt,action:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.emoji(e)},priority:5},{key:"insert-attachment",label:t("text","Insert attachment"),icon:f.rU,component:lt,priority:4}];var Pt=["class"];function Et(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function Mt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function St(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Mt(Object(n),!0).forEach((function(e){Bt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Bt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Ot={name:"ActionSingle",extends:V,props:{isItem:{type:Boolean,default:!1}},computed:{component:function(){return this.isItem?m.Js:m.P2},bindState:function(){var t=this.keyshortcuts,e=St(St({},this.state),{},{ariaLabel:this.label});return e.class=St(St({},e.class),{},{"entry-action-item":this.isItem}),t&&(e["aria-keyshortcuts"]=t),this.isItem&&(e.closeAfterClick=!0),e}},methods:{runAction:function(){var t,e=this,n=this.actionEntry;n.click?n.click(this):null===(t=n.action(this.$editor.chain().focus()))||void 0===t||t.run();this.$nextTick((function(){e.$emit("trigged",St({},n))}))}},render:function(t){var e=this.$listeners,n=this.actionEntry,r=this.bindState,o=this.component,i=this.icon,a=this.isItem,s=this.runAction,l=this.tooltip,c=this.label,d=r.class,u=Et(r,Pt),A=a?[]:[{name:"tooltip",value:l}],h=[t(i,{slot:"icon"})],p=a?void 0:c;return(a||n.forceLabel)&&h.push(c),t(o,{directives:A,staticClass:"entry-single-action entry-action",class:d,attrs:St({title:p,type:"tertiary",role:"menuitem","data-text-action-entry":n.key},u),on:St(St({},e),{},{click:s})},h)}},It=Ot;const Dt=(0,X.Z)(It,undefined,undefined,!1,null,null,null).exports;const Tt={name:"ActionList",components:{NcActions:m.O3,ActionSingle:Dt},extends:V,mixins:[D.Z,y,Q],data:function(){return{visible:!1}},computed:{currentChild:function(){var t=this.state,e=this.$editor,n=this.actionEntry.children;return t.active?n.find((function(t){return O(t,e)})):null},icon:function(){return this.currentChild?this.currentChild.icon:this.actionEntry.icon},iconKey:function(){return"".concat(this.actionEntry.key,"/").concat(this.activeKey)},activeKey:function(){var t;return null===(t=this.currentChild)||void 0===t?void 0:t.key},children:function(){var t=this;return this.actionEntry.children.filter((function(e){var n=e.visible;return void 0===n||("function"==typeof n?n(t):n)}))}},methods:{onOpenChange:function(t){this.visible=t},runAction:function(){},onTrigger:function(t){null!=t&&t.click||(this.$editor.chain().focus().run(),this.$emit("trigged",t))}}},Lt=Tt;const Nt=(0,X.Z)(Lt,(function(){var t=this,e=t._self._c;return e("NcActions",t._b({directives:[{name:"tooltip",rawName:"v-tooltip",value:t.tooltip,expression:"tooltip"}],staticClass:"entry-list-action entry-action",attrs:{role:"menu",container:t.menuIDSelector,"aria-label":t.actionEntry.label,"force-menu":!0,title:t.actionEntry.label,"data-text-action-entry":t.actionEntry.key,"data-text-action-active":t.activeKey},on:{"update:open":t.onOpenChange},scopedSlots:t._u([{key:"icon",fn:function(){return[e(t.icon,{key:t.iconKey,tag:"component"})]},proxy:!0}])},"NcActions",t.state,!1),[t._v(" "),t._l(t.children,(function(n){return e("ActionSingle",t._g({key:"child-".concat(n.key),attrs:{"is-item":"","action-entry":n},on:{trigged:t.onTrigger}},t.$listeners))})),t._v(" "),t._t("lastAction",null,null,{visible:t.visible})],2)}),[],!1,null,null,null).exports,Rt={name:"ActionEntry",functional:!0,render:function(t,e){var n=e.props.actionEntry,r=e.data,o=e.props,i=e.listeners,a={data:r,key:r.key,props:o,on:i};return n.component?t(n.component,a):n.children?t(Nt,a):t(Dt,a)}},Zt=(0,i.defineComponent)({name:"ReadonlyBar",components:{ActionEntry:Rt},setup:function(){return{visibleEntries:_t}}});var Gt=r(96614),$t={};$t.styleTagTransform=W(),$t.setAttributes=F(),$t.insert=G().bind(null,"head"),$t.domAPI=R(),$t.insertStyleElement=z();L()(Gt.Z,$t);Gt.Z&&Gt.Z.locals&&Gt.Z.locals;const Ft=(0,X.Z)(Zt,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"text-readonly-bar",attrs:{"data-text-el":"readonly-bar"}},[e("div",{ref:"menubar",staticClass:"text-readonly-bar__entries",attrs:{role:"group","aria-label":t.t("text","Editor actions")}},t._l(t.visibleEntries,(function(n){return e("ActionEntry",t._b({key:"text-action--".concat(n.key)},"ActionEntry",{actionEntry:n},!1))})),1)])}),[],!1,null,"59dd87ec",null).exports;var Ut=r(52029),zt=r(26937),Ht=r(59391),Wt=r(17712);function qt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Yt=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._authority=e,this.fetchInterval=300,this.retryTime=500,this.lock=!1,this.fetchRetryCounter=0}var e,n,r;return e=t,n=[{key:"connect",value:function(){this.initialLoadingFinished=!1,this.fetcher=setInterval(this._fetchSteps.bind(this),50),document.addEventListener("visibilitychange",this.visibilitychange.bind(this))}},{key:"_isPublic",value:function(){return!!this._authority.options.shareToken}},{key:"forceSave",value:function(){this._forcedSave=!0,this.fetchSteps()}},{key:"save",value:function(){this._manualSave=!0,this.fetchSteps()}},{key:"fetchSteps",value:function(){this._fetchSteps()}},{key:"_fetchSteps",value:function(){var t;!this.lock&&this.fetcher&&(this.lock=!0,(this._forcedSave||this._manualSave||!(0,d._1)(this._authority.state)&&this._authority._getVersion()!==this._authority.document.lastSavedVersion)&&(t=this._authority._getContent()),zt.Z.post((0,Wt.F)("session/sync",this._isPublic()),{documentId:this._authority.document.id,sessionId:this._authority.session.id,sessionToken:this._authority.session.token,version:this._authority._getVersion(),autosaveContent:t,force:!!this._forcedSave,manualSave:!!this._manualSave,token:this._authority.options.shareToken,filePath:this._authority.options.filePath}).then(this._handleResponse.bind(this),this._handleError.bind(this)),this._manualSave=!1,this._forcedSave=!1)}},{key:"_handleResponse",value:function(t){if(this.fetchRetryCounter=0,this._authority.document.lastSavedVersion<t.data.document.lastSavedVersion&&(Ut.k.debug("Saved document",{document:t.data.document}),this._authority.emit("save",{document:t.data.document,sessions:t.data.sessions})),this._authority.emit("change",{document:t.data.document,sessions:t.data.sessions}),this._authority.document=t.data.document,this._authority.sessions=t.data.sessions,0===t.data.steps.length){if(this.initialLoadingFinished||(this.initialLoadingFinished=!0),this._authority.checkIdle())return;return this.lock=!1,t.data.sessions.filter((function(t){return t.lastContact>Date.now()/1e3-9e4})).length<2?this.maximumRefetchTimer():this.increaseRefetchTimer(),this._authority.emit("stateChange",{dirty:!1}),void this._authority.emit("stateChange",{initialLoading:!0})}this._authority._receiveSteps(t.data),this.lock=!1,this._forcedSave=!1,this.initialLoadingFinished&&this.resetRefetchTimer()}},{key:"_handleError",value:function(t){this.lock=!1,t.response&&"ECONNABORTED"!==t.code?409===t.response.status&&t.response.data.document.currentVersion===this._authority.document.currentVersion?(Ut.k.error("Conflict during file save, please resolve"),this._authority.emit("error",{type:ee.SAVE_COLLISSION,data:{outsideChange:t.response.data.outsideChange}}),this.disconnect()):403===t.response.status||404===t.response.status?(this._authority.emit("error",{type:ee.SOURCE_NOT_FOUND,data:{}}),this.disconnect()):503===t.response.status?(this.increaseRefetchTimer(),this._authority.emit("error",{type:ee.CONNECTION_FAILED,data:{retry:!1}}),Ut.k.error("Failed to fetch steps due to unavailable service",{error:t})):(this.disconnect(),this._authority.emit("error",{type:ee.CONNECTION_FAILED,data:{retry:!1}}),Ut.k.error("Failed to fetch steps due to other reason",{error:t})):this.fetchRetryCounter++>=5?(Ut.k.error("[PollingBackend:fetchSteps] Network error when fetching steps, emitting CONNECTION_FAILED"),this._authority.emit("error",{type:ee.CONNECTION_FAILED,data:{retry:!1}})):Ut.k.error("[PollingBackend:fetchSteps] Network error when fetching steps, retry ".concat(this.fetchRetryCounter))}},{key:"sendSteps",value:function(t){var e=this;if(this._authority.emit("stateChange",{dirty:!0}),this.lock)setTimeout((function(){e._authority.sendSteps()}),100);else{this.lock=!0;var n="function"==typeof t?t():t,r=n.steps;zt.Z.post((0,Wt.F)("session/push",!!this._authority.options.shareToken),{documentId:this._authority.document.id,sessionId:this._authority.session.id,sessionToken:this._authority.session.token,steps:r.map((function(t){return t.toJSON?t.toJSON():t}))||[],version:n.version,token:this._authority.options.shareToken,filePath:this._authority.options.filePath}).then((function(t){e.carefulRetryReset(),e.lock=!1,e.fetchSteps()})).catch((function(t){var n=t.response,r=t.code;if(Ut.k.error("failed to apply steps due to collission, retrying"),e.lock=!1,n&&"ECONNABORTED"!==r){var o,i=n.status,a=n.data;403===i&&(a.document||Ut.k.error("failed to write to document - not allowed"),(null===(o=a.document)||void 0===o?void 0:o.currentVersion)===e._authority.document.currentVersion&&(e._authority.emit("error",{type:ee.PUSH_FAILURE,data:{}}),OC.Notification.showTemporary("Changes could not be sent yet"))),e.fetchSteps(),e.carefulRetry()}else e._authority.emit("error",{type:ee.CONNECTION_FAILED,data:{}})}))}}},{key:"disconnect",value:function(){clearInterval(this.fetcher),this.fetcher=0,document.removeEventListener("visibilitychange",this.visibilitychange.bind(this))}},{key:"resetRefetchTimer",value:function(){0!==this.fetcher&&(this.fetchInterval=300,clearInterval(this.fetcher),this.fetcher=setInterval(this._fetchSteps.bind(this),this.fetchInterval))}},{key:"increaseRefetchTimer",value:function(){0!==this.fetcher&&(this.fetchInterval=Math.min(2*this.fetchInterval,5e3),clearInterval(this.fetcher),this.fetcher=setInterval(this._fetchSteps.bind(this),this.fetchInterval))}},{key:"maximumRefetchTimer",value:function(){0!==this.fetcher&&(this.fetchInterval=5e3,clearInterval(this.fetcher),this.fetcher=setInterval(this._fetchSteps.bind(this),this.fetchInterval))}},{key:"visibilitychange",value:function(){0!==this.fetcher&&("hidden"===document.visibilityState?(this.fetchInterval=6e4,clearInterval(this.fetcher),this.fetcher=setInterval(this._fetchSteps.bind(this),this.fetchInterval)):this.resetRefetchTimer())}},{key:"carefulRetry",value:function(){var t=this.retryTime?Math.min(2*this.retryTime,1e4):500;t>5e3&&this.retryTime<5e3&&(OC.Notification.showTemporary("Changes could not be sent yet"),this._authority.emit("error",{type:ee.PUSH_FAILURE,data:{}})),this.retryTime=t}},{key:"carefulRetryReset",value:function(){this.retryTime=500}}],n&&qt(e.prototype,n),r&&qt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();const Vt=Yt;function Kt(t){return Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kt(t)}function Qt(){Qt=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof u?e:u,i=Object.create(o.prototype),a=new w(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return _()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),i}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var d={};function u(){}function A(){}function h(){}var p={};s(p,o,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(k([])));m&&m!==e&&n.call(m,o)&&(p=m);var g=h.prototype=u.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,a,s){var l=c(t[o],t,i);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==Kt(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){d.value=t,a(d)}),(function(t){return r("throw",t,a,s)}))}s(l.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(y,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:_}}function _(){return{value:void 0,done:!0}}return A.prototype=h,s(g,"constructor",h),s(h,"constructor",A),A.displayName=s(h,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===A||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,s(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},v(C.prototype),s(C.prototype,i,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(g),s(g,a,"Generator"),s(g,o,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=k,w.prototype={constructor:w,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function Jt(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function Xt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var te={shareToken:null,forceRecreate:!1,serialize:function(t){return t}},ee={SAVE_COLLISSION:0,PUSH_FAILURE:1,LOAD_ERROR:2,CONNECTION_FAILED:3,SOURCE_NOT_FOUND:4},ne=function(){function t(e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._bus=(0,Ht.Z)(),this.backend=new Vt(this),this.options=Object.assign({},te,e),this.document=null,this.session=null,this.sessions=[],this.steps=[],this.stepClientIDs=[],this.lastStepPush=Date.now(),this.lock=null,this}var e,n,r,o,i;return e=t,n=[{key:"open",value:(o=Qt().mark((function t(e){var n,r,o,i,a;return Qt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.fileId,r=e.filePath,o=e.initialSession,t.t0=o,t.t0){t.next=6;break}return t.next=5,this._openDocument({fileId:n,filePath:r});case 5:t.t0=t.sent;case 6:if(i=t.t0,this.document=i.document,this.document.readOnly=i.readOnly,this.session=i.session,this.lock=i.lock,this.emit("opened",{document:this.document,session:this.session}),t.t1=i.content,t.t1){t.next=17;break}return t.next=16,this._fetchDocument();case 16:t.t1=t.sent;case 17:a=t.t1,this.emit("loaded",{document:this.document,session:this.session,documentSource:""+a});case 19:case"end":return t.stop()}}),t,this)})),i=function(){var t=this,e=arguments;return new Promise((function(n,r){var i=o.apply(t,e);function a(t){Jt(i,n,r,a,s,"next",t)}function s(t){Jt(i,n,r,a,s,"throw",t)}a(void 0)}))},function(t){return i.apply(this,arguments)})},{key:"startSync",value:function(){this.backend.connect()}},{key:"_openDocument",value:function(t){var e=this,n=t.fileId,r=t.filePath;return zt.Z.put((0,Wt.F)("session/create",!!this.options.shareToken),{fileId:n,filePath:r,token:this.options.shareToken,guestName:this.options.guestName,forceRecreate:this.options.forceRecreate}).then((function(t){return t.data}),(function(t){throw t.response&&"ECONNABORTED"!==t.code?e.emit("error",{type:ee.LOAD_ERROR,data:t.response.status}):e.emit("error",{type:ee.CONNECTION_FAILED,data:{}}),t}))}},{key:"_fetchDocument",value:function(){return zt.Z.post((0,Wt.F)("session/fetch",!!this.options.shareToken),{documentId:this.document.id,sessionId:this.session.id,sessionToken:this.session.token,token:this.options.shareToken},{transformResponse:[function(t){return t}]}).then((function(t){return t.data}))}},{key:"updateSession",value:function(t){var e=this;if(this.isPublic())return zt.Z.post((0,Wt.F)("session",!!this.options.shareToken),{documentId:this.document.id,sessionId:this.session.id,sessionToken:this.session.token,token:this.options.shareToken,guestName:t}).then((function(t){var n=t.data;return e.session=n,n})).catch((function(t){return Ut.k.error("Failed to update the session",{error:t}),Promise.reject(t)}))}},{key:"sendSteps",value:function(t){var e=t||(0,d._1)(this.state);if(e)return this.backend.sendSteps(e)}},{key:"stepsSince",value:function(t){return{steps:this.steps.slice(t),clientIDs:this.stepClientIDs.slice(t)}}},{key:"_receiveSteps",value:function(t){for(var e=this,n=t.steps,r=t.document,o=[],i=function(t){var r=n[t].data;if(!Array.isArray(r))return Ut.k.error("Invalid step data, skipping step",{step:n[t]}),"continue";r.forEach((function(r){e.steps.push(r),o.push({step:r,clientID:n[t].sessionId})}))},a=0;a<n.length;a++)i(a);this.lastStepPush=Date.now(),this.emit("sync",{steps:o,document:r}),Ut.k.debug("receivedSteps",{newVersion:this._getVersion()})}},{key:"checkIdle",value:function(){(Date.now()-this.lastStepPush)/1e3/60>30&&(Ut.k.debug("[SyncService] Document is idle for ".concat(this.IDLE_TIMEOUT," minutes, suspending connection")),this.emit("idle"))}},{key:"_getVersion",value:function(){return this.state?(0,d.bo)(this.state):0}},{key:"_getDocument",value:function(){if(this.state)return this.state.doc}},{key:"_getContent",value:function(){return this.options.serialize(this._getDocument())}},{key:"save",value:function(){this.backend.save&&this.backend.save()}},{key:"forceSave",value:function(){this.backend.forceSave&&this.backend.forceSave()}},{key:"close",value:function(){var t=this,e=!1;return new Promise((function(n,r){t.on("save",(function(){t._close().then((function(){e=!0,n()})).catch((function(){return n()}))})),setTimeout((function(){e||t._close().then((function(){n()})).catch((function(){return n()}))}),2e3),t.save()}))}},{key:"_close",value:function(){return null===this.document||null===this.session?Promise.resolve():(this.backend.disconnect(),zt.Z.post((0,Wt.F)("session/close",!!this.options.shareToken),{documentId:this.document.id,sessionId:this.session.id,sessionToken:this.session.token,token:this.options.shareToken}))}},{key:"uploadAttachment",value:function(t){var e=new FormData;e.append("file",t);var n=(0,Wt.F)("attachment/upload")+"?documentId="+encodeURIComponent(this.document.id)+"&sessionId="+encodeURIComponent(this.session.id)+"&sessionToken="+encodeURIComponent(this.session.token)+"&shareToken="+encodeURIComponent(this.options.shareToken||"");return zt.Z.post(n,e,{headers:{"Content-Type":"multipart/form-data"}})}},{key:"insertAttachmentFile",value:function(t){var e={documentId:this.document.id,sessionId:this.session.id,sessionToken:this.session.token,filePath:t},n=(0,Wt.F)("attachment/filepath");return zt.Z.post(n,e)}},{key:"on",value:function(t,e){return this._bus.on(t,e),this}},{key:"off",value:function(t,e){return this._bus.off(t,e),this}},{key:"emit",value:function(t,e){this._bus.emit(t,e)}},{key:"isPublic",value:function(){return!!this.options.shareToken}}],n&&Xt(e.prototype,n),r&&Xt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();var re=r(79753),oe=r(57691),ie=r.n(oe);function ae(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function se(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ae(Object(n),!0).forEach((function(e){de(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function le(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ce(t,e){Ae(t,e),e.add(t)}function de(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ue(t,e,n){Ae(t,e),e.set(t,n)}function Ae(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function he(t,e,n){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return n}function pe(t,e){return function(t,e){if(e.get)return e.get.call(t);return e.value}(t,me(t,e,"get"))}function fe(t,e,n){return function(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}(t,me(t,e,"set"),n),n}function me(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}var ge=new WeakMap,ve=new WeakMap,Ce=new WeakMap,be=new WeakMap,ye=new WeakMap,xe=new WeakSet,we=new WeakSet,ke=new WeakSet,_e=new WeakSet,je=new WeakSet,Pe=new WeakSet,Ee=new WeakSet,Me=function(){function t(e){var n=e.session,r=e.user,o=e.shareToken,i=e.currentDirectory,a=e.fileId;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),ce(this,Ee),ce(this,Pe),ce(this,je),ce(this,_e),ce(this,ke),ce(this,we),ce(this,xe),ue(this,ge,{writable:!0,value:void 0}),ue(this,ve,{writable:!0,value:void 0}),ue(this,Ce,{writable:!0,value:void 0}),ue(this,be,{writable:!0,value:void 0}),ue(this,ye,{writable:!0,value:void 0}),de(this,"ATTACHMENT_TYPE_IMAGE","image"),de(this,"ATTACHMENT_TYPE_MEDIA","media"),fe(this,ge,n),fe(this,ve,r),fe(this,Ce,o),fe(this,be,i),a||(a=null==n?void 0:n.documentId),fe(this,ye,".attachments.".concat(a))}var e,n,r;return e=t,n=[{key:"resolve",value:function(t){var e;if(pe(this,ge)&&t.startsWith("text://")){var n=Ne(t,"imageFileName");return[{type:this.ATTACHMENT_TYPE_IMAGE,url:he(this,xe,Se).call(this,n)}]}if(pe(this,ge)&&t.startsWith(".attachments.".concat(null===(e=pe(this,ge))||void 0===e?void 0:e.documentId,"/"))){var r,o=decodeURIComponent(t.replace(".attachments.".concat(null===(r=pe(this,ge))||void 0===r?void 0:r.documentId,"/"),"").split("?")[0]);return[{type:this.ATTACHMENT_TYPE_IMAGE,url:he(this,xe,Se).call(this,o)},{type:this.ATTACHMENT_TYPE_MEDIA,url:he(this,we,Be).call(this,o),name:o}]}if(function(t){return t.startsWith("http://")||t.startsWith("https://")||t.startsWith("data:")||t.match(/^(\/index.php)?\/core\/preview/)||t.match(/^(\/index.php)?\/apps\/files_sharing\/publicpreview\//)}(t))return[{type:this.ATTACHMENT_TYPE_IMAGE,url:t}];if(function(t){return"true"===Ne(t,"hasPreview")}(t))return[{type:this.ATTACHMENT_TYPE_IMAGE,url:he(this,_e,Ie).call(this,t)}];if(t.match(/^\.attachments\.\d+\//)){var i=he(this,Pe,Te).call(this,t).replace(/\.attachments\.\d+\//,"");return[{type:this.ATTACHMENT_TYPE_IMAGE,url:he(this,je,De).call(this,t)},{type:this.ATTACHMENT_TYPE_IMAGE,url:he(this,xe,Se).call(this,i)},{type:this.ATTACHMENT_TYPE_MEDIA,url:he(this,we,Be).call(this,i),name:i}]}return[{type:this.ATTACHMENT_TYPE_IMAGE,url:he(this,je,De).call(this,t)}]}},{key:"getMediaMetadataUrl",value:function(t){return pe(this,ve)||!pe(this,Ce)?(0,re.generateUrl)("/apps/text/mediaMetadata?documentId={documentId}&sessionId={sessionId}&sessionToken={sessionToken}&mediaFileName={mediaFileName}",se(se({},he(this,ke,Oe).call(this)),{},{mediaFileName:t})):(0,re.generateUrl)("/apps/text/mediaMetadata?documentId={documentId}&sessionId={sessionId}&sessionToken={sessionToken}&mediaFileName={mediaFileName}&shareToken={shareToken}",se(se({},he(this,ke,Oe).call(this)),{},{mediaFileName:t,shareToken:pe(this,Ce)}))}}],n&&le(e.prototype,n),r&&le(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Se(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return pe(this,ge)?pe(this,ve)||!pe(this,Ce)?(0,re.generateUrl)("/apps/text/image?documentId={documentId}&sessionId={sessionId}&sessionToken={sessionToken}&imageFileName={imageFileName}&preferRawImage={preferRawImage}",se(se({},he(this,ke,Oe).call(this)),{},{imageFileName:t,preferRawImage:e?1:0})):(0,re.generateUrl)("/apps/text/image?documentId={documentId}&sessionId={sessionId}&sessionToken={sessionToken}&imageFileName={imageFileName}&shareToken={shareToken}&preferRawImage={preferRawImage}",se(se({},he(this,ke,Oe).call(this)),{},{imageFileName:t,shareToken:pe(this,Ce),preferRawImage:e?1:0})):he(this,je,De).call(this,"".concat(pe(this,ye),"/").concat(t))}function Be(t){return pe(this,ve)||!pe(this,Ce)?(0,re.generateUrl)("/apps/text/mediaPreview?documentId={documentId}&sessionId={sessionId}&sessionToken={sessionToken}&mediaFileName={mediaFileName}",se(se({},he(this,ke,Oe).call(this)),{},{mediaFileName:t})):(0,re.generateUrl)("/apps/text/mediaPreview?documentId={documentId}&sessionId={sessionId}&sessionToken={sessionToken}&mediaFileName={mediaFileName}&shareToken={shareToken}",se(se({},he(this,ke,Oe).call(this)),{},{mediaFileName:t,shareToken:pe(this,Ce)}))}function Oe(){return pe(this,ge)?{documentId:pe(this,ge).documentId,sessionId:pe(this,ge).id,sessionToken:pe(this,ge).token}:{}}function Ie(t){var e=Ne(t,"fileId"),n=he(this,Ee,Le).call(this,t),r="file=".concat(encodeURIComponent(n))+"&x=1024&y=1024&a=true";return pe(this,ve)&&e?(0,re.generateUrl)("/core/preview?fileId=".concat(e,"&").concat(r)):pe(this,ve)?(0,re.generateUrl)("/core/preview.png?".concat(r)):pe(this,Ce)?(0,re.generateUrl)("/apps/files_sharing/publicpreview/".concat(pe(this,Ce),"?").concat(r)):(Ut.k.error("No way to authenticate image retrival - need to be logged in or provide a token"),t)}function De(t){if(pe(this,ve)){var e=pe(this,ve).uid,n=encodeURI(he(this,Ee,Le).call(this,t));return(0,re.generateRemoteUrl)("dav/files/".concat(e).concat(n))}var r=he(this,Ee,Le).call(this,t).split("/"),o=r.pop(),i=r.join("/");return(0,re.generateUrl)("/s/{token}/download?path={dirname}&files={basename}",{token:pe(this,Ce),basename:o,dirname:i})}function Te(t){return t.startsWith("text://")?[pe(this,ye),Ne(t,"imageFileName")].join("/"):decodeURI(t.split("?")[0])}function Le(t){var e=[pe(this,be),he(this,Pe,Te).call(this,t)].join("/");return ie()(e)}function Ne(t,e){var n=t.split("?")[1];if(void 0!==n){var r=n.split(/[&#]/);if(void 0!==r)for(var o=0;o<r.length;o++){var i=r[o].split("=");if(decodeURIComponent(i[0])===e)return decodeURIComponent(i[1])}}}var Re={py:"python",gyp:"python",wsgi:"python",htm:"html",xhtml:"html",erl:"erlang",jsp:"java",pl:"perl",rss:"xml",atom:"xml",xsl:"xml",plist:"xml",rb:"ruby",builder:"ruby",gemspec:"ruby",podspec:"ruby",thor:"ruby",diff:"patch",hs:"haskell",icl:"haskell",php3:"php",php4:"php",php5:"php",php6:"php",sh:"bash",zsh:"bash",st:"smalltalk",as:"actionscript",apacheconf:"apache",osacript:"applescript",b:"brainfuck",bf:"brainfuck",clj:"clojure","cmake.in":"cmake",coffee:"coffeescript",cson:"coffescript",iced:"coffescript",c:"cpp",h:"cpp","c++":"cpp","h++":"cpp",hh:"cpp",jinja:"django",bat:"dos",cmd:"dos",fs:"fsharp",hbs:"handlebars","html.hbs":"handlebars","html.handlebars":"handlebars",sublime_metrics:"json",sublime_session:"json","sublime-keymap":"json","sublime-mousemap":"json","sublime-project":"json","sublime-settings":"json","sublime-workspace":"json",js:"javascript",mk:"makefile",mak:"makefile",md:"markdown",mkdown:"markdown",mkd:"markdown",nginxconf:"nginx",m:"objectivec",mm:"objectivec",ml:"ocaml",rs:"rust",sci:"scilab",txt:"plaintext",vb:"vbnet",vbs:"vbscript"};var Ze=r(52722),Ge=r(62797),$e=r(2376);function Fe(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ue(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ue(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ue(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ze(t){var e=t.types,n=t.node;return Array.isArray(e)&&e.includes(n.type)||n.type===e}var He=mt.hj.create({name:"trailingNode",addOptions:function(){return{node:"paragraph",notAfter:["paragraph"]}},addProseMirrorPlugins:function(){var t=this,e=new $e.H$(this.name),n=Object.entries(this.editor.schema.nodes).map((function(t){return Fe(t,2)[1]})).filter((function(e){return t.options.notAfter.includes(e.name)}));return[new $e.Sy({key:e,appendTransaction:function(n,r,o){var i=o.doc,a=o.tr,s=o.schema,l=e.getState(o),c=i.content.size,d=s.nodes[t.options.node];if(l)return a.insert(c,d.create())},state:{init:function(t,e){return!ze({node:e.tr.doc.lastChild,types:n})},apply:function(t,e){return t.docChanged?!ze({node:t.doc.lastChild,types:n}):e}}})]}});const We=He;var qe=r(9944);const Ye={name:"EmojiList",props:{items:{type:Array,required:!0},command:{type:Function,required:!0}},data:function(){return{selectedIndex:0}},computed:{hasResults:function(){return this.items.length>0},itemHeight:function(){return this.$el.scrollHeight/this.items.length},itemInsideScrollView:function(){return this.selectedIndex*this.itemHeight>=this.$el.scrollTop&&(this.selectedIndex+1)*this.itemHeight<=this.$el.scrollTop+this.$el.clientHeight}},watch:{items:function(){this.selectedIndex=0,this.$el.scrollTop=0}},methods:{t:qe.translate,onKeyDown:function(t){var e=t.event;return!(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)&&("ArrowUp"===e.key?(this.selectedIndex=(this.selectedIndex+this.items.length-1)%this.items.length,this.itemInsideScrollView||(this.$el.scrollTop=this.selectedIndex*this.itemHeight),!0):"ArrowDown"===e.key?(this.selectedIndex=(this.selectedIndex+1)%this.items.length,this.itemInsideScrollView||(this.$el.scrollTop=(this.selectedIndex+1)*this.itemHeight-this.$el.clientHeight),!0):("Enter"===e.key||"Tab"===e.key)&&(this.selectItem(this.selectedIndex),!0))},selectItem:function(t){var e=this.items[t];e&&(this.command(e),(0,m.Ry)(e))}}};var Ve=r(85885),Ke={};Ke.styleTagTransform=W(),Ke.setAttributes=F(),Ke.insert=G().bind(null,"head"),Ke.domAPI=R(),Ke.insertStyleElement=z();L()(Ve.Z,Ke);Ve.Z&&Ve.Z.locals&&Ve.Z.locals;const Qe={name:"EmojiListWrapper",components:{EmojiList:(0,X.Z)(Ye,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"emoji-list"},[t.hasResults?t._l(t.items,(function(n,r){return e("div",{key:r,staticClass:"emoji-list__item",class:{"is-selected":r===t.selectedIndex},on:{click:function(e){return t.selectItem(r)}}},[e("span",{staticClass:"emoji-list__item__emoji"},[t._v("\n\t\t\t\t"+t._s(n.native)+"\n\t\t\t")]),t._v("\n\t\t\t:"+t._s(n.short_name)+"\n\t\t")])})):e("div",{staticClass:"emoji-list__item is-empty"},[t._v("\n\t\t"+t._s(t.t("text","No emoji found"))+"\n\t")])],2)}),[],!1,null,"7a04fd10",null).exports},props:{items:{type:Array,required:!0},command:{type:Function,required:!0}},methods:{onKeyDown:function(t){var e,n=t.event;return null===(e=this.$refs.emojiList)||void 0===e?void 0:e.onKeyDown({event:n})}}};const Je=(0,X.Z)(Qe,(function(){var t=this;return(0,t._self._c)("EmojiList",{ref:"emojiList",attrs:{items:t.items,command:t.command}})}),[],!1,null,null,null).exports;var Xe=r(30865),tn=r(79007),en=r(17209),nn=r(79307),rn=r(89044),on=r(70650),an=r(7049);const sn={name:"TableView",components:{NcActionButton:m.Js,NcActions:m.O3,NodeViewWrapper:an.T5,NodeViewContent:an.ms,TableSettings:f._2,Delete:f.HG},props:{editor:{type:Object,required:!0},deleteNode:{type:Function,required:!0}},computed:{t:function(){return window.t}}};var ln=r(84339),cn={};cn.styleTagTransform=W(),cn.setAttributes=F(),cn.insert=G().bind(null,"head"),cn.domAPI=R(),cn.insertStyleElement=z();L()(ln.Z,cn);ln.Z&&ln.Z.locals&&ln.Z.locals;const dn=(0,X.Z)(sn,(function(){var t=this,e=t._self._c;return e("NodeViewWrapper",{staticClass:"table-wrapper",attrs:{"data-text-el":"table-view"}},[t.editor.isEditable?e("NcActions",{staticClass:"table-settings",attrs:{"force-menu":"","data-text-table-actions":"settings"},scopedSlots:t._u([{key:"icon",fn:function(){return[e("TableSettings")]},proxy:!0}],null,!1,1699550424)},[t._v(" "),e("NcActionButton",{attrs:{"data-text-table-action":"delete","close-after-click":""},on:{click:t.deleteNode},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Delete")]},proxy:!0}],null,!1,3429380666)},[t._v("\n\t\t\t"+t._s(t.t("text","Delete this table"))+"\n\t\t")])],1):t._e(),t._v(" "),e("NodeViewContent",{staticClass:"content",attrs:{as:"table"}}),t._v(" "),e("div",{staticClass:"clearfix"})],1)}),[],!1,null,"731856ac",null).exports;const un={name:"TableCellView",components:{NcActionButton:m.Js,NcActions:m.O3,NodeViewWrapper:an.T5,NodeViewContent:an.ms,TableAddRowBefore:f.pn,TableAddRowAfter:f.F5,Delete:f.HG},props:{editor:{type:Object,required:!0},getPos:{type:Function,required:!0}},computed:{t:function(){return window.t}},methods:{deleteRow:function(){this.editor.chain().focus().setTextSelection(this.getPos()).deleteRow().run()},addRowBefore:function(){this.editor.chain().focus().setTextSelection(this.getPos()).addRowBefore().run()},addRowAfter:function(){this.editor.chain().focus().setTextSelection(this.getPos()).addRowAfter().run()}}};var An=r(92199),hn={};hn.styleTagTransform=W(),hn.setAttributes=F(),hn.insert=G().bind(null,"head"),hn.domAPI=R(),hn.insertStyleElement=z();L()(An.Z,hn);An.Z&&An.Z.locals&&An.Z.locals;const pn=(0,X.Z)(un,(function(){var t=this,e=t._self._c;return e("NodeViewWrapper",{attrs:{"data-text-el":"table-cell",as:"td"}},[e("div",{staticClass:"container"},[e("NodeViewContent",{staticClass:"content"}),t._v(" "),t.editor.isEditable?e("NcActions",{attrs:{"data-text-table-actions":"row"}},[e("NcActionButton",{attrs:{"data-text-table-action":"add-row-before","close-after-click":""},on:{click:t.addRowBefore},scopedSlots:t._u([{key:"icon",fn:function(){return[e("TableAddRowBefore")]},proxy:!0}],null,!1,1805502767)},[t._v("\n\t\t\t\t"+t._s(t.t("text","Add row before"))+"\n\t\t\t")]),t._v(" "),e("NcActionButton",{attrs:{"data-text-table-action":"add-row-after","close-after-click":""},on:{click:t.addRowAfter},scopedSlots:t._u([{key:"icon",fn:function(){return[e("TableAddRowAfter")]},proxy:!0}],null,!1,3179199218)},[t._v("\n\t\t\t\t"+t._s(t.t("text","Add row after"))+"\n\t\t\t")]),t._v(" "),e("NcActionButton",{attrs:{"data-text-table-action":"remove-row","close-after-click":""},on:{click:t.deleteRow},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Delete")]},proxy:!0}],null,!1,3429380666)},[t._v("\n\t\t\t\t"+t._s(t.t("text","Delete this row"))+"\n\t\t\t")])],1):t._e()],1)])}),[],!1,null,"75e621dc",null).exports;const fn={name:"TableHeaderView",components:{NcActionButton:m.Js,NcActions:m.O3,NodeViewWrapper:an.T5,NodeViewContent:an.ms,Delete:f.HG,TableAddColumnBefore:f.IY,TableAddColumnAfter:f.Ah},props:{editor:{type:Object,required:!0},getPos:{type:Function,required:!0}},computed:{t:function(){return window.t}},methods:{deleteColumn:function(){this.editor.chain().focus().setTextSelection(this.getPos()).deleteColumn().run()},addColumnBefore:function(){this.editor.chain().focus().setTextSelection(this.getPos()).addColumnBefore().run()},addColumnAfter:function(){this.editor.chain().focus().setTextSelection(this.getPos()).addColumnAfter().run()}}};var mn=r(59964),gn={};gn.styleTagTransform=W(),gn.setAttributes=F(),gn.insert=G().bind(null,"head"),gn.domAPI=R(),gn.insertStyleElement=z();L()(mn.Z,gn);mn.Z&&mn.Z.locals&&mn.Z.locals;const vn=(0,X.Z)(fn,(function(){var t=this,e=t._self._c;return e("NodeViewWrapper",{attrs:{"data-text-el":"table-header",as:"th"}},[e("div",[e("NodeViewContent",{staticClass:"content"}),t._v(" "),t.editor.isEditable?e("NcActions",{attrs:{"data-text-table-actions":"header"}},[e("NcActionButton",{attrs:{"data-text-table-action":"add-column-before","close-after-click":""},on:{click:t.addColumnBefore},scopedSlots:t._u([{key:"icon",fn:function(){return[e("TableAddColumnBefore")]},proxy:!0}],null,!1,3782681875)},[t._v("\n\t\t\t\t"+t._s(t.t("text","Add column before"))+"\n\t\t\t")]),t._v(" "),e("NcActionButton",{attrs:{"data-text-table-action":"add-column-after","close-after-click":""},on:{click:t.addColumnAfter},scopedSlots:t._u([{key:"icon",fn:function(){return[e("TableAddColumnAfter")]},proxy:!0}],null,!1,1608287598)},[t._v("\n\t\t\t\t"+t._s(t.t("text","Add column after"))+"\n\t\t\t")]),t._v(" "),e("NcActionButton",{attrs:{"data-text-table-action":"remove-column","close-after-click":""},on:{click:t.deleteColumn},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Delete")]},proxy:!0}],null,!1,3429380666)},[t._v("\n\t\t\t\t"+t._s(t.t("text","Delete this column"))+"\n\t\t\t")])],1):t._e()],1)])}),[],!1,null,"779edfde",null).exports;function Cn(t,e){return t.extend({addNodeView:function(){return(0,an.uf)(e)}})}const bn=Xe.Z.extend({addNodeView:function(){return(0,an.uf)(dn)},addExtensions:function(){return[tn.Z,Cn(en.Z,pn),Cn(nn.Z,vn),rn.Z,on.Z]}});var yn=r(13861);const xn={name:"AutoCompleteResult",props:{label:{type:String,required:!0},subline:{type:String,default:null},id:{type:String,default:null},icon:{type:String,required:!0},source:{type:String,required:!0},status:{type:[Object,Array],default:function(){return{}}}},computed:{avatarUrl:function(){return this.id&&"users"===this.source?this.getAvatarUrl(this.id,44):null},haveStatus:function(){var t,e;return(null===(t=this.status)||void 0===t?void 0:t.icon)||(null===(e=this.status)||void 0===e?void 0:e.status)}},methods:{getAvatarUrl:function(t,e){return(0,re.generateUrl)("/avatar/{user}/{size}",{user:t,size:e})}}};var wn=r(90),kn={};kn.styleTagTransform=W(),kn.setAttributes=F(),kn.insert=G().bind(null,"head"),kn.domAPI=R(),kn.insertStyleElement=z();L()(wn.Z,kn);wn.Z&&wn.Z.locals&&wn.Z.locals;const _n={components:{AutoCompleteResult:(0,X.Z)(xn,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"autocomplete-result"},[e("div",{staticClass:"autocomplete-result__icon",class:[t.icon,"autocomplete-result__icon--".concat(t.avatarUrl?"with-avatar":"")],style:t.avatarUrl?{backgroundImage:"url(".concat(t.avatarUrl,")")}:null},[t.haveStatus?e("div",{staticClass:"autocomplete-result__status",class:["autocomplete-result__status--".concat(t.status&&t.status.icon?"icon":t.status.status)]},[t._v("\n\t\t\t"+t._s(t.status&&t.status.icon||"")+"\n\t\t")]):t._e()]),t._v(" "),e("span",{staticClass:"autocomplete-result__content"},[e("span",{staticClass:"autocomplete-result__title"},[t._v("\n\t\t\t"+t._s(t.label)+"\n\t\t")]),t._v(" "),t.subline?e("span",{staticClass:"autocomplete-result__subline"},[t._v("\n\t\t\t"+t._s(t.subline)+"\n\t\t")]):t._e()])])}),[],!1,null,"0f63f2d0",null).exports},props:{items:{type:Array,required:!0},command:{type:Function,required:!0}},data:function(){return{selectedIndex:0}},watch:{items:function(){this.selectedIndex=0}},methods:{t:qe.translate,onKeyDown:function(t){var e=t.event;return!(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)&&("ArrowUp"===e.key?(this.upHandler(),!0):"ArrowDown"===e.key?(this.downHandler(),!0):("Enter"===e.key||"Tab"===e.key)&&(this.enterHandler(),!0))},upHandler:function(){this.selectedIndex=(this.selectedIndex+this.items.length-1)%this.items.length},downHandler:function(){this.selectedIndex=(this.selectedIndex+1)%this.items.length},enterHandler:function(){this.selectItem(this.selectedIndex)},selectItem:function(t){var e=this.items[t];e&&this.command(e)}}};var jn=r(92192),Pn={};Pn.styleTagTransform=W(),Pn.setAttributes=F(),Pn.insert=G().bind(null,"head"),Pn.domAPI=R(),Pn.insertStyleElement=z();L()(jn.Z,Pn);jn.Z&&jn.Z.locals&&jn.Z.locals;const En=(0,X.Z)(_n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"items"},[t.items.length?t._l(t.items,(function(n,r){var o=n.id,i=n.label;return e("div",{key:r,class:r===t.selectedIndex?"highlight":null},[e("AutoCompleteResult",{class:o===t.selectedIndex?"highlight":null,attrs:{id:o,label:i,icon:"icon-user",source:"users"},nativeOn:{mouseover:function(e){t.selectedIndex=r},click:function(e){return t.selectItem(r)}}})],1)})):e("div",{staticClass:"item-empty"},[t._v("\n\t\t"+t._s(t.t("text","No user found"))+"\n\t")])],2)}),[],!1,null,null,null).exports;function Mn(t){return Mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mn(t)}function Sn(){Sn=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof u?e:u,i=Object.create(o.prototype),a=new w(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return _()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),i}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var d={};function u(){}function A(){}function h(){}var p={};s(p,o,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(k([])));m&&m!==e&&n.call(m,o)&&(p=m);var g=h.prototype=u.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,a,s){var l=c(t[o],t,i);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==Mn(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){d.value=t,a(d)}),(function(t){return r("throw",t,a,s)}))}s(l.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(y,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:_}}function _(){return{value:void 0,done:!0}}return A.prototype=h,s(g,"constructor",h),s(h,"constructor",A),A.displayName=s(h,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===A||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,s(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},v(C.prototype),s(C.prototype,i,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(g),s(g,a,"Generator"),s(g,o,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=k,w.prototype={constructor:w,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function Bn(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}var On=(0,re.generateUrl)("apps/text/api/v1/users");const In=function(t){var e,n,r=t.session;return{items:(e=Sn().mark((function t(e){var n,o,i,a,s;return Sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.query,o={documentId:r.documentId,sessionId:r.id,sessionToken:r.token,filter:n},t.next=4,zt.Z.post(On,o);case 4:return i=t.sent,a=JSON.parse(JSON.stringify(i.data)),s=[],Object.keys(a).map((function(t){return s.push({id:t,label:a[t]})})),t.abrupt("return",s);case 9:case"end":return t.stop()}}),t)})),n=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(t){Bn(i,r,o,a,s,"next",t)}function s(t){Bn(i,r,o,a,s,"throw",t)}a(void 0)}))},function(t){return n.apply(this,arguments)}),command:function(t){var e,n,o=t.editor,i=t.range,a=t.props;!function(t){var e=t.session,n=t.props;zt.Z.put((0,re.generateUrl)("apps/text/session/mention"),{documentId:e.documentId,sessionId:e.id,sessionToken:e.token,mention:n.id})}({session:r,props:a});var s=o.view.state.selection.$to.nodeAfter;(null==s||null===(e=s.text)||void 0===e?void 0:e.startsWith(" "))&&(i.to+=1),o.chain().focus().insertContentAt(i,[{type:"mention",attrs:a},{type:"text",text:" "}]).run(),null===(n=window.getSelection())||void 0===n||n.collapseToEnd()},render:function(){var t,e;return{onStart:function(n){t=new an.aA(En,{parent:undefined,propsData:n}),n.clientRect&&(e=(0,yn.ZP)("body",{getReferenceClientRect:n.clientRect,appendTo:function(){return document.body},content:t.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start"}))},onUpdate:function(n){t.updateProps(n),n.clientRect&&e&&e[0].setProps({getReferenceClientRect:n.clientRect})},onKeyDown:function(n){var r;if(e)return"Escape"===n.event.key?(e[0].hide(),!0):null===(r=t.ref)||void 0===r?void 0:r.onKeyDown(n)},onExit:function(){e&&(e[0].destroy(),t.destroy())}}}}};r(36522);var Dn=r(96470),Tn=r(9137);function Ln(t){return Ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ln(t)}function Nn(t){return function(t){if(Array.isArray(t))return Rn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Rn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rn(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Zn(){Zn=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof u?e:u,i=Object.create(o.prototype),a=new w(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return _()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),i}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var d={};function u(){}function A(){}function h(){}var p={};s(p,o,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(k([])));m&&m!==e&&n.call(m,o)&&(p=m);var g=h.prototype=u.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,a,s){var l=c(t[o],t,i);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==Ln(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){d.value=t,a(d)}),(function(t){return r("throw",t,a,s)}))}s(l.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(y,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:_}}function _(){return{value:void 0,done:!0}}return A.prototype=h,s(g,"constructor",h),s(h,"constructor",A),A.displayName=s(h,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===A||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,s(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},v(C.prototype),s(C.prototype,i,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(g),s(g,a,"Generator"),s(g,o,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=k,w.prototype={constructor:w,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function Gn(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}var $n=function(){var t,e=(t=Zn().mark((function t(e){var n,o;return Zn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=(0,Dn.listLanguages)(),Ut.k.debug("Supported languages",{list:n}),(0,Dn.listLanguages)().includes(e)){t.next=13;break}return t.prev=3,t.next=6,r(23506)("./"+e);case 6:o=t.sent,(0,Dn.registerLanguage)(e,o.default),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),Ut.k.debug("No matching highlighing found",{error:t.t0});case 13:case"end":return t.stop()}}),t,null,[[3,10]])})),function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Gn(i,r,o,a,s,"next",t)}function s(t){Gn(i,r,o,a,s,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}(),Fn=function(t){var e=t.content,n=t.onCreate,r=t.onUpdate,o=t.extensions,i=t.enableRichEditing,a=t.session,s=t.relativePath,l=[];return l=i?[Tn.UG,Tn.Ho.configure({relativePath:s,extensions:[bn,Tn.pf.configure({HTMLAttributes:{class:"mention"},suggestion:In({session:a})})]}),Tn.dy.configure({suggestion:{items:function(t){var e=t.query;return(0,m.Kn)(e)},render:function(){var t,e;return{onStart:function(n){t=new an.aA(Je,{parent:undefined,propsData:n}),e=(0,yn.ZP)("body",{getReferenceClientRect:n.clientRect,appendTo:function(){return document.body},content:t.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start"})},onUpdate:function(n){t.updateProps(n),e[0].setProps({getReferenceClientRect:n.clientRect})},onKeyDown:function(n){var r;return"Escape"===n.event.key?(t.destroy(),e[0].destroy(),!0):null===(r=t.ref)||void 0===r?void 0:r.onKeyDown(n)},onExit:function(){e[0].destroy(),t.destroy()}}}}}),Ge.Z.configure({emptyNodeClass:"is-empty",placeholder:(0,qe.translate)("text","Add notes, lists or links …"),showOnlyWhenEditable:!0}),We]:[Tn.f3],o=o||[],new mt.ML({content:e+"<p/>",onCreate:n,onUpdate:r,editorProps:{scrollMargin:50,scrollThreshold:50},extensions:[Ze.Z].concat(Nn(l)).concat(o)})},Un=function(t){this.message=t};var zn=r(73073),Hn=r(53322),Wn=r(66661),qn=r.n(Wn);const Yn={name:"DocumentStatus",components:{Lock:r(65012).Z},props:{idle:{type:Boolean,require:!0},lock:{type:Object,default:null},syncError:{type:Object,default:null},hasConnectionIssue:{type:Boolean,require:!0}},data:function(){return{IDLE_TIMEOUT:30}},computed:{hasSyncCollission:function(){return this.syncError&&this.syncError.type===ee.SAVE_COLLISSION}},methods:{reconnect:function(){this.$emit("reconnect")}}};var Vn=r(24198),Kn={};Kn.styleTagTransform=W(),Kn.setAttributes=F(),Kn.insert=G().bind(null,"head"),Kn.domAPI=R(),Kn.insertStyleElement=z();L()(Vn.Z,Kn);Vn.Z&&Vn.Z.locals&&Vn.Z.locals;const Qn=(0,X.Z)(Yn,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"document-status"},[t.idle?e("p",{staticClass:"msg"},[t._v("\n\t\t"+t._s(t.t("text","Document idle for {timeout} minutes, click to continue editing",{timeout:t.IDLE_TIMEOUT}))+" "),e("a",{staticClass:"button primary",on:{click:t.reconnect}},[t._v(t._s(t.t("text","Reconnect")))])]):t.hasSyncCollission?e("p",{staticClass:"msg icon-error"},[t._v("\n\t\t"+t._s(t.t("text","The document has been changed outside of the editor. The changes cannot be applied."))+"\n\t")]):t.hasConnectionIssue?e("p",{staticClass:"msg"},[t._v("\n\t\t"+t._s(t.t("text","File could not be loaded. Please check your internet connection."))+" "),e("a",{staticClass:"button primary",on:{click:t.reconnect}},[t._v(t._s(t.t("text","Reconnect")))])]):t._e(),t._v(" "),t.lock?e("p",{staticClass:"msg msg-locked"},[e("Lock"),t._v(" "+t._s(t.t("text","This file is opened read-only as it is currently locked by {user}.",{user:t.lock.displayName}))+"\n\t")],1):t._e()])}),[],!1,null,"a9040100",null).exports;var Jn=function(){return document.documentElement.clientWidth<768};const Xn={data:function(){return{isMobile:Jn()}},beforeMount:function(){var t=this;this.$onResize=v()((function(){t.isMobile=Jn()}),100),window.addEventListener("resize",this.$onResize)},beforeDestroy:function(){window.removeEventListener("resize",this.$onResize)}};var tr=r(62610);const er={name:"HelpModal",components:{NcModal:m.Jc},directives:{Tooltip:m.u},mixins:[Xn],data:function(){return{formatted:{bold:!0,italic:!0,strikethrough:!0,heading1:!0,heading6:!0,unorderdList:!0,orderedList:!0,checkList:!0,blockQuote:!0,codeBlock:!0}}},computed:{isFormatted:function(){var t=this;return function(e){return t.formatted[e]}}},methods:{toggleFormatted:function(t){this.formatted[t]=!this.formatted[t]}}},nr=er;var rr=r(8977),or={};or.styleTagTransform=W(),or.setAttributes=F(),or.insert=G().bind(null,"head"),or.domAPI=R(),or.insertStyleElement=z();L()(rr.Z,or);rr.Z&&rr.Z.locals&&rr.Z.locals;const ir=(0,X.Z)(nr,(function(){var t=this,e=t._self._c;return e("NcModal",{attrs:{size:"normal","data-text-el":"formatting-help",title:t.t("text","Formatting help")},on:{close:function(e){return t.$emit("close")}}},[e("h2",[t._v(t._s(t.t("text","Formatting help")))]),t._v(" "),e("p",[t._v(t._s(t.t("text","Speed up your writing with simple shortcuts.")))]),t._v(" "),t.isMobile?e("p",[t._v("\n\t\t"+t._s(t.t("text","Just type the Markdown syntax from below."))+"\n\t")]):e("p",[t._v("\n\t\t"+t._s(t.t("text","Just type the Markdown syntax or use keyboard shortcuts from below."))+"\n\t")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v(t._s(t.t("text","Style")))]),t._v(" "),e("th",[t._v(t._s(t.t("text","Syntax")))]),t._v(" "),t.isMobile?t._e():e("th",[t._v("\n\t\t\t\t\t"+t._s(t.t("text","Keyboard shortcuts"))+"\n\t\t\t\t")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v(t._s(t.t("text","Bold")))]),t._v(" "),e("td",[e("code",[t._v("**"+t._s(t.t("text","Bold text"))+"**")])]),t._v(" "),t.isMobile?t._e():e("td",[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v("B")])])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Italic")))]),t._v(" "),e("td",[e("code",[t._v("*"+t._s(t.t("text","Italicized text"))+"*")])]),t._v(" "),t.isMobile?t._e():e("td",[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v("I")])])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Strikethrough")))]),t._v(" "),e("td",[e("code",[t._v("~~"+t._s(t.t("text","Mistaken text"))+"~~")])]),t._v(" "),t.isMobile?t._e():e("td",[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v(t._s(t.t("text","Shift")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v("X")])])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Underline")))]),t._v(" "),e("td",[e("code",[t._v("__"+t._s(t.t("text","Underlined text"))+"__")])]),t._v(" "),t.isMobile?t._e():e("td",[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v("U")])])]),t._v(" "),e("tr",[e("td",{staticClass:"ellipsis_top"},[t._v("\n\t\t\t\t\t"+t._s(t.t("text","Heading 1"))+"\n\t\t\t\t")]),t._v(" "),e("td",{staticClass:"ellipsis_top"},[e("code",[t._v("# "+t._s(t.t("text","Heading level 1")))])]),t._v(" "),t.isMobile?t._e():e("td",{staticClass:"ellipsis_top"},[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v(t._s(t.t("text","Shift")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v("1")])])]),t._v(" "),e("tr",[e("td",{staticClass:"noborder ellipsis"},[t._v("\n\t\t\t\t\t…\n\t\t\t\t")]),t._v(" "),e("td",{staticClass:"noborder ellipsis"},[t._v("\n\t\t\t\t\t…\n\t\t\t\t")]),t._v(" "),t.isMobile?t._e():e("td",{staticClass:"ellipsis noborder"},[t._v("\n\t\t\t\t\t…\n\t\t\t\t")])]),t._v(" "),e("tr",[e("td",{staticClass:"noborder ellipsis_bottom"},[t._v("\n\t\t\t\t\t"+t._s(t.t("text","Heading 6"))+"\n\t\t\t\t")]),t._v(" "),e("td",{staticClass:"noborder ellipsis_bottom"},[e("code",[t._v("###### "+t._s(t.t("text","Heading level 6")))])]),t._v(" "),t.isMobile?t._e():e("td",{staticClass:"noborder ellipsis_bottom"},[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v(t._s(t.t("text","Shift")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v("6")])])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Unordered list")))]),t._v(" "),e("td",[e("code",[t._v("* "+t._s(t.t("text","An item")))])]),t._v(" "),t.isMobile?t._e():e("td",[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v(t._s(t.t("text","Shift")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v("8")])])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Ordered list")))]),t._v(" "),e("td",[e("code",[t._v("1. "+t._s(t.t("text","First item")))])]),t._v(" "),t.isMobile?t._e():e("td",[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v(t._s(t.t("text","Shift")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v("7")])])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Checklist")))]),t._v(" "),e("td",[e("code",[t._v("* [] "+t._s(t.t("text","To-Do item")))])]),t._v(" "),t.isMobile?t._e():e("td")]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Blockquote")))]),t._v(" "),e("td",[e("code",[t._v("> "+t._s(t.t("text","Quoted text")))])]),t._v(" "),t.isMobile?t._e():e("td",[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v(">")])])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Code block")))]),t._v(" "),e("td",[e("code",[t._v("``` "+t._s(t.t("text","Some code")))])]),t._v(" "),t.isMobile?t._e():e("td")])])])])}),[],!1,null,"c85fd486",null).exports;const ar=(0,i.defineComponent)({name:"ActionFormattingHelp",components:{NcActionButton:m.Js,Help:f.WW}});const sr=(0,X.Z)(ar,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("NcActionButton",t._g({attrs:{"close-after-click":"","data-text-action-entry":"formatting-help"},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Help")]},proxy:!0}])},t.$listeners),[t._v("\n\t"+t._s(t.t("text","Formatting help"))+"\n")])}),[],!1,null,null,null).exports;const lr=(0,i.defineComponent)({name:"CharacterCount",components:{AlphabeticalVariant:f.Pn,NcActionText:m.L1},mixins:[p.Cy],props:{visible:Boolean},data:function(){return{wordCount:0,charCount:0}},computed:{countString:function(){return"".concat((0,qe.translatePlural)("text","%n word","%n words",this.wordCount),", ").concat((0,qe.translatePlural)("text","%n char","%n chars",this.charCount))}},watch:{visible:"refresh"},created:function(){this.refresh()},methods:{refresh:function(){this.wordCount=this.$editor.storage.characterCount.words(),this.charCount=this.$editor.storage.characterCount.characters()}}});const cr=(0,X.Z)(lr,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("NcActionText",{attrs:{"data-text-action-entry":"character-count"},scopedSlots:t._u([{key:"icon",fn:function(){return[e("AlphabeticalVariant")]},proxy:!0},{key:"default",fn:function(){return[t._v("\n\t\t"+t._s(t.countString)+"\n\t")]},proxy:!0}])})}),[],!1,null,null,null).exports;function dr(t){return function(t){if(Array.isArray(t))return ur(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return ur(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ur(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ur(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}const Ar={name:"MenuBar",components:{ActionEntry:Rt,ActionFormattingHelp:sr,ActionList:Nt,HelpModal:ir,NcActionSeparator:m.rr,CharacterCount:cr},mixins:[p.Cy,p.QT,p.rz],provide:function(){var t,e,n,r=this,o={};return Object.defineProperties(o,(n={get:function(){return r.randomID}},(e=K)in(t={})?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t)),o},props:{autohide:{type:Boolean,default:!1}},data:function(){return{randomID:"menu-bar-".concat(Math.ceil(1e4*Math.random()+500).toString(16)),displayHelp:!1,forceRecompute:0,isReady:!1,isVisible:this.$editor.isFocused,windowWidth:0}},computed:{iconsLimit:function(){this.forceRecompute,this.windowWidth;var t=this.$refs.menubar,e=(t&&t.clientWidth>200?t.clientWidth:200)-4;return Math.floor(e/44)-1},visibleEntries:function(){var t=this;return dr(jt).filter((function(e){var n=e.priority;return void 0===n||n<=t.iconsLimit}))},hiddenEntries:function(){var t=this;return{key:"remain",label:this.t("text","Remaining actions"),icon:f.BF,children:dr(jt).filter((function(e){var n=e.priority;return void 0!==n&&n>t.iconsLimit}))}}},mounted:function(){var t=this;window.addEventListener("resize",this.getWindowWidth),(0,tr.Ld)("files:sidebar:opened",this.redrawAfterTransition),(0,tr.Ld)("files:sidebar:closed",this.redrawAfterTransition),this.$onFocusChange=function(){t.isVisible=t.$editor.isFocused},this.$onBlurChange=v()((function(){t.isVisible=t.$editor.isFocused}),3e3),this.$editor.on("focus",this.$onFocusChange),this.$editor.on("blur",this.$onBlurChange),this.$checkInterval=setInterval((function(){var e=t.$refs.menubar,n=e&&e.clientWidth>0;t.$isRichEditor&&n&&t.redrawMenuBar(),t.$isRichEditor&&!n||clearInterval(t.$checkInterval),n&&t.$nextTick((function(){t.isReady=!0}))}),100),this.$nextTick((function(){t.$emit("update:loaded",!0)}))},beforeDestroy:function(){window.removeEventListener("resize",this.getWindowWidth),(0,tr.r1)("files:sidebar:opened",this.redrawAfterTransition),(0,tr.r1)("files:sidebar:closed",this.redrawAfterTransition),this.$editor.off("focus",this.$onFocusChange),this.$editor.off("blur",this.$onBlurChange)},methods:{getWindowWidth:function(){this.windowWidth=document.documentElement.clientWidth},redrawAfterTransition:function(){setTimeout(this.redrawMenuBar,110)},redrawMenuBar:function(){var t=this;this.$nextTick((function(){t.getWindowWidth(),t.forceRecompute++}))},showHelp:function(){this.displayHelp=!0},hideHelp:function(){this.displayHelp=!1}}},hr=Ar;var pr=r(60432),fr={};fr.styleTagTransform=W(),fr.setAttributes=F(),fr.insert=G().bind(null,"head"),fr.domAPI=R(),fr.insertStyleElement=z();L()(pr.Z,fr);pr.Z&&pr.Z.locals&&pr.Z.locals;const mr=(0,X.Z)(hr,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-menubar",class:{"text-menubar--ready":t.isReady,"text-menubar--show":t.isVisible,"text-menubar--autohide":t.autohide,"text-menubar--is-workspace":t.$isRichWorkspace},attrs:{id:t.randomID,"data-text-el":"menubar",role:"menubar","aria-label":t.t("text","Formatting menu bar")}},[t.displayHelp?e("HelpModal",{on:{close:t.hideHelp}}):t._e(),t._v(" "),t.$isRichEditor?e("div",{ref:"menubar",staticClass:"text-menubar__entries",attrs:{role:"group","aria-label":t.t("text","Editor actions")}},[t._l(t.visibleEntries,(function(n){return e("ActionEntry",t._b({key:"text-action--".concat(n.key)},"ActionEntry",{actionEntry:n},!1))})),t._v(" "),e("ActionList",{key:"text-action--remain",attrs:{"action-entry":t.hiddenEntries},scopedSlots:t._u([{key:"lastAction",fn:function(n){var r=n.visible;return[e("ActionFormattingHelp",{on:{click:t.showHelp}}),t._v(" "),e("NcActionSeparator"),t._v(" "),e("CharacterCount",t._b({},"CharacterCount",{visible:r},!1))]}}],null,!1,981163248)})],2):t._e(),t._v(" "),e("div",{staticClass:"text-menubar__slot"},[t._t("default")],2)],1)}),[],!1,null,"4ac89b96",null).exports;function gr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const vr={name:"TableOfContents",mixins:[D.Z,p.Cy],data:function(){return{initialRender:!0}},computed:{headings:function(){return this.$store.state.headings}},watch:{hasHeadings:function(t){this.$emit("has-headings",t)}},mounted:function(){var t=this;setTimeout((function(){t.initialRender=!1}),1e3)},methods:{goto:function(t){this.$editor.chain().focus().setTextSelection(t.position).scrollIntoView().run(),this.$nextTick((function(){window.location.hash=t.id}))}}},Cr=vr;var br=r(73741),yr={};yr.styleTagTransform=W(),yr.setAttributes=F(),yr.insert=G().bind(null,"head"),yr.domAPI=R(),yr.insertStyleElement=z();L()(br.Z,yr);br.Z&&br.Z.locals&&br.Z.locals;const xr=(0,X.Z)(Cr,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"editor--toc",class:{"--initial-render":t.initialRender},attrs:{"data-text-el":"editor-table-of-contents"}},[e("ul",{staticClass:"editor--toc__list"},t._l(t.headings,(function(n){var r;return e("li",{key:n.uuid,staticClass:"editor--toc__item",class:(r={},gr(r,"editor--toc__item--".concat(n.level),!0),gr(r,"editor--toc__item--previous-".concat(n.previous),n.previous>0),r),attrs:{"data-toc-level":n.level}},[e("a",{attrs:{href:"#".concat(n.id)},on:{click:function(e){return e.preventDefault(),t.goto(n)}}},[t._v("\n\t\t\t\t"+t._s(n.text)+"\n\t\t\t")])])})),0)])}),[],!1,null,null,null).exports,wr={name:"EditorOutline",components:{Close:f.x8,NcButton:m.P2,TableOfContents:xr},mixins:[D.Z,y,x],data:function(){return{visible:!1,mobile:!1}},watch:{"$store.getters.hasHeadings":"setVisible"},mounted:function(){var t=this;this.$onResize=v()((function(){t.mobile=t.$el.parentElement.clientWidth<320}),10),this.$resizeObserver=new ResizeObserver(this.$onResize),this.$resizeObserver.observe(this.$el.parentElement),this.$onResize()},beforeDestroy:function(){this.$resizeObserver.unobserve(this.$el.parentElement),this.$resizeObserver=null,this.$onResize=null},methods:{setVisible:function(t){this.visible=t}}},kr=wr;var _r=r(38334),jr={};jr.styleTagTransform=W(),jr.setAttributes=F(),jr.insert=G().bind(null,"head"),jr.domAPI=R(),jr.insertStyleElement=z();L()(_r.Z,jr);_r.Z&&_r.Z.locals&&_r.Z.locals;const Pr=(0,X.Z)(kr,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"editor--outline",class:{"editor--outline-mobile":t.mobile},attrs:{"data-text-el":"editor-outline"}},[e("header",{staticClass:"editor--outline__header"},[e("NcButton",{staticClass:"editor--outline__btn-close",attrs:{type:"tertiary","aria-label":t.t("text","Close outline view")},on:{click:t.$outlineActions.toggle},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Close")]},proxy:!0}])}),t._v(" "),e("h2",[t._v(t._s(t.t("text","Outline")))])],1),t._v(" "),e("TableOfContents")],1)}),[],!1,null,"685e37af",null).exports,Er={name:"ContentContainer",components:{EditorContent:an.kg,EditorOutline:Pr},mixins:[p.Cy,y],computed:{showOutline:function(){return this.$outlineState.visible}}};var Mr=r(52130),Sr={};Sr.styleTagTransform=W(),Sr.setAttributes=F(),Sr.insert=G().bind(null,"head"),Sr.domAPI=R(),Sr.insertStyleElement=z();L()(Mr.Z,Sr);Mr.Z&&Mr.Z.locals&&Mr.Z.locals;const Br=(0,X.Z)(Er,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"content-wrapper text-editor__content-wrapper",class:{"--show-outline":t.showOutline},attrs:{"data-text-el":"editor-content-wrapper"}},[t.showOutline?e("div",{staticClass:"text-editor__content-wrapper__left"},[e("EditorOutline")],1):t._e(),t._v(" "),t._t("default"),t._v(" "),e("EditorContent",{staticClass:"editor__content text-editor__content",attrs:{tabindex:"0",role:"document",editor:t.$editor}}),t._v(" "),e("div",{staticClass:"text-editor__content-wrapper__right"})],2)}),[],!1,null,"3850603b",null).exports;const Or={name:"Status",components:{SessionList:function(){return r.e("editor-collab").then(r.bind(r,36796))},GuestNameDialog:function(){return r.e("editor-guest").then(r.bind(r,90593))}},directives:{Tooltip:m.u},mixins:[p.ww,p.fB],props:{hasConnectionIssue:{type:Boolean,require:!0},dirty:{type:Boolean,require:!0},lastSavedString:{type:String,default:""},document:{type:Object,default:null},syncError:{type:Object,default:null},sessions:{type:Object,default:function(){return{}}}},computed:{lastSavedStatus:function(){return this.hasConnectionIssue?t("text",this.$isMobile?"Offline":"Offline, changes will be saved when online"):this.dirtyStateIndicator?t("text","Saving …"):t("text","Saved")},lastSavedStatusClass:function(){return this.syncError&&""!==this.lastSavedString?"error":""},dirtyStateIndicator:function(){return this.dirty||this.hasUnsavedChanges},lastSavedStatusTooltip:function(){var e=t("text","Last saved {lastSaved}",{lastSaved:this.lastSavedString});return this.hasSyncCollission&&(e=t("text","The document has been changed outside of the editor. The changes cannot be applied.")),(this.dirty||this.hasUnsavedChanges)&&(e+=" - "+t("text","Unsaved changes")),{content:e,placement:"bottom"}},hasUnsavedChanges:function(){return this.document&&this.document.lastSavedVersion<this.document.currentVersion},hasSyncCollission:function(){return this.syncError&&this.syncError.type===ee.SAVE_COLLISSION},saveStatusClass:function(){return this.syncError&&""!==this.lastSavedString?"save-error":this.dirtyStateIndicator?"saving-status":"saved-status"},currentSession:function(){return Object.values(this.sessions).find((function(t){return t.isCurrent}))}}};var Ir=r(37708),Dr={};Dr.styleTagTransform=W(),Dr.setAttributes=F(),Dr.insert=G().bind(null,"head"),Dr.domAPI=R(),Dr.insertStyleElement=z();L()(Ir.Z,Dr);Ir.Z&&Ir.Z.locals&&Ir.Z.locals;var Tr=r(78285),Lr={};Lr.styleTagTransform=W(),Lr.setAttributes=F(),Lr.insert=G().bind(null,"head"),Lr.domAPI=R(),Lr.insertStyleElement=z();L()(Tr.Z,Lr);Tr.Z&&Tr.Z.locals&&Tr.Z.locals;const Nr=(0,X.Z)(Or,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-editor__session-list"},[t.$isMobile?e("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.lastSavedStatusTooltip,expression:"lastSavedStatusTooltip"}],class:t.saveStatusClass}):e("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.lastSavedStatusTooltip,expression:"lastSavedStatusTooltip"}],staticClass:"save-status",class:t.lastSavedStatusClass,attrs:{"aria-label":t.t("text","Document save status")}},[t._v("\n\t\t"+t._s(t.lastSavedStatus)+"\n\t")]),t._v(" "),e("SessionList",{attrs:{sessions:t.sessions}},[e("p",{staticClass:"last-saved",attrs:{slot:"lastSaved"},slot:"lastSaved"},[t._v("\n\t\t\t"+t._s(t.t("text","Last saved"))+": "+t._s(t.lastSavedString)+"\n\t\t")]),t._v(" "),t.$isPublic&&!t.currentSession.userId?e("GuestNameDialog",{attrs:{session:t.currentSession}}):t._e()],1)],1)}),[],!1,null,"5d3d5888",null).exports;function Rr(t){return Rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rr(t)}function Zr(){Zr=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof u?e:u,i=Object.create(o.prototype),a=new w(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return _()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),i}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var d={};function u(){}function A(){}function h(){}var p={};s(p,o,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(k([])));m&&m!==e&&n.call(m,o)&&(p=m);var g=h.prototype=u.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,a,s){var l=c(t[o],t,i);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==Rr(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){d.value=t,a(d)}),(function(t){return r("throw",t,a,s)}))}s(l.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(y,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:_}}function _(){return{value:void 0,done:!0}}return A.prototype=h,s(g,"constructor",h),s(h,"constructor",A),A.displayName=s(h,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===A||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,s(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},v(C.prototype),s(C.prototype,i,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(g),s(g,a,"Generator"),s(g,o,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=k,w.prototype={constructor:w,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function Gr(t){return function(t){if(Array.isArray(t))return $r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return $r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $r(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Fr(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function Ur(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Fr(i,r,o,a,s,"next",t)}function s(t){Fr(i,r,o,a,s,"throw",t)}a(void 0)}))}}function zr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Hr=function(t){return t.split("/").slice(0,-1).join("/")};const Wr={name:"MediaHandler",mixins:[p.Cy,p.a_,p.BG],provide:function(){var t,e=this,n={};return Object.defineProperties(n,(zr(t={},nt,{get:function(){return e.showAttachmentPrompt}}),zr(t,rt,{get:function(){return e.chooseLocalFile}}),zr(t,et,{get:function(){return e.state}}),t)),n},data:function(){return{lastFilePath:null,draggedOver:!1,state:{isUploadingAttachments:!1}}},computed:{initialFilePath:function(){var t;return null!==(t=this.lastFilePath)&&void 0!==t?t:Hr(this.$file.relativePath)}},methods:{setDraggedOver:function(t){this.draggedOver=t},onPaste:function(t){this.uploadAttachmentFiles(t.detail.files)},onEditorDrop:function(t){this.uploadAttachmentFiles(t.detail.files,t.detail.position),this.draggedOver=!1},onAttachmentUploadFilePicked:function(t){this.uploadAttachmentFiles(t.target.files),t.target.value=""},chooseLocalFile:function(){this.$refs.attachmentFileInput.click()},uploadAttachmentFiles:function(t){var e=arguments,n=this;return Ur(Zr().mark((function r(){var o,i;return Zr().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=e.length>1&&void 0!==e[1]?e[1]:null,t){r.next=3;break}return r.abrupt("return");case 3:return n.state.isUploadingAttachments=!0,i=Gr(t).map((function(t){return n.uploadAttachmentFile(t,o)})),r.abrupt("return",Promise.all(i).catch((function(t){var e,n;Ut.k.error("Uploading multiple images failed",{error:t}),(0,ft.showError)((null==t||null===(e=t.response)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.error)||t.message)})).then((function(){n.state.isUploadingAttachments=!1})));case 6:case"end":return r.stop()}}),r)})))()},uploadAttachmentFile:function(t){var e=arguments,n=this;return Ur(Zr().mark((function r(){var o;return Zr().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=e.length>1&&void 0!==e[1]?e[1]:null,n.state.isUploadingAttachments=!0,r.abrupt("return",n.$syncService.uploadAttachment(t).then((function(e){var r,i,a;n.insertAttachment(null===(r=e.data)||void 0===r?void 0:r.name,null===(i=e.data)||void 0===i?void 0:i.id,t.type,o,null===(a=e.data)||void 0===a?void 0:a.dirname)})).catch((function(t){var e,n;Ut.k.error("Uploading image failed",{error:t}),(0,ft.showError)(null==t||null===(e=t.response)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.error)})).then((function(){n.state.isUploadingAttachments=!1})));case 3:case"end":return r.stop()}}),r)})))()},showAttachmentPrompt:function(){var e=this;(0,A.ts)()&&OC.dialogs.filepicker(t("text","Insert an attachment"),(function(t){e.insertFromPath(t)}),!1,[],!0,void 0,this.initialFilePath)},insertFromPath:function(t){var e=this;return this.lastFilePath=Hr(t),this.state.isUploadingAttachments=!0,this.$syncService.insertAttachmentFile(t).then((function(t){var n,r,o,i;e.insertAttachment(null===(n=t.data)||void 0===n?void 0:n.name,null===(r=t.data)||void 0===r?void 0:r.id,null===(o=t.data)||void 0===o?void 0:o.mimetype,null,null===(i=t.data)||void 0===i?void 0:i.dirname)})).catch((function(t){var e,n;Ut.k.error("Failed to insert image path",{error:t}),(0,ft.showError)((null==t||null===(e=t.response)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.error)||t.message)})).then((function(){e.state.isUploadingAttachments=!1}))},insertAttachment:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",i=o+"/"+encodeURIComponent(t).replace(/[!'()*]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})),a=t.replaceAll(/[[\]]/g,""),s=r?this.$editor.chain().focus(r):this.$editor.chain();s.setImage({src:i,alt:a}).insertContent("<br />").focus().run()}}},qr=Wr;const Yr={name:"MainContainer",components:{MediaHandler:(0,X.Z)(qr,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"editor editor-midia-handler",class:{draggedOver:t.draggedOver},attrs:{"data-text-el":"editor-midia-handler"},on:{"image-paste":t.onPaste,dragover:function(e){return e.preventDefault(),e.stopPropagation(),t.setDraggedOver(!0)},dragleave:function(e){return e.preventDefault(),e.stopPropagation(),t.setDraggedOver(!1)},"file-drop":t.onEditorDrop}},[e("input",{ref:"attachmentFileInput",staticClass:"hidden-visually",attrs:{"data-text-el":"attachment-file-input",type:"file",accept:"*/*","aria-hidden":"true",multiple:""},on:{change:t.onAttachmentUploadFilePicked}}),t._v(" "),t._t("default")],2)}),[],!1,null,null,null).exports}};var Vr=r(63812),Kr={};Kr.styleTagTransform=W(),Kr.setAttributes=F(),Kr.insert=G().bind(null,"head"),Kr.domAPI=R(),Kr.insertStyleElement=z();L()(Vr.Z,Kr);Vr.Z&&Vr.Z.locals&&Vr.Z.locals;const Qr=(0,X.Z)(Yr,(function(){return(0,this._self._c)("MediaHandler",{staticClass:"text-editor__main"},[this._t("default")],2)}),[],!1,null,"7d451d50",null).exports;function Jr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Xr={name:"Wrapper",mixins:[D.Z,p.QT,p.rz],provide:function(){var t,e=this,n={};return Object.defineProperties(n,(Jr(t={},C,{get:function(){return e.outline}}),Jr(t,b,{get:function(){return{toggle:e.outlineToggle}}}),t)),n},props:{syncError:{type:Object,default:null},hasConnectionIssue:{type:Boolean,require:!0},contentLoaded:{type:Boolean,require:!0},showAuthorAnnotations:{type:Boolean,require:!0}},data:function(){return{outline:{visible:!1,enable:!1}}},computed:{hasSyncCollission:function(){return this.syncError&&this.syncError.type===ee.SAVE_COLLISSION},showOutline:function(){return!!this.isAbleToShowOutline&&this.outline.visible},isAbleToShowOutline:function(){return!this.$isRichWorkspace&&this.$store.state.viewWidth>1265}},mounted:function(){var t=this;this.outline.enable=this.isAbleToShowOutline,this.$watch((function(){return t.isAbleToShowOutline}),(function(e){Object.assign(t.outline,{enable:e})}))},methods:{outlineToggle:function(){this.outline.visible=!this.outline.visible}}},to=Xr;var eo=r(3274),no={};no.styleTagTransform=W(),no.setAttributes=F(),no.insert=G().bind(null,"head"),no.domAPI=R(),no.insertStyleElement=z();L()(eo.Z,no);eo.Z&&eo.Z.locals&&eo.Z.locals;const ro=(0,X.Z)(to,(function(){var t=this;return(0,t._self._c)("div",{staticClass:"text-editor__wrapper",class:{"has-conflicts":t.hasSyncCollission,"icon-loading":!t.contentLoaded&&!t.hasConnectionIssue,"is-rich-workspace":t.$isRichWorkspace,"is-rich-editor":t.$isRichEditor,"show-color-annotations":t.showAuthorAnnotations}},[t._t("default")],2)}),[],!1,null,"068e7935",null).exports;var oo=r(25108);function io(t){return io="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},io(t)}function ao(){ao=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof u?e:u,i=Object.create(o.prototype),a=new w(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return _()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),i}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var d={};function u(){}function A(){}function h(){}var p={};s(p,o,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(k([])));m&&m!==e&&n.call(m,o)&&(p=m);var g=h.prototype=u.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,a,s){var l=c(t[o],t,i);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==io(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){d.value=t,a(d)}),(function(t){return r("throw",t,a,s)}))}s(l.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(y,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:_}}function _(){return{value:void 0,done:!0}}return A.prototype=h,s(g,"constructor",h),s(h,"constructor",A),A.displayName=s(h,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===A||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,s(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},v(C.prototype),s(C.prototype,i,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(g),s(g,a,"Generator"),s(g,o,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=k,w.prototype={constructor:w,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function so(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function lo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function co(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?lo(Object(n),!0).forEach((function(e){uo(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function uo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Ao={name:"Editor",components:{DocumentStatus:Qn,Wrapper:ro,MainContainer:Qr,ReadonlyBar:Ft,ContentContainer:Br,MenuBar:mr,Reader:function(){return Promise.all([r.e("vendors"),r.e("editor")]).then(r.bind(r,7280))},Status:Nr,CollisionResolveDialog:function(){return Promise.all([r.e("vendors"),r.e("editor")]).then(r.bind(r,84413))}},mixins:[Xn,D.Z],provide:function(){var t,e=this,n={};return Object.defineProperties(n,(uo(t={},p.Uw,{get:function(){return e.$editor}}),uo(t,p.wU,{get:function(){return e.$syncService}}),uo(t,p.HB,{get:function(){return e.fileData}}),uo(t,p.FQ,{get:function(){return e.$attachmentResolver}}),uo(t,p.cY,{get:function(){return e.isPublic}}),uo(t,p.vo,{get:function(){return e.isRichEditor}}),uo(t,p.IT,{get:function(){return e.isRichWorkspace}}),uo(t,p.q$,{get:function(){return e.isMobile}}),t)),n},props:{richWorkspace:{type:Boolean,require:!1,default:!1},initialSession:{type:Object,default:null},relativePath:{type:String,default:""},fileId:{type:Number,default:null},active:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!0},shareToken:{type:String,default:null},mime:{type:String,default:null},autohide:{type:Boolean,default:!1},isDirectEditing:{type:Boolean,default:!1}},data:function(){return{IDLE_TIMEOUT:30,document:null,sessions:[],currentSession:null,filteredSessions:{},idle:!1,dirty:!1,contentLoaded:!1,lastSavedString:"",syncError:null,hasConnectionIssue:!1,readOnly:!0,forceRecreate:!1,menubarLoaded:!1,draggedOver:!1,saveStatusPolling:null,contentWrapper:null}},computed:{isRichWorkspace:function(){return this.richWorkspace},showAuthorAnnotations:function(){return this.$store.state.showAuthorAnnotations},hasSyncCollission:function(){return this.syncError&&this.syncError.type===ee.SAVE_COLLISSION},hasDocumentParameters:function(){return this.fileId||this.shareToken||this.initialSession},isPublic:function(){return this.isDirectEditing||document.getElementById("isPublic")&&"1"===document.getElementById("isPublic").value},isRichEditor:function(){return(0,h.j)("text","rich_editing_enabled",!0)&&"text/markdown"===this.mime},fileExtension:function(){return this.relativePath?this.relativePath.split("/").pop().split(".").pop():"txt"},currentDirectory:function(){return this.relativePath?this.relativePath.split("/").slice(0,-1).join("/"):"/"},displayed:function(){return this.currentSession&&this.active},renderMenus:function(){return this.contentLoaded&&this.isRichEditor&&!this.syncError&&!this.readOnly},imagePath:function(){return this.relativePath.split("/").slice(0,-1).join("/")},fileData:function(){return{fileId:this.fileId,relativePath:this.relativePath,document:co({},this.document)}}},watch:{displayed:function(){var t=this;this.$nextTick((function(){t.contentWrapper=t.$refs.contentWrapper}))}},mounted:function(){this.active&&this.hasDocumentParameters&&this.initSession(),this.richWorkspace||(window.addEventListener("beforeprint",this.preparePrinting),window.addEventListener("afterprint",this.preparePrinting)),this.$parent.$emit("update:loaded",!0)},created:function(){var t=this;this.$editor=null,this.$syncService=null,this.$attachmentResolver=null,this.saveStatusPolling=setInterval((function(){t.updateLastSavedStatus()}),2e3)},beforeDestroy:function(){this.close()},methods:{updateLastSavedStatus:function(){this.document&&(this.lastSavedString=c()(1e3*this.document.lastSavedVersionTime).fromNow())},initSession:function(){var t=this;if(this.hasDocumentParameters){var e=localStorage.getItem("nick")?localStorage.getItem("nick"):"";this.$syncService=new ne({guestName:e,shareToken:this.shareToken,filePath:this.relativePath,forceRecreate:this.forceRecreate,serialize:function(e){return t.isRichEditor?(0,zn.g)(t.$editor.schema).serialize(e):function(t){var e=t.getJSON();if(1!==e.content.length||void 0===e.content[0].content||1!==e.content[0].content.length){if("codeBlock"===e.content[0].type&&void 0===e.content[0].content)return"";throw new Un("Failed to serialize document to plain text")}var n=e.content[0].content[0];if("text"!==n.type)throw new Un("Failed to serialize document to plain text");return n.text}(t.$editor)}}),this.listenSyncServiceEvents(),this.$syncService.open({fileId:this.fileId,filePath:this.relativePath,initialSession:this.initialSession}).catch((function(e){t.hasConnectionIssue=!0})),this.forceRecreate=!1}else this.$parent.$emit("error","No valid file provided")},listenEditorEvents:function(){this.$editor.on("focus",this.onFocus),this.$editor.on("blur",this.onBlur)},unlistenEditorEvents:function(){this.$editor.off("focus",this.onFocus),this.$editor.off("blur",this.onBlur)},listenSyncServiceEvents:function(){this.$syncService.on("opened",this.onOpened).on("change",this.onChange).on("loaded",this.onLoaded).on("sync",this.onSync).on("error",this.onError).on("stateChange",this.onStateChange).on("idle",this.onIdle).on("save",this.onSave)},unlistenSyncServiceEvents:function(){this.$syncService.off("opened",this.onOpened).off("change",this.onChange).off("loaded",this.onLoaded).off("sync",this.onSync).off("error",this.onError).off("stateChange",this.onStateChange).off("idle",this.onIdle).off("save",this.onSave)},resolveUseThisVersion:function(){this.$syncService.forceSave(),this.$editor.setOptions({editable:!this.readOnly})},resolveUseServerVersion:function(){this.forceRecreate=!0,this.reconnect()},reconnect:function(){var t=this;this.contentLoaded=!1,this.hasConnectionIssue=!1;var e=function(){t.unlistenSyncServiceEvents(),t.unlistenEditorEvents(),t.$syncService=null,t.$editor.destroy(),t.initSession()};this.$syncService?this.$syncService.close().then(e).catch((function(t){})):e(),this.idle=!1},updateSessions:function(t){var e=this;this.sessions=t.sort((function(t,e){return e.lastContact-t.lastContact}));var n=this.sessions.find((function(t){return t.id===e.currentSession.id}));(0,i.set)(this,"currentSession",n);var r=this.sessions.map((function(t){return t.userId})),o=this.sessions.map((function(t){return t.guestId})),a=Object.keys(this.filteredSessions).filter((function(t){return!r.includes(t)&&!o.includes(t)}));for(var s in a)i.default.delete(this.filteredSessions,a[s]);for(var l in this.sessions){var c=this.sessions[l],d=c.displayName?c.userId:c.id;this.filteredSessions[d]?this.filteredSessions[d].lastContact<c.lastContact&&(0,i.set)(this.filteredSessions[d],"lastContact",c.lastContact):(0,i.set)(this.filteredSessions,d,c),c.id===this.currentSession.id&&(0,i.set)(this.filteredSessions[d],"isCurrent",!0)}},onOpened:function(t){var e=t.document,n=t.session;this.currentSession=n,this.document=e,this.readOnly=e.readOnly,this.lock=this.$syncService.lock,localStorage.setItem("nick",this.currentSession.guestName),this.$store.dispatch("setCurrentSession",this.currentSession),this.$attachmentResolver=new Me({session:this.currentSession,user:(0,A.ts)(),shareToken:this.shareToken,currentDirectory:this.currentDirectory})},onLoaded:function(e){var n=this,r=e.documentSource,o="",i=this.isRichEditor?Hn.Z.use(qn(),(function(t){o='<pre id="frontmatter"><code>'.concat(s()(t),"</code></pre>")})).render(r):"<pre>".concat(s()(r),"</pre>");this.hasConnectionIssue=!1;var a=o+i,l=Re[this.fileExtension]||this.fileExtension;(this.isRichEditor?Promise.resolve():$n(l)).then((function(){n.$editor=Fn({relativePath:n.relativePath,session:n.currentSession,content:a,onCreate:function(t){var e=t.editor;n.$syncService.state=e.state,n.$syncService.startSync()},onUpdate:function(t){var e=t.editor;n.$syncService.state=e.state},extensions:[Tn.mn.configure({version:n.document.initialVersion,clientID:n.currentSession.id,debounce:200,onSendable:function(t){t.sendable;n.$syncService&&n.$syncService.sendSteps()},update:function(t){var e=t.steps,n=t.version,r=t.editor,o=r.state,i=r.view,a=r.schema;if(!((0,d.bo)(o)>n)){var s=(0,d.$E)(o,e.map((function(t){return u.h8.fromJSON(a,t.step)})),e.map((function(t){return t.clientID})));s.setMeta("clientID",e.map((function(t){return t.clientID}))),i.dispatch(s)}}}),Tn.N8.configure({"Mod-s":function(){return n.$syncService.save(),!0}}),Tn.LA.configure({clientID:n.currentSession.id,color:function(t){var e=n.sessions.find((function(e){return""+e.id==""+t}));return null==e?void 0:e.color},name:function(e){var r=n.sessions.find((function(t){return""+t.id==""+e}));return null!=r&&r.userId?r.displayName:null!=r&&r.guestName?r.guestName:t("text","Guest")}})],enableRichEditing:n.isRichEditor}),n.listenEditorEvents(),n.$syncService.state=n.$editor.state}))},onChange:function(t){var e=t.document,n=t.sessions;""===this.document.baseVersionEtag||e.baseVersionEtag===this.document.baseVersionEtag?(this.updateSessions.bind(this)(n),this.document=e,this.syncError=null,this.$editor.setOptions({editable:!this.readOnly})):this.resolveUseServerVersion()},onSync:function(t){var e=this,n=t.steps,r=t.document;this.hasConnectionIssue=!1;try{this.$editor.extensionManager.extensions.find((function(t){return"collaboration"===t.name})).options.update({version:r.currentVersion,steps:n,editor:this.$editor}),this.$syncService.state=this.$editor.state,this.updateLastSavedStatus(),this.$nextTick((function(){e.$emit("sync-service:sync")}))}catch(t){Ut.k.error("Failed to update steps in collaboration plugin",{error:t})}this.document=r},onError:function(t){var e=this,n=t.type,r=t.data;this.$editor.setOptions({editable:!1}),this.$nextTick((function(){e.$emit("sync-service:error")})),n!==ee.SAVE_COLLISSION||this.syncError&&this.syncError.type===ee.SAVE_COLLISSION||(this.contentLoaded=!0,this.syncError={type:n,data:r}),n!==ee.CONNECTION_FAILED||this.hasConnectionIssue||(this.hasConnectionIssue=!0,OC.Notification.showTemporary("Connection failed, reconnecting"),!1!==r.retry&&setTimeout(this.reconnect.bind(this),5e3)),n===ee.SOURCE_NOT_FOUND&&(this.hasConnectionIssue=!0),this.$emit("ready")},onStateChange:function(t){var e=this;t.initialLoading&&!this.contentLoaded&&(this.contentLoaded=!0,this.autofocus&&!this.readOnly&&this.$nextTick((function(){e.$editor.commands.focus()})),this.$emit("ready"),this.$parent.$emit("ready",!0)),Object.prototype.hasOwnProperty.call(t,"dirty")&&(this.dirty=t.dirty)},onIdle:function(){var t=this;this.$syncService.close(),this.idle=!0,this.readOnly=!0,this.$editor.setOptions({editable:!this.readOnly}),this.$nextTick((function(){t.$emit("sync-service:idle")}))},onSave:function(){var t=this;this.$nextTick((function(){t.$emit("sync-service:save")}))},onFocus:function(){this.$emit("focus")},onBlur:function(){this.$emit("blur")},close:function(){var t,e=this;return(t=ao().mark((function t(){return ao().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(clearInterval(e.saveStatusPolling),window.removeEventListener("beforeprint",e.preparePrinting),window.removeEventListener("afterprint",e.preparePrinting),!e.currentSession||!e.$syncService){t.next=14;break}return t.prev=4,t.next=7,e.$syncService.close();case 7:e.unlistenSyncServiceEvents(),e.currentSession=null,e.$syncService=null,t.next=14;break;case 12:t.prev=12,t.t0=t.catch(4);case 14:if(e.$editor)try{e.unlistenEditorEvents(),e.$editor.destroy(),e.$editor=null}catch(t){Ut.k.warn("Failed to destroy editor",{error:t})}return t.abrupt("return",!0);case 16:case"end":return t.stop()}}),t,null,[[4,12]])})),function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){so(i,r,o,a,s,"next",t)}function s(t){so(i,r,o,a,s,"throw",t)}a(void 0)}))})()},preparePrinting:function(t){var e=document.getElementById("content");e&&"beforeprint"===t.type?e.style.display="none":e&&(e.style.display="")},debugContent:function(t){var e=this.$syncService.options.serialize(t.state.doc),n=Hn.Z.render(e);Ut.k.debug("markdown, serialized from editor state by prosemirror-markdown"),oo.debug(e),Ut.k.debug("HTML, serialized from markdown by markdown-it"),oo.debug(n),Ut.k.debug("HTML, as rendered in the browser by Tiptap"),oo.debug(t.getHTML())}}},ho=Ao;var po=r(67888),fo={};fo.styleTagTransform=W(),fo.setAttributes=F(),fo.insert=G().bind(null,"head"),fo.domAPI=R(),fo.insertStyleElement=z();L()(po.Z,fo);po.Z&&po.Z.locals&&po.Z.locals;var mo=r(63859),go={};go.styleTagTransform=W(),go.setAttributes=F(),go.insert=G().bind(null,"head"),go.domAPI=R(),go.insertStyleElement=z();L()(mo.Z,go);mo.Z&&mo.Z.locals&&mo.Z.locals;const vo=(0,X.Z)(ho,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-editor",attrs:{"data-text-el":"editor-container"},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:(e.stopPropagation(),e.preventDefault(),function(){}.apply(null,arguments))}}},[t.displayed?e("DocumentStatus",{attrs:{idle:t.idle,lock:t.lock,"sync-error":t.syncError,"has-connection-issue":t.hasConnectionIssue},on:{reconnect:t.reconnect}}):t._e(),t._v(" "),t.displayed?e("Wrapper",{attrs:{"sync-error":t.syncError,"has-connection-issue":t.hasConnectionIssue,"content-loaded":t.contentLoaded,"show-author-annotations":t.showAuthorAnnotations}},[t.$editor?e("MainContainer",[t.readOnly?e("div",{staticClass:"text-editor--readonly-bar"},[e("ReadonlyBar")],1):[t.renderMenus?e("MenuBar",{ref:"menubar",attrs:{autohide:t.autohide,loaded:t.menubarLoaded},on:{"update:loaded":function(e){t.menubarLoaded=e}}},[e("Status",{attrs:{document:t.document,dirty:t.dirty,sessions:t.filteredSessions,"sync-error":t.syncError,"has-connection-issue":t.hasConnectionIssue,"last-saved-string":t.lastSavedString}}),t._v(" "),t._t("header")],2):e("div",{staticClass:"menubar-placeholder"})],t._v(" "),e("ContentContainer",{directives:[{name:"show",rawName:"v-show",value:t.contentLoaded,expression:"contentLoaded"}],ref:"contentWrapper"})],2):t._e(),t._v(" "),t.hasSyncCollission?e("Reader",{attrs:{content:t.syncError.data.outsideChange,"is-rich-editor":t.isRichEditor}}):t._e()],1):t._e(),t._v(" "),t.hasSyncCollission&&!t.readOnly?e("CollisionResolveDialog",{on:{"resolve-use-this-version":t.resolveUseThisVersion,"resolve-use-server-version":t.resolveUseServerVersion}}):t._e()],1)}),[],!1,null,"4f6cb163",null).exports},7280:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>O});var r=n(19958);const o={name:"BaseReader",components:{EditorContent:n(7049).kg},inject:["renderHtml","extensions"],props:{content:{type:String,required:!0}},computed:{htmlContent:function(){return this.renderHtml(this.content)}},watch:{content:function(){this.updateContent()}},created:function(){this.$editor=this.createEditor(),this.$editor.setOptions({editable:!1})},beforeDestroy:function(){this.$editor.destroy()},methods:{createEditor:function(){return new r.ML({content:this.htmlContent,extensions:this.extensions()})},updateContent:function(){this.$editor.commands.setContent(this.htmlContent,!0)}}};var i=n(51900);const a=(0,i.Z)(o,(function(){var t=this,e=t._self._c;return t.$editor?e("EditorContent",{attrs:{id:"read-only-editor",editor:t.$editor}}):t._e()}),[],!1,null,null,null).exports;var s=n(9137),l=n(95573),c=n.n(l);const d={name:"PlainTextReader",components:{BaseReader:a},provide:{renderHtml:function(t){return"<pre>"+c()(t)+"</pre>"},extensions:function(){return[s.f3]}},props:{content:{type:String,required:!0}}};const u=(0,i.Z)(d,(function(){return(0,this._self._c)("BaseReader",{attrs:{content:this.content}})}),[],!1,null,null,null).exports;var A=n(81401),h=n(53322);const p={name:"RichTextReader",components:{BaseReader:a},provide:{renderHtml:function(t){return h.Z.render(t)},extensions:function(){var t=this;return[A.Z.configure({link:{onClick:function(e,n){return t.$emit("click-link",e,n),!0}}})]}},props:{content:{type:String,required:!0}},mounted:function(){this.$el.addEventListener("click",this.preventOpeningLinks,!0)},unmounted:function(){this.$el.removeEventListener("click",this.preventOpeningLinks,!0)},methods:{preventOpeningLinks:function(t){t.target.closest("a")&&0===t.button&&!t.ctrlKey&&t.preventDefault()}}};var f=n(93379),m=n.n(f),g=n(7795),v=n.n(g),C=n(90569),b=n.n(C),y=n(3565),x=n.n(y),w=n(19216),k=n.n(w),_=n(44589),j=n.n(_),P=n(51716),E={};E.styleTagTransform=j(),E.setAttributes=x(),E.insert=b().bind(null,"head"),E.domAPI=v(),E.insertStyleElement=k();m()(P.Z,E);P.Z&&P.Z.locals&&P.Z.locals;const M={name:"Reader",components:{PlainTextReader:u,RichTextReader:(0,i.Z)(p,(function(){var t=this;return(0,t._self._c)("BaseReader",{attrs:{content:t.content},on:{"click-link":function(e,n){return t.$emit("click-link",e,n)}}})}),[],!1,null,null,null).exports},props:{content:{type:String,required:!0},isRichEditor:{type:Boolean,default:!0}}};var S=n(62886),B={};B.styleTagTransform=j(),B.setAttributes=x(),B.insert=b().bind(null,"head"),B.domAPI=v(),B.insertStyleElement=k();m()(S.Z,B);S.Z&&S.Z.locals&&S.Z.locals;const O=(0,i.Z)(M,(function(){var t=this,e=t._self._c;return t.isRichEditor?e("RichTextReader",{attrs:{content:t.content}}):e("PlainTextReader",{attrs:{content:t.content}})}),[],!1,null,null,null).exports},20212:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>M});var r=n(20144),o=n(89191),i=n(52029);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(){s=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var o=e&&e.prototype instanceof h?e:h,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===A)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===A)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),i}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=d;var A={};function h(){}function p(){}function f(){}var m={};c(m,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(j([])));v&&v!==e&&n.call(v,o)&&(m=v);var C=f.prototype=h.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function y(t,e){function r(o,i,s,l){var c=u(t[o],t,i);if("throw"!==c.type){var d=c.arg,A=d.value;return A&&"object"==a(A)&&n.call(A,"__await")?e.resolve(A.__await).then((function(t){r("next",t,s,l)}),(function(t){r("throw",t,s,l)})):e.resolve(A).then((function(t){d.value=t,s(d)}),(function(t){return r("throw",t,s,l)}))}l(c.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function x(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return A;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return A}var r=u(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,A;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,A):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,A)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function j(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:P}}function P(){return{value:void 0,done:!0}}return p.prototype=f,c(C,"constructor",f),c(f,"constructor",p),p.displayName=c(f,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,c(t,l,"GeneratorFunction")),t.prototype=Object.create(C),t},t.awrap=function(t){return{__await:t}},b(y.prototype),c(y.prototype,i,(function(){return this})),t.AsyncIterator=y,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new y(d(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(C),c(C,l,"Generator"),c(C,o,(function(){return this})),c(C,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=j,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,A):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),A},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),A}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:j(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),A}},t}function l(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function c(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){l(i,r,o,a,s,"next",t)}function s(t){l(i,r,o,a,s,"throw",t)}a(void 0)}))}}var d=r.default.observable({messages:[],mtime:0}),u=function(t,e){i.k.debug("callMobileMessage ".concat(t),{attributes:e});var n=t;void 0!==e&&(n={MessageName:t,Values:e});var r=null;try{r=JSON.stringify(e)}catch(t){r=null}window.DirectEditingMobileInterface&&"function"==typeof window.DirectEditingMobileInterface[t]&&(null==r?window.DirectEditingMobileInterface[t]():window.DirectEditingMobileInterface[t](r)),window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.DirectEditingMobileInterface&&window.webkit.messageHandlers.DirectEditingMobileInterface.postMessage(n),window.postMessage(n)};window.addEventListener("message",(function(t){d.messages.push(t.data),i.k.debug("postMessage",{message:t})}));const A={name:"DirectEditing",components:{Editor:o.default},data:function(){return{initial:OCP.InitialState.loadState("text","file"),messages:d.messages,log:d,saving:!1}},computed:{initialSession:function(){return JSON.parse(this.initial.session)||null}},beforeMount:function(){u("loading")},mounted:function(){document.querySelector('meta[name="viewport"]').setAttribute("content","width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0")},methods:{close:function(){var t=this;return c(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.saving=!0,setTimeout(c(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$refs.editor.close();case 2:u("close");case 3:case"end":return e.stop()}}),e)}))),0);case 2:case"end":return e.stop()}}),e)})))()},share:function(){u("share")},loaded:function(){u("loaded")}}};var h=n(93379),p=n.n(h),f=n(7795),m=n.n(f),g=n(90569),v=n.n(g),C=n(3565),b=n.n(C),y=n(19216),x=n.n(y),w=n(44589),k=n.n(w),_=n(82837),j={};j.styleTagTransform=k(),j.setAttributes=b(),j.insert=v().bind(null,"head"),j.domAPI=m(),j.insertStyleElement=x();p()(_.Z,j);_.Z&&_.Z.locals&&_.Z.locals;var P=n(42294),E={};E.styleTagTransform=k(),E.setAttributes=b(),E.insert=v().bind(null,"head"),E.domAPI=m(),E.insertStyleElement=x();p()(P.Z,E);P.Z&&P.Z.locals&&P.Z.locals;const M=(0,n(51900).Z)(A,(function(){var t=this,e=t._self._c;return e("div",{class:{"icon-loading":t.saving},attrs:{id:"direct-editor"}},[e("Editor",{ref:"editor",attrs:{"initial-session":t.initialSession,active:!0,mime:t.initial.mimetype,"is-direct-editing":!0},on:{ready:t.loaded},scopedSlots:t._u([{key:"header",fn:function(){return[e("button",{staticClass:"icon-share",on:{click:t.share}}),t._v(" "),e("button",{staticClass:"icon-close",on:{click:t.close}})]},proxy:!0}])})],1)}),[],!1,null,"74e56a7a",null).exports},64989:t=>{"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgdmlld2JveD0iMCAwIDE2IDE2IiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik0xMS45MjQgNC4wNjZsLTQuOTMyIDQuOTctMi44MjgtMi44M0wyLjc1IDcuNjE4bDQuMjQyIDQuMjQzIDYuMzY1LTYuMzY1LTEuNDMzLTEuNDMyeiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPgo="},87127:t=>{"use strict";t.exports="data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTS00LTRoMjR2MjRILTR6Ii8+PHBhdGggZD0iTTYuOS4xQzMgLjYtLjEgNC0uMSA4YzAgNC40IDMuNiA4IDggOCA0IDAgNy40LTMgOC02LjktMS4yIDEuMy0yLjkgMi4xLTQuNyAyLjEtMy41IDAtNi40LTIuOS02LjQtNi40IDAtMS45LjgtMy42IDIuMS00Ljd6IiBmaWxsPSIjZjRhMzMxIi8+PC9zdmc+Cg=="},32605:t=>{"use strict";t.exports="data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTS00LTRoMjR2MjRILTRWLTR6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTggMEMzLjYgMCAwIDMuNiAwIDhzMy42IDggOCA4IDgtMy42IDgtOC0zLjYtOC04LTh6IiBmaWxsPSIjZWQ0ODRjIi8+PHBhdGggZD0iTTUgNi41aDZjLjggMCAxLjUuNyAxLjUgMS41cy0uNyAxLjUtMS41IDEuNUg1Yy0uOCAwLTEuNS0uNy0xLjUtMS41UzQuMiA2LjUgNSA2LjV6IiBmaWxsPSIjZmRmZmZmIi8+PC9zdmc+Cg=="},63423:t=>{"use strict";t.exports="data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTQuOCAxMS4yaDYuNFY0LjhINC44djYuNHpNOCAwQzMuNiAwIDAgMy42IDAgOHMzLjYgOCA4IDggOC0zLjYgOC04LTMuNi04LTgtOHoiIGZpbGw9IiM0OWIzODIiLz48L3N2Zz4K"}}]);
-//# sourceMappingURL=editor.js.map?v=ee8f084faae76d243c5e \ No newline at end of file
+(self.webpackChunk_nextcloud_text=self.webpackChunk_nextcloud_text||[]).push([["editor"],{31728:(t,e,n)=>{"use strict";n.d(e,{BG:()=>h,Cy:()=>A,FQ:()=>a,HB:()=>i,IT:()=>d,QT:()=>m,Uw:()=>o,Zf:()=>C,a_:()=>v,cY:()=>l,fB:()=>p,q$:()=>s,rz:()=>f,vo:()=>c,wU:()=>u,ww:()=>g});var r=n(52029),o=Symbol("tiptap:editor"),i=Symbol("editor:file"),a=Symbol("attachment:resolver"),s=Symbol("editor:is-mobile"),l=Symbol("editor:is-public"),c=Symbol("editor:is-rich-editor"),d=Symbol("editor:is-rich-woskapace"),u=Symbol("sync:service"),A={inject:{$editor:{from:o,default:null}}},h={inject:{$syncService:{from:u,default:null}}},p={inject:{$isPublic:{from:l,default:!1}}},f={inject:{$isRichWorkspace:{from:d,default:!1}}},m={inject:{$isRichEditor:{from:c,default:!1}}},g={inject:{$isMobile:{from:s,default:!1}}},v={inject:{$file:{from:i,default:function(){return{fileId:0,relativePath:null,document:null}}}}},C={inject:{$attachmentResolver:{from:a,default:{resolve:function(t){return r.k.warn("No attachment resolver provided. Some attachment sources cannot be resolved."),[t]}}}}}},32318:(t,e,n)=>{"use strict";n.d(e,{Ah:()=>Bt,BB:()=>ot,BF:()=>it,Bz:()=>yt,Cj:()=>mt,DB:()=>dt,Ee:()=>wt,F5:()=>It,Fv:()=>gt,HG:()=>rt,Ho:()=>Et,IY:()=>Ot,J4:()=>pt,Jw:()=>Mt,Lo:()=>bt,Lz:()=>ct,Nk:()=>et,Pn:()=>X,UX:()=>Ct,VK:()=>lt,WP:()=>Lt,WW:()=>xt,XD:()=>ut,Ze:()=>ht,_2:()=>Tt,b0:()=>nt,fy:()=>At,gb:()=>J,gq:()=>Nt,gt:()=>st,iA:()=>St,kI:()=>_t,mH:()=>vt,mV:()=>ft,pR:()=>Pt,ph:()=>Zt,pn:()=>Dt,rU:()=>kt,tk:()=>at,uU:()=>Rt,x8:()=>tt,xP:()=>jt});var r=n(367),o=n(98293),i=n(38384),a=n(49489),s=n(46327),l=n(11341),c=n(70178),d=n(6915),u=n(33395),A=n(44580),h=n(38143),p=n(9284),f=n(68191),m=n(43270),g=n(95062),v=n(43468),C=n(35050),b=n(66911),y=n(24360),x=n(2874),w=n(88836),k=n(10637),_=n(83061),j=n(48773),P=n(31116),E=n(75548),M=n(62522),S=n(48237),B=n(4559),O=n(46602),I=n(31438),D=n(65012),T=n(62974),L=n(51249),N=n(14588),R=n(77697),Z=n(89974),G=n(84855),$=n(37193),F=n(23664),U=n(55782),z=n(99272),H=n(53983),W=n(44193),q=n(96772);function Y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function V(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Y(Object(n),!0).forEach((function(e){K(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function K(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Q=function(t){return{functional:!0,render:function(e,n){var r=n.data,o=n.props;return e(t,{data:r,key:r.key,staticClass:r.staticClass,props:V({size:20},o)})}}},J={functional:!0,render:function(t,e){var n=e.data,r=e.props;return t(I.Z,{data:n,staticClass:"animation-rotate",props:V({size:20},r)})}},X=Q(r.Z),tt=Q(o.default),et=(Q(i.default),Q(a.Z)),nt=Q(s.default),rt=Q(l.Z),ot=Q(c.Z),it=Q(d.default),at=Q(u.Z),st=Q(A.default),lt=Q(h.Z),ct=Q(p.Z),dt=Q(f.Z),ut=Q(m.Z),At=Q(g.Z),ht=Q(v.Z),pt=Q(C.Z),ft=Q(b.Z),mt=Q(y.Z),gt=Q(x.Z),vt=Q(w.Z),Ct=Q(k.Z),bt=Q(_.Z),yt=Q(j.Z),xt=Q(P.default),wt=Q(E.Z),kt=Q(M.Z),_t=Q(S.Z),jt=Q(B.Z),Pt=Q(O.Z),Et=(Q(D.Z),Q(T.default)),Mt=Q(L.Z),St=Q(N.Z),Bt=Q(R.Z),Ot=Q(Z.Z),It=Q(G.Z),Dt=Q($.Z),Tt=Q(F.Z),Lt=(Q(U.Z),Q(z.Z)),Nt=Q(H.Z),Rt=Q(W.default),Zt=Q(q.Z)},31049:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=n(47191).Z.extend({toMarkdown:function(t,e,n,r){for(var o=r+1;o<n.childCount;o++){var i;if(n.child(o).type!==e.type)return void(null!==(i=n.child(o).text)&&void 0!==i&&i.startsWith("\n")?t.write(" "):t.write(" \n"))}}})},90488:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=n(19958).vc.create({name:"keep-syntax",parseHTML:function(){return[{tag:"span.keep-md"}]},renderHTML:function(){return["span",{class:"keep-md"},0]},toMarkdown:{open:"",close:"",mixable:!0,escape:!1,expelEnclosingWhitespace:!0},onUpdate:function(){var t=this,e=this.editor.state.tr;this.editor.state.doc.descendants((function(n,r,o,i){-1!==n.marks.findIndex((function(e){return e.type.name===t.name}))&&("text"===n.type.name&&1===n.text.length||e.removeMark(r,r+n.nodeSize,t.type))})),e.docChanged&&(e.setMeta("addToHistory",!1),e.setMeta("preventUpdate",!0),this.editor.view.dispatch(e))}})},73073:(t,e,n)=>{"use strict";n.d(e,{Z:()=>p,g:()=>u});var r=n(19958),o=n(55963);function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d=r.hj.create({name:"markdown",extendMarkSchema:function(t){var e={name:t.name,options:t.options,storage:t.storage};return{toMarkdown:(0,r.Nl)(t,"toMarkdown",e)}},extendNodeSchema:function(t){var e={name:t.name,options:t.options,storage:t.storage};return{toMarkdown:(0,r.Nl)(t,"toMarkdown",e)}}}),u=function(t){var e=t.nodes,n=t.marks,r=h(o.Dm.nodes),i=h(o.Dm.marks);return{serializer:new o.nZ(l(l({},r),A(e)),l(l({},i),A(n))),serialize:function(t,e){return this.serializer.serialize(t,l(l({},e),{},{tightLists:!0}))}}},A=function(t){return Object.entries(t).map((function(t){var e=i(t,2);return[e[0],e[1].spec.toMarkdown]})).filter((function(t){return i(t,2)[1]})).reduce((function(t,e){var n=i(e,2),r=n[0],o=n[1];return l(l({},t),{},c({},r,o))}),{})},h=function(t){var e=function(t){return t.replace(/_(\w)/g,(function(t,e){return e.toUpperCase()}))};return Object.fromEntries(Object.entries(t).map((function(t){var n=i(t,2),r=n[0],o=n[1];return[e(r),o]})))};const p=d},92223:(t,e,n)=>{"use strict";n.d(e,{Z:()=>k});var r=n(49602),o=n(15961),i=n(7049),a=n(45994);const s={name:"Mention",components:{NcUserBubble:o.uq,NodeViewWrapper:i.T5},props:{updateAttributes:{type:Function,required:!0},node:{type:Object,required:!0}},data:function(){return{username:this.node.attrs.label}},computed:{isCurrentUser:function(){var t;return this.node.attrs.id===(null===(t=(0,a.ts)())||void 0===t?void 0:t.uid)}}};var l=n(93379),c=n.n(l),d=n(7795),u=n.n(d),A=n(90569),h=n.n(A),p=n(3565),f=n.n(p),m=n(19216),g=n.n(m),v=n(44589),C=n.n(v),b=n(35460),y={};y.styleTagTransform=C(),y.setAttributes=f(),y.insert=h().bind(null,"head"),y.domAPI=u(),y.insertStyleElement=g();c()(b.Z,y);b.Z&&b.Z.locals&&b.Z.locals;const x=(0,n(51900).Z)(s,(function(){var t=this,e=t._self._c;return e("NodeViewWrapper",{staticClass:"mention",attrs:{as:"span",contenteditable:"false"}},[e("NcUserBubble",{staticClass:"mention-user-bubble",attrs:{user:t.node.attrs.id,"display-name":t.username,primary:t.isCurrentUser}},[t._v("\n\t\t@"+t._s(t.username)+"\n\t")])],1)}),[],!1,null,"297bb5fa",null).exports;var w=n(19958);const k=r.ZP.extend({parseHTML:function(){return[{tag:'span[data-type="user"]',getAttrs:function(t){return{id:t.getAttribute("data-id"),label:t.innerText||t.textContent||t.getAttribute("data-label")}},priority:100}]},renderHTML:function(t){var e=t.node,n=t.HTMLAttributes;return["span",(0,w.P1)({"data-type":"user"},this.options.HTMLAttributes,n),this.options.renderLabel({options:this.options,node:e})]},addNodeView:function(){return(0,i.uf)(x)},toMarkdown:function(t,e){t.write(" "),t.write("@[".concat(e.attrs.label,"](mention://user/").concat(e.attrs.id,")")),t.write(" ")}})},81401:(e,n,r)=>{"use strict";r.d(n,{Z:()=>Te});var o=r(19958),i=r(56856);const a=r(7082).ZP.extend({parseHTML:function(){return this.parent().map((function(t){return Object.assign(t,{preserveWhitespace:!0})}))},addInputRules:function(){return[(t=/^\s*([-+*])\s([^\s[]+)$/,e=this.type,new o.VK({find:t,handler:function(r){var i=r.state,a=r.range,s=r.match;(0,o.S0)({find:t,type:e,getAttributes:n}).handler({state:i,range:a,match:s}),s.length>=3&&i.tr.insertText(s[2])}}))];var t,e,n}});var s=r(7049),l=r(30744),c=r(32318),d={info:c.kI,success:c.Ho,error:c.b0,warn:c.uU};const u={name:"Callout",components:{NodeViewWrapper:s.T5,NodeViewContent:s.ms},props:{node:{type:Object,required:!0}},computed:{icon:function(){return d[this.type]||c.kI},type:function(){var t,e;return(null===(t=this.node)||void 0===t||null===(e=t.attrs)||void 0===e?void 0:e.type)||"info"}}};var A=r(93379),h=r.n(A),p=r(7795),f=r.n(p),m=r(90569),g=r.n(m),v=r(3565),C=r.n(v),b=r(19216),y=r.n(b),x=r(44589),w=r.n(x),k=r(73819),_={};_.styleTagTransform=w(),_.setAttributes=C(),_.insert=g().bind(null,"head"),_.domAPI=f(),_.insertStyleElement=y();h()(k.Z,_);k.Z&&k.Z.locals&&k.Z.locals;var j=r(51900);const P=(0,j.Z)(u,(function(){var t=this,e=t._self._c;return e("NodeViewWrapper",{staticClass:"callout",class:"callout--".concat(t.type),attrs:{"data-text-el":"callout",as:"div"}},[e(t.icon,{tag:"component",staticClass:"callout__icon"}),t._v(" "),e("NodeViewContent",{staticClass:"callout__content"})],1)}),[],!1,null,"6b292428",null).exports;function E(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function M(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?E(Object(n),!0).forEach((function(e){S(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function S(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const B=o.NB.create({name:"callout",content:"paragraph+",group:"block",defining:!0,addOptions:function(){return{types:l.F,HTMLAttributes:{class:"callout"}}},addAttributes:function(){return{type:{default:"info",rendered:!1,parseHTML:function(t){return t.getAttribute("data-callout")||l.F.find((function(e){return t.classList.contains(e)}))||t.classList.contains("warning")&&"warn"},renderHTML:function(t){return{"data-callout":t.type,class:"callout-".concat(t.type)}}}}},parseHTML:function(){return[{tag:"div.callout"},{tag:"p.callout",priority:1001}]},renderHTML:function(t){var e=t.node,n=t.HTMLAttributes,r=this.options.HTMLAttributes.class,i=M(M({},this.options.HTMLAttributes),{},{"data-callout":e.attrs.type,class:"".concat(r," ").concat(r,"-").concat(e.attrs.type)});return["div",(0,o.P1)(i,n),0]},toMarkdown:function(t,e){t.write("::: "+(e.attrs.type||"info")+"\n"),t.renderContent(e),t.ensureNewLine(),t.write(":::"),t.closeBlock(e)},addNodeView:function(){return(0,s.uf)(P)},addCommands:function(){var t=this;return{setCallout:function(e){return function(n){return n.commands.wrapIn(t.name,e)}},toggleCallout:function(e){return function(n){var r=n.commands,i=n.state;return(0,o.Ig)(i,t.name)?(0,o.Ig)(i,t.name,e)?r.unsetCallout():r.updateAttributes(t.name,e):r.setCallout(e)}},unsetCallout:function(){return function(e){return e.commands.lift(t.name)}}}}});var O=r(85693),I=r(60054),D=r(9889),T=r(55963);const L=D.ZP.extend({parseHTML:function(){return[{tag:"pre",preserveWhitespace:"full",getContent:function(t,e){return e.nodes.codeBlock.create(null,[e.text(t.textContent.replace(/\n$/,""))])}}]},toMarkdown:function(t,e,n,r){return e.attrs.params=e.attrs.language,T.Dm.nodes.code_block(t,e,n,r)}});var N=r(8481),R=r(25277);const Z=D.ZP.extend({name:"frontMatter",draggable:!1,renderHTML:function(e){var n=e.node,r=e.HTMLAttributes;return this.parent({node:n,HTMLAttributes:(0,o.P1)(r,{"data-title":t("text","Front matter"),class:"frontmatter"})})},parseHTML:function(){return[{tag:"pre#frontmatter",preserveWhitespace:"full",priority:9001,attrs:{language:"yaml"}}]},toMarkdown:function(t,e){if(!t.out.match(/^\s*/))throw Error("FrontMatter must be the first node of the document!");var n=e.textContent,r=n.match(/-{3,}/gm),o="-".repeat(r?r.sort().slice(-1)[0].length+1:3);t.write(""),t.out="",t.write("".concat(o,"\n")),t.text(n,!1),t.ensureNewLine(),t.write(o),t.closeBlock(e)},addInputRules:function(){var t=this;return[{find:/^---$/g,handler:function(e){var n=e.state,r=e.range,o=e.chain;return 1===r.from&&(n.doc.resolve(1).parent.type.name!==t.name&&(o().deleteRange(r).insertContentAt(0,{type:t.name}),!0))}}]},addCommands:function(){return{}},addPasteRules:function(){return[]},addProseMirrorPlugins:function(){return[]}});var G=r(69457),$=r(33696),F=r(20296),U=r.n(F);r(37043);const z={name:"ParagraphView",components:{NodeViewWrapper:s.T5,NodeViewContent:s.ms,ReferenceList:$.vZ},props:s.Un,data:function(){return{text:null}},watch:{node:{handler:function(t){null!=t&&t.textContent?this.debouncedUpdateText(t):this.text=""}}},beforeCreate:function(){var t=this;this.debouncedUpdateText=U()((function(e){var n;t.text=t.getTextReference(null===(n=t.node)||void 0===n?void 0:n.textContent)}),500)},created:function(){var t;this.text=this.getTextReference(null===(t=this.node)||void 0===t?void 0:t.textContent)},beforeUnmount:function(){var t;null===(t=this.debouncedUpdateText)||void 0===t||t.cancel()},methods:{getTextReference:function(t){return new RegExp(/(^)(https?:\/\/)?((?:[-A-Z0-9+_]+\.)+[-A-Z]+(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)($)/gi).test(t)?t:null}}};var H=r(87591),W={};W.styleTagTransform=w(),W.setAttributes=C(),W.insert=g().bind(null,"head"),W.domAPI=f(),W.insertStyleElement=y();h()(H.Z,W);H.Z&&H.Z.locals&&H.Z.locals;const q=(0,j.Z)(z,(function(){var t=this,e=t._self._c;return e("NodeViewWrapper",{staticClass:"vue-component",attrs:{as:"p"}},[e("NodeViewContent",{staticClass:"paragraph-content"}),t._v(" "),t.text?e("ReferenceList",{attrs:{text:t.text,limit:1,contenteditable:"false"}}):t._e()],1)}),[],!1,null,"7a1db318",null).exports;const Y=G.Z.extend({addNodeView:function(){return(0,s.uf)(q)},parseHTML:function(){return this.parent().map((function(t){return Object.assign(t,{preserveWhitespace:"full"})}))}});var V=r(31049),K=r(41769),Q=r(25030),J=r(63811),X=r.n(J),tt=r(28721);function et(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function nt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?et(Object(n),!0).forEach((function(e){rt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):et(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function rt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ot=function(t){return Q.Z.dispatch("setHeadings",t)},it=function(t){var e=new Map,n=[],r=t.state.tr;t.state.doc.descendants((function(t,o){if("heading"===t.type.name){var i,a=t.textContent,s=function(t){var n=X()(t);if(e.has(n)){var r=e.get(n);return e.set(n,r+1),"".concat(n,"--").concat(r)}return e.set(n,1),n}(a),l=null!==(i=t.attrs.uuid)&&void 0!==i?i:(0,tt.Z)();if(t.attrs.id!==s||!t.attrs.uuid){var c=nt(nt({},t.attrs),{},{uuid:l,id:s});r.setNodeMarkup(o,void 0,c)}n.push(Object.freeze({level:t.attrs.level,position:o,text:a,id:s,uuid:l}))}})),r.setMeta("addToHistory",!1),r.setMeta("preventUpdate",!0),t.view.dispatch(r),ot(n)},at=r(20144),st=r(31728);const lt=at.default.extend({name:"HeadingView",components:{NodeViewWrapper:s.T5,NodeViewContent:s.ms},mixins:[st.Cy],props:{node:{type:Object,required:!0},extension:{type:Object,required:!0}},data:function(){return{content:null}},computed:{href:function(){return"#".concat(this.node.attrs.id)},domElement:function(){var t=this.extension.options.levels.includes(this.node.attrs.level)?this.node.attrs.level:this.extension.options.levels[0];return"h".concat(t)},linkSymbol:function(){return this.extension.options.linkSymbol},t:function(){return window.t}},methods:{click:function(){this.$refs.container.$el.scrollIntoView(),window.location.hash=this.href}}});var ct=r(32815),dt={};dt.styleTagTransform=w(),dt.setAttributes=C(),dt.insert=g().bind(null,"head"),dt.domAPI=f(),dt.insertStyleElement=y();h()(ct.Z,dt);ct.Z&&ct.Z.locals&&ct.Z.locals;const ut=(0,j.Z)(lt,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("NodeViewWrapper",{ref:"container",attrs:{id:t.node.attrs.id,as:t.domElement}},[e("a",{staticClass:"heading-anchor",attrs:{"aria-hidden":"true",href:t.href,title:t.t("text","Link to this section"),contenteditable:!1},on:{click:function(e){return e.stopPropagation(),t.click.apply(null,arguments)}}},[t._v(t._s(t.linkSymbol))]),t._v(" "),e("NodeViewContent",{attrs:{as:"span"}})],1)}),[],!1,null,null,null).exports;function At(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ht(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?At(Object(n),!0).forEach((function(e){pt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):At(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function pt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const ft=K.Z.extend({addAttributes:function(){return ht(ht({},this.parent()),{},{id:{default:void 0,rendered:!0},uuid:{default:void 0,rendered:!1}})},addOptions:function(){var t;return ht(ht({},null===(t=this.parent)||void 0===t?void 0:t.call(this)),{},{linkSymbol:"#"})},addKeyboardShortcuts:function(){var t=this;return this.options.levels.reduce((function(e,n){return ht(ht({},e),{},pt({},"Mod-Shift-".concat(n),(function(){return t.editor.commands.toggleHeading({level:n})})))}),{})},addNodeView:function(){var t=this;return(0,s.uf)(ut,{update:function(e){var n=e.oldNode,r=e.newNode,o=e.updateProps;return r.type.name===t.name&&(r.attrs===n.attrs&&(o(),!0))}})},onDestroy:function(){ot([]),this.parent&&this.parent()},onCreate:function(){it(this.editor),this.parent&&this.parent()},onUpdate:U()((function(t){var e=t.editor;it(e)}),900)});var mt=r(6829),gt=r(92943),vt=r(2376),Ct=r(26937),bt=r(2649),yt=r.n(bt),xt=r(15961),wt=r(79753),kt=r(13815),_t=r(52029),jt=r(74411);function Pt(t){return Pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pt(t)}function Et(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Mt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mt(t,e)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function St(){St=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof u?e:u,i=Object.create(o.prototype),a=new w(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return _()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),i}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var d={};function u(){}function A(){}function h(){}var p={};s(p,o,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(k([])));m&&m!==e&&n.call(m,o)&&(p=m);var g=h.prototype=u.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,a,s){var l=c(t[o],t,i);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==Pt(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){d.value=t,a(d)}),(function(t){return r("throw",t,a,s)}))}s(l.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(y,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:_}}function _(){return{value:void 0,done:!0}}return A.prototype=h,s(g,"constructor",h),s(h,"constructor",A),A.displayName=s(h,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===A||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,s(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},v(C.prototype),s(C.prototype,i,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(g),s(g,a,"Generator"),s(g,o,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=k,w.prototype={constructor:w,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function Bt(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function Ot(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Bt(i,r,o,a,s,"next",t)}function s(t){Bt(i,r,o,a,s,"throw",t)}a(void 0)}))}}function It(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Dt(t,e){if(e&&("object"===Pt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Tt(t){var e="function"==typeof Map?new Map:void 0;return Tt=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return Lt(t,arguments,Zt(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Rt(r,t)},Tt(t)}function Lt(t,e,n){return Lt=Nt()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&Rt(o,n.prototype),o},Lt.apply(null,arguments)}function Nt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function Rt(t,e){return Rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Rt(t,e)}function Zt(t){return Zt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Zt(t)}var Gt=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Rt(t,e)}(l,e);var n,r,o,i,a,s=(n=l,r=Nt(),function(){var t,e=Zt(n);if(r){var o=Zt(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return Dt(this,t)});function l(e,n){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(r=s.call(this,(null==e?void 0:e.message)||t("text","Failed to load"))).reason=e,r.imageUrl=n,r}return o=l,i&&It(o.prototype,i),a&&It(o,a),Object.defineProperty(o,"prototype",{writable:!1}),o}(Tt(Error));const $t={name:"ImageView",components:{ImageIcon:c.Ee,DeleteIcon:c.HG,NcButton:xt.P2,NodeViewWrapper:s.T5},directives:{ClickOutside:yt()},mixins:[kt.Z,st.Zf],props:["editor","node","extension","updateAttributes","deleteNode"],data:function(){return{imageLoaded:!1,loaded:!1,failed:!1,showIcons:!1,imageUrl:null,errorMessage:null,attachmentType:null,attachmentMetadata:{}}},computed:{isMediaAttachment:function(){return this.attachmentType===this.$attachmentResolver.ATTACHMENT_TYPE_MEDIA},editable:function(){return this.editor.isEditable},showDeleteIcon:function(){return this.editable&&this.showIcons},showImageDeleteIcon:function(){return this.showDeleteIcon&&!this.isMediaAttachment},canDisplayImage:function(){return!!this.isSupportedImage&&(!(!this.failed||!this.loaded)||this.loaded&&this.imageLoaded)},imageFileId:function(){return function(t,e){var n=t.split("?")[1];if(void 0!==n){var r=n.split(/[&#]/);if(void 0!==r)for(var o=0;o<r.length;o++){var i=r[o].split("=");if(decodeURIComponent(i[0])===e)return decodeURIComponent(i[1])}}}(this.src,"fileId")},isSupportedImage:function(){return void 0===this.mime||-1!==jt.$Z.indexOf(this.mime)},internalLinkOrImage:function(){return this.imageFileId?(0,wt.generateUrl)("/f/"+this.imageFileId):this.src},src:{get:function(){return this.node.attrs.src||""},set:function(t){this.updateAttributes({src:t})}},alt:{get:function(){return this.node.attrs.alt?this.node.attrs.alt:""},set:function(t){this.updateAttributes({alt:t})}},t:function(){return function(t,e){return window.t(t,e)}},token:function(){return document.getElementById("sharingToken")&&document.getElementById("sharingToken").value}},beforeMount:function(){if(!this.isSupportedImage)return this.failed=!0,this.imageLoaded=!1,this.loaded=!0,void(this.errorMessage=t("text","Unsupported image type"));this.init().catch(this.onImageLoadFailure)},methods:{init:function(){var t=this;return Ot(St().mark((function e(){var n;return St().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.$attachmentResolver.resolve(t.src),e.abrupt("return",t.load(n));case 2:case"end":return e.stop()}}),e)})))()},load:function(t){var e=this;return Ot(St().mark((function n(){var r,o,i;return St().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=Et(t),o=r[0],i=r.slice(1),n.abrupt("return",e.loadImage(o.url,o.type,o.name).catch((function(t){return i.length>0?e.load(i):Promise.reject(t)})));case 2:case"end":return n.stop()}}),n)})))()},loadImage:function(t,e){var n=arguments,r=this;return Ot(St().mark((function o(){var i;return St().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return i=n.length>2&&void 0!==n[2]?n[2]:null,o.abrupt("return",new Promise((function(n,o){var a=new Image;a.onload=Ot(St().mark((function o(){return St().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(r.imageUrl=t,r.imageLoaded=!0,r.loaded=!0,r.attachmentType=e,e!==r.$attachmentResolver.ATTACHMENT_TYPE_MEDIA){o.next=7;break}return o.next=7,r.loadMediaMetadata(i);case 7:n(t);case 8:case"end":return o.stop()}}),o)}))),a.onerror=function(e){o(new Gt(e,t))},a.src=t})));case 2:case"end":return o.stop()}}),o)})))()},loadMediaMetadata:function(t){var e=this,n=this.$attachmentResolver.getMediaMetadataUrl(t);return Ct.Z.get(n).then((function(t){e.attachmentMetadata=t.data})).catch((function(t){_t.k.error("Failed to load media metadata",{error:t})}))},onImageLoadFailure:function(t){this.failed=!0,this.imageLoaded=!1,this.loaded=!0,this.errorMessage=t.message,t instanceof Gt&&(this.errorMessage="".concat(this.errorMessage," ").concat(this.src)),this.$emit("error",{error:t,src:this.src})},updateAlt:function(t){this.updateAttributes({alt:t.target.value})},onLoaded:function(){var t=this;this.loaded=!0,this.$nextTick((function(){t.editor.commands.scrollIntoView()}))}}};var Ft=r(54239),Ut={};Ut.styleTagTransform=w(),Ut.setAttributes=C(),Ut.insert=g().bind(null,"head"),Ut.domAPI=f(),Ut.insertStyleElement=y();h()(Ft.Z,Ut);Ft.Z&&Ft.Z.locals&&Ft.Z.locals;const zt=(0,j.Z)($t,(function(){var t=this,e=t._self._c;return e("NodeViewWrapper",[e("div",{staticClass:"image image-view",class:{"icon-loading":!t.loaded,"image-view--failed":t.failed},attrs:{"data-component":"image-view","data-src":t.src}},[t.canDisplayImage?e("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:function(){return t.showIcons=!1},expression:"() => showIcons = false"}],staticClass:"image__view",on:{click:function(e){t.showIcons=!0},mouseover:function(e){t.showIcons=!0},mouseleave:function(e){t.showIcons=!1}}},[e("transition",{attrs:{name:"fade"}},[t.failed?[e("ImageIcon",{staticClass:"image__main image__main--broken-icon",attrs:{size:100}})]:[t.isMediaAttachment?e("div",{staticClass:"media"},[e("div",{staticClass:"media__wrapper"},[e("img",{directives:[{name:"show",rawName:"v-show",value:t.loaded,expression:"loaded"}],staticClass:"image__main",attrs:{src:t.imageUrl},on:{load:t.onLoaded}}),t._v(" "),e("div",{staticClass:"metadata"},[e("span",{staticClass:"name"},[t._v(t._s(t.alt))]),t._v(" "),e("span",{staticClass:"size"},[t._v(t._s(t.attachmentMetadata.size))])])]),t._v(" "),t.showDeleteIcon?e("div",{staticClass:"buttons"},[e("NcButton",{attrs:{"aria-label":t.t("text","Delete this attachment"),title:t.t("text","Delete this attachment")},on:{click:t.deleteNode},scopedSlots:t._u([{key:"icon",fn:function(){return[e("DeleteIcon")]},proxy:!0}],null,!1,3930079857)})],1):t._e()]):e("div",[e("img",{directives:[{name:"show",rawName:"v-show",value:t.loaded,expression:"loaded"}],staticClass:"image__main",attrs:{src:t.imageUrl},on:{load:t.onLoaded}})])]],2),t._v(" "),e("transition",{attrs:{name:"fade"}},[t.isMediaAttachment?t._e():e("div",{directives:[{name:"show",rawName:"v-show",value:t.loaded,expression:"loaded"}],staticClass:"image__caption"},[e("div",{staticClass:"image__caption__wrapper"},[e("input",{directives:[{name:"show",rawName:"v-show",value:!t.isMediaAttachment,expression:"!isMediaAttachment"}],ref:"altInput",staticClass:"image__caption__input",attrs:{type:"text",disabled:!t.editable},domProps:{value:t.alt},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.updateAlt.apply(null,arguments)}}}),t._v(" "),t.showImageDeleteIcon?e("div",{staticClass:"image__caption__delete"},[e("NcButton",{attrs:{"aria-label":t.t("text","Delete this image"),title:t.t("text","Delete this image")},on:{click:t.deleteNode},scopedSlots:t._u([{key:"icon",fn:function(){return[e("DeleteIcon")]},proxy:!0}],null,!1,3930079857)})],1):t._e()])])])],1):e("div",{staticClass:"image-view__cant_display"},[e("transition",{attrs:{name:"fade"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.loaded,expression:"loaded"}]},[e("a",{attrs:{href:t.internalLinkOrImage,target:"_blank"}},[t.isSupportedImage?t._e():e("span",[t._v(t._s(t.alt))])])])]),t._v(" "),t.isSupportedImage?e("transition",{attrs:{name:"fade"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.loaded,expression:"loaded"}],staticClass:"image__caption"},[e("input",{ref:"altInput",attrs:{type:"text",disabled:!t.editable},domProps:{value:t.alt},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.updateAlt()}}})])]):t._e()],1),t._v(" "),t.errorMessage?e("small",{staticClass:"image__error-message"},[t._v("\n\t\t\t"+t._s(t.errorMessage)+"\n\t\t")]):t._e()])])}),[],!1,null,"c615c456",null).exports;function Ht(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Wt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const qt=gt.ZP.extend({selectable:!1,renderHTML:function(){return["img"]},addOptions:function(){var t;return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ht(Object(n),!0).forEach((function(e){Wt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},null===(t=this.parent)||void 0===t?void 0:t.call(this))},addNodeView:function(){return(0,s.uf)(zt)},addProseMirrorPlugins:function(){return[new vt.Sy({props:{handleDrop:function(t,e,n){if(e.dataTransfer.files&&e.dataTransfer.files.length>0){var r=t.posAtCoords({left:e.clientX,top:e.clientY}),o=new CustomEvent("file-drop",{bubbles:!0,detail:{files:e.dataTransfer.files,position:r.pos}});return e.target.dispatchEvent(o),!0}},handlePaste:function(t,e,n){if(e.clipboardData.files&&e.clipboardData.files.length>0){var r=new CustomEvent("image-paste",{bubbles:!0,detail:{files:e.clipboardData.files}});return e.target.dispatchEvent(r),!0}}}})]}});var Yt=r(90488),Vt=r(93427),Kt=r(92223),Qt=r(85961);const Jt=r(30865).Z;var Xt=r(26667),te=r(69124);function ee(t){return function(t){if(Array.isArray(t))return ne(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return ne(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ne(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ne(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function re(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function oe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const ie=Xt.ZP.extend({addOptions:function(){return{nested:!0,HTMLAttributes:{}}},draggable:!1,content:"paragraph block*",addAttributes:function(){var t=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?re(Object(n),!0).forEach((function(e){oe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this.parent());return t.checked.parseHTML=function(t){var e;return null===(e=t.querySelector("input[type=checkbox]"))||void 0===e?void 0:e.checked},t},parseHTML:[{priority:101,tag:"li",getAttrs:function(t){return t.querySelector("input[type=checkbox]")},context:"taskList/"}],renderHTML:function(t){var e=t.node,n=t.HTMLAttributes,r={class:"checkbox-item"},i={type:"checkbox",class:"",contenteditable:!1};return e.attrs.checked&&(i.checked=!0,r.class+=" checked"),["li",(0,o.P1)(n,r),["input",i],["label",0]]},addNodeView:!1,toMarkdown:function(t,e){t.write("[".concat(e.attrs.checked?"x":" ","] ")),t.renderContent(e)},addInputRules:function(){return[].concat(ee(this.parent()),[(0,o.S0)({find:/^\s*([-+*])\s(\[(x|X|\s)?\])\s$/,type:this.type,getAttributes:function(t){return{checked:"xX".includes(t[t.length-1])}}})])},addProseMirrorPlugins:function(){return[new vt.Sy({props:{handleClick:function(t,e,n){var r=t.state,o=r.schema,i=t.posAtCoords({left:n.clientX,top:n.clientY}),a=r.doc.resolve(i.pos),s=(0,te.qv)(a,(function(t){return t.type===o.nodes.taskItem||t.type===o.nodes.listItem}));if("li"===n.target.tagName.toLowerCase()&&s&&s.node.type===o.nodes.taskItem&&t.editable){var l=r.tr;l.setNodeMarkup(s.pos,o.nodes.taskItem,{checked:!s.node.attrs.checked}),t.dispatch(l)}}}})]}});const ae=r(34746).Z.extend({parseHTML:[{priority:100,tag:"ul.contains-task-list"}],toMarkdown:function(t,e){t.renderList(e," ",(function(){return(e.attrs.bullet||"*")+" "}))}});var se=r(79068),le=r(29802),ce=r(18802),de=r(53322);function ue(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ae(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ae(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ae(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var he=function(t){var e=t.lastIndexOf("/");return e>0?t.slice(0,e):t.slice(0,e+1)},pe=function(t,e){var n=t.attrs.href;if(!n)return n;if(n.match(/^[a-zA-Z]*:/))return n;if(n.startsWith("#"))return n;var r=n.match(/^([^?]*)\?fileId=(\d+)/);if(r){var o=ue(r,3),i=o[1],a=o[2],s=function(t,e){if(!e)return t;if("/"===e[0])return e;for(t=t.split("/"),e=e.split("/");".."===e[0]||"."===e[0];)".."===e[0]&&t.pop(),e.shift();return t.concat(e).join("/")}(he(e||OCA.Viewer.file),he(i));return i.length>1&&i.endsWith("/")?(0,wt.generateUrl)("/apps/files/?dir=".concat(s,"&fileId=").concat(a)):(0,wt.generateUrl)("/apps/files/?dir=".concat(s,"&openfile=").concat(a,"#relPath=").concat(i))}return n},fe=function(t){var e=t.getAttribute("href");if(!e)return e;var n=e.match(/\?dir=([^&]*)&openfile=([^&]*)#relPath=([^&]*)/);if(n){var r=ue(n,4),o=r[2],i=r[3];return"".concat(i,"?fileId=").concat(o)}return e},me=function(t,e){var n=t.target.closest("a").href,r=OC.parseQueryString(n),o=n.split("#").pop(),i=OC.parseQueryString(o);if(null!=r&&r.dir&&null!=i&&i.relPath){var a=i.relPath.split("/").pop(),s="".concat(r.dir,"/").concat(a);return document.title="".concat(a," - ").concat(OC.theme.title),window.location.pathname.match(/apps\/files\/$/),void OCA.Viewer.open({path:s})}if(null==r||!r.fileId){if(!de.Z.validateLink(n))return _t.k.error("Invalid link",{htmlHref:n}),!1;if(o){var l=document.getElementById(o);if(l)return l.scrollIntoView(),void(window.location.hash=o)}return window.open(n),!0}window.open((0,wt.generateUrl)("/f/".concat(r.fileId)),"_self")},ge=function(t){t.editor;var e=t.type,n=t.onClick;return new vt.Sy({props:{key:new vt.H$("textLink"),handleClick:function(t,r,o){var i=t.state.doc.resolve(r).marks().find((function(t){return t.type.name===e.name}));return!!i&&(i.attrs.href?0!==o.button||o.ctrlKey?void 0:(o.stopPropagation(),null==n?void 0:n(o,i.attrs)):(_t.k.warn("Could not determine href of link."),_t.k.debug("Link",{link:i}),!1))}}})};function ve(t){return function(t){if(Array.isArray(t))return Ce(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Ce(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ce(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ce(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function be(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ye(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?be(Object(n),!0).forEach((function(e){xe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function xe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var we=ce.Z.extend({addOptions:function(){var t;return ye(ye({},null===(t=this.parent)||void 0===t?void 0:t.call(this)),{},{onClick:me,relativePath:null})},addAttributes:function(){return{href:{default:null},title:{default:null}}},inclusive:!1,parseHTML:[{tag:"a[href]",getAttrs:function(t){return{href:fe(t),title:t.getAttribute("title")}}}],renderHTML:function(t){var e=t.mark;return["a",ye(ye({},e.attrs),{},{href:pe(e,this.options.relativePath),rel:"noopener noreferrer nofollow"}),0]},addProseMirrorPlugins:function(){var t=this.parent().filter((function(t){return!t.key.startsWith("handleClickLink")}));return this.options.openOnClick?[].concat(ve(t),[ge({editor:this.editor,type:this.type,onClick:this.options.onClick}),new vt.Sy({props:{key:new vt.H$("textAvoidLinkClick"),handleDOMEvents:{click:function(t,e){if(!t.editable)return e.preventDefault(),!1}}}})]):t}});const ke=we;const _e=r(53418).ZP.extend({parseHTML:function(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",getAttrs:function(t){return"line-through"===t}}]},renderHTML:function(){return["s",0]},toMarkdown:{open:"~~",close:"~~",mixable:!0,expelEnclosingWhitespace:!0}});var je=r(70128);const Pe=je.d8.extend({name:"strong",addInputRules:function(){return[(0,o.Cf)({find:je.bP,type:this.type})]},addPasteRules:function(){return[(0,o.K9)({find:je.lN,type:this.type})]}});const Ee=r(53237).Z.extend({parseHTML:function(){return[{tag:"u"},{style:"text-decoration",getAttrs:function(t){return"underline"===t}}]},renderHTML:function(){return["u",0]},toMarkdown:{open:"__",close:"__",mixable:!0,expelEnclosingWhitespace:!0},addInputRules:function(){return[(0,o.Cf)({find:je.fJ,type:this.type})]},addPasteRules:function(){return[(0,o.K9)({find:je.lD,type:this.type})]}});var Me=le.ZP.extend({name:"em"});function Se(t){return function(t){if(Array.isArray(t))return Be(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Be(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Be(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Be(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Oe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ie(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Oe(Object(n),!0).forEach((function(e){De(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function De(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Te=o.hj.create({name:"RichText",addOptions:function(){return{link:{},extensions:[]}},addExtensions:function(){var t=[N.Z,se.Z,Y,V.Z,ft,Pe,Me,_e,i.ZP,O.Z,I.ZP,L,a,mt.Z,Qt.ZP,Vt.Z,Jt,ae,ie,B,Ee,qt.configure({inline:!0}),R.Z,Yt.Z,Z,Kt.Z.configure({HTMLAttributes:{class:"mention"}})];!1!==this.options.link&&t.push(ke.configure(Ie(Ie({},this.options.link),{},{openOnClick:!0,validate:function(t){return/^https?:\/\//.test(t)},relativePath:this.options.relativePath})));var e=this.options.extensions.map((function(t){return t.name}));return[].concat(Se(this.options.extensions),Se(t.filter((function(t){return!e.includes(t.name)}))))}})},9137:(t,e,n)=>{"use strict";n.d(e,{mn:()=>w,dy:()=>d,N8:()=>u,UG:()=>k.Z,pf:()=>B.Z,f3:()=>M,Ho:()=>S.Z,LA:()=>C});var r=n(19958),o=n(2376),i=n(74967);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c=new o.H$("emoji");const d=r.NB.create({name:"emoji",addOptions:function(){return{HTMLAttributes:{},suggestion:{char:":",allowedPrefixes:[" "],pluginKey:c,command:function(t){var e=t.editor,n=t.range,r=t.props;e.chain().focus().insertContentAt(n,r.native+" ").run()}}}},content:"text*",addCommands:function(){return{emoji:function(t){return function(e){return e.commands.insertContent(t.native+" ")}}}},addProseMirrorPlugins:function(){return[(0,i.ZP)(s({editor:this.editor},this.options.suggestion))]}});n(31049);const u=r.hj.create({name:"customkeymap",addKeyboardShortcuts:function(){return this.options},addProseMirrorPlugins:function(){return[new o.Sy({props:{handleKeyDown:function(t,e){var n=e.key||e.keyCode;if((e.ctrlKey||e.metaKey)&&!e.shiftKey&&("f"===n||70===n))return e.stopPropagation(),window.dispatchEvent(e),!0}}})]}});var A=n(84348);function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e,n){return e&&h(t.prototype,e),n&&h(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var f=p((function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.from=e,this.to=n,this.author=r}));function m(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function g(t,e,n){for(var r=[],o=e.mapping,i=0;i<t.length;i++){var a=t[i],s=o.map(a.from,1),l=o.map(a.to,-1);s<l&&r.push(new f(s,l,a.author))}for(var c=function(t){var e=o.maps[t],i=o.slice(t+1);e.forEach((function(e,o,a,s){!function(t,e,n,r){if(e>=n)return;for(var o,i=0;i<t.length;i++)if((o=t[i]).author===r){if(o.to>=e)break}else if(o.to>e){if(o.from<e){var a=new f(o.from,e,o.author);o.to>n?t.splice(i++,0,a):t[i++]=a}break}for(;o=t[i];)if(o.author===r){if(o.from>n)break;e=Math.min(e,o.from),n=Math.max(n,o.to),t.splice(i,1)}else{if(o.from>=n)break;if(o.to>n){t[i]=new f(n,o.to,o.author);break}t.splice(i,1)}t.splice(i,0,new f(e,n,r))}(r,i.map(a,1),i.map(s,-1),n[t])}))},d=0;d<o.maps.length;d++)c(d);return r}var v=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.blameMap=e}var e,n,r;return e=t,(n=[{key:"applyTransform",value:function(e){var n,r=null!==(n=e.getMeta("clientID"))&&void 0!==n?n:e.steps.map((function(t){return"self"}));return new t(g(this.blameMap,e,r))}}])&&m(e.prototype,n),r&&m(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();const C=r.hj.create({name:"users",addOptions:function(){return{clientID:0,color:function(t){return"#"+Math.floor(Math.abs(16777215*Math.sin(t))%16777215).toString(16)+"aa"},name:function(t){return"Unknown user "+t}}},addProseMirrorPlugins:function(){return[new o.Sy({clientID:this.options.clientID,color:this.options.color,name:this.options.name,state:{init:function(t,e){return{tracked:new v([new f(0,e.doc.content.size,null)],[],[],[]),deco:A.EH.empty}},apply:function(t,e,n,r){var o=this,i=e.tracked,a=e.decos,s=this.getState(n).tracked;return t.docChanged&&(t.getMeta("clientID")||t.setMeta("clientID",t.steps.map((function(t){return o.spec.clientID}))),s=i=i.applyTransform(t)),a=s.blameMap.map((function(t){var e=t.author;return A.p.inline(t.from,t.to,{class:"author-annotation",style:"background-color: "+o.spec.color(e)+"66;",title:o.spec.name(e)})})).filter((function(t){return null!==t})),{tracked:i,deco:A.EH.create(r.doc,a)}}},props:{decorations:function(t){return this.getState(t).deco}}})]}});var b,y=n(16560),x=n(69066);const w=r.hj.create({name:"collaboration",onCreate:function(){var t,e,n=this;this.getSendableSteps=(t=function(t){var e=(0,x._1)(t);e&&n.editor.options.editable&&n.options.onSendable({editor:n.editor,sendable:{version:e.version,steps:e.steps.map((function(t){return t.toJSON()})),clientID:e.clientID}})},e=this.options.debounce,function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];b&&clearTimeout(b),b=setTimeout((function(){t.apply(void 0,r),b=null}),e)}),this.editor.on("transaction",(function(t){var e=t.editor;n.getSendableSteps(e.state)}))},addOptions:function(){var t=this;return{version:0,clientID:Math.floor(4294967295*Math.random()),debounce:250,onSendable:function(){},update:function(e){var n=e.steps,r=e.version,o=t.editor,i=o.state,a=o.view,s=o.schema;(0,x.bo)(i)>r||a.dispatch((0,x.$E)(i,n.map((function(t){return y.h8.fromJSON(s,t.step)})),n.map((function(t){return t.clientID}))))}}},addProseMirrorPlugins:function(){return[(0,x.Cw)({version:this.options.version,clientID:this.options.clientID})]}});var k=n(73073),_=n(50137),j=n(79068),P=n(96470);const E=r.NB.create({name:"doc",content:"block",addKeyboardShortcuts:function(){var t=this;return{Tab:function(){return t.editor.commands.insertContent("\t")}}}}),M=r.hj.create({name:"PlainText",addExtensions:function(){return[E,j.Z,_.Z.configure({lowlight:P})]}});var S=n(81401),B=(n(90488),n(92223))},7166:(e,n,r)=>{"use strict";if(r.d(n,{h0:()=>D,Lz:()=>B,YZ:()=>I,tH:()=>O}),"public"==r.j)var o=r(79954);var i=r(62610),a=r(74411);if(!/^(text|viewer)$/.test(r.j))var s=r(42397);var l=r(26937),c=r(79753),d=r(52029),u=!!document.getElementById("isPublic"),A=(0,c.generateOcsUrl)("apps/text"+(u?"/public":"")+"/workspace",2);const h={name:"RichWorkspace",components:{Editor:function(){return Promise.all([r.e("vendors"),r.e("editor")]).then(r.bind(r,21993))}},props:{path:{type:String,required:!0},active:{type:Boolean,default:!0}},data:function(){return{focus:!1,folder:null,file:null,loaded:!1,ready:!1,autofocus:!1,autohide:!0,darkTheme:OCA.Accessibility&&"dark"===OCA.Accessibility.theme,enabled:OCA.Text.RichWorkspaceEnabled}},computed:{shareToken:function(){var t;return null===(t=document.getElementById("sharingToken"))||void 0===t?void 0:t.value},canCreate:function(){return!!(this.folder&&this.folder.permissions&OC.PERMISSION_CREATE)},showEmptyWorkspace:function(){return(!this.file||this.autofocus&&!this.ready)&&this.canCreate}},watch:{path:function(){this.getFileInfo()},focus:function(t){t||document.querySelector("#rich-workspace .text-editor__main").scrollTo(0,0)}},mounted:function(){this.enabled&&this.getFileInfo(),(0,i.Ld)("Text::showRichWorkspace",this.showRichWorkspace),(0,i.Ld)("Text::hideRichWorkspace",this.hideRichWorkspace),this.listenKeydownEvents()},beforeDestroy:function(){(0,i.r1)("Text::showRichWorkspace",this.showRichWorkspace),(0,i.r1)("Text::hideRichWorkspace",this.hideRichWorkspace),this.unlistenKeydownEvents()},methods:{onBlur:function(){this.listenKeydownEvents()},onFocus:function(){this.focus=!0,this.unlistenKeydownEvents()},reset:function(){var t=this;this.file=null,this.focus=!1,this.$nextTick((function(){t.creating=!1,t.getFileInfo()}))},getFileInfo:function(){var t=this;this.loaded=!1,this.autofocus=!1,this.ready=!1;var e={path:this.path};return u&&(e.shareToken=this.shareToken),l.Z.get(A,{params:e}).then((function(e){var n=e.data.ocs.data;return t.folder=n.folder||null,t.file=n.file,t.editing=!0,t.loaded=!0,!0})).catch((function(e){return e.response.data.ocs&&e.response.data.ocs.data.folder?t.folder=e.response.data.ocs.data.folder:t.folder=null,t.file=null,t.loaded=!0,t.ready=!0,t.creating=!1,!1}))},createNew:function(){var t=this;this.creating||(this.creating=!0,this.getFileInfo().then((function(e){if(!e)return window.FileList.createFile("Readme.md",{scrollTo:!1,animate:!1}).then((function(e,n){return t.getFileInfo()}))})).then((function(){t.autofocus=!0})).catch((function(t){d.k.warn("Create readme failed",{error:t})})))},showRichWorkspace:function(){this.enabled=!0,this.getFileInfo()},hideRichWorkspace:function(){this.enabled=!1},listenKeydownEvents:function(){window.addEventListener("keydown",this.onKeydown)},unlistenKeydownEvents:function(){clearInterval(this.$_timeoutAutohide),window.removeEventListener("keydown",this.onKeydown)},onTimeoutAutohide:function(){this.autohide=!0},onKeydown:function(t){"Tab"===t.key&&(clearInterval(this.$_timeoutAutohide),this.autohide=!1,this.$_timeoutAutohide=setTimeout(this.onTimeoutAutohide,7e3))}}};var p=r(93379),f=r.n(p),m=r(7795),g=r.n(m),v=r(90569),C=r.n(v),b=r(3565),y=r.n(b),x=r(19216),w=r.n(x),k=r(44589),_=r.n(k),j=r(89375),P={};P.styleTagTransform=_(),P.setAttributes=y(),P.insert=C().bind(null,"head"),P.domAPI=g(),P.insertStyleElement=w();f()(j.Z,P);j.Z&&j.Z.locals&&j.Z.locals;const E=(0,r(51900).Z)(h,(function(){var t=this,e=t._self._c;return t.enabled&&t.active?e("div",{class:{"icon-loading":!t.loaded||!t.ready,focus:t.focus,dark:t.darkTheme,creatable:t.canCreate,empty:t.showEmptyWorkspace},attrs:{id:"rich-workspace"}},[t.showEmptyWorkspace?e("a",{staticClass:"empty-workspace",attrs:{tabindex:"0"},on:{keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.createNew.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:t.createNew.apply(null,arguments)}],click:t.createNew}},[e("p",{staticClass:"placeholder"},[t._v("\n\t\t\t"+t._s(t.t("text","Add notes, lists or links …"))+"\n\t\t")])]):t._e(),t._v(" "),t.file?e("Editor",{directives:[{name:"show",rawName:"v-show",value:t.ready,expression:"ready"}],key:t.file.path,attrs:{"file-id":t.file.id,"relative-path":t.file.path,"share-token":t.shareToken,mime:t.file.mimetype,autofocus:t.autofocus,autohide:t.autohide,active:"","rich-workspace":""},on:{ready:function(e){t.ready=!0},focus:t.onFocus,blur:t.onBlur,error:t.reset}}):t._e()],1):t._e()}),[],!1,null,"681f5dbf",null).exports;var M=r(25030),S="Edit with text app",B=function(t,e){var n=t.split("/"),r=e.split("/");for(n.pop();n[0]===r[0];)if(n.shift(),r.shift(),0===n.length&&0===r.length)return".";var o=n.fill("..").concat(r),i=e.split("/");return o.length<i.length?o.join("/"):e},O=function(){var e={attach:function(e){var n=e.fileList;"files"!==n.id&&"files.public"!==n.id||e.addMenuEntry({id:"file",displayName:t("text","New text file"),templateName:t("text","New text file")+"."+(0,o.j)("text","default_file_extension"),iconClass:"icon-filetype-text",fileType:"file",actionHandler:function(t){n.createFile(t).then((function(t,e){var r=new OCA.Files.FileInfoModel(e);void 0!==OCA.Viewer?OCA.Files.fileActions.triggerAction("view",r,n):void 0===OCA.Viewer&&OCA.Files.fileActions.triggerAction(S,r,n)}))}})}};OC.Plugins.register("OCA.Files.NewFileMenu",e)},I=function(){var e=(0,s.a)(),n=document.querySelector("#preview table.files-filestable");if(!e||!n){var o=document.createElement("div");o.id="text-viewer-fallback",document.body.appendChild(o);for(var i=function(n){return OCA.Files.fileActions.register(n,S,OC.PERMISSION_UPDATE|OC.PERMISSION_READ,(0,c.imagePath)("core","actions/rename"),(function(t){var n=window.FileList.findFile(t);Promise.all([Promise.resolve().then(r.bind(r,20144)),Promise.all([r.e("vendors"),r.e("files-modal")]).then(r.bind(r,7827))]).then((function(r){var i=window.FileList.getCurrentDirectory()+"/"+t,a=r[0].default;a.prototype.t=window.t,a.prototype.n=window.n,a.prototype.OCA=window.OCA;var s=r[1].default;new a({render:function(t){var r=this;return t(s,{props:{fileId:n?n.id:null,active:!0,shareToken:e,relativePath:i,mimeType:n.mimetype},on:{close:function(){r.$destroy()}}})}}).$mount(o)}))}),t("text","Edit"))},l=0;l<a.SP.length;l++)i(a.SP[l]),OCA.Files.fileActions.setDefault(a.SP[l],S)}},D={el:null,attach:function(t){"files"!==t.id&&"files.public"!==t.id||(this.el=document.createElement("div"),t.registerHeader({id:"workspace",el:this.el,render:this.render.bind(this),priority:10}))},render:function(t){var e=this;"files"!==t.id&&"files.public"!==t.id||Promise.resolve().then(r.bind(r,20144)).then((function(n){var r=n.default;e.el.id="files-workspace-wrapper",r.prototype.t=window.t,r.prototype.n=window.n,r.prototype.OCA=window.OCA;var o=new(r.extend(E))({propsData:{path:t.getCurrentDirectory()},store:M.Z}).$mount(e.el);(0,i.Ld)("files:navigation:changed",(function(){o.active=OCA.Files.App.getCurrentFileList()===t})),t.$el.on("urlChanged",(function(t){o.path=t.dir.toString()})),t.$el.on("changeDirectory",(function(t){o.path=t.dir.toString()}))}))}}},17712:(t,e,n)=>{"use strict";n.d(e,{A:()=>o,F:()=>a});var r=n(79753),o=function(t){(document.attachEvent?"complete"===document.readyState:"loading"!==document.readyState)?setTimeout(t,0):document.addEventListener("DOMContentLoaded",t)},i=(0,r.generateUrl)("/apps/text"),a=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?"".concat(i,"/public/").concat(t):"".concat(i,"/").concat(t)}},52029:(t,e,n)=>{"use strict";n.d(e,{k:()=>r});var r=(0,n(17499).IY)().setApp("text").detectUser().build()},74411:(t,e,n)=>{"use strict";var r,o;n.d(e,{$Z:()=>i,SP:()=>l,lF:()=>a,w_:()=>s});var i=["image/png","image/jpeg","image/jpg","image/gif","image/x-xbitmap","image/x-ms-bmp","image/bmp","image/svg+xml","image/webp"],a=["text/markdown"],s=["text/plain","application/cmd","application/x-empty","application/x-msdos-program","application/javascript","application/json","application/x-perl","application/x-php","application/x-tex","application/xml","application/yaml","text/css","text/html","text/org","text/x-c","text/x-c++src","text/x-h","text/x-java-source","text/x-ldif","text/x-python","text/x-shellscript"];null!==(r=window.oc_appswebroots)&&void 0!==r&&r.richdocuments||null!==(o=window.oc_appswebroots)&&void 0!==o&&o.onlyoffice||s.push("text/csv");var l=[].concat(a,s)},42397:(t,e,n)=>{"use strict";n.d(e,{a:()=>r});var r=function(){return document.getElementById("sharingToken")?document.getElementById("sharingToken").value:null}},30744:(t,e,n)=>{"use strict";n.d(e,{F:()=>i,Z:()=>s});var r=n(40591),o=n.n(r),i=["info","warn","error","success"],a=function(t){return function(e,n,r,o,i){var a=e[n];return 1===a.nesting&&(a.attrSet("data-callout",t),a.attrJoin("class","callout callout-".concat(t))),i.renderToken(e,n,r,o,i)}};const s=function(t){return i.forEach((function(e){t.use(o(),e,{render:a(e)})})),t}},53322:(t,e,n)=>{"use strict";n.d(e,{Z:()=>p});var r=n(9980),o=n.n(r),i=n(28087),a=n(17251),s=n.n(a);function l(t,e){var n;return(null===(n=t.attrGet("class"))||void 0===n?void 0:n.split(" ").includes(e))||!1}var c=n(30744);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function u(){u=function(t,e){return new n(t,void 0,e)};var t=RegExp.prototype,e=new WeakMap;function n(t,r,o){var i=new RegExp(t,r);return e.set(i,o||e.get(t)),h(i,n.prototype)}function r(t,n){var r=e.get(n);return Object.keys(r).reduce((function(e,n){var o=r[n];if("number"==typeof o)e[n]=t[o];else{for(var i=0;void 0===t[o[i]]&&i+1<o.length;)i++;e[n]=t[o[i]]}return e}),Object.create(null))}return A(n,RegExp),n.prototype.exec=function(e){var n=t.exec.call(this,e);return n&&(n.groups=r(n,this)),n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var i=e.get(this);return t[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(t,e){return"$"+i[e]})))}if("function"==typeof o){var a=this;return t[Symbol.replace].call(this,n,(function(){var t=arguments;return"object"!=d(t[t.length-1])&&(t=[].slice.call(t)).push(r(t,a)),o.apply(this,t)}))}return t[Symbol.replace].call(this,n,o)},u.apply(this,arguments)}function A(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}const p=o()("commonmark",{html:!1,breaks:!1}).enable("strikethrough").enable("table").use(i.Z,{enable:!0,labelAfter:!0}).use((function(t){t.core.ruler.after("task-lists","split-mixed-task-lists",(function(t){for(var e=t.tokens,n=function(n){var r=e[n];if(!l(r,"contains-task-list"))return"continue";var o=l(e[n+1],"task-list-item");o||(r.attrs.splice(r.attrIndex("class")),0===r.attrs.length&&(r.attrs=null));var i=function(t,e,n){for(var r=t[e].level+1,o=e+1;o<t.length;o++){var i=t[o];if(i.level<r)return-1;if(i.level===r&&n(t[o]))return o}return-1}(e,n,(function(t){return 1===t.nesting&&l(t,"task-list-item")!==o}));i>n&&function(t,e,n){var r=new n("bullet_list_close","ul",-1);r.block=!0;var o=new n("bullet_list_open","ul",1);o.attrSet("class","contains-task-list"),o.block=!0,t.splice(e,0,r,o)}(e,i,t.Token)},r=0;r<e.length;r++)n(r);return!1}))})).use((function(t){t.inline.ruler2.after("emphasis","underline",(function(t){for(var e=t.tokens,n=e.length-1;n>0;n--){var r=e[n];"__"===r.markup&&("strong_open"===r.type&&(e[n].tag="u",e[n].type="u_open"),"strong_close"===r.type&&(e[n].tag="u",e[n].type="u_close"))}return!1}))})).use(c.Z).use((function(t){var e=u(/(\n([#\-*+>])|([`*\\~[\]]+))/,{linestart:2,special:3});t.core.ruler.before("text_join","tag-markdown-syntax",(function(t){var n=new t.Token("keep_md_open","span",1);n.attrSet("class","keep-md");for(var r=new t.Token("keep_md_close","span",-1),o=0;o<t.tokens.length;o++){var i=t.tokens[o];if("inline"===i.type)for(var a=0;a<i.children.length;a++){var s=i.children[a];if("text"===s.type){var l=e.exec(s.content);if(l){var c,d=l.groups.linestart?l.index+1:l.index,u=d+(null!==(c=l.groups.linestart)&&void 0!==c?c:l.groups.special).length;i.children.splice(a,1,Object.assign({},s,{content:s.content.slice(0,d)}),Object.assign({},n),Object.assign({},s,{content:s.content.slice(d,u)}),Object.assign({},r),Object.assign({},s,{content:s.content.slice(u)})),a+=3}}}}return!1}))})).use(s())},13815:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(25030);const o={data:function(){return{$store:r.Z}},beforeMount:function(){void 0===this.$store&&(this.$store=r.Z)}}},30865:(t,e,n)=>{"use strict";n.d(e,{Z:()=>f});var r=n(19958),o=n(20510),i=n(79007),a=n(17209),s=n(79307),l=n(89044),c=n(70650),d=n(2376),u=n(42302);function A(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?A(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const f=o.iA.extend({content:"tableCaption? tableHeadRow tableRow*",addExtensions:function(){return[i.Z,a.Z,s.Z,l.Z,c.Z]},addCommands:function(){return h(h({},this.parent()),{},{insertTable:function(){return function(t){var e=t.tr,n=t.dispatch,r=t.editor;if((0,u.Lw)(e))return!1;var o=function(t,e,n,r){for(var o=[],i=[],a=0;a<n;a+=1){var s=t.nodes.tableCell.createAndFill();s&&i.push(s);var l=t.nodes.tableHeader.createAndFill();l&&o.push(l)}for(var c=t.nodes.tableHeadRow.createChecked(null,o),d=[],u=1;u<e;u+=1)d.push(t.nodes.tableRow.createChecked(null,i));return t.nodes.table.createChecked(null,[c].concat(d))}(r.schema,3,3);if(n){var i=e.selection.anchor+1;e.replaceSelectionWith(o).scrollIntoView().setSelection(d.Bs.near(e.doc.resolve(i)))}return!0}},leaveTable:function(){return function(t){var e=t.tr,n=t.dispatch;t.editor;if(!(0,u.Lw)(e))return!1;var r=e.selection,o=r.$head;if(!r.empty)return!1;var i=o.depth<3?1:o.depth-2;if(n){var a=e.doc.resolve(o.after(i)+1),s=d.Bs.near(a);n(e.setSelection(s).scrollIntoView())}return!0}},goToNextRow:function(){return function(t){var e=t.tr,n=t.dispatch;t.editor;if(!(0,u.Lw)(e))return!1;var r=function(t){if(t.index(-1)===t.node(-1).childCount-1)return null;for(var e=t.after(),n=t.node(-1),r=t.indexAfter(-1);r<n.childCount;r++){var o=n.child(r);if(o.childCount>=t.index()){for(var i=0;i<t.index();i++)e+=o.child(i).nodeSize;return e+1}e+=o.nodeSize}}((0,u.Le)(e));if(null!=r){if(n){var o=e.doc.resolve(r),i=d.Bs.between(o,(0,u.SZ)(o));n(e.setSelection(i).scrollIntoView())}return!0}}}})},renderHTML:function(t){var e=t.HTMLAttributes;return["table",(0,r.P1)(this.options.HTMLAttributes,e),0]},toMarkdown:function(t,e){t.renderContent(e),t.closeBlock(e)},addKeyboardShortcuts:function(){var t=this;return h(h({},this.parent()),{},{Tab:function(){return t.editor.commands.goToNextCell()||t.editor.commands.leaveTable()},Enter:function(){return!!t.editor.commands.goToNextRow()||!!t.editor.can().addRowAfter()&&t.editor.chain().addRowAfter().goToNextRow().run()}})}})},79007:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=n(19958).NB.create({name:"tableCaption",content:"inline*",addAttributes:function(){return{}},renderHTML:function(){return["caption"]},toMarkdown:function(t,e){},parseHTML:function(){return[{tag:"table caption",priority:90}]}})},17209:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=n(29467).p.extend({content:"inline*",toMarkdown:function(t,e){var n;t.write(" ");var r=null===(n=t.options)||void 0===n?void 0:n.escapeExtraCharacters;t.options.escapeExtraCharacters=/\|/,t.renderInline(e),t.options.escapeExtraCharacters=r,t.write(" |")},parseHTML:function(){return[{tag:"td"},{tag:"th"},{tag:"table thead ~ tbody th",priority:70},{tag:"table thead ~ tbody td",priority:70}]}})},89044:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=n(70650).Z.extend({name:"tableHeadRow",content:"tableHeader*",toMarkdown:function(t,e){t.write("|"),t.renderInline(e),t.ensureNewLine(),t.write("|"),e.forEach((function(e){t.write(t.repeat("-",e.textContent.length+2)),t.write("|")})),t.ensureNewLine()},parseHTML:function(){return[{tag:"tr",priority:70}]}})},79307:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=n(82992).x.extend({content:"inline*",toMarkdown:function(t,e){t.write(" "),t.renderInline(e),t.write(" |")},parseHTML:function(){return[{tag:"table thead:empty ~ tbody :first-child th",priority:80},{tag:"table thead:empty ~ tbody :first-child td",priority:80},{tag:"table thead :first-child th",priority:60},{tag:"table thead :first-child td",priority:60},{tag:"table tbody :first-child th",priority:60},{tag:"table tbody :first-child td",priority:60},{tag:"table > :first-child > th",priority:60},{tag:"table > :first-child > td",priority:60}]}})},70650:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=n(40157).S.extend({content:"tableCell*",toMarkdown:function(t,e){t.write("|"),t.renderInline(e),t.ensureNewLine()},parseHTML:function(){return[{tag:"tr",priority:80}]}})},25030:(t,e,n)=>{"use strict";n.d(e,{Z:()=>C});var r=n(20144),o=n(20629),i=n(62556),a="SET_VIEW_WIDTH",s="SET_SHOW_AUTHOR_ANNOTATIONS",l="SET_CURRENT_SESSION",c="SET_HEADINGS",d=n(20296),u=n.n(d),A=function(){return document.documentElement.clientWidth};const h=function(t){var e=t.commit,n=u()((function(){e(a,A())}),100);window.addEventListener("resize",n)};var p;function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var v=(0,i.getBuilder)("text").persist().build();r.default.use(o.ZP);const C=new o.yh({plugins:[h],state:{showAuthorAnnotations:"true"===v.getItem("showAuthorAnnotations"),currentSession:v.getItem("currentSession"),viewWidth:A(),headings:Object.freeze([])},mutations:(p={},g(p,a,(function(t,e){t.viewWidth=e})),g(p,s,(function(t,e){t.showAuthorAnnotations=e,v.setItem("showAuthorAnnotations",""+e)})),g(p,l,(function(t,e){t.currentSession=e,v.setItem("currentSession",e)})),g(p,c,(function(t,e){if(t.headings.length===e.length){var n=t.headings,r=e.map((function(t,e){var r=n[e].level;return Object.freeze(m(m({},t),{},{previous:r}))}));t.headings=Object.freeze(r)}else t.headings=Object.freeze(e)})),p),getters:{isMobileView:function(t){return t.viewWidth<768},hasHeadings:function(t){return t.headings.length>0}},actions:{setShowAuthorAnnotations:function(t,e){(0,t.commit)(s,e)},setCurrentSession:function(t,e){(0,t.commit)(l,e)},setHeadings:function(t,e){(0,t.commit)(c,e)}}})},97646:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".text-menubar .entry-action.is-active:not(.entry-action-item),.v-popper__inner .entry-action.is-active:not(.entry-action-item),.text-menubar button.entry-action__button.is-active,.v-popper__inner button.entry-action__button.is-active{opacity:1;background-color:var(--color-primary-light);border-radius:50%}.text-menubar .entry-action.is-active:not(.entry-action-item) .material-design-icon>svg,.v-popper__inner .entry-action.is-active:not(.entry-action-item) .material-design-icon>svg,.text-menubar button.entry-action__button.is-active .material-design-icon>svg,.v-popper__inner button.entry-action__button.is-active .material-design-icon>svg{fill:var(--color-primary)}.text-menubar button.entry-action__button,.v-popper__inner button.entry-action__button{height:44px;margin:0;border:0;position:relative;color:var(--color-main-text);background-color:rgba(0,0,0,0);vertical-align:top;box-shadow:none;padding:0}.text-menubar button.entry-action__button p,.v-popper__inner button.entry-action__button p{padding:0}.text-menubar button.entry-action__button:is(li.entry-action-item button),.v-popper__inner button.entry-action__button:is(li.entry-action-item button){padding:0 .5em 0 0}.text-menubar button.entry-action__button:not(li.entry-action-item button),.v-popper__inner button.entry-action__button:not(li.entry-action-item button){width:44px}.text-menubar button.entry-action__button:hover,.text-menubar button.entry-action__button:focus,.text-menubar button.entry-action__button:active,.v-popper__inner button.entry-action__button:hover,.v-popper__inner button.entry-action__button:focus,.v-popper__inner button.entry-action__button:active{background-color:var(--color-background-dark)}.text-menubar button.entry-action__button:hover:not(:disabled),.text-menubar button.entry-action__button:focus:not(:disabled),.text-menubar button.entry-action__button:active:not(:disabled),.v-popper__inner button.entry-action__button:hover:not(:disabled),.v-popper__inner button.entry-action__button:focus:not(:disabled),.v-popper__inner button.entry-action__button:active:not(:disabled){box-shadow:var(--color-primary)}.text-menubar button.entry-action__button:hover,.text-menubar button.entry-action__button:focus,.v-popper__inner button.entry-action__button:hover,.v-popper__inner button.entry-action__button:focus{opacity:1}.text-menubar button.entry-action__button:focus-visible,.v-popper__inner button.entry-action__button:focus-visible{box-shadow:var(--color-primary)}.text-menubar .entry-action.entry-action-item.is-active,.v-popper__inner .entry-action.entry-action-item.is-active{background-color:var(--color-primary-light);border-radius:var(--border-radius-large)}.text-menubar .button-vue svg,.v-popper__inner .button-vue svg{fill:var(--color-main-text)}.text-menubar .action-item__menutoggle.action-item__menutoggle--with-icon-slot,.v-popper__inner .action-item__menutoggle.action-item__menutoggle--with-icon-slot{opacity:1}","",{version:3,sources:["webpack://./src/components/Menu/ActionEntry.scss"],names:[],mappings:"AAAA,0OACC,SAAA,CACA,2CAAA,CACA,iBAAA,CACA,kVACC,yBAAA,CAKD,uFACC,WAAA,CACA,QAAA,CACA,QAAA,CAEA,iBAAA,CACA,4BAAA,CACA,8BAAA,CACA,kBAAA,CACA,eAAA,CACA,SAAA,CAEA,2FACC,SAAA,CAGD,uJACC,kBAAA,CAGD,yJACC,UAAA,CAGD,2SAGC,6CAAA,CACA,qYACC,+BAAA,CAIF,sMAEC,SAAA,CAED,mHACC,+BAAA,CAaD,mHACC,2CAAA,CACA,wCAAA,CAKD,+DACC,2BAAA,CAIF,iKACC,SAAA",sourcesContent:["%text__is-active-item-btn {\n\topacity: 1;\n\tbackground-color: var(--color-primary-light);\n\tborder-radius: 50%;\n\t.material-design-icon > svg {\n\t\tfill: var(--color-primary);\n\t}\n}\n\n.text-menubar, .v-popper__inner {\n\tbutton.entry-action__button {\n\t\theight: 44px;\n\t\tmargin: 0;\n\t\tborder: 0;\n\t\t// opacity: 0.5;\n\t\tposition: relative;\n\t\tcolor: var(--color-main-text);\n\t\tbackground-color: transparent;\n\t\tvertical-align: top;\n\t\tbox-shadow: none;\n\t\tpadding: 0;\n\n\t\tp {\n\t\t\tpadding: 0;\n\t\t}\n\n\t\t&:is(li.entry-action-item button) {\n\t\t\tpadding: 0 0.5em 0 0;\n\t\t}\n\n\t\t&:not(li.entry-action-item button) {\n\t\t\twidth: 44px;\n\t\t}\n\n\t\t&:hover,\n\t\t&:focus,\n\t\t&:active {\n\t\t\tbackground-color: var(--color-background-dark);\n\t\t\t&:not(:disabled) {\n\t\t\t\tbox-shadow: var(--color-primary);\n\t\t\t}\n\t\t}\n\n\t\t&:hover,\n\t\t&:focus {\n\t\t\topacity: 1;\n\t\t}\n\t\t&:focus-visible {\n\t\t\tbox-shadow: var(--color-primary);\n\t\t}\n\n\t\t&.is-active {\n\t\t\t@extend %text__is-active-item-btn;\n\t\t}\n\t}\n\n\t.entry-action.is-active:not(.entry-action-item) {\n\t\t@extend %text__is-active-item-btn;\n\t}\n\n\t.entry-action.entry-action-item {\n\t\t&.is-active {\n\t\t\tbackground-color: var(--color-primary-light);\n\t\t\tborder-radius: var(--border-radius-large);\n\t\t}\n\t}\n\n\t.button-vue {\n\t\tsvg {\n\t\t\tfill: var(--color-main-text);\n\t\t}\n\t}\n\n\t.action-item__menutoggle.action-item__menutoggle--with-icon-slot {\n\t\topacity: 1;\n\t}\n}\n"],sourceRoot:""}]);const s=a},70060:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,"#resolve-conflicts[data-v-4a5d4c0f]{display:flex;position:fixed;z-index:10000;bottom:0;max-width:900px;width:100vw;margin:auto;padding:20px 0}#resolve-conflicts button[data-v-4a5d4c0f]{margin:auto;box-shadow:0 0 10px var(--color-box-shadow)}","",{version:3,sources:["webpack://./src/components/CollisionResolveDialog.vue"],names:[],mappings:"AACA,oCACC,YAAA,CACA,cAAA,CACA,aAAA,CACA,QAAA,CACA,eAAA,CACA,WAAA,CACA,WAAA,CACA,cAAA,CAEA,2CACC,WAAA,CACA,2CAAA",sourcesContent:["\n#resolve-conflicts {\n\tdisplay: flex;\n\tposition: fixed;\n\tz-index: 10000;\n\tbottom: 0;\n\tmax-width: 900px;\n\twidth: 100vw;\n\tmargin: auto;\n\tpadding: 20px 0;\n\n\tbutton {\n\t\tmargin: auto;\n\t\tbox-shadow: 0 0 10px var(--color-box-shadow);\n\t}\n}\n"],sourceRoot:""}]);const s=a},18288:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".modal-container .text-editor[data-v-69b2c57d]{top:0;height:calc(100vh - var(--header-height))}.text-editor[data-v-69b2c57d]{display:block;width:100%;max-width:100%;height:100%;left:0;margin:0 auto;position:relative;background-color:var(--color-main-background)}.text-editor .text-editor__wrapper.has-conflicts[data-v-69b2c57d]{height:calc(100% - 50px)}.text-editor .text-editor__wrapper.has-conflicts .text-editor__main[data-v-69b2c57d],.text-editor .text-editor__wrapper.has-conflicts #read-only-editor[data-v-69b2c57d]{width:50%;height:100%}#body-public[data-v-69b2c57d]{height:auto}#files-public-content .text-editor[data-v-69b2c57d]{top:0;width:100%}#files-public-content .text-editor .text-editor__main[data-v-69b2c57d]{overflow:auto;z-index:20}#files-public-content .text-editor .has-conflicts .text-editor__main[data-v-69b2c57d]{padding-top:0}.menubar-placeholder[data-v-69b2c57d],.text-editor--readonly-bar[data-v-69b2c57d]{position:fixed;position:-webkit-sticky;position:sticky;top:0;opacity:0;visibility:hidden;height:44px;padding-top:3px;padding-bottom:3px}.text-editor--readonly-bar[data-v-69b2c57d],.menubar-placeholder--with-slot[data-v-69b2c57d]{opacity:unset;visibility:unset;z-index:50;max-width:var(--text-editor-max-width);margin:auto;width:100%;background-color:var(--color-main-background)}","",{version:3,sources:["webpack://./src/components/Editor.vue"],names:[],mappings:"AACA,+CACC,KAAA,CACA,yCAAA,CAGD,8BACC,aAAA,CACA,UAAA,CACA,cAAA,CACA,WAAA,CACA,MAAA,CACA,aAAA,CACA,iBAAA,CACA,6CAAA,CAGD,kEACC,wBAAA,CAEA,yKACC,SAAA,CACA,WAAA,CAIF,8BACC,WAAA,CAIA,oDACC,KAAA,CACA,UAAA,CAEA,uEACC,aAAA,CACA,UAAA,CAED,sFACC,aAAA,CAKH,kFAEC,cAAA,CACA,uBAAA,CACA,eAAA,CACA,KAAA,CACA,SAAA,CACA,iBAAA,CACA,WAAA,CACA,eAAA,CACA,kBAAA,CAGD,6FAEC,aAAA,CACA,gBAAA,CAEA,UAAA,CACA,sCAAA,CACA,WAAA,CACA,UAAA,CACA,6CAAA",sourcesContent:["\n.modal-container .text-editor {\n\ttop: 0;\n\theight: calc(100vh - var(--header-height));\n}\n\n.text-editor {\n\tdisplay: block;\n\twidth: 100%;\n\tmax-width: 100%;\n\theight: 100%;\n\tleft: 0;\n\tmargin: 0 auto;\n\tposition: relative;\n\tbackground-color: var(--color-main-background);\n}\n\n.text-editor .text-editor__wrapper.has-conflicts {\n\theight: calc(100% - 50px);\n\n\t.text-editor__main, #read-only-editor {\n\t\twidth: 50%;\n\t\theight: 100%;\n\t}\n}\n\n#body-public {\n\theight: auto;\n}\n\n#files-public-content {\n\t.text-editor {\n\t\ttop: 0;\n\t\twidth: 100%;\n\n\t\t.text-editor__main {\n\t\t\toverflow: auto;\n\t\t\tz-index: 20;\n\t\t}\n\t\t.has-conflicts .text-editor__main {\n\t\t\tpadding-top: 0;\n\t\t}\n\t}\n}\n\n.menubar-placeholder,\n.text-editor--readonly-bar {\n\tposition: fixed;\n\tposition: -webkit-sticky;\n\tposition: sticky;\n\ttop: 0;\n\topacity: 0;\n\tvisibility: hidden;\n\theight: 44px; // important for mobile so that the buttons are always inside the container\n\tpadding-top:3px;\n\tpadding-bottom: 3px;\n}\n\n.text-editor--readonly-bar,\n.menubar-placeholder--with-slot {\n\topacity: unset;\n\tvisibility: unset;\n\n\tz-index: 50;\n\tmax-width: var(--text-editor-max-width);\n\tmargin: auto;\n\twidth: 100%;\n\tbackground-color: var(--color-main-background);\n}\n\n"],sourceRoot:""}]);const s=a},78658:(t,e,n)=>{"use strict";n.d(e,{Z:()=>A});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i),s=n(61667),l=n.n(s),c=new URL(n(64989),n.b),d=a()(o()),u=l()(c);d.push([t.id,':root{--text-editor-max-width: 670px }.modal-container .text-editor{position:absolute}.ProseMirror-hideselection{caret-color:rgba(0,0,0,0);color:var(--color-main-text)}.ProseMirror-hideselection *::selection{background:rgba(0,0,0,0);color:var(--color-main-text)}.ProseMirror-hideselection *::-moz-selection{background:rgba(0,0,0,0);color:var(--color-main-text)}.ProseMirror-selectednode{outline:2px solid #8cf}li.ProseMirror-selectednode{outline:none}li.ProseMirror-selectednode:after{content:"";position:absolute;left:-32px;right:-2px;top:-2px;bottom:-2px;border:2px solid #8cf;pointer-events:none}.has-conflicts .ProseMirror-menubar,.text-editor__wrapper.icon-loading .ProseMirror-menubar{display:none}.ProseMirror-gapcursor{display:none;pointer-events:none;position:absolute}.ProseMirror-gapcursor:after{content:"";display:block;position:absolute;top:-2px;width:20px;border-top:1px solid var(--color-main-text);animation:ProseMirror-cursor-blink 1.1s steps(2, start) infinite}@keyframes ProseMirror-cursor-blink{to{visibility:hidden}}.animation-rotate{animation:rotate var(--animation-duration, 0.8s) linear infinite}[data-handler=text]{background-color:var(--color-main-background);border-top:3px solid var(--color-primary-element)}[data-handler=text] .modal-title{font-weight:bold}@keyframes fadeInDown{from{opacity:0;transform:translate3d(0, -100%, 0)}to{opacity:1;transform:translate3d(0, 0, 0)}}@keyframes fadeInLeft{from{opacity:0;transform:translate3d(-100%, 0, 0)}to{opacity:1;transform:translate3d(0, 0, 0)}}.fadeInLeft{animation-name:fadeInLeft}@media print{@page{size:A4;margin:2.5cm 2cm 2cm 2.5cm}body{position:absolute;overflow:visible !important}#viewer[data-handler=text]{border:none;width:100% !important;position:absolute !important}#viewer[data-handler=text] .modal-header{display:none !important}#viewer[data-handler=text] .modal-container{top:0px;height:fit-content}.text-editor .text-menubar{display:none !important}.text-editor .action-item{display:none !important}.text-editor .editor__content{max-width:100%}.text-editor .text-editor__wrapper{height:fit-content;position:unset}.text-editor div.ProseMirror h1,.text-editor div.ProseMirror h2,.text-editor div.ProseMirror h3,.text-editor div.ProseMirror h4,.text-editor div.ProseMirror h5{break-after:avoid}.text-editor div.ProseMirror .image,.text-editor div.ProseMirror img,.text-editor div.ProseMirror table{break-inside:avoid-page;max-width:90% !important;margin:5vw auto 5vw 5% !important}.text-editor div.ProseMirror th{color:#000 !important;font-weight:bold !important;border-width:0 1px 2px 0 !important;border-color:gray !important;border-style:none solid solid none !important}.text-editor div.ProseMirror th:last-of-type{border-width:0 0 2px 0 !important}.text-editor div.ProseMirror td{border-style:none solid none none !important;border-width:1px !important;border-color:gray !important}.text-editor div.ProseMirror td:last-of-type{border:none !important}.menubar-placeholder,.text-editor--readonly-bar{display:none}.text-editor__content-wrapper.--show-outline{display:block}.text-editor__content-wrapper .editor--outline{width:auto;height:auto;overflow:unset;position:relative}.text-editor__content-wrapper .editor--outline__btn-close{display:none}}.text-editor__wrapper div.ProseMirror{height:100%;position:relative;word-wrap:break-word;white-space:pre-wrap;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;padding:4px 8px 200px 14px;line-height:150%;font-size:14px;outline:none}.text-editor__wrapper div.ProseMirror :target{scroll-margin-top:50px}.text-editor__wrapper div.ProseMirror[contenteditable=true],.text-editor__wrapper div.ProseMirror[contenteditable=false],.text-editor__wrapper div.ProseMirror [contenteditable=true],.text-editor__wrapper div.ProseMirror [contenteditable=false]{border:none !important;width:100%;background-color:rgba(0,0,0,0);color:var(--color-main-text);opacity:1;-webkit-user-select:text;user-select:text;font-size:14px}.text-editor__wrapper div.ProseMirror[contenteditable=true]:focus,.text-editor__wrapper div.ProseMirror[contenteditable=true]:focus-visible,.text-editor__wrapper div.ProseMirror[contenteditable=false]:focus,.text-editor__wrapper div.ProseMirror[contenteditable=false]:focus-visible,.text-editor__wrapper div.ProseMirror [contenteditable=true]:focus,.text-editor__wrapper div.ProseMirror [contenteditable=true]:focus-visible,.text-editor__wrapper div.ProseMirror [contenteditable=false]:focus,.text-editor__wrapper div.ProseMirror [contenteditable=false]:focus-visible{box-shadow:none !important}.text-editor__wrapper div.ProseMirror .checkbox-item{display:flex;align-items:start;margin-left:-23px}.text-editor__wrapper div.ProseMirror .checkbox-item input[type=checkbox]{display:none}.text-editor__wrapper div.ProseMirror .checkbox-item:before{content:"";vertical-align:middle;margin:3px 6px 3px 2px;border:1px solid var(--color-text-maxcontrast);position:relative;display:block;border-radius:var(--border-radius);height:14px;width:14px;box-shadow:none !important;background-position:center;cursor:pointer}.text-editor__wrapper div.ProseMirror .checkbox-item.checked:before{background-image:url('+u+');background-color:var(--color-primary-element);border-color:var(--color-primary-element)}.text-editor__wrapper div.ProseMirror .checkbox-item.checked label{color:var(--color-text-maxcontrast);text-decoration:line-through}.text-editor__wrapper div.ProseMirror .checkbox-item label{display:block;flex-grow:1;max-width:calc(100% - 28px)}.text-editor__wrapper div.ProseMirror>*:first-child{margin-top:10px}.text-editor__wrapper div.ProseMirror>h1:first-child,.text-editor__wrapper div.ProseMirror h2:first-child,.text-editor__wrapper div.ProseMirror h3:first-child,.text-editor__wrapper div.ProseMirror h4:first-child,.text-editor__wrapper div.ProseMirror h5:first-child,.text-editor__wrapper div.ProseMirror h6:first-child{margin-top:0}.text-editor__wrapper div.ProseMirror a{color:var(--color-primary-element);text-decoration:underline;padding:.5em 0}.text-editor__wrapper div.ProseMirror p{margin-bottom:1em;line-height:150%}.text-editor__wrapper div.ProseMirror em{font-style:italic}.text-editor__wrapper div.ProseMirror h1,.text-editor__wrapper div.ProseMirror h2,.text-editor__wrapper div.ProseMirror h3,.text-editor__wrapper div.ProseMirror h4,.text-editor__wrapper div.ProseMirror h5,.text-editor__wrapper div.ProseMirror h6{font-weight:600;line-height:1.1em;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}.text-editor__wrapper div.ProseMirror h1{font-size:36px}.text-editor__wrapper div.ProseMirror h2{font-size:30px}.text-editor__wrapper div.ProseMirror h3{font-size:24px}.text-editor__wrapper div.ProseMirror h4{font-size:21px}.text-editor__wrapper div.ProseMirror h5{font-size:17px}.text-editor__wrapper div.ProseMirror h6{font-size:14px}.text-editor__wrapper div.ProseMirror img{cursor:default;max-width:100%}.text-editor__wrapper div.ProseMirror hr{padding:2px 0;border:none;margin:2em 0;width:100%}.text-editor__wrapper div.ProseMirror hr:after{content:"";display:block;height:1px;background-color:var(--color-border-dark);line-height:2px}.text-editor__wrapper div.ProseMirror pre{white-space:pre-wrap;background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:1em 1.3em;margin-bottom:1em}.text-editor__wrapper div.ProseMirror pre.frontmatter{margin-bottom:2em;border-left:4px solid var(--color-primary-element)}.text-editor__wrapper div.ProseMirror pre.frontmatter::before{display:block;content:attr(data-title);color:var(--color-text-maxcontrast);padding-bottom:.5em}.text-editor__wrapper div.ProseMirror p code{background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:.1em .3em}.text-editor__wrapper div.ProseMirror li{position:relative;padding-left:3px}.text-editor__wrapper div.ProseMirror li p{margin-bottom:.5em}.text-editor__wrapper div.ProseMirror ul,.text-editor__wrapper div.ProseMirror ol{padding-left:10px;margin-left:10px;margin-bottom:1em}.text-editor__wrapper div.ProseMirror ul>li{list-style-type:disc}.text-editor__wrapper div.ProseMirror li ul>li{list-style-type:circle}.text-editor__wrapper div.ProseMirror li li ul>li{list-style-type:square}.text-editor__wrapper div.ProseMirror blockquote{padding-left:1em;border-left:4px solid var(--color-primary-element);color:var(--color-text-maxcontrast);margin-left:0;margin-right:0}:root{--table-color-border: var(--color-border);--table-color-heading: var(--color-text-maxcontrast);--table-color-heading-border: var(--color-border-dark);--table-color-background: var(--color-main-background);--table-color-background-hover: var(--color-primary-light);--table-border-radius: var(--border-radius)}.text-editor__wrapper div.ProseMirror table{border-spacing:0;width:calc(100% - 50px);table-layout:auto;white-space:normal;margin-bottom:1em}.text-editor__wrapper div.ProseMirror table{margin-top:1em}.text-editor__wrapper div.ProseMirror table td,.text-editor__wrapper div.ProseMirror table th{border:1px solid var(--table-color-border);border-left:0;vertical-align:top;max-width:100%}.text-editor__wrapper div.ProseMirror table td:first-child,.text-editor__wrapper div.ProseMirror table th:first-child{border-left:1px solid var(--table-color-border)}.text-editor__wrapper div.ProseMirror table td{padding:.5em .75em;border-top:0;color:var(--color-main-text)}.text-editor__wrapper div.ProseMirror table th{padding:0 0 0 .75em;font-weight:normal;border-bottom-color:var(--table-color-heading-border);color:var(--table-color-heading)}.text-editor__wrapper div.ProseMirror table th>div{display:flex}.text-editor__wrapper div.ProseMirror table tr{background-color:var(--table-color-background)}.text-editor__wrapper div.ProseMirror table tr:hover,.text-editor__wrapper div.ProseMirror table tr:active,.text-editor__wrapper div.ProseMirror table tr:focus{background-color:var(--table-color-background-hover)}.text-editor__wrapper div.ProseMirror table tr:first-child th:first-child{border-top-left-radius:var(--table-border-radius)}.text-editor__wrapper div.ProseMirror table tr:first-child th:last-child{border-top-right-radius:var(--table-border-radius)}.text-editor__wrapper div.ProseMirror table tr:last-child td:first-child{border-bottom-left-radius:var(--table-border-radius)}.text-editor__wrapper div.ProseMirror table tr:last-child td:last-child{border-bottom-right-radius:var(--table-border-radius)}.text-editor__wrapper .ProseMirror-focused .ProseMirror-gapcursor{display:block}.text-editor__wrapper .editor__content p.is-empty:first-child::before{content:attr(data-placeholder);float:left;color:var(--color-text-maxcontrast);pointer-events:none;height:0}.text-editor__wrapper .editor__content{tab-size:4}.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre{background-color:var(--color-main-background)}.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre::before{content:attr(data-language);text-transform:uppercase;display:block;text-align:right;font-weight:bold;font-size:.6rem}.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-comment,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-quote{color:#999}.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-variable,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-template-variable,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-attribute,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-tag,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-name,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-regexp,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-link,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-selector-id,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-selector-class{color:#f2777a}.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-number,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-meta,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-built_in,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-builtin-name,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-literal,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-type,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-params{color:#f99157}.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-string,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-symbol,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-bullet{color:#9c9}.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-title,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-section{color:#fc6}.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-keyword,.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-selector-tag{color:#69c}.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-emphasis{font-style:italic}.text-editor__wrapper:not(.is-rich-editor) .ProseMirror pre code .hljs-strong{font-weight:700}.text-editor__wrapper .text-editor__main.draggedOver{background-color:var(--color-primary-light)}.text-editor__wrapper .text-editor__main .text-editor__content-wrapper{position:relative}#files-public-content{height:100%}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',"",{version:3,sources:["webpack://./css/style.scss","webpack://./css/print.scss","webpack://./css/prosemirror.scss","webpack://./src/components/Editor.vue"],names:[],mappings:"AAEA,MACC,+BAAA,CAGD,8BACC,iBAAA,CAGD,2BACC,yBAAA,CACA,4BAAA,CAEA,wCACC,wBAAA,CACA,4BAAA,CAGD,6CACC,wBAAA,CACA,4BAAA,CAIF,0BACC,sBAAA,CAID,4BACC,YAAA,CAEA,kCACC,UAAA,CACA,iBAAA,CACA,UAAA,CACA,UAAA,CAAA,QAAA,CAAA,WAAA,CACA,qBAAA,CACA,mBAAA,CAMD,4FACC,YAAA,CAIF,uBACC,YAAA,CACA,mBAAA,CACA,iBAAA,CAEA,6BACC,UAAA,CACA,aAAA,CACA,iBAAA,CACA,QAAA,CACA,UAAA,CACA,2CAAA,CACA,gEAAA,CAIF,oCACC,GACC,iBAAA,CAAA,CAIF,kBACC,gEAAA,CAGD,oBACC,6CAAA,CACA,iDAAA,CACA,iCACC,gBAAA,CAKF,sBACC,KACC,SAAA,CACA,kCAAA,CAGD,GACC,SAAA,CACA,8BAAA,CAAA,CAMF,sBACC,KACC,SAAA,CACA,kCAAA,CAGD,GACC,SAAA,CACA,8BAAA,CAAA,CAIF,YACC,yBAAA,CChHD,aACC,MACC,OAAA,CACA,0BAAA,CAGD,KAEC,iBAAA,CACA,2BAAA,CAGD,2BAEC,WAAA,CACA,qBAAA,CAEA,4BAAA,CAEA,yCAEC,uBAAA,CAED,4CAEC,OAAA,CACA,kBAAA,CAKD,2BAEC,uBAAA,CAED,0BAEC,uBAAA,CAED,8BAEC,cAAA,CAED,mCACC,kBAAA,CACA,cAAA,CAIA,gKAEC,iBAAA,CAED,wGAEC,uBAAA,CAEA,wBAAA,CACA,iCAAA,CAID,gCACC,qBAAA,CACA,2BAAA,CACA,mCAAA,CACA,4BAAA,CACA,6CAAA,CAED,6CACC,iCAAA,CAGD,gCACC,4CAAA,CACA,2BAAA,CACA,4BAAA,CAED,6CACC,sBAAA,CAKH,gDACC,YAAA,CAIA,6CACC,aAAA,CAGD,+CACC,UAAA,CACA,WAAA,CACA,cAAA,CACA,iBAAA,CAED,0DACC,YAAA,CAAA,CCjGH,sCACC,WAAA,CACA,iBAAA,CACA,oBAAA,CACA,oBAAA,CACA,mCAAA,CACA,2BAAA,CACA,0BAAA,CACA,gBAAA,CACA,cAAA,CACA,YAAA,CAEA,8CAEC,sBAAA,CAGD,oPAIC,sBAAA,CACA,UAAA,CACA,8BAAA,CACA,4BAAA,CACA,SAAA,CACA,wBAAA,CACA,gBAAA,CACA,cAAA,CAEA,wjBACC,0BAAA,CAIF,qDACC,YAAA,CACA,iBAAA,CAEA,iBAAA,CAEA,0EACC,YAAA,CAED,4DACC,UAAA,CACA,qBAAA,CACA,sBAAA,CACA,8CAAA,CACA,iBAAA,CACA,aAAA,CACA,kCAAA,CACA,WAAA,CACA,UAAA,CACA,0BAAA,CACA,0BAAA,CACA,cAAA,CAGA,oEACC,wDAAA,CACA,6CAAA,CACA,yCAAA,CAED,mEACC,mCAAA,CACA,4BAAA,CAGF,2DACC,aAAA,CACA,WAAA,CACA,2BAAA,CAIF,oDACC,eAAA,CAIA,8TACC,YAAA,CAIF,wCACC,kCAAA,CACA,yBAAA,CACA,cAAA,CAGD,wCACC,iBAAA,CACA,gBAAA,CAGD,yCACC,iBAAA,CAGD,sPAMC,eAAA,CACA,iBAAA,CACA,eAAA,CACA,kBAAA,CACA,4BAAA,CAGD,yCACC,cAAA,CAGD,yCACC,cAAA,CAGD,yCACC,cAAA,CAGD,yCACC,cAAA,CAGD,yCACC,cAAA,CAGD,yCACC,cAAA,CAGD,0CACC,cAAA,CACA,cAAA,CAGD,yCACC,aAAA,CACA,WAAA,CACA,YAAA,CACA,UAAA,CAGD,+CACC,UAAA,CACA,aAAA,CACA,UAAA,CACA,yCAAA,CACA,eAAA,CAGD,0CACC,oBAAA,CACA,6CAAA,CACA,kCAAA,CACA,iBAAA,CACA,iBAAA,CAGD,sDACC,iBAAA,CACA,kDAAA,CAGD,8DACC,aAAA,CACA,wBAAA,CACA,mCAAA,CACA,mBAAA,CAGD,6CACC,6CAAA,CACA,kCAAA,CACA,iBAAA,CAGD,yCACC,iBAAA,CACA,gBAAA,CAEA,2CACC,kBAAA,CAIF,kFACC,iBAAA,CACA,gBAAA,CACA,iBAAA,CAGD,4CACC,oBAAA,CAID,+CACC,sBAAA,CAID,kDACC,sBAAA,CAGD,iDACC,gBAAA,CACA,kDAAA,CACA,mCAAA,CACA,aAAA,CACA,cAAA,CAIQ,MACR,yCAAA,CACA,oDAAA,CACA,sDAAA,CACA,sDAAA,CACA,0DAAA,CACA,2CAAA,CAGD,4CACC,gBAAA,CACA,uBAAA,CACA,iBAAA,CACA,kBAAA,CACA,iBAAA,CACA,4CACC,cAAA,CAID,8FACC,0CAAA,CACA,aAAA,CACA,kBAAA,CACA,cAAA,CACA,sHACC,+CAAA,CAGF,+CACC,kBAAA,CACA,YAAA,CACA,4BAAA,CAED,+CACC,mBAAA,CACA,kBAAA,CACA,qDAAA,CACA,gCAAA,CAEA,mDACC,YAAA,CAGF,+CACC,8CAAA,CACA,gKACC,oDAAA,CAKD,0EAAA,iDAAA,CACA,yEAAA,kDAAA,CAIA,yEAAA,oDAAA,CACA,wEAAA,qDAAA,CAOH,kEACC,aAAA,CAGD,sEACC,8BAAA,CACA,UAAA,CACA,mCAAA,CACA,mBAAA,CACA,QAAA,CAGD,uCACC,UAAA,CCvSC,4DACC,6CAAA,CAEA,oEACC,2BAAA,CACA,wBAAA,CACA,aAAA,CACA,gBAAA,CACA,gBAAA,CACA,eAAA,CAGA,4JAEC,UAAA,CAED,otBASC,aAAA,CAED,uiBAOC,aAAA,CAED,0OAGC,UAAA,CAED,4JAEC,UAAA,CAED,mKAEC,UAAA,CAED,gFACC,iBAAA,CAED,8EACC,eAAA,CAQH,qDACC,2CAAA,CAED,uEACC,iBAAA,CAOH,sBACC,WAAA,CAGD,gBACC,GAAA,sBAAA,CACA,KAAA,wBAAA,CAAA",sourcesContent:["@use 'sass:math';\n\n:root {\n\t--text-editor-max-width: 670px\n}\n\n.modal-container .text-editor {\n\tposition: absolute;\n}\n\n.ProseMirror-hideselection {\n\tcaret-color: transparent;\n\tcolor: var(--color-main-text);\n\n\t*::selection {\n\t\tbackground: transparent;\n\t\tcolor: var(--color-main-text);\n\t}\n\n\t*::-moz-selection {\n\t\tbackground: transparent;\n\t\tcolor: var(--color-main-text);\n\t}\n}\n\n.ProseMirror-selectednode {\n\toutline: 2px solid #8cf;\n}\n\n/* Make sure li selections wrap around markers */\nli.ProseMirror-selectednode {\n\toutline: none;\n\n\t&:after {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tleft: -32px;\n\t\tright: -2px; top: -2px; bottom: -2px;\n\t\tborder: 2px solid #8cf;\n\t\tpointer-events: none;\n\t}\n}\n\n.has-conflicts,\n.text-editor__wrapper.icon-loading {\n\t.ProseMirror-menubar {\n\t\tdisplay: none;\n\t}\n}\n\n.ProseMirror-gapcursor {\n\tdisplay: none;\n\tpointer-events: none;\n\tposition: absolute;\n\n\t&:after {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\ttop: -2px;\n\t\twidth: 20px;\n\t\tborder-top: 1px solid var(--color-main-text);\n\t\tanimation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n\t}\n}\n\n@keyframes ProseMirror-cursor-blink {\n\tto {\n\t\tvisibility: hidden;\n\t}\n}\n\n.animation-rotate {\n\tanimation: rotate var(--animation-duration, 0.8s) linear infinite;\n}\n\n[data-handler='text'] {\n\tbackground-color: var(--color-main-background);\n\tborder-top: 3px solid var(--color-primary-element);\n\t.modal-title {\n\t\tfont-weight: bold;\n\t}\n}\n\n// from https://github.com/animate-css/animate.css/blob/main/source/fading_entrances/fadeInDown.css\n@keyframes fadeInDown {\n\tfrom {\n\t\topacity: 0;\n\t\ttransform: translate3d(0, -100%, 0);\n\t}\n\n\tto {\n\t\topacity: 1;\n\t\ttransform: translate3d(0, 0, 0);\n\t}\n}\n\n\n// from https://github.com/animate-css/animate.css/blob/main/source/fading_entrances/fadeInLeft.css\n@keyframes fadeInLeft {\n\tfrom {\n\t\topacity: 0;\n\t\ttransform: translate3d(-100%, 0, 0);\n\t}\n\n\tto {\n\t\topacity: 1;\n\t\ttransform: translate3d(0, 0, 0);\n\t}\n}\n\n.fadeInLeft {\n\tanimation-name: fadeInLeft;\n}\n","@media print {\n\t@page {\n\t\tsize: A4;\n\t\tmargin: 2.5cm 2cm 2cm 2.5cm;\n\t}\n\n\tbody {\n\t\t// position: fixed does not support scrolling and as such only prints one page\n\t\tposition: absolute;\n\t\toverflow: visible!important;\n\t}\n\n\t#viewer[data-handler='text'] {\n\t\t// Hide top border\n\t\tborder: none;\n\t\twidth: 100%!important;\n\t\t// NcModal uses fixed, which will be cropped when printed\n\t\tposition: absolute!important;\n\n\t\t.modal-header {\n\t\t\t// Hide modal header (close button)\n\t\t\tdisplay: none!important;\n\t\t}\n\t\t.modal-container {\n\t\t\t// Make sure top aligned as we hided the menubar */\n\t\t\ttop: 0px;\n\t\t\theight: fit-content;\n\t\t}\n\t}\n\n\t.text-editor {\n\t\t.text-menubar {\n\t\t\t// Hide menu bar\n\t\t\tdisplay: none!important;\n\t\t}\n\t\t.action-item {\n\t\t\t// Hide table settings\n\t\t\tdisplay: none!important;\n\t\t}\n\t\t.editor__content {\n\t\t\t// Margins set by page rule\n\t\t\tmax-width: 100%;\n\t\t}\n\t\t.text-editor__wrapper {\n\t\t\theight: fit-content;\n\t\t\tposition: unset;\n\t\t}\n\n\t\tdiv.ProseMirror {\n\t\t\th1, h2, h3, h4, h5 {\n\t\t\t\t// orphaned headlines are ugly\n\t\t\t\tbreak-after: avoid;\n\t\t\t}\n\t\t\t.image, img, table {\n\t\t\t\t// try no page breaks within tables or images\n\t\t\t\tbreak-inside: avoid-page;\n\t\t\t\t// Some more indention\n\t\t\t\tmax-width: 90%!important;\n\t\t\t\tmargin: 5vw auto 5vw 5%!important;\n\t\t\t}\n\n\t\t\t// Add some borders below header and between columns\n\t\t\tth {\n\t\t\t\tcolor: black!important;\n\t\t\t\tfont-weight: bold!important;\n\t\t\t\tborder-width: 0 1px 2px 0!important;\n\t\t\t\tborder-color: gray!important;\n\t\t\t\tborder-style: none solid solid none!important;\n\t\t\t}\n\t\t\tth:last-of-type {\n\t\t\t\tborder-width: 0 0 2px 0!important;\n\t\t\t}\n\n\t\t\ttd {\n\t\t\t\tborder-style: none solid none none!important;\n\t\t\t\tborder-width: 1px!important;\n\t\t\t\tborder-color: gray!important;\n\t\t\t}\n\t\t\ttd:last-of-type {\n\t\t\t\tborder: none!important;\n\t\t\t}\n\t\t}\n\t}\n\n\t.menubar-placeholder, .text-editor--readonly-bar {\n\t\tdisplay: none;\n\t}\n\n\t.text-editor__content-wrapper {\n\t\t&.--show-outline {\n\t\t\tdisplay: block;\n\t\t}\n\n\t\t.editor--outline {\n\t\t\twidth: auto;\n\t\t\theight: auto;\n\t\t\toverflow: unset;\n\t\t\tposition: relative;\n\t\t}\n\t\t.editor--outline__btn-close {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n","@use 'sass:selector';\n\n/* Document rendering styles */\ndiv.ProseMirror {\n\theight: 100%;\n\tposition: relative;\n\tword-wrap: break-word;\n\twhite-space: pre-wrap;\n\t-webkit-font-variant-ligatures: none;\n\tfont-variant-ligatures: none;\n\tpadding: 4px 8px 200px 14px;\n\tline-height: 150%;\n\tfont-size: 14px;\n\toutline: none;\n\n\t:target {\n\t\t// Menubar height: 44px + 3px bottom + 3px top padding\n\t\tscroll-margin-top: 50px;\n\t}\n\n\t&[contenteditable=true],\n\t&[contenteditable=false],\n\t[contenteditable=true],\n\t[contenteditable=false] {\n\t\tborder: none !important;\n\t\twidth: 100%;\n\t\tbackground-color: transparent;\n\t\tcolor: var(--color-main-text);\n\t\topacity: 1;\n\t\t-webkit-user-select: text;\n\t\tuser-select: text;\n\t\tfont-size: 14px;\n\n\t\t&:focus, &:focus-visible {\n\t\t\tbox-shadow: none !important;\n\t\t}\n\t}\n\n\t.checkbox-item {\n\t\tdisplay: flex;\n\t\talign-items: start;\n\t\t// Left-align with list item text\n\t\tmargin-left: -23px;\n\n\t\tinput[type=checkbox] {\n\t\t\tdisplay: none;\n\t\t}\n\t\t&:before {\n\t\t\tcontent: '';\n\t\t\tvertical-align: middle;\n\t\t\tmargin: 3px 6px 3px 2px;\n\t\t\tborder: 1px solid var(--color-text-maxcontrast);\n\t\t\tposition: relative;\n\t\t\tdisplay: block;\n\t\t\tborder-radius: var(--border-radius);\n\t\t\theight: 14px;\n\t\t\twidth: 14px;\n\t\t\tbox-shadow: none !important;\n\t\t\tbackground-position: center;\n\t\t\tcursor: pointer;\n\t\t}\n\t\t&.checked{\n\t\t\t&:before {\n\t\t\t\tbackground-image: url('../../img/checkbox-mark.svg');\n\t\t\t\tbackground-color: var(--color-primary-element);\n\t\t\t\tborder-color: var(--color-primary-element);\n\t\t\t}\n\t\t\tlabel {\n\t\t\t\tcolor: var(--color-text-maxcontrast);\n\t\t\t\ttext-decoration: line-through;\n\t\t\t}\n\t\t}\n\t\tlabel {\n\t\t\tdisplay: block;\n\t\t\tflex-grow: 1;\n\t\t\tmax-width: calc(100% - 28px);\n\t\t}\n\t}\n\n\t> *:first-child {\n\t\tmargin-top: 10px;\n\t}\n\n\t> h1,h2,h3,h4,h5,h6 {\n\t\t&:first-child {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\n\ta {\n\t\tcolor: var(--color-primary-element);\n\t\ttext-decoration: underline;\n\t\tpadding: .5em 0;\n\t}\n\n\tp {\n\t\tmargin-bottom: 1em;\n\t\tline-height: 150%;\n\t}\n\n\tem {\n\t\tfont-style: italic;\n\t}\n\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6 {\n\t\tfont-weight: 600;\n\t\tline-height: 1.1em;\n\t\tmargin-top: 24px;\n\t\tmargin-bottom: 12px;\n\t\tcolor: var(--color-main-text);\n\t}\n\n\th1 {\n\t\tfont-size: 36px;\n\t}\n\n\th2 {\n\t\tfont-size: 30px;\n\t}\n\n\th3 {\n\t\tfont-size: 24px;\n\t}\n\n\th4 {\n\t\tfont-size: 21px;\n\t}\n\n\th5 {\n\t\tfont-size: 17px;\n\t}\n\n\th6 {\n\t\tfont-size: 14px;\n\t}\n\n\timg {\n\t\tcursor: default;\n\t\tmax-width: 100%;\n\t}\n\n\thr {\n\t\tpadding: 2px 0;\n\t\tborder: none;\n\t\tmargin: 2em 0;\n\t\twidth: 100%;\n\t}\n\n\thr:after {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\theight: 1px;\n\t\tbackground-color: var(--color-border-dark);\n\t\tline-height: 2px;\n\t}\n\n\tpre {\n\t\twhite-space: pre-wrap;\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: 1em 1.3em;\n\t\tmargin-bottom: 1em;\n\t}\n\n\tpre.frontmatter {\n\t\tmargin-bottom: 2em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t}\n\n\tpre.frontmatter::before {\n\t\tdisplay: block;\n\t\tcontent: attr(data-title);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tpadding-bottom: 0.5em;\n\t}\n\n\tp code {\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: .1em .3em;\n\t}\n\n\tli {\n\t\tposition: relative;\n\t\tpadding-left: 3px;\n\n\t\tp {\n\t\t\tmargin-bottom: 0.5em;\n\t\t}\n\t}\n\n\tul, ol {\n\t\tpadding-left: 10px;\n\t\tmargin-left: 10px;\n\t\tmargin-bottom: 1em;\n\t}\n\n\tul > li {\n\t\tlist-style-type: disc;\n\t}\n\n\t// Second-level list entries\n\tli ul > li {\n\t\tlist-style-type: circle;\n\t}\n\n\t// Third-level and further down list entries\n\tli li ul > li {\n\t\tlist-style-type: square;\n\t}\n\n\tblockquote {\n\t\tpadding-left: 1em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tmargin-left: 0;\n\t\tmargin-right: 0;\n\t}\n\n\t// table variables\n\t@at-root :root {\n\t\t--table-color-border: var(--color-border);\n\t\t--table-color-heading: var(--color-text-maxcontrast);\n\t\t--table-color-heading-border: var(--color-border-dark);\n\t\t--table-color-background: var(--color-main-background);\n\t\t--table-color-background-hover: var(--color-primary-light);\n\t\t--table-border-radius: var(--border-radius);\n\t}\n\n\ttable {\n\t\tborder-spacing: 0;\n\t\twidth: calc(100% - 50px);\n\t\ttable-layout: auto;\n\t\twhite-space: normal; // force text to wrapping\n\t\tmargin-bottom: 1em;\n\t\t+ & {\n\t\t\tmargin-top: 1em;\n\t\t}\n\n\n\t\ttd, th {\n\t\t\tborder: 1px solid var(--table-color-border);\n\t\t\tborder-left: 0;\n\t\t\tvertical-align: top;\n\t\t\tmax-width: 100%;\n\t\t\t&:first-child {\n\t\t\t\tborder-left: 1px solid var(--table-color-border);\n\t\t\t}\n\t\t}\n\t\ttd {\n\t\t\tpadding: 0.5em 0.75em;\n\t\t\tborder-top: 0;\n\t\t\tcolor: var(--color-main-text);\n\t\t}\n\t\tth {\n\t\t\tpadding: 0 0 0 0.75em;\n\t\t\tfont-weight: normal;\n\t\t\tborder-bottom-color: var(--table-color-heading-border);\n\t\t\tcolor: var(--table-color-heading);\n\n\t\t\t& > div {\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t}\n\t\ttr {\n\t\t\tbackground-color: var(--table-color-background);\n\t\t\t&:hover, &:active, &:focus {\n\t\t\t\tbackground-color: var(--table-color-background-hover);\n\t\t\t}\n\t\t}\n\n\t\ttr:first-child {\n\t\t\tth:first-child { border-top-left-radius: var(--table-border-radius); }\n\t\t\tth:last-child { border-top-right-radius: var(--table-border-radius); }\n\t\t}\n\n\t\ttr:last-child {\n\t\t\ttd:first-child { border-bottom-left-radius: var(--table-border-radius); }\n\t\t\ttd:last-child { border-bottom-right-radius: var(--table-border-radius); }\n\t\t}\n\n\t}\n\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n\tdisplay: block;\n}\n\n.editor__content p.is-empty:first-child::before {\n\tcontent: attr(data-placeholder);\n\tfloat: left;\n\tcolor: var(--color-text-maxcontrast);\n\tpointer-events: none;\n\theight: 0;\n}\n\n.editor__content {\n\ttab-size: 4;\n}\n","\n@import './../../css/style';\n@import './../../css/print';\n\n.text-editor__wrapper {\n\t@import './../../css/prosemirror';\n\n\t&:not(.is-rich-editor) .ProseMirror {\n\t\tpre {\n\t\t\tbackground-color: var(--color-main-background);\n\n\t\t\t&::before {\n\t\t\t\tcontent: attr(data-language);\n\t\t\t\ttext-transform: uppercase;\n\t\t\t\tdisplay: block;\n\t\t\t\ttext-align: right;\n\t\t\t\tfont-weight: bold;\n\t\t\t\tfont-size: 0.6rem;\n\t\t\t}\n\t\t\tcode {\n\t\t\t\t.hljs-comment,\n\t\t\t\t.hljs-quote {\n\t\t\t\t\tcolor: #999999;\n\t\t\t\t}\n\t\t\t\t.hljs-variable,\n\t\t\t\t.hljs-template-variable,\n\t\t\t\t.hljs-attribute,\n\t\t\t\t.hljs-tag,\n\t\t\t\t.hljs-name,\n\t\t\t\t.hljs-regexp,\n\t\t\t\t.hljs-link,\n\t\t\t\t.hljs-selector-id,\n\t\t\t\t.hljs-selector-class {\n\t\t\t\t\tcolor: #f2777a;\n\t\t\t\t}\n\t\t\t\t.hljs-number,\n\t\t\t\t.hljs-meta,\n\t\t\t\t.hljs-built_in,\n\t\t\t\t.hljs-builtin-name,\n\t\t\t\t.hljs-literal,\n\t\t\t\t.hljs-type,\n\t\t\t\t.hljs-params {\n\t\t\t\t\tcolor: #f99157;\n\t\t\t\t}\n\t\t\t\t.hljs-string,\n\t\t\t\t.hljs-symbol,\n\t\t\t\t.hljs-bullet {\n\t\t\t\t\tcolor: #99cc99;\n\t\t\t\t}\n\t\t\t\t.hljs-title,\n\t\t\t\t.hljs-section {\n\t\t\t\t\tcolor: #ffcc66;\n\t\t\t\t}\n\t\t\t\t.hljs-keyword,\n\t\t\t\t.hljs-selector-tag {\n\t\t\t\t\tcolor: #6699cc;\n\t\t\t\t}\n\t\t\t\t.hljs-emphasis {\n\t\t\t\t\tfont-style: italic;\n\t\t\t\t}\n\t\t\t\t.hljs-strong {\n\t\t\t\t\tfont-weight: 700;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// relative position for the alignment of the menububble\n\t.text-editor__main {\n\t\t&.draggedOver {\n\t\t\tbackground-color: var(--color-primary-light);\n\t\t}\n\t\t.text-editor__content-wrapper {\n\t\t\tposition: relative;\n\t\t}\n\t}\n}\n\n// Required in order to make the public pages behave the same if talk is enabled or not\n// as Talk overwrites the public page styles and changes the DOM layout for the sidebar injection\n#files-public-content {\n\theight: 100%;\n}\n\n@keyframes spin {\n\t0% { transform: rotate(0deg); }\n\t100% { transform: rotate(360deg); }\n}\n"],sourceRoot:""}]);const A=d},52130:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".editor__content[data-v-3850603b]{max-width:var(--text-editor-max-width);margin:auto;position:relative;width:100%}.ie .editor__content[data-v-3850603b] .ProseMirror{padding-top:50px}.text-editor__content-wrapper[data-v-3850603b]{--side-width: calc((100% - var(--text-editor-max-width)) / 2);display:grid;grid-template-columns:1fr auto}.text-editor__content-wrapper.--show-outline[data-v-3850603b]{grid-template-columns:var(--side-width) auto var(--side-width)}.text-editor__content-wrapper .text-editor__content-wrapper__left[data-v-3850603b],.text-editor__content-wrapper .text-editor__content-wrapper__right[data-v-3850603b]{height:100%;position:relative}.is-rich-workspace .text-editor__content-wrapper[data-v-3850603b]{--side-width: var(--text-editor-max-width);grid-template-columns:var(--side-width) auto}.is-rich-workspace .text-editor__content-wrapper .text-editor__content-wrapper__left[data-v-3850603b],.is-rich-workspace .text-editor__content-wrapper .text-editor__content-wrapper__right[data-v-3850603b]{display:none}","",{version:3,sources:["webpack://./src/components/Editor/ContentContainer.vue"],names:[],mappings:"AACA,kCACC,sCAAA,CACA,WAAA,CACA,iBAAA,CACA,UAAA,CAIA,mDACC,gBAAA,CAIF,+CACC,6DAAA,CACA,YAAA,CACA,8BAAA,CACA,8DACC,8DAAA,CAED,uKAEC,WAAA,CACA,iBAAA,CAKD,kEACC,0CAAA,CACA,4CAAA,CACA,6MAEC,YAAA",sourcesContent:["\n.editor__content {\n\tmax-width: var(--text-editor-max-width);\n\tmargin: auto;\n\tposition: relative;\n\twidth: 100%;\n}\n\n.ie {\n\t.editor__content:deep(.ProseMirror) {\n\t\tpadding-top: 50px;\n\t}\n}\n\n.text-editor__content-wrapper {\n\t--side-width: calc((100% - var(--text-editor-max-width)) / 2);\n\tdisplay: grid;\n\tgrid-template-columns: 1fr auto;\n\t&.--show-outline {\n\t\tgrid-template-columns: var(--side-width) auto var(--side-width);\n\t}\n\t.text-editor__content-wrapper__left,\n\t.text-editor__content-wrapper__right {\n\t\theight: 100%;\n\t\tposition: relative;\n\t}\n}\n\n.is-rich-workspace {\n\t.text-editor__content-wrapper {\n\t\t--side-width: var(--text-editor-max-width);\n\t\tgrid-template-columns: var(--side-width) auto;\n\t\t.text-editor__content-wrapper__left,\n\t\t.text-editor__content-wrapper__right {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=a},24198:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".document-status[data-v-a9040100]{position:relative;background-color:var(--color-main-background)}.document-status .msg[data-v-a9040100]{padding:12px;background-position:8px center;color:var(--color-text-maxcontrast)}.document-status .msg.icon-error[data-v-a9040100]{padding-left:30px}.document-status .msg .button[data-v-a9040100]{margin-left:8px}.document-status .msg.msg-locked .lock-icon[data-v-a9040100]{padding:0 10px;float:left}","",{version:3,sources:["webpack://./src/components/Editor/DocumentStatus.vue"],names:[],mappings:"AACA,kCACC,iBAAA,CACA,6CAAA,CAEA,uCACC,YAAA,CACA,8BAAA,CACA,mCAAA,CAEA,kDACC,iBAAA,CAGD,+CACC,eAAA,CAGD,6DACC,cAAA,CACA,UAAA",sourcesContent:["\n.document-status {\n\tposition: relative;\n\tbackground-color: var(--color-main-background);\n\n\t.msg {\n\t\tpadding: 12px;\n\t\tbackground-position: 8px center;\n\t\tcolor: var(--color-text-maxcontrast);\n\n\t\t&.icon-error {\n\t\t\tpadding-left: 30px;\n\t\t}\n\n\t\t.button {\n\t\t\tmargin-left: 8px;\n\t\t}\n\n\t\t&.msg-locked .lock-icon {\n\t\t\tpadding: 0 10px;\n\t\t\tfloat: left;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=a},38334:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".editor--outline[data-v-685e37af]{width:300px;padding:0 10px;position:fixed;height:calc(100% - 100px);overflow:auto}.editor--outline-mobile[data-v-685e37af]{box-shadow:8px 0 17px -19px var(--color-box-shadow);background-color:var(--color-main-background-translucent);z-index:1}.editor--outline__header[data-v-685e37af]{margin:0;position:sticky;padding:.6em .6em .6em 0;display:flex;align-items:center}.editor--outline__header h2[data-v-685e37af]{font-size:1rem;line-height:1.1rem;flex-grow:1;padding:0;margin:0}","",{version:3,sources:["webpack://./src/components/Editor/EditorOutline.vue"],names:[],mappings:"AACA,kCACC,WAAA,CACA,cAAA,CACA,cAAA,CACA,yBAAA,CACA,aAAA,CAEA,yCACC,mDAAA,CACA,yDAAA,CACA,SAAA,CAGD,0CACC,QAAA,CACA,eAAA,CACA,wBAAA,CACA,YAAA,CACA,kBAAA,CAEA,6CACC,cAAA,CACA,kBAAA,CACA,WAAA,CACA,SAAA,CACA,QAAA",sourcesContent:["\n.editor--outline {\n\twidth: 300px;\n\tpadding: 0 10px;\n\tposition: fixed;\n\theight: calc(100% - 100px);\n\toverflow: auto;\n\n\t&-mobile {\n\t\tbox-shadow: 8px 0 17px -19px var(--color-box-shadow);\n\t\tbackground-color: var(--color-main-background-translucent);\n\t\tz-index: 1;\n\t}\n\n\t&__header {\n\t\tmargin: 0;\n\t\tposition: sticky;\n\t\tpadding: 0.6em 0.6em 0.6em 0;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\n\t\th2 {\n\t\t\tfont-size: 1rem;\n\t\t\tline-height: 1.1rem;\n\t\t\tflex-grow: 1;\n\t\t\tpadding: 0;\n\t\t\tmargin: 0;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=a},63812:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".text-editor__main[data-v-7d451d50],.editor[data-v-7d451d50]{background:var(--color-main-background);color:var(--color-main-text);background-clip:padding-box;border-radius:var(--border-radius);padding:0;position:relative;overflow-y:auto;overflow-x:hidden;width:100%}","",{version:3,sources:["webpack://./src/components/Editor/MainContainer.vue"],names:[],mappings:"AACA,6DACC,uCAAA,CACA,4BAAA,CACA,2BAAA,CACA,kCAAA,CACA,SAAA,CACA,iBAAA,CACA,eAAA,CACA,iBAAA,CACA,UAAA",sourcesContent:["\n.text-editor__main, .editor {\n\tbackground: var(--color-main-background);\n\tcolor: var(--color-main-text);\n\tbackground-clip: padding-box;\n\tborder-radius: var(--border-radius);\n\tpadding: 0;\n\tposition: relative;\n\toverflow-y: auto;\n\toverflow-x: hidden;\n\twidth: 100%;\n}\n"],sourceRoot:""}]);const s=a},37708:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".text-editor__session-list[data-v-5d3d5888]{display:flex}.text-editor__session-list input[data-v-5d3d5888],.text-editor__session-list div[data-v-5d3d5888]{vertical-align:middle;margin-left:3px}.save-status[data-v-5d3d5888]{display:inline-flex;padding:0;text-overflow:ellipsis;color:var(--color-text-lighter);position:relative;top:9px;min-width:85px;max-height:36px}.save-status.error[data-v-5d3d5888]{background-color:var(--color-error);color:var(--color-main-background);border-radius:3px}","",{version:3,sources:["webpack://./src/components/Editor/Status.vue"],names:[],mappings:"AAEA,4CACC,YAAA,CAEA,kGACC,qBAAA,CACA,eAAA,CAIF,8BACC,mBAAA,CACA,SAAA,CACA,sBAAA,CACA,+BAAA,CACA,iBAAA,CACA,OAAA,CACA,cAAA,CACA,eAAA,CAEA,oCACC,mCAAA,CACA,kCAAA,CACA,iBAAA",sourcesContent:["\n\n.text-editor__session-list {\n\tdisplay: flex;\n\n\tinput, div {\n\t\tvertical-align: middle;\n\t\tmargin-left: 3px;\n\t}\n}\n\n.save-status {\n\tdisplay: inline-flex;\n\tpadding: 0;\n\ttext-overflow: ellipsis;\n\tcolor: var(--color-text-lighter);\n\tposition: relative;\n\ttop: 9px;\n\tmin-width: 85px;\n\tmax-height: 36px;\n\n\t&.error {\n\t\tbackground-color: var(--color-error);\n\t\tcolor: var(--color-main-background);\n\t\tborder-radius: 3px;\n\t}\n}\n"],sourceRoot:""}]);const s=a},78285:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".saved-status,.saving-status{display:inline-flex;padding:0;text-overflow:ellipsis;color:var(--color-text-lighter);background-color:var(--color-main-background);width:38px !important;height:38px !important;z-index:2}.saved-status{border:2px solid #04aa6d;border-radius:50%}.saving-status{border:2px solid #f3f3f3;border-top:2px solid #3498db;border-radius:50%;animation:spin 2s linear infinite}.last-saved{padding:6px}","",{version:3,sources:["webpack://./src/components/Editor/Status.vue"],names:[],mappings:"AACA,6BACC,mBAAA,CACA,SAAA,CACA,sBAAA,CACA,+BAAA,CACA,6CAAA,CACA,qBAAA,CACA,sBAAA,CACA,SAAA,CAGD,cACC,wBAAA,CACA,iBAAA,CAGD,eACC,wBAAA,CACA,4BAAA,CACA,iBAAA,CACA,iCAAA,CAGD,YACC,WAAA",sourcesContent:["\n.saved-status,.saving-status {\n\tdisplay: inline-flex;\n\tpadding: 0;\n\ttext-overflow: ellipsis;\n\tcolor: var(--color-text-lighter);\n\tbackground-color: var(--color-main-background);\n\twidth: 38px !important;\n\theight: 38px !important;\n\tz-index: 2;\n}\n\n.saved-status {\n\tborder: 2px solid #04AA6D;\n\tborder-radius: 50%;\n}\n\n.saving-status {\n\tborder: 2px solid #f3f3f3;\n\tborder-top: 2px solid #3498db;\n\tborder-radius: 50%;\n\tanimation: spin 2s linear infinite;\n}\n\n.last-saved {\n\tpadding: 6px;\n}\n"],sourceRoot:""}]);const s=a},73741:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".--initial-render .editor--toc__item{--initial-padding-left: 0;animation:initialPadding 1.5s}.editor--toc{padding:0 10px;color:var(--color-main-text-maxcontrast);--animation-duration: 0.8s}.editor--toc h3{padding-left:.75rem}.editor--toc__list{width:100%;list-style:none;font-size:.9rem;padding:0;animation-name:fadeInLeft;animation-duration:var(--animation-duration)}.editor--toc__item{transform:translateX(var(--padding-left, 0rem));text-overflow:ellipsis;overflow:hidden;white-space:nowrap;animation:initialPadding calc(var(--animation-duration)*2)}.editor--toc__item a:hover{color:var(--color-primary-hover)}.editor--toc__item--1{--padding-left: 0rem;font-weight:600}.editor--toc__item--1:not(:nth-child(1)){margin-top:.5rem}.editor--toc__item--2{--padding-left: 1rem}.editor--toc__item--3{--padding-left: 2rem}.editor--toc__item--4{--padding-left: 3rem}.editor--toc__item--5{--padding-left: 4rem}.editor--toc__item--6{--padding-left: 5rem}.editor--toc__item--previous-1{--initial-padding-left: 0rem }.editor--toc__item--previous-2{--initial-padding-left: 1rem }.editor--toc__item--previous-3{--initial-padding-left: 2rem }.editor--toc__item--previous-4{--initial-padding-left: 3rem }.editor--toc__item--previous-5{--initial-padding-left: 4rem }.editor--toc__item--previous-6{--initial-padding-left: 5rem }@keyframes initialPadding{from{transform:translateX(var(--initial-padding-left, initial))}to{transform:translateX(var(--padding-left, 0rem))}}","",{version:3,sources:["webpack://./src/components/Editor/TableOfContents.vue"],names:[],mappings:"AAGE,qCACC,yBAAA,CACA,6BAAA,CAKH,aACC,cAAA,CACA,wCAAA,CACA,0BAAA,CAEA,gBACC,mBAAA,CAGD,mBACC,UAAA,CACA,eAAA,CACA,eAAA,CACA,SAAA,CAEA,yBAAA,CACA,4CAAA,CAGD,mBACC,+CAAA,CACA,sBAAA,CACA,eAAA,CACA,kBAAA,CACA,0DAAA,CAEA,2BACC,gCAAA,CAGD,sBACC,oBAAA,CACA,eAAA,CACA,yCACC,gBAAA,CAIF,sBACC,oBAAA,CAGD,sBACC,oBAAA,CAGD,sBACC,oBAAA,CAGD,sBACC,oBAAA,CAGD,sBACC,oBAAA,CAGD,+BACC,6BAAA,CAGD,+BACC,6BAAA,CAGD,+BACC,6BAAA,CAGD,+BACC,6BAAA,CAGD,+BACC,6BAAA,CAGD,+BACC,6BAAA,CAKH,0BACE,KACD,0DAAA,CAGC,GACD,+CAAA,CAAA",sourcesContent:["\n.--initial-render {\n\t.editor--toc {\n\t\t&__item {\n\t\t\t--initial-padding-left: 0;\n\t\t\tanimation: initialPadding 1.5s;\n\t\t}\n\t}\n}\n\n.editor--toc {\n\tpadding: 0 10px;\n\tcolor: var(--color-main-text-maxcontrast);\n\t--animation-duration: 0.8s;\n\n\th3 {\n\t\tpadding-left: 0.75rem;\n\t}\n\n\t&__list {\n\t\twidth: 100%;\n\t\tlist-style: none;\n\t\tfont-size: 0.9rem;\n\t\tpadding: 0;\n\n\t\tanimation-name: fadeInLeft;\n\t\tanimation-duration: var(--animation-duration);\n\t}\n\n\t&__item {\n\t\ttransform: translateX(var(--padding-left, 0rem));\n\t\ttext-overflow: ellipsis;\n\t\toverflow: hidden;\n\t\twhite-space: nowrap;\n\t\tanimation: initialPadding calc(var(--animation-duration) * 2);\n\n\t\ta:hover {\n\t\t\tcolor: var(--color-primary-hover);\n\t\t}\n\n\t\t&--1 {\n\t\t\t--padding-left: 0rem;\n\t\t\tfont-weight: 600;\n\t\t\t&:not(:nth-child(1)) {\n\t\t\t\tmargin-top: 0.5rem;\n\t\t\t}\n\t\t}\n\n\t\t&--2 {\n\t\t\t--padding-left: 1rem;\n\t\t}\n\n\t\t&--3 {\n\t\t\t--padding-left: 2rem;\n\t\t}\n\n\t\t&--4 {\n\t\t\t--padding-left: 3rem;\n\t\t}\n\n\t\t&--5 {\n\t\t\t--padding-left: 4rem;\n\t\t}\n\n\t\t&--6 {\n\t\t\t--padding-left: 5rem;\n\t\t}\n\n\t\t&--previous-1 {\n\t\t\t--initial-padding-left: 0rem\n\t\t}\n\n\t\t&--previous-2 {\n\t\t\t--initial-padding-left: 1rem\n\t\t}\n\n\t\t&--previous-3 {\n\t\t\t--initial-padding-left: 2rem\n\t\t}\n\n\t\t&--previous-4 {\n\t\t\t--initial-padding-left: 3rem\n\t\t}\n\n\t\t&--previous-5 {\n\t\t\t--initial-padding-left: 4rem\n\t\t}\n\n\t\t&--previous-6 {\n\t\t\t--initial-padding-left: 5rem\n\t\t}\n\t}\n}\n\n@keyframes initialPadding {\n from {\n\ttransform: translateX(var(--initial-padding-left, initial));\n }\n\n to {\n\ttransform: translateX(var(--padding-left, 0rem));\n }\n}\n\n"],sourceRoot:""}]);const s=a},3274:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".text-editor__wrapper[data-v-068e7935]{display:flex;width:100%;height:100%;overflow:hidden;position:absolute}.text-editor__wrapper.show-color-annotations[data-v-068e7935] .author-annotation{padding-top:2px;padding-bottom:2px}.text-editor__wrapper[data-v-068e7935]:not(.show-color-annotations) .author-annotation,.text-editor__wrapper[data-v-068e7935]:not(.show-color-annotations) .image{background-color:rgba(0,0,0,0) !important}.text-editor__wrapper .ProseMirror[data-v-068e7935]{margin-top:0 !important}.text-editor__wrapper.icon-loading .text-editor__main[data-v-068e7935]{opacity:.3}","",{version:3,sources:["webpack://./src/components/Editor/Wrapper.vue"],names:[],mappings:"AAEA,uCACC,YAAA,CACA,UAAA,CACA,WAAA,CACA,eAAA,CACA,iBAAA,CAEA,iFACC,eAAA,CACA,kBAAA,CAGD,kKAEC,yCAAA,CAGD,oDACC,uBAAA,CAGA,uEACC,UAAA",sourcesContent:["\n\n.text-editor__wrapper {\n\tdisplay: flex;\n\twidth: 100%;\n\theight: 100%;\n\toverflow: hidden;\n\tposition: absolute;\n\n\t&.show-color-annotations:deep(.author-annotation) {\n\t\tpadding-top: 2px;\n\t\tpadding-bottom: 2px;\n\t}\n\n\t&:not(.show-color-annotations):deep(.author-annotation),\n\t&:not(.show-color-annotations):deep(.image) {\n\t\tbackground-color: transparent !important;\n\t}\n\n\t.ProseMirror {\n\t\tmargin-top: 0 !important;\n\t}\n\t&.icon-loading {\n\t\t.text-editor__main {\n\t\t\topacity: 0.3;\n\t\t}\n\t}\n}\n\n"],sourceRoot:""}]);const s=a},85885:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".emoji-list[data-v-7a04fd10]{border-radius:var(--border-radius);background-color:var(--color-main-background);box-shadow:0 1px 5px var(--color-box-shadow);overflow:auto;min-width:200px;max-width:200px;padding:4px;max-height:195.5px;margin:5px 0}.emoji-list__item[data-v-7a04fd10]{border-radius:8px;padding:4px 8px;margin-bottom:4px;opacity:.8;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.emoji-list__item[data-v-7a04fd10]:last-child{margin-bottom:0}.emoji-list__item__emoji[data-v-7a04fd10]{padding-right:8px}.emoji-list__item.is-selected[data-v-7a04fd10],.emoji-list__item[data-v-7a04fd10]:focus,.emoji-list__item[data-v-7a04fd10]:hover{opacity:1;background-color:var(--color-primary-light)}","",{version:3,sources:["webpack://./src/components/EmojiList.vue"],names:[],mappings:"AACA,6BACC,kCAAA,CACA,6CAAA,CACA,4CAAA,CACA,aAAA,CAEA,eAAA,CACA,eAAA,CACA,WAAA,CAEA,kBAAA,CACA,YAAA,CAEA,mCACC,iBAAA,CACA,eAAA,CACA,iBAAA,CACA,UAAA,CACA,cAAA,CAGA,kBAAA,CACA,eAAA,CACA,sBAAA,CAEA,8CACC,eAAA,CAGD,0CACC,iBAAA,CAGD,iIAGC,SAAA,CACA,2CAAA",sourcesContent:["\n.emoji-list {\n\tborder-radius: var(--border-radius);\n\tbackground-color: var(--color-main-background);\n\tbox-shadow: 0 1px 5px var(--color-box-shadow);\n\toverflow: auto;\n\n\tmin-width: 200px;\n\tmax-width: 200px;\n\tpadding: 4px;\n\t// Show maximum 5 entries and a half to show scroll\n\tmax-height: 35.5px * 5 + 18px;\n\tmargin: 5px 0;\n\n\t&__item {\n\t\tborder-radius: 8px;\n\t\tpadding: 4px 8px;\n\t\tmargin-bottom: 4px;\n\t\topacity: 0.8;\n\t\tcursor: pointer;\n\n\t\t// Take care of long names\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\n\t\t&:last-child {\n\t\t\tmargin-bottom: 0;\n\t\t}\n\n\t\t&__emoji {\n\t\t\tpadding-right: 8px;\n\t\t}\n\n\t\t&.is-selected,\n\t\t&:focus,\n\t\t&:hover {\n\t\t\topacity: 1;\n\t\t\tbackground-color: var(--color-primary-light);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=a},8977:(t,e,n)=>{"use strict";n.d(e,{Z:()=>A});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i),s=n(61667),l=n.n(s),c=new URL(n(64989),n.b),d=a()(o()),u=l()(c);d.push([t.id,'[data-v-c85fd486] .modal-wrapper .modal-container{padding:30px 40px 20px;user-select:text}@media only screen and (max-width: 512px){[data-v-c85fd486] .modal-wrapper .modal-container{padding:30px 0px 20px 40px}}table[data-v-c85fd486]{margin-top:24px;border-collapse:collapse}table tbody tr[data-v-c85fd486]:hover,table tbody tr[data-v-c85fd486]:focus,table tbody tr[data-v-c85fd486]:active{background-color:rgba(0,0,0,0) !important}table thead tr[data-v-c85fd486]{border:none}table th[data-v-c85fd486]{font-weight:bold;padding:.75rem 1rem .75rem 0;border-bottom:2px solid var(--color-background-darker)}table td[data-v-c85fd486]{padding:.75rem 1rem .75rem 0;border-top:1px solid var(--color-background-dark);border-bottom:unset}table td.noborder[data-v-c85fd486]{border-top:unset}table td.ellipsis_top[data-v-c85fd486]{padding-bottom:0}table td.ellipsis[data-v-c85fd486]{padding-top:0;padding-bottom:0}table td.ellipsis_bottom[data-v-c85fd486]{padding-top:0}table kbd[data-v-c85fd486]{font-size:smaller}table code[data-v-c85fd486]{padding:.2em .4em;font-size:90%;background-color:var(--color-background-dark);border-radius:6px}div.ProseMirror[data-v-c85fd486]{height:100%;position:relative;word-wrap:break-word;white-space:pre-wrap;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;padding:4px 8px 200px 14px;line-height:150%;font-size:14px;outline:none}div.ProseMirror[data-v-c85fd486] :target{scroll-margin-top:50px}div.ProseMirror[contenteditable=true][data-v-c85fd486],div.ProseMirror[contenteditable=false][data-v-c85fd486],div.ProseMirror [contenteditable=true][data-v-c85fd486],div.ProseMirror [contenteditable=false][data-v-c85fd486]{border:none !important;width:100%;background-color:rgba(0,0,0,0);color:var(--color-main-text);opacity:1;-webkit-user-select:text;user-select:text;font-size:14px}div.ProseMirror[contenteditable=true][data-v-c85fd486]:focus,div.ProseMirror[contenteditable=true][data-v-c85fd486]:focus-visible,div.ProseMirror[contenteditable=false][data-v-c85fd486]:focus,div.ProseMirror[contenteditable=false][data-v-c85fd486]:focus-visible,div.ProseMirror [contenteditable=true][data-v-c85fd486]:focus,div.ProseMirror [contenteditable=true][data-v-c85fd486]:focus-visible,div.ProseMirror [contenteditable=false][data-v-c85fd486]:focus,div.ProseMirror [contenteditable=false][data-v-c85fd486]:focus-visible{box-shadow:none !important}div.ProseMirror .checkbox-item[data-v-c85fd486]{display:flex;align-items:start;margin-left:-23px}div.ProseMirror .checkbox-item input[type=checkbox][data-v-c85fd486]{display:none}div.ProseMirror .checkbox-item[data-v-c85fd486]:before{content:"";vertical-align:middle;margin:3px 6px 3px 2px;border:1px solid var(--color-text-maxcontrast);position:relative;display:block;border-radius:var(--border-radius);height:14px;width:14px;box-shadow:none !important;background-position:center;cursor:pointer}div.ProseMirror .checkbox-item.checked[data-v-c85fd486]:before{background-image:url('+u+');background-color:var(--color-primary-element);border-color:var(--color-primary-element)}div.ProseMirror .checkbox-item.checked label[data-v-c85fd486]{color:var(--color-text-maxcontrast);text-decoration:line-through}div.ProseMirror .checkbox-item label[data-v-c85fd486]{display:block;flex-grow:1;max-width:calc(100% - 28px)}div.ProseMirror>*[data-v-c85fd486]:first-child{margin-top:10px}div.ProseMirror>h1[data-v-c85fd486]:first-child,div.ProseMirror h2[data-v-c85fd486]:first-child,div.ProseMirror h3[data-v-c85fd486]:first-child,div.ProseMirror h4[data-v-c85fd486]:first-child,div.ProseMirror h5[data-v-c85fd486]:first-child,div.ProseMirror h6[data-v-c85fd486]:first-child{margin-top:0}div.ProseMirror a[data-v-c85fd486]{color:var(--color-primary-element);text-decoration:underline;padding:.5em 0}div.ProseMirror p[data-v-c85fd486]{margin-bottom:1em;line-height:150%}div.ProseMirror em[data-v-c85fd486]{font-style:italic}div.ProseMirror h1[data-v-c85fd486],div.ProseMirror h2[data-v-c85fd486],div.ProseMirror h3[data-v-c85fd486],div.ProseMirror h4[data-v-c85fd486],div.ProseMirror h5[data-v-c85fd486],div.ProseMirror h6[data-v-c85fd486]{font-weight:600;line-height:1.1em;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}div.ProseMirror h1[data-v-c85fd486]{font-size:36px}div.ProseMirror h2[data-v-c85fd486]{font-size:30px}div.ProseMirror h3[data-v-c85fd486]{font-size:24px}div.ProseMirror h4[data-v-c85fd486]{font-size:21px}div.ProseMirror h5[data-v-c85fd486]{font-size:17px}div.ProseMirror h6[data-v-c85fd486]{font-size:14px}div.ProseMirror img[data-v-c85fd486]{cursor:default;max-width:100%}div.ProseMirror hr[data-v-c85fd486]{padding:2px 0;border:none;margin:2em 0;width:100%}div.ProseMirror hr[data-v-c85fd486]:after{content:"";display:block;height:1px;background-color:var(--color-border-dark);line-height:2px}div.ProseMirror pre[data-v-c85fd486]{white-space:pre-wrap;background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:1em 1.3em;margin-bottom:1em}div.ProseMirror pre.frontmatter[data-v-c85fd486]{margin-bottom:2em;border-left:4px solid var(--color-primary-element)}div.ProseMirror pre.frontmatter[data-v-c85fd486]::before{display:block;content:attr(data-title);color:var(--color-text-maxcontrast);padding-bottom:.5em}div.ProseMirror p code[data-v-c85fd486]{background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:.1em .3em}div.ProseMirror li[data-v-c85fd486]{position:relative;padding-left:3px}div.ProseMirror li p[data-v-c85fd486]{margin-bottom:.5em}div.ProseMirror ul[data-v-c85fd486],div.ProseMirror ol[data-v-c85fd486]{padding-left:10px;margin-left:10px;margin-bottom:1em}div.ProseMirror ul>li[data-v-c85fd486]{list-style-type:disc}div.ProseMirror li ul>li[data-v-c85fd486]{list-style-type:circle}div.ProseMirror li li ul>li[data-v-c85fd486]{list-style-type:square}div.ProseMirror blockquote[data-v-c85fd486]{padding-left:1em;border-left:4px solid var(--color-primary-element);color:var(--color-text-maxcontrast);margin-left:0;margin-right:0}[data-v-c85fd486]:root{--table-color-border: var(--color-border);--table-color-heading: var(--color-text-maxcontrast);--table-color-heading-border: var(--color-border-dark);--table-color-background: var(--color-main-background);--table-color-background-hover: var(--color-primary-light);--table-border-radius: var(--border-radius)}div.ProseMirror table[data-v-c85fd486]{border-spacing:0;width:calc(100% - 50px);table-layout:auto;white-space:normal;margin-bottom:1em}div.ProseMirror table[data-v-c85fd486]{margin-top:1em}div.ProseMirror table td[data-v-c85fd486],div.ProseMirror table th[data-v-c85fd486]{border:1px solid var(--table-color-border);border-left:0;vertical-align:top;max-width:100%}div.ProseMirror table td[data-v-c85fd486]:first-child,div.ProseMirror table th[data-v-c85fd486]:first-child{border-left:1px solid var(--table-color-border)}div.ProseMirror table td[data-v-c85fd486]{padding:.5em .75em;border-top:0;color:var(--color-main-text)}div.ProseMirror table th[data-v-c85fd486]{padding:0 0 0 .75em;font-weight:normal;border-bottom-color:var(--table-color-heading-border);color:var(--table-color-heading)}div.ProseMirror table th>div[data-v-c85fd486]{display:flex}div.ProseMirror table tr[data-v-c85fd486]{background-color:var(--table-color-background)}div.ProseMirror table tr[data-v-c85fd486]:hover,div.ProseMirror table tr[data-v-c85fd486]:active,div.ProseMirror table tr[data-v-c85fd486]:focus{background-color:var(--table-color-background-hover)}div.ProseMirror table tr:first-child th[data-v-c85fd486]:first-child{border-top-left-radius:var(--table-border-radius)}div.ProseMirror table tr:first-child th[data-v-c85fd486]:last-child{border-top-right-radius:var(--table-border-radius)}div.ProseMirror table tr:last-child td[data-v-c85fd486]:first-child{border-bottom-left-radius:var(--table-border-radius)}div.ProseMirror table tr:last-child td[data-v-c85fd486]:last-child{border-bottom-right-radius:var(--table-border-radius)}.ProseMirror-focused .ProseMirror-gapcursor[data-v-c85fd486]{display:block}.editor__content p.is-empty[data-v-c85fd486]:first-child::before{content:attr(data-placeholder);float:left;color:var(--color-text-maxcontrast);pointer-events:none;height:0}.editor__content[data-v-c85fd486]{tab-size:4}div.ProseMirror[data-v-c85fd486]{display:inline;margin-top:unset;position:unset;padding:unset;line-height:unset}div.ProseMirror h1[data-v-c85fd486],div.ProseMirror h6[data-v-c85fd486]{display:inline;padding:0;margin:0}',"",{version:3,sources:["webpack://./src/components/HelpModal.vue","webpack://./css/prosemirror.scss"],names:[],mappings:"AAEC,kDACC,sBAAA,CACA,gBAAA,CAID,0CACC,kDACC,0BAAA,CAAA,CAKH,uBACC,eAAA,CACA,wBAAA,CAGC,mHACC,yCAAA,CAIF,gCACC,WAAA,CAGD,0BACC,gBAAA,CACA,4BAAA,CACA,sDAAA,CAGD,0BACC,4BAAA,CACA,iDAAA,CACA,mBAAA,CAEA,mCACC,gBAAA,CAGD,uCACC,gBAAA,CAGD,mCACC,aAAA,CACA,gBAAA,CAGD,0CACC,aAAA,CAIF,2BACC,iBAAA,CAGD,4BACC,iBAAA,CACA,aAAA,CACA,6CAAA,CACA,iBAAA,CC/DF,iCACC,WAAA,CACA,iBAAA,CACA,oBAAA,CACA,oBAAA,CACA,mCAAA,CACA,2BAAA,CACA,0BAAA,CACA,gBAAA,CACA,cAAA,CACA,YAAA,CAEA,yCAEC,sBAAA,CAGD,gOAIC,sBAAA,CACA,UAAA,CACA,8BAAA,CACA,4BAAA,CACA,SAAA,CACA,wBAAA,CACA,gBAAA,CACA,cAAA,CAEA,ghBACC,0BAAA,CAIF,gDACC,YAAA,CACA,iBAAA,CAEA,iBAAA,CAEA,qEACC,YAAA,CAED,uDACC,UAAA,CACA,qBAAA,CACA,sBAAA,CACA,8CAAA,CACA,iBAAA,CACA,aAAA,CACA,kCAAA,CACA,WAAA,CACA,UAAA,CACA,0BAAA,CACA,0BAAA,CACA,cAAA,CAGA,+DACC,wDAAA,CACA,6CAAA,CACA,yCAAA,CAED,8DACC,mCAAA,CACA,4BAAA,CAGF,sDACC,aAAA,CACA,WAAA,CACA,2BAAA,CAIF,+CACC,eAAA,CAIA,gSACC,YAAA,CAIF,mCACC,kCAAA,CACA,yBAAA,CACA,cAAA,CAGD,mCACC,iBAAA,CACA,gBAAA,CAGD,oCACC,iBAAA,CAGD,wNAMC,eAAA,CACA,iBAAA,CACA,eAAA,CACA,kBAAA,CACA,4BAAA,CAGD,oCACC,cAAA,CAGD,oCACC,cAAA,CAGD,oCACC,cAAA,CAGD,oCACC,cAAA,CAGD,oCACC,cAAA,CAGD,oCACC,cAAA,CAGD,qCACC,cAAA,CACA,cAAA,CAGD,oCACC,aAAA,CACA,WAAA,CACA,YAAA,CACA,UAAA,CAGD,0CACC,UAAA,CACA,aAAA,CACA,UAAA,CACA,yCAAA,CACA,eAAA,CAGD,qCACC,oBAAA,CACA,6CAAA,CACA,kCAAA,CACA,iBAAA,CACA,iBAAA,CAGD,iDACC,iBAAA,CACA,kDAAA,CAGD,yDACC,aAAA,CACA,wBAAA,CACA,mCAAA,CACA,mBAAA,CAGD,wCACC,6CAAA,CACA,kCAAA,CACA,iBAAA,CAGD,oCACC,iBAAA,CACA,gBAAA,CAEA,sCACC,kBAAA,CAIF,wEACC,iBAAA,CACA,gBAAA,CACA,iBAAA,CAGD,uCACC,oBAAA,CAID,0CACC,sBAAA,CAID,6CACC,sBAAA,CAGD,4CACC,gBAAA,CACA,kDAAA,CACA,mCAAA,CACA,aAAA,CACA,cAAA,CAIQ,uBACR,yCAAA,CACA,oDAAA,CACA,sDAAA,CACA,sDAAA,CACA,0DAAA,CACA,2CAAA,CAGD,uCACC,gBAAA,CACA,uBAAA,CACA,iBAAA,CACA,kBAAA,CACA,iBAAA,CACA,uCACC,cAAA,CAID,oFACC,0CAAA,CACA,aAAA,CACA,kBAAA,CACA,cAAA,CACA,4GACC,+CAAA,CAGF,0CACC,kBAAA,CACA,YAAA,CACA,4BAAA,CAED,0CACC,mBAAA,CACA,kBAAA,CACA,qDAAA,CACA,gCAAA,CAEA,8CACC,YAAA,CAGF,0CACC,8CAAA,CACA,iJACC,oDAAA,CAKD,qEAAA,iDAAA,CACA,oEAAA,kDAAA,CAIA,oEAAA,oDAAA,CACA,mEAAA,qDAAA,CAOH,6DACC,aAAA,CAGD,iEACC,8BAAA,CACA,UAAA,CACA,mCAAA,CACA,mBAAA,CACA,QAAA,CAGD,kCACC,UAAA,CDvOD,iCACC,cAAA,CACA,gBAAA,CACA,cAAA,CACA,aAAA,CACA,iBAAA,CAEA,wEACC,cAAA,CACA,SAAA,CACA,QAAA",sourcesContent:["\n:deep(.modal-wrapper) {\n\t.modal-container {\n\t\tpadding: 30px 40px 20px;\n\t\tuser-select: text;\n\t}\n\n\t// Remove padding-right on mobile, screen might not be wide enough\n\t@media only screen and (max-width: 512px) {\n\t\t.modal-container {\n\t\t\tpadding: 30px 0px 20px 40px;\n\t\t}\n\t}\n}\n\ntable {\n\tmargin-top: 24px;\n\tborder-collapse: collapse;\n\n\ttbody tr {\n\t\t&:hover, &:focus, &:active {\n\t\t\tbackground-color: transparent !important;\n\t\t}\n\t}\n\n\tthead tr {\n\t\tborder: none;\n\t}\n\n\tth {\n\t\tfont-weight: bold;\n\t\tpadding: .75rem 1rem .75rem 0;\n\t\tborder-bottom: 2px solid var(--color-background-darker);\n\t}\n\n\ttd {\n\t\tpadding: .75rem 1rem .75rem 0;\n\t\tborder-top: 1px solid var(--color-background-dark);\n\t\tborder-bottom: unset;\n\n\t\t&.noborder {\n\t\t\tborder-top: unset;\n\t\t}\n\n\t\t&.ellipsis_top {\n\t\t\tpadding-bottom: 0;\n\t\t}\n\n\t\t&.ellipsis {\n\t\t\tpadding-top: 0;\n\t\t\tpadding-bottom: 0;\n\t\t}\n\n\t\t&.ellipsis_bottom {\n\t\t\tpadding-top: 0;\n\t\t}\n\t}\n\n\tkbd {\n\t\tfont-size: smaller;\n\t}\n\n\tcode {\n\t\tpadding: .2em .4em;\n\t\tfont-size: 90%;\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: 6px;\n\t}\n}\n\n@import '../../css/prosemirror';\n\ndiv.ProseMirror {\n\tdisplay: inline;\n\tmargin-top: unset;\n\tposition: unset;\n\tpadding: unset;\n\tline-height: unset;\n\n\th1, h6 {\n\t\tdisplay: inline;\n\t\tpadding: 0;\n\t\tmargin: 0;\n\t}\n}\n","@use 'sass:selector';\n\n/* Document rendering styles */\ndiv.ProseMirror {\n\theight: 100%;\n\tposition: relative;\n\tword-wrap: break-word;\n\twhite-space: pre-wrap;\n\t-webkit-font-variant-ligatures: none;\n\tfont-variant-ligatures: none;\n\tpadding: 4px 8px 200px 14px;\n\tline-height: 150%;\n\tfont-size: 14px;\n\toutline: none;\n\n\t:target {\n\t\t// Menubar height: 44px + 3px bottom + 3px top padding\n\t\tscroll-margin-top: 50px;\n\t}\n\n\t&[contenteditable=true],\n\t&[contenteditable=false],\n\t[contenteditable=true],\n\t[contenteditable=false] {\n\t\tborder: none !important;\n\t\twidth: 100%;\n\t\tbackground-color: transparent;\n\t\tcolor: var(--color-main-text);\n\t\topacity: 1;\n\t\t-webkit-user-select: text;\n\t\tuser-select: text;\n\t\tfont-size: 14px;\n\n\t\t&:focus, &:focus-visible {\n\t\t\tbox-shadow: none !important;\n\t\t}\n\t}\n\n\t.checkbox-item {\n\t\tdisplay: flex;\n\t\talign-items: start;\n\t\t// Left-align with list item text\n\t\tmargin-left: -23px;\n\n\t\tinput[type=checkbox] {\n\t\t\tdisplay: none;\n\t\t}\n\t\t&:before {\n\t\t\tcontent: '';\n\t\t\tvertical-align: middle;\n\t\t\tmargin: 3px 6px 3px 2px;\n\t\t\tborder: 1px solid var(--color-text-maxcontrast);\n\t\t\tposition: relative;\n\t\t\tdisplay: block;\n\t\t\tborder-radius: var(--border-radius);\n\t\t\theight: 14px;\n\t\t\twidth: 14px;\n\t\t\tbox-shadow: none !important;\n\t\t\tbackground-position: center;\n\t\t\tcursor: pointer;\n\t\t}\n\t\t&.checked{\n\t\t\t&:before {\n\t\t\t\tbackground-image: url('../../img/checkbox-mark.svg');\n\t\t\t\tbackground-color: var(--color-primary-element);\n\t\t\t\tborder-color: var(--color-primary-element);\n\t\t\t}\n\t\t\tlabel {\n\t\t\t\tcolor: var(--color-text-maxcontrast);\n\t\t\t\ttext-decoration: line-through;\n\t\t\t}\n\t\t}\n\t\tlabel {\n\t\t\tdisplay: block;\n\t\t\tflex-grow: 1;\n\t\t\tmax-width: calc(100% - 28px);\n\t\t}\n\t}\n\n\t> *:first-child {\n\t\tmargin-top: 10px;\n\t}\n\n\t> h1,h2,h3,h4,h5,h6 {\n\t\t&:first-child {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\n\ta {\n\t\tcolor: var(--color-primary-element);\n\t\ttext-decoration: underline;\n\t\tpadding: .5em 0;\n\t}\n\n\tp {\n\t\tmargin-bottom: 1em;\n\t\tline-height: 150%;\n\t}\n\n\tem {\n\t\tfont-style: italic;\n\t}\n\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6 {\n\t\tfont-weight: 600;\n\t\tline-height: 1.1em;\n\t\tmargin-top: 24px;\n\t\tmargin-bottom: 12px;\n\t\tcolor: var(--color-main-text);\n\t}\n\n\th1 {\n\t\tfont-size: 36px;\n\t}\n\n\th2 {\n\t\tfont-size: 30px;\n\t}\n\n\th3 {\n\t\tfont-size: 24px;\n\t}\n\n\th4 {\n\t\tfont-size: 21px;\n\t}\n\n\th5 {\n\t\tfont-size: 17px;\n\t}\n\n\th6 {\n\t\tfont-size: 14px;\n\t}\n\n\timg {\n\t\tcursor: default;\n\t\tmax-width: 100%;\n\t}\n\n\thr {\n\t\tpadding: 2px 0;\n\t\tborder: none;\n\t\tmargin: 2em 0;\n\t\twidth: 100%;\n\t}\n\n\thr:after {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\theight: 1px;\n\t\tbackground-color: var(--color-border-dark);\n\t\tline-height: 2px;\n\t}\n\n\tpre {\n\t\twhite-space: pre-wrap;\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: 1em 1.3em;\n\t\tmargin-bottom: 1em;\n\t}\n\n\tpre.frontmatter {\n\t\tmargin-bottom: 2em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t}\n\n\tpre.frontmatter::before {\n\t\tdisplay: block;\n\t\tcontent: attr(data-title);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tpadding-bottom: 0.5em;\n\t}\n\n\tp code {\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: .1em .3em;\n\t}\n\n\tli {\n\t\tposition: relative;\n\t\tpadding-left: 3px;\n\n\t\tp {\n\t\t\tmargin-bottom: 0.5em;\n\t\t}\n\t}\n\n\tul, ol {\n\t\tpadding-left: 10px;\n\t\tmargin-left: 10px;\n\t\tmargin-bottom: 1em;\n\t}\n\n\tul > li {\n\t\tlist-style-type: disc;\n\t}\n\n\t// Second-level list entries\n\tli ul > li {\n\t\tlist-style-type: circle;\n\t}\n\n\t// Third-level and further down list entries\n\tli li ul > li {\n\t\tlist-style-type: square;\n\t}\n\n\tblockquote {\n\t\tpadding-left: 1em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tmargin-left: 0;\n\t\tmargin-right: 0;\n\t}\n\n\t// table variables\n\t@at-root :root {\n\t\t--table-color-border: var(--color-border);\n\t\t--table-color-heading: var(--color-text-maxcontrast);\n\t\t--table-color-heading-border: var(--color-border-dark);\n\t\t--table-color-background: var(--color-main-background);\n\t\t--table-color-background-hover: var(--color-primary-light);\n\t\t--table-border-radius: var(--border-radius);\n\t}\n\n\ttable {\n\t\tborder-spacing: 0;\n\t\twidth: calc(100% - 50px);\n\t\ttable-layout: auto;\n\t\twhite-space: normal; // force text to wrapping\n\t\tmargin-bottom: 1em;\n\t\t+ & {\n\t\t\tmargin-top: 1em;\n\t\t}\n\n\n\t\ttd, th {\n\t\t\tborder: 1px solid var(--table-color-border);\n\t\t\tborder-left: 0;\n\t\t\tvertical-align: top;\n\t\t\tmax-width: 100%;\n\t\t\t&:first-child {\n\t\t\t\tborder-left: 1px solid var(--table-color-border);\n\t\t\t}\n\t\t}\n\t\ttd {\n\t\t\tpadding: 0.5em 0.75em;\n\t\t\tborder-top: 0;\n\t\t\tcolor: var(--color-main-text);\n\t\t}\n\t\tth {\n\t\t\tpadding: 0 0 0 0.75em;\n\t\t\tfont-weight: normal;\n\t\t\tborder-bottom-color: var(--table-color-heading-border);\n\t\t\tcolor: var(--table-color-heading);\n\n\t\t\t& > div {\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t}\n\t\ttr {\n\t\t\tbackground-color: var(--table-color-background);\n\t\t\t&:hover, &:active, &:focus {\n\t\t\t\tbackground-color: var(--table-color-background-hover);\n\t\t\t}\n\t\t}\n\n\t\ttr:first-child {\n\t\t\tth:first-child { border-top-left-radius: var(--table-border-radius); }\n\t\t\tth:last-child { border-top-right-radius: var(--table-border-radius); }\n\t\t}\n\n\t\ttr:last-child {\n\t\t\ttd:first-child { border-bottom-left-radius: var(--table-border-radius); }\n\t\t\ttd:last-child { border-bottom-right-radius: var(--table-border-radius); }\n\t\t}\n\n\t}\n\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n\tdisplay: block;\n}\n\n.editor__content p.is-empty:first-child::before {\n\tcontent: attr(data-placeholder);\n\tfloat: left;\n\tcolor: var(--color-text-maxcontrast);\n\tpointer-events: none;\n\theight: 0;\n}\n\n.editor__content {\n\ttab-size: 4;\n}\n"],sourceRoot:""}]);const A=d},90:(t,e,n)=>{"use strict";n.d(e,{Z:()=>m});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i),s=n(61667),l=n.n(s),c=new URL(n(63423),n.b),d=new URL(n(32605),n.b),u=new URL(n(87127),n.b),A=a()(o()),h=l()(c),p=l()(d),f=l()(u);A.push([t.id,".autocomplete-result[data-v-0f63f2d0]{display:flex;height:30px;padding:10px}.highlight .autocomplete-result[data-v-0f63f2d0]{color:var(--color-main-text);background:var(--color-primary-light)}.highlight .autocomplete-result[data-v-0f63f2d0],.highlight .autocomplete-result *[data-v-0f63f2d0]{cursor:pointer}.autocomplete-result__icon[data-v-0f63f2d0]{position:relative;flex:0 0 30px;width:30px;min-width:30px;height:30px;border-radius:30px;background-color:var(--color-background-darker);background-repeat:no-repeat;background-position:center;background-size:10px}.autocomplete-result__icon--with-avatar[data-v-0f63f2d0]{color:inherit;background-size:cover}.autocomplete-result__status[data-v-0f63f2d0]{position:absolute;right:-4px;bottom:-4px;box-sizing:border-box;width:18px;height:18px;border:2px solid var(--color-main-background);border-radius:50%;background-color:var(--color-main-background);font-size:var(--default-font-size);line-height:15px;background-repeat:no-repeat;background-size:16px;background-position:center}.autocomplete-result__status--online[data-v-0f63f2d0]{background-image:url("+h+")}.autocomplete-result__status--dnd[data-v-0f63f2d0]{background-image:url("+p+");background-color:#fff}.autocomplete-result__status--away[data-v-0f63f2d0]{background-image:url("+f+")}.autocomplete-result__status--icon[data-v-0f63f2d0]{border:none;background-color:rgba(0,0,0,0)}.autocomplete-result__content[data-v-0f63f2d0]{display:flex;flex:1 1 100%;flex-direction:column;justify-content:center;min-width:0;padding-left:10px}.autocomplete-result__title[data-v-0f63f2d0],.autocomplete-result__subline[data-v-0f63f2d0]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.autocomplete-result__subline[data-v-0f63f2d0]{color:var(--color-text-lighter)}","",{version:3,sources:["webpack://./src/components/Mention/AutoCompleteResult.vue"],names:[],mappings:"AAIA,sCACC,YAAA,CACA,WALgB,CAMhB,YALsB,CAOtB,iDACC,4BAAA,CACA,qCAAA,CACA,oGACC,cAAA,CAIF,4CACC,iBAAA,CACA,aAAA,CACA,UAnBe,CAoBf,cApBe,CAqBf,WArBe,CAsBf,kBAtBe,CAuBf,+CAAA,CACA,2BAAA,CACA,0BAAA,CACA,oBAAA,CACA,yDACC,aAAA,CACA,qBAAA,CAIF,8CACC,iBAAA,CACA,UAAA,CACA,WAAA,CACA,qBAAA,CACA,UAAA,CACA,WAAA,CACA,6CAAA,CACA,iBAAA,CACA,6CAAA,CACA,kCAAA,CACA,gBAAA,CACA,2BAAA,CACA,oBAAA,CACA,0BAAA,CAEA,sDACC,wDAAA,CAED,mDACC,wDAAA,CACA,qBAAA,CAED,oDACC,wDAAA,CAED,oDACC,WAAA,CACA,8BAAA,CAIF,+CACC,YAAA,CACA,aAAA,CACA,qBAAA,CACA,sBAAA,CACA,WAAA,CACA,iBAtEqB,CAyEtB,4FAEC,kBAAA,CACA,eAAA,CACA,sBAAA,CAGD,+CACC,+BAAA",sourcesContent:["\n$clickable-area: 30px;\n$autocomplete-padding: 10px;\n\n.autocomplete-result {\n\tdisplay: flex;\n\theight: $clickable-area;\n\tpadding: $autocomplete-padding;\n\n\t.highlight & {\n\t\tcolor: var(--color-main-text);\n\t\tbackground: var(--color-primary-light);\n\t\t&, * {\n\t\t\tcursor: pointer;\n\t\t}\n\t}\n\n\t&__icon {\n\t\tposition: relative;\n\t\tflex: 0 0 $clickable-area;\n\t\twidth: $clickable-area;\n\t\tmin-width: $clickable-area;\n\t\theight: $clickable-area;\n\t\tborder-radius: $clickable-area;\n\t\tbackground-color: var(--color-background-darker);\n\t\tbackground-repeat: no-repeat;\n\t\tbackground-position: center;\n\t\tbackground-size: $clickable-area - 2 * $autocomplete-padding;\n\t\t&--with-avatar {\n\t\t\tcolor: inherit;\n\t\t\tbackground-size: cover;\n\t\t}\n\t}\n\n\t&__status {\n\t\tposition: absolute;\n\t\tright: -4px;\n\t\tbottom: -4px;\n\t\tbox-sizing: border-box;\n\t\twidth: 18px;\n\t\theight: 18px;\n\t\tborder: 2px solid var(--color-main-background);\n\t\tborder-radius: 50%;\n\t\tbackground-color: var(--color-main-background);\n\t\tfont-size: var(--default-font-size);\n\t\tline-height: 15px;\n\t\tbackground-repeat: no-repeat;\n\t\tbackground-size: 16px;\n\t\tbackground-position: center;\n\n\t\t&--online{\n\t\t\tbackground-image: url('../../assets/status-icons/user-status-online.svg');\n\t\t}\n\t\t&--dnd{\n\t\t\tbackground-image: url('../../assets/status-icons/user-status-dnd.svg');\n\t\t\tbackground-color: #ffffff;\n\t\t}\n\t\t&--away{\n\t\t\tbackground-image: url('../../assets/status-icons/user-status-away.svg');\n\t\t}\n\t\t&--icon {\n\t\t\tborder: none;\n\t\t\tbackground-color: transparent;\n\t\t}\n\t}\n\n\t&__content {\n\t\tdisplay: flex;\n\t\tflex: 1 1 100%;\n\t\tflex-direction: column;\n\t\tjustify-content: center;\n\t\tmin-width: 0;\n\t\tpadding-left: $autocomplete-padding;\n\t}\n\n\t&__title,\n\t&__subline {\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n\n\t&__subline {\n\t\tcolor: var(--color-text-lighter);\n\t}\n}\n\n"],sourceRoot:""}]);const m=A},92192:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".items{position:relative;border-radius:var(--border-radius);background:var(--color-main-background);overflow:hidden;font-size:.9rem;box-shadow:0 1px 5px var(--color-box-shadow);min-width:250px}.item-empty{padding:4px 8px;opacity:.8}","",{version:3,sources:["webpack://./src/components/Mention/List.vue"],names:[],mappings:"AACA,OACC,iBAAA,CACA,kCAAA,CACA,uCAAA,CACA,eAAA,CACA,eAAA,CACA,4CAAA,CACA,eAAA,CAGD,YACC,eAAA,CACA,UAAA",sourcesContent:["\n.items {\n\tposition: relative;\n\tborder-radius: var(--border-radius);\n\tbackground: var(--color-main-background);\n\toverflow: hidden;\n\tfont-size: 0.9rem;\n\tbox-shadow: 0 1px 5px var(--color-box-shadow);\n\tmin-width: 250px;\n}\n\n.item-empty {\n\tpadding: 4px 8px;\n\topacity: 0.8;\n}\n"],sourceRoot:""}]);const s=a},60432:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".text-menubar[data-v-4ac89b96]{--background-blur: blur(10px);position:sticky;top:0;z-index:10021;background-color:var(--color-main-background-translucent);backdrop-filter:var(--background-blur);max-height:44px;padding-top:3px;padding-bottom:3px;visibility:hidden;display:flex;justify-content:flex-end;align-items:center}.text-menubar.text-menubar--ready[data-v-4ac89b96]:not(.text-menubar--autohide){visibility:visible;animation-name:fadeInDown;animation-duration:.3s}.text-menubar.text-menubar--autohide[data-v-4ac89b96]{opacity:0;transition:visibility .2s .4s,opacity .2s .4s}.text-menubar.text-menubar--autohide.text-menubar--show[data-v-4ac89b96]{visibility:visible;opacity:1}.text-menubar .text-menubar__entries[data-v-4ac89b96]{display:flex;flex-grow:1;margin-left:calc((100% - var(--text-editor-max-width))/2)}.text-menubar .text-menubar__slot[data-v-4ac89b96]{justify-content:flex-end;display:flex}.text-menubar.text-menubar--is-workspace .text-menubar__entries[data-v-4ac89b96]{margin-left:0}@media(max-width: 660px){.text-menubar .text-menubar__entries[data-v-4ac89b96]{margin-left:0}}","",{version:3,sources:["webpack://./src/components/Menu/MenuBar.vue"],names:[],mappings:"AACA,+BACC,6BAAA,CACA,eAAA,CACA,KAAA,CACA,aAAA,CACA,yDAAA,CACA,sCAAA,CACA,eAAA,CACA,eAAA,CACA,kBAAA,CAEA,iBAAA,CAEA,YAAA,CACA,wBAAA,CACA,kBAAA,CAEA,gFACC,kBAAA,CACA,yBAAA,CACA,sBAAA,CAGD,sDACC,SAAA,CACA,6CAAA,CACA,yEACC,kBAAA,CACA,SAAA,CAGF,sDACC,YAAA,CACA,WAAA,CACA,yDAAA,CAGD,mDAEC,wBAAA,CACA,YAAA,CAIA,iFACC,aAAA,CAIF,yBACC,sDACC,aAAA,CAAA",sourcesContent:["\n.text-menubar {\n\t--background-blur: blur(10px);\n\tposition: sticky;\n\ttop: 0;\n\tz-index: 10021; // above modal-header so menubar is always on top\n\tbackground-color: var(--color-main-background-translucent);\n\tbackdrop-filter: var(--background-blur);\n\tmax-height: 44px; // important for mobile so that the buttons are always inside the container\n\tpadding-top:3px;\n\tpadding-bottom: 3px;\n\n\tvisibility: hidden;\n\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\n\t&.text-menubar--ready:not(.text-menubar--autohide) {\n\t\tvisibility: visible;\n\t\tanimation-name: fadeInDown;\n\t\tanimation-duration: 0.3s;\n\t}\n\n\t&.text-menubar--autohide {\n\t\topacity: 0;\n\t\ttransition: visibility 0.2s 0.4s, opacity 0.2s 0.4s;\n\t\t&.text-menubar--show {\n\t\t\tvisibility: visible;\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t.text-menubar__entries {\n\t\tdisplay: flex;\n\t\tflex-grow: 1;\n\t\tmargin-left: calc((100% - var(--text-editor-max-width)) / 2);\n\t}\n\n\t.text-menubar__slot {\n\t\t// width: 100%;\n\t\tjustify-content: flex-end;\n\t\tdisplay: flex;\n\t}\n\n\t&.text-menubar--is-workspace {\n\t\t.text-menubar__entries {\n\t\t\tmargin-left: 0;\n\t\t}\n\t}\n\n\t@media (max-width: 660px) {\n\t\t.text-menubar__entries {\n\t\t\tmargin-left: 0;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=a},62886:(t,e,n)=>{"use strict";n.d(e,{Z:()=>A});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i),s=n(61667),l=n.n(s),c=new URL(n(64989),n.b),d=a()(o()),u=l()(c);d.push([t.id,'#read-only-editor{overflow:scroll}#read-only-editor div.ProseMirror{height:100%;position:relative;word-wrap:break-word;white-space:pre-wrap;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;padding:4px 8px 200px 14px;line-height:150%;font-size:14px;outline:none}#read-only-editor div.ProseMirror :target{scroll-margin-top:50px}#read-only-editor div.ProseMirror[contenteditable=true],#read-only-editor div.ProseMirror[contenteditable=false],#read-only-editor div.ProseMirror [contenteditable=true],#read-only-editor div.ProseMirror [contenteditable=false]{border:none !important;width:100%;background-color:rgba(0,0,0,0);color:var(--color-main-text);opacity:1;-webkit-user-select:text;user-select:text;font-size:14px}#read-only-editor div.ProseMirror[contenteditable=true]:focus,#read-only-editor div.ProseMirror[contenteditable=true]:focus-visible,#read-only-editor div.ProseMirror[contenteditable=false]:focus,#read-only-editor div.ProseMirror[contenteditable=false]:focus-visible,#read-only-editor div.ProseMirror [contenteditable=true]:focus,#read-only-editor div.ProseMirror [contenteditable=true]:focus-visible,#read-only-editor div.ProseMirror [contenteditable=false]:focus,#read-only-editor div.ProseMirror [contenteditable=false]:focus-visible{box-shadow:none !important}#read-only-editor div.ProseMirror .checkbox-item{display:flex;align-items:start;margin-left:-23px}#read-only-editor div.ProseMirror .checkbox-item input[type=checkbox]{display:none}#read-only-editor div.ProseMirror .checkbox-item:before{content:"";vertical-align:middle;margin:3px 6px 3px 2px;border:1px solid var(--color-text-maxcontrast);position:relative;display:block;border-radius:var(--border-radius);height:14px;width:14px;box-shadow:none !important;background-position:center;cursor:pointer}#read-only-editor div.ProseMirror .checkbox-item.checked:before{background-image:url('+u+');background-color:var(--color-primary-element);border-color:var(--color-primary-element)}#read-only-editor div.ProseMirror .checkbox-item.checked label{color:var(--color-text-maxcontrast);text-decoration:line-through}#read-only-editor div.ProseMirror .checkbox-item label{display:block;flex-grow:1;max-width:calc(100% - 28px)}#read-only-editor div.ProseMirror>*:first-child{margin-top:10px}#read-only-editor div.ProseMirror>h1:first-child,#read-only-editor div.ProseMirror h2:first-child,#read-only-editor div.ProseMirror h3:first-child,#read-only-editor div.ProseMirror h4:first-child,#read-only-editor div.ProseMirror h5:first-child,#read-only-editor div.ProseMirror h6:first-child{margin-top:0}#read-only-editor div.ProseMirror a{color:var(--color-primary-element);text-decoration:underline;padding:.5em 0}#read-only-editor div.ProseMirror p{margin-bottom:1em;line-height:150%}#read-only-editor div.ProseMirror em{font-style:italic}#read-only-editor div.ProseMirror h1,#read-only-editor div.ProseMirror h2,#read-only-editor div.ProseMirror h3,#read-only-editor div.ProseMirror h4,#read-only-editor div.ProseMirror h5,#read-only-editor div.ProseMirror h6{font-weight:600;line-height:1.1em;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}#read-only-editor div.ProseMirror h1{font-size:36px}#read-only-editor div.ProseMirror h2{font-size:30px}#read-only-editor div.ProseMirror h3{font-size:24px}#read-only-editor div.ProseMirror h4{font-size:21px}#read-only-editor div.ProseMirror h5{font-size:17px}#read-only-editor div.ProseMirror h6{font-size:14px}#read-only-editor div.ProseMirror img{cursor:default;max-width:100%}#read-only-editor div.ProseMirror hr{padding:2px 0;border:none;margin:2em 0;width:100%}#read-only-editor div.ProseMirror hr:after{content:"";display:block;height:1px;background-color:var(--color-border-dark);line-height:2px}#read-only-editor div.ProseMirror pre{white-space:pre-wrap;background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:1em 1.3em;margin-bottom:1em}#read-only-editor div.ProseMirror pre.frontmatter{margin-bottom:2em;border-left:4px solid var(--color-primary-element)}#read-only-editor div.ProseMirror pre.frontmatter::before{display:block;content:attr(data-title);color:var(--color-text-maxcontrast);padding-bottom:.5em}#read-only-editor div.ProseMirror p code{background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:.1em .3em}#read-only-editor div.ProseMirror li{position:relative;padding-left:3px}#read-only-editor div.ProseMirror li p{margin-bottom:.5em}#read-only-editor div.ProseMirror ul,#read-only-editor div.ProseMirror ol{padding-left:10px;margin-left:10px;margin-bottom:1em}#read-only-editor div.ProseMirror ul>li{list-style-type:disc}#read-only-editor div.ProseMirror li ul>li{list-style-type:circle}#read-only-editor div.ProseMirror li li ul>li{list-style-type:square}#read-only-editor div.ProseMirror blockquote{padding-left:1em;border-left:4px solid var(--color-primary-element);color:var(--color-text-maxcontrast);margin-left:0;margin-right:0}:root{--table-color-border: var(--color-border);--table-color-heading: var(--color-text-maxcontrast);--table-color-heading-border: var(--color-border-dark);--table-color-background: var(--color-main-background);--table-color-background-hover: var(--color-primary-light);--table-border-radius: var(--border-radius)}#read-only-editor div.ProseMirror table{border-spacing:0;width:calc(100% - 50px);table-layout:auto;white-space:normal;margin-bottom:1em}#read-only-editor div.ProseMirror table{margin-top:1em}#read-only-editor div.ProseMirror table td,#read-only-editor div.ProseMirror table th{border:1px solid var(--table-color-border);border-left:0;vertical-align:top;max-width:100%}#read-only-editor div.ProseMirror table td:first-child,#read-only-editor div.ProseMirror table th:first-child{border-left:1px solid var(--table-color-border)}#read-only-editor div.ProseMirror table td{padding:.5em .75em;border-top:0;color:var(--color-main-text)}#read-only-editor div.ProseMirror table th{padding:0 0 0 .75em;font-weight:normal;border-bottom-color:var(--table-color-heading-border);color:var(--table-color-heading)}#read-only-editor div.ProseMirror table th>div{display:flex}#read-only-editor div.ProseMirror table tr{background-color:var(--table-color-background)}#read-only-editor div.ProseMirror table tr:hover,#read-only-editor div.ProseMirror table tr:active,#read-only-editor div.ProseMirror table tr:focus{background-color:var(--table-color-background-hover)}#read-only-editor div.ProseMirror table tr:first-child th:first-child{border-top-left-radius:var(--table-border-radius)}#read-only-editor div.ProseMirror table tr:first-child th:last-child{border-top-right-radius:var(--table-border-radius)}#read-only-editor div.ProseMirror table tr:last-child td:first-child{border-bottom-left-radius:var(--table-border-radius)}#read-only-editor div.ProseMirror table tr:last-child td:last-child{border-bottom-right-radius:var(--table-border-radius)}#read-only-editor .ProseMirror-focused .ProseMirror-gapcursor{display:block}#read-only-editor .editor__content p.is-empty:first-child::before{content:attr(data-placeholder);float:left;color:var(--color-text-maxcontrast);pointer-events:none;height:0}#read-only-editor .editor__content{tab-size:4}.thumbnailContainer #read-only-editor{width:100%}.thumbnailContainer #read-only-editor .ProseMirror{height:auto;margin:0 0 0 0;padding:0}',"",{version:3,sources:["webpack://./src/components/Reader.vue","webpack://./css/prosemirror.scss"],names:[],mappings:"AAEA,kBAEC,eAAA,CCDD,kCACC,WAAA,CACA,iBAAA,CACA,oBAAA,CACA,oBAAA,CACA,mCAAA,CACA,2BAAA,CACA,0BAAA,CACA,gBAAA,CACA,cAAA,CACA,YAAA,CAEA,0CAEC,sBAAA,CAGD,oOAIC,sBAAA,CACA,UAAA,CACA,8BAAA,CACA,4BAAA,CACA,SAAA,CACA,wBAAA,CACA,gBAAA,CACA,cAAA,CAEA,whBACC,0BAAA,CAIF,iDACC,YAAA,CACA,iBAAA,CAEA,iBAAA,CAEA,sEACC,YAAA,CAED,wDACC,UAAA,CACA,qBAAA,CACA,sBAAA,CACA,8CAAA,CACA,iBAAA,CACA,aAAA,CACA,kCAAA,CACA,WAAA,CACA,UAAA,CACA,0BAAA,CACA,0BAAA,CACA,cAAA,CAGA,gEACC,wDAAA,CACA,6CAAA,CACA,yCAAA,CAED,+DACC,mCAAA,CACA,4BAAA,CAGF,uDACC,aAAA,CACA,WAAA,CACA,2BAAA,CAIF,gDACC,eAAA,CAIA,sSACC,YAAA,CAIF,oCACC,kCAAA,CACA,yBAAA,CACA,cAAA,CAGD,oCACC,iBAAA,CACA,gBAAA,CAGD,qCACC,iBAAA,CAGD,8NAMC,eAAA,CACA,iBAAA,CACA,eAAA,CACA,kBAAA,CACA,4BAAA,CAGD,qCACC,cAAA,CAGD,qCACC,cAAA,CAGD,qCACC,cAAA,CAGD,qCACC,cAAA,CAGD,qCACC,cAAA,CAGD,qCACC,cAAA,CAGD,sCACC,cAAA,CACA,cAAA,CAGD,qCACC,aAAA,CACA,WAAA,CACA,YAAA,CACA,UAAA,CAGD,2CACC,UAAA,CACA,aAAA,CACA,UAAA,CACA,yCAAA,CACA,eAAA,CAGD,sCACC,oBAAA,CACA,6CAAA,CACA,kCAAA,CACA,iBAAA,CACA,iBAAA,CAGD,kDACC,iBAAA,CACA,kDAAA,CAGD,0DACC,aAAA,CACA,wBAAA,CACA,mCAAA,CACA,mBAAA,CAGD,yCACC,6CAAA,CACA,kCAAA,CACA,iBAAA,CAGD,qCACC,iBAAA,CACA,gBAAA,CAEA,uCACC,kBAAA,CAIF,0EACC,iBAAA,CACA,gBAAA,CACA,iBAAA,CAGD,wCACC,oBAAA,CAID,2CACC,sBAAA,CAID,8CACC,sBAAA,CAGD,6CACC,gBAAA,CACA,kDAAA,CACA,mCAAA,CACA,aAAA,CACA,cAAA,CAIQ,MACR,yCAAA,CACA,oDAAA,CACA,sDAAA,CACA,sDAAA,CACA,0DAAA,CACA,2CAAA,CAGD,wCACC,gBAAA,CACA,uBAAA,CACA,iBAAA,CACA,kBAAA,CACA,iBAAA,CACA,wCACC,cAAA,CAID,sFACC,0CAAA,CACA,aAAA,CACA,kBAAA,CACA,cAAA,CACA,8GACC,+CAAA,CAGF,2CACC,kBAAA,CACA,YAAA,CACA,4BAAA,CAED,2CACC,mBAAA,CACA,kBAAA,CACA,qDAAA,CACA,gCAAA,CAEA,+CACC,YAAA,CAGF,2CACC,8CAAA,CACA,oJACC,oDAAA,CAKD,sEAAA,iDAAA,CACA,qEAAA,kDAAA,CAIA,qEAAA,oDAAA,CACA,oEAAA,qDAAA,CAOH,8DACC,aAAA,CAGD,kEACC,8BAAA,CACA,UAAA,CACA,mCAAA,CACA,mBAAA,CACA,QAAA,CAGD,mCACC,UAAA,CDxSD,sCACC,UAAA,CAEA,mDACC,WAAA,CACA,cAAA,CACA,SAAA",sourcesContent:["\n\n#read-only-editor {\n\t@import './../../css/prosemirror';\n\toverflow: scroll;\n}\n\n.thumbnailContainer #read-only-editor {\n\twidth: 100%;\n\n\t.ProseMirror {\n\t\theight: auto;\n\t\tmargin: 0 0 0 0;\n\t\tpadding: 0;\n\t}\n}\n\n","@use 'sass:selector';\n\n/* Document rendering styles */\ndiv.ProseMirror {\n\theight: 100%;\n\tposition: relative;\n\tword-wrap: break-word;\n\twhite-space: pre-wrap;\n\t-webkit-font-variant-ligatures: none;\n\tfont-variant-ligatures: none;\n\tpadding: 4px 8px 200px 14px;\n\tline-height: 150%;\n\tfont-size: 14px;\n\toutline: none;\n\n\t:target {\n\t\t// Menubar height: 44px + 3px bottom + 3px top padding\n\t\tscroll-margin-top: 50px;\n\t}\n\n\t&[contenteditable=true],\n\t&[contenteditable=false],\n\t[contenteditable=true],\n\t[contenteditable=false] {\n\t\tborder: none !important;\n\t\twidth: 100%;\n\t\tbackground-color: transparent;\n\t\tcolor: var(--color-main-text);\n\t\topacity: 1;\n\t\t-webkit-user-select: text;\n\t\tuser-select: text;\n\t\tfont-size: 14px;\n\n\t\t&:focus, &:focus-visible {\n\t\t\tbox-shadow: none !important;\n\t\t}\n\t}\n\n\t.checkbox-item {\n\t\tdisplay: flex;\n\t\talign-items: start;\n\t\t// Left-align with list item text\n\t\tmargin-left: -23px;\n\n\t\tinput[type=checkbox] {\n\t\t\tdisplay: none;\n\t\t}\n\t\t&:before {\n\t\t\tcontent: '';\n\t\t\tvertical-align: middle;\n\t\t\tmargin: 3px 6px 3px 2px;\n\t\t\tborder: 1px solid var(--color-text-maxcontrast);\n\t\t\tposition: relative;\n\t\t\tdisplay: block;\n\t\t\tborder-radius: var(--border-radius);\n\t\t\theight: 14px;\n\t\t\twidth: 14px;\n\t\t\tbox-shadow: none !important;\n\t\t\tbackground-position: center;\n\t\t\tcursor: pointer;\n\t\t}\n\t\t&.checked{\n\t\t\t&:before {\n\t\t\t\tbackground-image: url('../../img/checkbox-mark.svg');\n\t\t\t\tbackground-color: var(--color-primary-element);\n\t\t\t\tborder-color: var(--color-primary-element);\n\t\t\t}\n\t\t\tlabel {\n\t\t\t\tcolor: var(--color-text-maxcontrast);\n\t\t\t\ttext-decoration: line-through;\n\t\t\t}\n\t\t}\n\t\tlabel {\n\t\t\tdisplay: block;\n\t\t\tflex-grow: 1;\n\t\t\tmax-width: calc(100% - 28px);\n\t\t}\n\t}\n\n\t> *:first-child {\n\t\tmargin-top: 10px;\n\t}\n\n\t> h1,h2,h3,h4,h5,h6 {\n\t\t&:first-child {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\n\ta {\n\t\tcolor: var(--color-primary-element);\n\t\ttext-decoration: underline;\n\t\tpadding: .5em 0;\n\t}\n\n\tp {\n\t\tmargin-bottom: 1em;\n\t\tline-height: 150%;\n\t}\n\n\tem {\n\t\tfont-style: italic;\n\t}\n\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6 {\n\t\tfont-weight: 600;\n\t\tline-height: 1.1em;\n\t\tmargin-top: 24px;\n\t\tmargin-bottom: 12px;\n\t\tcolor: var(--color-main-text);\n\t}\n\n\th1 {\n\t\tfont-size: 36px;\n\t}\n\n\th2 {\n\t\tfont-size: 30px;\n\t}\n\n\th3 {\n\t\tfont-size: 24px;\n\t}\n\n\th4 {\n\t\tfont-size: 21px;\n\t}\n\n\th5 {\n\t\tfont-size: 17px;\n\t}\n\n\th6 {\n\t\tfont-size: 14px;\n\t}\n\n\timg {\n\t\tcursor: default;\n\t\tmax-width: 100%;\n\t}\n\n\thr {\n\t\tpadding: 2px 0;\n\t\tborder: none;\n\t\tmargin: 2em 0;\n\t\twidth: 100%;\n\t}\n\n\thr:after {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\theight: 1px;\n\t\tbackground-color: var(--color-border-dark);\n\t\tline-height: 2px;\n\t}\n\n\tpre {\n\t\twhite-space: pre-wrap;\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: 1em 1.3em;\n\t\tmargin-bottom: 1em;\n\t}\n\n\tpre.frontmatter {\n\t\tmargin-bottom: 2em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t}\n\n\tpre.frontmatter::before {\n\t\tdisplay: block;\n\t\tcontent: attr(data-title);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tpadding-bottom: 0.5em;\n\t}\n\n\tp code {\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: .1em .3em;\n\t}\n\n\tli {\n\t\tposition: relative;\n\t\tpadding-left: 3px;\n\n\t\tp {\n\t\t\tmargin-bottom: 0.5em;\n\t\t}\n\t}\n\n\tul, ol {\n\t\tpadding-left: 10px;\n\t\tmargin-left: 10px;\n\t\tmargin-bottom: 1em;\n\t}\n\n\tul > li {\n\t\tlist-style-type: disc;\n\t}\n\n\t// Second-level list entries\n\tli ul > li {\n\t\tlist-style-type: circle;\n\t}\n\n\t// Third-level and further down list entries\n\tli li ul > li {\n\t\tlist-style-type: square;\n\t}\n\n\tblockquote {\n\t\tpadding-left: 1em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tmargin-left: 0;\n\t\tmargin-right: 0;\n\t}\n\n\t// table variables\n\t@at-root :root {\n\t\t--table-color-border: var(--color-border);\n\t\t--table-color-heading: var(--color-text-maxcontrast);\n\t\t--table-color-heading-border: var(--color-border-dark);\n\t\t--table-color-background: var(--color-main-background);\n\t\t--table-color-background-hover: var(--color-primary-light);\n\t\t--table-border-radius: var(--border-radius);\n\t}\n\n\ttable {\n\t\tborder-spacing: 0;\n\t\twidth: calc(100% - 50px);\n\t\ttable-layout: auto;\n\t\twhite-space: normal; // force text to wrapping\n\t\tmargin-bottom: 1em;\n\t\t+ & {\n\t\t\tmargin-top: 1em;\n\t\t}\n\n\n\t\ttd, th {\n\t\t\tborder: 1px solid var(--table-color-border);\n\t\t\tborder-left: 0;\n\t\t\tvertical-align: top;\n\t\t\tmax-width: 100%;\n\t\t\t&:first-child {\n\t\t\t\tborder-left: 1px solid var(--table-color-border);\n\t\t\t}\n\t\t}\n\t\ttd {\n\t\t\tpadding: 0.5em 0.75em;\n\t\t\tborder-top: 0;\n\t\t\tcolor: var(--color-main-text);\n\t\t}\n\t\tth {\n\t\t\tpadding: 0 0 0 0.75em;\n\t\t\tfont-weight: normal;\n\t\t\tborder-bottom-color: var(--table-color-heading-border);\n\t\t\tcolor: var(--table-color-heading);\n\n\t\t\t& > div {\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t}\n\t\ttr {\n\t\t\tbackground-color: var(--table-color-background);\n\t\t\t&:hover, &:active, &:focus {\n\t\t\t\tbackground-color: var(--table-color-background-hover);\n\t\t\t}\n\t\t}\n\n\t\ttr:first-child {\n\t\t\tth:first-child { border-top-left-radius: var(--table-border-radius); }\n\t\t\tth:last-child { border-top-right-radius: var(--table-border-radius); }\n\t\t}\n\n\t\ttr:last-child {\n\t\t\ttd:first-child { border-bottom-left-radius: var(--table-border-radius); }\n\t\t\ttd:last-child { border-bottom-right-radius: var(--table-border-radius); }\n\t\t}\n\n\t}\n\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n\tdisplay: block;\n}\n\n.editor__content p.is-empty:first-child::before {\n\tcontent: attr(data-placeholder);\n\tfloat: left;\n\tcolor: var(--color-text-maxcontrast);\n\tpointer-events: none;\n\theight: 0;\n}\n\n.editor__content {\n\ttab-size: 4;\n}\n"],sourceRoot:""}]);const A=d},51716:(t,e,n)=>{"use strict";n.d(e,{Z:()=>A});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i),s=n(61667),l=n.n(s),c=new URL(n(64989),n.b),d=a()(o()),u=l()(c);d.push([t.id,'div.ProseMirror{height:100%;position:relative;word-wrap:break-word;white-space:pre-wrap;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;padding:4px 8px 200px 14px;line-height:150%;font-size:14px;outline:none}div.ProseMirror :target{scroll-margin-top:50px}div.ProseMirror[contenteditable=true],div.ProseMirror[contenteditable=false],div.ProseMirror [contenteditable=true],div.ProseMirror [contenteditable=false]{border:none !important;width:100%;background-color:rgba(0,0,0,0);color:var(--color-main-text);opacity:1;-webkit-user-select:text;user-select:text;font-size:14px}div.ProseMirror[contenteditable=true]:focus,div.ProseMirror[contenteditable=true]:focus-visible,div.ProseMirror[contenteditable=false]:focus,div.ProseMirror[contenteditable=false]:focus-visible,div.ProseMirror [contenteditable=true]:focus,div.ProseMirror [contenteditable=true]:focus-visible,div.ProseMirror [contenteditable=false]:focus,div.ProseMirror [contenteditable=false]:focus-visible{box-shadow:none !important}div.ProseMirror .checkbox-item{display:flex;align-items:start;margin-left:-23px}div.ProseMirror .checkbox-item input[type=checkbox]{display:none}div.ProseMirror .checkbox-item:before{content:"";vertical-align:middle;margin:3px 6px 3px 2px;border:1px solid var(--color-text-maxcontrast);position:relative;display:block;border-radius:var(--border-radius);height:14px;width:14px;box-shadow:none !important;background-position:center;cursor:pointer}div.ProseMirror .checkbox-item.checked:before{background-image:url('+u+');background-color:var(--color-primary-element);border-color:var(--color-primary-element)}div.ProseMirror .checkbox-item.checked label{color:var(--color-text-maxcontrast);text-decoration:line-through}div.ProseMirror .checkbox-item label{display:block;flex-grow:1;max-width:calc(100% - 28px)}div.ProseMirror>*:first-child{margin-top:10px}div.ProseMirror>h1:first-child,div.ProseMirror h2:first-child,div.ProseMirror h3:first-child,div.ProseMirror h4:first-child,div.ProseMirror h5:first-child,div.ProseMirror h6:first-child{margin-top:0}div.ProseMirror a{color:var(--color-primary-element);text-decoration:underline;padding:.5em 0}div.ProseMirror p{margin-bottom:1em;line-height:150%}div.ProseMirror em{font-style:italic}div.ProseMirror h1,div.ProseMirror h2,div.ProseMirror h3,div.ProseMirror h4,div.ProseMirror h5,div.ProseMirror h6{font-weight:600;line-height:1.1em;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}div.ProseMirror h1{font-size:36px}div.ProseMirror h2{font-size:30px}div.ProseMirror h3{font-size:24px}div.ProseMirror h4{font-size:21px}div.ProseMirror h5{font-size:17px}div.ProseMirror h6{font-size:14px}div.ProseMirror img{cursor:default;max-width:100%}div.ProseMirror hr{padding:2px 0;border:none;margin:2em 0;width:100%}div.ProseMirror hr:after{content:"";display:block;height:1px;background-color:var(--color-border-dark);line-height:2px}div.ProseMirror pre{white-space:pre-wrap;background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:1em 1.3em;margin-bottom:1em}div.ProseMirror pre.frontmatter{margin-bottom:2em;border-left:4px solid var(--color-primary-element)}div.ProseMirror pre.frontmatter::before{display:block;content:attr(data-title);color:var(--color-text-maxcontrast);padding-bottom:.5em}div.ProseMirror p code{background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:.1em .3em}div.ProseMirror li{position:relative;padding-left:3px}div.ProseMirror li p{margin-bottom:.5em}div.ProseMirror ul,div.ProseMirror ol{padding-left:10px;margin-left:10px;margin-bottom:1em}div.ProseMirror ul>li{list-style-type:disc}div.ProseMirror li ul>li{list-style-type:circle}div.ProseMirror li li ul>li{list-style-type:square}div.ProseMirror blockquote{padding-left:1em;border-left:4px solid var(--color-primary-element);color:var(--color-text-maxcontrast);margin-left:0;margin-right:0}:root{--table-color-border: var(--color-border);--table-color-heading: var(--color-text-maxcontrast);--table-color-heading-border: var(--color-border-dark);--table-color-background: var(--color-main-background);--table-color-background-hover: var(--color-primary-light);--table-border-radius: var(--border-radius)}div.ProseMirror table{border-spacing:0;width:calc(100% - 50px);table-layout:auto;white-space:normal;margin-bottom:1em}div.ProseMirror table{margin-top:1em}div.ProseMirror table td,div.ProseMirror table th{border:1px solid var(--table-color-border);border-left:0;vertical-align:top;max-width:100%}div.ProseMirror table td:first-child,div.ProseMirror table th:first-child{border-left:1px solid var(--table-color-border)}div.ProseMirror table td{padding:.5em .75em;border-top:0;color:var(--color-main-text)}div.ProseMirror table th{padding:0 0 0 .75em;font-weight:normal;border-bottom-color:var(--table-color-heading-border);color:var(--table-color-heading)}div.ProseMirror table th>div{display:flex}div.ProseMirror table tr{background-color:var(--table-color-background)}div.ProseMirror table tr:hover,div.ProseMirror table tr:active,div.ProseMirror table tr:focus{background-color:var(--table-color-background-hover)}div.ProseMirror table tr:first-child th:first-child{border-top-left-radius:var(--table-border-radius)}div.ProseMirror table tr:first-child th:last-child{border-top-right-radius:var(--table-border-radius)}div.ProseMirror table tr:last-child td:first-child{border-bottom-left-radius:var(--table-border-radius)}div.ProseMirror table tr:last-child td:last-child{border-bottom-right-radius:var(--table-border-radius)}.ProseMirror-focused .ProseMirror-gapcursor{display:block}.editor__content p.is-empty:first-child::before{content:attr(data-placeholder);float:left;color:var(--color-text-maxcontrast);pointer-events:none;height:0}.editor__content{tab-size:4}@media print{@page{size:A4;margin:2.5cm 2cm 2cm 2.5cm}body{position:absolute;overflow:visible !important}#viewer[data-handler=text]{border:none;width:100% !important;position:absolute !important}#viewer[data-handler=text] .modal-header{display:none !important}#viewer[data-handler=text] .modal-container{top:0px;height:fit-content}.text-editor .text-menubar{display:none !important}.text-editor .action-item{display:none !important}.text-editor .editor__content{max-width:100%}.text-editor .text-editor__wrapper{height:fit-content;position:unset}.text-editor div.ProseMirror h1,.text-editor div.ProseMirror h2,.text-editor div.ProseMirror h3,.text-editor div.ProseMirror h4,.text-editor div.ProseMirror h5{break-after:avoid}.text-editor div.ProseMirror .image,.text-editor div.ProseMirror img,.text-editor div.ProseMirror table{break-inside:avoid-page;max-width:90% !important;margin:5vw auto 5vw 5% !important}.text-editor div.ProseMirror th{color:#000 !important;font-weight:bold !important;border-width:0 1px 2px 0 !important;border-color:gray !important;border-style:none solid solid none !important}.text-editor div.ProseMirror th:last-of-type{border-width:0 0 2px 0 !important}.text-editor div.ProseMirror td{border-style:none solid none none !important;border-width:1px !important;border-color:gray !important}.text-editor div.ProseMirror td:last-of-type{border:none !important}.menubar-placeholder,.text-editor--readonly-bar{display:none}.text-editor__content-wrapper.--show-outline{display:block}.text-editor__content-wrapper .editor--outline{width:auto;height:auto;overflow:unset;position:relative}.text-editor__content-wrapper .editor--outline__btn-close{display:none}}@media print{#content{display:none}}',"",{version:3,sources:["webpack://./css/prosemirror.scss","webpack://./css/print.scss","webpack://./src/components/RichTextReader.vue"],names:[],mappings:"AAGA,gBACC,WAAA,CACA,iBAAA,CACA,oBAAA,CACA,oBAAA,CACA,mCAAA,CACA,2BAAA,CACA,0BAAA,CACA,gBAAA,CACA,cAAA,CACA,YAAA,CAEA,wBAEC,sBAAA,CAGD,4JAIC,sBAAA,CACA,UAAA,CACA,8BAAA,CACA,4BAAA,CACA,SAAA,CACA,wBAAA,CACA,gBAAA,CACA,cAAA,CAEA,wYACC,0BAAA,CAIF,+BACC,YAAA,CACA,iBAAA,CAEA,iBAAA,CAEA,oDACC,YAAA,CAED,sCACC,UAAA,CACA,qBAAA,CACA,sBAAA,CACA,8CAAA,CACA,iBAAA,CACA,aAAA,CACA,kCAAA,CACA,WAAA,CACA,UAAA,CACA,0BAAA,CACA,0BAAA,CACA,cAAA,CAGA,8CACC,wDAAA,CACA,6CAAA,CACA,yCAAA,CAED,6CACC,mCAAA,CACA,4BAAA,CAGF,qCACC,aAAA,CACA,WAAA,CACA,2BAAA,CAIF,8BACC,eAAA,CAIA,0LACC,YAAA,CAIF,kBACC,kCAAA,CACA,yBAAA,CACA,cAAA,CAGD,kBACC,iBAAA,CACA,gBAAA,CAGD,mBACC,iBAAA,CAGD,kHAMC,eAAA,CACA,iBAAA,CACA,eAAA,CACA,kBAAA,CACA,4BAAA,CAGD,mBACC,cAAA,CAGD,mBACC,cAAA,CAGD,mBACC,cAAA,CAGD,mBACC,cAAA,CAGD,mBACC,cAAA,CAGD,mBACC,cAAA,CAGD,oBACC,cAAA,CACA,cAAA,CAGD,mBACC,aAAA,CACA,WAAA,CACA,YAAA,CACA,UAAA,CAGD,yBACC,UAAA,CACA,aAAA,CACA,UAAA,CACA,yCAAA,CACA,eAAA,CAGD,oBACC,oBAAA,CACA,6CAAA,CACA,kCAAA,CACA,iBAAA,CACA,iBAAA,CAGD,gCACC,iBAAA,CACA,kDAAA,CAGD,wCACC,aAAA,CACA,wBAAA,CACA,mCAAA,CACA,mBAAA,CAGD,uBACC,6CAAA,CACA,kCAAA,CACA,iBAAA,CAGD,mBACC,iBAAA,CACA,gBAAA,CAEA,qBACC,kBAAA,CAIF,sCACC,iBAAA,CACA,gBAAA,CACA,iBAAA,CAGD,sBACC,oBAAA,CAID,yBACC,sBAAA,CAID,4BACC,sBAAA,CAGD,2BACC,gBAAA,CACA,kDAAA,CACA,mCAAA,CACA,aAAA,CACA,cAAA,CAIQ,MACR,yCAAA,CACA,oDAAA,CACA,sDAAA,CACA,sDAAA,CACA,0DAAA,CACA,2CAAA,CAGD,sBACC,gBAAA,CACA,uBAAA,CACA,iBAAA,CACA,kBAAA,CACA,iBAAA,CACA,sBACC,cAAA,CAID,kDACC,0CAAA,CACA,aAAA,CACA,kBAAA,CACA,cAAA,CACA,0EACC,+CAAA,CAGF,yBACC,kBAAA,CACA,YAAA,CACA,4BAAA,CAED,yBACC,mBAAA,CACA,kBAAA,CACA,qDAAA,CACA,gCAAA,CAEA,6BACC,YAAA,CAGF,yBACC,8CAAA,CACA,8FACC,oDAAA,CAKD,oDAAA,iDAAA,CACA,mDAAA,kDAAA,CAIA,mDAAA,oDAAA,CACA,kDAAA,qDAAA,CAOH,4CACC,aAAA,CAGD,gDACC,8BAAA,CACA,UAAA,CACA,mCAAA,CACA,mBAAA,CACA,QAAA,CAGD,iBACC,UAAA,CC/SD,aACC,MACC,OAAA,CACA,0BAAA,CAGD,KAEC,iBAAA,CACA,2BAAA,CAGD,2BAEC,WAAA,CACA,qBAAA,CAEA,4BAAA,CAEA,yCAEC,uBAAA,CAED,4CAEC,OAAA,CACA,kBAAA,CAKD,2BAEC,uBAAA,CAED,0BAEC,uBAAA,CAED,8BAEC,cAAA,CAED,mCACC,kBAAA,CACA,cAAA,CAIA,gKAEC,iBAAA,CAED,wGAEC,uBAAA,CAEA,wBAAA,CACA,iCAAA,CAID,gCACC,qBAAA,CACA,2BAAA,CACA,mCAAA,CACA,4BAAA,CACA,6CAAA,CAED,6CACC,iCAAA,CAGD,gCACC,4CAAA,CACA,2BAAA,CACA,4BAAA,CAED,6CACC,sBAAA,CAKH,gDACC,YAAA,CAIA,6CACC,aAAA,CAGD,+CACC,UAAA,CACA,WAAA,CACA,cAAA,CACA,iBAAA,CAED,0DACC,YAAA,CAAA,CChGH,aAEC,SACC,YAAA,CAAA",sourcesContent:["@use 'sass:selector';\n\n/* Document rendering styles */\ndiv.ProseMirror {\n\theight: 100%;\n\tposition: relative;\n\tword-wrap: break-word;\n\twhite-space: pre-wrap;\n\t-webkit-font-variant-ligatures: none;\n\tfont-variant-ligatures: none;\n\tpadding: 4px 8px 200px 14px;\n\tline-height: 150%;\n\tfont-size: 14px;\n\toutline: none;\n\n\t:target {\n\t\t// Menubar height: 44px + 3px bottom + 3px top padding\n\t\tscroll-margin-top: 50px;\n\t}\n\n\t&[contenteditable=true],\n\t&[contenteditable=false],\n\t[contenteditable=true],\n\t[contenteditable=false] {\n\t\tborder: none !important;\n\t\twidth: 100%;\n\t\tbackground-color: transparent;\n\t\tcolor: var(--color-main-text);\n\t\topacity: 1;\n\t\t-webkit-user-select: text;\n\t\tuser-select: text;\n\t\tfont-size: 14px;\n\n\t\t&:focus, &:focus-visible {\n\t\t\tbox-shadow: none !important;\n\t\t}\n\t}\n\n\t.checkbox-item {\n\t\tdisplay: flex;\n\t\talign-items: start;\n\t\t// Left-align with list item text\n\t\tmargin-left: -23px;\n\n\t\tinput[type=checkbox] {\n\t\t\tdisplay: none;\n\t\t}\n\t\t&:before {\n\t\t\tcontent: '';\n\t\t\tvertical-align: middle;\n\t\t\tmargin: 3px 6px 3px 2px;\n\t\t\tborder: 1px solid var(--color-text-maxcontrast);\n\t\t\tposition: relative;\n\t\t\tdisplay: block;\n\t\t\tborder-radius: var(--border-radius);\n\t\t\theight: 14px;\n\t\t\twidth: 14px;\n\t\t\tbox-shadow: none !important;\n\t\t\tbackground-position: center;\n\t\t\tcursor: pointer;\n\t\t}\n\t\t&.checked{\n\t\t\t&:before {\n\t\t\t\tbackground-image: url('../../img/checkbox-mark.svg');\n\t\t\t\tbackground-color: var(--color-primary-element);\n\t\t\t\tborder-color: var(--color-primary-element);\n\t\t\t}\n\t\t\tlabel {\n\t\t\t\tcolor: var(--color-text-maxcontrast);\n\t\t\t\ttext-decoration: line-through;\n\t\t\t}\n\t\t}\n\t\tlabel {\n\t\t\tdisplay: block;\n\t\t\tflex-grow: 1;\n\t\t\tmax-width: calc(100% - 28px);\n\t\t}\n\t}\n\n\t> *:first-child {\n\t\tmargin-top: 10px;\n\t}\n\n\t> h1,h2,h3,h4,h5,h6 {\n\t\t&:first-child {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\n\ta {\n\t\tcolor: var(--color-primary-element);\n\t\ttext-decoration: underline;\n\t\tpadding: .5em 0;\n\t}\n\n\tp {\n\t\tmargin-bottom: 1em;\n\t\tline-height: 150%;\n\t}\n\n\tem {\n\t\tfont-style: italic;\n\t}\n\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6 {\n\t\tfont-weight: 600;\n\t\tline-height: 1.1em;\n\t\tmargin-top: 24px;\n\t\tmargin-bottom: 12px;\n\t\tcolor: var(--color-main-text);\n\t}\n\n\th1 {\n\t\tfont-size: 36px;\n\t}\n\n\th2 {\n\t\tfont-size: 30px;\n\t}\n\n\th3 {\n\t\tfont-size: 24px;\n\t}\n\n\th4 {\n\t\tfont-size: 21px;\n\t}\n\n\th5 {\n\t\tfont-size: 17px;\n\t}\n\n\th6 {\n\t\tfont-size: 14px;\n\t}\n\n\timg {\n\t\tcursor: default;\n\t\tmax-width: 100%;\n\t}\n\n\thr {\n\t\tpadding: 2px 0;\n\t\tborder: none;\n\t\tmargin: 2em 0;\n\t\twidth: 100%;\n\t}\n\n\thr:after {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\theight: 1px;\n\t\tbackground-color: var(--color-border-dark);\n\t\tline-height: 2px;\n\t}\n\n\tpre {\n\t\twhite-space: pre-wrap;\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: 1em 1.3em;\n\t\tmargin-bottom: 1em;\n\t}\n\n\tpre.frontmatter {\n\t\tmargin-bottom: 2em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t}\n\n\tpre.frontmatter::before {\n\t\tdisplay: block;\n\t\tcontent: attr(data-title);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tpadding-bottom: 0.5em;\n\t}\n\n\tp code {\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: .1em .3em;\n\t}\n\n\tli {\n\t\tposition: relative;\n\t\tpadding-left: 3px;\n\n\t\tp {\n\t\t\tmargin-bottom: 0.5em;\n\t\t}\n\t}\n\n\tul, ol {\n\t\tpadding-left: 10px;\n\t\tmargin-left: 10px;\n\t\tmargin-bottom: 1em;\n\t}\n\n\tul > li {\n\t\tlist-style-type: disc;\n\t}\n\n\t// Second-level list entries\n\tli ul > li {\n\t\tlist-style-type: circle;\n\t}\n\n\t// Third-level and further down list entries\n\tli li ul > li {\n\t\tlist-style-type: square;\n\t}\n\n\tblockquote {\n\t\tpadding-left: 1em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tmargin-left: 0;\n\t\tmargin-right: 0;\n\t}\n\n\t// table variables\n\t@at-root :root {\n\t\t--table-color-border: var(--color-border);\n\t\t--table-color-heading: var(--color-text-maxcontrast);\n\t\t--table-color-heading-border: var(--color-border-dark);\n\t\t--table-color-background: var(--color-main-background);\n\t\t--table-color-background-hover: var(--color-primary-light);\n\t\t--table-border-radius: var(--border-radius);\n\t}\n\n\ttable {\n\t\tborder-spacing: 0;\n\t\twidth: calc(100% - 50px);\n\t\ttable-layout: auto;\n\t\twhite-space: normal; // force text to wrapping\n\t\tmargin-bottom: 1em;\n\t\t+ & {\n\t\t\tmargin-top: 1em;\n\t\t}\n\n\n\t\ttd, th {\n\t\t\tborder: 1px solid var(--table-color-border);\n\t\t\tborder-left: 0;\n\t\t\tvertical-align: top;\n\t\t\tmax-width: 100%;\n\t\t\t&:first-child {\n\t\t\t\tborder-left: 1px solid var(--table-color-border);\n\t\t\t}\n\t\t}\n\t\ttd {\n\t\t\tpadding: 0.5em 0.75em;\n\t\t\tborder-top: 0;\n\t\t\tcolor: var(--color-main-text);\n\t\t}\n\t\tth {\n\t\t\tpadding: 0 0 0 0.75em;\n\t\t\tfont-weight: normal;\n\t\t\tborder-bottom-color: var(--table-color-heading-border);\n\t\t\tcolor: var(--table-color-heading);\n\n\t\t\t& > div {\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t}\n\t\ttr {\n\t\t\tbackground-color: var(--table-color-background);\n\t\t\t&:hover, &:active, &:focus {\n\t\t\t\tbackground-color: var(--table-color-background-hover);\n\t\t\t}\n\t\t}\n\n\t\ttr:first-child {\n\t\t\tth:first-child { border-top-left-radius: var(--table-border-radius); }\n\t\t\tth:last-child { border-top-right-radius: var(--table-border-radius); }\n\t\t}\n\n\t\ttr:last-child {\n\t\t\ttd:first-child { border-bottom-left-radius: var(--table-border-radius); }\n\t\t\ttd:last-child { border-bottom-right-radius: var(--table-border-radius); }\n\t\t}\n\n\t}\n\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n\tdisplay: block;\n}\n\n.editor__content p.is-empty:first-child::before {\n\tcontent: attr(data-placeholder);\n\tfloat: left;\n\tcolor: var(--color-text-maxcontrast);\n\tpointer-events: none;\n\theight: 0;\n}\n\n.editor__content {\n\ttab-size: 4;\n}\n","@media print {\n\t@page {\n\t\tsize: A4;\n\t\tmargin: 2.5cm 2cm 2cm 2.5cm;\n\t}\n\n\tbody {\n\t\t// position: fixed does not support scrolling and as such only prints one page\n\t\tposition: absolute;\n\t\toverflow: visible!important;\n\t}\n\n\t#viewer[data-handler='text'] {\n\t\t// Hide top border\n\t\tborder: none;\n\t\twidth: 100%!important;\n\t\t// NcModal uses fixed, which will be cropped when printed\n\t\tposition: absolute!important;\n\n\t\t.modal-header {\n\t\t\t// Hide modal header (close button)\n\t\t\tdisplay: none!important;\n\t\t}\n\t\t.modal-container {\n\t\t\t// Make sure top aligned as we hided the menubar */\n\t\t\ttop: 0px;\n\t\t\theight: fit-content;\n\t\t}\n\t}\n\n\t.text-editor {\n\t\t.text-menubar {\n\t\t\t// Hide menu bar\n\t\t\tdisplay: none!important;\n\t\t}\n\t\t.action-item {\n\t\t\t// Hide table settings\n\t\t\tdisplay: none!important;\n\t\t}\n\t\t.editor__content {\n\t\t\t// Margins set by page rule\n\t\t\tmax-width: 100%;\n\t\t}\n\t\t.text-editor__wrapper {\n\t\t\theight: fit-content;\n\t\t\tposition: unset;\n\t\t}\n\n\t\tdiv.ProseMirror {\n\t\t\th1, h2, h3, h4, h5 {\n\t\t\t\t// orphaned headlines are ugly\n\t\t\t\tbreak-after: avoid;\n\t\t\t}\n\t\t\t.image, img, table {\n\t\t\t\t// try no page breaks within tables or images\n\t\t\t\tbreak-inside: avoid-page;\n\t\t\t\t// Some more indention\n\t\t\t\tmax-width: 90%!important;\n\t\t\t\tmargin: 5vw auto 5vw 5%!important;\n\t\t\t}\n\n\t\t\t// Add some borders below header and between columns\n\t\t\tth {\n\t\t\t\tcolor: black!important;\n\t\t\t\tfont-weight: bold!important;\n\t\t\t\tborder-width: 0 1px 2px 0!important;\n\t\t\t\tborder-color: gray!important;\n\t\t\t\tborder-style: none solid solid none!important;\n\t\t\t}\n\t\t\tth:last-of-type {\n\t\t\t\tborder-width: 0 0 2px 0!important;\n\t\t\t}\n\n\t\t\ttd {\n\t\t\t\tborder-style: none solid none none!important;\n\t\t\t\tborder-width: 1px!important;\n\t\t\t\tborder-color: gray!important;\n\t\t\t}\n\t\t\ttd:last-of-type {\n\t\t\t\tborder: none!important;\n\t\t\t}\n\t\t}\n\t}\n\n\t.menubar-placeholder, .text-editor--readonly-bar {\n\t\tdisplay: none;\n\t}\n\n\t.text-editor__content-wrapper {\n\t\t&.--show-outline {\n\t\t\tdisplay: block;\n\t\t}\n\n\t\t.editor--outline {\n\t\t\twidth: auto;\n\t\t\theight: auto;\n\t\t\toverflow: unset;\n\t\t\tposition: relative;\n\t\t}\n\t\t.editor--outline__btn-close {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n","\n@import './../../css/prosemirror';\n@import './../../css/print';\n\n@media print {\n\t// Hide Content behind modal, this also hides the sidebar if open\n\t#content {\n\t\tdisplay: none;\n\t}\n}\n"],sourceRoot:""}]);const A=d},73819:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".callout[data-v-6b292428]{background-color:var(--callout-background, var(--color-background-hover));border-left-color:var(--callout-border, var(--color-primary-element));border-radius:var(--border-radius);padding:1em;padding-left:.5em;border-left-width:.3em;border-left-style:solid;position:relative;margin-bottom:.5em;display:flex;align-items:center;justify-content:flex-start}.callout[data-v-6b292428]{margin-top:.5em}.callout .callout__content[data-v-6b292428]{margin-left:1em}.callout .callout__content[data-v-6b292428] p:last-child{margin-bottom:0}.callout .callout__icon[data-v-6b292428],.callout .callout__icon[data-v-6b292428] svg{color:var(--callout-border)}.callout[data-v-6b292428],.callout--info[data-v-6b292428]{--callout-border: var(--color-primary-element)}.callout--warn[data-v-6b292428]{--callout-border: var(--color-warning)}.callout--error[data-v-6b292428]{--callout-border: var(--color-error)}.callout--success[data-v-6b292428]{--callout-border: var(--color-success)}","",{version:3,sources:["webpack://./src/nodes/Callout.vue"],names:[],mappings:"AACA,0BACC,yEAAA,CACA,qEAAA,CACA,kCAAA,CACA,WAAA,CACA,iBAAA,CACA,sBAAA,CACA,uBAAA,CACA,iBAAA,CACA,kBAAA,CAEA,YAAA,CACA,kBAAA,CACA,0BAAA,CAEA,0BACC,eAAA,CAGD,4CACC,eAAA,CAEC,yDACC,eAAA,CAMF,sFACC,2BAAA,CAKF,0DACC,8CAAA,CAID,gCACC,sCAAA,CAID,iCACC,oCAAA,CAID,mCACC,sCAAA",sourcesContent:["\n.callout {\n\tbackground-color: var(--callout-background, var(--color-background-hover));\n\tborder-left-color: var(--callout-border, var(--color-primary-element));\n\tborder-radius: var(--border-radius);\n\tpadding: 1em;\n\tpadding-left: 0.5em;\n\tborder-left-width: 0.3em;\n\tborder-left-style: solid;\n\tposition: relative;\n\tmargin-bottom: 0.5em;\n\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: flex-start;\n\n\t+ & {\n\t\tmargin-top: 0.5em;\n\t}\n\n\t.callout__content {\n\t\tmargin-left: 1em;\n\t\t&:deep(p) {\n\t\t\t&:last-child {\n\t\t\t\tmargin-bottom: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t.callout__icon {\n\t\t&, :deep(svg) {\n\t\t\tcolor: var(--callout-border);\n\t\t}\n\t}\n\n\t// Info (default) variables\n\t&, &--info {\n\t\t--callout-border: var(--color-primary-element);\n\t}\n\n\t// Warn variables\n\t&--warn {\n\t\t--callout-border: var(--color-warning);\n\t}\n\n\t// Error variables\n\t&--error {\n\t\t--callout-border: var(--color-error);\n\t}\n\n\t// Success variables\n\t&--success {\n\t\t--callout-border: var(--color-success);\n\t}\n}\n"],sourceRoot:""}]);const s=a},32815:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,"div.ProseMirror h1,div.ProseMirror h2,div.ProseMirror h3,div.ProseMirror h4,div.ProseMirror h5,div.ProseMirror h6{position:relative}div.ProseMirror h1 .heading-anchor[contenteditable=false],div.ProseMirror h2 .heading-anchor[contenteditable=false],div.ProseMirror h3 .heading-anchor[contenteditable=false],div.ProseMirror h4 .heading-anchor[contenteditable=false],div.ProseMirror h5 .heading-anchor[contenteditable=false],div.ProseMirror h6 .heading-anchor[contenteditable=false]{opacity:0;padding:0;left:-1em;bottom:0;font-size:max(1em,16px);position:absolute;text-decoration:none;transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}div.ProseMirror h1:hover .heading-anchor,div.ProseMirror h2:hover .heading-anchor,div.ProseMirror h3:hover .heading-anchor,div.ProseMirror h4:hover .heading-anchor,div.ProseMirror h5:hover .heading-anchor,div.ProseMirror h6:hover .heading-anchor{opacity:.5 !important}div.ProseMirror h1:focus-visible,div.ProseMirror h2:focus-visible,div.ProseMirror h3:focus-visible,div.ProseMirror h4:focus-visible,div.ProseMirror h5:focus-visible,div.ProseMirror h6:focus-visible{outline:none}div.ProseMirror[contenteditable=true] h1 .heading-anchor,div.ProseMirror[contenteditable=true] h2 .heading-anchor,div.ProseMirror[contenteditable=true] h3 .heading-anchor,div.ProseMirror[contenteditable=true] h4 .heading-anchor,div.ProseMirror[contenteditable=true] h5 .heading-anchor,div.ProseMirror[contenteditable=true] h6 .heading-anchor{width:1em}","",{version:3,sources:["webpack://./src/nodes/Heading/HeadingView.vue"],names:[],mappings:"AAGC,kHACC,iBAAA,CACA,4VACC,SAAA,CACA,SAAA,CACA,SAAA,CACA,QAAA,CACA,uBAAA,CACA,iBAAA,CACA,oBAAA,CACA,wBAAA,CACA,2BAAA,CACA,uDAAA,CAGD,sPACC,qBAAA,CAGD,sMACC,YAAA,CAOA,sVACC,SAAA",sourcesContent:['\ndiv.ProseMirror {\n\t/* Anchor links */\n\th1,h2,h3,h4,h5,h6 {\n\t\tposition: relative;\n\t\t.heading-anchor[contenteditable="false"] {\n\t\t\topacity: 0;\n\t\t\tpadding: 0;\n\t\t\tleft: -1em;\n\t\t\tbottom: 0;\n\t\t\tfont-size: max(1em, 16px);\n\t\t\tposition: absolute;\n\t\t\ttext-decoration: none;\n\t\t\ttransition-duration: .15s;\n\t\t\ttransition-property: opacity;\n\t\t\ttransition-timing-function: cubic-bezier(.4,0,.2,1);\n\t\t}\n\n\t\t&:hover .heading-anchor {\n\t\t\topacity: 0.5!important;\n\t\t}\n\n\t\t&:focus-visible {\n\t\t\toutline: none;\n\t\t}\n\t}\n\n\t// Shrink clickable area of anchor permalinks while editing\n\t&[contenteditable="true"] {\n\t\th1,h2,h3,h4,h5,h6 {\n\t\t\t.heading-anchor {\n\t\t\t\twidth: 1em;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const s=a},54239:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".image[data-v-c615c456]{margin:0;padding:0}.image[data-v-c615c456],.image *[data-v-c615c456]{-webkit-user-modify:read-only !important}.image__caption[data-v-c615c456]{text-align:center;color:var(--color-text-lighter);display:flex;align-items:center;justify-content:center}.image__caption__wrapper[data-v-c615c456]{position:relative}.image__caption input[type=text][data-v-c615c456]{width:200px;max-width:80%;text-align:center;background-color:rgba(0,0,0,0);border:none !important;color:var(--color-text-maxcontrast) !important}.image__caption input[type=text][data-v-c615c456]:focus{border:2px solid var(--color-border-dark) !important;color:var(--color-main-text) !important}.image__loading[data-v-c615c456]{height:100px}.image__main--broken-icon[data-v-c615c456],.image__error-message[data-v-c615c456]{color:var(--color-text-maxcontrast)}.image__view[data-v-c615c456]{text-align:center;position:relative}.image__view img[data-v-c615c456]{max-width:100%}.image__view:hover input[type=text][data-v-c615c456]{border:2px solid var(--color-border-dark) !important;color:var(--color-main-text) !important}.image__main[data-v-c615c456]{max-height:calc(100vh - 50px - 50px)}.media[data-v-c615c456]{display:flex;align-items:center;justify-content:left}.media .media__wrapper[data-v-c615c456]{display:flex;border:2px solid var(--color-border);border-radius:var(--border-radius-large);padding:8px}.media .media__wrapper img[data-v-c615c456]{width:44px;height:44px}.media .media__wrapper .metadata[data-v-c615c456]{margin-left:8px;display:flex;flex-direction:column;align-items:start}.media .media__wrapper .metadata span[data-v-c615c456]{line-height:20px;font-weight:normal}.media .media__wrapper .metadata span.size[data-v-c615c456]{color:var(--color-text-maxcontrast)}.media .buttons[data-v-c615c456]{margin-left:8px}.image__error-message[data-v-c615c456]{display:block;text-align:center}.fade-enter-active[data-v-c615c456]{transition:opacity .3s ease-in-out}.fade-enter-to[data-v-c615c456]{opacity:1}.fade-enter[data-v-c615c456]{opacity:0}.image__caption__delete[data-v-c615c456]{display:flex;align-items:center;width:20px;height:20px;position:absolute;right:-6px;bottom:10px}.image__caption__delete[data-v-c615c456],.image__caption__delete svg[data-v-c615c456]{cursor:pointer}","",{version:3,sources:["webpack://./src/nodes/ImageView.vue"],names:[],mappings:"AACA,wBACC,QAAA,CACA,SAAA,CAEA,kDACC,wCAAA,CAIF,iCACC,iBAAA,CACA,+BAAA,CACA,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,0CACC,iBAAA,CAED,kDACC,WAAA,CACA,aAAA,CACA,iBAAA,CACA,8BAAA,CACA,sBAAA,CACA,8CAAA,CAEA,wDACC,oDAAA,CACA,uCAAA,CAKH,iCACC,YAAA,CAGD,kFACC,mCAAA,CAGD,8BACC,iBAAA,CACA,iBAAA,CAEA,kCACC,cAAA,CAIA,qDACC,oDAAA,CACA,uCAAA,CAKH,8BACC,oCAAA,CAGD,wBACC,YAAA,CACA,kBAAA,CACA,oBAAA,CACA,wCACC,YAAA,CACA,oCAAA,CACA,wCAAA,CACA,WAAA,CAEA,4CACC,UAAA,CACA,WAAA,CAGD,kDACC,eAAA,CACA,YAAA,CACA,qBAAA,CACA,iBAAA,CAEA,uDACC,gBAAA,CACA,kBAAA,CAEA,4DACC,mCAAA,CAKJ,iCACC,eAAA,CAIF,uCACC,aAAA,CACA,iBAAA,CAGD,oCACC,kCAAA,CAGD,gCACC,SAAA,CAGD,6BACC,SAAA,CAGD,yCACC,YAAA,CACA,kBAAA,CACA,UAAA,CACA,WAAA,CACA,iBAAA,CACA,UAAA,CACA,WAAA,CACA,sFACC,cAAA",sourcesContent:["\n.image {\n\tmargin: 0;\n\tpadding: 0;\n\n\t&, * {\n\t\t-webkit-user-modify: read-only !important;\n\t}\n}\n\n.image__caption {\n\ttext-align: center;\n\tcolor: var(--color-text-lighter);\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\t&__wrapper {\n\t\tposition: relative;\n\t}\n\tinput[type='text'] {\n\t\twidth: 200px;\n\t\tmax-width: 80%;\n\t\ttext-align: center;\n\t\tbackground-color: transparent;\n\t\tborder: none !important;\n\t\tcolor: var(--color-text-maxcontrast) !important;\n\n\t\t&:focus {\n\t\t\tborder: 2px solid var(--color-border-dark) !important;\n\t\t\tcolor: var(--color-main-text) !important;\n\t\t}\n\t}\n}\n\n.image__loading {\n\theight: 100px;\n}\n\n.image__main--broken-icon, .image__error-message {\n\tcolor: var(--color-text-maxcontrast);\n}\n\n.image__view {\n\ttext-align: center;\n\tposition: relative;\n\n\timg {\n\t\tmax-width: 100%;\n\t}\n\n\t&:hover {\n\t\tinput[type='text'] {\n\t\t\tborder: 2px solid var(--color-border-dark) !important;\n\t\t\tcolor: var(--color-main-text) !important;\n\t\t}\n\t}\n}\n\n.image__main {\n\tmax-height: calc(100vh - 50px - 50px);\n}\n\n.media {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: left;\n\t.media__wrapper {\n\t\tdisplay: flex;\n\t\tborder: 2px solid var(--color-border);\n\t\tborder-radius: var(--border-radius-large);\n\t\tpadding: 8px;\n\n\t\timg {\n\t\t\twidth: 44px;\n\t\t\theight: 44px;\n\t\t}\n\n\t\t.metadata {\n\t\t\tmargin-left: 8px;\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\talign-items: start;\n\n\t\t\tspan {\n\t\t\t\tline-height: 20px;\n\t\t\t\tfont-weight: normal;\n\n\t\t\t\t&.size {\n\t\t\t\t\tcolor: var(--color-text-maxcontrast);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t.buttons {\n\t\tmargin-left: 8px;\n\t}\n}\n\n.image__error-message {\n\tdisplay: block;\n\ttext-align: center;\n}\n\n.fade-enter-active {\n\ttransition: opacity .3s ease-in-out;\n}\n\n.fade-enter-to {\n\topacity: 1;\n}\n\n.fade-enter {\n\topacity: 0;\n}\n\n.image__caption__delete {\n\tdisplay: flex;\n\talign-items: center;\n\twidth: 20px;\n\theight: 20px;\n\tposition: absolute;\n\tright: -6px;\n\tbottom: 10px;\n\t&, svg {\n\t\tcursor: pointer;\n\t}\n}\n"],sourceRoot:""}]);const s=a},87591:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,"[data-v-7a1db318] div.widgets--list a.widget-default{color:var(--color-main-text);padding:0;text-decoration:none}[data-v-7a1db318] .widget-default--details{overflow:hidden}[data-v-7a1db318] .widget-default--details p{margin-bottom:4px !important}","",{version:3,sources:["webpack://./src/nodes/ParagraphView.vue"],names:[],mappings:"AACA,qDACC,4BAAA,CACA,SAAA,CACA,oBAAA,CAGD,2CACC,eAAA,CACA,6CACC,4BAAA",sourcesContent:["\n:deep(div.widgets--list a.widget-default) {\n\tcolor: var(--color-main-text);\n\tpadding: 0;\n\ttext-decoration: none;\n}\n\n:deep(.widget-default--details) {\n\toverflow:hidden;\n\tp {\n\t\tmargin-bottom: 4px !important;\n\t}\n}\n"],sourceRoot:""}]);const s=a},92199:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,"td[data-v-75e621dc]{position:relative}td .container[data-v-75e621dc]{display:flex;flex-wrap:wrap;min-height:36px}td .content[data-v-75e621dc]{flex:1 1 0;margin:0;padding-top:.6em}td .action-item[data-v-75e621dc]{position:absolute;right:-48px;flex:0 1 auto;display:none;top:2px}td:last-child .action-item[data-v-75e621dc]{display:block;opacity:50%}td:last-child:hover .action-item[data-v-75e621dc],td:last-child:active .action-item[data-v-75e621dc],td:last-child:focus .action-item[data-v-75e621dc],td:last-child:focus-within .action-item[data-v-75e621dc]{opacity:100%}","",{version:3,sources:["webpack://./src/nodes/Table/TableCellView.vue"],names:[],mappings:"AACA,oBACC,iBAAA,CAEA,+BACC,YAAA,CACA,cAAA,CACA,eAAA,CAGD,6BACC,UAAA,CACA,QAAA,CACA,gBAAA,CAGD,iCACC,iBAAA,CACA,WAAA,CACA,aAAA,CACA,YAAA,CACA,OAAA,CAIA,4CACC,aAAA,CACA,WAAA,CAIA,gNACC,YAAA",sourcesContent:["\ntd {\n\tposition: relative;\n\n\t.container {\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t\tmin-height: 36px;\n\t}\n\n\t.content {\n\t\tflex: 1 1 0;\n\t\tmargin: 0;\n\t\tpadding-top: 0.6em;\n\t}\n\n\t.action-item {\n\t\tposition: absolute;\n\t\tright: -48px;\n\t\tflex: 0 1 auto;\n\t\tdisplay: none;\n\t\ttop: 2px;\n\t}\n\n\t&:last-child {\n\t\t.action-item {\n\t\t\tdisplay: block;\n\t\t\topacity: 50%;\n\t\t}\n\n\t\t&:hover, &:active, &:focus, &:focus-within {\n\t\t\t.action-item {\n\t\t\t\topacity: 100%;\n\t\t\t}\n\t\t}\n\t}\n\n}\n\n"],sourceRoot:""}]);const s=a},59964:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,"th .content[data-v-779edfde]{margin:0;padding-top:.75em;flex-grow:1}th .action-item[data-v-779edfde]{opacity:50%}th:hover .action-item[data-v-779edfde],th:active .action-item[data-v-779edfde],th:focus .action-item[data-v-779edfde],th:focus-within .action-item[data-v-779edfde]{opacity:100%}","",{version:3,sources:["webpack://./src/nodes/Table/TableHeaderView.vue"],names:[],mappings:"AAGC,6BACC,QAAA,CACA,iBAAA,CACA,WAAA,CAGD,iCACC,WAAA,CAIA,oKACC,YAAA",sourcesContent:["\nth {\n\n\t.content {\n\t\tmargin: 0;\n\t\tpadding-top: 0.75em;\n\t\tflex-grow: 1;\n\t}\n\n\t.action-item {\n\t\topacity: 50%;\n\t}\n\n\t&:hover, &:active, &:focus, &:focus-within {\n\t\t.action-item {\n\t\t\topacity: 100%;\n\t\t}\n\t}\n}\n\n"],sourceRoot:""}]);const s=a},84339:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,".table-wrapper[data-v-731856ac]{position:relative}.clearfix[data-v-731856ac]{clear:both}table[data-v-731856ac]{float:left}.table-settings[data-v-731856ac]{padding-left:3px;opacity:.5;position:absolute;top:0;right:3px}.table-settings[data-v-731856ac]:hover{opacity:1}","",{version:3,sources:["webpack://./src/nodes/Table/TableView.vue"],names:[],mappings:"AACA,gCACC,iBAAA,CAGD,2BACC,UAAA,CAGD,uBACC,UAAA,CAGD,iCACC,gBAAA,CACA,UAAA,CACA,iBAAA,CACA,KAAA,CACA,SAAA,CAEA,uCACC,SAAA",sourcesContent:["\n.table-wrapper {\n\tposition: relative;\n}\n\n.clearfix {\n\tclear: both;\n}\n\ntable {\n\tfloat: left;\n}\n\n.table-settings {\n\tpadding-left: 3px;\n\topacity: .5;\n\tposition: absolute;\n\ttop: 0;\n\tright: 3px;\n\n\t&:hover {\n\t\topacity: 1;\n\t}\n}\n"],sourceRoot:""}]);const s=a},82837:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,"#content[class=app-public]{margin:0;margin-top:0}","",{version:3,sources:["webpack://./src/views/DirectEditing.vue"],names:[],mappings:"AACA,2BACC,QAAA,CACA,YAAA",sourcesContent:["\n#content[class=app-public] {\n\tmargin: 0;\n\tmargin-top: 0;\n}\n"],sourceRoot:""}]);const s="text"==n.j?a:null},42294:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,"body[data-v-74e56a7a]{position:fixed}#direct-editor[data-v-74e56a7a]{width:100%;height:100%;position:fixed;overflow:hidden}#direct-editor[data-v-74e56a7a] .text-editor{height:100%;top:0}#direct-editor[data-v-74e56a7a] .text-editor__wrapper div.ProseMirror{margin-top:0}pre[data-v-74e56a7a]{width:100%;max-width:700px;margin:auto;background-color:var(--color-background-dark)}button[data-v-74e56a7a]{width:44px;height:44px;margin:0;background-size:16px;border:0;background-color:rgba(0,0,0,0);opacity:.5;color:var(--color-main-text);background-position:center center;vertical-align:top}button[data-v-74e56a7a]:hover,button[data-v-74e56a7a]:focus,button[data-v-74e56a7a]:active{background-color:var(--color-background-dark)}button.is-active[data-v-74e56a7a],button[data-v-74e56a7a]:hover,button[data-v-74e56a7a]:focus{opacity:1}","",{version:3,sources:["webpack://./src/views/DirectEditing.vue"],names:[],mappings:"AACA,sBACC,cAAA,CAGD,gCACC,UAAA,CACA,WAAA,CACA,cAAA,CACA,eAAA,CAEA,6CACC,WAAA,CACA,KAAA,CAED,sEACC,YAAA,CAIF,qBACC,UAAA,CACA,eAAA,CACA,WAAA,CACA,6CAAA,CAGD,wBACC,UAAA,CACA,WAAA,CACA,QAAA,CACA,oBAAA,CACA,QAAA,CACA,8BAAA,CACA,UAAA,CACA,4BAAA,CACA,iCAAA,CACA,kBAAA,CACA,2FACC,6CAAA,CAED,8FAGC,SAAA",sourcesContent:["\nbody {\n\tposition: fixed;\n}\n\n#direct-editor {\n\twidth: 100%;\n\theight: 100%;\n\tposition: fixed;\n\toverflow: hidden;\n\n\t&:deep(.text-editor) {\n\t\theight: 100%;\n\t\ttop: 0;\n\t}\n\t&:deep(.text-editor__wrapper div.ProseMirror) {\n\t\tmargin-top: 0;\n\t}\n}\n\npre {\n\twidth: 100%;\n\tmax-width: 700px;\n\tmargin: auto;\n\tbackground-color: var(--color-background-dark);\n}\n\nbutton {\n\twidth: 44px;\n\theight: 44px;\n\tmargin: 0;\n\tbackground-size: 16px;\n\tborder: 0;\n\tbackground-color: transparent;\n\topacity: .5;\n\tcolor: var(--color-main-text);\n\tbackground-position: center center;\n\tvertical-align: top;\n\t&:hover, &:focus, &:active {\n\t\tbackground-color: var(--color-background-dark);\n\t}\n\t&.is-active,\n\t&:hover,\n\t&:focus {\n\t\topacity: 1;\n\t}\n}\n"],sourceRoot:""}]);const s="text"==n.j?a:null},89375:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,'#rich-workspace[data-v-681f5dbf]{padding:0 50px;margin-bottom:-24px;text-align:left;max-height:0;transition:max-height .5s cubic-bezier(0, 1, 0, 1);z-index:61;position:relative}#rich-workspace.creatable[data-v-681f5dbf]{min-height:90px}#rich-workspace[data-v-681f5dbf]:only-child{margin-bottom:0}.empty-workspace[data-v-681f5dbf]{cursor:pointer;display:block;padding-top:43px;color:var(--color-text-maxcontrast)}#rich-workspace[data-v-681f5dbf] div[contenteditable=false]{width:100%;padding:0px;background-color:var(--color-main-background);opacity:1;border:none}#rich-workspace[data-v-681f5dbf] .text-editor{height:100%;position:unset !important;top:auto !important}#rich-workspace[data-v-681f5dbf] .text-editor__wrapper{position:unset !important;overflow:visible}#rich-workspace[data-v-681f5dbf] .text-editor__main{overflow:visible !important}#rich-workspace[data-v-681f5dbf] .content-wrapper{overflow:scroll !important;max-height:calc(40vh - 50px);padding-left:10px;padding-bottom:10px}#rich-workspace[data-v-681f5dbf] .text-editor__wrapper .ProseMirror{padding:0px;margin:0}#rich-workspace[data-v-681f5dbf] .editor__content{margin:0}#rich-workspace.focus[data-v-681f5dbf]{max-height:50vh}#rich-workspace[data-v-681f5dbf]:not(.focus){max-height:30vh;position:relative;overflow:hidden}#rich-workspace[data-v-681f5dbf]:not(.focus):not(.icon-loading):not(.empty):after{content:"";position:absolute;z-index:1;bottom:0;left:0;pointer-events:none;background-image:linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--color-main-background));width:100%;height:4em}#rich-workspace.dark[data-v-681f5dbf]:not(.focus):not(.icon-loading):after{background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0), var(--color-main-background))}@media only screen and (max-width: 1024px){#rich-workspace[data-v-681f5dbf]:not(.focus){max-height:30vh}}html.ie #rich-workspace[data-v-681f5dbf] .text-editor{position:initial}html.ie #rich-workspace[data-v-681f5dbf] .text-editor__wrapper{position:relative !important;top:auto !important}html.ie #rich-workspace[data-v-681f5dbf] .text-editor__main{display:flex;flex-direction:column;overflow:hidden !important}html.ie #rich-workspace[data-v-681f5dbf] .menubar{position:relative;overflow:hidden;flex-shrink:0;height:44px;top:auto}html.ie #rich-workspace[data-v-681f5dbf] .text-editor__main>div:nth-child(2){min-height:44px;overflow-x:hidden;overflow-y:auto;flex-shrink:1}',"",{version:3,sources:["webpack://./src/views/RichWorkspace.vue"],names:[],mappings:"AACA,iCACC,cAAA,CAEA,mBAAA,CACA,eAAA,CACA,YAAA,CACA,kDAAA,CACA,UAAA,CACA,iBAAA,CACA,2CACC,eAAA,CAKF,4CACC,eAAA,CAGD,kCACC,cAAA,CACA,aAAA,CACA,gBAAA,CACA,mCAAA,CAGD,4DACC,UAAA,CACA,WAAA,CACA,6CAAA,CACA,SAAA,CACA,WAAA,CAGD,8CACC,WAAA,CACA,yBAAA,CACA,mBAAA,CAGD,uDACC,yBAAA,CACA,gBAAA,CAGD,oDACC,2BAAA,CAGD,kDACC,0BAAA,CACA,4BAAA,CACA,iBAAA,CACA,mBAAA,CAGD,oEACC,WAAA,CACA,QAAA,CAGD,kDACC,QAAA,CAGD,uCACC,eAAA,CAGD,6CACC,eAAA,CACA,iBAAA,CACA,eAAA,CAGD,kFACC,UAAA,CACA,iBAAA,CACA,SAAA,CACA,QAAA,CACA,MAAA,CACA,mBAAA,CACA,iGAAA,CACA,UAAA,CACA,UAAA,CAGD,2EACC,2FAAA,CAGD,2CACC,6CACC,eAAA,CAAA,CAMA,uDACC,gBAAA,CAGD,gEACC,4BAAA,CACA,mBAAA,CAGD,6DACC,YAAA,CACA,qBAAA,CACA,0BAAA,CAGD,mDACC,iBAAA,CACA,eAAA,CACA,aAAA,CACA,WAAA,CACA,QAAA,CAGD,8EACC,eAAA,CACA,iBAAA,CACA,eAAA,CACA,aAAA",sourcesContent:["\n#rich-workspace {\n\tpadding: 0 50px;\n\t/* Slightly reduce vertical space */\n\tmargin-bottom: -24px;\n\ttext-align: left;\n\tmax-height: 0;\n\ttransition: max-height 0.5s cubic-bezier(0, 1, 0, 1);\n\tz-index: 61;\n\tposition: relative;\n\t&.creatable {\n\t\tmin-height: 90px;\n\t}\n}\n\n/* For subfolders, where there are no Recommendations */\n#rich-workspace:only-child {\n\tmargin-bottom: 0;\n}\n\n.empty-workspace {\n\tcursor: pointer;\n\tdisplay: block;\n\tpadding-top: 43px;\n\tcolor: var(--color-text-maxcontrast);\n}\n\n#rich-workspace:deep(div[contenteditable=false]){\n\twidth: 100%;\n\tpadding: 0px;\n\tbackground-color: var(--color-main-background);\n\topacity: 1;\n\tborder: none;\n}\n\n#rich-workspace:deep(.text-editor) {\n\theight: 100%;\n\tposition: unset !important;\n\ttop: auto !important;\n}\n\n#rich-workspace:deep(.text-editor__wrapper) {\n\tposition: unset !important;\n\toverflow: visible;\n}\n\n#rich-workspace:deep(.text-editor__main) {\n\toverflow: visible !important;\n}\n\n#rich-workspace:deep(.content-wrapper) {\n\toverflow: scroll !important;\n\tmax-height: calc(40vh - 50px);\n\tpadding-left: 10px;\n\tpadding-bottom: 10px;\n}\n\n#rich-workspace:deep(.text-editor__wrapper .ProseMirror) {\n\tpadding: 0px;\n\tmargin: 0;\n}\n\n#rich-workspace:deep(.editor__content) {\n\tmargin: 0;\n}\n\n#rich-workspace.focus {\n\tmax-height: 50vh;\n}\n\n#rich-workspace:not(.focus) {\n\tmax-height: 30vh;\n\tposition: relative;\n\toverflow: hidden;\n}\n\n#rich-workspace:not(.focus):not(.icon-loading):not(.empty):after {\n\tcontent: '';\n\tposition: absolute;\n\tz-index: 1;\n\tbottom: 0;\n\tleft: 0;\n\tpointer-events: none;\n\tbackground-image: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--color-main-background));\n\twidth: 100%;\n\theight: 4em;\n}\n\n#rich-workspace.dark:not(.focus):not(.icon-loading):after {\n\tbackground-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), var(--color-main-background));\n}\n\n@media only screen and (max-width: 1024px) {\n\t#rich-workspace:not(.focus) {\n\t\tmax-height: 30vh;\n\t}\n}\n\nhtml.ie {\n\t#rich-workspace:deep() {\n\t\t.text-editor {\n\t\t\tposition: initial;\n\t\t}\n\n\t\t.text-editor__wrapper {\n\t\t\tposition: relative !important;\n\t\t\ttop: auto !important;\n\t\t}\n\n\t\t.text-editor__main {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\toverflow: hidden !important;\n\t\t}\n\n\t\t.menubar {\n\t\t\tposition: relative;\n\t\t\toverflow: hidden;\n\t\t\tflex-shrink: 0;\n\t\t\theight: 44px;\n\t\t\ttop: auto;\n\t\t}\n\n\t\t.text-editor__main > div:nth-child(2) {\n\t\t\tmin-height: 44px;\n\t\t\toverflow-x: hidden;\n\t\t\toverflow-y: auto;\n\t\t\tflex-shrink: 1;\n\t\t}\n\t}\n}\n\n"],sourceRoot:""}]);const s=a},27295:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,"\n.action[data-v-0a1aa55a] {\n\t/* to unify width of ActionInput and ActionButton */\n\tmin-width: 218px;\n}\n","",{version:3,sources:["webpack://./src/components/Menu/ActionInsertLink.vue"],names:[],mappings:";AAqOA;CACA,mDAAA;CACA,gBAAA;AACA",sourcesContent:["\x3c!--\n - @copyright Copyright (c) 2022\n -\n - @license AGPL-3.0-or-later\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n -\n --\x3e\n<template>\n\t<NcActions ref=\"menu\"\n\t\tclass=\"entry-action entry-action__insert-link\"\n\t\taria-haspopup\n\t\t:aria-label=\"actionEntry.label\"\n\t\t:class=\"activeClass\"\n\t\t:container=\"menuIDSelector\"\n\t\t:data-text-action-entry=\"actionEntry.key\"\n\t\t:title=\"actionEntry.label\">\n\t\t<template #icon>\n\t\t\t<component :is=\"icon\"\n\t\t\t\t:title=\"actionEntry.label\"\n\t\t\t\t:aria-label=\"actionEntry.label\"\n\t\t\t\taria-haspopup />\n\t\t</template>\n\t\t<NcActionButton v-if=\"state.active\"\n\t\t\tclose-after-click\n\t\t\t:data-text-action-entry=\"`${actionEntry.key}-remove`\"\n\t\t\t@click=\"removeLink\">\n\t\t\t<template #icon>\n\t\t\t\t<LinkOff />\n\t\t\t</template>\n\t\t\t{{ t('text', 'Remove link') }}\n\t\t</NcActionButton>\n\t\t<NcActionButton close-after-click\n\t\t\t:data-text-action-entry=\"`${actionEntry.key}-file`\"\n\t\t\t@click=\"linkFile\">\n\t\t\t<template #icon>\n\t\t\t\t<Document />\n\t\t\t</template>\n\t\t\t{{ t('text', 'Link to file or folder') }}\n\t\t</NcActionButton>\n\t\t<NcActionInput v-if=\"isInputMode\"\n\t\t\ttype=\"text\"\n\t\t\t:value=\"href\"\n\t\t\t:data-text-action-entry=\"`${actionEntry.key}-input`\"\n\t\t\t@submit=\"linkWebsite\">\n\t\t\t<template #icon>\n\t\t\t\t<Web />\n\t\t\t</template>\n\t\t\t{{ t('text', 'Link to website') }}\n\t\t</NcActionInput>\n\t\t<NcActionButton v-else\n\t\t\t:data-text-action-entry=\"`${actionEntry.key}-website`\"\n\t\t\t@click=\"linkWebsite\">\n\t\t\t<template #icon>\n\t\t\t\t<Web />\n\t\t\t</template>\n\t\t\t{{ state.active ? t('text', 'Update link') : t('text', 'Link to website') }}\n\t\t</NcActionButton>\n\t</NcActions>\n</template>\n\n<script>\nimport NcActions from '@nextcloud/vue/dist/Components/NcActions.js'\nimport NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js'\nimport NcActionInput from '@nextcloud/vue/dist/Components/NcActionInput.js'\nimport { FilePicker, FilePickerType } from '@nextcloud/dialogs'\n\nimport { getMarkAttributes, isActive } from '@tiptap/core'\n\nimport { Document, Loading, LinkOff, Web } from '../icons.js'\nimport { BaseActionEntry } from './BaseActionEntry.js'\nimport { optimalPath } from '../../helpers/files.js'\nimport { useFileMixin } from '../Editor.provider.js'\nimport { useMenuIDMixin } from './MenuBar.provider.js'\n\nexport default {\n\tname: 'ActionInsertLink',\n\tcomponents: {\n\t\tNcActions,\n\t\tNcActionButton,\n\t\tNcActionInput,\n\t\tDocument,\n\t\tLoading,\n\t\tLinkOff,\n\t\tWeb,\n\t},\n\textends: BaseActionEntry,\n\tmixins: [\n\t\tuseFileMixin,\n\t\tuseMenuIDMixin,\n\t],\n\tdata: () => {\n\t\treturn {\n\t\t\thref: null,\n\t\t\tisInputMode: false,\n\t\t\tstartPath: null,\n\t\t}\n\t},\n\tcomputed: {\n\t\tactiveClass() {\n\t\t\treturn this.state.active ? 'is-active' : ''\n\t\t},\n\t},\n\tmethods: {\n\t\t/**\n\t\t * Open dialog and ask user which file to link to\n\t\t * Triggered by the \"link file\" button\n\t\t */\n\t\tlinkFile() {\n\t\t\tif (this.startPath === null) {\n\t\t\t\tthis.startPath = this.$file.relativePath.split('/').slice(0, -1).join('/')\n\t\t\t}\n\n\t\t\tconst filePicker = new FilePicker(\n\t\t\t\tt('text', 'Select file or folder to link to'),\n\t\t\t\tfalse, // multiselect\n\t\t\t\t[], // mime filter\n\t\t\t\ttrue, // modal\n\t\t\t\tFilePickerType.Choose, // type\n\t\t\t\ttrue, // directories\n\t\t\t\tthis.startPath // path\n\t\t\t)\n\n\t\t\tfilePicker.pick().then((file) => {\n\t\t\t\tconst client = OC.Files.getClient()\n\t\t\t\tclient.getFileInfo(file).then((_status, fileInfo) => {\n\t\t\t\t\tconst path = optimalPath(this.$file.relativePath, `${fileInfo.path}/${fileInfo.name}`)\n\t\t\t\t\tconst encodedPath = path.split('/').map(encodeURIComponent).join('/') + (fileInfo.type === 'dir' ? '/' : '')\n\t\t\t\t\tconst href = `${encodedPath}?fileId=${fileInfo.id}`\n\t\t\t\t\tthis.setLink(href, fileInfo.name)\n\t\t\t\t\tthis.startPath = fileInfo.path + (fileInfo.type === 'dir' ? `/${fileInfo.name}/` : '')\n\t\t\t\t})\n\t\t\t})\n\t\t},\n\t\t/**\n\t\t * Allow user to enter an URL manually\n\t\t * Triggered when by the \"link url\" button\n\t\t *\n\t\t * @param {Event} event Triggering event\n\t\t */\n\t\tlinkWebsite(event) {\n\t\t\tif (event?.type === 'submit') {\n\t\t\t\tconst href = [...event.target.elements].filter(e => e?.type === 'text')[0].value\n\t\t\t\t// Close menu manually as autoclose does not work form ActionInput\n\t\t\t\tthis.$refs.menu.closeMenu()\n\t\t\t\tthis.isInputMode = false\n\t\t\t\tthis.href = null\n\t\t\t\treturn this.setLink(href, href)\n\t\t\t}\n\n\t\t\tif (isActive(this.$editor.state, 'link')) {\n\t\t\t\tconst attrs = getMarkAttributes(this.$editor.state, 'link')\n\t\t\t\tthis.href = attrs.href\n\t\t\t}\n\t\t\tthis.isInputMode = true\n\t\t},\n\t\t/**\n\t\t * Save user entered URL as a link markup\n\t\t * Triggered when the user submits the ActionInput\n\t\t *\n\t\t * @param {string} url href attribute of the link\n\t\t * @param {string} text Text part of the link\n\t\t */\n\t\tsetLink(url, text) {\n\t\t\t// Heuristics for determining if we need a https:// prefix.\n\t\t\tconst noPrefixes = [\n\t\t\t\t/^[a-zA-Z]+:/, // url with protocol (\"mailTo:email@domain.tld\")\n\t\t\t\t/^\\//, // absolute path\n\t\t\t\t/\\?fileId=/, // relative link with fileId\n\t\t\t\t/^\\.\\.?\\//, // relative link starting with ./ or ../\n\t\t\t\t/^[^.]*[/$]/, // no dots before first '/' - not a domain name\n\t\t\t\t/^#/, // url fragment\n\t\t\t]\n\t\t\tif (url && !noPrefixes.find(regex => url.match(regex))) {\n\t\t\t\turl = 'https://' + url\n\t\t\t}\n\n\t\t\t// Avoid issues when parsing urls later on in markdown that might be entered in an invalid format (e.g. \"mailto: example@example.com\")\n\t\t\tconst href = url.replaceAll(' ', '%20')\n\t\t\tconst chain = this.$editor.chain()\n\t\t\t// Check if any text is selected, if not insert the lunk using the given text property\n\t\t\tif (this.$editor.view.state?.selection.empty) {\n\t\t\t\tchain.insertContent({\n\t\t\t\t\ttype: 'paragraph',\n\t\t\t\t\tcontent: [{\n\t\t\t\t\t\ttype: 'text',\n\t\t\t\t\t\tmarks: [{\n\t\t\t\t\t\t\ttype: 'link',\n\t\t\t\t\t\t\tattrs: {\n\t\t\t\t\t\t\t\thref,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t}],\n\t\t\t\t\t\ttext,\n\t\t\t\t\t}],\n\t\t\t\t})\n\t\t\t} else {\n\t\t\t\tchain.setLink({ href })\n\t\t\t}\n\t\t\tchain.focus().run()\n\t\t},\n\t\t/**\n\t\t * Remove link markup at current position\n\t\t * Triggered by the \"remove link\" button\n\t\t */\n\t\tremoveLink() {\n\t\t\tthis.$editor.chain().unsetLink().focus().run()\n\t\t},\n\t},\n}\n<\/script>\n\n<style scoped>\n\t.action {\n\t\t/* to unify width of ActionInput and ActionButton */\n\t\tmin-width: 218px;\n\t}\n</style>\n"],sourceRoot:""}]);const s=a},96614:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,"\n.text-readonly-bar__entries[data-v-59dd87ec] {\n\tdisplay: flex;\n\tflex-grow: 1;\n}\n","",{version:3,sources:["webpack://./src/components/Menu/ReadonlyBar.vue"],names:[],mappings:";AA8BA;CACA,aAAA;CACA,YAAA;AACA",sourcesContent:['<template>\n\t<div data-text-el="readonly-bar" class="text-readonly-bar">\n\t\t<div ref="menubar"\n\t\t\trole="group"\n\t\t\tclass="text-readonly-bar__entries"\n\t\t\t:aria-label="t(\'text\', \'Editor actions\')">\n\t\t\t<ActionEntry v-for="actionEntry of visibleEntries"\n\t\t\t\tv-bind="{ actionEntry }"\n\t\t\t\t:key="`text-action--${actionEntry.key}`" />\n\t\t</div>\n\t</div>\n</template>\n\n<script>\nimport { defineComponent } from \'vue\'\nimport { ReadonlyEntries as entries } from \'./entries.js\'\nimport ActionEntry from \'./ActionEntry.js\'\n\nexport default defineComponent({\n\tname: \'ReadonlyBar\',\n\tcomponents: { ActionEntry },\n\tsetup() {\n\t\treturn {\n\t\t\tvisibleEntries: entries,\n\t\t}\n\t},\n})\n<\/script>\n\n<style scoped>\n.text-readonly-bar__entries {\n\tdisplay: flex;\n\tflex-grow: 1;\n}\n</style>\n'],sourceRoot:""}]);const s=a},35460:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(87537),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([t.id,"\n/* This is required to properly render the bubble text (which seems linke a browser bug) */\n.text-editor__wrapper div.ProseMirror .mention[contenteditable=false][data-v-297bb5fa] * {\n\t-webkit-user-modify: read-only !important;\n}\n","",{version:3,sources:["webpack://./src/extensions/Mention.vue"],names:[],mappings:";AA8CA,0FAAA;AACA;CACA,yCAAA;AACA",sourcesContent:['<template>\n\t<NodeViewWrapper as="span" class="mention" contenteditable="false">\n\t\t<NcUserBubble :user="node.attrs.id"\n\t\t\t:display-name="username"\n\t\t\t:primary="isCurrentUser"\n\t\t\tclass="mention-user-bubble">\n\t\t\t@{{ username }}\n\t\t</NcUserBubble>\n\t</NodeViewWrapper>\n</template>\n\n<script>\nimport { NcUserBubble } from \'@nextcloud/vue\'\nimport { NodeViewWrapper } from \'@tiptap/vue-2\'\nimport { getCurrentUser } from \'@nextcloud/auth\'\n\nexport default {\n\tname: \'Mention\',\n\tcomponents: {\n\t\tNcUserBubble,\n\t\tNodeViewWrapper,\n\t},\n\tprops: {\n\t\tupdateAttributes: {\n\t\t\ttype: Function,\n\t\t\trequired: true,\n\t\t},\n\n\t\tnode: {\n\t\t\ttype: Object,\n\t\t\trequired: true,\n\t\t},\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tusername: this.node.attrs.label,\n\t\t}\n\t},\n\tcomputed: {\n\t\tisCurrentUser() {\n\t\t\treturn this.node.attrs.id === getCurrentUser()?.uid\n\t\t},\n\t},\n}\n<\/script>\n<style scoped>\n/* This is required to properly render the bubble text (which seems linke a browser bug) */\n.text-editor__wrapper div.ProseMirror .mention[contenteditable=false] :deep(*) {\n\t-webkit-user-modify: read-only !important;\n}\n</style>\n'],sourceRoot:""}]);const s=a},47802:(t,e,n)=>{var r=n(25108);function o(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach((function(e){var n=t[e];"object"!=typeof n||Object.isFrozen(n)||o(n)})),t}var i=o,a=o;i.default=a;class s{constructor(t){void 0===t.data&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function l(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function c(t,...e){const n=Object.create(null);for(const e in t)n[e]=t[e];return e.forEach((function(t){for(const e in t)n[e]=t[e]})),n}const d=t=>!!t.kind;class u{constructor(t,e){this.buffer="",this.classPrefix=e.classPrefix,t.walk(this)}addText(t){this.buffer+=l(t)}openNode(t){if(!d(t))return;let e=t.kind;t.sublanguage||(e=`${this.classPrefix}${e}`),this.span(e)}closeNode(t){d(t)&&(this.buffer+="</span>")}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}class A{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const e={kind:t,children:[]};this.add(e),this.stack.push(e)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,e){return"string"==typeof e?t.addText(e):e.children&&(t.openNode(e),e.children.forEach((e=>this._walk(t,e))),t.closeNode(e)),t}static _collapse(t){"string"!=typeof t&&t.children&&(t.children.every((t=>"string"==typeof t))?t.children=[t.children.join("")]:t.children.forEach((t=>{A._collapse(t)})))}}class h extends A{constructor(t){super(),this.options=t}addKeyword(t,e){""!==t&&(this.openNode(e),this.addText(t),this.closeNode())}addText(t){""!==t&&this.add(t)}addSublanguage(t,e){const n=t.root;n.kind=e,n.sublanguage=!0,this.add(n)}toHTML(){return new u(this,this.options).value()}finalize(){return!0}}function p(t){return t?"string"==typeof t?t:t.source:null}const f=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;const m="[a-zA-Z]\\w*",g="[a-zA-Z_]\\w*",v="\\b\\d+(\\.\\d+)?",C="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",b="\\b(0b[01]+)",y={begin:"\\\\[\\s\\S]",relevance:0},x={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[y]},w={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[y]},k={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/},_=function(t,e,n={}){const r=c({className:"comment",begin:t,end:e,contains:[]},n);return r.contains.push(k),r.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),r},j=_("//","$"),P=_("/\\*","\\*/"),E=_("#","$"),M={className:"number",begin:v,relevance:0},S={className:"number",begin:C,relevance:0},B={className:"number",begin:b,relevance:0},O={className:"number",begin:v+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},I={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[y,{begin:/\[/,end:/\]/,relevance:0,contains:[y]}]}]},D={className:"title",begin:m,relevance:0},T={className:"title",begin:g,relevance:0},L={begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0};var N=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:m,UNDERSCORE_IDENT_RE:g,NUMBER_RE:v,C_NUMBER_RE:C,BINARY_NUMBER_RE:b,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=function(...t){return t.map((t=>p(t))).join("")}(e,/.*\b/,t.binary,/\b.*/)),c({className:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,e)=>{0!==t.index&&e.ignoreMatch()}},t)},BACKSLASH_ESCAPE:y,APOS_STRING_MODE:x,QUOTE_STRING_MODE:w,PHRASAL_WORDS_MODE:k,COMMENT:_,C_LINE_COMMENT_MODE:j,C_BLOCK_COMMENT_MODE:P,HASH_COMMENT_MODE:E,NUMBER_MODE:M,C_NUMBER_MODE:S,BINARY_NUMBER_MODE:B,CSS_NUMBER_MODE:O,REGEXP_MODE:I,TITLE_MODE:D,UNDERSCORE_TITLE_MODE:T,METHOD_GUARD:L,END_SAME_AS_BEGIN:function(t){return Object.assign(t,{"on:begin":(t,e)=>{e.data._beginMatch=t[1]},"on:end":(t,e)=>{e.data._beginMatch!==t[1]&&e.ignoreMatch()}})}});function R(t,e){"."===t.input[t.index-1]&&e.ignoreMatch()}function Z(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=R,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,void 0===t.relevance&&(t.relevance=0))}function G(t,e){Array.isArray(t.illegal)&&(t.illegal=function(...t){return"("+t.map((t=>p(t))).join("|")+")"}(...t.illegal))}function $(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function F(t,e){void 0===t.relevance&&(t.relevance=1)}const U=["of","and","for","in","not","or","if","then","parent","list","value"];function z(t,e,n="keyword"){const r={};return"string"==typeof t?o(n,t.split(" ")):Array.isArray(t)?o(n,t):Object.keys(t).forEach((function(n){Object.assign(r,z(t[n],e,n))})),r;function o(t,n){e&&(n=n.map((t=>t.toLowerCase()))),n.forEach((function(e){const n=e.split("|");r[n[0]]=[t,H(n[0],n[1])]}))}}function H(t,e){return e?Number(e):function(t){return U.includes(t.toLowerCase())}(t)?0:1}function W(t,{plugins:e}){function n(e,n){return new RegExp(p(e),"m"+(t.case_insensitive?"i":"")+(n?"g":""))}class r{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(t,e){e.position=this.position++,this.matchIndexes[this.matchAt]=e,this.regexes.push([e,t]),this.matchAt+=function(t){return new RegExp(t.toString()+"|").exec("").length-1}(t)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const t=this.regexes.map((t=>t[1]));this.matcherRe=n(function(t,e="|"){let n=0;return t.map((t=>{n+=1;const e=n;let r=p(t),o="";for(;r.length>0;){const t=f.exec(r);if(!t){o+=r;break}o+=r.substring(0,t.index),r=r.substring(t.index+t[0].length),"\\"===t[0][0]&&t[1]?o+="\\"+String(Number(t[1])+e):(o+=t[0],"("===t[0]&&n++)}return o})).map((t=>`(${t})`)).join(e)}(t),!0),this.lastIndex=0}exec(t){this.matcherRe.lastIndex=this.lastIndex;const e=this.matcherRe.exec(t);if(!e)return null;const n=e.findIndex(((t,e)=>e>0&&void 0!==t)),r=this.matchIndexes[n];return e.splice(0,n),Object.assign(e,r)}}class o{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(t){if(this.multiRegexes[t])return this.multiRegexes[t];const e=new r;return this.rules.slice(t).forEach((([t,n])=>e.addRule(t,n))),e.compile(),this.multiRegexes[t]=e,e}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(t,e){this.rules.push([t,e]),"begin"===e.type&&this.count++}exec(t){const e=this.getMatcher(this.regexIndex);e.lastIndex=this.lastIndex;let n=e.exec(t);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const e=this.getMatcher(0);e.lastIndex=this.lastIndex+1,n=e.exec(t)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=c(t.classNameAliases||{}),function e(r,i){const a=r;if(r.isCompiled)return a;[$].forEach((t=>t(r,i))),t.compilerExtensions.forEach((t=>t(r,i))),r.__beforeBegin=null,[Z,G,F].forEach((t=>t(r,i))),r.isCompiled=!0;let s=null;if("object"==typeof r.keywords&&(s=r.keywords.$pattern,delete r.keywords.$pattern),r.keywords&&(r.keywords=z(r.keywords,t.case_insensitive)),r.lexemes&&s)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return s=s||r.lexemes||/\w+/,a.keywordPatternRe=n(s,!0),i&&(r.begin||(r.begin=/\B|\b/),a.beginRe=n(r.begin),r.endSameAsBegin&&(r.end=r.begin),r.end||r.endsWithParent||(r.end=/\B|\b/),r.end&&(a.endRe=n(r.end)),a.terminatorEnd=p(r.end)||"",r.endsWithParent&&i.terminatorEnd&&(a.terminatorEnd+=(r.end?"|":"")+i.terminatorEnd)),r.illegal&&(a.illegalRe=n(r.illegal)),r.contains||(r.contains=[]),r.contains=[].concat(...r.contains.map((function(t){return function(t){t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map((function(e){return c(t,{variants:null},e)})));if(t.cachedVariants)return t.cachedVariants;if(q(t))return c(t,{starts:t.starts?c(t.starts):null});if(Object.isFrozen(t))return c(t);return t}("self"===t?r:t)}))),r.contains.forEach((function(t){e(t,a)})),r.starts&&e(r.starts,i),a.matcher=function(t){const e=new o;return t.contains.forEach((t=>e.addRule(t.begin,{rule:t,type:"begin"}))),t.terminatorEnd&&e.addRule(t.terminatorEnd,{type:"end"}),t.illegal&&e.addRule(t.illegal,{type:"illegal"}),e}(a),a}(t)}function q(t){return!!t&&(t.endsWithParent||q(t.starts))}function Y(t){const e={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!t.getLanguage(this.language))return r.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,l(this.code);let e={};return this.autoDetect?(e=t.highlightAuto(this.code),this.detectedLanguage=e.language):(e=t.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),e.value},autoDetect(){return!this.language||(t=this.autodetect,Boolean(t||""===t));var t},ignoreIllegals:()=>!0},render(t){return t("pre",{},[t("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:e,VuePlugin:{install(t){t.component("highlightjs",e)}}}}const V={"after:highlightElement":({el:t,result:e,text:n})=>{const r=Q(t);if(!r.length)return;const o=document.createElement("div");o.innerHTML=e.value,e.value=function(t,e,n){let r=0,o="";const i=[];function a(){return t.length&&e.length?t[0].offset!==e[0].offset?t[0].offset<e[0].offset?t:e:"start"===e[0].event?t:e:t.length?t:e}function s(t){function e(t){return" "+t.nodeName+'="'+l(t.value)+'"'}o+="<"+K(t)+[].map.call(t.attributes,e).join("")+">"}function c(t){o+="</"+K(t)+">"}function d(t){("start"===t.event?s:c)(t.node)}for(;t.length||e.length;){let e=a();if(o+=l(n.substring(r,e[0].offset)),r=e[0].offset,e===t){i.reverse().forEach(c);do{d(e.splice(0,1)[0]),e=a()}while(e===t&&e.length&&e[0].offset===r);i.reverse().forEach(s)}else"start"===e[0].event?i.push(e[0].node):i.pop(),d(e.splice(0,1)[0])}return o+l(n.substr(r))}(r,Q(o),n)}};function K(t){return t.nodeName.toLowerCase()}function Q(t){const e=[];return function t(n,r){for(let o=n.firstChild;o;o=o.nextSibling)3===o.nodeType?r+=o.nodeValue.length:1===o.nodeType&&(e.push({event:"start",offset:r,node:o}),r=t(o,r),K(o).match(/br|hr|img|input/)||e.push({event:"stop",offset:r,node:o}));return r}(t,0),e}const J={},X=t=>{r.error(t)},tt=(t,...e)=>{r.log(`WARN: ${t}`,...e)},et=(t,e)=>{J[`${t}/${e}`]||(r.log(`Deprecated as of ${t}. ${e}`),J[`${t}/${e}`]=!0)},nt=l,rt=c,ot=Symbol("nomatch");var it=function(t){const e=Object.create(null),n=Object.create(null),r=[];let o=!0;const a=/(^(<[^>]+>|\t|)+|\n)/gm,l="Could not find the language '{}', did you forget to load/include a language module?",c={disableAutodetect:!0,name:"Plain text",contains:[]};let d={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:h};function u(t){return d.noHighlightRe.test(t)}function A(t,e,n,r){let o="",i="";"object"==typeof e?(o=t,n=e.ignoreIllegals,i=e.language,r=void 0):(et("10.7.0","highlight(lang, code, ...args) has been deprecated."),et("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),i=t,o=e);const a={code:o,language:i};j("before:highlight",a);const s=a.result?a.result:p(a.language,a.code,n,r);return s.code=a.code,j("after:highlight",s),s}function p(t,n,i,a){function c(t,e){const n=y.case_insensitive?e[0].toLowerCase():e[0];return Object.prototype.hasOwnProperty.call(t.keywords,n)&&t.keywords[n]}function u(){null!=_.subLanguage?function(){if(""===E)return;let t=null;if("string"==typeof _.subLanguage){if(!e[_.subLanguage])return void P.addText(E);t=p(_.subLanguage,E,!0,j[_.subLanguage]),j[_.subLanguage]=t.top}else t=f(E,_.subLanguage.length?_.subLanguage:null);_.relevance>0&&(M+=t.relevance),P.addSublanguage(t.emitter,t.language)}():function(){if(!_.keywords)return void P.addText(E);let t=0;_.keywordPatternRe.lastIndex=0;let e=_.keywordPatternRe.exec(E),n="";for(;e;){n+=E.substring(t,e.index);const r=c(_,e);if(r){const[t,o]=r;if(P.addText(n),n="",M+=o,t.startsWith("_"))n+=e[0];else{const n=y.classNameAliases[t]||t;P.addKeyword(e[0],n)}}else n+=e[0];t=_.keywordPatternRe.lastIndex,e=_.keywordPatternRe.exec(E)}n+=E.substr(t),P.addText(n)}(),E=""}function A(t){return t.className&&P.openNode(y.classNameAliases[t.className]||t.className),_=Object.create(t,{parent:{value:_}}),_}function h(t,e,n){let r=function(t,e){const n=t&&t.exec(e);return n&&0===n.index}(t.endRe,n);if(r){if(t["on:end"]){const n=new s(t);t["on:end"](e,n),n.isMatchIgnored&&(r=!1)}if(r){for(;t.endsParent&&t.parent;)t=t.parent;return t}}if(t.endsWithParent)return h(t.parent,e,n)}function m(t){return 0===_.matcher.regexIndex?(E+=t[0],1):(O=!0,0)}function g(t){const e=t[0],n=t.rule,r=new s(n),o=[n.__beforeBegin,n["on:begin"]];for(const n of o)if(n&&(n(t,r),r.isMatchIgnored))return m(e);return n&&n.endSameAsBegin&&(n.endRe=new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")),n.skip?E+=e:(n.excludeBegin&&(E+=e),u(),n.returnBegin||n.excludeBegin||(E=e)),A(n),n.returnBegin?0:e.length}function v(t){const e=t[0],r=n.substr(t.index),o=h(_,t,r);if(!o)return ot;const i=_;i.skip?E+=e:(i.returnEnd||i.excludeEnd||(E+=e),u(),i.excludeEnd&&(E=e));do{_.className&&P.closeNode(),_.skip||_.subLanguage||(M+=_.relevance),_=_.parent}while(_!==o.parent);return o.starts&&(o.endSameAsBegin&&(o.starts.endRe=o.endRe),A(o.starts)),i.returnEnd?0:e.length}let C={};function b(e,r){const a=r&&r[0];if(E+=e,null==a)return u(),0;if("begin"===C.type&&"end"===r.type&&C.index===r.index&&""===a){if(E+=n.slice(r.index,r.index+1),!o){const e=new Error("0 width match regex");throw e.languageName=t,e.badRule=C.rule,e}return 1}if(C=r,"begin"===r.type)return g(r);if("illegal"===r.type&&!i){const t=new Error('Illegal lexeme "'+a+'" for mode "'+(_.className||"<unnamed>")+'"');throw t.mode=_,t}if("end"===r.type){const t=v(r);if(t!==ot)return t}if("illegal"===r.type&&""===a)return 1;if(B>1e5&&B>3*r.index){throw new Error("potential infinite loop, way more iterations than matches")}return E+=a,a.length}const y=w(t);if(!y)throw X(l.replace("{}",t)),new Error('Unknown language: "'+t+'"');const x=W(y,{plugins:r});let k="",_=a||x;const j={},P=new d.__emitter(d);!function(){const t=[];for(let e=_;e!==y;e=e.parent)e.className&&t.unshift(e.className);t.forEach((t=>P.openNode(t)))}();let E="",M=0,S=0,B=0,O=!1;try{for(_.matcher.considerAll();;){B++,O?O=!1:_.matcher.considerAll(),_.matcher.lastIndex=S;const t=_.matcher.exec(n);if(!t)break;const e=b(n.substring(S,t.index),t);S=t.index+e}return b(n.substr(S)),P.closeAllNodes(),P.finalize(),k=P.toHTML(),{relevance:Math.floor(M),value:k,language:t,illegal:!1,emitter:P,top:_}}catch(e){if(e.message&&e.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:e.message,context:n.slice(S-100,S+100),mode:e.mode},sofar:k,relevance:0,value:nt(n),emitter:P};if(o)return{illegal:!1,relevance:0,value:nt(n),emitter:P,language:t,top:_,errorRaised:e};throw e}}function f(t,n){n=n||d.languages||Object.keys(e);const r=function(t){const e={relevance:0,emitter:new d.__emitter(d),value:nt(t),illegal:!1,top:c};return e.emitter.addText(t),e}(t),o=n.filter(w).filter(_).map((e=>p(e,t,!1)));o.unshift(r);const i=o.sort(((t,e)=>{if(t.relevance!==e.relevance)return e.relevance-t.relevance;if(t.language&&e.language){if(w(t.language).supersetOf===e.language)return 1;if(w(e.language).supersetOf===t.language)return-1}return 0})),[a,s]=i,l=a;return l.second_best=s,l}const m={"before:highlightElement":({el:t})=>{d.useBR&&(t.innerHTML=t.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,"\n"))},"after:highlightElement":({result:t})=>{d.useBR&&(t.value=t.value.replace(/\n/g,"<br>"))}},g=/^(<[^>]+>|\t)+/gm,v={"after:highlightElement":({result:t})=>{d.tabReplace&&(t.value=t.value.replace(g,(t=>t.replace(/\t/g,d.tabReplace))))}};function C(t){let e=null;const r=function(t){let e=t.className+" ";e+=t.parentNode?t.parentNode.className:"";const n=d.languageDetectRe.exec(e);if(n){const e=w(n[1]);return e||(tt(l.replace("{}",n[1])),tt("Falling back to no-highlight mode for this block.",t)),e?n[1]:"no-highlight"}return e.split(/\s+/).find((t=>u(t)||w(t)))}(t);if(u(r))return;j("before:highlightElement",{el:t,language:r}),e=t;const o=e.textContent,i=r?A(o,{language:r,ignoreIllegals:!0}):f(o);j("after:highlightElement",{el:t,result:i,text:o}),t.innerHTML=i.value,function(t,e,r){const o=e?n[e]:r;t.classList.add("hljs"),o&&t.classList.add(o)}(t,r,i.language),t.result={language:i.language,re:i.relevance,relavance:i.relevance},i.second_best&&(t.second_best={language:i.second_best.language,re:i.second_best.relevance,relavance:i.second_best.relevance})}const b=()=>{if(b.called)return;b.called=!0,et("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead.");document.querySelectorAll("pre code").forEach(C)};let y=!1;function x(){if("loading"===document.readyState)return void(y=!0);document.querySelectorAll("pre code").forEach(C)}function w(t){return t=(t||"").toLowerCase(),e[t]||e[n[t]]}function k(t,{languageName:e}){"string"==typeof t&&(t=[t]),t.forEach((t=>{n[t.toLowerCase()]=e}))}function _(t){const e=w(t);return e&&!e.disableAutodetect}function j(t,e){const n=t;r.forEach((function(t){t[n]&&t[n](e)}))}"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){y&&x()}),!1),Object.assign(t,{highlight:A,highlightAuto:f,highlightAll:x,fixMarkup:function(t){return et("10.2.0","fixMarkup will be removed entirely in v11.0"),et("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),e=t,d.tabReplace||d.useBR?e.replace(a,(t=>"\n"===t?d.useBR?"<br>":t:d.tabReplace?t.replace(/\t/g,d.tabReplace):t)):e;var e},highlightElement:C,highlightBlock:function(t){return et("10.7.0","highlightBlock will be removed entirely in v12.0"),et("10.7.0","Please use highlightElement now."),C(t)},configure:function(t){t.useBR&&(et("10.3.0","'useBR' will be removed entirely in v11.0"),et("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),d=rt(d,t)},initHighlighting:b,initHighlightingOnLoad:function(){et("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),y=!0},registerLanguage:function(n,r){let i=null;try{i=r(t)}catch(t){if(X("Language definition for '{}' could not be registered.".replace("{}",n)),!o)throw t;X(t),i=c}i.name||(i.name=n),e[n]=i,i.rawDefinition=r.bind(null,t),i.aliases&&k(i.aliases,{languageName:n})},unregisterLanguage:function(t){delete e[t];for(const e of Object.keys(n))n[e]===t&&delete n[e]},listLanguages:function(){return Object.keys(e)},getLanguage:w,registerAliases:k,requireLanguage:function(t){et("10.4.0","requireLanguage will be removed entirely in v11."),et("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const e=w(t);if(e)return e;throw new Error("The '{}' language is required, but not loaded.".replace("{}",t))},autoDetection:_,inherit:rt,addPlugin:function(t){!function(t){t["before:highlightBlock"]&&!t["before:highlightElement"]&&(t["before:highlightElement"]=e=>{t["before:highlightBlock"](Object.assign({block:e.el},e))}),t["after:highlightBlock"]&&!t["after:highlightElement"]&&(t["after:highlightElement"]=e=>{t["after:highlightBlock"](Object.assign({block:e.el},e))})}(t),r.push(t)},vuePlugin:Y(t).VuePlugin}),t.debugMode=function(){o=!1},t.safeMode=function(){o=!0},t.versionString="10.7.3";for(const t in N)"object"==typeof N[t]&&i(N[t]);return Object.assign(t,N),t.addPlugin(m),t.addPlugin(V),t.addPlugin(v),t}({});t.exports=it},23506:(t,e,n)=>{var r={"./1c":[73870,"highlight/1c"],"./1c.js":[73870,"highlight/1c"],"./abnf":[1122,"highlight/abnf"],"./abnf.js":[1122,"highlight/abnf"],"./accesslog":[63074,"highlight/accesslog"],"./accesslog.js":[63074,"highlight/accesslog"],"./actionscript":[39696,"highlight/actionscript"],"./actionscript.js":[39696,"highlight/actionscript"],"./ada":[19389,"highlight/ada"],"./ada.js":[19389,"highlight/ada"],"./angelscript":[46147,"highlight/angelscript"],"./angelscript.js":[46147,"highlight/angelscript"],"./apache":[96936,"highlight/apache"],"./apache.js":[96936,"highlight/apache"],"./applescript":[5460,"highlight/applescript"],"./applescript.js":[5460,"highlight/applescript"],"./arcade":[43178,"highlight/arcade"],"./arcade.js":[43178,"highlight/arcade"],"./arduino":[1232,"highlight/arduino"],"./arduino.js":[1232,"highlight/arduino"],"./armasm":[71196,"highlight/armasm"],"./armasm.js":[71196,"highlight/armasm"],"./asciidoc":[90630,"highlight/asciidoc"],"./asciidoc.js":[90630,"highlight/asciidoc"],"./aspectj":[25044,"highlight/aspectj"],"./aspectj.js":[25044,"highlight/aspectj"],"./autohotkey":[67130,"highlight/autohotkey"],"./autohotkey.js":[67130,"highlight/autohotkey"],"./autoit":[75039,"highlight/autoit"],"./autoit.js":[75039,"highlight/autoit"],"./avrasm":[18324,"highlight/avrasm"],"./avrasm.js":[18324,"highlight/avrasm"],"./awk":[40070,"highlight/awk"],"./awk.js":[40070,"highlight/awk"],"./axapta":[80149,"highlight/axapta"],"./axapta.js":[80149,"highlight/axapta"],"./bash":[61519,"highlight/bash"],"./bash.js":[61519,"highlight/bash"],"./basic":[56827,"highlight/basic"],"./basic.js":[56827,"highlight/basic"],"./bnf":[78349,"highlight/bnf"],"./bnf.js":[78349,"highlight/bnf"],"./brainfuck":[44536,"highlight/brainfuck"],"./brainfuck.js":[44536,"highlight/brainfuck"],"./c":[25745,"highlight/c"],"./c-like":[58212,"highlight/c-like"],"./c-like.js":[58212,"highlight/c-like"],"./c.js":[25745,"highlight/c"],"./cal":[45041,"highlight/cal"],"./cal.js":[45041,"highlight/cal"],"./capnproto":[51446,"highlight/capnproto"],"./capnproto.js":[51446,"highlight/capnproto"],"./ceylon":[1795,"highlight/ceylon"],"./ceylon.js":[1795,"highlight/ceylon"],"./clean":[82280,"highlight/clean"],"./clean.js":[82280,"highlight/clean"],"./clojure":[36134,"highlight/clojure"],"./clojure-repl":[36746,"highlight/clojure-repl"],"./clojure-repl.js":[36746,"highlight/clojure-repl"],"./clojure.js":[36134,"highlight/clojure"],"./cmake":[71422,"highlight/cmake"],"./cmake.js":[71422,"highlight/cmake"],"./coffeescript":[6691,"highlight/coffeescript"],"./coffeescript.js":[6691,"highlight/coffeescript"],"./coq":[73621,"highlight/coq"],"./coq.js":[73621,"highlight/coq"],"./cos":[69586,"highlight/cos"],"./cos.js":[69586,"highlight/cos"],"./cpp":[74006,"highlight/cpp"],"./cpp.js":[74006,"highlight/cpp"],"./crmsh":[37641,"highlight/crmsh"],"./crmsh.js":[37641,"highlight/crmsh"],"./crystal":[91139,"highlight/crystal"],"./crystal.js":[91139,"highlight/crystal"],"./csharp":[681,"highlight/csharp"],"./csharp.js":[681,"highlight/csharp"],"./csp":[60530,"highlight/csp"],"./csp.js":[60530,"highlight/csp"],"./css":[68914,"highlight/css"],"./css.js":[68914,"highlight/css"],"./d":[89968,"highlight/d"],"./d.js":[89968,"highlight/d"],"./dart":[65778,"highlight/dart"],"./dart.js":[65778,"highlight/dart"],"./delphi":[48008,"highlight/delphi"],"./delphi.js":[48008,"highlight/delphi"],"./diff":[91833,"highlight/diff"],"./diff.js":[91833,"highlight/diff"],"./django":[45253,"highlight/django"],"./django.js":[45253,"highlight/django"],"./dns":[65594,"highlight/dns"],"./dns.js":[65594,"highlight/dns"],"./dockerfile":[27055,"highlight/dockerfile"],"./dockerfile.js":[27055,"highlight/dockerfile"],"./dos":[85215,"highlight/dos"],"./dos.js":[85215,"highlight/dos"],"./dsconfig":[71524,"highlight/dsconfig"],"./dsconfig.js":[71524,"highlight/dsconfig"],"./dts":[29702,"highlight/dts"],"./dts.js":[29702,"highlight/dts"],"./dust":[27115,"highlight/dust"],"./dust.js":[27115,"highlight/dust"],"./ebnf":[26254,"highlight/ebnf"],"./ebnf.js":[26254,"highlight/ebnf"],"./elixir":[27204,"highlight/elixir"],"./elixir.js":[27204,"highlight/elixir"],"./elm":[58259,"highlight/elm"],"./elm.js":[58259,"highlight/elm"],"./erb":[328,"highlight/erb"],"./erb.js":[328,"highlight/erb"],"./erlang":[87489,"highlight/erlang"],"./erlang-repl":[27670,"highlight/erlang-repl"],"./erlang-repl.js":[27670,"highlight/erlang-repl"],"./erlang.js":[87489,"highlight/erlang"],"./excel":[94369,"highlight/excel"],"./excel.js":[94369,"highlight/excel"],"./fix":[51377,"highlight/fix"],"./fix.js":[51377,"highlight/fix"],"./flix":[72041,"highlight/flix"],"./flix.js":[72041,"highlight/flix"],"./fortran":[28362,"highlight/fortran"],"./fortran.js":[28362,"highlight/fortran"],"./fsharp":[34639,"highlight/fsharp"],"./fsharp.js":[34639,"highlight/fsharp"],"./gams":[9392,"highlight/gams"],"./gams.js":[9392,"highlight/gams"],"./gauss":[44859,"highlight/gauss"],"./gauss.js":[44859,"highlight/gauss"],"./gcode":[38036,"highlight/gcode"],"./gcode.js":[38036,"highlight/gcode"],"./gherkin":[65962,"highlight/gherkin"],"./gherkin.js":[65962,"highlight/gherkin"],"./glsl":[85243,"highlight/glsl"],"./glsl.js":[85243,"highlight/glsl"],"./gml":[94807,"highlight/gml"],"./gml.js":[94807,"highlight/gml"],"./go":[33048,"highlight/go"],"./go.js":[33048,"highlight/go"],"./golo":[87140,"highlight/golo"],"./golo.js":[87140,"highlight/golo"],"./gradle":[88267,"highlight/gradle"],"./gradle.js":[88267,"highlight/gradle"],"./groovy":[12175,"highlight/groovy"],"./groovy.js":[12175,"highlight/groovy"],"./haml":[25268,"highlight/haml"],"./haml.js":[25268,"highlight/haml"],"./handlebars":[83512,"highlight/handlebars"],"./handlebars.js":[83512,"highlight/handlebars"],"./haskell":[56703,"highlight/haskell"],"./haskell.js":[56703,"highlight/haskell"],"./haxe":[429,"highlight/haxe"],"./haxe.js":[429,"highlight/haxe"],"./hsp":[90793,"highlight/hsp"],"./hsp.js":[90793,"highlight/hsp"],"./htmlbars":[93202,"highlight/htmlbars"],"./htmlbars.js":[93202,"highlight/htmlbars"],"./http":[30786,"highlight/http"],"./http.js":[30786,"highlight/http"],"./hy":[35359,"highlight/hy"],"./hy.js":[35359,"highlight/hy"],"./inform7":[68968,"highlight/inform7"],"./inform7.js":[68968,"highlight/inform7"],"./ini":[29560,"highlight/ini"],"./ini.js":[29560,"highlight/ini"],"./irpf90":[10811,"highlight/irpf90"],"./irpf90.js":[10811,"highlight/irpf90"],"./isbl":[15044,"highlight/isbl"],"./isbl.js":[15044,"highlight/isbl"],"./java":[37721,"highlight/java"],"./java.js":[37721,"highlight/java"],"./javascript":[96344,"highlight/javascript"],"./javascript.js":[96344,"highlight/javascript"],"./jboss-cli":[40412,"highlight/jboss-cli"],"./jboss-cli.js":[40412,"highlight/jboss-cli"],"./json":[82026,"highlight/json"],"./json.js":[82026,"highlight/json"],"./julia":[47337,"highlight/julia"],"./julia-repl":[79989,"highlight/julia-repl"],"./julia-repl.js":[79989,"highlight/julia-repl"],"./julia.js":[47337,"highlight/julia"],"./kotlin":[48099,"highlight/kotlin"],"./kotlin.js":[48099,"highlight/kotlin"],"./lasso":[54082,"highlight/lasso"],"./lasso.js":[54082,"highlight/lasso"],"./latex":[850,"highlight/latex"],"./latex.js":[850,"highlight/latex"],"./ldif":[33310,"highlight/ldif"],"./ldif.js":[33310,"highlight/ldif"],"./leaf":[2774,"highlight/leaf"],"./leaf.js":[2774,"highlight/leaf"],"./less":[23874,"highlight/less"],"./less.js":[23874,"highlight/less"],"./lisp":[17169,"highlight/lisp"],"./lisp.js":[17169,"highlight/lisp"],"./livecodeserver":[63909,"highlight/livecodeserver"],"./livecodeserver.js":[63909,"highlight/livecodeserver"],"./livescript":[39563,"highlight/livescript"],"./livescript.js":[39563,"highlight/livescript"],"./llvm":[40119,"highlight/llvm"],"./llvm.js":[40119,"highlight/llvm"],"./lsl":[12130,"highlight/lsl"],"./lsl.js":[12130,"highlight/lsl"],"./lua":[31067,"highlight/lua"],"./lua.js":[31067,"highlight/lua"],"./makefile":[30465,"highlight/makefile"],"./makefile.js":[30465,"highlight/makefile"],"./markdown":[93839,"highlight/markdown"],"./markdown.js":[93839,"highlight/markdown"],"./mathematica":[61083,"highlight/mathematica"],"./mathematica.js":[61083,"highlight/mathematica"],"./matlab":[41304,"highlight/matlab"],"./matlab.js":[41304,"highlight/matlab"],"./maxima":[46747,"highlight/maxima"],"./maxima.js":[46747,"highlight/maxima"],"./mel":[70483,"highlight/mel"],"./mel.js":[70483,"highlight/mel"],"./mercury":[53038,"highlight/mercury"],"./mercury.js":[53038,"highlight/mercury"],"./mipsasm":[45802,"highlight/mipsasm"],"./mipsasm.js":[45802,"highlight/mipsasm"],"./mizar":[90918,"highlight/mizar"],"./mizar.js":[90918,"highlight/mizar"],"./mojolicious":[92210,"highlight/mojolicious"],"./mojolicious.js":[92210,"highlight/mojolicious"],"./monkey":[97350,"highlight/monkey"],"./monkey.js":[97350,"highlight/monkey"],"./moonscript":[27239,"highlight/moonscript"],"./moonscript.js":[27239,"highlight/moonscript"],"./n1ql":[77669,"highlight/n1ql"],"./n1ql.js":[77669,"highlight/n1ql"],"./nginx":[42387,"highlight/nginx"],"./nginx.js":[42387,"highlight/nginx"],"./nim":[35587,"highlight/nim"],"./nim.js":[35587,"highlight/nim"],"./nix":[88170,"highlight/nix"],"./nix.js":[88170,"highlight/nix"],"./node-repl":[93668,"highlight/node-repl"],"./node-repl.js":[93668,"highlight/node-repl"],"./nsis":[29269,"highlight/nsis"],"./nsis.js":[29269,"highlight/nsis"],"./objectivec":[61896,"highlight/objectivec"],"./objectivec.js":[61896,"highlight/objectivec"],"./ocaml":[78550,"highlight/ocaml"],"./ocaml.js":[78550,"highlight/ocaml"],"./openscad":[41078,"highlight/openscad"],"./openscad.js":[41078,"highlight/openscad"],"./oxygene":[89015,"highlight/oxygene"],"./oxygene.js":[89015,"highlight/oxygene"],"./parser3":[6247,"highlight/parser3"],"./parser3.js":[6247,"highlight/parser3"],"./perl":[78529,"highlight/perl"],"./perl.js":[78529,"highlight/perl"],"./pf":[15994,"highlight/pf"],"./pf.js":[15994,"highlight/pf"],"./pgsql":[86509,"highlight/pgsql"],"./pgsql.js":[86509,"highlight/pgsql"],"./php":[73306,"highlight/php"],"./php-template":[75377,"highlight/php-template"],"./php-template.js":[75377,"highlight/php-template"],"./php.js":[73306,"highlight/php"],"./plaintext":[76572,"highlight/plaintext"],"./plaintext.js":[76572,"highlight/plaintext"],"./pony":[28422,"highlight/pony"],"./pony.js":[28422,"highlight/pony"],"./powershell":[66336,"highlight/powershell"],"./powershell.js":[66336,"highlight/powershell"],"./processing":[44148,"highlight/processing"],"./processing.js":[44148,"highlight/processing"],"./profile":[9129,"highlight/profile"],"./profile.js":[9129,"highlight/profile"],"./prolog":[58074,"highlight/prolog"],"./prolog.js":[58074,"highlight/prolog"],"./properties":[81245,"highlight/properties"],"./properties.js":[81245,"highlight/properties"],"./protobuf":[3306,"highlight/protobuf"],"./protobuf.js":[3306,"highlight/protobuf"],"./puppet":[73736,"highlight/puppet"],"./puppet.js":[73736,"highlight/puppet"],"./purebasic":[34055,"highlight/purebasic"],"./purebasic.js":[34055,"highlight/purebasic"],"./python":[30308,"highlight/python"],"./python-repl":[93725,"highlight/python-repl"],"./python-repl.js":[93725,"highlight/python-repl"],"./python.js":[30308,"highlight/python"],"./q":[76891,"highlight/q"],"./q.js":[76891,"highlight/q"],"./qml":[63259,"highlight/qml"],"./qml.js":[63259,"highlight/qml"],"./r":[30806,"highlight/r"],"./r.js":[30806,"highlight/r"],"./reasonml":[82050,"highlight/reasonml"],"./reasonml.js":[82050,"highlight/reasonml"],"./rib":[44613,"highlight/rib"],"./rib.js":[44613,"highlight/rib"],"./roboconf":[33176,"highlight/roboconf"],"./roboconf.js":[33176,"highlight/roboconf"],"./routeros":[25096,"highlight/routeros"],"./routeros.js":[25096,"highlight/routeros"],"./rsl":[61025,"highlight/rsl"],"./rsl.js":[61025,"highlight/rsl"],"./ruby":[58473,"highlight/ruby"],"./ruby.js":[58473,"highlight/ruby"],"./ruleslanguage":[65506,"highlight/ruleslanguage"],"./ruleslanguage.js":[65506,"highlight/ruleslanguage"],"./rust":[11374,"highlight/rust"],"./rust.js":[11374,"highlight/rust"],"./sas":[35457,"highlight/sas"],"./sas.js":[35457,"highlight/sas"],"./scala":[5818,"highlight/scala"],"./scala.js":[5818,"highlight/scala"],"./scheme":[10336,"highlight/scheme"],"./scheme.js":[10336,"highlight/scheme"],"./scilab":[47691,"highlight/scilab"],"./scilab.js":[47691,"highlight/scilab"],"./scss":[36632,"highlight/scss"],"./scss.js":[36632,"highlight/scss"],"./shell":[19514,"highlight/shell"],"./shell.js":[19514,"highlight/shell"],"./smali":[60522,"highlight/smali"],"./smali.js":[60522,"highlight/smali"],"./smalltalk":[75030,"highlight/smalltalk"],"./smalltalk.js":[75030,"highlight/smalltalk"],"./sml":[79664,"highlight/sml"],"./sml.js":[79664,"highlight/sml"],"./sqf":[85168,"highlight/sqf"],"./sqf.js":[85168,"highlight/sqf"],"./sql":[97181,"highlight/sql"],"./sql.js":[97181,"highlight/sql"],"./sql_more":[83224,"highlight/sql_more"],"./sql_more.js":[83224,"highlight/sql_more"],"./stan":[53413,"highlight/stan"],"./stan.js":[53413,"highlight/stan"],"./stata":[92417,"highlight/stata"],"./stata.js":[92417,"highlight/stata"],"./step21":[52706,"highlight/step21"],"./step21.js":[52706,"highlight/step21"],"./stylus":[82054,"highlight/stylus"],"./stylus.js":[82054,"highlight/stylus"],"./subunit":[36886,"highlight/subunit"],"./subunit.js":[36886,"highlight/subunit"],"./swift":[26306,"highlight/swift"],"./swift.js":[26306,"highlight/swift"],"./taggerscript":[54858,"highlight/taggerscript"],"./taggerscript.js":[54858,"highlight/taggerscript"],"./tap":[49113,"highlight/tap"],"./tap.js":[49113,"highlight/tap"],"./tcl":[74562,"highlight/tcl"],"./tcl.js":[74562,"highlight/tcl"],"./thrift":[55063,"highlight/thrift"],"./thrift.js":[55063,"highlight/thrift"],"./tp":[27092,"highlight/tp"],"./tp.js":[27092,"highlight/tp"],"./twig":[35488,"highlight/twig"],"./twig.js":[35488,"highlight/twig"],"./typescript":[91533,"highlight/typescript"],"./typescript.js":[91533,"highlight/typescript"],"./vala":[65431,"highlight/vala"],"./vala.js":[65431,"highlight/vala"],"./vbnet":[86479,"highlight/vbnet"],"./vbnet.js":[86479,"highlight/vbnet"],"./vbscript":[80824,"highlight/vbscript"],"./vbscript-html":[3316,"highlight/vbscript-html"],"./vbscript-html.js":[3316,"highlight/vbscript-html"],"./vbscript.js":[80824,"highlight/vbscript"],"./verilog":[49115,"highlight/verilog"],"./verilog.js":[49115,"highlight/verilog"],"./vhdl":[53260,"highlight/vhdl"],"./vhdl.js":[53260,"highlight/vhdl"],"./vim":[5298,"highlight/vim"],"./vim.js":[5298,"highlight/vim"],"./x86asm":[43377,"highlight/x86asm"],"./x86asm.js":[43377,"highlight/x86asm"],"./xl":[731,"highlight/xl"],"./xl.js":[731,"highlight/xl"],"./xml":[42157,"highlight/xml"],"./xml.js":[42157,"highlight/xml"],"./xquery":[46629,"highlight/xquery"],"./xquery.js":[46629,"highlight/xquery"],"./yaml":[54587,"highlight/yaml"],"./yaml.js":[54587,"highlight/yaml"],"./zephir":[58737,"highlight/zephir"],"./zephir.js":[58737,"highlight/zephir"]};function o(t){if(!n.o(r,t))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=r[t],o=e[0];return n.e(e[1]).then((()=>n.t(o,23)))}o.keys=()=>Object.keys(r),o.id=23506,t.exports=o},46700:(t,e,n)=>{var r={"./af":42786,"./af.js":42786,"./ar":30867,"./ar-dz":14130,"./ar-dz.js":14130,"./ar-kw":96135,"./ar-kw.js":96135,"./ar-ly":56440,"./ar-ly.js":56440,"./ar-ma":47702,"./ar-ma.js":47702,"./ar-sa":16040,"./ar-sa.js":16040,"./ar-tn":37100,"./ar-tn.js":37100,"./ar.js":30867,"./az":31083,"./az.js":31083,"./be":9808,"./be.js":9808,"./bg":68338,"./bg.js":68338,"./bm":67438,"./bm.js":67438,"./bn":8905,"./bn-bd":76225,"./bn-bd.js":76225,"./bn.js":8905,"./bo":11560,"./bo.js":11560,"./br":1278,"./br.js":1278,"./bs":80622,"./bs.js":80622,"./ca":2468,"./ca.js":2468,"./cs":5822,"./cs.js":5822,"./cv":50877,"./cv.js":50877,"./cy":47373,"./cy.js":47373,"./da":24780,"./da.js":24780,"./de":59740,"./de-at":60217,"./de-at.js":60217,"./de-ch":60894,"./de-ch.js":60894,"./de.js":59740,"./dv":5300,"./dv.js":5300,"./el":50837,"./el.js":50837,"./en-au":78348,"./en-au.js":78348,"./en-ca":77925,"./en-ca.js":77925,"./en-gb":22243,"./en-gb.js":22243,"./en-ie":46436,"./en-ie.js":46436,"./en-il":47207,"./en-il.js":47207,"./en-in":44175,"./en-in.js":44175,"./en-nz":76319,"./en-nz.js":76319,"./en-sg":31662,"./en-sg.js":31662,"./eo":92915,"./eo.js":92915,"./es":55655,"./es-do":55251,"./es-do.js":55251,"./es-mx":96112,"./es-mx.js":96112,"./es-us":71146,"./es-us.js":71146,"./es.js":55655,"./et":5603,"./et.js":5603,"./eu":77763,"./eu.js":77763,"./fa":76959,"./fa.js":76959,"./fi":11897,"./fi.js":11897,"./fil":42549,"./fil.js":42549,"./fo":94694,"./fo.js":94694,"./fr":94470,"./fr-ca":63049,"./fr-ca.js":63049,"./fr-ch":52330,"./fr-ch.js":52330,"./fr.js":94470,"./fy":5044,"./fy.js":5044,"./ga":29295,"./ga.js":29295,"./gd":2101,"./gd.js":2101,"./gl":38794,"./gl.js":38794,"./gom-deva":27884,"./gom-deva.js":27884,"./gom-latn":23168,"./gom-latn.js":23168,"./gu":95349,"./gu.js":95349,"./he":24206,"./he.js":24206,"./hi":30094,"./hi.js":30094,"./hr":30316,"./hr.js":30316,"./hu":22138,"./hu.js":22138,"./hy-am":11423,"./hy-am.js":11423,"./id":29218,"./id.js":29218,"./is":90135,"./is.js":90135,"./it":90626,"./it-ch":10150,"./it-ch.js":10150,"./it.js":90626,"./ja":39183,"./ja.js":39183,"./jv":24286,"./jv.js":24286,"./ka":12105,"./ka.js":12105,"./kk":47772,"./kk.js":47772,"./km":18758,"./km.js":18758,"./kn":79282,"./kn.js":79282,"./ko":33730,"./ko.js":33730,"./ku":1408,"./ku.js":1408,"./ky":33291,"./ky.js":33291,"./lb":36841,"./lb.js":36841,"./lo":55466,"./lo.js":55466,"./lt":57010,"./lt.js":57010,"./lv":37595,"./lv.js":37595,"./me":39861,"./me.js":39861,"./mi":35493,"./mi.js":35493,"./mk":95966,"./mk.js":95966,"./ml":87341,"./ml.js":87341,"./mn":5115,"./mn.js":5115,"./mr":10370,"./mr.js":10370,"./ms":9847,"./ms-my":41237,"./ms-my.js":41237,"./ms.js":9847,"./mt":72126,"./mt.js":72126,"./my":56165,"./my.js":56165,"./nb":64924,"./nb.js":64924,"./ne":16744,"./ne.js":16744,"./nl":93901,"./nl-be":59814,"./nl-be.js":59814,"./nl.js":93901,"./nn":83877,"./nn.js":83877,"./oc-lnc":92135,"./oc-lnc.js":92135,"./pa-in":15858,"./pa-in.js":15858,"./pl":64495,"./pl.js":64495,"./pt":89520,"./pt-br":57971,"./pt-br.js":57971,"./pt.js":89520,"./ro":96459,"./ro.js":96459,"./ru":21793,"./ru.js":21793,"./sd":40950,"./sd.js":40950,"./se":10490,"./se.js":10490,"./si":90124,"./si.js":90124,"./sk":64249,"./sk.js":64249,"./sl":14985,"./sl.js":14985,"./sq":51104,"./sq.js":51104,"./sr":49131,"./sr-cyrl":79915,"./sr-cyrl.js":79915,"./sr.js":49131,"./ss":85893,"./ss.js":85893,"./sv":98760,"./sv.js":98760,"./sw":91172,"./sw.js":91172,"./ta":27333,"./ta.js":27333,"./te":23110,"./te.js":23110,"./tet":52095,"./tet.js":52095,"./tg":27321,"./tg.js":27321,"./th":9041,"./th.js":9041,"./tk":19005,"./tk.js":19005,"./tl-ph":75768,"./tl-ph.js":75768,"./tlh":89444,"./tlh.js":89444,"./tr":72397,"./tr.js":72397,"./tzl":28254,"./tzl.js":28254,"./tzm":51106,"./tzm-latn":30699,"./tzm-latn.js":30699,"./tzm.js":51106,"./ug-cn":9288,"./ug-cn.js":9288,"./uk":67691,"./uk.js":67691,"./ur":13795,"./ur.js":13795,"./uz":6791,"./uz-latn":60588,"./uz-latn.js":60588,"./uz.js":6791,"./vi":65666,"./vi.js":65666,"./x-pseudo":14378,"./x-pseudo.js":14378,"./yo":75805,"./yo.js":75805,"./zh-cn":83839,"./zh-cn.js":83839,"./zh-hk":55726,"./zh-hk.js":55726,"./zh-mo":99807,"./zh-mo.js":99807,"./zh-tw":74152,"./zh-tw.js":74152};function o(t){var e=i(t);return n(e)}function i(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}o.keys=function(){return Object.keys(r)},o.resolve=i,t.exports=o,o.id=46700},84413:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>v});const r={name:"CollisionResolveDialog"};var o=n(93379),i=n.n(o),a=n(7795),s=n.n(a),l=n(90569),c=n.n(l),d=n(3565),u=n.n(d),A=n(19216),h=n.n(A),p=n(44589),f=n.n(p),m=n(70060),g={};g.styleTagTransform=f(),g.setAttributes=u(),g.insert=c().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=h();i()(m.Z,g);m.Z&&m.Z.locals&&m.Z.locals;const v=(0,n(51900).Z)(r,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"collision-resolve-dialog",attrs:{id:"resolve-conflicts"}},[e("button",{on:{click:function(e){return t.$emit("resolve-use-this-version")}}},[t._v("\n\t\t"+t._s(t.t("text","Use current version"))+"\n\t")]),t._v(" "),e("button",{on:{click:function(e){return t.$emit("resolve-use-server-version")}}},[t._v("\n\t\t"+t._s(t.t("text","Use the saved version"))+"\n\t")])])}),[],!1,null,"4a5d4c0f",null).exports},21993:(e,n,r)=>{"use strict";r.r(n),r.d(n,{default:()=>vo});var o,i=r(20144),a=r(95573),s=r.n(a),l=r(80351),c=r.n(l),d=r(69066),u=r(16560),A=r(45994),h=r(79954),p=r(79753),f=r(31728),m=r(32318),g=r(15961),v=r(20296),C=r.n(v),b=Symbol("wrapper:outline-state"),y=Symbol("wrapper:outline-actions"),x={inject:{$outlineState:{from:b,default:{visible:!1,enable:!1}}}},w={inject:{$outlineActions:{from:y,default:{toggle:function(){}}}}};function k(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _=navigator.userAgent.includes("Mac"),j={Mod:_?"Meta":"Control",Alt:"Alt",Control:"Control",Shift:"Shift"},P=(k(o={},j.Mod,_?t("text","Command"):t("text","Control")),k(o,j.Control,t("text","Ctrl")),k(o,j.Alt,t("text",_?"Option":"Alt")),k(o,j.Shift,t("text","Shift")),o);function E(t){return function(t){if(Array.isArray(t))return M(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return M(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var S=function(t,e){return n={"is-active":e},r="action-menu-".concat(t.key),o=!0,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n;var n,r,o},B=function(t,e){var n=e.keyChar,r=e.keyModifiers;return!t&&n?"(".concat(function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).map((function(t){return P[t]})).concat(t.toUpperCase()).join("+")}(n,r),")"):""},O=function(t,e){return t.action&&!t.action(e.can())},I=function(t,e){var n=t.isActive;if(!n)return!1;var r=Array.isArray(n)?n:[n];return e.isActive.apply(e,E(r))},D=function(t,e){var n=I(t,e);return{disabled:O(t,e),class:S(t,n),active:n}},T=r(13815),L=r(93379),N=r.n(L),R=r(7795),Z=r.n(R),G=r(90569),$=r.n(G),F=r(3565),U=r.n(F),z=r(19216),H=r.n(z),W=r(44589),q=r.n(W),Y=r(97646),V={};V.styleTagTransform=q(),V.setAttributes=U(),V.insert=$().bind(null,"head"),V.domAPI=Z(),V.insertStyleElement=H();N()(Y.Z,V);Y.Z&&Y.Z.locals&&Y.Z.locals;var K={directives:{Tooltip:g.u},mixins:[f.Cy,f.ww,T.Z,w,x],props:{actionEntry:{type:Object,required:!0}},data:function(){return{state:D(this.actionEntry,this.$editor)}},computed:{label:function(){var t=this.actionEntry.label;return"function"==typeof t?t(this):t},icon:function(){return this.actionEntry.icon},keyshortcuts:function(){return t=this.actionEntry,e=t.keyChar,(void 0===(n=t.keyModifiers)?[]:n).map((function(t){return j[t]})).concat(e).join("+");var t,e,n},tooltip:function(){return[this.label,B(this.$isMobile,this.actionEntry)].join(" ")}},mounted:function(){this.$_updateState=C()(this.updateState.bind(this),50),this.$editor.on("update",this.$_updateState),this.$editor.on("selectionUpdate",this.$_updateState)},beforeDestroy:function(){this.$editor.off("update",this.$_updateState),this.$editor.off("selectionUpdate",this.$_updateState)},methods:{updateState:function(){this.state=D(this.actionEntry,this.$editor)}}},Q=Symbol("menu::id"),J={inject:{$menuID:{from:Q,default:null}},computed:{menuIDSelector:function(){return"#".concat(this.$menuID)}}};const X={name:"EmojiPickerAction",components:{NcEmojiPicker:g.Xo,NcButton:g.P2},extends:K,mixins:[J],methods:{addEmoji:function(t){var e=t.id,n=t.native;this.actionEntry.action(this.$editor.chain(),{id:e,native:n}).focus().run()}}};var tt=r(51900);const et=(0,tt.Z)(X,(function(){var t=this,e=t._self._c;return e("NcEmojiPicker",{staticClass:"entry-action entry-action__emoji",attrs:{"data-text-action-entry":t.actionEntry.key,container:t.menuIDSelector},on:{"select-data":t.addEmoji}},[e("NcButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.actionEntry.label,expression:"actionEntry.label"}],staticClass:"entry-action__button",attrs:{role:"menu",title:t.actionEntry.label,"aria-label":t.actionEntry.label,"aria-haspopup":!0},scopedSlots:t._u([{key:"icon",fn:function(){return[e(t.icon,{tag:"component"})]},proxy:!0}])})],1)}),[],!1,null,null,null).exports;var nt=Symbol("state:uploading-state"),rt=Symbol("editor:action:attachment-prompt"),ot=Symbol("editor:action:upload-attachment"),it={inject:{$uploadingState:{from:nt,default:{isUploadingAttachments:!1}}}},at={inject:{$callAttachmentPrompt:{from:rt,default:function(){}}}},st={inject:{$callChooseLocalAttachment:{from:ot,default:function(){}}}};const lt={name:"ActionAttachmentUpload",components:{NcActions:g.O3,NcActionButton:g.Js,Loading:m.gb,Folder:m.gt,Upload:m.gq},extends:K,mixins:[f.fB,at,it,st,J],computed:{icon:function(){return this.isUploadingAttachments?m.gb:this.actionEntry.icon},isUploadingAttachments:function(){return this.$uploadingState.isUploadingAttachments}}};const ct=(0,tt.Z)(lt,(function(){var t=this,e=t._self._c;return e("NcActions",{staticClass:"entry-action entry-action__image-upload",attrs:{"data-text-action-entry":t.actionEntry.key,title:t.actionEntry.label,"aria-label":t.actionEntry.label,container:t.menuIDSelector,role:"menu","aria-haspopup":""},scopedSlots:t._u([{key:"icon",fn:function(){return[e(t.icon,{tag:"component",attrs:{title:t.actionEntry.label,"aria-label":t.actionEntry.label,"aria-haspopup":""}})]},proxy:!0}])},[t._v(" "),e("NcActionButton",{attrs:{"close-after-click":"",disabled:t.isUploadingAttachments,"data-text-action-entry":"".concat(t.actionEntry.key,"-upload")},on:{click:t.$callChooseLocalAttachment},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Upload")]},proxy:!0}])},[t._v("\n\t\t"+t._s(t.t("text","Upload from computer"))+"\n\t")]),t._v(" "),t.$isPublic?t._e():e("NcActionButton",{attrs:{"close-after-click":"",disabled:t.isUploadingAttachments,"data-text-action-entry":"".concat(t.actionEntry.key,"-insert")},on:{click:t.$callAttachmentPrompt},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Folder")]},proxy:!0}],null,!1,2750733237)},[t._v("\n\t\t"+t._s(t.t("text","Insert from Files"))+"\n\t")])],1)}),[],!1,null,null,null).exports;var dt=r(12945),ut=r.n(dt),At=r(45400),ht=r.n(At),pt=r(79570),ft=r.n(pt),mt=r(82880),gt=r(19958),vt=r(7166);function Ct(t){return function(t){if(Array.isArray(t))return bt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return bt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bt(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}const yt={name:"ActionInsertLink",components:{NcActions:ut(),NcActionButton:ht(),NcActionInput:ft(),Document:m.BB,Loading:m.gb,LinkOff:m.pR,Web:m.ph},extends:K,mixins:[f.a_,J],data:function(){return{href:null,isInputMode:!1,startPath:null}},computed:{activeClass:function(){return this.state.active?"is-active":""}},methods:{linkFile:function(){var e=this;null===this.startPath&&(this.startPath=this.$file.relativePath.split("/").slice(0,-1).join("/")),new mt.FilePicker(t("text","Select file or folder to link to"),!1,[],!0,mt.FilePickerType.Choose,!0,this.startPath).pick().then((function(t){OC.Files.getClient().getFileInfo(t).then((function(t,n){var r=(0,vt.Lz)(e.$file.relativePath,"".concat(n.path,"/").concat(n.name)).split("/").map(encodeURIComponent).join("/")+("dir"===n.type?"/":""),o="".concat(r,"?fileId=").concat(n.id);e.setLink(o,n.name),e.startPath=n.path+("dir"===n.type?"/".concat(n.name,"/"):"")}))}))},linkWebsite:function(t){if("submit"===(null==t?void 0:t.type)){var e=Ct(t.target.elements).filter((function(t){return"text"===(null==t?void 0:t.type)}))[0].value;return this.$refs.menu.closeMenu(),this.isInputMode=!1,this.href=null,this.setLink(e,e)}if((0,gt.zh)(this.$editor.state,"link")){var n=(0,gt.Jo)(this.$editor.state,"link");this.href=n.href}this.isInputMode=!0},setLink:function(t,e){var n;t&&![/^[a-zA-Z]+:/,/^\//,/\?fileId=/,/^\.\.?\//,/^[^.]*[/$]/,/^#/].find((function(e){return t.match(e)}))&&(t="https://"+t);var r=t.replaceAll(" ","%20"),o=this.$editor.chain();null!==(n=this.$editor.view.state)&&void 0!==n&&n.selection.empty?o.insertContent({type:"paragraph",content:[{type:"text",marks:[{type:"link",attrs:{href:r}}],text:e}]}):o.setLink({href:r}),o.focus().run()},removeLink:function(){this.$editor.chain().unsetLink().focus().run()}}},xt=yt;var wt=r(27295),kt={};kt.styleTagTransform=q(),kt.setAttributes=U(),kt.insert=$().bind(null,"head"),kt.domAPI=Z(),kt.insertStyleElement=H();N()(wt.Z,kt);wt.Z&&wt.Z.locals&&wt.Z.locals;const _t=(0,tt.Z)(xt,(function(){var t=this,e=t._self._c;return e("NcActions",{ref:"menu",staticClass:"entry-action entry-action__insert-link",class:t.activeClass,attrs:{"aria-haspopup":"","aria-label":t.actionEntry.label,container:t.menuIDSelector,"data-text-action-entry":t.actionEntry.key,title:t.actionEntry.label},scopedSlots:t._u([{key:"icon",fn:function(){return[e(t.icon,{tag:"component",attrs:{title:t.actionEntry.label,"aria-label":t.actionEntry.label,"aria-haspopup":""}})]},proxy:!0}])},[t._v(" "),t.state.active?e("NcActionButton",{attrs:{"close-after-click":"","data-text-action-entry":"".concat(t.actionEntry.key,"-remove")},on:{click:t.removeLink},scopedSlots:t._u([{key:"icon",fn:function(){return[e("LinkOff")]},proxy:!0}],null,!1,3589828876)},[t._v("\n\t\t"+t._s(t.t("text","Remove link"))+"\n\t")]):t._e(),t._v(" "),e("NcActionButton",{attrs:{"close-after-click":"","data-text-action-entry":"".concat(t.actionEntry.key,"-file")},on:{click:t.linkFile},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Document")]},proxy:!0}])},[t._v("\n\t\t"+t._s(t.t("text","Link to file or folder"))+"\n\t")]),t._v(" "),t.isInputMode?e("NcActionInput",{attrs:{type:"text",value:t.href,"data-text-action-entry":"".concat(t.actionEntry.key,"-input")},on:{submit:t.linkWebsite},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Web")]},proxy:!0}],null,!1,1844845715)},[t._v("\n\t\t"+t._s(t.t("text","Link to website"))+"\n\t")]):e("NcActionButton",{attrs:{"data-text-action-entry":"".concat(t.actionEntry.key,"-website")},on:{click:t.linkWebsite},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Web")]},proxy:!0}])},[t._v("\n\t\t"+t._s(t.state.active?t.t("text","Update link"):t.t("text","Link to website"))+"\n\t")])],1)}),[],!1,null,"0a1aa55a",null).exports;var jt=[{key:"outline",forceLabel:!0,icon:m.Cj,click:function(t){return t.$outlineActions.toggle()},label:function(e){return e.$outlineState.visible?t("text","Hide outline"):t("text","Show outline")}}];const Pt=[{key:"undo",label:t("text","Undo"),keyChar:"z",keyModifiers:[j.Mod],icon:m.WP,action:function(t){return t.undo()},priority:6},{key:"redo",label:t("text","Redo"),keyChar:"y",keyModifiers:[j.Mod],icon:m.Jw,action:function(t){return t.redo()},priority:12},{key:"bold",label:t("text","Bold"),keyChar:"b",keyModifiers:[j.Mod],icon:m.VK,isActive:"strong",action:function(t){return t.toggleBold()},priority:7},{key:"italic",label:t("text","Italic"),keyChar:"i",keyModifiers:[j.Mod],icon:m.mV,isActive:"em",action:function(t){return t.toggleItalic()},priority:8},{key:"underline",label:t("text","Underline"),keyChar:"u",keyModifiers:[j.Mod],icon:m.Bz,isActive:"underline",action:function(t){return t.toggleUnderline()},priority:15},{key:"strikethrough",label:t("text","Strikethrough"),keyChar:"x",keyModifiers:[j.Mod,j.Shift],icon:m.Lo,isActive:"strike",action:function(t){return t.toggleStrike()},priority:16},{key:"headings",label:t("text","Headings"),keyChar:"1…6",keyModifiers:[j.Mod,j.Shift],icon:m.Lz,isActive:"heading",children:[{key:"headings-h1",label:t("text","Heading 1"),icon:m.Lz,isActive:["heading",{level:1}],action:function(t){return t.toggleHeading({level:1})}},{key:"headings-h2",label:t("text","Heading 2"),icon:m.DB,isActive:["heading",{level:2}],action:function(t){return t.toggleHeading({level:2})}},{key:"headings-h3",label:t("text","Heading 3"),icon:m.XD,isActive:["heading",{level:3}],action:function(t){return t.toggleHeading({level:3})}},{key:"headings-h4",label:t("text","Heading 4"),isActive:["heading",{level:4}],icon:m.fy,action:function(t){return t.toggleHeading({level:4})}},{key:"headings-h5",label:t("text","Heading 5"),isActive:["heading",{level:5}],icon:m.Ze,action:function(t){return t.toggleHeading({level:5})}},{key:"headings-h6",label:t("text","Heading 6"),isActive:["heading",{level:6}],icon:m.J4,action:function(t){return t.toggleHeading({level:6})}},{key:"outline",icon:m.Cj,click:function(t){return t.$outlineActions.toggle()},visible:function(t){return t.$outlineState.enable},label:function(e){return e.$outlineState.visible?t("text","Hide outline"):t("text","Show outline")}}],priority:1},{key:"unordered-list",label:t("text","Unordered list"),keyChar:"8",keyModifiers:[j.Mod,j.Shift],isActive:"bulletList",icon:m.Cj,action:function(t){return t.toggleBulletList()},priority:9},{key:"ordered-list",label:t("text","Ordered list"),keyChar:"7",keyModifiers:[j.Mod,j.Shift],isActive:"orderedList",icon:m.mH,action:function(t){return t.toggleOrderedList()},priority:10},{key:"task-list",label:t("text","To-Do list"),keyChar:"9",keyModifiers:[j.Mod,j.Shift],isActive:"taskList",icon:m.Fv,action:function(t){return t.toggleTaskList()},priority:11},{key:"insert-link",label:t("text","Insert link"),isActive:"link",icon:m.xP,component:_t,priority:2},{key:"blockquote",label:t("text","Blockquote"),keyChar:"b",keyModifiers:[j.Mod,j.Shift],isActive:"blockquote",icon:m.UX,action:function(t){return t.toggleBlockquote()},priority:13},{key:"callouts",label:t("text","Callouts"),visible:!1,icon:m.kI,isActive:"callout",children:[{key:"callout-info",label:t("text","Info"),isActive:["callout",{type:"info"}],icon:m.kI,action:function(t){return t.toggleCallout({type:"info"})}},{key:"callout-success",label:t("text","Success"),isActive:["callout",{type:"success"}],icon:m.Ho,action:function(t){return t.toggleCallout({type:"success"})}},{key:"callout-warn",label:t("text","Warning"),isActive:["callout",{type:"warn"}],icon:m.uU,action:function(t){return t.toggleCallout({type:"warn"})}},{key:"callout-error",label:t("text","Danger"),isActive:["callout",{type:"error"}],icon:m.b0,action:function(t){return t.toggleCallout({type:"error"})}}],priority:3},{key:"code-block",label:t("text","Code block"),keyChar:"c",keyModifiers:[j.Mod,j.Alt],isActive:"codeBlock",icon:m.Nk,action:function(t){return t.toggleCodeBlock()},priority:14},{key:"table",label:t("text","Table"),isActive:"table",icon:m.iA,action:function(t){return t.insertTable()},priority:17},{key:"emoji-picker",label:t("text","Insert emoji"),icon:m.tk,component:et,action:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.emoji(e)},priority:5},{key:"insert-attachment",label:t("text","Insert attachment"),icon:m.rU,component:ct,priority:4}];var Et=["class"];function Mt(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function St(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Bt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?St(Object(n),!0).forEach((function(e){Ot(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):St(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ot(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const It={name:"ActionSingle",extends:K,props:{isItem:{type:Boolean,default:!1}},computed:{component:function(){return this.isItem?g.Js:g.P2},bindState:function(){var t=this.keyshortcuts,e=Bt(Bt({},this.state),{},{ariaLabel:this.label});return e.class=Bt(Bt({},e.class),{},{"entry-action-item":this.isItem}),t&&(e["aria-keyshortcuts"]=t),this.isItem&&(e.closeAfterClick=!0),e}},methods:{runAction:function(){var t,e=this,n=this.actionEntry;n.click?n.click(this):null===(t=n.action(this.$editor.chain().focus()))||void 0===t||t.run();this.$nextTick((function(){e.$emit("trigged",Bt({},n))}))}},render:function(t){var e=this.$listeners,n=this.actionEntry,r=this.bindState,o=this.component,i=this.icon,a=this.isItem,s=this.runAction,l=this.tooltip,c=this.label,d=r.class,u=Mt(r,Et),A=a?[]:[{name:"tooltip",value:l}],h=[t(i,{slot:"icon"})],p=a?void 0:c;return(a||n.forceLabel)&&h.push(c),t(o,{directives:A,staticClass:"entry-single-action entry-action",class:d,attrs:Bt({title:p,type:"tertiary",role:"menuitem","data-text-action-entry":n.key},u),on:Bt(Bt({},e),{},{click:s})},h)}},Dt=It;const Tt=(0,tt.Z)(Dt,undefined,undefined,!1,null,null,null).exports;const Lt={name:"ActionList",components:{NcActions:g.O3,ActionSingle:Tt},extends:K,mixins:[T.Z,x,J],data:function(){return{visible:!1}},computed:{currentChild:function(){var t=this.state,e=this.$editor,n=this.actionEntry.children;return t.active?n.find((function(t){return I(t,e)})):null},icon:function(){return this.currentChild?this.currentChild.icon:this.actionEntry.icon},iconKey:function(){return"".concat(this.actionEntry.key,"/").concat(this.activeKey)},activeKey:function(){var t;return null===(t=this.currentChild)||void 0===t?void 0:t.key},children:function(){var t=this;return this.actionEntry.children.filter((function(e){var n=e.visible;return void 0===n||("function"==typeof n?n(t):n)}))}},methods:{onOpenChange:function(t){this.visible=t},runAction:function(){},onTrigger:function(t){null!=t&&t.click||(this.$editor.chain().focus().run(),this.$emit("trigged",t))}}},Nt=Lt;const Rt=(0,tt.Z)(Nt,(function(){var t=this,e=t._self._c;return e("NcActions",t._b({directives:[{name:"tooltip",rawName:"v-tooltip",value:t.tooltip,expression:"tooltip"}],staticClass:"entry-list-action entry-action",attrs:{role:"menu",container:t.menuIDSelector,"aria-label":t.actionEntry.label,"force-menu":!0,title:t.actionEntry.label,"data-text-action-entry":t.actionEntry.key,"data-text-action-active":t.activeKey},on:{"update:open":t.onOpenChange},scopedSlots:t._u([{key:"icon",fn:function(){return[e(t.icon,{key:t.iconKey,tag:"component"})]},proxy:!0}])},"NcActions",t.state,!1),[t._v(" "),t._l(t.children,(function(n){return e("ActionSingle",t._g({key:"child-".concat(n.key),attrs:{"is-item":"","action-entry":n},on:{trigged:t.onTrigger}},t.$listeners))})),t._v(" "),t._t("lastAction",null,null,{visible:t.visible})],2)}),[],!1,null,null,null).exports,Zt={name:"ActionEntry",functional:!0,render:function(t,e){var n=e.props.actionEntry,r=e.data,o=e.props,i=e.listeners,a={data:r,key:r.key,props:o,on:i};return n.component?t(n.component,a):n.children?t(Rt,a):t(Tt,a)}},Gt=(0,i.defineComponent)({name:"ReadonlyBar",components:{ActionEntry:Zt},setup:function(){return{visibleEntries:jt}}});var $t=r(96614),Ft={};Ft.styleTagTransform=q(),Ft.setAttributes=U(),Ft.insert=$().bind(null,"head"),Ft.domAPI=Z(),Ft.insertStyleElement=H();N()($t.Z,Ft);$t.Z&&$t.Z.locals&&$t.Z.locals;const Ut=(0,tt.Z)(Gt,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"text-readonly-bar",attrs:{"data-text-el":"readonly-bar"}},[e("div",{ref:"menubar",staticClass:"text-readonly-bar__entries",attrs:{role:"group","aria-label":t.t("text","Editor actions")}},t._l(t.visibleEntries,(function(n){return e("ActionEntry",t._b({key:"text-action--".concat(n.key)},"ActionEntry",{actionEntry:n},!1))})),1)])}),[],!1,null,"59dd87ec",null).exports;var zt=r(52029),Ht=r(26937),Wt=r(59391),qt=r(17712);function Yt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Vt=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._authority=e,this.fetchInterval=300,this.retryTime=500,this.lock=!1,this.fetchRetryCounter=0}var e,n,r;return e=t,n=[{key:"connect",value:function(){this.initialLoadingFinished=!1,this.fetcher=setInterval(this._fetchSteps.bind(this),50),document.addEventListener("visibilitychange",this.visibilitychange.bind(this))}},{key:"_isPublic",value:function(){return!!this._authority.options.shareToken}},{key:"forceSave",value:function(){this._forcedSave=!0,this.fetchSteps()}},{key:"save",value:function(){this._manualSave=!0,this.fetchSteps()}},{key:"fetchSteps",value:function(){this._fetchSteps()}},{key:"_fetchSteps",value:function(){var t;!this.lock&&this.fetcher&&(this.lock=!0,(this._forcedSave||this._manualSave||!(0,d._1)(this._authority.state)&&this._authority._getVersion()!==this._authority.document.lastSavedVersion)&&(t=this._authority._getContent()),Ht.Z.post((0,qt.F)("session/sync",this._isPublic()),{documentId:this._authority.document.id,sessionId:this._authority.session.id,sessionToken:this._authority.session.token,version:this._authority._getVersion(),autosaveContent:t,force:!!this._forcedSave,manualSave:!!this._manualSave,token:this._authority.options.shareToken,filePath:this._authority.options.filePath}).then(this._handleResponse.bind(this),this._handleError.bind(this)),this._manualSave=!1,this._forcedSave=!1)}},{key:"_handleResponse",value:function(t){if(this.fetchRetryCounter=0,this._authority.document.lastSavedVersion<t.data.document.lastSavedVersion&&(zt.k.debug("Saved document",{document:t.data.document}),this._authority.emit("save",{document:t.data.document,sessions:t.data.sessions})),this._authority.emit("change",{document:t.data.document,sessions:t.data.sessions}),this._authority.document=t.data.document,this._authority.sessions=t.data.sessions,0===t.data.steps.length){if(this.initialLoadingFinished||(this.initialLoadingFinished=!0),this._authority.checkIdle())return;return this.lock=!1,t.data.sessions.filter((function(t){return t.lastContact>Date.now()/1e3-9e4})).length<2?this.maximumRefetchTimer():this.increaseRefetchTimer(),this._authority.emit("stateChange",{dirty:!1}),void this._authority.emit("stateChange",{initialLoading:!0})}this._authority._receiveSteps(t.data),this.lock=!1,this._forcedSave=!1,this.initialLoadingFinished&&this.resetRefetchTimer()}},{key:"_handleError",value:function(t){this.lock=!1,t.response&&"ECONNABORTED"!==t.code?409===t.response.status&&t.response.data.document.currentVersion===this._authority.document.currentVersion?(zt.k.error("Conflict during file save, please resolve"),this._authority.emit("error",{type:ne.SAVE_COLLISSION,data:{outsideChange:t.response.data.outsideChange}}),this.disconnect()):403===t.response.status||404===t.response.status?(this._authority.emit("error",{type:ne.SOURCE_NOT_FOUND,data:{}}),this.disconnect()):503===t.response.status?(this.increaseRefetchTimer(),this._authority.emit("error",{type:ne.CONNECTION_FAILED,data:{retry:!1}}),zt.k.error("Failed to fetch steps due to unavailable service",{error:t})):(this.disconnect(),this._authority.emit("error",{type:ne.CONNECTION_FAILED,data:{retry:!1}}),zt.k.error("Failed to fetch steps due to other reason",{error:t})):this.fetchRetryCounter++>=5?(zt.k.error("[PollingBackend:fetchSteps] Network error when fetching steps, emitting CONNECTION_FAILED"),this._authority.emit("error",{type:ne.CONNECTION_FAILED,data:{retry:!1}})):zt.k.error("[PollingBackend:fetchSteps] Network error when fetching steps, retry ".concat(this.fetchRetryCounter))}},{key:"sendSteps",value:function(t){var e=this;if(this._authority.emit("stateChange",{dirty:!0}),this.lock)setTimeout((function(){e._authority.sendSteps()}),100);else{this.lock=!0;var n="function"==typeof t?t():t,r=n.steps;Ht.Z.post((0,qt.F)("session/push",!!this._authority.options.shareToken),{documentId:this._authority.document.id,sessionId:this._authority.session.id,sessionToken:this._authority.session.token,steps:r.map((function(t){return t.toJSON?t.toJSON():t}))||[],version:n.version,token:this._authority.options.shareToken,filePath:this._authority.options.filePath}).then((function(t){e.carefulRetryReset(),e.lock=!1,e.fetchSteps()})).catch((function(t){var n=t.response,r=t.code;if(zt.k.error("failed to apply steps due to collission, retrying"),e.lock=!1,n&&"ECONNABORTED"!==r){var o,i=n.status,a=n.data;403===i&&(a.document||zt.k.error("failed to write to document - not allowed"),(null===(o=a.document)||void 0===o?void 0:o.currentVersion)===e._authority.document.currentVersion&&(e._authority.emit("error",{type:ne.PUSH_FAILURE,data:{}}),OC.Notification.showTemporary("Changes could not be sent yet"))),e.fetchSteps(),e.carefulRetry()}else e._authority.emit("error",{type:ne.CONNECTION_FAILED,data:{}})}))}}},{key:"disconnect",value:function(){clearInterval(this.fetcher),this.fetcher=0,document.removeEventListener("visibilitychange",this.visibilitychange.bind(this))}},{key:"resetRefetchTimer",value:function(){0!==this.fetcher&&(this.fetchInterval=300,clearInterval(this.fetcher),this.fetcher=setInterval(this._fetchSteps.bind(this),this.fetchInterval))}},{key:"increaseRefetchTimer",value:function(){0!==this.fetcher&&(this.fetchInterval=Math.min(2*this.fetchInterval,5e3),clearInterval(this.fetcher),this.fetcher=setInterval(this._fetchSteps.bind(this),this.fetchInterval))}},{key:"maximumRefetchTimer",value:function(){0!==this.fetcher&&(this.fetchInterval=5e3,clearInterval(this.fetcher),this.fetcher=setInterval(this._fetchSteps.bind(this),this.fetchInterval))}},{key:"visibilitychange",value:function(){0!==this.fetcher&&("hidden"===document.visibilityState?(this.fetchInterval=6e4,clearInterval(this.fetcher),this.fetcher=setInterval(this._fetchSteps.bind(this),this.fetchInterval)):this.resetRefetchTimer())}},{key:"carefulRetry",value:function(){var t=this.retryTime?Math.min(2*this.retryTime,1e4):500;t>5e3&&this.retryTime<5e3&&(OC.Notification.showTemporary("Changes could not be sent yet"),this._authority.emit("error",{type:ne.PUSH_FAILURE,data:{}})),this.retryTime=t}},{key:"carefulRetryReset",value:function(){this.retryTime=500}}],n&&Yt(e.prototype,n),r&&Yt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();const Kt=Vt;function Qt(t){return Qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qt(t)}function Jt(){Jt=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof u?e:u,i=Object.create(o.prototype),a=new w(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return _()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),i}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var d={};function u(){}function A(){}function h(){}var p={};s(p,o,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(k([])));m&&m!==e&&n.call(m,o)&&(p=m);var g=h.prototype=u.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,a,s){var l=c(t[o],t,i);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==Qt(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){d.value=t,a(d)}),(function(t){return r("throw",t,a,s)}))}s(l.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(y,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:_}}function _(){return{value:void 0,done:!0}}return A.prototype=h,s(g,"constructor",h),s(h,"constructor",A),A.displayName=s(h,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===A||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,s(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},v(C.prototype),s(C.prototype,i,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(g),s(g,a,"Generator"),s(g,o,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=k,w.prototype={constructor:w,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function Xt(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function te(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var ee={shareToken:null,forceRecreate:!1,serialize:function(t){return t}},ne={SAVE_COLLISSION:0,PUSH_FAILURE:1,LOAD_ERROR:2,CONNECTION_FAILED:3,SOURCE_NOT_FOUND:4},re=function(){function t(e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._bus=(0,Wt.Z)(),this.backend=new Kt(this),this.options=Object.assign({},ee,e),this.document=null,this.session=null,this.sessions=[],this.steps=[],this.stepClientIDs=[],this.lastStepPush=Date.now(),this.lock=null,this}var e,n,r,o,i;return e=t,n=[{key:"open",value:(o=Jt().mark((function t(e){var n,r,o,i,a;return Jt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.fileId,r=e.filePath,o=e.initialSession,t.t0=o,t.t0){t.next=6;break}return t.next=5,this._openDocument({fileId:n,filePath:r});case 5:t.t0=t.sent;case 6:if(i=t.t0,this.document=i.document,this.document.readOnly=i.readOnly,this.session=i.session,this.lock=i.lock,this.emit("opened",{document:this.document,session:this.session}),t.t1=i.content,t.t1){t.next=17;break}return t.next=16,this._fetchDocument();case 16:t.t1=t.sent;case 17:a=t.t1,this.emit("loaded",{document:this.document,session:this.session,documentSource:""+a});case 19:case"end":return t.stop()}}),t,this)})),i=function(){var t=this,e=arguments;return new Promise((function(n,r){var i=o.apply(t,e);function a(t){Xt(i,n,r,a,s,"next",t)}function s(t){Xt(i,n,r,a,s,"throw",t)}a(void 0)}))},function(t){return i.apply(this,arguments)})},{key:"startSync",value:function(){this.backend.connect()}},{key:"_openDocument",value:function(t){var e=this,n=t.fileId,r=t.filePath;return Ht.Z.put((0,qt.F)("session/create",!!this.options.shareToken),{fileId:n,filePath:r,token:this.options.shareToken,guestName:this.options.guestName,forceRecreate:this.options.forceRecreate}).then((function(t){return t.data}),(function(t){throw t.response&&"ECONNABORTED"!==t.code?e.emit("error",{type:ne.LOAD_ERROR,data:t.response.status}):e.emit("error",{type:ne.CONNECTION_FAILED,data:{}}),t}))}},{key:"_fetchDocument",value:function(){return Ht.Z.post((0,qt.F)("session/fetch",!!this.options.shareToken),{documentId:this.document.id,sessionId:this.session.id,sessionToken:this.session.token,token:this.options.shareToken},{transformResponse:[function(t){return t}]}).then((function(t){return t.data}))}},{key:"updateSession",value:function(t){var e=this;if(this.isPublic())return Ht.Z.post((0,qt.F)("session",!!this.options.shareToken),{documentId:this.document.id,sessionId:this.session.id,sessionToken:this.session.token,token:this.options.shareToken,guestName:t}).then((function(t){var n=t.data;return e.session=n,n})).catch((function(t){return zt.k.error("Failed to update the session",{error:t}),Promise.reject(t)}))}},{key:"sendSteps",value:function(t){var e=t||(0,d._1)(this.state);if(e)return this.backend.sendSteps(e)}},{key:"stepsSince",value:function(t){return{steps:this.steps.slice(t),clientIDs:this.stepClientIDs.slice(t)}}},{key:"_receiveSteps",value:function(t){for(var e=this,n=t.steps,r=t.document,o=[],i=function(t){var r=n[t].data;if(!Array.isArray(r))return zt.k.error("Invalid step data, skipping step",{step:n[t]}),"continue";r.forEach((function(r){e.steps.push(r),o.push({step:r,clientID:n[t].sessionId})}))},a=0;a<n.length;a++)i(a);this.lastStepPush=Date.now(),this.emit("sync",{steps:o,document:r}),zt.k.debug("receivedSteps",{newVersion:this._getVersion()})}},{key:"checkIdle",value:function(){(Date.now()-this.lastStepPush)/1e3/60>30&&(zt.k.debug("[SyncService] Document is idle for ".concat(this.IDLE_TIMEOUT," minutes, suspending connection")),this.emit("idle"))}},{key:"_getVersion",value:function(){return this.state?(0,d.bo)(this.state):0}},{key:"_getDocument",value:function(){if(this.state)return this.state.doc}},{key:"_getContent",value:function(){return this.options.serialize(this._getDocument())}},{key:"save",value:function(){this.backend.save&&this.backend.save()}},{key:"forceSave",value:function(){this.backend.forceSave&&this.backend.forceSave()}},{key:"close",value:function(){var t=this,e=!1;return new Promise((function(n,r){t.on("save",(function(){t._close().then((function(){e=!0,n()})).catch((function(){return n()}))})),setTimeout((function(){e||t._close().then((function(){n()})).catch((function(){return n()}))}),2e3),t.save()}))}},{key:"_close",value:function(){return null===this.document||null===this.session?Promise.resolve():(this.backend.disconnect(),Ht.Z.post((0,qt.F)("session/close",!!this.options.shareToken),{documentId:this.document.id,sessionId:this.session.id,sessionToken:this.session.token,token:this.options.shareToken}))}},{key:"uploadAttachment",value:function(t){var e=new FormData;e.append("file",t);var n=(0,qt.F)("attachment/upload")+"?documentId="+encodeURIComponent(this.document.id)+"&sessionId="+encodeURIComponent(this.session.id)+"&sessionToken="+encodeURIComponent(this.session.token)+"&shareToken="+encodeURIComponent(this.options.shareToken||"");return Ht.Z.post(n,e,{headers:{"Content-Type":"multipart/form-data"}})}},{key:"insertAttachmentFile",value:function(t){var e={documentId:this.document.id,sessionId:this.session.id,sessionToken:this.session.token,filePath:t},n=(0,qt.F)("attachment/filepath");return Ht.Z.post(n,e)}},{key:"on",value:function(t,e){return this._bus.on(t,e),this}},{key:"off",value:function(t,e){return this._bus.off(t,e),this}},{key:"emit",value:function(t,e){this._bus.emit(t,e)}},{key:"isPublic",value:function(){return!!this.options.shareToken}}],n&&te(e.prototype,n),r&&te(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();var oe=r(57691),ie=r.n(oe);function ae(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function se(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ae(Object(n),!0).forEach((function(e){de(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function le(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ce(t,e){Ae(t,e),e.add(t)}function de(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ue(t,e,n){Ae(t,e),e.set(t,n)}function Ae(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function he(t,e,n){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return n}function pe(t,e){return function(t,e){if(e.get)return e.get.call(t);return e.value}(t,me(t,e,"get"))}function fe(t,e,n){return function(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}(t,me(t,e,"set"),n),n}function me(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}var ge=new WeakMap,ve=new WeakMap,Ce=new WeakMap,be=new WeakMap,ye=new WeakMap,xe=new WeakSet,we=new WeakSet,ke=new WeakSet,_e=new WeakSet,je=new WeakSet,Pe=new WeakSet,Ee=new WeakSet,Me=function(){function t(e){var n=e.session,r=e.user,o=e.shareToken,i=e.currentDirectory,a=e.fileId;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),ce(this,Ee),ce(this,Pe),ce(this,je),ce(this,_e),ce(this,ke),ce(this,we),ce(this,xe),ue(this,ge,{writable:!0,value:void 0}),ue(this,ve,{writable:!0,value:void 0}),ue(this,Ce,{writable:!0,value:void 0}),ue(this,be,{writable:!0,value:void 0}),ue(this,ye,{writable:!0,value:void 0}),de(this,"ATTACHMENT_TYPE_IMAGE","image"),de(this,"ATTACHMENT_TYPE_MEDIA","media"),fe(this,ge,n),fe(this,ve,r),fe(this,Ce,o),fe(this,be,i),a||(a=null==n?void 0:n.documentId),fe(this,ye,".attachments.".concat(a))}var e,n,r;return e=t,n=[{key:"resolve",value:function(t){var e;if(pe(this,ge)&&t.startsWith("text://")){var n=Ne(t,"imageFileName");return[{type:this.ATTACHMENT_TYPE_IMAGE,url:he(this,xe,Se).call(this,n)}]}if(pe(this,ge)&&t.startsWith(".attachments.".concat(null===(e=pe(this,ge))||void 0===e?void 0:e.documentId,"/"))){var r,o=decodeURIComponent(t.replace(".attachments.".concat(null===(r=pe(this,ge))||void 0===r?void 0:r.documentId,"/"),"").split("?")[0]);return[{type:this.ATTACHMENT_TYPE_IMAGE,url:he(this,xe,Se).call(this,o)},{type:this.ATTACHMENT_TYPE_MEDIA,url:he(this,we,Be).call(this,o),name:o}]}if(function(t){return t.startsWith("http://")||t.startsWith("https://")||t.startsWith("data:")||t.match(/^(\/index.php)?\/core\/preview/)||t.match(/^(\/index.php)?\/apps\/files_sharing\/publicpreview\//)}(t))return[{type:this.ATTACHMENT_TYPE_IMAGE,url:t}];if(function(t){return"true"===Ne(t,"hasPreview")}(t))return[{type:this.ATTACHMENT_TYPE_IMAGE,url:he(this,_e,Ie).call(this,t)}];if(t.match(/^\.attachments\.\d+\//)){var i=he(this,Pe,Te).call(this,t).replace(/\.attachments\.\d+\//,"");return[{type:this.ATTACHMENT_TYPE_IMAGE,url:he(this,je,De).call(this,t)},{type:this.ATTACHMENT_TYPE_IMAGE,url:he(this,xe,Se).call(this,i)},{type:this.ATTACHMENT_TYPE_MEDIA,url:he(this,we,Be).call(this,i),name:i}]}return[{type:this.ATTACHMENT_TYPE_IMAGE,url:he(this,je,De).call(this,t)}]}},{key:"getMediaMetadataUrl",value:function(t){return pe(this,ve)||!pe(this,Ce)?(0,p.generateUrl)("/apps/text/mediaMetadata?documentId={documentId}&sessionId={sessionId}&sessionToken={sessionToken}&mediaFileName={mediaFileName}",se(se({},he(this,ke,Oe).call(this)),{},{mediaFileName:t})):(0,p.generateUrl)("/apps/text/mediaMetadata?documentId={documentId}&sessionId={sessionId}&sessionToken={sessionToken}&mediaFileName={mediaFileName}&shareToken={shareToken}",se(se({},he(this,ke,Oe).call(this)),{},{mediaFileName:t,shareToken:pe(this,Ce)}))}}],n&&le(e.prototype,n),r&&le(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Se(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return pe(this,ge)?pe(this,ve)||!pe(this,Ce)?(0,p.generateUrl)("/apps/text/image?documentId={documentId}&sessionId={sessionId}&sessionToken={sessionToken}&imageFileName={imageFileName}&preferRawImage={preferRawImage}",se(se({},he(this,ke,Oe).call(this)),{},{imageFileName:t,preferRawImage:e?1:0})):(0,p.generateUrl)("/apps/text/image?documentId={documentId}&sessionId={sessionId}&sessionToken={sessionToken}&imageFileName={imageFileName}&shareToken={shareToken}&preferRawImage={preferRawImage}",se(se({},he(this,ke,Oe).call(this)),{},{imageFileName:t,shareToken:pe(this,Ce),preferRawImage:e?1:0})):he(this,je,De).call(this,"".concat(pe(this,ye),"/").concat(t))}function Be(t){return pe(this,ve)||!pe(this,Ce)?(0,p.generateUrl)("/apps/text/mediaPreview?documentId={documentId}&sessionId={sessionId}&sessionToken={sessionToken}&mediaFileName={mediaFileName}",se(se({},he(this,ke,Oe).call(this)),{},{mediaFileName:t})):(0,p.generateUrl)("/apps/text/mediaPreview?documentId={documentId}&sessionId={sessionId}&sessionToken={sessionToken}&mediaFileName={mediaFileName}&shareToken={shareToken}",se(se({},he(this,ke,Oe).call(this)),{},{mediaFileName:t,shareToken:pe(this,Ce)}))}function Oe(){return pe(this,ge)?{documentId:pe(this,ge).documentId,sessionId:pe(this,ge).id,sessionToken:pe(this,ge).token}:{}}function Ie(t){var e=Ne(t,"fileId"),n=he(this,Ee,Le).call(this,t),r="file=".concat(encodeURIComponent(n))+"&x=1024&y=1024&a=true";return pe(this,ve)&&e?(0,p.generateUrl)("/core/preview?fileId=".concat(e,"&").concat(r)):pe(this,ve)?(0,p.generateUrl)("/core/preview.png?".concat(r)):pe(this,Ce)?(0,p.generateUrl)("/apps/files_sharing/publicpreview/".concat(pe(this,Ce),"?").concat(r)):(zt.k.error("No way to authenticate image retrival - need to be logged in or provide a token"),t)}function De(t){if(pe(this,ve)){var e=pe(this,ve).uid,n=encodeURI(he(this,Ee,Le).call(this,t));return(0,p.generateRemoteUrl)("dav/files/".concat(e).concat(n))}var r=he(this,Ee,Le).call(this,t).split("/"),o=r.pop(),i=r.join("/");return(0,p.generateUrl)("/s/{token}/download?path={dirname}&files={basename}",{token:pe(this,Ce),basename:o,dirname:i})}function Te(t){return t.startsWith("text://")?[pe(this,ye),Ne(t,"imageFileName")].join("/"):decodeURI(t.split("?")[0])}function Le(t){var e=[pe(this,be),he(this,Pe,Te).call(this,t)].join("/");return ie()(e)}function Ne(t,e){var n=t.split("?")[1];if(void 0!==n){var r=n.split(/[&#]/);if(void 0!==r)for(var o=0;o<r.length;o++){var i=r[o].split("=");if(decodeURIComponent(i[0])===e)return decodeURIComponent(i[1])}}}var Re={py:"python",gyp:"python",wsgi:"python",htm:"html",xhtml:"html",erl:"erlang",jsp:"java",pl:"perl",rss:"xml",atom:"xml",xsl:"xml",plist:"xml",rb:"ruby",builder:"ruby",gemspec:"ruby",podspec:"ruby",thor:"ruby",diff:"patch",hs:"haskell",icl:"haskell",php3:"php",php4:"php",php5:"php",php6:"php",sh:"bash",zsh:"bash",st:"smalltalk",as:"actionscript",apacheconf:"apache",osacript:"applescript",b:"brainfuck",bf:"brainfuck",clj:"clojure","cmake.in":"cmake",coffee:"coffeescript",cson:"coffescript",iced:"coffescript",c:"cpp",h:"cpp","c++":"cpp","h++":"cpp",hh:"cpp",jinja:"django",bat:"dos",cmd:"dos",fs:"fsharp",hbs:"handlebars","html.hbs":"handlebars","html.handlebars":"handlebars",sublime_metrics:"json",sublime_session:"json","sublime-keymap":"json","sublime-mousemap":"json","sublime-project":"json","sublime-settings":"json","sublime-workspace":"json",js:"javascript",mk:"makefile",mak:"makefile",md:"markdown",mkdown:"markdown",mkd:"markdown",nginxconf:"nginx",m:"objectivec",mm:"objectivec",ml:"ocaml",rs:"rust",sci:"scilab",txt:"plaintext",vb:"vbnet",vbs:"vbscript"};var Ze=r(52722),Ge=r(62797),$e=r(2376);function Fe(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ue(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ue(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ue(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ze(t){var e=t.types,n=t.node;return Array.isArray(e)&&e.includes(n.type)||n.type===e}var He=gt.hj.create({name:"trailingNode",addOptions:function(){return{node:"paragraph",notAfter:["paragraph"]}},addProseMirrorPlugins:function(){var t=this,e=new $e.H$(this.name),n=Object.entries(this.editor.schema.nodes).map((function(t){return Fe(t,2)[1]})).filter((function(e){return t.options.notAfter.includes(e.name)}));return[new $e.Sy({key:e,appendTransaction:function(n,r,o){var i=o.doc,a=o.tr,s=o.schema,l=e.getState(o),c=i.content.size,d=s.nodes[t.options.node];if(l)return a.insert(c,d.create())},state:{init:function(t,e){return!ze({node:e.tr.doc.lastChild,types:n})},apply:function(t,e){return t.docChanged?!ze({node:t.doc.lastChild,types:n}):e}}})]}});const We=He;var qe=r(9944);const Ye={name:"EmojiList",props:{items:{type:Array,required:!0},command:{type:Function,required:!0}},data:function(){return{selectedIndex:0}},computed:{hasResults:function(){return this.items.length>0},itemHeight:function(){return this.$el.scrollHeight/this.items.length},itemInsideScrollView:function(){return this.selectedIndex*this.itemHeight>=this.$el.scrollTop&&(this.selectedIndex+1)*this.itemHeight<=this.$el.scrollTop+this.$el.clientHeight}},watch:{items:function(){this.selectedIndex=0,this.$el.scrollTop=0}},methods:{t:qe.translate,onKeyDown:function(t){var e=t.event;return!(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)&&("ArrowUp"===e.key?(this.selectedIndex=(this.selectedIndex+this.items.length-1)%this.items.length,this.itemInsideScrollView||(this.$el.scrollTop=this.selectedIndex*this.itemHeight),!0):"ArrowDown"===e.key?(this.selectedIndex=(this.selectedIndex+1)%this.items.length,this.itemInsideScrollView||(this.$el.scrollTop=(this.selectedIndex+1)*this.itemHeight-this.$el.clientHeight),!0):("Enter"===e.key||"Tab"===e.key)&&(this.selectItem(this.selectedIndex),!0))},selectItem:function(t){var e=this.items[t];e&&(this.command(e),(0,g.Ry)(e))}}};var Ve=r(85885),Ke={};Ke.styleTagTransform=q(),Ke.setAttributes=U(),Ke.insert=$().bind(null,"head"),Ke.domAPI=Z(),Ke.insertStyleElement=H();N()(Ve.Z,Ke);Ve.Z&&Ve.Z.locals&&Ve.Z.locals;const Qe={name:"EmojiListWrapper",components:{EmojiList:(0,tt.Z)(Ye,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"emoji-list"},[t.hasResults?t._l(t.items,(function(n,r){return e("div",{key:r,staticClass:"emoji-list__item",class:{"is-selected":r===t.selectedIndex},on:{click:function(e){return t.selectItem(r)}}},[e("span",{staticClass:"emoji-list__item__emoji"},[t._v("\n\t\t\t\t"+t._s(n.native)+"\n\t\t\t")]),t._v("\n\t\t\t:"+t._s(n.short_name)+"\n\t\t")])})):e("div",{staticClass:"emoji-list__item is-empty"},[t._v("\n\t\t"+t._s(t.t("text","No emoji found"))+"\n\t")])],2)}),[],!1,null,"7a04fd10",null).exports},props:{items:{type:Array,required:!0},command:{type:Function,required:!0}},methods:{onKeyDown:function(t){var e,n=t.event;return null===(e=this.$refs.emojiList)||void 0===e?void 0:e.onKeyDown({event:n})}}};const Je=(0,tt.Z)(Qe,(function(){var t=this;return(0,t._self._c)("EmojiList",{ref:"emojiList",attrs:{items:t.items,command:t.command}})}),[],!1,null,null,null).exports;var Xe=r(30865),tn=r(79007),en=r(17209),nn=r(79307),rn=r(89044),on=r(70650),an=r(7049);const sn={name:"TableView",components:{NcActionButton:g.Js,NcActions:g.O3,NodeViewWrapper:an.T5,NodeViewContent:an.ms,TableSettings:m._2,Delete:m.HG},props:{editor:{type:Object,required:!0},deleteNode:{type:Function,required:!0}},computed:{t:function(){return window.t}}};var ln=r(84339),cn={};cn.styleTagTransform=q(),cn.setAttributes=U(),cn.insert=$().bind(null,"head"),cn.domAPI=Z(),cn.insertStyleElement=H();N()(ln.Z,cn);ln.Z&&ln.Z.locals&&ln.Z.locals;const dn=(0,tt.Z)(sn,(function(){var t=this,e=t._self._c;return e("NodeViewWrapper",{staticClass:"table-wrapper",attrs:{"data-text-el":"table-view"}},[t.editor.isEditable?e("NcActions",{staticClass:"table-settings",attrs:{"force-menu":"","data-text-table-actions":"settings"},scopedSlots:t._u([{key:"icon",fn:function(){return[e("TableSettings")]},proxy:!0}],null,!1,1699550424)},[t._v(" "),e("NcActionButton",{attrs:{"data-text-table-action":"delete","close-after-click":""},on:{click:t.deleteNode},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Delete")]},proxy:!0}],null,!1,3429380666)},[t._v("\n\t\t\t"+t._s(t.t("text","Delete this table"))+"\n\t\t")])],1):t._e(),t._v(" "),e("NodeViewContent",{staticClass:"content",attrs:{as:"table"}}),t._v(" "),e("div",{staticClass:"clearfix"})],1)}),[],!1,null,"731856ac",null).exports;const un={name:"TableCellView",components:{NcActionButton:g.Js,NcActions:g.O3,NodeViewWrapper:an.T5,NodeViewContent:an.ms,TableAddRowBefore:m.pn,TableAddRowAfter:m.F5,Delete:m.HG},props:{editor:{type:Object,required:!0},getPos:{type:Function,required:!0}},computed:{t:function(){return window.t}},methods:{deleteRow:function(){this.editor.chain().focus().setTextSelection(this.getPos()).deleteRow().run()},addRowBefore:function(){this.editor.chain().focus().setTextSelection(this.getPos()).addRowBefore().run()},addRowAfter:function(){this.editor.chain().focus().setTextSelection(this.getPos()).addRowAfter().run()}}};var An=r(92199),hn={};hn.styleTagTransform=q(),hn.setAttributes=U(),hn.insert=$().bind(null,"head"),hn.domAPI=Z(),hn.insertStyleElement=H();N()(An.Z,hn);An.Z&&An.Z.locals&&An.Z.locals;const pn=(0,tt.Z)(un,(function(){var t=this,e=t._self._c;return e("NodeViewWrapper",{attrs:{"data-text-el":"table-cell",as:"td"}},[e("div",{staticClass:"container"},[e("NodeViewContent",{staticClass:"content"}),t._v(" "),t.editor.isEditable?e("NcActions",{attrs:{"data-text-table-actions":"row"}},[e("NcActionButton",{attrs:{"data-text-table-action":"add-row-before","close-after-click":""},on:{click:t.addRowBefore},scopedSlots:t._u([{key:"icon",fn:function(){return[e("TableAddRowBefore")]},proxy:!0}],null,!1,1805502767)},[t._v("\n\t\t\t\t"+t._s(t.t("text","Add row before"))+"\n\t\t\t")]),t._v(" "),e("NcActionButton",{attrs:{"data-text-table-action":"add-row-after","close-after-click":""},on:{click:t.addRowAfter},scopedSlots:t._u([{key:"icon",fn:function(){return[e("TableAddRowAfter")]},proxy:!0}],null,!1,3179199218)},[t._v("\n\t\t\t\t"+t._s(t.t("text","Add row after"))+"\n\t\t\t")]),t._v(" "),e("NcActionButton",{attrs:{"data-text-table-action":"remove-row","close-after-click":""},on:{click:t.deleteRow},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Delete")]},proxy:!0}],null,!1,3429380666)},[t._v("\n\t\t\t\t"+t._s(t.t("text","Delete this row"))+"\n\t\t\t")])],1):t._e()],1)])}),[],!1,null,"75e621dc",null).exports;const fn={name:"TableHeaderView",components:{NcActionButton:g.Js,NcActions:g.O3,NodeViewWrapper:an.T5,NodeViewContent:an.ms,Delete:m.HG,TableAddColumnBefore:m.IY,TableAddColumnAfter:m.Ah},props:{editor:{type:Object,required:!0},getPos:{type:Function,required:!0}},computed:{t:function(){return window.t}},methods:{deleteColumn:function(){this.editor.chain().focus().setTextSelection(this.getPos()).deleteColumn().run()},addColumnBefore:function(){this.editor.chain().focus().setTextSelection(this.getPos()).addColumnBefore().run()},addColumnAfter:function(){this.editor.chain().focus().setTextSelection(this.getPos()).addColumnAfter().run()}}};var mn=r(59964),gn={};gn.styleTagTransform=q(),gn.setAttributes=U(),gn.insert=$().bind(null,"head"),gn.domAPI=Z(),gn.insertStyleElement=H();N()(mn.Z,gn);mn.Z&&mn.Z.locals&&mn.Z.locals;const vn=(0,tt.Z)(fn,(function(){var t=this,e=t._self._c;return e("NodeViewWrapper",{attrs:{"data-text-el":"table-header",as:"th"}},[e("div",[e("NodeViewContent",{staticClass:"content"}),t._v(" "),t.editor.isEditable?e("NcActions",{attrs:{"data-text-table-actions":"header"}},[e("NcActionButton",{attrs:{"data-text-table-action":"add-column-before","close-after-click":""},on:{click:t.addColumnBefore},scopedSlots:t._u([{key:"icon",fn:function(){return[e("TableAddColumnBefore")]},proxy:!0}],null,!1,3782681875)},[t._v("\n\t\t\t\t"+t._s(t.t("text","Add column before"))+"\n\t\t\t")]),t._v(" "),e("NcActionButton",{attrs:{"data-text-table-action":"add-column-after","close-after-click":""},on:{click:t.addColumnAfter},scopedSlots:t._u([{key:"icon",fn:function(){return[e("TableAddColumnAfter")]},proxy:!0}],null,!1,1608287598)},[t._v("\n\t\t\t\t"+t._s(t.t("text","Add column after"))+"\n\t\t\t")]),t._v(" "),e("NcActionButton",{attrs:{"data-text-table-action":"remove-column","close-after-click":""},on:{click:t.deleteColumn},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Delete")]},proxy:!0}],null,!1,3429380666)},[t._v("\n\t\t\t\t"+t._s(t.t("text","Delete this column"))+"\n\t\t\t")])],1):t._e()],1)])}),[],!1,null,"779edfde",null).exports;function Cn(t,e){return t.extend({addNodeView:function(){return(0,an.uf)(e)}})}const bn=Xe.Z.extend({addNodeView:function(){return(0,an.uf)(dn)},addExtensions:function(){return[tn.Z,Cn(en.Z,pn),Cn(nn.Z,vn),rn.Z,on.Z]}});var yn=r(13861);const xn={name:"AutoCompleteResult",props:{label:{type:String,required:!0},subline:{type:String,default:null},id:{type:String,default:null},icon:{type:String,required:!0},source:{type:String,required:!0},status:{type:[Object,Array],default:function(){return{}}}},computed:{avatarUrl:function(){return this.id&&"users"===this.source?this.getAvatarUrl(this.id,44):null},haveStatus:function(){var t,e;return(null===(t=this.status)||void 0===t?void 0:t.icon)||(null===(e=this.status)||void 0===e?void 0:e.status)}},methods:{getAvatarUrl:function(t,e){return(0,p.generateUrl)("/avatar/{user}/{size}",{user:t,size:e})}}};var wn=r(90),kn={};kn.styleTagTransform=q(),kn.setAttributes=U(),kn.insert=$().bind(null,"head"),kn.domAPI=Z(),kn.insertStyleElement=H();N()(wn.Z,kn);wn.Z&&wn.Z.locals&&wn.Z.locals;const _n={components:{AutoCompleteResult:(0,tt.Z)(xn,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"autocomplete-result"},[e("div",{staticClass:"autocomplete-result__icon",class:[t.icon,"autocomplete-result__icon--".concat(t.avatarUrl?"with-avatar":"")],style:t.avatarUrl?{backgroundImage:"url(".concat(t.avatarUrl,")")}:null},[t.haveStatus?e("div",{staticClass:"autocomplete-result__status",class:["autocomplete-result__status--".concat(t.status&&t.status.icon?"icon":t.status.status)]},[t._v("\n\t\t\t"+t._s(t.status&&t.status.icon||"")+"\n\t\t")]):t._e()]),t._v(" "),e("span",{staticClass:"autocomplete-result__content"},[e("span",{staticClass:"autocomplete-result__title"},[t._v("\n\t\t\t"+t._s(t.label)+"\n\t\t")]),t._v(" "),t.subline?e("span",{staticClass:"autocomplete-result__subline"},[t._v("\n\t\t\t"+t._s(t.subline)+"\n\t\t")]):t._e()])])}),[],!1,null,"0f63f2d0",null).exports},props:{items:{type:Array,required:!0},command:{type:Function,required:!0}},data:function(){return{selectedIndex:0}},watch:{items:function(){this.selectedIndex=0}},methods:{t:qe.translate,onKeyDown:function(t){var e=t.event;return!(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)&&("ArrowUp"===e.key?(this.upHandler(),!0):"ArrowDown"===e.key?(this.downHandler(),!0):("Enter"===e.key||"Tab"===e.key)&&(this.enterHandler(),!0))},upHandler:function(){this.selectedIndex=(this.selectedIndex+this.items.length-1)%this.items.length},downHandler:function(){this.selectedIndex=(this.selectedIndex+1)%this.items.length},enterHandler:function(){this.selectItem(this.selectedIndex)},selectItem:function(t){var e=this.items[t];e&&this.command(e)}}};var jn=r(92192),Pn={};Pn.styleTagTransform=q(),Pn.setAttributes=U(),Pn.insert=$().bind(null,"head"),Pn.domAPI=Z(),Pn.insertStyleElement=H();N()(jn.Z,Pn);jn.Z&&jn.Z.locals&&jn.Z.locals;const En=(0,tt.Z)(_n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"items"},[t.items.length?t._l(t.items,(function(n,r){var o=n.id,i=n.label;return e("div",{key:r,class:r===t.selectedIndex?"highlight":null},[e("AutoCompleteResult",{class:o===t.selectedIndex?"highlight":null,attrs:{id:o,label:i,icon:"icon-user",source:"users"},nativeOn:{mouseover:function(e){t.selectedIndex=r},click:function(e){return t.selectItem(r)}}})],1)})):e("div",{staticClass:"item-empty"},[t._v("\n\t\t"+t._s(t.t("text","No user found"))+"\n\t")])],2)}),[],!1,null,null,null).exports;function Mn(t){return Mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mn(t)}function Sn(){Sn=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof u?e:u,i=Object.create(o.prototype),a=new w(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return _()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),i}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var d={};function u(){}function A(){}function h(){}var p={};s(p,o,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(k([])));m&&m!==e&&n.call(m,o)&&(p=m);var g=h.prototype=u.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,a,s){var l=c(t[o],t,i);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==Mn(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){d.value=t,a(d)}),(function(t){return r("throw",t,a,s)}))}s(l.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(y,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:_}}function _(){return{value:void 0,done:!0}}return A.prototype=h,s(g,"constructor",h),s(h,"constructor",A),A.displayName=s(h,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===A||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,s(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},v(C.prototype),s(C.prototype,i,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(g),s(g,a,"Generator"),s(g,o,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=k,w.prototype={constructor:w,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function Bn(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}var On=(0,p.generateUrl)("apps/text/api/v1/users");const In=function(t){var e,n,r=t.session;return{items:(e=Sn().mark((function t(e){var n,o,i,a,s;return Sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.query,o={documentId:r.documentId,sessionId:r.id,sessionToken:r.token,filter:n},t.next=4,Ht.Z.post(On,o);case 4:return i=t.sent,a=JSON.parse(JSON.stringify(i.data)),s=[],Object.keys(a).map((function(t){return s.push({id:t,label:a[t]})})),t.abrupt("return",s);case 9:case"end":return t.stop()}}),t)})),n=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(t){Bn(i,r,o,a,s,"next",t)}function s(t){Bn(i,r,o,a,s,"throw",t)}a(void 0)}))},function(t){return n.apply(this,arguments)}),command:function(t){var e,n,o=t.editor,i=t.range,a=t.props;!function(t){var e=t.session,n=t.props;Ht.Z.put((0,p.generateUrl)("apps/text/session/mention"),{documentId:e.documentId,sessionId:e.id,sessionToken:e.token,mention:n.id})}({session:r,props:a});var s=o.view.state.selection.$to.nodeAfter;(null==s||null===(e=s.text)||void 0===e?void 0:e.startsWith(" "))&&(i.to+=1),o.chain().focus().insertContentAt(i,[{type:"mention",attrs:a},{type:"text",text:" "}]).run(),null===(n=window.getSelection())||void 0===n||n.collapseToEnd()},render:function(){var t,e;return{onStart:function(n){t=new an.aA(En,{parent:undefined,propsData:n}),n.clientRect&&(e=(0,yn.ZP)("body",{getReferenceClientRect:n.clientRect,appendTo:function(){return document.body},content:t.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start"}))},onUpdate:function(n){t.updateProps(n),n.clientRect&&e&&e[0].setProps({getReferenceClientRect:n.clientRect})},onKeyDown:function(n){var r;if(e)return"Escape"===n.event.key?(e[0].hide(),!0):null===(r=t.ref)||void 0===r?void 0:r.onKeyDown(n)},onExit:function(){e&&(e[0].destroy(),t.destroy())}}}}};r(36522);var Dn=r(96470),Tn=r(9137);function Ln(t){return Ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ln(t)}function Nn(t){return function(t){if(Array.isArray(t))return Rn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Rn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rn(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Zn(){Zn=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof u?e:u,i=Object.create(o.prototype),a=new w(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return _()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),i}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var d={};function u(){}function A(){}function h(){}var p={};s(p,o,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(k([])));m&&m!==e&&n.call(m,o)&&(p=m);var g=h.prototype=u.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,a,s){var l=c(t[o],t,i);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==Ln(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){d.value=t,a(d)}),(function(t){return r("throw",t,a,s)}))}s(l.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(y,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:_}}function _(){return{value:void 0,done:!0}}return A.prototype=h,s(g,"constructor",h),s(h,"constructor",A),A.displayName=s(h,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===A||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,s(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},v(C.prototype),s(C.prototype,i,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(g),s(g,a,"Generator"),s(g,o,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=k,w.prototype={constructor:w,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function Gn(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}var $n=function(){var t,e=(t=Zn().mark((function t(e){var n,o;return Zn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=(0,Dn.listLanguages)(),zt.k.debug("Supported languages",{list:n}),(0,Dn.listLanguages)().includes(e)){t.next=13;break}return t.prev=3,t.next=6,r(23506)("./"+e);case 6:o=t.sent,(0,Dn.registerLanguage)(e,o.default),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),zt.k.debug("No matching highlighing found",{error:t.t0});case 13:case"end":return t.stop()}}),t,null,[[3,10]])})),function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Gn(i,r,o,a,s,"next",t)}function s(t){Gn(i,r,o,a,s,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}(),Fn=function(t){var e=t.content,n=t.onCreate,r=t.onUpdate,o=t.extensions,i=t.enableRichEditing,a=t.session,s=t.relativePath,l=[];return l=i?[Tn.UG,Tn.Ho.configure({relativePath:s,extensions:[bn,Tn.pf.configure({HTMLAttributes:{class:"mention"},suggestion:In({session:a})})]}),Tn.dy.configure({suggestion:{items:function(t){var e=t.query;return(0,g.Kn)(e)},render:function(){var t,e;return{onStart:function(n){t=new an.aA(Je,{parent:undefined,propsData:n}),e=(0,yn.ZP)("body",{getReferenceClientRect:n.clientRect,appendTo:function(){return document.body},content:t.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start"})},onUpdate:function(n){t.updateProps(n),e[0].setProps({getReferenceClientRect:n.clientRect})},onKeyDown:function(n){var r;return"Escape"===n.event.key?(t.destroy(),e[0].destroy(),!0):null===(r=t.ref)||void 0===r?void 0:r.onKeyDown(n)},onExit:function(){e[0].destroy(),t.destroy()}}}}}),Ge.Z.configure({emptyNodeClass:"is-empty",placeholder:(0,qe.translate)("text","Add notes, lists or links …"),showOnlyWhenEditable:!0}),We]:[Tn.f3],o=o||[],new gt.ML({content:e+"<p/>",onCreate:n,onUpdate:r,editorProps:{scrollMargin:50,scrollThreshold:50},extensions:[Ze.Z].concat(Nn(l)).concat(o)})},Un=function(t){this.message=t};var zn=r(73073),Hn=r(53322),Wn=r(66661),qn=r.n(Wn);const Yn={name:"DocumentStatus",components:{Lock:r(65012).Z},props:{idle:{type:Boolean,require:!0},lock:{type:Object,default:null},syncError:{type:Object,default:null},hasConnectionIssue:{type:Boolean,require:!0}},data:function(){return{IDLE_TIMEOUT:30}},computed:{hasSyncCollission:function(){return this.syncError&&this.syncError.type===ne.SAVE_COLLISSION}},methods:{reconnect:function(){this.$emit("reconnect")}}};var Vn=r(24198),Kn={};Kn.styleTagTransform=q(),Kn.setAttributes=U(),Kn.insert=$().bind(null,"head"),Kn.domAPI=Z(),Kn.insertStyleElement=H();N()(Vn.Z,Kn);Vn.Z&&Vn.Z.locals&&Vn.Z.locals;const Qn=(0,tt.Z)(Yn,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"document-status"},[t.idle?e("p",{staticClass:"msg"},[t._v("\n\t\t"+t._s(t.t("text","Document idle for {timeout} minutes, click to continue editing",{timeout:t.IDLE_TIMEOUT}))+" "),e("a",{staticClass:"button primary",on:{click:t.reconnect}},[t._v(t._s(t.t("text","Reconnect")))])]):t.hasSyncCollission?e("p",{staticClass:"msg icon-error"},[t._v("\n\t\t"+t._s(t.t("text","The document has been changed outside of the editor. The changes cannot be applied."))+"\n\t")]):t.hasConnectionIssue?e("p",{staticClass:"msg"},[t._v("\n\t\t"+t._s(t.t("text","File could not be loaded. Please check your internet connection."))+" "),e("a",{staticClass:"button primary",on:{click:t.reconnect}},[t._v(t._s(t.t("text","Reconnect")))])]):t._e(),t._v(" "),t.lock?e("p",{staticClass:"msg msg-locked"},[e("Lock"),t._v(" "+t._s(t.t("text","This file is opened read-only as it is currently locked by {user}.",{user:t.lock.displayName}))+"\n\t")],1):t._e()])}),[],!1,null,"a9040100",null).exports;var Jn=function(){return document.documentElement.clientWidth<768};const Xn={data:function(){return{isMobile:Jn()}},beforeMount:function(){var t=this;this.$onResize=C()((function(){t.isMobile=Jn()}),100),window.addEventListener("resize",this.$onResize)},beforeDestroy:function(){window.removeEventListener("resize",this.$onResize)}};var tr=r(62610);const er={name:"HelpModal",components:{NcModal:g.Jc},directives:{Tooltip:g.u},mixins:[Xn],data:function(){return{formatted:{bold:!0,italic:!0,strikethrough:!0,heading1:!0,heading6:!0,unorderdList:!0,orderedList:!0,checkList:!0,blockQuote:!0,codeBlock:!0}}},computed:{isFormatted:function(){var t=this;return function(e){return t.formatted[e]}}},methods:{toggleFormatted:function(t){this.formatted[t]=!this.formatted[t]}}},nr=er;var rr=r(8977),or={};or.styleTagTransform=q(),or.setAttributes=U(),or.insert=$().bind(null,"head"),or.domAPI=Z(),or.insertStyleElement=H();N()(rr.Z,or);rr.Z&&rr.Z.locals&&rr.Z.locals;const ir=(0,tt.Z)(nr,(function(){var t=this,e=t._self._c;return e("NcModal",{attrs:{size:"normal","data-text-el":"formatting-help",title:t.t("text","Formatting help")},on:{close:function(e){return t.$emit("close")}}},[e("h2",[t._v(t._s(t.t("text","Formatting help")))]),t._v(" "),e("p",[t._v(t._s(t.t("text","Speed up your writing with simple shortcuts.")))]),t._v(" "),t.isMobile?e("p",[t._v("\n\t\t"+t._s(t.t("text","Just type the Markdown syntax from below."))+"\n\t")]):e("p",[t._v("\n\t\t"+t._s(t.t("text","Just type the Markdown syntax or use keyboard shortcuts from below."))+"\n\t")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v(t._s(t.t("text","Style")))]),t._v(" "),e("th",[t._v(t._s(t.t("text","Syntax")))]),t._v(" "),t.isMobile?t._e():e("th",[t._v("\n\t\t\t\t\t"+t._s(t.t("text","Keyboard shortcuts"))+"\n\t\t\t\t")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v(t._s(t.t("text","Bold")))]),t._v(" "),e("td",[e("code",[t._v("**"+t._s(t.t("text","Bold text"))+"**")])]),t._v(" "),t.isMobile?t._e():e("td",[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v("B")])])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Italic")))]),t._v(" "),e("td",[e("code",[t._v("*"+t._s(t.t("text","Italicized text"))+"*")])]),t._v(" "),t.isMobile?t._e():e("td",[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v("I")])])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Strikethrough")))]),t._v(" "),e("td",[e("code",[t._v("~~"+t._s(t.t("text","Mistaken text"))+"~~")])]),t._v(" "),t.isMobile?t._e():e("td",[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v(t._s(t.t("text","Shift")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v("X")])])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Underline")))]),t._v(" "),e("td",[e("code",[t._v("__"+t._s(t.t("text","Underlined text"))+"__")])]),t._v(" "),t.isMobile?t._e():e("td",[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v("U")])])]),t._v(" "),e("tr",[e("td",{staticClass:"ellipsis_top"},[t._v("\n\t\t\t\t\t"+t._s(t.t("text","Heading 1"))+"\n\t\t\t\t")]),t._v(" "),e("td",{staticClass:"ellipsis_top"},[e("code",[t._v("# "+t._s(t.t("text","Heading level 1")))])]),t._v(" "),t.isMobile?t._e():e("td",{staticClass:"ellipsis_top"},[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v(t._s(t.t("text","Shift")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v("1")])])]),t._v(" "),e("tr",[e("td",{staticClass:"noborder ellipsis"},[t._v("\n\t\t\t\t\t…\n\t\t\t\t")]),t._v(" "),e("td",{staticClass:"noborder ellipsis"},[t._v("\n\t\t\t\t\t…\n\t\t\t\t")]),t._v(" "),t.isMobile?t._e():e("td",{staticClass:"ellipsis noborder"},[t._v("\n\t\t\t\t\t…\n\t\t\t\t")])]),t._v(" "),e("tr",[e("td",{staticClass:"noborder ellipsis_bottom"},[t._v("\n\t\t\t\t\t"+t._s(t.t("text","Heading 6"))+"\n\t\t\t\t")]),t._v(" "),e("td",{staticClass:"noborder ellipsis_bottom"},[e("code",[t._v("###### "+t._s(t.t("text","Heading level 6")))])]),t._v(" "),t.isMobile?t._e():e("td",{staticClass:"noborder ellipsis_bottom"},[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v(t._s(t.t("text","Shift")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v("6")])])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Unordered list")))]),t._v(" "),e("td",[e("code",[t._v("* "+t._s(t.t("text","An item")))])]),t._v(" "),t.isMobile?t._e():e("td",[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v(t._s(t.t("text","Shift")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v("8")])])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Ordered list")))]),t._v(" "),e("td",[e("code",[t._v("1. "+t._s(t.t("text","First item")))])]),t._v(" "),t.isMobile?t._e():e("td",[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v(t._s(t.t("text","Shift")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v("7")])])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Checklist")))]),t._v(" "),e("td",[e("code",[t._v("* [] "+t._s(t.t("text","To-Do item")))])]),t._v(" "),t.isMobile?t._e():e("td")]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Blockquote")))]),t._v(" "),e("td",[e("code",[t._v("> "+t._s(t.t("text","Quoted text")))])]),t._v(" "),t.isMobile?t._e():e("td",[e("kbd",[t._v(t._s(t.t("text","Ctrl")))]),t._v("\n\t\t\t\t\t+\n\t\t\t\t\t"),e("kbd",[t._v(">")])])]),t._v(" "),e("tr",[e("td",[t._v(t._s(t.t("text","Code block")))]),t._v(" "),e("td",[e("code",[t._v("``` "+t._s(t.t("text","Some code")))])]),t._v(" "),t.isMobile?t._e():e("td")])])])])}),[],!1,null,"c85fd486",null).exports;const ar=(0,i.defineComponent)({name:"ActionFormattingHelp",components:{NcActionButton:g.Js,Help:m.WW}});const sr=(0,tt.Z)(ar,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("NcActionButton",t._g({attrs:{"close-after-click":"","data-text-action-entry":"formatting-help"},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Help")]},proxy:!0}])},t.$listeners),[t._v("\n\t"+t._s(t.t("text","Formatting help"))+"\n")])}),[],!1,null,null,null).exports;const lr=(0,i.defineComponent)({name:"CharacterCount",components:{AlphabeticalVariant:m.Pn,NcActionText:g.L1},mixins:[f.Cy],props:{visible:Boolean},data:function(){return{wordCount:0,charCount:0}},computed:{countString:function(){return"".concat((0,qe.translatePlural)("text","%n word","%n words",this.wordCount),", ").concat((0,qe.translatePlural)("text","%n char","%n chars",this.charCount))}},watch:{visible:"refresh"},created:function(){this.refresh()},methods:{refresh:function(){this.wordCount=this.$editor.storage.characterCount.words(),this.charCount=this.$editor.storage.characterCount.characters()}}});const cr=(0,tt.Z)(lr,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("NcActionText",{attrs:{"data-text-action-entry":"character-count"},scopedSlots:t._u([{key:"icon",fn:function(){return[e("AlphabeticalVariant")]},proxy:!0},{key:"default",fn:function(){return[t._v("\n\t\t"+t._s(t.countString)+"\n\t")]},proxy:!0}])})}),[],!1,null,null,null).exports;function dr(t){return function(t){if(Array.isArray(t))return ur(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return ur(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ur(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ur(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}const Ar={name:"MenuBar",components:{ActionEntry:Zt,ActionFormattingHelp:sr,ActionList:Rt,HelpModal:ir,NcActionSeparator:g.rr,CharacterCount:cr},mixins:[f.Cy,f.QT,f.rz],provide:function(){var t,e,n,r=this,o={};return Object.defineProperties(o,(n={get:function(){return r.randomID}},(e=Q)in(t={})?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t)),o},props:{autohide:{type:Boolean,default:!1}},data:function(){return{randomID:"menu-bar-".concat(Math.ceil(1e4*Math.random()+500).toString(16)),displayHelp:!1,forceRecompute:0,isReady:!1,isVisible:this.$editor.isFocused,windowWidth:0}},computed:{iconsLimit:function(){this.forceRecompute,this.windowWidth;var t=this.$refs.menubar,e=(t&&t.clientWidth>200?t.clientWidth:200)-4;return Math.floor(e/44)-1},visibleEntries:function(){var t=this;return dr(Pt).filter((function(e){var n=e.priority;return void 0===n||n<=t.iconsLimit}))},hiddenEntries:function(){var t=this;return{key:"remain",label:this.t("text","Remaining actions"),icon:m.BF,children:dr(Pt).filter((function(e){var n=e.priority;return void 0!==n&&n>t.iconsLimit}))}}},mounted:function(){var t=this;window.addEventListener("resize",this.getWindowWidth),(0,tr.Ld)("files:sidebar:opened",this.redrawAfterTransition),(0,tr.Ld)("files:sidebar:closed",this.redrawAfterTransition),this.$onFocusChange=function(){t.isVisible=t.$editor.isFocused},this.$onBlurChange=C()((function(){t.isVisible=t.$editor.isFocused}),3e3),this.$editor.on("focus",this.$onFocusChange),this.$editor.on("blur",this.$onBlurChange),this.$checkInterval=setInterval((function(){var e=t.$refs.menubar,n=e&&e.clientWidth>0;t.$isRichEditor&&n&&t.redrawMenuBar(),t.$isRichEditor&&!n||clearInterval(t.$checkInterval),n&&t.$nextTick((function(){t.isReady=!0}))}),100),this.$nextTick((function(){t.$emit("update:loaded",!0)}))},beforeDestroy:function(){window.removeEventListener("resize",this.getWindowWidth),(0,tr.r1)("files:sidebar:opened",this.redrawAfterTransition),(0,tr.r1)("files:sidebar:closed",this.redrawAfterTransition),this.$editor.off("focus",this.$onFocusChange),this.$editor.off("blur",this.$onBlurChange)},methods:{getWindowWidth:function(){this.windowWidth=document.documentElement.clientWidth},redrawAfterTransition:function(){setTimeout(this.redrawMenuBar,110)},redrawMenuBar:function(){var t=this;this.$nextTick((function(){t.getWindowWidth(),t.forceRecompute++}))},showHelp:function(){this.displayHelp=!0},hideHelp:function(){this.displayHelp=!1}}},hr=Ar;var pr=r(60432),fr={};fr.styleTagTransform=q(),fr.setAttributes=U(),fr.insert=$().bind(null,"head"),fr.domAPI=Z(),fr.insertStyleElement=H();N()(pr.Z,fr);pr.Z&&pr.Z.locals&&pr.Z.locals;const mr=(0,tt.Z)(hr,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-menubar",class:{"text-menubar--ready":t.isReady,"text-menubar--show":t.isVisible,"text-menubar--autohide":t.autohide,"text-menubar--is-workspace":t.$isRichWorkspace},attrs:{id:t.randomID,"data-text-el":"menubar",role:"menubar","aria-label":t.t("text","Formatting menu bar")}},[t.displayHelp?e("HelpModal",{on:{close:t.hideHelp}}):t._e(),t._v(" "),t.$isRichEditor?e("div",{ref:"menubar",staticClass:"text-menubar__entries",attrs:{role:"group","aria-label":t.t("text","Editor actions")}},[t._l(t.visibleEntries,(function(n){return e("ActionEntry",t._b({key:"text-action--".concat(n.key)},"ActionEntry",{actionEntry:n},!1))})),t._v(" "),e("ActionList",{key:"text-action--remain",attrs:{"action-entry":t.hiddenEntries},scopedSlots:t._u([{key:"lastAction",fn:function(n){var r=n.visible;return[e("ActionFormattingHelp",{on:{click:t.showHelp}}),t._v(" "),e("NcActionSeparator"),t._v(" "),e("CharacterCount",t._b({},"CharacterCount",{visible:r},!1))]}}],null,!1,981163248)})],2):t._e(),t._v(" "),e("div",{staticClass:"text-menubar__slot"},[t._t("default")],2)],1)}),[],!1,null,"4ac89b96",null).exports;function gr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const vr={name:"TableOfContents",mixins:[T.Z,f.Cy],data:function(){return{initialRender:!0}},computed:{headings:function(){return this.$store.state.headings}},watch:{hasHeadings:function(t){this.$emit("has-headings",t)}},mounted:function(){var t=this;setTimeout((function(){t.initialRender=!1}),1e3)},methods:{goto:function(t){this.$editor.chain().focus().setTextSelection(t.position).scrollIntoView().run(),this.$nextTick((function(){window.location.hash=t.id}))}}},Cr=vr;var br=r(73741),yr={};yr.styleTagTransform=q(),yr.setAttributes=U(),yr.insert=$().bind(null,"head"),yr.domAPI=Z(),yr.insertStyleElement=H();N()(br.Z,yr);br.Z&&br.Z.locals&&br.Z.locals;const xr=(0,tt.Z)(Cr,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"editor--toc",class:{"--initial-render":t.initialRender},attrs:{"data-text-el":"editor-table-of-contents"}},[e("ul",{staticClass:"editor--toc__list"},t._l(t.headings,(function(n){var r;return e("li",{key:n.uuid,staticClass:"editor--toc__item",class:(r={},gr(r,"editor--toc__item--".concat(n.level),!0),gr(r,"editor--toc__item--previous-".concat(n.previous),n.previous>0),r),attrs:{"data-toc-level":n.level}},[e("a",{attrs:{href:"#".concat(n.id)},on:{click:function(e){return e.preventDefault(),t.goto(n)}}},[t._v("\n\t\t\t\t"+t._s(n.text)+"\n\t\t\t")])])})),0)])}),[],!1,null,null,null).exports,wr={name:"EditorOutline",components:{Close:m.x8,NcButton:g.P2,TableOfContents:xr},mixins:[T.Z,x,w],data:function(){return{visible:!1,mobile:!1}},watch:{"$store.getters.hasHeadings":"setVisible"},mounted:function(){var t=this;this.$onResize=C()((function(){t.mobile=t.$el.parentElement.clientWidth<320}),10),this.$resizeObserver=new ResizeObserver(this.$onResize),this.$resizeObserver.observe(this.$el.parentElement),this.$onResize()},beforeDestroy:function(){this.$resizeObserver.unobserve(this.$el.parentElement),this.$resizeObserver=null,this.$onResize=null},methods:{setVisible:function(t){this.visible=t}}},kr=wr;var _r=r(38334),jr={};jr.styleTagTransform=q(),jr.setAttributes=U(),jr.insert=$().bind(null,"head"),jr.domAPI=Z(),jr.insertStyleElement=H();N()(_r.Z,jr);_r.Z&&_r.Z.locals&&_r.Z.locals;const Pr=(0,tt.Z)(kr,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"editor--outline",class:{"editor--outline-mobile":t.mobile},attrs:{"data-text-el":"editor-outline"}},[e("header",{staticClass:"editor--outline__header"},[e("NcButton",{staticClass:"editor--outline__btn-close",attrs:{type:"tertiary","aria-label":t.t("text","Close outline view")},on:{click:t.$outlineActions.toggle},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Close")]},proxy:!0}])}),t._v(" "),e("h2",[t._v(t._s(t.t("text","Outline")))])],1),t._v(" "),e("TableOfContents")],1)}),[],!1,null,"685e37af",null).exports,Er={name:"ContentContainer",components:{EditorContent:an.kg,EditorOutline:Pr},mixins:[f.Cy,x],computed:{showOutline:function(){return this.$outlineState.visible}}};var Mr=r(52130),Sr={};Sr.styleTagTransform=q(),Sr.setAttributes=U(),Sr.insert=$().bind(null,"head"),Sr.domAPI=Z(),Sr.insertStyleElement=H();N()(Mr.Z,Sr);Mr.Z&&Mr.Z.locals&&Mr.Z.locals;const Br=(0,tt.Z)(Er,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"content-wrapper text-editor__content-wrapper",class:{"--show-outline":t.showOutline},attrs:{"data-text-el":"editor-content-wrapper"}},[t.showOutline?e("div",{staticClass:"text-editor__content-wrapper__left"},[e("EditorOutline")],1):t._e(),t._v(" "),t._t("default"),t._v(" "),e("EditorContent",{staticClass:"editor__content text-editor__content",attrs:{tabindex:"0",role:"document",editor:t.$editor}}),t._v(" "),e("div",{staticClass:"text-editor__content-wrapper__right"})],2)}),[],!1,null,"3850603b",null).exports;const Or={name:"Status",components:{SessionList:function(){return r.e("editor-collab").then(r.bind(r,36796))},GuestNameDialog:function(){return r.e("editor-guest").then(r.bind(r,90593))}},directives:{Tooltip:g.u},mixins:[f.ww,f.fB],props:{hasConnectionIssue:{type:Boolean,require:!0},dirty:{type:Boolean,require:!0},lastSavedString:{type:String,default:""},document:{type:Object,default:null},syncError:{type:Object,default:null},sessions:{type:Object,default:function(){return{}}}},computed:{lastSavedStatus:function(){return this.hasConnectionIssue?t("text",this.$isMobile?"Offline":"Offline, changes will be saved when online"):this.dirtyStateIndicator?t("text","Saving …"):t("text","Saved")},lastSavedStatusClass:function(){return this.syncError&&""!==this.lastSavedString?"error":""},dirtyStateIndicator:function(){return this.dirty||this.hasUnsavedChanges},lastSavedStatusTooltip:function(){var e=t("text","Last saved {lastSaved}",{lastSaved:this.lastSavedString});return this.hasSyncCollission&&(e=t("text","The document has been changed outside of the editor. The changes cannot be applied.")),(this.dirty||this.hasUnsavedChanges)&&(e+=" - "+t("text","Unsaved changes")),{content:e,placement:"bottom"}},hasUnsavedChanges:function(){return this.document&&this.document.lastSavedVersion<this.document.currentVersion},hasSyncCollission:function(){return this.syncError&&this.syncError.type===ne.SAVE_COLLISSION},saveStatusClass:function(){return this.syncError&&""!==this.lastSavedString?"save-error":this.dirtyStateIndicator?"saving-status":"saved-status"},currentSession:function(){return Object.values(this.sessions).find((function(t){return t.isCurrent}))}}};var Ir=r(37708),Dr={};Dr.styleTagTransform=q(),Dr.setAttributes=U(),Dr.insert=$().bind(null,"head"),Dr.domAPI=Z(),Dr.insertStyleElement=H();N()(Ir.Z,Dr);Ir.Z&&Ir.Z.locals&&Ir.Z.locals;var Tr=r(78285),Lr={};Lr.styleTagTransform=q(),Lr.setAttributes=U(),Lr.insert=$().bind(null,"head"),Lr.domAPI=Z(),Lr.insertStyleElement=H();N()(Tr.Z,Lr);Tr.Z&&Tr.Z.locals&&Tr.Z.locals;const Nr=(0,tt.Z)(Or,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-editor__session-list"},[t.$isMobile?e("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.lastSavedStatusTooltip,expression:"lastSavedStatusTooltip"}],class:t.saveStatusClass}):e("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.lastSavedStatusTooltip,expression:"lastSavedStatusTooltip"}],staticClass:"save-status",class:t.lastSavedStatusClass,attrs:{"aria-label":t.t("text","Document save status")}},[t._v("\n\t\t"+t._s(t.lastSavedStatus)+"\n\t")]),t._v(" "),e("SessionList",{attrs:{sessions:t.sessions}},[e("p",{staticClass:"last-saved",attrs:{slot:"lastSaved"},slot:"lastSaved"},[t._v("\n\t\t\t"+t._s(t.t("text","Last saved"))+": "+t._s(t.lastSavedString)+"\n\t\t")]),t._v(" "),t.$isPublic&&!t.currentSession.userId?e("GuestNameDialog",{attrs:{session:t.currentSession}}):t._e()],1)],1)}),[],!1,null,"5d3d5888",null).exports;function Rr(t){return Rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rr(t)}function Zr(){Zr=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof u?e:u,i=Object.create(o.prototype),a=new w(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return _()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),i}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var d={};function u(){}function A(){}function h(){}var p={};s(p,o,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(k([])));m&&m!==e&&n.call(m,o)&&(p=m);var g=h.prototype=u.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,a,s){var l=c(t[o],t,i);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==Rr(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){d.value=t,a(d)}),(function(t){return r("throw",t,a,s)}))}s(l.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(y,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:_}}function _(){return{value:void 0,done:!0}}return A.prototype=h,s(g,"constructor",h),s(h,"constructor",A),A.displayName=s(h,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===A||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,s(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},v(C.prototype),s(C.prototype,i,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(g),s(g,a,"Generator"),s(g,o,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=k,w.prototype={constructor:w,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function Gr(t){return function(t){if(Array.isArray(t))return $r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return $r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $r(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Fr(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function Ur(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Fr(i,r,o,a,s,"next",t)}function s(t){Fr(i,r,o,a,s,"throw",t)}a(void 0)}))}}function zr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Hr=function(t){return t.split("/").slice(0,-1).join("/")};const Wr={name:"MediaHandler",mixins:[f.Cy,f.a_,f.BG],provide:function(){var t,e=this,n={};return Object.defineProperties(n,(zr(t={},rt,{get:function(){return e.showAttachmentPrompt}}),zr(t,ot,{get:function(){return e.chooseLocalFile}}),zr(t,nt,{get:function(){return e.state}}),t)),n},data:function(){return{lastFilePath:null,draggedOver:!1,state:{isUploadingAttachments:!1}}},computed:{initialFilePath:function(){var t;return null!==(t=this.lastFilePath)&&void 0!==t?t:Hr(this.$file.relativePath)}},methods:{setDraggedOver:function(t){this.draggedOver=t},onPaste:function(t){this.uploadAttachmentFiles(t.detail.files)},onEditorDrop:function(t){this.uploadAttachmentFiles(t.detail.files,t.detail.position),this.draggedOver=!1},onAttachmentUploadFilePicked:function(t){this.uploadAttachmentFiles(t.target.files),t.target.value=""},chooseLocalFile:function(){this.$refs.attachmentFileInput.click()},uploadAttachmentFiles:function(t){var e=arguments,n=this;return Ur(Zr().mark((function r(){var o,i;return Zr().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=e.length>1&&void 0!==e[1]?e[1]:null,t){r.next=3;break}return r.abrupt("return");case 3:return n.state.isUploadingAttachments=!0,i=Gr(t).map((function(t){return n.uploadAttachmentFile(t,o)})),r.abrupt("return",Promise.all(i).catch((function(t){var e,n;zt.k.error("Uploading multiple images failed",{error:t}),(0,mt.showError)((null==t||null===(e=t.response)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.error)||t.message)})).then((function(){n.state.isUploadingAttachments=!1})));case 6:case"end":return r.stop()}}),r)})))()},uploadAttachmentFile:function(t){var e=arguments,n=this;return Ur(Zr().mark((function r(){var o;return Zr().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=e.length>1&&void 0!==e[1]?e[1]:null,n.state.isUploadingAttachments=!0,r.abrupt("return",n.$syncService.uploadAttachment(t).then((function(e){var r,i,a;n.insertAttachment(null===(r=e.data)||void 0===r?void 0:r.name,null===(i=e.data)||void 0===i?void 0:i.id,t.type,o,null===(a=e.data)||void 0===a?void 0:a.dirname)})).catch((function(t){var e,n;zt.k.error("Uploading image failed",{error:t}),(0,mt.showError)(null==t||null===(e=t.response)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.error)})).then((function(){n.state.isUploadingAttachments=!1})));case 3:case"end":return r.stop()}}),r)})))()},showAttachmentPrompt:function(){var e=this;(0,A.ts)()&&OC.dialogs.filepicker(t("text","Insert an attachment"),(function(t){e.insertFromPath(t)}),!1,[],!0,void 0,this.initialFilePath)},insertFromPath:function(t){var e=this;return this.lastFilePath=Hr(t),this.state.isUploadingAttachments=!0,this.$syncService.insertAttachmentFile(t).then((function(t){var n,r,o,i;e.insertAttachment(null===(n=t.data)||void 0===n?void 0:n.name,null===(r=t.data)||void 0===r?void 0:r.id,null===(o=t.data)||void 0===o?void 0:o.mimetype,null,null===(i=t.data)||void 0===i?void 0:i.dirname)})).catch((function(t){var e,n;zt.k.error("Failed to insert image path",{error:t}),(0,mt.showError)((null==t||null===(e=t.response)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.error)||t.message)})).then((function(){e.state.isUploadingAttachments=!1}))},insertAttachment:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",i=o+"/"+encodeURIComponent(t).replace(/[!'()*]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})),a=t.replaceAll(/[[\]]/g,""),s=r?this.$editor.chain().focus(r):this.$editor.chain();s.setImage({src:i,alt:a}).insertContent("<br />").focus().run()}}},qr=Wr;const Yr={name:"MainContainer",components:{MediaHandler:(0,tt.Z)(qr,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"editor editor-midia-handler",class:{draggedOver:t.draggedOver},attrs:{"data-text-el":"editor-midia-handler"},on:{"image-paste":t.onPaste,dragover:function(e){return e.preventDefault(),e.stopPropagation(),t.setDraggedOver(!0)},dragleave:function(e){return e.preventDefault(),e.stopPropagation(),t.setDraggedOver(!1)},"file-drop":t.onEditorDrop}},[e("input",{ref:"attachmentFileInput",staticClass:"hidden-visually",attrs:{"data-text-el":"attachment-file-input",type:"file",accept:"*/*","aria-hidden":"true",multiple:""},on:{change:t.onAttachmentUploadFilePicked}}),t._v(" "),t._t("default")],2)}),[],!1,null,null,null).exports}};var Vr=r(63812),Kr={};Kr.styleTagTransform=q(),Kr.setAttributes=U(),Kr.insert=$().bind(null,"head"),Kr.domAPI=Z(),Kr.insertStyleElement=H();N()(Vr.Z,Kr);Vr.Z&&Vr.Z.locals&&Vr.Z.locals;const Qr=(0,tt.Z)(Yr,(function(){return(0,this._self._c)("MediaHandler",{staticClass:"text-editor__main"},[this._t("default")],2)}),[],!1,null,"7d451d50",null).exports;function Jr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Xr={name:"Wrapper",mixins:[T.Z,f.QT,f.rz],provide:function(){var t,e=this,n={};return Object.defineProperties(n,(Jr(t={},b,{get:function(){return e.outline}}),Jr(t,y,{get:function(){return{toggle:e.outlineToggle}}}),t)),n},props:{syncError:{type:Object,default:null},hasConnectionIssue:{type:Boolean,require:!0},contentLoaded:{type:Boolean,require:!0},showAuthorAnnotations:{type:Boolean,require:!0}},data:function(){return{outline:{visible:!1,enable:!1}}},computed:{hasSyncCollission:function(){return this.syncError&&this.syncError.type===ne.SAVE_COLLISSION},showOutline:function(){return!!this.isAbleToShowOutline&&this.outline.visible},isAbleToShowOutline:function(){return!this.$isRichWorkspace&&this.$store.state.viewWidth>1265}},mounted:function(){var t=this;this.outline.enable=this.isAbleToShowOutline,this.$watch((function(){return t.isAbleToShowOutline}),(function(e){Object.assign(t.outline,{enable:e})}))},methods:{outlineToggle:function(){this.outline.visible=!this.outline.visible}}},to=Xr;var eo=r(3274),no={};no.styleTagTransform=q(),no.setAttributes=U(),no.insert=$().bind(null,"head"),no.domAPI=Z(),no.insertStyleElement=H();N()(eo.Z,no);eo.Z&&eo.Z.locals&&eo.Z.locals;const ro=(0,tt.Z)(to,(function(){var t=this;return(0,t._self._c)("div",{staticClass:"text-editor__wrapper",class:{"has-conflicts":t.hasSyncCollission,"icon-loading":!t.contentLoaded&&!t.hasConnectionIssue,"is-rich-workspace":t.$isRichWorkspace,"is-rich-editor":t.$isRichEditor,"show-color-annotations":t.showAuthorAnnotations}},[t._t("default")],2)}),[],!1,null,"068e7935",null).exports;var oo=r(25108);function io(t){return io="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},io(t)}function ao(){ao=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof u?e:u,i=Object.create(o.prototype),a=new w(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return _()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),i}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var d={};function u(){}function A(){}function h(){}var p={};s(p,o,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(k([])));m&&m!==e&&n.call(m,o)&&(p=m);var g=h.prototype=u.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,a,s){var l=c(t[o],t,i);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==io(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){d.value=t,a(d)}),(function(t){return r("throw",t,a,s)}))}s(l.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(y,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:_}}function _(){return{value:void 0,done:!0}}return A.prototype=h,s(g,"constructor",h),s(h,"constructor",A),A.displayName=s(h,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===A||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,s(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},v(C.prototype),s(C.prototype,i,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(g),s(g,a,"Generator"),s(g,o,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=k,w.prototype={constructor:w,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function so(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function lo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function co(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?lo(Object(n),!0).forEach((function(e){uo(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function uo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Ao={name:"Editor",components:{DocumentStatus:Qn,Wrapper:ro,MainContainer:Qr,ReadonlyBar:Ut,ContentContainer:Br,MenuBar:mr,Reader:function(){return Promise.all([r.e("vendors"),r.e("editor")]).then(r.bind(r,7280))},Status:Nr,CollisionResolveDialog:function(){return Promise.all([r.e("vendors"),r.e("editor")]).then(r.bind(r,84413))}},mixins:[Xn,T.Z],provide:function(){var t,e=this,n={};return Object.defineProperties(n,(uo(t={},f.Uw,{get:function(){return e.$editor}}),uo(t,f.wU,{get:function(){return e.$syncService}}),uo(t,f.HB,{get:function(){return e.fileData}}),uo(t,f.FQ,{get:function(){return e.$attachmentResolver}}),uo(t,f.cY,{get:function(){return e.isPublic}}),uo(t,f.vo,{get:function(){return e.isRichEditor}}),uo(t,f.IT,{get:function(){return e.isRichWorkspace}}),uo(t,f.q$,{get:function(){return e.isMobile}}),t)),n},props:{richWorkspace:{type:Boolean,require:!1,default:!1},initialSession:{type:Object,default:null},relativePath:{type:String,default:""},fileId:{type:Number,default:null},active:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!0},shareToken:{type:String,default:null},mime:{type:String,default:null},autohide:{type:Boolean,default:!1},isDirectEditing:{type:Boolean,default:!1}},data:function(){return{IDLE_TIMEOUT:30,document:null,sessions:[],currentSession:null,filteredSessions:{},idle:!1,dirty:!1,contentLoaded:!1,lastSavedString:"",syncError:null,hasConnectionIssue:!1,readOnly:!0,forceRecreate:!1,menubarLoaded:!1,draggedOver:!1,saveStatusPolling:null,contentWrapper:null}},computed:{isRichWorkspace:function(){return this.richWorkspace},showAuthorAnnotations:function(){return this.$store.state.showAuthorAnnotations},hasSyncCollission:function(){return this.syncError&&this.syncError.type===ne.SAVE_COLLISSION},hasDocumentParameters:function(){return this.fileId||this.shareToken||this.initialSession},isPublic:function(){return this.isDirectEditing||document.getElementById("isPublic")&&"1"===document.getElementById("isPublic").value},isRichEditor:function(){return(0,h.j)("text","rich_editing_enabled",!0)&&"text/markdown"===this.mime},fileExtension:function(){return this.relativePath?this.relativePath.split("/").pop().split(".").pop():"txt"},currentDirectory:function(){return this.relativePath?this.relativePath.split("/").slice(0,-1).join("/"):"/"},displayed:function(){return this.currentSession&&this.active},renderMenus:function(){return this.contentLoaded&&this.isRichEditor&&!this.syncError&&!this.readOnly},imagePath:function(){return this.relativePath.split("/").slice(0,-1).join("/")},fileData:function(){return{fileId:this.fileId,relativePath:this.relativePath,document:co({},this.document)}}},watch:{displayed:function(){var t=this;this.$nextTick((function(){t.contentWrapper=t.$refs.contentWrapper}))}},mounted:function(){this.active&&this.hasDocumentParameters&&this.initSession(),this.richWorkspace||(window.addEventListener("beforeprint",this.preparePrinting),window.addEventListener("afterprint",this.preparePrinting)),this.$parent.$emit("update:loaded",!0)},created:function(){var t=this;this.$editor=null,this.$syncService=null,this.$attachmentResolver=null,this.saveStatusPolling=setInterval((function(){t.updateLastSavedStatus()}),2e3)},beforeDestroy:function(){this.close()},methods:{updateLastSavedStatus:function(){this.document&&(this.lastSavedString=c()(1e3*this.document.lastSavedVersionTime).fromNow())},initSession:function(){var t=this;if(this.hasDocumentParameters){var e=localStorage.getItem("nick")?localStorage.getItem("nick"):"";this.$syncService=new re({guestName:e,shareToken:this.shareToken,filePath:this.relativePath,forceRecreate:this.forceRecreate,serialize:function(e){return t.isRichEditor?(0,zn.g)(t.$editor.schema).serialize(e):function(t){var e=t.getJSON();if(1!==e.content.length||void 0===e.content[0].content||1!==e.content[0].content.length){if("codeBlock"===e.content[0].type&&void 0===e.content[0].content)return"";throw new Un("Failed to serialize document to plain text")}var n=e.content[0].content[0];if("text"!==n.type)throw new Un("Failed to serialize document to plain text");return n.text}(t.$editor)}}),this.listenSyncServiceEvents(),this.$syncService.open({fileId:this.fileId,filePath:this.relativePath,initialSession:this.initialSession}).catch((function(e){if(t.hasConnectionIssue=!0,401===e.response.status){var n=OCA.Files?"/index.php/apps/files/?dir="+encodeURIComponent(t.currentDirectory||"/")+"&openfile="+t.fileId:window.location.pathname;window.location=(0,p.generateUrl)("/login")+"?redirect_url="+encodeURIComponent(n)}})),this.forceRecreate=!1}else this.$parent.$emit("error","No valid file provided")},listenEditorEvents:function(){this.$editor.on("focus",this.onFocus),this.$editor.on("blur",this.onBlur)},unlistenEditorEvents:function(){this.$editor.off("focus",this.onFocus),this.$editor.off("blur",this.onBlur)},listenSyncServiceEvents:function(){this.$syncService.on("opened",this.onOpened).on("change",this.onChange).on("loaded",this.onLoaded).on("sync",this.onSync).on("error",this.onError).on("stateChange",this.onStateChange).on("idle",this.onIdle).on("save",this.onSave)},unlistenSyncServiceEvents:function(){this.$syncService.off("opened",this.onOpened).off("change",this.onChange).off("loaded",this.onLoaded).off("sync",this.onSync).off("error",this.onError).off("stateChange",this.onStateChange).off("idle",this.onIdle).off("save",this.onSave)},resolveUseThisVersion:function(){this.$syncService.forceSave(),this.$editor.setOptions({editable:!this.readOnly})},resolveUseServerVersion:function(){this.forceRecreate=!0,this.reconnect()},reconnect:function(){var t=this;this.contentLoaded=!1,this.hasConnectionIssue=!1;var e=function(){t.unlistenSyncServiceEvents(),t.unlistenEditorEvents(),t.$syncService=null,t.$editor.destroy(),t.initSession()};this.$syncService?this.$syncService.close().then(e).catch((function(t){})):e(),this.idle=!1},updateSessions:function(t){var e=this;this.sessions=t.sort((function(t,e){return e.lastContact-t.lastContact}));var n=this.sessions.find((function(t){return t.id===e.currentSession.id}));(0,i.set)(this,"currentSession",n);var r=this.sessions.map((function(t){return t.userId})),o=this.sessions.map((function(t){return t.guestId})),a=Object.keys(this.filteredSessions).filter((function(t){return!r.includes(t)&&!o.includes(t)}));for(var s in a)i.default.delete(this.filteredSessions,a[s]);for(var l in this.sessions){var c=this.sessions[l],d=c.displayName?c.userId:c.id;this.filteredSessions[d]?this.filteredSessions[d].lastContact<c.lastContact&&(0,i.set)(this.filteredSessions[d],"lastContact",c.lastContact):(0,i.set)(this.filteredSessions,d,c),c.id===this.currentSession.id&&(0,i.set)(this.filteredSessions[d],"isCurrent",!0)}},onOpened:function(t){var e=t.document,n=t.session;this.currentSession=n,this.document=e,this.readOnly=e.readOnly,this.lock=this.$syncService.lock,localStorage.setItem("nick",this.currentSession.guestName),this.$store.dispatch("setCurrentSession",this.currentSession),this.$attachmentResolver=new Me({session:this.currentSession,user:(0,A.ts)(),shareToken:this.shareToken,currentDirectory:this.currentDirectory})},onLoaded:function(e){var n=this,r=e.documentSource,o="",i=this.isRichEditor?Hn.Z.use(qn(),(function(t){o='<pre id="frontmatter"><code>'.concat(s()(t),"</code></pre>")})).render(r):"<pre>".concat(s()(r),"</pre>");this.hasConnectionIssue=!1;var a=o+i,l=Re[this.fileExtension]||this.fileExtension;(this.isRichEditor?Promise.resolve():$n(l)).then((function(){n.$editor=Fn({relativePath:n.relativePath,session:n.currentSession,content:a,onCreate:function(t){var e=t.editor;n.$syncService.state=e.state,n.$syncService.startSync()},onUpdate:function(t){var e=t.editor;n.$syncService.state=e.state},extensions:[Tn.mn.configure({version:n.document.initialVersion,clientID:n.currentSession.id,debounce:200,onSendable:function(t){t.sendable;n.$syncService&&n.$syncService.sendSteps()},update:function(t){var e=t.steps,n=t.version,r=t.editor,o=r.state,i=r.view,a=r.schema;if(!((0,d.bo)(o)>n)){var s=(0,d.$E)(o,e.map((function(t){return u.h8.fromJSON(a,t.step)})),e.map((function(t){return t.clientID})));s.setMeta("clientID",e.map((function(t){return t.clientID}))),i.dispatch(s)}}}),Tn.N8.configure({"Mod-s":function(){return n.$syncService.save(),!0}}),Tn.LA.configure({clientID:n.currentSession.id,color:function(t){var e=n.sessions.find((function(e){return""+e.id==""+t}));return null==e?void 0:e.color},name:function(e){var r=n.sessions.find((function(t){return""+t.id==""+e}));return null!=r&&r.userId?r.displayName:null!=r&&r.guestName?r.guestName:t("text","Guest")}})],enableRichEditing:n.isRichEditor}),n.listenEditorEvents(),n.$syncService.state=n.$editor.state}))},onChange:function(t){var e=t.document,n=t.sessions;""===this.document.baseVersionEtag||e.baseVersionEtag===this.document.baseVersionEtag?(this.updateSessions.bind(this)(n),this.document=e,this.syncError=null,this.$editor.setOptions({editable:!this.readOnly})):this.resolveUseServerVersion()},onSync:function(t){var e=this,n=t.steps,r=t.document;this.hasConnectionIssue=!1;try{this.$editor.extensionManager.extensions.find((function(t){return"collaboration"===t.name})).options.update({version:r.currentVersion,steps:n,editor:this.$editor}),this.$syncService.state=this.$editor.state,this.updateLastSavedStatus(),this.$nextTick((function(){e.$emit("sync-service:sync")}))}catch(t){zt.k.error("Failed to update steps in collaboration plugin",{error:t})}this.document=r},onError:function(t){var e=this,n=t.type,r=t.data;this.$editor.setOptions({editable:!1}),this.$nextTick((function(){e.$emit("sync-service:error")})),n!==ne.SAVE_COLLISSION||this.syncError&&this.syncError.type===ne.SAVE_COLLISSION||(this.contentLoaded=!0,this.syncError={type:n,data:r}),n!==ne.CONNECTION_FAILED||this.hasConnectionIssue||(this.hasConnectionIssue=!0,OC.Notification.showTemporary("Connection failed, reconnecting"),!1!==r.retry&&setTimeout(this.reconnect.bind(this),5e3)),n===ne.SOURCE_NOT_FOUND&&(this.hasConnectionIssue=!0),this.$emit("ready")},onStateChange:function(t){var e=this;t.initialLoading&&!this.contentLoaded&&(this.contentLoaded=!0,this.autofocus&&!this.readOnly&&this.$nextTick((function(){e.$editor.commands.focus()})),this.$emit("ready"),this.$parent.$emit("ready",!0)),Object.prototype.hasOwnProperty.call(t,"dirty")&&(this.dirty=t.dirty)},onIdle:function(){var t=this;this.$syncService.close(),this.idle=!0,this.readOnly=!0,this.$editor.setOptions({editable:!this.readOnly}),this.$nextTick((function(){t.$emit("sync-service:idle")}))},onSave:function(){var t=this;this.$nextTick((function(){t.$emit("sync-service:save")}))},onFocus:function(){this.$emit("focus")},onBlur:function(){this.$emit("blur")},close:function(){var t,e=this;return(t=ao().mark((function t(){return ao().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(clearInterval(e.saveStatusPolling),window.removeEventListener("beforeprint",e.preparePrinting),window.removeEventListener("afterprint",e.preparePrinting),!e.currentSession||!e.$syncService){t.next=14;break}return t.prev=4,t.next=7,e.$syncService.close();case 7:e.unlistenSyncServiceEvents(),e.currentSession=null,e.$syncService=null,t.next=14;break;case 12:t.prev=12,t.t0=t.catch(4);case 14:if(e.$editor)try{e.unlistenEditorEvents(),e.$editor.destroy(),e.$editor=null}catch(t){zt.k.warn("Failed to destroy editor",{error:t})}return t.abrupt("return",!0);case 16:case"end":return t.stop()}}),t,null,[[4,12]])})),function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){so(i,r,o,a,s,"next",t)}function s(t){so(i,r,o,a,s,"throw",t)}a(void 0)}))})()},preparePrinting:function(t){var e=document.getElementById("content");e&&"beforeprint"===t.type?e.style.display="none":e&&(e.style.display="")},debugContent:function(t){var e=this.$syncService.options.serialize(t.state.doc),n=Hn.Z.render(e);zt.k.debug("markdown, serialized from editor state by prosemirror-markdown"),oo.debug(e),zt.k.debug("HTML, serialized from markdown by markdown-it"),oo.debug(n),zt.k.debug("HTML, as rendered in the browser by Tiptap"),oo.debug(t.getHTML())}}},ho=Ao;var po=r(18288),fo={};fo.styleTagTransform=q(),fo.setAttributes=U(),fo.insert=$().bind(null,"head"),fo.domAPI=Z(),fo.insertStyleElement=H();N()(po.Z,fo);po.Z&&po.Z.locals&&po.Z.locals;var mo=r(78658),go={};go.styleTagTransform=q(),go.setAttributes=U(),go.insert=$().bind(null,"head"),go.domAPI=Z(),go.insertStyleElement=H();N()(mo.Z,go);mo.Z&&mo.Z.locals&&mo.Z.locals;const vo=(0,tt.Z)(ho,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-editor",attrs:{"data-text-el":"editor-container"},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:(e.stopPropagation(),e.preventDefault(),function(){}.apply(null,arguments))}}},[t.displayed?e("DocumentStatus",{attrs:{idle:t.idle,lock:t.lock,"sync-error":t.syncError,"has-connection-issue":t.hasConnectionIssue},on:{reconnect:t.reconnect}}):t._e(),t._v(" "),t.displayed?e("Wrapper",{attrs:{"sync-error":t.syncError,"has-connection-issue":t.hasConnectionIssue,"content-loaded":t.contentLoaded,"show-author-annotations":t.showAuthorAnnotations}},[t.$editor?e("MainContainer",[t.readOnly?e("div",{staticClass:"text-editor--readonly-bar"},[e("ReadonlyBar")],1):[t.renderMenus?e("MenuBar",{ref:"menubar",attrs:{autohide:t.autohide,loaded:t.menubarLoaded},on:{"update:loaded":function(e){t.menubarLoaded=e}}},[e("Status",{attrs:{document:t.document,dirty:t.dirty,sessions:t.filteredSessions,"sync-error":t.syncError,"has-connection-issue":t.hasConnectionIssue,"last-saved-string":t.lastSavedString}}),t._v(" "),t._t("header")],2):e("div",{staticClass:"menubar-placeholder"})],t._v(" "),e("ContentContainer",{directives:[{name:"show",rawName:"v-show",value:t.contentLoaded,expression:"contentLoaded"}],ref:"contentWrapper"})],2):t._e(),t._v(" "),t.hasSyncCollission?e("Reader",{attrs:{content:t.syncError.data.outsideChange,"is-rich-editor":t.isRichEditor}}):t._e()],1):t._e(),t._v(" "),t.hasSyncCollission&&!t.readOnly?e("CollisionResolveDialog",{on:{"resolve-use-this-version":t.resolveUseThisVersion,"resolve-use-server-version":t.resolveUseServerVersion}}):t._e()],1)}),[],!1,null,"69b2c57d",null).exports},7280:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>O});var r=n(19958);const o={name:"BaseReader",components:{EditorContent:n(7049).kg},inject:["renderHtml","extensions"],props:{content:{type:String,required:!0}},computed:{htmlContent:function(){return this.renderHtml(this.content)}},watch:{content:function(){this.updateContent()}},created:function(){this.$editor=this.createEditor(),this.$editor.setOptions({editable:!1})},beforeDestroy:function(){this.$editor.destroy()},methods:{createEditor:function(){return new r.ML({content:this.htmlContent,extensions:this.extensions()})},updateContent:function(){this.$editor.commands.setContent(this.htmlContent,!0)}}};var i=n(51900);const a=(0,i.Z)(o,(function(){var t=this,e=t._self._c;return t.$editor?e("EditorContent",{attrs:{id:"read-only-editor",editor:t.$editor}}):t._e()}),[],!1,null,null,null).exports;var s=n(9137),l=n(95573),c=n.n(l);const d={name:"PlainTextReader",components:{BaseReader:a},provide:{renderHtml:function(t){return"<pre>"+c()(t)+"</pre>"},extensions:function(){return[s.f3]}},props:{content:{type:String,required:!0}}};const u=(0,i.Z)(d,(function(){return(0,this._self._c)("BaseReader",{attrs:{content:this.content}})}),[],!1,null,null,null).exports;var A=n(81401),h=n(53322);const p={name:"RichTextReader",components:{BaseReader:a},provide:{renderHtml:function(t){return h.Z.render(t)},extensions:function(){var t=this;return[A.Z.configure({link:{onClick:function(e,n){return t.$emit("click-link",e,n),!0}}})]}},props:{content:{type:String,required:!0}},mounted:function(){this.$el.addEventListener("click",this.preventOpeningLinks,!0)},unmounted:function(){this.$el.removeEventListener("click",this.preventOpeningLinks,!0)},methods:{preventOpeningLinks:function(t){t.target.closest("a")&&0===t.button&&!t.ctrlKey&&t.preventDefault()}}};var f=n(93379),m=n.n(f),g=n(7795),v=n.n(g),C=n(90569),b=n.n(C),y=n(3565),x=n.n(y),w=n(19216),k=n.n(w),_=n(44589),j=n.n(_),P=n(51716),E={};E.styleTagTransform=j(),E.setAttributes=x(),E.insert=b().bind(null,"head"),E.domAPI=v(),E.insertStyleElement=k();m()(P.Z,E);P.Z&&P.Z.locals&&P.Z.locals;const M={name:"Reader",components:{PlainTextReader:u,RichTextReader:(0,i.Z)(p,(function(){var t=this;return(0,t._self._c)("BaseReader",{attrs:{content:t.content},on:{"click-link":function(e,n){return t.$emit("click-link",e,n)}}})}),[],!1,null,null,null).exports},props:{content:{type:String,required:!0},isRichEditor:{type:Boolean,default:!0}}};var S=n(62886),B={};B.styleTagTransform=j(),B.setAttributes=x(),B.insert=b().bind(null,"head"),B.domAPI=v(),B.insertStyleElement=k();m()(S.Z,B);S.Z&&S.Z.locals&&S.Z.locals;const O=(0,i.Z)(M,(function(){var t=this,e=t._self._c;return t.isRichEditor?e("RichTextReader",{attrs:{content:t.content}}):e("PlainTextReader",{attrs:{content:t.content}})}),[],!1,null,null,null).exports},20212:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>M});var r=n(20144),o=n(21993),i=n(52029);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(){s=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var o=e&&e.prototype instanceof h?e:h,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===A)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===A)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),i}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=d;var A={};function h(){}function p(){}function f(){}var m={};c(m,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(j([])));v&&v!==e&&n.call(v,o)&&(m=v);var C=f.prototype=h.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function y(t,e){function r(o,i,s,l){var c=u(t[o],t,i);if("throw"!==c.type){var d=c.arg,A=d.value;return A&&"object"==a(A)&&n.call(A,"__await")?e.resolve(A.__await).then((function(t){r("next",t,s,l)}),(function(t){r("throw",t,s,l)})):e.resolve(A).then((function(t){d.value=t,s(d)}),(function(t){return r("throw",t,s,l)}))}l(c.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function x(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return A;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return A}var r=u(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,A;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,A):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,A)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function j(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:P}}function P(){return{value:void 0,done:!0}}return p.prototype=f,c(C,"constructor",f),c(f,"constructor",p),p.displayName=c(f,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,c(t,l,"GeneratorFunction")),t.prototype=Object.create(C),t},t.awrap=function(t){return{__await:t}},b(y.prototype),c(y.prototype,i,(function(){return this})),t.AsyncIterator=y,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new y(d(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(C),c(C,l,"Generator"),c(C,o,(function(){return this})),c(C,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=j,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,A):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),A},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),A}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:j(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),A}},t}function l(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function c(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){l(i,r,o,a,s,"next",t)}function s(t){l(i,r,o,a,s,"throw",t)}a(void 0)}))}}var d=r.default.observable({messages:[],mtime:0}),u=function(t,e){i.k.debug("callMobileMessage ".concat(t),{attributes:e});var n=t;void 0!==e&&(n={MessageName:t,Values:e});var r=null;try{r=JSON.stringify(e)}catch(t){r=null}window.DirectEditingMobileInterface&&"function"==typeof window.DirectEditingMobileInterface[t]&&(null==r?window.DirectEditingMobileInterface[t]():window.DirectEditingMobileInterface[t](r)),window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.DirectEditingMobileInterface&&window.webkit.messageHandlers.DirectEditingMobileInterface.postMessage(n),window.postMessage(n)};window.addEventListener("message",(function(t){d.messages.push(t.data),i.k.debug("postMessage",{message:t})}));const A={name:"DirectEditing",components:{Editor:o.default},data:function(){return{initial:OCP.InitialState.loadState("text","file"),messages:d.messages,log:d,saving:!1}},computed:{initialSession:function(){return JSON.parse(this.initial.session)||null}},beforeMount:function(){u("loading")},mounted:function(){document.querySelector('meta[name="viewport"]').setAttribute("content","width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0")},methods:{close:function(){var t=this;return c(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.saving=!0,setTimeout(c(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$refs.editor.close();case 2:u("close");case 3:case"end":return e.stop()}}),e)}))),0);case 2:case"end":return e.stop()}}),e)})))()},share:function(){u("share")},loaded:function(){u("loaded")}}};var h=n(93379),p=n.n(h),f=n(7795),m=n.n(f),g=n(90569),v=n.n(g),C=n(3565),b=n.n(C),y=n(19216),x=n.n(y),w=n(44589),k=n.n(w),_=n(82837),j={};j.styleTagTransform=k(),j.setAttributes=b(),j.insert=v().bind(null,"head"),j.domAPI=m(),j.insertStyleElement=x();p()(_.Z,j);_.Z&&_.Z.locals&&_.Z.locals;var P=n(42294),E={};E.styleTagTransform=k(),E.setAttributes=b(),E.insert=v().bind(null,"head"),E.domAPI=m(),E.insertStyleElement=x();p()(P.Z,E);P.Z&&P.Z.locals&&P.Z.locals;const M=(0,n(51900).Z)(A,(function(){var t=this,e=t._self._c;return e("div",{class:{"icon-loading":t.saving},attrs:{id:"direct-editor"}},[e("Editor",{ref:"editor",attrs:{"initial-session":t.initialSession,active:!0,mime:t.initial.mimetype,"is-direct-editing":!0},on:{ready:t.loaded},scopedSlots:t._u([{key:"header",fn:function(){return[e("button",{staticClass:"icon-share",on:{click:t.share}}),t._v(" "),e("button",{staticClass:"icon-close",on:{click:t.close}})]},proxy:!0}])})],1)}),[],!1,null,"74e56a7a",null).exports},64989:t=>{"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgdmlld2JveD0iMCAwIDE2IDE2IiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik0xMS45MjQgNC4wNjZsLTQuOTMyIDQuOTctMi44MjgtMi44M0wyLjc1IDcuNjE4bDQuMjQyIDQuMjQzIDYuMzY1LTYuMzY1LTEuNDMzLTEuNDMyeiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPgo="},87127:t=>{"use strict";t.exports="data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTS00LTRoMjR2MjRILTR6Ii8+PHBhdGggZD0iTTYuOS4xQzMgLjYtLjEgNC0uMSA4YzAgNC40IDMuNiA4IDggOCA0IDAgNy40LTMgOC02LjktMS4yIDEuMy0yLjkgMi4xLTQuNyAyLjEtMy41IDAtNi40LTIuOS02LjQtNi40IDAtMS45LjgtMy42IDIuMS00Ljd6IiBmaWxsPSIjZjRhMzMxIi8+PC9zdmc+Cg=="},32605:t=>{"use strict";t.exports="data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTS00LTRoMjR2MjRILTRWLTR6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTggMEMzLjYgMCAwIDMuNiAwIDhzMy42IDggOCA4IDgtMy42IDgtOC0zLjYtOC04LTh6IiBmaWxsPSIjZWQ0ODRjIi8+PHBhdGggZD0iTTUgNi41aDZjLjggMCAxLjUuNyAxLjUgMS41cy0uNyAxLjUtMS41IDEuNUg1Yy0uOCAwLTEuNS0uNy0xLjUtMS41UzQuMiA2LjUgNSA2LjV6IiBmaWxsPSIjZmRmZmZmIi8+PC9zdmc+Cg=="},63423:t=>{"use strict";t.exports="data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTQuOCAxMS4yaDYuNFY0LjhINC44djYuNHpNOCAwQzMuNiAwIDAgMy42IDAgOHMzLjYgOCA4IDggOC0zLjYgOC04LTMuNi04LTgtOHoiIGZpbGw9IiM0OWIzODIiLz48L3N2Zz4K"}}]);
+//# sourceMappingURL=editor.js.map?v=41d6ee4049ca67f60081 \ No newline at end of file