diff --git a/books/markdeep.min.js b/books/markdeep.min.js index 7d8d7dc4..6ca93862 100644 --- a/books/markdeep.min.js +++ b/books/markdeep.min.js @@ -1,10 +1,10 @@ /**See https://casual-effects.com/markdeep for @license and documentation. -markdeep.min.js 1.15 (C) 2022 Morgan McGuire -highlight.min.js 11.6.0 (C) 2022 Ivan Sagalaev https://highlightjs.org */ -!function(){"use strict";var e=String.prototype;e.rp=e.replace,e.ss=e.substring,e.endsWith||(e.endsWith=function(e,n){return(void 0===n||n>this.length)&&(n=this.length),this.ss(n-e.length,n)===e}),e.regexIndexOf=function(e,n){var t=this.ss(n||0).search(e);return t>=0?t+(n||0):t};var n="*",t=Array(6).join(n);function a(e,n,t){return"<"+e+(t?" "+t:"")+">"+n+""}"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,n){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),a=1;add{margin-top:-8px; margin-bottom:8px}.md dl>table{margin:35px 0 30px}.md code{page-break-inside:avoid;} @media print{.md .listing code{white-space:pre-wrap}}.md .endnote{font-size:13px;line-height:15px;padding-left:10px;text-indent:-10px}.md .bib{padding-left:80px;text-indent:-80px;text-align:left}.markdeepFooter{font-size:9px;text-align:right;padding-top:80px;color:#999}.md .mediumTOC{float:right;font-size:12px;line-height:15px;border-left:1px solid #CCC;padding-left:15px;margin:15px 0px 15px 25px}.md .mediumTOC .level1{font-weight:600}.md .longTOC .level1{font-weight:600;display:block;padding-top:12px;margin:0 0 -20px}.md .shortTOC{text-align:center;font-weight:bold;margin-top:15px;font-size:14px}.md .admonition{position:relative;margin:1em 0;padding:.4rem 1rem;border-radius:.2rem;border-left:2.5rem solid rgba(68,138,255,.4);background-color:rgba(68,138,255,.15);}.md .admonition-title{font-weight:bold;border-bottom:solid 1px rgba(68,138,255,.4);padding-bottom:4px;margin-bottom:4px;margin-left: -1rem;padding-left:1rem;margin-right:-1rem;border-color:rgba(68,138,255,.4)}.md .admonition.tip{border-left:2.5rem solid rgba(50,255,90,.4);background-color:rgba(50,255,90,.15)}.md .admonition.tip::before{content:\"\\24d8\";font-weight:bold;font-size:"+(o?"200%;":"150%;")+'position:relative;top:3px;color:rgba(26,128,46,.8);left:-2.95rem;display:block;width:0;height:0}.md .admonition.tip>.admonition-title{border-color:rgba(50,255,90,.4)}.md .admonition.warn,.md .admonition.warning{border-left:2.5rem solid rgba(255,145,0,.4);background-color:rgba(255,145,0,.15)}.md .admonition.warn::before,.md .admonition.warning::before{content:"\\26A0";font-weight:bold;'+(o?"":"font-size:150%;")+'position:relative;top:2px;color:rgba(128,73,0,.8);left:-2.95rem;display:block;width:0;height:0}.md .admonition.warn>.admonition-title,.md .admonition.warning>.admonition-title{border-color:rgba(255,145,0,.4)}.md .admonition.error{border-left: 2.5rem solid rgba(255,23,68,.4);background-color:rgba(255,23,68,.15)}.md .admonition.error>.admonition-title{border-color:rgba(255,23,68,.4)}.md .admonition.error::before{content: "\\2612";font-family:"Arial";font-size:'+(o?"150%;":"200%;")+'position:relative;color:rgba(128,12,34,.8);top:-2px;left:-3rem;display:block;width:0;height:0}.md .admonition p:last-child{margin-bottom:0}.md li.checked,.md li.unchecked{list-style:none;overflow:visible;text-indent:-1.2em}.md li.checked:before,.md li.unchecked:before{content:"\\2611";display:block;float:left;width:1em;font-size:120%}.md li.unchecked:before{content:"\\2610"}'),c={keyword:{table:"Tabla",figure:"Figura",listing:"Listado",diagram:"Diagrama",contents:"Tabla de Contenidos",sec:"sec",section:"Secci\xf3n",subsection:"Subsecci\xf3n",chapter:"Cap\xedtulo",Monday:"Lunes",Tuesday:"Martes",Wednesday:"Mi\xe9rcoles",Thursday:"Jueves",Friday:"Viernes",Saturday:"S\xe1bado",Sunday:"Domingo",January:"Enero",February:"Febrero",March:"Marzo",April:"Abril",May:"Mayo",June:"Junio",July:"Julio",August:"Agosto",September:"Septiembre",October:"Octubre",November:"Noviembre",December:"Diciembre",jan:"ene",feb:"feb",mar:"mar",apr:"abr",may:"may",jun:"jun",jul:"jul",aug:"ago",sep:"sept",oct:"oct",nov:"nov",dec:"dic","“":"« ","&rtquo;":" »"}},d={mode:"markdeep",detectMath:!0,lang:{keyword:{}},tocStyle:"auto",hideEmptyWeekends:!0,autoLinkImages:!0,showLabels:!1,sortScheduleLists:!0,definitionStyle:"auto",linkAPIDefinitions:!1,inlineCodeLang:!1,scrollThreshold:90,captionAbove:{diagram:!1,image:!1,table:!1,listing:!1},smartQuotes:!0},u={en:{keyword:{}},ru:{keyword:{table:"\u0442\u0430\u0431\u043b\u0438\u0446\u0430",figure:"\u0440\u0438\u0441\u0443\u043d\u043e\u043a",listing:"\u043b\u0438\u0441\u0442\u0438\u043d\u0433",diagram:"\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0430",contents:"\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435",sec:"\u0441\u0435\u043a",section:"\u0440\u0430\u0437\u0434\u0435\u043b",subsection:"\u043f\u043e\u0434\u0440\u0430\u0437\u0434\u0435\u043b",chapter:"\u0433\u043b\u0430\u0432\u0430",Monday:"\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a",Tuesday:"\u0432\u0442\u043e\u0440\u043d\u0438\u043a",Wednesday:"\u0441\u0440\u0435\u0434\u0430",Thursday:"\u0447\u0435\u0442\u0432\u0435\u0440\u0433",Friday:"\u043f\u044f\u0442\u043d\u0438\u0446\u0430",Saturday:"\u0441\u0443\u0431\u0431\u043e\u0442\u0430",Sunday:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435",January:"\u044f\u043d\u0432\u0430\u0440\u044cr",February:"\u0444\u0435\u0432\u0440\u0430\u043b\u044c",March:"\u043c\u0430\u0440\u0442",April:"\u0430\u043f\u0440\u0435\u043b\u044c",May:"\u043c\u0430\u0439",June:"\u0438\u044e\u043d\u044c",July:"\u0438\u044e\u043b\u044c",August:"\u0430\u0432\u0433\u0443\u0441\u0442",September:"\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c",October:"\u043e\u043a\u0442\u044f\u0431\u0440\u044c",November:"\u043d\u043e\u044f\u0431\u0440\u044c",December:"\u0434\u0435\u043a\u0430\u0431\u0440\u044c",jan:"\u044f\u043d\u0432",feb:"\u0444\u0435\u0432\u0440",mar:"\u043c\u0430\u0440\u0442",apr:"\u0430\u043f\u0440",may:"\u043c\u0430\u0439",jun:"\u0438\u044e\u043d\u044c",jul:"\u0438\u044e\u043b\u044c",aug:"\u0430\u0432\u0433",sep:"\u0441\u0435\u043d\u0442",oct:"\u043e\u043a\u0442",nov:"\u043d\u043e\u044f\u0431\u0440\u044c",dec:"\u0434\u0435\u043a","“":"\xab","”":"\xbb"}},fr:{keyword:{table:"tableau",figure:"figure",listing:"liste",diagram:"diagramme",contents:"Table des mati\xe8res",sec:"sec",section:"section",subsection:"paragraphe",chapter:"chapitre",Monday:"lundi",Tuesday:"mardi",Wednesday:"mercredi",Thursday:"jeudi",Friday:"vendredi",Saturday:"samedi",Sunday:"dimanche",January:"Janvier",February:"F\xe9vrier",March:"Mars",April:"Avril",May:"Mai",June:"Juin",July:"Juillet",August:"Ao\xfbt",September:"Septembre",October:"Octobre",November:"Novembre",December:"D\xe9cembre",jan:"janv.",feb:"f\xe9vr.",mar:"mars",apr:"avril",may:"mai",jun:"juin",jul:"juil.",aug:"ao\xfbt",sep:"sept.",oct:"oct.",nov:"nov.",dec:"d\xe9c.","“":"« ","&rtquo;":" »"}},pl:{keyword:{table:"tabela",figure:"ilustracja",listing:"wykaz",diagram:"diagram",contents:"Spis tre\u015bci",sec:"rozdz.",section:"rozdzia\u0142",subsection:"podrozdzia\u0142",chapter:"kapitu\u0142a",Monday:"Poniedzia\u0142ek",Tuesday:"Wtorek",Wednesday:"\u015aroda",Thursday:"Czwartek",Friday:"Pi\u0105tek",Saturday:"Sobota",Sunday:"Niedziela",January:"Stycze\u0144",February:"Luty",March:"Marzec",April:"Kwiecie\u0144",May:"Maj",June:"Czerwiec",July:"Lipiec",August:"Sierpie\u0144",September:"Wrzesie\u0144",October:"Pa\u017adziernik",November:"Listopad",December:"Grudzie\u0144",jan:"sty",feb:"lut",mar:"mar",apr:"kwi",may:"maj",jun:"cze",jul:"lip",aug:"sie",sep:"wrz",oct:"pa\u017a",nov:"lis",dec:"gru","“":"„","”":"”"}},bg:{keyword:{table:"\u0442\u0430\u0431\u043b\u0438\u0446\u0430",figure:"\u0444\u0438\u0433\u0443\u0440\u0430",listing:"\u0441\u043f\u0438\u0441\u044a\u043a",diagram:"\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u0430",contents:"c\u044a\u0434\u044a\u0440\u0436\u0430\u043d\u0438\u0435",sec:"\u0441\u0435\u043a",section:"\u0440\u0430\u0437\u0434\u0435\u043b",subsection:"\u043f\u043e\u0434\u0440\u0430\u0437\u0434\u0435\u043b",chapter:"\u0433\u043b\u0430\u0432\u0430",Monday:"\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a",Tuesday:"\u0432\u0442\u043e\u0440\u043d\u0438\u043a",Wednesday:"\u0441\u0440\u044f\u0434\u0430",Thursday:"\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a",Friday:"\u043f\u0435\u0442\u044a\u043a",Saturday:"\u0441\u044a\u0431\u043e\u0442\u0430",Sunday:"\u043d\u0435\u0434\u0435\u043b\u044f",January:"\u044f\u043d\u0443\u0430\u0440\u0438",February:"\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438",March:"\u043c\u0430\u0440\u0442",April:"\u0430\u043f\u0440\u0438\u043b",May:"\u043c\u0430\u0439",June:"\u044e\u043d\u0438",July:"\u044e\u043b\u0438",August:"\u0430\u0432\u0433\u0443\u0441\u0442",September:"\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438",October:"\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438",November:"\u043d\u043e\u0435\u043c\u0432\u0440\u0438",December:"\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438",jan:"\u044f\u043d",feb:"\u0444\u0435\u0432\u0440",mar:"\u043c\u0430\u0440\u0442",apr:"\u0430\u043f\u0440",may:"\u043c\u0430\u0439",jun:"\u044e\u043d\u0438",jul:"\u044e\u043b\u0438",aug:"\u0430\u0432\u0433",sep:"\u0441\u0435\u043f\u0442",oct:"\u043e\u043a\u0442",nov:"\u043d\u043e\u0435\u043c",dec:"\u0434\u0435\u043a","“":"„","”":"”"}},de:{keyword:{table:"Tabelle",figure:"Abbildung",listing:"Auflistung",diagram:"Diagramm",contents:"Inhaltsverzeichnis",sec:"Kap",section:"Kapitel",subsection:"Unterabschnitt",chapter:"Kapitel",Monday:"Montag",Tuesday:"Dienstag",Wednesday:"Mittwoch",Thursday:"Donnerstag",Friday:"Freitag",Saturday:"Samstag",Sunday:"Sonntag",January:"Januar",February:"Februar",March:"M\xe4rz",April:"April",May:"Mai",June:"Juni",July:"Juli",August:"August",September:"September",October:"Oktober",November:"November",December:"Dezember",jan:"Jan",feb:"Feb",mar:"M\xe4r",apr:"Apr",may:"Mai",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Okt",nov:"Nov",dec:"Dez","“":"„","”":"“"}},hu:{keyword:{table:"t\xe1bl\xe1zat",figure:"\xe1bra",listing:"lista",diagram:"diagramm",contents:"Tartalomjegyz\xe9k",sec:"fej",section:"fejezet",subsection:"alfejezet",chapter:"fejezet",Monday:"h\xe9tf\u0151",Tuesday:"kedd",Wednesday:"szerda",Thursday:"cs\xfct\xf6rt\xf6k",Friday:"p\xe9ntek",Saturday:"szombat",Sunday:"vas\xe1rnap",January:"janu\xe1r",February:"febru\xe1r",March:"m\xe1rcius",April:"\xe1prilis",May:"m\xe1jus",June:"j\xfanius",July:"j\xfalius",August:"augusztus",September:"szeptember",October:"okt\xf3ber",November:"november",December:"december",jan:"jan",feb:"febr",mar:"m\xe1rc",apr:"\xe1pr",may:"m\xe1j",jun:"j\xfan",jul:"j\xfal",aug:"aug",sep:"szept",oct:"okt",nov:"nov",dec:"dec","“":"„","”":"”"}},sv:{keyword:{table:"tabell",figure:"figur",listing:"lista",diagram:"diagram",contents:"Inneh\xe5llsf\xf6rteckning",sec:"sek",section:"sektion",subsection:"sektion",chapter:"kapitel",Monday:"m\xe5ndag",Tuesday:"tisdag",Wednesday:"onsdag",Thursday:"torsdag",Friday:"fredag",Saturday:"l\xf6rdag",Sunday:"s\xf6ndag",January:"januari",February:"februari",March:"mars",April:"april",May:"maj",June:"juni",July:"juli",August:"augusti",September:"september",October:"oktober",November:"november",December:"december",jan:"jan",feb:"feb",mar:"mar",apr:"apr",may:"maj",jun:"jun",jul:"jul",aug:"aug",sep:"sep",oct:"okt",nov:"nov",dec:"dec","“":"”","”":"”"}},pt:{keyword:{table:"tabela",figure:"figura",listing:"lista",diagram:"diagrama",contents:"conte\xfado",sec:"sec",section:"sec\xe7\xe3o",subsection:"subsec\xe7\xe3o",chapter:"cap\xedtulo",Monday:"Segunda-feira",Tuesday:"Ter\xe7a-feira",Wednesday:"Quarta-feira",Thursday:"Quinta-feira",Friday:"Sexta-feira",Saturday:"S\xe1bado",Sunday:"Domingo",January:"Janeiro",February:"Fevereiro",March:"Mar\xe7o",April:"Abril",May:"Maio",June:"Junho",July:"Julho",August:"Agosto",September:"Setembro",October:"Outubro",November:"Novembro",December:"Dezembro",jan:"jan",feb:"fev",mar:"mar",apr:"abr",may:"mai",jun:"jun",jul:"jul",aug:"ago",sep:"set",oct:"oct",nov:"nov",dec:"dez","“":"«","&rtquo;":"»"}},ja:{keyword:{table:"\u8868",figure:"\u56f3",listing:"\u4e00\u89a7",diagram:"\u56f3",contents:"\u76ee\u6b21",sec:"\u7bc0",section:"\u7bc0",subsection:"\u9805",chapter:"\u7ae0",Monday:"\u6708",Tuesday:"\u706b",Wednesday:"\u6c34",Thursday:"\u6728",Friday:"\u91d1",Saturday:"\u571f",Sunday:"\u65e5",January:"1\u6708",February:"2\u6708",March:"3\u6708",April:"4\u6708",May:"5\u6708",June:"6\u6708",July:"7\u6708",August:"8\u6708",September:"9\u6708",October:"10\u6708",November:"11\u6708",December:"12\u6708",jan:"1\u6708",feb:"2\u6708",mar:"3\u6708",apr:"4\u6708",may:"5\u6708",jun:"6\u6708",jul:"7\u6708",aug:"8\u6708",sep:"9\u6708",oct:"10\u6708",nov:"11\u6708",dec:"12\u6708","“":"\u300c","”":"\u300d"}},it:{keyword:{table:"tabella",figure:"figura",listing:"lista",diagram:"diagramma",contents:"indice",sec:"sez",section:"sezione",subsection:"paragrafo",chapter:"capitolo",Monday:"luned\xec",Tuesday:"marted\xec",Wednesday:"mercoled\xec",Thursday:"gioved\xec",Friday:"venerd\xec",Saturday:"sabato",Sunday:"domenica",January:"Gennaio",February:"Febbraio",March:"Marzo",April:"Aprile",May:"Maggio",June:"Giugno",July:"Luglio",August:"Agosto",September:"Settembre",October:"Ottobre",November:"Novembre",December:"Dicembre",jan:"gen",feb:"feb",mar:"mar",apr:"apr",may:"mag",jun:"giu",jul:"lug",aug:"ago",sep:"set",oct:"ott",nov:"nov",dec:"dic","“":"“","&rtquo;":"”"}},lt:{keyword:{table:"lentel\u0117",figure:"paveiksl\u0117lis",listing:"s\u0105ra\u0161as",diagram:"diagrama",contents:"Turinys",sec:"sk",section:"skyrius",subsection:"poskyris",chapter:"skyrius",Monday:"pirmadienis",Tuesday:"antradienis",Wednesday:"tre\u010diadienis",Thursday:"ketvirtadienis",Friday:"penktadienis",Saturday:"\u0161e\u0161tadienis",Sunday:"sekmadienis",January:"Sausis",February:"Vasaris",March:"Kovas",April:"Balandis",May:"Gegu\u017e\u0117",June:"Bir\u017eelis",July:"Liepa",August:"Rugpj\u016btis",September:"Rugs\u0117jis",October:"Spalis",November:"Lapkritis",December:"Gruodis",jan:"saus",feb:"vas",mar:"kov",apr:"bal",may:"geg",jun:"bir\u017e",jul:"liep",aug:"rugpj",sep:"rugs",oct:"spal",nov:"lapkr",dec:"gruod","“":"„","&rtquo;":"“"}},cs:{keyword:{table:"Tabulka",figure:"Obr\xe1zek",listing:"Seznam",diagram:"Diagram",contents:"Obsah",sec:"kap.",section:"kapitola",subsection:"podkapitola",chapter:"kapitola",Monday:"pond\u011bl\xed",Tuesday:"\xfater\xfd",Wednesday:"st\u0159eda",Thursday:"\u010dtvrtek",Friday:"p\xe1tek",Saturday:"sobota",Sunday:"ned\u011ble",January:"leden",February:"\xfanor",March:"b\u0159ezen",April:"duben",May:"kv\u011bten",June:"\u010derven",July:"\u010dervenec",August:"srpen",September:"z\xe1\u0159\xed",October:"\u0159\xedjen",November:"listopad",December:"prosinec",jan:"led",feb:"\xfano",mar:"b\u0159e",apr:"dub",may:"kv\u011b",jun:"\u010dvn",jul:"\u010dvc",aug:"srp",sep:"z\xe1\u0159",oct:"\u0159\xedj",nov:"lis",dec:"pro","“":"„","”":"“"}},es:c,"es-ES":c,"es-ca":{keyword:{table:"Taula",figure:"Figura",listing:"Llistat",diagram:"Diagrama",contents:"Taula de Continguts",sec:"sec",section:"Secci\xf3",subsection:"Subsecci\xf3",chapter:"Cap\xedtol",Monday:"Dilluns",Tuesday:"Dimarts",Wednesday:"Dimecres",Thursday:"Dijous",Friday:"Divendres",Saturday:"Dissabte",Sunday:"Dimenge",January:"Gener",February:"Febrer",March:"Mar\xe7",April:"Abril",May:"Maig",June:"Juny",July:"Juliol",August:"Agost",September:"Septembre",October:"Octubre",November:"Novembre",December:"Desembre",jan:"gen",feb:"feb",mar:"mar",apr:"abr",may:"mai",jun:"jun",jul:"jul",aug:"ago",sep:"sept",oct:"oct",nov:"nov",dec:"des","“":"« ","&rtquo;":" »"}}};[].slice.call(document.getElementsByTagName("meta")).forEach((function(e){var n=e.getAttribute("lang");if(n){var t=u[n];t&&(d.lang=t)}}));var g=Math.max,m=Math.min,p=Math.abs,b=Math.sign||function(e){return+e===e?0===e?e:e>0?1:-1:NaN};function h(e,n){if(window.markdeepOptions&&void 0!==window.markdeepOptions[e]){var t=window.markdeepOptions[e];return n?void 0!==(t=t[n])?t:d[e][n]:window.markdeepOptions[e]}return void 0!==d[e]?n?d[e][n]:d[e]:void console.warn('Illegal option: "'+e+'"')}function f(e,n){if(h("showLabels")){var t=" {\xa0"+e+"\xa0}";return n?a(n,t):t}return""}function _(e){return h("lang").keyword[e]||h("lang").keyword[e.toLowerCase()]||e}function y(e){return String(e).rp(/&/g,"&").rp(//g,">").rp(/"/g,""")}function v(e){return e.rp(/</g,"<").rp(/>/g,">").rp(/"/g,'"').rp(/'/g,"'").rp(/–/g,"\u2013").rp(/—/g,"---").rp(/&/g,"&")}function x(e){return e.rp(/<.*?>/g,"")}function E(e){return encodeURI(e.rp(/\s/g,"").toLowerCase())}function w(){for(var e="",n=1;n<=6;++n){e+=".md h"+n+"::before {\ncontent:";for(var t=1;t<=n;++t)e+="counter(h"+t+') "'+(t|<\/ftp:.*>|<\/[^ "\t\n>]+@[^ "\t\n>]+>/gi,"")).rp(/<(https?|ftp): (.*?)>/gi,(function(e,n,t){var a="<"+n+"://"+t.rp(/=""\s/g,"/");return'=""'===a.ss(a.length-3)&&(a=a.ss(0,a.length-3)),(a=a.rp(/"/g,""))+">"}))).rp(/";function L(e){return Array.prototype.slice.call(e)}if(!window.alreadyProcessedMarkdeep){window.alreadyProcessedMarkdeep=!0;var I=-1!==window.location.href.search(/\?.*noformat.*/i);window.markdeep=Object.freeze({format:k,formatDiagram:O,stylesheet:function(){return l+w()+R}});var B=''; - -// Language options: -var FRENCH = { - keyword: { - table: 'tableau', - figure: 'figure', - listing: 'liste', - diagram: 'diagramme', - contents: 'Table des matières', - - sec: 'sec', - section: 'section', - subsection: 'paragraphe', - chapter: 'chapitre', - - Monday: 'lundi', - Tuesday: 'mardi', - Wednesday: 'mercredi', - Thursday: 'jeudi', - Friday: 'vendredi', - Saturday: 'samedi', - Sunday: 'dimanche', - - January: 'Janvier', - February: 'Février', - March: 'Mars', - April: 'Avril', - May: 'Mai', - June: 'Juin', - July: 'Juillet', - August: 'Août', - September: 'Septembre', - October: 'Octobre', - November: 'Novembre', - December: 'Décembre', - - jan: 'janv.', - feb: 'févr.', - mar: 'mars', - apr: 'avril', - may: 'mai', - jun: 'juin', - jul: 'juil.', - aug: 'août', - sep: 'sept.', - oct: 'oct.', - nov: 'nov.', - dec: 'déc.', - - '“': '« ', - '&rtquo;': ' »' - } -}; - -// Translated by "Warmist" -var LITHUANIAN = { - keyword: { - table: 'lentelė', - figure: 'paveikslėlis', - listing: 'sąrašas', - diagram: 'diagrama', - contents: 'Turinys', - - sec: 'sk', - section: 'skyrius', - subsection: 'poskyris', - chapter: 'skyrius', - - Monday: 'pirmadienis', - Tuesday: 'antradienis', - Wednesday: 'trečiadienis', - Thursday: 'ketvirtadienis', - Friday: 'penktadienis', - Saturday: 'šeštadienis', - Sunday: 'sekmadienis', - - January: 'Sausis', - February: 'Vasaris', - March: 'Kovas', - April: 'Balandis', - May: 'Gegužė', - June: 'Birželis', - July: 'Liepa', - August: 'Rugpjūtis', - September: 'Rugsėjis', - October: 'Spalis', - November: 'Lapkritis', - December: 'Gruodis', - - jan: 'saus', - feb: 'vas', - mar: 'kov', - apr: 'bal', - may: 'geg', - jun: 'birž', - jul: 'liep', - aug: 'rugpj', - sep: 'rugs', - oct: 'spal', - nov: 'lapkr', - dec: 'gruod', - - '“': '„', - '&rtquo;': '“' - } -}; - - -// Translated by Zdravko Velinov -var BULGARIAN = { - keyword: { - table: 'таблица', - figure: 'фигура', - listing: 'списък', - diagram: 'диаграма', - - contents: 'cъдържание', - - sec: 'сек', - section: 'раздел', - subsection: 'подраздел', - chapter: 'глава', - - Monday: 'понеделник', - Tuesday: 'вторник', - Wednesday: 'сряда', - Thursday: 'четвъртък', - Friday: 'петък', - Saturday: 'събота', - Sunday: 'неделя', - - January: 'януари', - February: 'февруари', - March: 'март', - April: 'април', - May: 'май', - June: 'юни', - July: 'юли', - August: 'август', - September: 'септември', - October: 'октомври', - November: 'ноември', - December: 'декември', - - jan: 'ян', - feb: 'февр', - mar: 'март', - apr: 'апр', - may: 'май', - jun: 'юни', - jul: 'юли', - aug: 'авг', - sep: 'септ', - oct: 'окт', - nov: 'ноем', - dec: 'дек', - - '“': '„', - '”': '”' - } -}; - - -// Translated by Tiago Antão -var PORTUGUESE = { - keyword: { - table: 'tabela', - figure: 'figura', - listing: 'lista', - diagram: 'diagrama', - contents: 'conteúdo', - - sec: 'sec', - section: 'secção', - subsection: 'subsecção', - chapter: 'capítulo', - - Monday: 'Segunda-feira', - Tuesday: 'Terça-feira', - Wednesday: 'Quarta-feira', - Thursday: 'Quinta-feira', - Friday: 'Sexta-feira', - Saturday: 'Sábado', - Sunday: 'Domingo', - - January: 'Janeiro', - February: 'Fevereiro', - March: 'Março', - April: 'Abril', - May: 'Maio', - June: 'Junho', - July: 'Julho', - August: 'Agosto', - September: 'Setembro', - October: 'Outubro', - November: 'Novembro', - December: 'Dezembro', - - jan: 'jan', - feb: 'fev', - mar: 'mar', - apr: 'abr', - may: 'mai', - jun: 'jun', - jul: 'jul', - aug: 'ago', - sep: 'set', - oct: 'oct', - nov: 'nov', - dec: 'dez', - - '“': '«', - '&rtquo;': '»' - } -}; - - -// Translated by Jan Toušek -var CZECH = { - keyword: { - table: 'Tabulka', - figure: 'Obrázek', - listing: 'Seznam', - diagram: 'Diagram', - - contents: 'Obsah', - - sec: 'kap.', // Abbreviation for section - section: 'kapitola', - subsection:'podkapitola', - chapter: 'kapitola', - - Monday: 'pondělí', - Tuesday: 'úterý', - Wednesday: 'středa', - Thursday: 'čtvrtek', - Friday: 'pátek', - Saturday: 'sobota', - Sunday: 'neděle', - - January: 'leden', - February: 'únor', - March: 'březen', - April: 'duben', - May: 'květen', - June: 'červen', - July: 'červenec', - August: 'srpen', - September: 'září', - October: 'říjen', - November: 'listopad', - December: 'prosinec', - - jan: 'led', - feb: 'úno', - mar: 'bře', - apr: 'dub', - may: 'kvě', - jun: 'čvn', - jul: 'čvc', - aug: 'srp', - sep: 'zář', - oct: 'říj', - nov: 'lis', - dec: 'pro', - - '“': '„', - '”': '“' - } -}; - - -var ITALIAN = { - keyword: { - table: 'tabella', - figure: 'figura', - listing: 'lista', - diagram: 'diagramma', - contents: 'indice', - - sec: 'sez', - section: 'sezione', - subsection: 'paragrafo', - chapter: 'capitolo', - - Monday: 'lunedì', - Tuesday: 'martedì', - Wednesday: 'mercoledì', - Thursday: 'giovedì', - Friday: 'venerdì', - Saturday: 'sabato', - Sunday: 'domenica', - - January: 'Gennaio', - February: 'Febbraio', - March: 'Marzo', - April: 'Aprile', - May: 'Maggio', - June: 'Giugno', - July: 'Luglio', - August: 'Agosto', - September: 'Settembre', - October: 'Ottobre', - November: 'Novembre', - December: 'Dicembre', - - jan: 'gen', - feb: 'feb', - mar: 'mar', - apr: 'apr', - may: 'mag', - jun: 'giu', - jul: 'lug', - aug: 'ago', - sep: 'set', - oct: 'ott', - nov: 'nov', - dec: 'dic', - - '“': '“', - '&rtquo;': '”' - } -}; - -var RUSSIAN = { - keyword: { - table: 'таблица', - figure: 'рисунок', - listing: 'листинг', - diagram: 'диаграмма', - - contents: 'Содержание', - - sec: 'сек', - section: 'раздел', - subsection: 'подраздел', - chapter: 'глава', - - Monday: 'понедельник', - Tuesday: 'вторник', - Wednesday: 'среда', - Thursday: 'четверг', - Friday: 'пятница', - Saturday: 'суббота', - Sunday: 'воскресенье', - - January: 'январьr', - February: 'февраль', - March: 'март', - April: 'апрель', - May: 'май', - June: 'июнь', - July: 'июль', - August: 'август', - September: 'сентябрь', - October: 'октябрь', - November: 'ноябрь', - December: 'декабрь', - - jan: 'янв', - feb: 'февр', - mar: 'март', - apr: 'апр', - may: 'май', - jun: 'июнь', - jul: 'июль', - aug: 'авг', - sep: 'сент', - oct: 'окт', - nov: 'ноябрь', - dec: 'дек', - - '“': '«', - '”': '»' - } -}; - -// Translated by Dariusz Kuśnierek -var POLISH = { - keyword: { - table: 'tabela', - figure: 'ilustracja', - listing: 'wykaz', - diagram: 'diagram', - contents: 'Spis treści', - - sec: 'rozdz.', - section: 'rozdział', - subsection: 'podrozdział', - chapter: 'kapituła', - - Monday: 'Poniedziałek', - Tuesday: 'Wtorek', - Wednesday: 'Środa', - Thursday: 'Czwartek', - Friday: 'Piątek', - Saturday: 'Sobota', - Sunday: 'Niedziela', - - January: 'Styczeń', - February: 'Luty', - March: 'Marzec', - April: 'Kwiecień', - May: 'Maj', - June: 'Czerwiec', - July: 'Lipiec', - August: 'Sierpień', - September: 'Wrzesień', - October: 'Październik', - November: 'Listopad', - December: 'Grudzień', - - jan: 'sty', - feb: 'lut', - mar: 'mar', - apr: 'kwi', - may: 'maj', - jun: 'cze', - jul: 'lip', - aug: 'sie', - sep: 'wrz', - oct: 'paź', - nov: 'lis', - dec: 'gru', - - '“': '„', - '”': '”' - } -}; - -// Translated by Sandor Berczi -var HUNGARIAN = { - keyword: { - table: 'táblázat', - figure: 'ábra', - listing: 'lista', - diagram: 'diagramm', - - contents: 'Tartalomjegyzék', - - sec: 'fej', // Abbreviation for section - section: 'fejezet', - subsection:'alfejezet', - chapter: 'fejezet', - - Monday: 'hétfő', - Tuesday: 'kedd', - Wednesday: 'szerda', - Thursday: 'csütörtök', - Friday: 'péntek', - Saturday: 'szombat', - Sunday: 'vasárnap', - - January: 'január', - February: 'február', - March: 'március', - April: 'április', - May: 'május', - June: 'június', - July: 'július', - August: 'augusztus', - September: 'szeptember', - October: 'október', - November: 'november', - December: 'december', - - jan: 'jan', - feb: 'febr', - mar: 'márc', - apr: 'ápr', - may: 'máj', - jun: 'jún', - jul: 'júl', - aug: 'aug', - sep: 'szept', - oct: 'okt', - nov: 'nov', - dec: 'dec', - - '“': '„', - '”': '”' - } -}; - -// Translated by Takashi Masuyama -var JAPANESE = { - keyword: { - table: '表', - figure: '図', - listing: '一覧', - diagram: '図', - contents: '目次', - - sec: '節', - section: '節', - subsection: '項', - chapter: '章', - - Monday: '月', - Tuesday: '火', - Wednesday: '水', - Thursday: '木', - Friday: '金', - Saturday: '土', - Sunday: '日', - - January: '1月', - February: '2月', - March: '3月', - April: '4月', - May: '5月', - June: '6月', - July: '7月', - August: '8月', - September: '9月', - October: '10月', - November: '11月', - December: '12月', - - jan: '1月', - feb: '2月', - mar: '3月', - apr: '4月', - may: '5月', - jun: '6月', - jul: '7月', - aug: '8月', - sep: '9月', - oct: '10月', - nov: '11月', - dec: '12月', - - '“': '「', - '”': '」' - } -}; - -// Translated by Sandor Berczi -var GERMAN = { - keyword: { - table: 'Tabelle', - figure: 'Abbildung', - listing: 'Auflistung', - diagram: 'Diagramm', - - contents: 'Inhaltsverzeichnis', - - sec: 'Kap', - section: 'Kapitel', - subsection:'Unterabschnitt', - chapter: 'Kapitel', - - Monday: 'Montag', - Tuesday: 'Dienstag', - Wednesday: 'Mittwoch', - Thursday: 'Donnerstag', - Friday: 'Freitag', - Saturday: 'Samstag', - Sunday: 'Sonntag', - - January: 'Januar', - February: 'Februar', - March: 'März', - April: 'April', - May: 'Mai', - June: 'Juni', - July: 'Juli', - August: 'August', - September: 'September', - October: 'Oktober', - November: 'November', - December: 'Dezember', - - jan: 'Jan', - feb: 'Feb', - mar: 'Mär', - apr: 'Apr', - may: 'Mai', - jun: 'Jun', - jul: 'Jul', - aug: 'Aug', - sep: 'Sep', - oct: 'Okt', - nov: 'Nov', - dec: 'Dez', - - '“': '„', - '”': '“' - } -}; - -// Translated by Marcelo Arroyo -var SPANISH = { - keyword: { - table: 'Tabla', - figure: 'Figura', - listing: 'Listado', - diagram: 'Diagrama', - contents: 'Tabla de Contenidos', - - sec: 'sec', - section: 'Sección', - subsection: 'Subsección', - chapter: 'Capítulo', - - Monday: 'Lunes', - Tuesday: 'Martes', - Wednesday: 'Miércoles', - Thursday: 'Jueves', - Friday: 'Viernes', - Saturday: 'Sábado', - Sunday: 'Domingo', - - January: 'Enero', - February: 'Febrero', - March: 'Marzo', - April: 'Abril', - May: 'Mayo', - June: 'Junio', - July: 'Julio', - August: 'Agosto', - September: 'Septiembre', - October: 'Octubre', - November: 'Noviembre', - December: 'Diciembre', - - jan: 'ene', - feb: 'feb', - mar: 'mar', - apr: 'abr', - may: 'may', - jun: 'jun', - jul: 'jul', - aug: 'ago', - sep: 'sept', - oct: 'oct', - nov: 'nov', - dec: 'dic', - - '“': '« ', - '&rtquo;': ' »' - } -}; - -// Translated by Nils Nilsson -var SWEDISH = { - keyword: { - table: 'tabell', - figure: 'figur', - listing: 'lista', - diagram: 'diagram', - - contents: 'Innehållsförteckning', - sec: 'sek', - section: 'sektion', - subsection:'sektion', - chapter: 'kapitel', - - Monday: 'måndag', - Tuesday: 'tisdag', - Wednesday: 'onsdag', - Thursday: 'torsdag', - Friday: 'fredag', - Saturday: 'lördag', - Sunday: 'söndag', - - January: 'januari', - February: 'februari', - March: 'mars', - April: 'april', - May: 'maj', - June: 'juni', - July: 'juli', - August: 'augusti', - September: 'september', - October: 'oktober', - November: 'november', - December: 'december', - - jan: 'jan', - feb: 'feb', - mar: 'mar', - apr: 'apr', - may: 'maj', - jun: 'jun', - jul: 'jul', - aug: 'aug', - sep: 'sep', - oct: 'okt', - nov: 'nov', - dec: 'dec', - - '“': '”', - '”': '”' - } -}; - - -// Translated by Marc Izquierdo -var CATALAN = { - keyword: { - table: 'Taula', - figure: 'Figura', - listing: 'Llistat', - diagram: 'Diagrama', - contents: 'Taula de Continguts', - - sec: 'sec', - section: 'Secció', - subsection: 'Subsecció', - chapter: 'Capítol', - - Monday: 'Dilluns', - Tuesday: 'Dimarts', - Wednesday: 'Dimecres', - Thursday: 'Dijous', - Friday: 'Divendres', - Saturday: 'Dissabte', - Sunday: 'Dimenge', - - January: 'Gener', - February: 'Febrer', - March: 'Març', - April: 'Abril', - May: 'Maig', - June: 'Juny', - July: 'Juliol', - August: 'Agost', - September: 'Septembre', - October: 'Octubre', - November: 'Novembre', - December: 'Desembre', - - jan: 'gen', - feb: 'feb', - mar: 'mar', - apr: 'abr', - may: 'mai', - jun: 'jun', - jul: 'jul', - aug: 'ago', - sep: 'sept', - oct: 'oct', - nov: 'nov', - dec: 'des', - - '“': '« ', - '&rtquo;': ' »' - } -}; - -var DEFAULT_OPTIONS = { - mode: 'markdeep', - detectMath: true, - lang: {keyword:{}}, // English - tocStyle: 'auto', - hideEmptyWeekends: true, - showLabels: false, - sortScheduleLists: true, - definitionStyle: 'auto', - linkAPIDefinitions: false, - inlineCodeLang: false, - scrollThreshold: 90, - captionAbove: {diagram: false, - image: false, - table: false, - listing: false}, - smartQuotes: true -}; - - -// See http://www.i18nguy.com/unicode/language-identifiers.html for keys -var LANG_TABLE = { - en: {keyword:{}}, - ru: RUSSIAN, - fr: FRENCH, - pl: POLISH, - bg: BULGARIAN, - de: GERMAN, - hu: HUNGARIAN, - sv: SWEDISH, - pt: PORTUGUESE, - ja: JAPANESE, - it: ITALIAN, - lt: LITHUANIAN, - cz: CZECH, - es: SPANISH, - 'es-ES': SPANISH, - 'es-ca': CATALAN - // Contribute your language here! I only accept translations - // from native speakers. -}; - -[].slice.call(document.getElementsByTagName('meta')).forEach(function(elt) { - var att = elt.getAttribute('lang'); - if (att) { - var lang = LANG_TABLE[att]; - if (lang) { - DEFAULT_OPTIONS.lang = lang; - } - } -}); - - -var max = Math.max; -var min = Math.min; -var abs = Math.abs; -var sign = Math.sign || function (x) { - return ( +x === x ) ? ((x === 0) ? x : (x > 0) ? 1 : -1) : NaN; -}; - - -/** Get an option, or return the corresponding value from DEFAULT_OPTIONS */ -function option(key, key2) { - if (window.markdeepOptions && (window.markdeepOptions[key] !== undefined)) { - var val = window.markdeepOptions[key]; - if (key2) { - val = val[key2] - if (val !== undefined) { - return val; - } else { - return DEFAULT_OPTIONS[key][key2]; - } - } else { - return window.markdeepOptions[key]; - } - } else if (DEFAULT_OPTIONS[key] !== undefined) { - if (key2) { - return DEFAULT_OPTIONS[key][key2]; - } else { - return DEFAULT_OPTIONS[key]; - } - } else { - console.warn('Illegal option: "' + key + '"'); - return undefined; - } -} - - -function maybeShowLabel(url, tag) { - if (option('showLabels')) { - var text = ' {\u00A0' + url + '\u00A0}'; - return tag ? entag(tag, text) : text; - } else { - return ''; - } -} - - -// Returns the localized version of word, defaulting to the word itself -function keyword(word) { - return option('lang').keyword[word] || option('lang').keyword[word.toLowerCase()] || word; -} - - -/** Converts <>&" to their HTML escape sequences */ -function escapeHTMLEntities(str) { - return String(str).rp(/&/g, '&').rp(//g, '>').rp(/"/g, '"'); -} - - -/** Restores the original source string's '<' and '>' as entered in - the document, before the browser processed it as HTML. There is no - way in an HTML document to distinguish an entity that was entered - as an entity. */ -function unescapeHTMLEntities(str) { - // Process & last so that we don't recursively unescape - // escaped escape sequences. - return str. - rp(/</g, '<'). - rp(/>/g, '>'). - rp(/"/g, '"'). - rp(/'/g, "'"). - rp(/–/g, '\u2013'). - rp(/—/g, '---'). - rp(/&/g, '&'); -} - - -function removeHTMLTags(str) { - return str.rp(/<.*?>/g, ''); -} - - -/** Turn the argument into a legal URL anchor */ -function mangle(text) { - return encodeURI(text.rp(/\s/g, '').toLowerCase()); -} - -/** Creates a style sheet containing elements like: - - hn::before { - content: counter(h1) "." counter(h2) "." ... counter(hn) " "; - counter-increment: hn; - } -*/ -function sectionNumberingStylesheet() { - var s = ''; - - for (var i = 1; i <= 6; ++i) { - s += '.md h' + i + '::before {\ncontent:'; - for (var j = 1; j <= i; ++j) { - s += 'counter(h' + j + ') "' + ((j < i) ? '.' : ' ') + '"'; - } - s += ';\ncounter-increment: h' + i + ';margin-right:10px}\n\n'; - } - - return entag('style', s); -} - -/** - \param node A node from an HTML DOM - - \return A String that is a very good reconstruction of what the - original source looked like before the browser tried to correct - it to legal HTML. - */ -function nodeToMarkdeepSource(node, leaveEscapes) { - var source = node ? node.innerHTML : ''; - - // Markdown uses email syntax, which HTML parsing - // will try to close by inserting the matching close tags at the end of the - // document. Remove anything that looks like that and comes *after* - // the first fallback style. - //source = source.rp(/"; - -function isMarkdeepScriptName(str) { return str.search(/markdeep\S*?\.js$/i) !== -1; } -function toArray(list) { return Array.prototype.slice.call(list); } - -// Intentionally uninitialized global variable used to detect -// recursive invocations -if (! window.alreadyProcessedMarkdeep) { - window.alreadyProcessedMarkdeep = true; - - // Detect the noformat argument to the URL - var noformat = (window.location.href.search(/\?.*noformat.*/i) !== -1); - - // Export relevant methods - window.markdeep = Object.freeze({ - format: markdeepToHTML, - formatDiagram: diagramToSVG, - stylesheet: function() { - return STYLESHEET + sectionNumberingStylesheet() + HIGHLIGHT_STYLESHEET; - } - }); - - // Not needed: jax: ["input/TeX", "output/SVG"], - var MATHJAX_CONFIG ='' + - '' + - // Custom definitions (NC == \newcommand) - '$$NC{\\n}{\\hat{n}}NC{\\thetai}{\\theta_\\mathrm{i}}NC{\\thetao}{\\theta_\\mathrm{o}}NC{\\d}[1]{\\mathrm{d}#1}NC{\\w}{\\hat{\\omega}}NC{\\wi}{\\w_\\mathrm{i}}NC{\\wo}{\\w_\\mathrm{o}}NC{\\wh}{\\w_\\mathrm{h}}NC{\\Li}{L_\\mathrm{i}}NC{\\Lo}{L_\\mathrm{o}}NC{\\Le}{L_\\mathrm{e}}NC{\\Lr}{L_\\mathrm{r}}NC{\\Lt}{L_\\mathrm{t}}NC{\\O}{\\mathrm{O}}NC{\\degrees}{{^{\\large\\circ}}}NC{\\T}{\\mathsf{T}}NC{\\mathset}[1]{\\mathbb{#1}}NC{\\Real}{\\mathset{R}}NC{\\Integer}{\\mathset{Z}}NC{\\Boolean}{\\mathset{B}}NC{\\Complex}{\\mathset{C}}NC{\\un}[1]{\\,\\mathrm{#1}}$$\n'.rp(/NC/g, '\\newcommand') + - '\n'; - - // The following option forces better rendering on some browsers, but also makes it impossible to copy-paste text with - // inline equations: - // - // 'config=TeX-MML-AM_SVG' - var MATHJAX_URL = 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.6/MathJax.js?config=TeX-AMS-MML_HTMLorMML'; - - var loadMathJax = function() { - // Dynamically load mathjax - var script = document.createElement("script"); - script.type = "text/javascript"; - script.src = MATHJAX_URL; - document.getElementsByTagName("head")[0].appendChild(script); - } - - var needsMathJax= function(html) { - // Need MathJax if $$ ... $$, \( ... \), or \begin{ - return option('detectMath') && - ((html.search(/(?:\$\$[\s\S]+\$\$)|(?:\\begin{)/m) !== -1) || - (html.search(/\\\(.*\\\)/) !== -1)); - } - - var mode = option('mode'); - switch (mode) { - case 'script': - // Nothing to do - return; - - case 'html': - case 'doxygen': - // Process explicit diagram tags by themselves - toArray(document.getElementsByClassName('diagram')).concat(toArray(document.getElementsByTagName('diagram'))).forEach( - function (element) { - var src = unescapeHTMLEntities(element.innerHTML); - // Remove the first and last string (which probably - // had the pre or diagram tag as part of them) if they are - // empty except for whitespace. - src = src.rp(/(:?^[ \t]*\n)|(:?\n[ \t]*)$/g, ''); - - if (mode === 'doxygen') { - // Undo Doxygen's &ndash and &mdash, which are impossible to - // detect once the browser has parsed the document - src = src.rp(new RegExp('\u2013', 'g'), '--'); - src = src.rp(new RegExp('\u2014', 'g'), '---'); - - // Undo Doxygen's links within the diagram because they throw off spacing - src = src.rp(/(.*)<\/a>/g, '$1'); - } - element.outerHTML = '
' + diagramToSVG(removeLeadingSpace(src), '') + '
'; - }); - - // Collect all nodes that will receive markdeep processing - var markdeepNodeArray = toArray(document.getElementsByClassName('markdeep')).concat(toArray(document.getElementsByTagName('markdeep'))); - - // Extract the source code of markeep nodes - var sourceArray = markdeepNodeArray.map(function (node) { - return removeLeadingSpace(unescapeHTMLEntities(node.innerHTML)); - }); - - // Process insert commands and then trigger markdeep processing - processInsertCommands(markdeepNodeArray, sourceArray, function (nodeArray, sourceArray) { - // Update sourceArray if needed because the source code was mutated - // by insert processing - sourceArray = sourceArray || nodeArray.map(function (node) { - return removeLeadingSpace(unescapeHTMLEntities(node.innerHTML)); - }); - - // Process all nodes, replacing them as we progress - var anyNeedsMathJax = false; - for (var i = 0; i < markdeepNodeArray.length; ++i) { - var oldNode = markdeepNodeArray[i]; - var newNode = document.createElement('div'); - var source = removeLeadingSpace(unescapeHTMLEntities(oldNode.innerHTML)); - var html = markdeepToHTML(source, true); - anyNeedsMathJax = anyNeedsMathJax || needsMathJax(html); - newNode.innerHTML = html; - oldNode.parentNode.replaceChild(newNode, oldNode); - } - - if (anyNeedsMathJax) { loadMathJax(); } - - // Include our stylesheet even if there are no MARKDEEP tags, but do not include the BODY_STYLESHEET. - document.head.innerHTML = window.markdeep.stylesheet() + document.head.innerHTML + (anyNeedsMathJax ? MATHJAX_CONFIG : ''); - - // Remove fallback nodes - var fallbackNodes = document.getElementsByClassName('fallback'); - for (var i = 0; i < fallbackNodes.length; ++i) { - fallbackNodes[i].remove(); - } - - }); - - window.alreadyProcessedMarkdeep = true; - - return; - } - - // The following is Morgan's massive hack for allowing browsers to - // directly parse Markdown from what appears to be a text file, but is - // actually an intentionally malformed HTML file. - - // In order to be able to show what source files look like, the - // noformat argument may be supplied. - - if (! noformat) { - // Remove any recursive references to this script so that we don't trigger the cost of - // recursive *loading*. (The alreadyProcessedMarkdeep variable will prevent recursive - // *execution*.) We allow other scripts to pass through. - toArray(document.getElementsByTagName('script')).forEach(function(node) { - if (isMarkdeepScriptName(node.src)) { - node.parentNode.removeChild(node); - } - }); - - // Add an event handler for scrolling - var scrollThreshold = parseInt(option('scrollThreshold')); - document.addEventListener('scroll', function () { - var b = document.body, c = b.classList, s = 'scrolled'; - if (b.scrollTop > scrollThreshold) c.add(s); else c.remove(s); - }); - - // Hide the body while formatting - if (document.body) { - document.body.style.visibility = 'hidden'; - } - } - - var source = nodeToMarkdeepSource(document.body); - - if (noformat) { - // Abort processing. - source = source.rp(//g,"")),e=(e=(e=e.rp(/([\s\S]*?)<\/svg>/gi,(function(e,t,n){return""+m(n)+""}))).rp(/";function H(e){return Array.prototype.slice.call(e)}if(!window.alreadyProcessedMarkdeep){window.alreadyProcessedMarkdeep=!0;var G=-1!==window.location.href.search(/\?.*noformat.*/i);window.markdeep=Object.freeze({format:j,formatDiagram:$,langTable:_,stylesheet:function(){return g+T()+P}});var Z='