!function(e){if("object"==typeofexports&&"undefined"!=typeofmodule)module.exports=e();elseif("function"==typeofdefine&&define.amd)define([],e);else{("undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:this).SimpleMDE=e()}}(function(){returnfunctione(t,n,r){functioni(a,s){if(!n[a]){if(!t[a]){varl="function"==typeofrequire&&require;if(!s&&l)returnl(a,!0);if(o)returno(a,!0);varc=newError("Cannot find module '"+a+"'");throwc.code="MODULE_NOT_FOUND",c}varu=n[a]={exports:{}};t[a][0].call(u.exports,function(e){varn=t[a][1][e];returni(n||e)},u,u.exports,e,t,n,r)}returnn[a].exports}for(varo="function"==typeofrequire&&require,a=0;a<r.length;a++)i(r[a]);returni}({1:[function(e,t,n){"use strict";functionr(e){vart=e.length;if(t%4>0)thrownewError("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}functioni(e){returna[e>>18&63]+a[e>>12&63]+a[e>>6&63]+a[63&e]}functiono(e,t,n){for(varr,o=[],a=t;a<n;a+=3)r=(e[a]<<16)+(e[a+1]<<8)+e[a+2],o.push(i(r));returno.join("")}n.byteLength=function(e){return3*e.length/4-r(e)},n.toByteArray=function(e){vart,n,i,o,a,c=e.length;o=r(e),a=newl(3*c/4-o),n=o>0?c-4:c;varu=0;for(t=0;t<n;t+=4)i=s[e.charCodeAt(t)]<<18|s[e.charCodeAt(t+1)]<<12|s[e.charCodeAt(t+2)]<<6|s[e.charCodeAt(t+3)],a[u++]=i>>16&255,a[u++]=i>>8&255,a[u++]=255&i;return2===o?(i=s[e.charCodeAt(t)]<<2|s[e.charCodeAt(t+1)]>>4,a[u++]=255&i):1===o&&(i=s[e.charCodeAt(t)]<<10|s[e.charCodeAt(t+1)]<<4|s[e.charCodeAt(t+2)]>>2,a[u++]=i>>8&255,a[u++]=255&i),a},n.fromByteArray=function(e){for(vart,n=e.length,r=n%3,i="",s=[],l=0,c=n-r;l<c;l+=16383)s.push(o(e,l,l+16383>c?c:l+16383));return1===r?(t=e[n-1],i+=a[t>>2],i+=a[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=a[t>>10],i+=a[t>>4&63],i+=a[t<<2&63],i+="="),s.push(i),s.join("")};for(vara=[],s=[],l="undefined"!=typeofUint8Array?Uint8Array:Array,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,h=c.length;u<h;++u)a[u]=c[u],s[c.charCodeAt(u)]=u;s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},{}],2:[function(e,t,n){},{}],3:[function(e,t,n){"use strict";functionr(e){if(e>W)thrownewRangeError("Invalid typed array length");vart=newUint8Array(e);returnt.__proto__=i.prototype,t}functioni(e,t,n){if("number"==typeofe){if("string"==typeoft)thrownewError("If encoding is specified then the first argument must be a string");returns(e)}returno(e,t,n)}functiono(e,t,n){if("number"==typeofe)thrownewTypeError('"value" argument must not be a number');returnE(e)?function(e,t,n){if(t<0||e.byteLength<t)thrownewRangeError("'offset' is out of bounds");if(e.byteLength<t+(n||0))thrownewRangeError("'length' is out of bounds");varr;r=void0===t&&void0===n?newUint8Array(e):void0===n?newUint8Array(e,t):newUint8Array(e,t,n);returnr.__proto__=i.prototype,r}(e,t,n):"string"==typeofe?function(e,t){"string"==typeoft&&""!==t||(t="utf8");if(!i.isEncoding(t))thrownewTypeError('"encoding" must be a valid string encoding');varn=0|u(e,t),o=r(n),a=o.write(e,t);a!==n&&(o=o.slice(0,a));returno}(e,t):function(e){if(i.isBuffer(e)){vart=0|c(e.length),n=r(t);return0===n.length?n:(e.copy(n,0,0,t),n)}if(e){if(O(e)||"length"ine)return"number"!=typeofe.length||I(e.length)?r(0):l(e);if("Buffer"===e.type&&Array.isArray(e.data))returnl(e.data)}thrownewTypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e)}functiona(e){if("number"!=typeofe)thrownewTypeError('"size" argument must be a number');if(e<0)thrownewRangeError('"size" argument must not be negative')}functions(e){returna(e),r(e<0?0:0|c(e))}functionl(e){for(vart=e.length<0?0:0|c(e.length),n=r(t),i=0;i<t;i+=1)n[i]=255&e[i];returnn}functionc(e){if(e>=W)thrownewRangeError("Attempt to allocate Buffer larger than maximum size: 0x"+W.toString(16)+" bytes");return0|e}functionu(e,t){if(i.isBuffer(e))returne.length;if(O(e)||E(e))returne.byteLength;"string"!=typeofe&&(e=""+e);varn=e.length;if(0===n)return0;for(varr=!1;;)switch(t){case"ascii":case"latin1":case"b