assets/themes/j1/core/js/template.min.js in j1-template-2024.1.1 vs assets/themes/j1/core/js/template.min.js in j1-template-2024.1.2
- old
+ new
@@ -13,10 +13,10 @@
/* Articulate.js (1.1.0). (C) 2017 Adam Coti.
MIT @license: en.wikipedia.org/wiki/MIT_License
See Github page at: https://github.com/acoti/articulate.js
See Web site at: https://purefreedom.com/articulate/
*/
-(function(e){"use strict";const t=n(8633);const r=n(3291);const i=r(t);const a="smooth";const o=10;const s=10;const l=30;const c=3;const u=1e3;const d=1e4;const p=/Firefox/i.test(navigator.userAgent);const f=/Edg/i.test(navigator.userAgent);const h=/chrome/i.test(navigator.userAgent);const m=h&&!f;const g="Google UK English Female";const v="Google US English";const y="Microsoft";const b=document.getElementsByTagName("html")[0].getAttribute("lang");var w="";var C=navigator.language||navigator.userLanguage;var x=ne("googtrans");var E=100;var S={};var L={};var k=new Array;var T=new Array;var A=new Array;var I=new Array;var M=new Array;var N=[];var D=.9;var O=1;var _=.9;var P=D;var F=O;var B=_;var R=". ";var j=0;var $=false;var W=false;var H=false;var U;var G;var q;var V;var z;var K;var X;var Y;var J={"de-DE":"Google Deutsch","en-GB":"Google UK English Female","es-ES":"Google español","fr-FR":"Google français","it-IT":"Google italiano"};var Q={"en-GB":"Microsoft Libby Online (Natural) - English (United Kingdom)","es-ES":"Microsoft Elvira Online (Natural) - Spanish (Spain)","fr-FR":"Microsoft Denise Online (Natural) - French (France)","de-DE":"Microsoft Katja Online (Natural) - German (Germany)","it-IT":"Microsoft Elsa Online (Natural) - Italian (Italy)"};var Z={"en-GB":"Microsoft Hazel - English (United Kingdom)","de-DE":"Microsoft Katja - German (Germany)"};if(b=="en"){w=b+"-"+"GB"}else{w=b+"-"+b.toUpperCase()}function ee(t){var n=t.startLine;var r;function i(t){r=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight);e("#content").attr("style","opacity: .3");if(n<r){setTimeout((function(){t++;n=n+d;window.scrollTo({top:n,behavior:"smooth"});i(t)}),u)}else{setTimeout((function(){Y=true;e("#content").attr("style","opacity: 1")}),u)}}i({startLine:0})}function te(){var e={};for(var t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n){if(hasOwnProperty.call(n,r)){e[r]=n[r]}}}return e}function ne(e){var t=e+"=";var n=document.cookie.split(";");for(var r=0;r<n.length;r++){var i=n[r];while(i.charAt(0)===" "){i=i.substring(1,i.length)}if(i.indexOf(t)===0){var a=i.substring(t.length,i.length);return a}}return undefined}function re(e,t){this.prepend=e;this.append=t}function ie(e,t){this.name=e;this.language=t}function ae(e){var t=0;var n=e.split(" ");for(var r=0;r<n.length;r++){if(n[r]!=""){t+=1}}return t}function oe(){let e="systemVoices START - ";var t=speechSynthesis.getVoices();for(var n=0;n<t.length;n++){M.push(new ie(t[n].name,t[n].lang));if(t[n].lang.includes("en")||t[n].lang.includes("de-DE")||t[n].lang.includes("es-ES")||t[n].lang.includes("pl")||t[n].lang.includes("nl")){e+=t[n].lang.toString();e+=" : ";e+=t[n].name.toString();e+="\n"}}e+=" - systemVoices END."}oe();if(typeof speechSynthesis!=="undefined"&&speechSynthesis.onvoiceschanged!==undefined){speechSynthesis.onvoiceschanged=oe}if("speechSynthesis"in window){var se=new SpeechSynthesisUtterance;window.speechSynthesis.cancel()}if(x===undefined){V=w}else{var le=x.split("/");if(le[2]=="en"){V="en-GB"}else if(le[2].includes("ar")){V="ar-EG"}else if(le[2].includes("cs")){V="cs-CZ"}else if(le[2].includes("da")){V="da-DK"}else if(le[2].includes("en")){V="en-UK"}else if(le[2].includes("et")){V="et-EE"}else if(le[2].includes("ka")){V="ka-GE"}else if(le[2].includes("el")){V="el-GR"}else if(le[2].includes("iw")){V="he-IL"}else if(le[2].includes("hi")){V="hi-IN"}else if(le[2].includes("ja")){V="ja-JP"}else if(le[2].includes("zh")){V="zh-CN"}else{V=le[2]+"-"+le[2].toUpperCase()}}if(m){var z=J[V]}if(f){var z=Q[V]}if(p){var z=Z[V]}var ce={speak:function(n){var r="";var u=new Array;var d=this;var p,f,h;var m;Y=false;L=te(n,t,S||{});if(!L.isPaused){ee({startLine:0})}else{Y=true}u["a"]=new re("Link, ",R);u["dt"]=new re(R,R);u["img"]=new re("Image element, ",R);u["table"]=new re("Table element, ",R);u["card-header"]=new re(R,R);u[".doc-example"]=new re("Example element, ",R);u[".admonitionblock"]=new re("Attention element, ",R);u[".listingblock"]=new re("Text element, ",R);u[".gist"]=new re("Gist element, ",R);u[".slider"]=new re("Slider element, ",R);u[".modal"]=new re("Info element, ",R);u[".masonry"]=new re("Masonry element, ",R);u[".lightbox-block"]=new re("Lightbox element, ",R);u[".gallery"]=new re("Gallery element, ",R);u[".audioblock"]=new re("Audio element, ",R);u[".videoblock"]=new re("Video element, ",R);u[".videojs-player"]=new re("Video element, ",R);u[".youtube-player"]=new re("Video element, ",R);u[".dailymotion-player"]=new re("Video element, ",R);u[".vimeo-player"]=new re("Video element, ",R);u[".wistia-player"]=new re("Video element, ",R);u["figure"]=new re("Figure element, ",R);u["parallax-quoteblock"]=new re("Quote element, ",R);u["blockquote"]=new re("Quote element, ",R);u["quoteblock"]=new re("Quote element, ",R);m=["audio","button","canvas","code","del","pre","dialog","embed","form","head","iframe","meter","nav","noscript","object","picture","script","select","style","textarea","video"];if(window.speechSynthesis.speaking){return}var g=setInterval((function(){if(Y){d.each((function(){p=e(this).clone();f=w(p);f=e(f).html();h=C(f);r=h}));if(U!==undefined){P=U}else{P=D}if(G!==undefined){F=G}else{F=O}if(q!==undefined){B=q}else{B=_}se=new SpeechSynthesisUtterance;se.rate=P;se.pitch=F;se.volume=B;se.voice=speechSynthesis.getVoices().filter((function(e){return e.name==z}))[0];se.previousScrollPosition=0;b(se,r);clearInterval(g)}}),o);function v(n){var r=[];n=n.replace(/^\s+>/gm,"");n=n.replaceAll(" ..",".");n=n.replace(/(\r\n|\n|\r)/gm,"");n=n.replace(/\s+/gm," ");r=n.split(".");r.forEach(((e,t)=>{r[t]=r[t].replace(/^\s+/g,"");r[t]=r[t].replaceAll('""',"")}));r.forEach(((e,t)=>{if(r[t].length>0){r[t]=r[t]+". "}else{r.splice(t,1)}}));r.forEach(((e,t)=>{if(r[t].length==0){r.splice(t,1)}}));var a=[];r.forEach(((t,n)=>{var i=r[n];var o=y(i,l,c);var s=e("#content").find("p:contains('"+o+"')");var u;if(s.length>0){u=Math.round(s[0].offsetTop)}else{u=undefined;s=undefined}a.push({text:i,offsetTop:u,$paragraph:s})}));N=i.selectHeadings(t.contentSelector,t.headingSelector);a.forEach(((t,n)=>{var r;var i;if(t.offset===undefined){r=t.text.replaceAll(". ","");if(N!==null){for(var a of N){i=a.innerText.replaceAll("?","");i=a.innerText.replaceAll("!","");if(i==r){var o=e("#"+a.id);if(o.length>0){var s=o.offset().top;t.offsetTop=Math.round(s)}else{}}}}}}));return a}function y(e,t,n){var r=0;var i=r+t;var a=e.substr(r,i);var o=a.split(/(\s+)/);var s;o.pop();o.pop();a=o.join("");a=a.replaceAll(".","");s=ae(a);if(s<n){console.warn("no search possible on this fraction of subText");return undefined}else{return a}}function b(t,n){const r=window.speechSynthesis;e(".mdib-speaker").addClass("mdib-spin");t.addEventListener("start",(e=>{if(t.offsetTop!==undefined){if(t.offsetTop>=t.previousScrollPosition){window.scrollTo({top:t.offsetTop-E,behavior:a})}}if(t.$paragraph!==undefined){t.$paragraph.addClass("speak-highlighted")}}));t.addEventListener("end",(function(e){if(t.offsetTop!==undefined){if(t.offsetTop>=t.previousScrollPosition){t.previousScrollPosition=t.offsetTop}H=t.offsetTop-E}if(t.$paragraph!==undefined){t.$paragraph.removeClass("speak-highlighted")}W=false;j++}));var i=false;var o=setInterval((function(){if(j==K||$){j=0;$=false;W=false;t.$paragraph!==undefined&&t.$paragraph.removeClass("speak-highlighted");e(".mdib-speaker").removeClass("mdib-spin");clearInterval(o)}else{if(!i&&L.isPaused){j=L.lastChunk;i=true}t.text=n[j].text;t.offsetTop=n[j].offsetTop;t.$paragraph=n[j].$paragraph;if(!W){r.speak(t);W=true}}}),s)}function w(t){var n,r,i,a,o,s,l,c;if(T.length>0){for(var d in T){var p=m.indexOf(T[d]);if(p>-1){m.splice(p,1)}}}for(var d in m){e(t).find(m[d]).addBack(m[d]).not("[data-speak2me-recognize]").each((function(){e(this).html("")}))}if(k.length>0){for(var d in k){e(t).find(k[d]).addBack(k[d]).not("[data-speak2me-recognize]").each((function(){e(this).html("")}))}}e(t).find("[data-speak2me-ignore]").addBack("[data-speak2me-ignore]").each((function(){e(this).html("")}));e(t).find(".speak2me-ignore").addBack("[data-speak2me-ignore]").each((function(){e(this).html("")}));e(t).find("[data-speak2me-prepend]").addBack("[data-speak2me-prepend]").each((function(){n=e(this).data("speak2me-prepend");e(this).prepend(n+" ")}));e(t).find("[data-speak2me-append]").addBack("[data-speak2me-append]").each((function(){n=e(this).data("speak2me-append");e(this).append(" "+n)}));var f=0;for(var h in u){e(t).find(h).each((function(){if(I[h]){e(this).prepend(I[h].prepend+R);e(this).append(I[h].append+R)}else{e(this).prepend(u[h].prepend+R);e(this).append(u[h].append+R)}}))}e(t).find("h1,h2,h3,h4,h5,h6,li,p").addBack("h1,h2,h3,h4,h5,h6,li,p").each((function(){e(this).append(R)}));e(t).find("br").each((function(){e(this).after(R)}));e(t).find("figure").addBack("figure").each((function(){n=e(this).find("figcaption").html();if(I["figure"]){c=I["figure"].prepend}else{c=u["figure"].prepend}if(n!=undefined&&n!==""){e("<div>"+c+R+n+"</div>").insertBefore(this)}e(this).remove()}));e(t).find("img").addBack("img").each((function(){n=e(this).attr("alt");var t=e(this).parent();var r=t.get(0).tagName;if(I["img"]){c=I["img"].prepend}else{c=u["img"].prepend}if(n!==undefined&&n!=""){if(r=="PICTURE"){var i;e("<div>"+c+R+n+R+"</div>").insertBefore(t)}else{e("<div>"+c+R+n+R+"</div>").insertBefore(this)}}e(this).remove()}));e(t).find("a").addBack("a").each((function(){var t=e(this);n=t[0].innerText;c=u["a"].prepend;l=u["a"].append;e("<div>"+n+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this);e(this).remove()}));e(t).find(".admonitionblock").addBack(".admonitionblock").each((function(){a=this.classList[1];o=e(this).find(".content");s=o[0].innerText;c=u[".admonitionblock"].prepend+a+". ";l=u[".admonitionblock"].append;if(s!==undefined&&s!=""){e("<div>"+c+" "+s+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".parallax-quoteblock").addBack(".parallax-quoteblock").each((function(){o=e(this).find(".quote-text");s=o[0].innerText;c=u["quoteblock"].prepend;l=u["quoteblock"].append;if(s!==undefined&&s!=""){e("<div>"+c+R+s+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".quoteblock").addBack("quoteblock").each((function(){var t=e(this).find(".attribution");o=e(this).find("quote");s=o[0].innerText+"quoted by, "+t[0].innerText+", ";c=u["quoteblock"].prepend;l=u["quoteblock"].append;if(s!==undefined&&s!=""){e("<div>"+c+R+s+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find("table").addBack("table").each((function(){n=e(this).find("caption").text();c=u["table"].prepend;l=u["table"].append;if(n!==undefined&&n!=""){e("<div>"+c+R+n+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".audioblock").addBack(".audioblock").each((function(){n=e(this).find(".title").text();c=u[".audioblock"].prepend;l=u[".audioblock"].append;if(n!==undefined&&n!=""){e("<div>"+c+R+"with the title, "+n+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".videoblock").addBack(".videoblock").each((function(){n=e(this).find(".title").text();c=u[".videoblock"].prepend;l=u[".videoblock"].append;if(n!==undefined&&n!=""){e("<div>"+c+R+"with the title, "+n+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".videojs-player").addBack(".videojs-player").each((function(){n=e(this).find(".video-title").text();c=u[".videojs-player"].prepend;l=u[".videojs-player"].append;if(n!==undefined&&n!=""){e("<div>"+c+R+"with the title, "+n+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".youtube-player").addBack(".youtube-player").each((function(){n=e(this).find(".video-title").text();c=u[".youtube-player"].prepend;l=u[".youtube-player"].append;if(n!==undefined&&n!=""){e("<div>"+c+R+"with the title, "+n+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".dailymotion-player").addBack(".dailymotion-player").each((function(){n=e(this).find(".video-title").text();c=u[".dailymotion-player"].prepend;l=u[".dailymotion-player"].append;if(n!==undefined&&n!=""){e("<div>"+c+R+"with the title, "+n+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".vimeo-player").addBack(".vimeo-player").each((function(){n=e(this).find(".video-title").text();c=u[".vimeo-player"].prepend;l=u[".vimeo-player"].append;if(n!==undefined&&n!=""){e("<div>"+c+R+"with the title, "+n+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".wistia-player").addBack(".wistia-player").each((function(){n=e(this).find(".video-title").text();c=u[".wistia-player"].prepend;l=u[".wistia-player"].append;if(n!==undefined&&n!=""){e("<div>"+c+R+"with the title, "+n+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".card-header").addBack("card-header").each((function(){i=e(this).find(".card-title");c=u["card-header"].prepend;l=u["card-header"].append;if(i.length){r=i[0].innerText+R}else{r=""}e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+r+"</div>").insertBefore(this);e(i).remove()}));e(t).find(".doc-example").addBack(".doc-example").each((function(){c=u[".doc-example"].prepend;l=u[".doc-example"].append;e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this);e(this).remove()}));e(t).find(".listingblock").addBack(".listingblock").each((function(){i=e(this).find(".title");if(i.length){n=i[0].innerText}else{n=""}c=u[".listingblock"].prepend;l=u[".listingblock"].append;if(n!==undefined&&n!=""){e("<div>"+c+" with the caption,"+n+R+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".gist").addBack(".gist").each((function(){if(e(this).prev()[0]!==undefined&&e(this).prev()[0].innerText!==undefined){r=e(this).prev()[0].innerText;i=e(this).prev();e(i).remove()}else{r=""}c=u[".gist"].prepend;l=u[".gist"].append;if(r!==undefined&&r!=""){e("<div>"+c+" with the caption, "+r+R+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".modal").addBack(".modal").each((function(){e(this).remove()}));e(t).find(".masonry").addBack(".masonry").each((function(){if(e(this).prev()[0].innerText!==undefined){r=e(this).prev()[0].innerText;i=e(this).prev();e(i).remove()}else{r=""}c=u[".masonry"].prepend;l=u[".masonry"].append;if(r!==undefined&&r!=""){e("<div>"+c+" with the caption,"+r+R+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".slider").addBack(".slider").each((function(){if(e(this).prev()[0].innerText!==undefined){r=e(this).prev()[0].innerText;i=e(this).prev();e(i).remove()}else{r=""}c=u[".slider"].prepend;l=u[".slider"].append;if(r!==undefined&&r!=""){e("<div>"+c+" with the caption, "+r+R+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".gallery").addBack(".gallery").each((function(){if(e(this).prev()[0]!==undefined&&e(this).prev()[0].innerText!==undefined){r=e(this).prev()[0].innerText;i=e(this).prev();e(i).remove()}else{r=""}c=u[".gallery"].prepend;l=u[".gallery"].append;if(r!==undefined&&r!=""){c!==""&&e("<div>"+c+" with the caption "+r+R+"</div>").insertBefore(this);l!==""&&e("<div>"+l+"</div>").insertBefore(this)}else{c!==""&&e("<div>"+c+R+"</div>").insertBefore(this);l!==""&&e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".lightbox-block").addBack(".lightbox-block").each((function(){if(e(this).prev()[0].innerText!==undefined){r=e(this).prev()[0].innerText;i=e(this).prev();e(i).remove()}else{r=""}c=u[".lightbox-block"].prepend;l=u[".lightbox-block"].append;if(r!==undefined&&r!=""){e("<div>"+c+" with the caption,"+r+R+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find("[data-speak2me-swap]").addBack("[data-speak2me-swap]").each((function(){n=e(this).data("speak2me-swap");e(this).text(n)}));e(t).find("[data-speak2me-spell]").addBack("[data-speak2me-spell]").each((function(){n=e(this).text();n=n.split("").join(" ");e(this).text(n)}));return t}function C(e){var t,n,r,i,a,e;while(e.indexOf("\x3c!-- <speak2me>")!=-1){t=e.indexOf("\x3c!-- <speak2me>");n=e.indexOf("</speak2me> --\x3e",t);if(n==-1){break}r=e.substring(t+17,n);i=e.substring(0,t);a=e.substring(n+17);e=i+" "+r+" "+a}e=e.replace(/<!--[\s\S]*?-->/g,"");e=e.replace(/(<([^>]+)>)/gi,"");var o=A.length;var s=0;var l,c;while(s<o){l=A[s];l=l.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");c=A[s+1]+" ";var u=new RegExp(l,"gi");var e=e.replace(u,c);s=s+2}e=e.replaceAll('"',"");e=e.replaceAll("“","");e=e.replaceAll("”","");e=e.replaceAll(":",".");e=e.replaceAll("., ",". ");e=e.replaceAll(" , ",", ");e=e.replaceAll(". .","");e=e.replaceAll(", .","");e=e.replaceAll(" , ","");e=e.replace(/^$/g,"\n");e=e.replace(/^\s+$/g,"\n");e=e.replace(/\s+\.\s+/g,"\n");e=e.replace(/\s+\.\s+$/g,"\n");e=e.replace(/\.\./g,".");e=e.replaceAll("e.g.","for example");e=e.replaceAll("E.g.","For example, ");e=e.replaceAll("etc.","and so on, ");e=e.replaceAll("z. B.","zum Beispiel, ");e=e.replace(/[\!\?]/g,". ");e=e.replaceAll("—",R);e=e.replaceAll("–",R);e=e.replaceAll("--",R);var d=document.createElement("textarea");d.innerHTML=e;e=d.value;e=e.replace(/^\s*(\b\w+\b)\s*$/gm,"$1. ");e=e.replace(/^\s*(\b\w+\b\s*[0-9]{4})$/gm,"$1. ");e=e.replace(/\s+/g," ");const p=v(e);K=p.length;return p}return se},pause:function(){window.speechSynthesis.pause();return this},resume:function(){window.speechSynthesis.resume();return this},stop:function(){window.speechSynthesis.cancel();$=true},enabled:function(){return"speechSynthesis"in window},isSpeaking:function(){return window.speechSynthesis.speaking},isSpoken:function(){if(window.speechSynthesis.speaking){return j}else{return false}},isScrolled:function(){if(window.speechSynthesis.speaking){return H}else{return false}},isPaused:function(){return window.speechSynthesis.paused},rate:function(){var e=arguments[0];if(e>=.1&&e<=10){U=e}else if(e===undefined){U=void 0;P=D}return this},pitch:function(){var e=arguments[0];if(e>=.1&&e<=2){G=e}else if(e===undefined){G=void 0;F=O}return this},volume:function(){var e=arguments[0];if(e>=0&&e<=1){q=e}else if(e===undefined){q=void 0;B=_}return this},ignore:function(){var e=arguments.length;k.length=0;while(e>0){e--;k.push(arguments[e])}return this},recognize:function(){var e=arguments.length;T.length=0;while(e>0){e--;T.push(arguments[e])}return this},replace:function(){var e=arguments.length;A.length=0;var t=0;while(t<e){A.push(arguments[t],arguments[t+1]);t=t+2;if(e-t==1){break}}return this},customize:function(){var e=arguments.length;if(e==0){I=[]}if(e==2){if(["img","table","figure"].indexOf(arguments[0])==-1){console.warn("When customizing, tag indicated must be either 'img', 'table', or 'figure'.");return}I[arguments[0].toString()]=new re(arguments[1].toString())}if(e==3){if(["q","ol","ul","blockquote"].indexOf(arguments[0])==-1){console.warn("When customizing, tag indicated must be either 'q', 'ol', 'ul' or 'blockquote'.");return}I[arguments[0].toString()]=new re(arguments[1].toString(),arguments[2].toString())}return this},getVoices:function(){if(arguments.length==0){return M}var t=e(arguments[0]);var n="Choose a voice";if(arguments[1]!==undefined){n=arguments[1]}t.append(e("<select id='voiceSelect' name='voiceSelect'><option value='none'>"+n+"</option></select>"));var r=0;for(var i=0;i<M.length;i++){if(m&&M[i].name.includes(y)){r++;continue}if(f&&!M[i].name.includes("Natural")){r++;continue}var a=document.createElement("option");a.textContent=M[i].name+" ("+M[i].language+")";a.setAttribute("value",M[i].name);if(z!==undefined){if(M[i].name===z){a.setAttribute("selected","selected")}}else{if(M[i].name.includes(g)){}}a.setAttribute("data-speak2me-language",M[i].language);t.find("select").append(a)}return i-r},setVoice:function(){if(arguments.length<2){return this}var e,t;if(arguments[0]=="name"){e=arguments[1];for(var n=0;n<M.length;n++){if(M[n].name==e){g=e}}}if(arguments[0]=="language"){t=arguments[1].toUpperCase();if(t.length==2){for(var n=0;n<M.length;n++){if(M[n].language.substring(0,2).toUpperCase()==t){g=M[n].name;break}}}else{for(var n=0;n<M.length;n++){if(M[n].language==t){g=M[n].name;break}}}}return this}};e.fn.speak2me=function(t){if(ce[t]){return ce[t].apply(this,Array.prototype.slice.call(arguments,1))}else if(typeof t==="object"||!t){return ce.speak.apply(this,arguments)}else{e.error("Method "+t+" does not exist on $.speak2me")}}})($)},4525:e=>{e.exports=function(e){var t=[].forEach;var n=[].some;var r=document.body;var i=true;var a=" ";function o(e,t){var n=t.appendChild(l(e));if(e.children.length){var r=c(e.isCollapsed);e.children.forEach((function(e){o(e,r)}));n.appendChild(r)}}function s(e,t){var n=false;var r=c(n);t.forEach((function(e){o(e,r)}));var i=document.querySelector(e);if(i===null){return}if(i.firstChild){i.removeChild(i.firstChild)}if(t.length===0){return i}return i.appendChild(r)}function l(n){var r=document.createElement("li");var i=document.createElement("a");if(e.listItemClass){r.setAttribute("class",e.listItemClass)}if(e.onClick){i.onclick=e.onClick}if(e.includeHtml&&n.childNodes.length){t.call(n.childNodes,(function(e){i.appendChild(e.cloneNode(true))}))}else{i.textContent=n.textContent}i.setAttribute("href",e.basePath+"#"+n.id);i.setAttribute("class",e.linkClass+a+"node-name--"+n.nodeName+a+e.extraLinkClasses);r.appendChild(i);return r}function c(t){var n=e.orderedList?"ol":"ul";var r=document.createElement(n);var i=e.listClass+a+e.extraListClasses;if(t){i+=a+e.collapsibleClass;i+=a+e.isCollapsedClass}r.setAttribute("class",i);return r}function u(){if(e.scrollContainer&&document.querySelector(e.scrollContainer)){var t;t=document.querySelector(e.scrollContainer).scrollTop}else{t=document.documentElement.scrollTop||r.scrollTop}var n=document.querySelector(e.positionFixedSelector);if(e.fixedSidebarOffset==="auto"){e.fixedSidebarOffset=document.querySelector(e.tocSelector).offsetTop}if(t>e.fixedSidebarOffset){if(n.className.indexOf(e.positionFixedClass)===-1){n.className+=a+e.positionFixedClass}}else{n.className=n.className.split(a+e.positionFixedClass).join("")}}function d(t){var n=0;if(t!==document.querySelector(e.contentSelector&&t!=null)){n=t.offsetTop;if(e.hasInnerContainers){n+=d(t.offsetParent)}}return n}function p(o){if(e.scrollContainer&&document.querySelector(e.scrollContainer)){var s;s=document.querySelector(e.scrollContainer).scrollTop}else{s=document.documentElement.scrollTop||r.scrollTop}if(e.positionFixedSelector){u()}var l=o;var c;var p;if(i&&document.querySelector(e.tocSelector)!==null&&l.length>0){n.call(l,(function(t,n){p=d(t);if(p>s+e.headingsOffset+10){c=l[n];return true}else if(n===l.length-1){c=l[l.length-1];return true}}));var h=document.querySelector(e.tocSelector).querySelectorAll("."+e.linkClass);t.call(h,(function(t){t.className=t.className.split(a+e.activeLinkClass).join("")}));var m=document.querySelector(e.tocSelector).querySelectorAll("."+e.listItemClass);t.call(m,(function(t){t.className=t.className.split(a+e.activeListItemClass).join("")}));var g=document.querySelector(e.tocSelector).querySelector("."+e.linkClass+".node-name--"+c.nodeName+'[href="'+e.basePath+"#"+c.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/@])/g,"\\$1")+'"]');if(g.className.indexOf(e.activeLinkClass)===-1){g.className+=a+e.activeLinkClass}var v=g.parentNode;if(v&&v.className.indexOf(e.activeListItemClass)===-1){v.className+=a+e.activeListItemClass}var y=document.querySelector(e.tocSelector).querySelectorAll("."+e.listClass+"."+e.collapsibleClass);t.call(y,(function(t){if(t.className.indexOf(e.isCollapsedClass)===-1){t.className+=a+e.isCollapsedClass}}));if(g.nextSibling&&g.nextSibling.className.indexOf(e.isCollapsedClass)!==-1){g.nextSibling.className=g.nextSibling.className.split(a+e.isCollapsedClass).join("")}f(g.parentNode.parentNode)}}function f(t){if(t.className.indexOf(e.collapsibleClass)!==-1&&t.className.indexOf(e.isCollapsedClass)!==-1){t.className=t.className.split(a+e.isCollapsedClass).join("");return f(t.parentNode.parentNode)}return t}function h(t){var n=t.target||t.srcElement;if(typeof n.className!=="string"||n.className.indexOf(e.linkClass)===-1){return}i=false}function m(){i=true}return{enableTocAnimation:m,disableTocAnimation:h,render:s,updateToc:p}}},8923:e=>{e.exports={tocSelector:".js-toc",contentSelector:".js-toc-content",headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:false,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:true,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:false,onClick:function(e){},orderedList:true,scrollContainer:null,skipRendering:false,headingLabelCallback:false,ignoreHiddenElements:false,headingObjectCallback:null,basePath:"",disableTocScrollSync:false}},6407:e=>{e.exports=function e(t){var n=[].reduce;function r(e){return e[e.length-1]}function i(e){return+e.nodeName.split("H").join("")}function a(e){if(!(e instanceof window.HTMLElement))return e;if(t.ignoreHiddenElements&&(!e.offsetHeight||!e.offsetParent)){return null}var n={id:e.id,children:[],nodeName:e.nodeName,headingLevel:i(e),textContent:t.headingLabelCallback?String(t.headingLabelCallback(e.textContent)):e.textContent.trim()};if(t.includeHtml){n.childNodes=e.childNodes}if(t.headingObjectCallback){return t.headingObjectCallback(n,e)}return n}function o(e,n){var i=a(e);var o=i.headingLevel;var s=n;var l=r(s);var c=l?l.headingLevel:0;var u=o-c;while(u>0){l=r(s);if(l&&l.children!==undefined){s=l.children}u--}if(o>=t.collapseDepth){i.isCollapsed=true}s.push(i);return s}function s(e,n){var r=n;if(t.ignoreSelector){r=n.split(",").map((function e(n){return n.trim()+":not("+t.ignoreSelector+")"}))}try{return document.querySelector(e).querySelectorAll(r)}catch(t){console.warn("Element not found: "+e);return null}}function l(e){return n.call(e,(function e(t,n){var r=a(n);if(r){o(r,t.nest)}return t}),{nest:[]})}return{nestHeadingsArray:l,selectHeadings:s}}},5968:(e,t)=>{t.initSmoothScrolling=n;function n(e){if(l()){}var t=e.duration;var n=e.offset;var i=location.hash?s(location.href):location.href;a();function a(){document.body.addEventListener("click",i,false);function i(i){if(!o(i.target)||i.target.className.indexOf("no-smooth-scroll")>-1||i.target.href.charAt(i.target.href.length-2)==="#"&&i.target.href.charAt(i.target.href.length-1)==="!"||i.target.className.indexOf(e.linkClass)===-1){return}r(i.target.hash,{duration:t,offset:n,callback:false})}}function o(e){return e.tagName.toLowerCase()==="a"&&(e.hash.length>0||e.href.charAt(e.href.length-1)==="#")&&(s(e.href)===i||s(e.href)+"#"===i)}function s(e){return e.slice(0,e.lastIndexOf("#"))}function l(){return"scrollBehavior"in document.documentElement.style}function c(e){var t=document.getElementById(e.substring(1));if(t){if(!/^(?:a|select|input|button|textarea)$/i.test(t.tagName)){t.tabIndex=-1}t.focus()}}}function r(e,t){var n=window.pageYOffset;var r={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||d};var i=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]');var a=typeof e==="string"?r.offset+(e?i&&i.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e;var o=typeof r.duration==="function"?r.duration(a):r.duration;var s;var l;requestAnimationFrame((function(e){s=e;c(e)}));function c(e){l=e-s;window.scrollTo(0,r.easing(l,n,a,o));if(l<o){requestAnimationFrame(c)}else{u()}}function u(){if(typeof r.callback==="function"){r.callback()}}function d(e,t,n,r){e/=r/2;if(e<1)return n/2*e*e+t;e--;return-n/2*(e*(e-2)-1)+t}}},2799:function(e,t,n){var r,i,a;(function(n,o){if(true){!(i=[],r=o(n),a=typeof r==="function"?r.apply(t,i):r,a!==undefined&&(e.exports=a))}else{}})(typeof n.g!=="undefined"?n.g:this.window||this.global,(function(e){"use strict";var t=n(8923);var r={};var i={};var a=n(4525);var o=n(6407);var s=n(1172);var l;var c;var u=!!e&&!!e.document&&!!e.document.querySelector&&!!e.addEventListener;if(typeof window==="undefined"&&!u){return}var d;var p=Object.prototype.hasOwnProperty;function f(){var e={};for(var t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n){if(p.call(n,r)){e[r]=n[r]}}}return e}function h(e,t,n){t||(t=250);var r;var i;return function(){var a=n||this;var o=+new Date;var s=arguments;if(r&&o<r+t){clearTimeout(i);i=setTimeout((function(){r=o;e.apply(a,s)}),t)}else{r=o;e.apply(a,s)}}}i.destroy=function(){if(!r.skipRendering){try{document.querySelector(r.tocSelector).innerHTML=""}catch(e){console.warn("Element not found: "+r.tocSelector)}}if(r.scrollContainer&&document.querySelector(r.scrollContainer)){document.querySelector(r.scrollContainer).removeEventListener("scroll",this._scrollListener,false);document.querySelector(r.scrollContainer).removeEventListener("resize",this._scrollListener,false);if(l){document.querySelector(r.scrollContainer).removeEventListener("click",this._clickListener,false)}}else{document.removeEventListener("scroll",this._scrollListener,false);document.removeEventListener("resize",this._scrollListener,false);if(l){document.removeEventListener("click",this._clickListener,false)}}};i.init=function(e){if(!u){return}r=f(t,e||{});this.options=r;this.state={};if(r.scrollSmooth){r.duration=r.scrollSmoothDuration;r.offset=r.scrollSmoothOffset;i.scrollSmooth=n(5968).initSmoothScrolling(r)}l=a(r);c=o(r);this._buildHtml=l;this._parseContent=c;i.destroy();d=c.selectHeadings(r.contentSelector,r.headingSelector);if(d===null){return}var p=c.nestHeadingsArray(d);var m=p.nest;if(!r.skipRendering){l.render(r.tocSelector,m)}this._scrollListener=h((function(e){l.updateToc(d);!r.disableTocScrollSync&&s(r);var t=e&&e.target&&e.target.scrollingElement&&e.target.scrollingElement.scrollTop===0;if(e&&(e.eventPhase===0||e.currentTarget===null)||t){l.updateToc(d);if(r.scrollEndCallback){r.scrollEndCallback(e)}}}),r.throttleTimeout);this._scrollListener();if(r.scrollContainer&&document.querySelector(r.scrollContainer)){document.querySelector(r.scrollContainer).addEventListener("scroll",this._scrollListener,false);document.querySelector(r.scrollContainer).addEventListener("resize",this._scrollListener,false)}else{document.addEventListener("scroll",this._scrollListener,false);document.addEventListener("resize",this._scrollListener,false)}var g=null;this._clickListener=h((function(e){if(r.scrollSmooth){l.disableTocAnimation(e)}l.updateToc(d);g&&clearTimeout(g);g=setTimeout((function(){l.enableTocAnimation()}),r.scrollSmoothDuration)}),r.throttleTimeout);if(r.scrollContainer&&document.querySelector(r.scrollContainer)){document.querySelector(r.scrollContainer).addEventListener("click",this._clickListener,false)}else{document.addEventListener("click",this._clickListener,false)}return this};i.refresh=function(e){i.destroy();i.init(e||this.options)};e.tocbot=i;return i}))},1172:e=>{e.exports=function e(t){var n=document.querySelector(t.tocSelector);if(n&&n.scrollHeight>n.clientHeight){var r=n.querySelector("."+t.activeListItemClass);if(r){n.scrollTop=r.offsetTop}}}},6808:(e,t,n)=>{var r,i;
+(function(e){"use strict";const t=n(8633);const r=n(3291);const i=r(t);const a="smooth";const o=10;const s=10;const l=30;const c=3;const u=1e3;const d=1e4;const p=/Firefox/i.test(navigator.userAgent);const f=/Edg/i.test(navigator.userAgent);const h=/chrome/i.test(navigator.userAgent);const m=h&&!f;const g="Google UK English Female";const v="Google US English";const y="Microsoft";const b=document.getElementsByTagName("html")[0].getAttribute("lang");var w="";var C=navigator.language||navigator.userLanguage;var x=ne("googtrans");var E=100;var S={};var L={};var k=new Array;var T=new Array;var A=new Array;var I=new Array;var M=new Array;var N=[];var D=.9;var O=1;var _=.9;var P=D;var F=O;var B=_;var R=" — ";var j=0;var $=false;var W=false;var H=false;var U;var G;var q;var V;var z;var K;var X;var Y;var J={"de-DE":"Google Deutsch","en-GB":"Google UK English Female","es-ES":"Google español","fr-FR":"Google français","it-IT":"Google italiano"};var Q={"en-GB":"Microsoft Libby Online (Natural) - English (United Kingdom)","es-ES":"Microsoft Elvira Online (Natural) - Spanish (Spain)","fr-FR":"Microsoft Denise Online (Natural) - French (France)","de-DE":"Microsoft Katja Online (Natural) - German (Germany)","it-IT":"Microsoft Elsa Online (Natural) - Italian (Italy)"};var Z={"en-GB":"Microsoft Hazel - English (United Kingdom)","de-DE":"Microsoft Katja - German (Germany)"};if(b=="en"){w=b+"-"+"GB"}else{w=b+"-"+b.toUpperCase()}function ee(t){var n=t.startLine;var r;function i(t){r=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight);e("#content").attr("style","opacity: .3");if(n<r){setTimeout((function(){t++;n=n+d;window.scrollTo({top:n,behavior:"smooth"});i(t)}),u)}else{setTimeout((function(){Y=true;e("#content").attr("style","opacity: 1")}),u)}}i({startLine:0})}function te(){var e={};for(var t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n){if(hasOwnProperty.call(n,r)){e[r]=n[r]}}}return e}function ne(e){var t=e+"=";var n=document.cookie.split(";");for(var r=0;r<n.length;r++){var i=n[r];while(i.charAt(0)===" "){i=i.substring(1,i.length)}if(i.indexOf(t)===0){var a=i.substring(t.length,i.length);return a}}return undefined}function re(e,t){this.prepend=e;this.append=t}function ie(e,t){this.name=e;this.language=t}function ae(e){var t=0;var n=e.split(" ");for(var r=0;r<n.length;r++){if(n[r]!=""){t+=1}}return t}function oe(){let e="systemVoices START - ";var t=speechSynthesis.getVoices();for(var n=0;n<t.length;n++){M.push(new ie(t[n].name,t[n].lang));if(t[n].lang.includes("en")||t[n].lang.includes("de-DE")||t[n].lang.includes("es-ES")||t[n].lang.includes("pl")||t[n].lang.includes("nl")){e+=t[n].lang.toString();e+=" : ";e+=t[n].name.toString();e+="\n"}}e+=" - systemVoices END."}oe();if(typeof speechSynthesis!=="undefined"&&speechSynthesis.onvoiceschanged!==undefined){speechSynthesis.onvoiceschanged=oe}if("speechSynthesis"in window){var se=new SpeechSynthesisUtterance;window.speechSynthesis.cancel()}if(x===undefined){V=w}else{var le=x.split("/");if(le[2]=="en"){V="en-GB"}else if(le[2].includes("ar")){V="ar-EG"}else if(le[2].includes("cs")){V="cs-CZ"}else if(le[2].includes("da")){V="da-DK"}else if(le[2].includes("en")){V="en-UK"}else if(le[2].includes("et")){V="et-EE"}else if(le[2].includes("ka")){V="ka-GE"}else if(le[2].includes("el")){V="el-GR"}else if(le[2].includes("iw")){V="he-IL"}else if(le[2].includes("hi")){V="hi-IN"}else if(le[2].includes("ja")){V="ja-JP"}else if(le[2].includes("zh")){V="zh-CN"}else{V=le[2]+"-"+le[2].toUpperCase()}}if(m){var z=J[V]}if(f){var z=Q[V]}if(p){var z=Z[V]}var ce={speak:function(n){var r="";var u=new Array;var d=this;var p,f,h;var m;Y=false;L=te(n,t,S||{});if(!L.isPaused){ee({startLine:0})}else{Y=true}u["a"]=new re("Link — ","");u["q"]=new re(R,"");u["ol"]=new re(R,"");u["ul"]=new re(R,"");u["dl"]=new re(R,"");u["dt"]=new re(R,"");u["img"]=new re("Image element — ","Element not spoken — ");u["table"]=new re("Table element — ","Element not spoken — ");u["card-header"]=new re(R,"");u[".doc-example"]=new re("Example element — ","Element not spoken — ");u[".admonitionblock"]=new re("Attention element — ","");u[".listingblock"]=new re("Text element — ","Element not spoken — ");u[".gist"]=new re("Gist element — ","Element not spoken — ");u[".slider"]=new re("Slider element — ","Element not spoken — ");u[".modal"]=new re("Info element — ","Element not spoken — ");u[".masonry"]=new re("Masonry element — ","Element not spoken — ");u[".lightbox-block"]=new re("Lightbox element — ","Element not spoken — ");u[".gallery"]=new re("Gallery element — ","Element not spoken — ");u[".audioblock"]=new re("Audio element — ","Element not spoken — ");u[".videoblock"]=new re("Video element — ","Element not spoken — ");u[".videojs-player"]=new re("Video element — ","Element not spoken — ");u[".youtube-player"]=new re("Video element — ","Element not spoken — ");u[".dailymotion-player"]=new re("Video element — ","Element not spoken — ");u[".vimeo-player"]=new re("Video element — ","Element not spoken — ");u[".wistia-player"]=new re("Video element — ","Element not spoken — ");u["figure"]=new re("Figure element — ","Element not spoken — ");u["parallax-quoteblock"]=new re(R,"");u["blockquote"]=new re(R,"");u["quoteblock"]=new re(R,"");m=["audio","button","canvas","code","del","pre","dialog","embed","form","head","iframe","meter","nav","noscript","object","picture","script","select","style","textarea","video"];if(window.speechSynthesis.speaking){return}var g=setInterval((function(){if(Y){d.each((function(){p=e(this).clone();f=w(p);f=e(f).html();h=C(f);r=h}));if(U!==undefined){P=U}else{P=D}if(G!==undefined){F=G}else{F=O}if(q!==undefined){B=q}else{B=_}se=new SpeechSynthesisUtterance;se.rate=P;se.pitch=F;se.volume=B;se.voice=speechSynthesis.getVoices().filter((function(e){return e.name==z}))[0];se.previousScrollPosition=0;b(se,r);clearInterval(g)}}),o);function v(n){var r=[];n=n.replace(/^\s+>/gm,"");n=n.replaceAll(" ..",".");n=n.replace(/(\r\n|\n|\r)/gm,"");n=n.replace(/\s+/gm," ");r=n.split(".");r.forEach(((e,t)=>{r[t]=r[t].replace(/^\s+/g,"");r[t]=r[t].replaceAll('""',"")}));r.forEach(((e,t)=>{if(r[t].length>0){r[t]=r[t]+". "}else{r.splice(t,1)}}));r.forEach(((e,t)=>{if(r[t].length==0){r.splice(t,1)}}));var a=[];r.forEach(((t,n)=>{var i=r[n];var o=y(i,l,c);var s=e("#content").find("p:contains('"+o+"')");var u;if(s.length>0){u=Math.round(s[0].offsetTop)}else{u=undefined;s=undefined}a.push({text:i,offsetTop:u,$paragraph:s})}));N=i.selectHeadings(t.contentSelector,t.headingSelector);a.forEach(((t,n)=>{var r;var i;if(t.offset===undefined){r=t.text.replaceAll(". ","");if(N!==null){for(var a of N){i=a.innerText.replaceAll("?","");i=a.innerText.replaceAll("!","");if(i==r){var o=e("#"+a.id);if(o.length>0){var s=o.offset().top;t.offsetTop=Math.round(s)}else{}}}}}}));return a}function y(e,t,n){var r=0;var i=r+t;var a=e.substr(r,i);var o=a.split(/(\s+)/);var s;o.pop();o.pop();a=o.join("");a=a.replaceAll(".","");s=ae(a);if(s<n){console.warn("no search possible on this fraction of subText");return undefined}else{return a}}function b(t,n){const r=window.speechSynthesis;e(".mdib-speaker").addClass("mdib-spin");t.addEventListener("start",(e=>{if(t.offsetTop!==undefined){if(t.offsetTop>=t.previousScrollPosition){window.scrollTo({top:t.offsetTop-E,behavior:a})}}if(t.$paragraph!==undefined){t.$paragraph.addClass("speak-highlighted")}}));t.addEventListener("end",(function(e){if(t.offsetTop!==undefined){if(t.offsetTop>=t.previousScrollPosition){t.previousScrollPosition=t.offsetTop}H=t.offsetTop-E}if(t.$paragraph!==undefined){t.$paragraph.removeClass("speak-highlighted")}W=false;j++}));var i=false;var o=setInterval((function(){if(j==K||$){j=0;$=false;W=false;t.$paragraph!==undefined&&t.$paragraph.removeClass("speak-highlighted");e(".mdib-speaker").removeClass("mdib-spin");clearInterval(o)}else{if(!i&&L.isPaused){j=L.lastChunk;i=true}t.text=n[j].text;t.offsetTop=n[j].offsetTop;t.$paragraph=n[j].$paragraph;if(!W){r.speak(t);W=true}}}),s)}function w(t){var n,r,i,a,o,s,l,c;if(T.length>0){for(var d in T){var p=m.indexOf(T[d]);if(p>-1){m.splice(p,1)}}}for(var d in m){e(t).find(m[d]).addBack(m[d]).not("[data-speak2me-recognize]").each((function(){e(this).html("")}))}if(k.length>0){for(var d in k){e(t).find(k[d]).addBack(k[d]).not("[data-speak2me-recognize]").each((function(){e(this).html("")}))}}e(t).find("[data-speak2me-ignore]").addBack("[data-speak2me-ignore]").each((function(){e(this).html("")}));e(t).find(".speak2me-ignore").addBack("[data-speak2me-ignore]").each((function(){e(this).html("")}));e(t).find("[data-speak2me-prepend]").addBack("[data-speak2me-prepend]").each((function(){n=e(this).data("speak2me-prepend");e(this).prepend(n+" ")}));e(t).find("[data-speak2me-append]").addBack("[data-speak2me-append]").each((function(){n=e(this).data("speak2me-append");e(this).append(" "+n)}));var f=0;for(var h in u){e(t).find(h).each((function(){if(I[h]){e(this).prepend(I[h].prepend+R);e(this).append(I[h].append+R)}else{e(this).prepend(u[h].prepend+R);e(this).append(u[h].append+R)}}))}e(t).find("h1,h2,h3,h4,h5,h6,li,p").addBack("h1,h2,h3,h4,h5,h6,li,p").each((function(){e(this).append(R)}));e(t).find("br").each((function(){e(this).after(R)}));e(t).find("figure").addBack("figure").each((function(){n=e(this).find("figcaption").html();if(I["figure"]){c=I["figure"].prepend}else{c=u["figure"].prepend}if(n!=undefined&&n!==""){e("<div>"+c+R+n+"</div>").insertBefore(this)}e(this).remove()}));e(t).find("img").addBack("img").each((function(){n=e(this).attr("alt");var t=e(this).parent();var r=t.get(0).tagName;if(I["img"]){c=I["img"].prepend}else{c=u["img"].prepend}if(n!==undefined&&n!=""){if(r=="PICTURE"){var i;e("<div>"+c+R+n+R+"</div>").insertBefore(t)}else{e("<div>"+c+R+n+R+"</div>").insertBefore(this)}}e(this).remove()}));e(t).find("a").addBack("a").each((function(){var t=e(this);n=t[0].innerText;c=u["a"].prepend;l=u["a"].append;e("<div>"+n+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this);e(this).remove()}));e(t).find(".admonitionblock").addBack(".admonitionblock").each((function(){a=this.classList[1];o=e(this).find(".content");s=o[0].innerText;c=u[".admonitionblock"].prepend+a+". ";l=u[".admonitionblock"].append;if(s!==undefined&&s!=""){e("<div>"+c+" "+s+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".parallax-quoteblock").addBack(".parallax-quoteblock").each((function(){o=e(this).find(".quote-text");s=o[0].innerText+" — ";c=u["quoteblock"].prepend;l=u["quoteblock"].append;if(s!==undefined&&s!=""){e("<div>"+c+R+s+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".quoteblock").addBack(".quoteblock").each((function(){var t=e(this).find(".attribution");o=e(this).find("blockquote");s=o[0].innerText+" — "+t[0].innerText+" — ";c=u["quoteblock"].prepend;l=u["quoteblock"].append;if(s!==undefined&&s!=""){e("<div>"+c+R+s+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find("table").addBack("table").each((function(){n=e(this).find("caption").text();c=u["table"].prepend;l=u["table"].append;if(n!==undefined&&n!=""){e("<div>"+c+R+n+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".audioblock").addBack(".audioblock").each((function(){n=e(this).find(".title").text();c=u[".audioblock"].prepend;l=u[".audioblock"].append;if(n!==undefined&&n!=""){e("<div>"+c+R+"with the title, "+n+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".videoblock").addBack(".videoblock").each((function(){n=e(this).find(".title").text();c=u[".videoblock"].prepend;l=u[".videoblock"].append;if(n!==undefined&&n!=""){e("<div>"+c+R+"with the title, "+n+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".videojs-player").addBack(".videojs-player").each((function(){n=e(this).find(".video-title").text();c=u[".videojs-player"].prepend;l=u[".videojs-player"].append;if(n!==undefined&&n!=""){e("<div>"+c+R+"with the title, "+n+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".youtube-player").addBack(".youtube-player").each((function(){n=e(this).find(".video-title").text();c=u[".youtube-player"].prepend;l=u[".youtube-player"].append;if(n!==undefined&&n!=""){e("<div>"+c+R+"with the title, "+n+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".dailymotion-player").addBack(".dailymotion-player").each((function(){n=e(this).find(".video-title").text();c=u[".dailymotion-player"].prepend;l=u[".dailymotion-player"].append;if(n!==undefined&&n!=""){e("<div>"+c+R+"with the title, "+n+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".vimeo-player").addBack(".vimeo-player").each((function(){n=e(this).find(".video-title").text();c=u[".vimeo-player"].prepend;l=u[".vimeo-player"].append;if(n!==undefined&&n!=""){e("<div>"+c+R+"with the title, "+n+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".wistia-player").addBack(".wistia-player").each((function(){n=e(this).find(".video-title").text();c=u[".wistia-player"].prepend;l=u[".wistia-player"].append;if(n!==undefined&&n!=""){e("<div>"+c+R+"with the title, "+n+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".card-header").addBack("card-header").each((function(){i=e(this).find(".card-title");c=u["card-header"].prepend;l=u["card-header"].append;if(i.length){r=i[0].innerText+R}else{r=""}e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+r+"</div>").insertBefore(this);e(i).remove()}));e(t).find(".doc-example").addBack(".doc-example").each((function(){c=u[".doc-example"].prepend;l=u[".doc-example"].append;e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this);e(this).remove()}));e(t).find(".listingblock").addBack(".listingblock").each((function(){i=e(this).find(".title");if(i.length){n=i[0].innerText}else{n=""}c=u[".listingblock"].prepend;l=u[".listingblock"].append;if(n!==undefined&&n!=""){e("<div>"+c+" with the caption,"+n+R+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".gist").addBack(".gist").each((function(){if(e(this).prev()[0]!==undefined&&e(this).prev()[0].innerText!==undefined){r=e(this).prev()[0].innerText;i=e(this).prev();e(i).remove()}else{r=""}c=u[".gist"].prepend;l=u[".gist"].append;if(r!==undefined&&r!=""){e("<div>"+c+" with the caption, "+r+R+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".modal").addBack(".modal").each((function(){e(this).remove()}));e(t).find(".masonry").addBack(".masonry").each((function(){if(e(this).prev()[0].innerText!==undefined){r=e(this).prev()[0].innerText;i=e(this).prev();e(i).remove()}else{r=""}c=u[".masonry"].prepend;l=u[".masonry"].append;if(r!==undefined&&r!=""){e("<div>"+c+" with the caption,"+r+R+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".slider").addBack(".slider").each((function(){if(e(this).prev()[0].innerText!==undefined){r=e(this).prev()[0].innerText;i=e(this).prev();e(i).remove()}else{r=""}c=u[".slider"].prepend;l=u[".slider"].append;if(r!==undefined&&r!=""){e("<div>"+c+" with the caption, "+r+R+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".gallery").addBack(".gallery").each((function(){if(e(this).prev()[0]!==undefined&&e(this).prev()[0].innerText!==undefined){r=e(this).prev()[0].innerText;i=e(this).prev();e(i).remove()}else{r=""}c=u[".gallery"].prepend;l=u[".gallery"].append;if(r!==undefined&&r!=""){c!==""&&e("<div>"+c+" with the caption "+r+R+"</div>").insertBefore(this);l!==""&&e("<div>"+l+"</div>").insertBefore(this)}else{c!==""&&e("<div>"+c+R+"</div>").insertBefore(this);l!==""&&e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".lightbox-block").addBack(".lightbox-block").each((function(){if(e(this).prev()[0].innerText!==undefined){r=e(this).prev()[0].innerText;i=e(this).prev();e(i).remove()}else{r=""}c=u[".lightbox-block"].prepend;l=u[".lightbox-block"].append;if(r!==undefined&&r!=""){e("<div>"+c+" with the caption,"+r+R+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find("[data-speak2me-swap]").addBack("[data-speak2me-swap]").each((function(){n=e(this).data("speak2me-swap");e(this).text(n)}));e(t).find("[data-speak2me-spell]").addBack("[data-speak2me-spell]").each((function(){n=e(this).text();n=n.split("").join(" ");e(this).text(n)}));return t}function C(e){var t,n,r,i,a,e;while(e.indexOf("\x3c!-- <speak2me>")!=-1){t=e.indexOf("\x3c!-- <speak2me>");n=e.indexOf("</speak2me> --\x3e",t);if(n==-1){break}r=e.substring(t+17,n);i=e.substring(0,t);a=e.substring(n+17);e=i+" "+r+" "+a}e=e.replace(/<!--[\s\S]*?-->/g,"");e=e.replace(/(<([^>]+)>)/gi,"");var o=A.length;var s=0;var l,c;while(s<o){l=A[s];l=l.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");c=A[s+1]+" ";var u=new RegExp(l,"gi");var e=e.replace(u,c);s=s+2}e=e.replaceAll('"',"");e=e.replaceAll("“","");e=e.replaceAll("”","");e=e.replaceAll(":",".");e=e.replaceAll("., ",". ");e=e.replaceAll(" , ",", ");e=e.replaceAll(". .","");e=e.replaceAll(", .","");e=e.replaceAll(" , ","");e=e.replace(/^$/g,"\n");e=e.replace(/^\s+$/g,"\n");e=e.replace(/\s+\.\s+/g,"\n");e=e.replace(/\s+\.\s+$/g,"\n");e=e.replace(/\.\./g,".");e=e.replaceAll("e.g.","for example");e=e.replaceAll("E.g.","For example, ");e=e.replaceAll("etc.","and so on, ");e=e.replaceAll("z. B.","zum Beispiel, ");e=e.replace(/[\!\?]/g,". ");e=e.replaceAll("—",R);e=e.replaceAll("–",R);e=e.replaceAll("--",R);var d=document.createElement("textarea");d.innerHTML=e;e=d.value;e=e.replace(/^\s*(\b\w+\b)\s*$/gm,"$1. ");e=e.replace(/^\s*(\b\w+\b\s*[0-9]{4})$/gm,"$1. ");e=e.replace(/\s+/g," ");const p=v(e);K=p.length;return p}return se},pause:function(){window.speechSynthesis.pause();return this},resume:function(){window.speechSynthesis.resume();return this},stop:function(){window.speechSynthesis.cancel();$=true},enabled:function(){return"speechSynthesis"in window},isSpeaking:function(){return window.speechSynthesis.speaking},isSpoken:function(){if(window.speechSynthesis.speaking){return j}else{return false}},isScrolled:function(){if(window.speechSynthesis.speaking){return H}else{return false}},isPaused:function(){return window.speechSynthesis.paused},rate:function(){var e=arguments[0];if(e>=.1&&e<=10){U=e}else if(e===undefined){U=void 0;P=D}return this},pitch:function(){var e=arguments[0];if(e>=.1&&e<=2){G=e}else if(e===undefined){G=void 0;F=O}return this},volume:function(){var e=arguments[0];if(e>=0&&e<=1){q=e}else if(e===undefined){q=void 0;B=_}return this},ignore:function(){var e=arguments.length;k.length=0;while(e>0){e--;k.push(arguments[e])}return this},recognize:function(){var e=arguments.length;T.length=0;while(e>0){e--;T.push(arguments[e])}return this},replace:function(){var e=arguments.length;A.length=0;var t=0;while(t<e){A.push(arguments[t],arguments[t+1]);t=t+2;if(e-t==1){break}}return this},customize:function(){var e=arguments.length;if(e==0){I=[]}if(e==2){if(["img","table","figure"].indexOf(arguments[0])==-1){console.warn("When customizing, tag indicated must be either 'img', 'table', or 'figure'.");return}I[arguments[0].toString()]=new re(arguments[1].toString())}if(e==3){if(["q","ol","ul","blockquote"].indexOf(arguments[0])==-1){console.warn("When customizing, tag indicated must be either 'q', 'ol', 'ul' or 'blockquote'.");return}I[arguments[0].toString()]=new re(arguments[1].toString(),arguments[2].toString())}return this},getVoices:function(){if(arguments.length==0){return M}var t=e(arguments[0]);var n="Choose a voice";if(arguments[1]!==undefined){n=arguments[1]}t.append(e("<select id='voiceSelect' name='voiceSelect'><option value='none'>"+n+"</option></select>"));var r=0;for(var i=0;i<M.length;i++){if(m&&M[i].name.includes(y)){r++;continue}if(f&&!M[i].name.includes("Natural")){r++;continue}var a=document.createElement("option");a.textContent=M[i].name+" ("+M[i].language+")";a.setAttribute("value",M[i].name);if(z!==undefined){if(M[i].name===z){a.setAttribute("selected","selected")}}else{if(M[i].name.includes(g)){}}a.setAttribute("data-speak2me-language",M[i].language);t.find("select").append(a)}return i-r},setVoice:function(){if(arguments.length<2){return this}var e,t;if(arguments[0]=="name"){e=arguments[1];for(var n=0;n<M.length;n++){if(M[n].name==e){g=e}}}if(arguments[0]=="language"){t=arguments[1].toUpperCase();if(t.length==2){for(var n=0;n<M.length;n++){if(M[n].language.substring(0,2).toUpperCase()==t){g=M[n].name;break}}}else{for(var n=0;n<M.length;n++){if(M[n].language==t){g=M[n].name;break}}}}return this}};e.fn.speak2me=function(t){if(ce[t]){return ce[t].apply(this,Array.prototype.slice.call(arguments,1))}else if(typeof t==="object"||!t){return ce.speak.apply(this,arguments)}else{e.error("Method "+t+" does not exist on $.speak2me")}}})($)},4525:e=>{e.exports=function(e){var t=[].forEach;var n=[].some;var r=document.body;var i=true;var a=" ";function o(e,t){var n=t.appendChild(l(e));if(e.children.length){var r=c(e.isCollapsed);e.children.forEach((function(e){o(e,r)}));n.appendChild(r)}}function s(e,t){var n=false;var r=c(n);t.forEach((function(e){o(e,r)}));var i=document.querySelector(e);if(i===null){return}if(i.firstChild){i.removeChild(i.firstChild)}if(t.length===0){return i}return i.appendChild(r)}function l(n){var r=document.createElement("li");var i=document.createElement("a");if(e.listItemClass){r.setAttribute("class",e.listItemClass)}if(e.onClick){i.onclick=e.onClick}if(e.includeHtml&&n.childNodes.length){t.call(n.childNodes,(function(e){i.appendChild(e.cloneNode(true))}))}else{i.textContent=n.textContent}i.setAttribute("href",e.basePath+"#"+n.id);i.setAttribute("class",e.linkClass+a+"node-name--"+n.nodeName+a+e.extraLinkClasses);r.appendChild(i);return r}function c(t){var n=e.orderedList?"ol":"ul";var r=document.createElement(n);var i=e.listClass+a+e.extraListClasses;if(t){i+=a+e.collapsibleClass;i+=a+e.isCollapsedClass}r.setAttribute("class",i);return r}function u(){if(e.scrollContainer&&document.querySelector(e.scrollContainer)){var t;t=document.querySelector(e.scrollContainer).scrollTop}else{t=document.documentElement.scrollTop||r.scrollTop}var n=document.querySelector(e.positionFixedSelector);if(e.fixedSidebarOffset==="auto"){e.fixedSidebarOffset=document.querySelector(e.tocSelector).offsetTop}if(t>e.fixedSidebarOffset){if(n.className.indexOf(e.positionFixedClass)===-1){n.className+=a+e.positionFixedClass}}else{n.className=n.className.split(a+e.positionFixedClass).join("")}}function d(t){var n=0;if(t!==document.querySelector(e.contentSelector&&t!=null)){n=t.offsetTop;if(e.hasInnerContainers){n+=d(t.offsetParent)}}return n}function p(o){if(e.scrollContainer&&document.querySelector(e.scrollContainer)){var s;s=document.querySelector(e.scrollContainer).scrollTop}else{s=document.documentElement.scrollTop||r.scrollTop}if(e.positionFixedSelector){u()}var l=o;var c;var p;if(i&&document.querySelector(e.tocSelector)!==null&&l.length>0){n.call(l,(function(t,n){p=d(t);if(p>s+e.headingsOffset+10){c=l[n];return true}else if(n===l.length-1){c=l[l.length-1];return true}}));var h=document.querySelector(e.tocSelector).querySelectorAll("."+e.linkClass);t.call(h,(function(t){t.className=t.className.split(a+e.activeLinkClass).join("")}));var m=document.querySelector(e.tocSelector).querySelectorAll("."+e.listItemClass);t.call(m,(function(t){t.className=t.className.split(a+e.activeListItemClass).join("")}));var g=document.querySelector(e.tocSelector).querySelector("."+e.linkClass+".node-name--"+c.nodeName+'[href="'+e.basePath+"#"+c.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/@])/g,"\\$1")+'"]');if(g.className.indexOf(e.activeLinkClass)===-1){g.className+=a+e.activeLinkClass}var v=g.parentNode;if(v&&v.className.indexOf(e.activeListItemClass)===-1){v.className+=a+e.activeListItemClass}var y=document.querySelector(e.tocSelector).querySelectorAll("."+e.listClass+"."+e.collapsibleClass);t.call(y,(function(t){if(t.className.indexOf(e.isCollapsedClass)===-1){t.className+=a+e.isCollapsedClass}}));if(g.nextSibling&&g.nextSibling.className.indexOf(e.isCollapsedClass)!==-1){g.nextSibling.className=g.nextSibling.className.split(a+e.isCollapsedClass).join("")}f(g.parentNode.parentNode)}}function f(t){if(t.className.indexOf(e.collapsibleClass)!==-1&&t.className.indexOf(e.isCollapsedClass)!==-1){t.className=t.className.split(a+e.isCollapsedClass).join("");return f(t.parentNode.parentNode)}return t}function h(t){var n=t.target||t.srcElement;if(typeof n.className!=="string"||n.className.indexOf(e.linkClass)===-1){return}i=false}function m(){i=true}return{enableTocAnimation:m,disableTocAnimation:h,render:s,updateToc:p}}},8923:e=>{e.exports={tocSelector:".js-toc",contentSelector:".js-toc-content",headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:false,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:true,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:false,onClick:function(e){},orderedList:true,scrollContainer:null,skipRendering:false,headingLabelCallback:false,ignoreHiddenElements:false,headingObjectCallback:null,basePath:"",disableTocScrollSync:false}},6407:e=>{e.exports=function e(t){var n=[].reduce;function r(e){return e[e.length-1]}function i(e){return+e.nodeName.split("H").join("")}function a(e){if(!(e instanceof window.HTMLElement))return e;if(t.ignoreHiddenElements&&(!e.offsetHeight||!e.offsetParent)){return null}var n={id:e.id,children:[],nodeName:e.nodeName,headingLevel:i(e),textContent:t.headingLabelCallback?String(t.headingLabelCallback(e.textContent)):e.textContent.trim()};if(t.includeHtml){n.childNodes=e.childNodes}if(t.headingObjectCallback){return t.headingObjectCallback(n,e)}return n}function o(e,n){var i=a(e);var o=i.headingLevel;var s=n;var l=r(s);var c=l?l.headingLevel:0;var u=o-c;while(u>0){l=r(s);if(l&&l.children!==undefined){s=l.children}u--}if(o>=t.collapseDepth){i.isCollapsed=true}s.push(i);return s}function s(e,n){var r=n;if(t.ignoreSelector){r=n.split(",").map((function e(n){return n.trim()+":not("+t.ignoreSelector+")"}))}try{return document.querySelector(e).querySelectorAll(r)}catch(t){console.warn("Element not found: "+e);return null}}function l(e){return n.call(e,(function e(t,n){var r=a(n);if(r){o(r,t.nest)}return t}),{nest:[]})}return{nestHeadingsArray:l,selectHeadings:s}}},5968:(e,t)=>{t.initSmoothScrolling=n;function n(e){if(l()){}var t=e.duration;var n=e.offset;var i=location.hash?s(location.href):location.href;a();function a(){document.body.addEventListener("click",i,false);function i(i){if(!o(i.target)||i.target.className.indexOf("no-smooth-scroll")>-1||i.target.href.charAt(i.target.href.length-2)==="#"&&i.target.href.charAt(i.target.href.length-1)==="!"||i.target.className.indexOf(e.linkClass)===-1){return}r(i.target.hash,{duration:t,offset:n,callback:false})}}function o(e){return e.tagName.toLowerCase()==="a"&&(e.hash.length>0||e.href.charAt(e.href.length-1)==="#")&&(s(e.href)===i||s(e.href)+"#"===i)}function s(e){return e.slice(0,e.lastIndexOf("#"))}function l(){return"scrollBehavior"in document.documentElement.style}function c(e){var t=document.getElementById(e.substring(1));if(t){if(!/^(?:a|select|input|button|textarea)$/i.test(t.tagName)){t.tabIndex=-1}t.focus()}}}function r(e,t){var n=window.pageYOffset;var r={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||d};var i=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]');var a=typeof e==="string"?r.offset+(e?i&&i.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e;var o=typeof r.duration==="function"?r.duration(a):r.duration;var s;var l;requestAnimationFrame((function(e){s=e;c(e)}));function c(e){l=e-s;window.scrollTo(0,r.easing(l,n,a,o));if(l<o){requestAnimationFrame(c)}else{u()}}function u(){if(typeof r.callback==="function"){r.callback()}}function d(e,t,n,r){e/=r/2;if(e<1)return n/2*e*e+t;e--;return-n/2*(e*(e-2)-1)+t}}},2799:function(e,t,n){var r,i,a;(function(n,o){if(true){!(i=[],r=o(n),a=typeof r==="function"?r.apply(t,i):r,a!==undefined&&(e.exports=a))}else{}})(typeof n.g!=="undefined"?n.g:this.window||this.global,(function(e){"use strict";var t=n(8923);var r={};var i={};var a=n(4525);var o=n(6407);var s=n(1172);var l;var c;var u=!!e&&!!e.document&&!!e.document.querySelector&&!!e.addEventListener;if(typeof window==="undefined"&&!u){return}var d;var p=Object.prototype.hasOwnProperty;function f(){var e={};for(var t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n){if(p.call(n,r)){e[r]=n[r]}}}return e}function h(e,t,n){t||(t=250);var r;var i;return function(){var a=n||this;var o=+new Date;var s=arguments;if(r&&o<r+t){clearTimeout(i);i=setTimeout((function(){r=o;e.apply(a,s)}),t)}else{r=o;e.apply(a,s)}}}i.destroy=function(){if(!r.skipRendering){try{document.querySelector(r.tocSelector).innerHTML=""}catch(e){console.warn("Element not found: "+r.tocSelector)}}if(r.scrollContainer&&document.querySelector(r.scrollContainer)){document.querySelector(r.scrollContainer).removeEventListener("scroll",this._scrollListener,false);document.querySelector(r.scrollContainer).removeEventListener("resize",this._scrollListener,false);if(l){document.querySelector(r.scrollContainer).removeEventListener("click",this._clickListener,false)}}else{document.removeEventListener("scroll",this._scrollListener,false);document.removeEventListener("resize",this._scrollListener,false);if(l){document.removeEventListener("click",this._clickListener,false)}}};i.init=function(e){if(!u){return}r=f(t,e||{});this.options=r;this.state={};if(r.scrollSmooth){r.duration=r.scrollSmoothDuration;r.offset=r.scrollSmoothOffset;i.scrollSmooth=n(5968).initSmoothScrolling(r)}l=a(r);c=o(r);this._buildHtml=l;this._parseContent=c;i.destroy();d=c.selectHeadings(r.contentSelector,r.headingSelector);if(d===null){return}var p=c.nestHeadingsArray(d);var m=p.nest;if(!r.skipRendering){l.render(r.tocSelector,m)}this._scrollListener=h((function(e){l.updateToc(d);!r.disableTocScrollSync&&s(r);var t=e&&e.target&&e.target.scrollingElement&&e.target.scrollingElement.scrollTop===0;if(e&&(e.eventPhase===0||e.currentTarget===null)||t){l.updateToc(d);if(r.scrollEndCallback){r.scrollEndCallback(e)}}}),r.throttleTimeout);this._scrollListener();if(r.scrollContainer&&document.querySelector(r.scrollContainer)){document.querySelector(r.scrollContainer).addEventListener("scroll",this._scrollListener,false);document.querySelector(r.scrollContainer).addEventListener("resize",this._scrollListener,false)}else{document.addEventListener("scroll",this._scrollListener,false);document.addEventListener("resize",this._scrollListener,false)}var g=null;this._clickListener=h((function(e){if(r.scrollSmooth){l.disableTocAnimation(e)}l.updateToc(d);g&&clearTimeout(g);g=setTimeout((function(){l.enableTocAnimation()}),r.scrollSmoothDuration)}),r.throttleTimeout);if(r.scrollContainer&&document.querySelector(r.scrollContainer)){document.querySelector(r.scrollContainer).addEventListener("click",this._clickListener,false)}else{document.addEventListener("click",this._clickListener,false)}return this};i.refresh=function(e){i.destroy();i.init(e||this.options)};e.tocbot=i;return i}))},1172:e=>{e.exports=function e(t){var n=document.querySelector(t.tocSelector);if(n&&n.scrollHeight>n.clientHeight){var r=n.querySelector("."+t.activeListItemClass);if(r){n.scrollTop=r.offsetTop}}}},6808:(e,t,n)=>{var r,i;
/*!
* JavaScript Cookie v2.2.1
* https://github.com/js-cookie/js-cookie
*
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
\ No newline at end of file