!function(t,e){"object"==typeofexports&&"object"==typeofmodule?module.exports=e():"function"==typeofdefine&&define.amd?define([],e):"object"==typeofexports?exports.EditorJS=e():t.EditorJS=e()}(window,function(){returnfunction(t){vare={};functionn(o){if(e[o])returne[o].exports;varr=e[o]={i:o,l:!1,exports:{}};returnt[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}returnn.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)returnt;if(4&e&&"object"==typeoft&&t&&t.__esModule)returnt;varo=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeoft)for(varrint)n.d(o,r,function(e){returnt[e]}.bind(null,r));returno},n.n=function(t){vare=t&&t.__esModule?function(){returnt.default}:function(){returnt};returnn.d(e,"a",e),e},n.o=function(t,e){returnObject.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=161)}([function(t,e,n){varo=n(9),r=n(16),i=n(22),a=n(19),s=n(31),u=function(t,e,n){varc,l,f,d,h=t&u.F,p=t&u.G,v=t&u.S,g=t&u.P,y=t&u.B,m=p?o:v?o[e]||(o[e]={}):(o[e]||{}).prototype,b=p?r:r[e]||(r[e]={}),k=b.prototype||(b.prototype={});for(cinp&&(n=e),n)f=((l=!h&&m&&void0!==m[c])?m:n)[c],d=y&&l?s(f,o):g&&"function"==typeoff?s(Function.call,f):f,m&&a(m,c,f,t&u.U),b[c]!=f&&i(b,c,d),g&&k[c]!=f&&(k[c]=f)};o.core=r,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e){t.exports=function(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}},function(t,e){functionn(t,e){for(varn=0;n<e.length;n++){varo=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"ino&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}t.exports=function(t,e,o){returne&&n(t.prototype,e),o&&n(t,o),t}},function(t,e){t.exports=function(t){returnt&&t.__esModule?t:{default:t}}},function(t,e,n){varo,r,i;r=[e,n(1),n(2)],void0===(i="function"==typeof(o=function(o,r,i){"use strict";vara=n(3);Object.defineProperty(o,"__esModule",{value:!0}),o.default=void0,r=a(r),i=a(i);vars=function(){functiont(e){varn=e.config;if((0,r.default)(this,t),(thisinstanceoft?this.constructor:void0)===t)thrownewTypeError("Constructors for abstract class Module are not allowed.");this.config=n}return(0,i.default)(t,[{key:"state",set:function(t){this.Editor=t}}]),t}();o.default=s,s.displayName="Module",t.exports=e.default})?o.apply(e,r):o)||(t.exports=i)},function(t,e,n){varo=n(337);t.exports=function(t,e){if("function"!=typeofe&&null!==e)thrownewTypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}},function(t,e,n){varo=n(55),r=n(338);t.exports=function(t,e){return!e||"object"!==o(e)&&"function"!=typeofe?r(t):e}},function(t,e){functionn(e){returnt.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){returnt.__proto__||Object.getPrototypeOf(t)},n(e)}t.exports=n},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){varn=t.exports="undefined"!=typeofwindow&&window.Math==Math?window:"undefined"!=typeofself&&self.Math==Math?self:Function("return this")();"number"==typeof__g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeoft?null!==t:"function"==typeoft}},function(t,e,n){varo=n(10);t.exports=function(t){if(!o(t))throwTypeError(t+" is not an object!");returnt}},function(t,e,n){varo=n(73)("wks"),r=n(41),i=n(9).Symbol,a="function"==typeofi;(t.exports=function(t){returno[t]||(o[t]=a&&i[t]||(a?i:r)("Symbol."+t))}).store=o},function(t,e,n){varo,r,i;r=[e,n(55),n(97),n(1),n(2)],void0===(i="function"==typeof(o=function(o,r,i,a,s){"use strict";varu=n(3);Object.defineProperty(o,"__esModule",{value:!0}),o.default=void0,r=u(r),i=u(i),a=u(a),s=u(s);varc=function(){functiont(){(0,a.default)(this,t)}return(0,s
"undefined"!=typeofself&&self,t.exports=function(t){functione(o){if(n[o])returnn[o].exports;varr=n[o]={i:o,l:!1,exports:{}};returnt[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}varn={};returne.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){varn=t&&t.__esModule?function(){returnt.default}:function(){returnt};returne.d(n,"a",n),n},e.o=function(t,e){returnObject.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});varo=function(){functiont(t,e){for(varn=0;n<e.length;n++){varo=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"ino&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}returnfunction(e,n,o){returnn&&t(e.prototype,n),o&&t(e,o),e}}(),r={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,BACKSPACE:8,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,INSERT:45,DELETE:46},i={CMD:["CMD","CONTROL","COMMAND","WINDOWS","CTRL"],SHIFT:["SHIFT"],ALT:["ALT","OPTION"]},a=function(){functiont(e){varn=this;(function(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")})(this,t),this.commands={},this.keys={},this.parseShortcutName(e.name),this.element=e.on,this.callback=e.callback,this.executeShortcut=function(t){n.execute(t)},this.element.addEventListener("keydown",this.executeShortcut,!1)}returno(t,[{key:"parseShortcutName",value:function(t){t=t.split("+");for(vare=0;e<t.length;e++)if(t[e]=t[e].toUpperCase(),t[e].length>1)for(varnini)i[n].includes(t[e])&&(this.commands[n]=!0);elsethis.keys[t[e]]=!0}},{key:"execute",value:function(t){vare=t.ctrlKey||t.metaKey,n=t.shiftKey,o=t.altKey,i={CMD:e,SHIFT:n,ALT:o},a=void0,s=!0;for(ainthis.commands)s=s&&i[a];varu=void0,c=!0;for(uinthis.keys)c=c&&t.keyCode===r[u];s&&c&&this.callback(t)}},{key:"remove",value:function(){this.element.removeEventListener("keydown",this.executeShortcut)}}]),t}();e.default=a}])},function(t,e,n){varo,r,i;r=[e,n(1),n(2),n(13)],void0===(i="function"==typeof(o=function(o,r,i,a){"use strict";vars=n(3);Object.defineProperty(o,"__esModule",{value:!0}),o.default=void0,r=s(r),i=s(i),a=s(a);varu=function(){functiont(e){varn=e.data;e.config,e.api,(0,r.default)(this,t),this.CSS={wrapper:"ce-stub",info:"ce-stub__info",title:"ce-stub__title",subtitle:"ce-stub__subtitle"},this.title=n.title||"Error",this.subtitle="The block can not be displayed correctly.",this.savedData=n.savedData,this.wrapper=this.make()}return(0,i.default)(t,[{key:"render",value:function(){returnthis.wrapper}},{key:"save",value:function(){returnthis.savedData}},{key:"make",value:function(){vart=a.default.make("div",this.CSS.wrapper),e=a.default.svg("sad-face",52,52),n=a.default.make("div",this.CSS.info),o=a.default.make("div",this.CSS.title,{textContent:this.title}),r=a.default.make("div",this.CSS.subtitle,{textContent:this.subtitle});returnt.appendChild(e),n.appendChild(o),n.appendChild(r),t.appendChild(n),t}}]),t}();o.default=u,u.displayName="Stub",t.exports=e.default})?o.apply(e,r):o)||(t.exports=i)},function(t,e,n){window,t.exports=function(t){vare={};functionn(o){if(e[o])returne[o].exports;varr=e[o]={i:o,l:!1,exports:{}};returnt[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}returnn.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)returnt;if(4&e&&"object"==typeoft&&t&&t.__esModule)returnt;varo=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeoft)for(varrint)n.d(o,r,function(e){returnt[e]}.bind(null,r));returno},n.n=function(t){vare=t&&t.__esModule?function(){returnt.default}:function(){returnt};returnn.d
varr=function(){functiont(e){varn=e.data,o=(e.config,e.api);!function(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}(this,t),this.api=o,this._CSS={block:this.api.styles.block,wrapper:"ce-paragraph"},this._data={},this._element=this.drawView(),this.data=n}returno(t,[{key:"drawView",value:function(){vart=document.createElement("DIV");returnt.classList.add(this._CSS.wrapper,this._CSS.block),t.contentEditable=!0,t}},{key:"render",value:function(){returnthis._element}},{key:"merge",value:function(t){vare={text:this.data.text+t.text};this.data=e}},{key:"validate",value:function(t){return""!==t.text.trim()}},{key:"save",value:function(t){return{text:t.innerHTML}}},{key:"onPaste",value:function(t){vare={text:t.detail.data.innerHTML};this.data=e}},{key:"data",get:function(){vart=this._element.innerHTML;returnthis._data.text=t,this._data},set:function(t){this._data=t||{},this._element.innerHTML=this._data.text||""}}],[{key:"sanitize",get:function(){return{text:{br:!0}}}},{key:"pasteConfig",get:function(){return{tags:["P"]}}}]),t}();t.exports=r},function(t,e,n){varo=n(2);"string"==typeofo&&(o=[[t.i,o,""]]),n(4)(o,{hmr:!0,transform:void0,insertInto:void0}),o.locals&&(t.exports=o.locals)},function(t,e,n){(t.exports=n(3)(!1)).push([t.i,".ce-paragraph {\n line-height: 1.6em;\n outline: none;\n}\n\n.ce-paragraph p:first-of-type{\n margin-top: 0;\n}\n\n.ce-paragraph p:last-of-type{\n margin-bottom: 0;\n}\n",""])},function(t,e){t.exports=function(t){vare=[];returne.toString=function(){returnthis.map(function(e){varn=function(t,e){varn=t[1]||"",o=t[3];if(!o)returnn;if(e&&"function"==typeofbtoa){varr=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(o),i=o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"});return[n].concat(i).concat([r]).join("\n")}return[n].join("\n")}(e,t);returne[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeoft&&(t=[[null,t,""]]);for(varo={},r=0;r<this.length;r++){vari=this[r][0];"number"==typeofi&&(o[i]=!0)}for(r=0;r<t.length;r++){vara=t[r];"number"==typeofa[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(t,e,n){varo={},r=function(t){vare;returnfunction(){returnvoid0===e&&(e=function(){returnwindow&&document&&document.all&&!window.atob}.apply(this,arguments)),e}}(),i=function(t){vare={};returnfunction(t){if("function"==typeoft)returnt();if(void0===e[t]){varn=function(t){returndocument.querySelector(t)}.call(this,t);if(window.HTMLIFrameElement&&ninstanceofwindow.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}returne[t]}}(),a=null,s=0,u=[],c=n(5);functionl(t,e){for(varn=0;n<t.length;n++){varr=t[n],i=o[r.id];if(i){i.refs++;for(vara=0;a<i.parts.length;a++)i.parts[a](r.parts[a]);for(;a<r.parts.length;a++)i.parts.push(g(r.parts[a],e))}else{vars=[];for(a=0;a<r.parts.length;a++)s.push(g(r.parts[a],e));o[r.id]={id:r.id,refs:1,parts:s}}}}functionf(t,e){for(varn=[],o={},r=0;r<t.length;r++){vari=t[r],a=e.base?i[0]+e.base:i[0],s={css:i[1],media:i[2],sourceMap:i[3]};o[a]?o[a].parts.push(s):n.push(o[a]={id:a,parts:[s]})}returnn}functiond(t,e){varn=i(t.insertInto);if(!n)thrownewError("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");varo=u[u.length-1];if("top"===t.insertAt)o?o.nextSibling?n.insertBefore(e,o.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),u.push(e);elseif("bottom"===t.insertAt)n.appendChild(e);else{if("object"!=typeoft.insertAt||!t.insertAt.before)thrownewError("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");varr=i(t.insertInto+" "+t.insertAt.before);n.insertBefore(e,r)}}functionh(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);vare=u.indexOf(t);e>=0&&u.splice(e,1)}functio