!function(t,e){"object"==typeofexports&&"undefined"!=typeofmodule?module.exports=e():"function"==typeofdefine&&define.amd?define(e):(t="undefined"!=typeofglobalThis?globalThis:t||self).RevealNotes=e()}(this,(function(){"use strict";functiont(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}lete={baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};constn=/[&<>"']/,i=/[&<>"']/g,s=/[<>"']|&(?!#?\w+;)/,r=/[<>"']|&(?!#?\w+;)/g,a={"&":"&","<":"<",">":">",'"':""","'":"'"},l=t=>a[t];functiono(t,e){if(e){if(n.test(t))returnt.replace(i,l)}elseif(s.test(t))returnt.replace(r,l);returnt}constc=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;functionp(t){returnt.replace(c,((t,e)=>"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""))}constu=/(^|[^\[])\^/g;functiond(t,e){t=t.source||t,e=e||"";constn={replace:(e,i)=>(i=(i=i.source||i).replace(u,"$1"),t=t.replace(e,i),n),getRegex:()=>newRegExp(t,e)};returnn}consth=/[^\w:]/g,g=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;functionm(t,e,n){if(t){lett;try{t=decodeURIComponent(p(n)).replace(h,"").toLowerCase()}catch(t){returnnull}if(0===t.indexOf("javascript:")||0===t.indexOf("vbscript:")||0===t.indexOf("data:"))returnnull}e&&!g.test(n)&&(n=function(t,e){f[" "+t]||(k.test(t)?f[" "+t]=t+"/":f[" "+t]=S(t,"/",!0));constn=-1===(t=f[" "+t]).indexOf(":");return"//"===e.substring(0,2)?n?e:t.replace(x,"$1")+e:"/"===e.charAt(0)?n?e:t.replace(b,"$1")+e:t+e}(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(t){returnnull}returnn}constf={},k=/^[^:]+:\/*[^/]*$/,x=/^([^:]+:)[\s\S]*$/,b=/^([^:]+:\/*[^/]*)[\s\S]*$/;constw={exec:function(){}};functiony(t){lete,n,i=1;for(;i<arguments.length;i++)for(nine=arguments[i],e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);returnt}functionv(t,e){constn=t.replace(/\|/g,((t,e,n)=>{leti=!1,s=e;for(;--s>=0&&"\\"===n[s];)i=!i;returni?"|":" |"})).split(/ \|/);leti=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>e)n.splice(e);elsefor(;n.length<e;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(/\\\|/g,"|");returnn}functionS(t,e,n){consti=t.length;if(0===i)return"";lets=0;for(;s<i;){constr=t.charAt(i-s-1);if(r!==e||n){if(r===e||!n)break;s++}elses++}returnt.substr(0,i-s)}functionT(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function_(t,e){if(e<1)return"";letn="";for(;e>1;)1&e&&(n+=t),e>>=1,t+=t;returnn+t}functionz(t,e,n,i){consts=e.href,r=e.title?o(e.title):null,a=t[1].replace(/\\([\[\]])/g,"$1");if("!"!==t[0].charAt(0)){i.state.inLink=!0;constt={type:"link",raw:n,href:s,title:r,text:a,tokens:i.inlineTokens(a,[])};returni.state.inLink=!1,t}return{type:"image",raw:n,href:s,title:r,text:o(a)}}classE{constructor(t){this.options=t||e}space(t){conste=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){conste=this.rules.block.code.exec(t);if(e){constt=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:S(t,"\n")}}}fences(t){conste=this.rules.block.fences.exec(t);if(e){constt=e[0],n=function(t,e){constn=t.match(/^(\s+)(?:```)/);if(null===n)returne;consti=n[1];returne.split("\n").map((t=>{conste=t.match(/^\s+/);if(null===e)returnt;const[n]=e;returnn.length>=i.length?t.slice(i.length):t})).join("\n")}(t,e[3]||"");return{type:"code",raw:t,lang:e[2]?e[2].trim