minor fix of citaitons

This commit is contained in:
Christopher Olah committed 2017-01-08 13:45:25 -08:00
1 parent acdce18857
commit dee8fc53f1
3 files changed
+6 -6

No files matched your search

+3 -3
View File
@@ -1,11 +1,11 @@
export default function(dom, data) {
let citations = [];
if (data.citations) {
let citations = data.citations;
/*if (data.citations) {
citations = Object.keys(data.citations).map(c => data.citations[c]);
citations.sort((a, b) => {
return a.author.localeCompare(b.author);
});
}
}*/
var citeTags = [].slice.apply(dom.querySelectorAll("dt-cite"));
console.log(citeTags);
+2 -2
View File
@@ -1,4 +1,4 @@
var dl=function(){"use strict";function t(t){return"undefined"==typeof t||null===t}function e(t){return"object"==typeof t&&null!==t}function n(e){return Array.isArray(e)?e:t(e)?[]:[e]}function i(t,e){var n,i,r,o;if(e)for(o=Object.keys(e),n=0,i=o.length;n<i;n+=1)r=o[n],t[r]=e[r];return t}function r(t,e){var n,i="";for(n=0;n<e;n+=1)i+=t;return i}function o(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t}function a(t,e){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||"",this.name="YAMLException",this.reason=t,this.mark=e,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():"")}function s(t,e,n,i,r){this.name=t,this.buffer=e,this.position=n,this.line=i,this.column=r}function l(t){var e={};return null!==t&&Object.keys(t).forEach(function(n){t[n].forEach(function(t){e[String(t)]=n})}),e}function c(t,e){if(e=e||{},Object.keys(e).forEach(function(e){if(Fe.indexOf(e)===-1)throw new Me('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')}),this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.defaultStyle=e.defaultStyle||null,this.styleAliases=l(e.styleAliases||null),Ne.indexOf(this.kind)===-1)throw new Me('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}function u(t,e,n){var i=[];return t.include.forEach(function(t){n=u(t,e,n)}),t[e].forEach(function(t){n.forEach(function(e,n){e.tag===t.tag&&e.kind===t.kind&&i.push(n)}),n.push(t)}),n.filter(function(t,e){return i.indexOf(e)===-1})}function p(){function t(t){r[t.kind][t.tag]=r.fallback[t.tag]=t}var e,n,i=arguments,r={scalar:{},sequence:{},mapping:{},fallback:{}};for(e=0,n=arguments.length;e<n;e+=1)i[e].forEach(t);return r}function h(t){this.include=t.include||[],this.implicit=t.implicit||[],this.explicit=t.explicit||[],this.implicit.forEach(function(t){if(t.loadKind&&"scalar"!==t.loadKind)throw new $e("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=u(this,"implicit",[]),this.compiledExplicit=u(this,"explicit",[]),this.compiledTypeMap=p(this.compiledImplicit,this.compiledExplicit)}function d(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)}function f(){return null}function g(t){return null===t}function m(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)}function b(t){return"true"===t||"True"===t||"TRUE"===t}function y(t){return"[object Boolean]"===Object.prototype.toString.call(t)}function x(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function v(t){return 48<=t&&t<=55}function k(t){return 48<=t&&t<=57}function w(t){if(null===t)return!1;var e,n=t.length,i=0,r=!1;if(!n)return!1;if(e=t[i],"-"!==e&&"+"!==e||(e=t[++i]),"0"===e){if(i+1===n)return!0;if(e=t[++i],"b"===e){for(i++;i<n;i++)if(e=t[i],"_"!==e){if("0"!==e&&"1"!==e)return!1;r=!0}return r}if("x"===e){for(i++;i<n;i++)if(e=t[i],"_"!==e){if(!x(t.charCodeAt(i)))return!1;r=!0}return r}for(;i<n;i++)if(e=t[i],"_"!==e){if(!v(t.charCodeAt(i)))return!1;r=!0}return r}for(;i<n;i++)if(e=t[i],"_"!==e){if(":"===e)break;if(!k(t.charCodeAt(i)))return!1;r=!0}return!!r&&(":"!==e||/^(:[0-5]?[0-9])+$/.test(t.slice(i)))}function A(t){var e,n,i=t,r=1,o=[];return i.indexOf("_")!==-1&&(i=i.replace(/_/g,"")),e=i[0],"-"!==e&&"+"!==e||("-"===e&&(r=-1),i=i.slice(1),e=i[0]),"0"===i?0:"0"===e?"b"===i[1]?r*parseInt(i.slice(2),2):"x"===i[1]?r*parseInt(i,16):r*parseInt(i,8):i.indexOf(":")!==-1?(i.split(":").forEach(function(t){o.unshift(parseInt(t,10))}),i=0,n=1,o.forEach(function(t){i+=t*n,n*=60}),r*i):r*parseInt(i,10)}function C(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1===0&&!tn.isNegativeZero(t)}function S(t){return null!==t&&!!an.test(t)}function _(t){var e,n,i,r;return e=t.replace(/_/g,"").toLowerCase(),n="-"===e[0]?-1:1,r=[],"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:e.indexOf(":")>=0?(e.split(":").forEach(function(t){r.unshift(parseFloat(t,10))}),e=0,i=1,r.forEach(function(t){e+=t*i,i*=60}),n*e):n*parseFloat(e,10)}function E(t,e){var n;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(rn.isNegativeZero(t))return"-0.0";return n=t.toString(10),sn.test(n)?n.replace("e",".e"):n}function j(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!==0||rn.Line truncated
var e=t.createElement("style");e.textContent=ye+xe+ve+ke,t.querySelector("head").appendChild(e)},Ae=t,Ce=e,Se=n,_e=r,Ee=o,je=i,Oe={isNothing:Ae,isObject:Ce,toArray:Se,repeat:_e,isNegativeZero:Ee,extend:je};a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a.prototype.toString=function(t){var e=this.name+": ";return e+=this.reason||"(unknown reason)",!t&&this.mark&&(e+=" "+this.mark.toString()),e};var Le=a,Ie=Oe;s.prototype.getSnippet=function(t,e){var n,i,r,o,a,s=this;if(!this.buffer)return null;for(t=t||4,e=e||75,n="",i=this.position;i>0&&"\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,s.position-i>e/2-1){n=" ... ",i+=5;break}for(r="",o=this.position;o<this.buffer.length&&"\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(o))===-1;)if(o+=1,o-s.position>e/2-1){r=" ... ",o-=5;break}return a=this.buffer.slice(i,o),Ie.repeat(" ",t)+n+a+r+"\n"+Ie.repeat(" ",t+this.position-i+n.length)+"^"},s.prototype.toString=function(t){var e,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(e=this.getSnippet(),e&&(n+=":\n"+e)),n};var Te=s,Me=Le,Fe=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],Ne=["scalar","sequence","mapping"],qe=c,ze=Oe,$e=Le,De=qe;h.DEFAULT=null,h.create=function(){var t,e;switch(arguments.length){case 1:t=h.DEFAULT,e=arguments[0];break;case 2:t=arguments[0],e=arguments[1];break;default:throw new $e("Wrong number of arguments for Schema.create function")}if(t=ze.toArray(t),e=ze.toArray(e),!t.every(function(t){return t instanceof h}))throw new $e("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!e.every(function(t){return t instanceof De}))throw new $e("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new h({include:t,explicit:e})};var Pe,We=h,Re=qe,Ue=new Re("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return null!==t?t:""}}),Be=qe,He=new Be("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return null!==t?t:[]}}),Ye=qe,Ke=new Ye("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return null!==t?t:{}}}),Ge=We,Ve=new Ge({explicit:[Ue,He,Ke]}),Je=qe,Ze=new Je("tag:yaml.org,2002:null",{kind:"scalar",resolve:d,construct:f,predicate:g,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"}),Xe=qe,Qe=new Xe("tag:yaml.org,2002:bool",{kind:"scalar",resolve:m,construct:b,predicate:y,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"}),tn=Oe,en=qe,nn=new en("tag:yaml.org,2002:int",{kind:"scalar",resolve:w,construct:A,predicate:C,represent:{binary:function(t){return"0b"+t.toString(2)},octal:function(t){return"0"+t.toString(8)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return"0x"+t.toString(16).toUpperCase()}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),rn=Oe,on=qe,an=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)\\.[0-9_]*(?:[eE][-+][0-9]+)?|\\.[0-9_]+(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),sn=/^[-+]?[0-9]+e/,ln=new on("tag:yaml.org,2002:float",{kind:"scalar",resolve:S,construct:_,predicate:j,represent:E,defaultStyle:"lowercase"}),cn=We,un=new cn({include:[Ve],implicit:[Ze,Qe,nn,ln]}),pn=We,hn=new pn({include:[un]}),dn=qe,fn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),gn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),mn=new dn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:O,construct:L,instanceOf:Date,represent:I}),bn=qe,yn=new bn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:T}),xn="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};try{var vn=M;Pe=vn("buffer").Buffer}catch(t){}var kn,wn=qe,An="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",Cn=new wn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:N,construct:q,predicate:$,represent:z}),Sn=qe,_n=Object.prototype.hasOwnProperty,En=Object.prototype.toString,jn=new Sn("tag:yaml.org,2002:omap",{kind:"sequence",resolve:D,construct:P}),On=qe,Ln=Object.prototype.toString,In=new On("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:W,construct:R}),Tn=qe,Mn=Object.prototype.hasOwnProperty,Fn=new Tn("tag:yaml.org,2002:set",{kind:"mapping",resolve:U,construct:B}),Nn=We,qn=new Nn({include:[hn],implicit:[mn,yn],explicit:[Cn,jn,In,Fn]}),zn=qe,$n=new zn("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:H,construct:Y,predicate:G,represent:K}),Dn=qe,Pn=new Line truncated
},n.prototype.smartypants=function(t){return this.options.smartypants?t.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):t},n.prototype.mangle=function(t){if(!this.options.mangle)return t;for(var e,n="",i=t.length,r=0;r<i;r++)e=t.charCodeAt(r),Math.random()>.5&&(e="x"+e.toString(16)),n+="&#"+e+";";return n},i.prototype.code=function(t,e,n){if(this.options.highlight){var i=this.options.highlight(t,e);null!=i&&i!==t&&(n=!0,t=i)}return e?'<pre><code class="'+this.options.langPrefix+o(e,!0)+'">'+(n?t:o(t,!0))+"\n</code></pre>\n":"<pre><code>"+(n?t:o(t,!0))+"\n</code></pre>"},i.prototype.blockquote=function(t){return"<blockquote>\n"+t+"</blockquote>\n"},i.prototype.html=function(t){return t},i.prototype.heading=function(t,e,n){return"<h"+e+' id="'+this.options.headerPrefix+n.toLowerCase().replace(/[^\w]+/g,"-")+'">'+t+"</h"+e+">\n"},i.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},i.prototype.list=function(t,e){var n=e?"ol":"ul";return"<"+n+">\n"+t+"</"+n+">\n"},i.prototype.listitem=function(t){return"<li>"+t+"</li>\n"},i.prototype.paragraph=function(t){return"<p>"+t+"</p>\n"},i.prototype.table=function(t,e){return"<table>\n<thead>\n"+t+"</thead>\n<tbody>\n"+e+"</tbody>\n</table>\n"},i.prototype.tablerow=function(t){return"<tr>\n"+t+"</tr>\n"},i.prototype.tablecell=function(t,e){var n=e.header?"th":"td",i=e.align?"<"+n+' style="text-align:'+e.align+'">':"<"+n+">";return i+t+"</"+n+">\n"},i.prototype.strong=function(t){return"<strong>"+t+"</strong>"},i.prototype.em=function(t){return"<em>"+t+"</em>"},i.prototype.codespan=function(t){return"<code>"+t+"</code>"},i.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},i.prototype.del=function(t){return"<del>"+t+"</del>"},i.prototype.link=function(t,e,n){if(this.options.sanitize){try{var i=decodeURIComponent(a(t)).replace(/[^\w:]/g,"").toLowerCase()}catch(t){return""}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:"))return""}var r='<a href="'+t+'"';return e&&(r+=' title="'+e+'"'),r+=">"+n+"</a>"},i.prototype.image=function(t,e,n){var i='<img src="'+t+'" alt="'+n+'"';return e&&(i+=' title="'+e+'"'),i+=this.options.xhtml?"/>":">"},i.prototype.text=function(t){return t},r.parse=function(t,e,n){var i=new r(e,n);return i.parse(t)},r.prototype.parse=function(t){var e=this;this.inline=new n(t.links,this.options,this.renderer),this.tokens=t.reverse();for(var i="";this.next();)i+=e.tok();return i},r.prototype.next=function(){return this.token=this.tokens.pop()},r.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},r.prototype.parseText=function(){for(var t=this,e=this.token.text;"text"===this.peek().type;)e+="\n"+t.next().text;return this.inline.output(e)},r.prototype.tok=function(){var t=this;switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,n,i,r,o,a="",s="";for(i="",e=0;e<this.token.header.length;e++)r={header:!0,align:t.token.align[e]},i+=t.renderer.tablecell(t.inline.output(t.token.header[e]),{header:!0,align:t.token.align[e]});for(a+=this.renderer.tablerow(i),e=0;e<this.token.cells.length;e++){for(n=t.token.cells[e],i="",o=0;o<n.length;o++)i+=t.renderer.tablecell(t.inline.output(n[o]),{header:!1,align:t.token.align[o]});s+=t.renderer.tablerow(i)}return this.renderer.table(a,s);case"blockquote_start":for(var s="";"blockquote_end"!==this.next().type;)s+=t.tok();return this.renderer.blockquote(s);case"list_start":for(var s="",l=this.token.ordered;"list_end"!==this.next().type;)s+=t.tok();return this.renderer.list(s,l);case"list_item_start":for(var s="";"list_item_end"!==this.next().type;)s+="text"===t.token.type?t.parseText():t.tok();return this.renderer.listitem(s);case"loose_item_start":for(var s="";"list_item_end"!==this.next().type;)s+=t.tok();return this.renderer.listitem(s);case"html":var c=this.token.pre||this.options.pedantic?this.token.text:this.inline.output(this.token.text);return this.renderer.html(c);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText())}},l.exec=l,u.options=u.setOptions=function(t){return c(u.defaults,t),u},u.defaults={gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,sanitizer:null,mangle:!0,smartLists:!1,silent:!1,highlight:null,langPrefix:"lang-",smartypants:!1,headerPrefix:"",renderer:new i,xhtml:!1},u.Parser=r,u.parser=r.parse,u.Renderer=i,u.Lexer=e,u.lexer=e.lex,u.InlineLexer=n,u.inlineLexer=n.output,u.parse=u,t.exports=u}).call(function(){return this||("undefined"!=typeof window?window:xn)}())});Rr.setOptions({gfm:!0,smartypants:!0});var Ur=function(t,e){var n=[].slice.call(t.querySelectorALine truncated
var e=t.createElement("style");e.textContent=ye+xe+ve+ke,t.querySelector("head").appendChild(e)},Ae=t,Ce=e,Se=n,_e=r,Ee=o,je=i,Oe={isNothing:Ae,isObject:Ce,toArray:Se,repeat:_e,isNegativeZero:Ee,extend:je};a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a.prototype.toString=function(t){var e=this.name+": ";return e+=this.reason||"(unknown reason)",!t&&this.mark&&(e+=" "+this.mark.toString()),e};var Le=a,Ie=Oe;s.prototype.getSnippet=function(t,e){var n,i,r,o,a,s=this;if(!this.buffer)return null;for(t=t||4,e=e||75,n="",i=this.position;i>0&&"\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,s.position-i>e/2-1){n=" ... ",i+=5;break}for(r="",o=this.position;o<this.buffer.length&&"\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(o))===-1;)if(o+=1,o-s.position>e/2-1){r=" ... ",o-=5;break}return a=this.buffer.slice(i,o),Ie.repeat(" ",t)+n+a+r+"\n"+Ie.repeat(" ",t+this.position-i+n.length)+"^"},s.prototype.toString=function(t){var e,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(e=this.getSnippet(),e&&(n+=":\n"+e)),n};var Te=s,Me=Le,Fe=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],Ne=["scalar","sequence","mapping"],qe=c,ze=Oe,$e=Le,De=qe;h.DEFAULT=null,h.create=function(){var t,e;switch(arguments.length){case 1:t=h.DEFAULT,e=arguments[0];break;case 2:t=arguments[0],e=arguments[1];break;default:throw new $e("Wrong number of arguments for Schema.create function")}if(t=ze.toArray(t),e=ze.toArray(e),!t.every(function(t){return t instanceof h}))throw new $e("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!e.every(function(t){return t instanceof De}))throw new $e("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new h({include:t,explicit:e})};var Pe,We=h,Re=qe,Ue=new Re("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return null!==t?t:""}}),Be=qe,He=new Be("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return null!==t?t:[]}}),Ye=qe,Ke=new Ye("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return null!==t?t:{}}}),Ge=We,Ve=new Ge({explicit:[Ue,He,Ke]}),Je=qe,Ze=new Je("tag:yaml.org,2002:null",{kind:"scalar",resolve:d,construct:f,predicate:g,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"}),Xe=qe,Qe=new Xe("tag:yaml.org,2002:bool",{kind:"scalar",resolve:m,construct:b,predicate:y,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"}),tn=Oe,en=qe,nn=new en("tag:yaml.org,2002:int",{kind:"scalar",resolve:w,construct:A,predicate:C,represent:{binary:function(t){return"0b"+t.toString(2)},octal:function(t){return"0"+t.toString(8)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return"0x"+t.toString(16).toUpperCase()}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),rn=Oe,on=qe,an=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)\\.[0-9_]*(?:[eE][-+][0-9]+)?|\\.[0-9_]+(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),sn=/^[-+]?[0-9]+e/,ln=new on("tag:yaml.org,2002:float",{kind:"scalar",resolve:S,construct:_,predicate:j,represent:E,defaultStyle:"lowercase"}),cn=We,un=new cn({include:[Ve],implicit:[Ze,Qe,nn,ln]}),pn=We,hn=new pn({include:[un]}),dn=qe,fn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),gn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),mn=new dn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:O,construct:L,instanceOf:Date,represent:I}),bn=qe,yn=new bn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:T}),xn="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};try{var vn=M;Pe=vn("buffer").Buffer}catch(t){}var kn,wn=qe,An="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",Cn=new wn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:N,construct:q,predicate:$,represent:z}),Sn=qe,_n=Object.prototype.hasOwnProperty,En=Object.prototype.toString,jn=new Sn("tag:yaml.org,2002:omap",{kind:"sequence",resolve:D,construct:P}),On=qe,Ln=Object.prototype.toString,In=new On("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:W,construct:R}),Tn=qe,Mn=Object.prototype.hasOwnProperty,Fn=new Tn("tag:yaml.org,2002:set",{kind:"mapping",resolve:U,construct:B}),Nn=We,qn=new Nn({include:[hn],implicit:[mn,yn],explicit:[Cn,jn,In,Fn]}),zn=qe,$n=new zn("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:H,construct:Y,predicate:G,represent:K}),Dn=qe,Pn=new Line truncated
},n.prototype.mangle=function(t){if(!this.options.mangle)return t;for(var e,n="",i=t.length,r=0;r<i;r++)e=t.charCodeAt(r),Math.random()>.5&&(e="x"+e.toString(16)),n+="&#"+e+";";return n},i.prototype.code=function(t,e,n){if(this.options.highlight){var i=this.options.highlight(t,e);null!=i&&i!==t&&(n=!0,t=i)}return e?'<pre><code class="'+this.options.langPrefix+o(e,!0)+'">'+(n?t:o(t,!0))+"\n</code></pre>\n":"<pre><code>"+(n?t:o(t,!0))+"\n</code></pre>"},i.prototype.blockquote=function(t){return"<blockquote>\n"+t+"</blockquote>\n"},i.prototype.html=function(t){return t},i.prototype.heading=function(t,e,n){return"<h"+e+' id="'+this.options.headerPrefix+n.toLowerCase().replace(/[^\w]+/g,"-")+'">'+t+"</h"+e+">\n"},i.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},i.prototype.list=function(t,e){var n=e?"ol":"ul";return"<"+n+">\n"+t+"</"+n+">\n"},i.prototype.listitem=function(t){return"<li>"+t+"</li>\n"},i.prototype.paragraph=function(t){return"<p>"+t+"</p>\n"},i.prototype.table=function(t,e){return"<table>\n<thead>\n"+t+"</thead>\n<tbody>\n"+e+"</tbody>\n</table>\n"},i.prototype.tablerow=function(t){return"<tr>\n"+t+"</tr>\n"},i.prototype.tablecell=function(t,e){var n=e.header?"th":"td",i=e.align?"<"+n+' style="text-align:'+e.align+'">':"<"+n+">";return i+t+"</"+n+">\n"},i.prototype.strong=function(t){return"<strong>"+t+"</strong>"},i.prototype.em=function(t){return"<em>"+t+"</em>"},i.prototype.codespan=function(t){return"<code>"+t+"</code>"},i.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},i.prototype.del=function(t){return"<del>"+t+"</del>"},i.prototype.link=function(t,e,n){if(this.options.sanitize){try{var i=decodeURIComponent(a(t)).replace(/[^\w:]/g,"").toLowerCase()}catch(t){return""}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:"))return""}var r='<a href="'+t+'"';return e&&(r+=' title="'+e+'"'),r+=">"+n+"</a>"},i.prototype.image=function(t,e,n){var i='<img src="'+t+'" alt="'+n+'"';return e&&(i+=' title="'+e+'"'),i+=this.options.xhtml?"/>":">"},i.prototype.text=function(t){return t},r.parse=function(t,e,n){var i=new r(e,n);return i.parse(t)},r.prototype.parse=function(t){var e=this;this.inline=new n(t.links,this.options,this.renderer),this.tokens=t.reverse();for(var i="";this.next();)i+=e.tok();return i},r.prototype.next=function(){return this.token=this.tokens.pop()},r.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},r.prototype.parseText=function(){for(var t=this,e=this.token.text;"text"===this.peek().type;)e+="\n"+t.next().text;return this.inline.output(e)},r.prototype.tok=function(){var t=this;switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,n,i,r,o,a="",s="";for(i="",e=0;e<this.token.header.length;e++)r={header:!0,align:t.token.align[e]},i+=t.renderer.tablecell(t.inline.output(t.token.header[e]),{header:!0,align:t.token.align[e]});for(a+=this.renderer.tablerow(i),e=0;e<this.token.cells.length;e++){for(n=t.token.cells[e],i="",o=0;o<n.length;o++)i+=t.renderer.tablecell(t.inline.output(n[o]),{header:!1,align:t.token.align[o]});s+=t.renderer.tablerow(i)}return this.renderer.table(a,s);case"blockquote_start":for(var s="";"blockquote_end"!==this.next().type;)s+=t.tok();return this.renderer.blockquote(s);case"list_start":for(var s="",l=this.token.ordered;"list_end"!==this.next().type;)s+=t.tok();return this.renderer.list(s,l);case"list_item_start":for(var s="";"list_item_end"!==this.next().type;)s+="text"===t.token.type?t.parseText():t.tok();return this.renderer.listitem(s);case"loose_item_start":for(var s="";"list_item_end"!==this.next().type;)s+=t.tok();return this.renderer.listitem(s);case"html":var c=this.token.pre||this.options.pedantic?this.token.text:this.inline.output(this.token.text);return this.renderer.html(c);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText())}},l.exec=l,u.options=u.setOptions=function(t){return c(u.defaults,t),u},u.defaults={gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,sanitizer:null,mangle:!0,smartLists:!1,silent:!1,highlight:null,langPrefix:"lang-",smartypants:!1,headerPrefix:"",renderer:new i,xhtml:!1},u.Parser=r,u.parser=r.parse,u.Renderer=i,u.Lexer=e,u.lexer=e.lex,u.InlineLexer=n,u.inlineLexer=n.output,u.parse=u,t.exports=u}).call(function(){return this||("undefined"!=typeof window?window:xn)}())});Rr.setOptions({gfm:!0,smartypants:!0});var Ur=function(t,e){var n=[].slice.call(t.querySelectorAll("[markdown]"));n.forEach(function(t){var e=t.innerHTML;e=e.replace(/\n/,"");var n=e.match(/\s*/);e=e.replace(new RegExp("\n"+n,"g"),"\n"),e=e.trim(),t.innerHTML=Rr(e)})},Br=F(function(t){var e="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&selfLine truncated
//# sourceMappingURL=template.min.js.map
+1 -1
View File
@@ -1 +1 @@
{"version":3,"file":null,"sources":["../node_modules/js-yaml/lib/js-yaml/common.js","../node_modules/js-yaml/lib/js-yaml/exception.js","../node_modules/js-yaml/lib/js-yaml/mark.js","../node_modules/js-yaml/lib/js-yaml/type.js","../node_modules/js-yaml/lib/js-yaml/schema.js","../node_modules/js-yaml/lib/js-yaml/type/null.js","../node_modules/js-yaml/lib/js-yaml/type/bool.js","../node_modules/js-yaml/lib/js-yaml/type/int.js","../node_modules/js-yaml/lib/js-yaml/type/float.js","../node_modules/js-yaml/lib/js-yaml/type/timestamp.js","../node_modules/js-yaml/lib/js-yaml/type/merge.js","../node_modules/js-yaml/lib/js-yaml/type/binary.js","../node_modules/js-yaml/lib/js-yaml/type/omap.js","../node_modules/js-yaml/lib/js-yaml/type/pairs.js","../node_modules/js-yaml/lib/js-yaml/type/set.js","../node_modules/js-yaml/lib/js-yaml/type/js/undefined.js","../node_modules/js-yaml/lib/js-yaml/type/js/regexp.js","../node_modules/js-yaml/lib/js-yaml/type/js/function.js","../node_modules/js-yaml/lib/js-yaml/loader.js","../node_modules/js-yaml/lib/js-yaml/dumper.js","../node_modules/js-yaml/lib/js-yaml.js","../components/meta.js","../index.js","../components/html.js","../components/styles.js","../node_modules/js-yaml/lib/js-yaml/type/str.js","../node_modules/js-yaml/lib/js-yaml/type/seq.js","../node_modules/js-yaml/lib/js-yaml/type/map.js","../node_modules/js-yaml/lib/js-yaml/schema/failsafe.js","../node_modules/js-yaml/lib/js-yaml/schema/json.js","../node_modules/js-yaml/lib/js-yaml/schema/core.js","../node_modules/js-yaml/lib/js-yaml/schema/default_safe.js","../node_modules/js-yaml/lib/js-yaml/schema/default_full.js","../node_modules/js-yaml/index.js","../components/front-matter.js","../node_modules/bibtex-parse-js/bibtexParse.js","../components/bibliography.js","../components/expand-data.js","../components/header.js","../components/appendix.js","../components/footer.js","../components/citation.js","../node_modules/marked/lib/marked.js","../components/markdown.js","../node_modules/prismjs/prism.js","../components/code.js"],"sourcesContent":["'use strict';\n\n\nfunction isNothing(subject) {\n return (typeof subject === 'undefined') || (subject === null);\n}\n\n\nfunction isObject(subject) {\n return (typeof subject === 'object') && (subject !== null);\n}\n\n\nfunction toArray(sequence) {\n if (Array.isArray(sequence)) return sequence;\n else if (isNothing(sequence)) return [];\n\n return [ sequence ];\n}\n\n\nfunction extend(target, source) {\n var index, length, key, sourceKeys;\n\n if (source) {\n sourceKeys = Object.keys(source);\n\n for (index = 0, length = sourceKeys.length; index < length; index += 1) {\n key = sourceKeys[index];\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\n\nfunction repeat(string, count) {\n var result = '', cycle;\n\n for (cycle = 0; cycle < count; cycle += 1) {\n result += string;\n }\n\n return result;\n}\n\n\nfunction isNegativeZero(number) {\n return (number === 0) && (Number.NEGATIVE_INFINITY === 1 / number);\n}\n\n\nmodule.exports.isNothing = isNothing;\nmodule.exports.isObject = isObject;\nmodule.exports.toArray = toArray;\nmodule.exports.repeat = repeat;\nmodule.exports.isNegativeZero = isNegativeZero;\nmodule.exports.extend = extend;\n","// YAML error class. http://stackoverflow.com/questions/8458984\n//\n'use strict';\n\nfunction YAMLException(reason, mark) {\n // Super constructor\n Error.call(this);\n\n // Include stack trace in error object\n if (Error.captureStackTrace) {\n // Chrome and NodeJS\n Error.captureStackTrace(this, this.constructor);\n } else {\n // FF, IE 10+ and Safari 6+. Fallback for others\n this.stack = (new Error()).stack || '';\n }\n\n this.name = 'YAMLException';\n this.reason = reason;\n this.mark = mark;\n this.message = (this.reason || '(unknown reason)') + (this.mark ? ' ' + this.mark.toString() : '');\n}\n\n\n// Inherit from Error\nYAMLException.prototype = Object.create(Error.prototype);\nYAMLException.prototype.constructor = YAMLException;\n\n\nYAMLException.prototype.toString = function toString(compact) {\n var result = this.name + ': ';\n\n result += this.reason || '(unknown reason)';\n\n if (!compact && this.mark) {\n result += ' ' + this.mark.toString();\n }\n\n return result;\n};\n\n\nmodule.exports = YAMLException;\n","'use strict';\n\n\nvar common = require('./common');\n\n\nfunction Mark(name, buffer, position, line, column) {\n this.name = name;\n this.buffer = buffer;\n this.position = position;\n this.line = line;\n this.column = column;\n}\n\n\nMark.prototype.getSnippet = function getSnippet(indent, maxLength) {\n var head, start, tail, end, snippet;\n\n if (!this.buffer) return null;\n\n indent = indent || 4;\n maxLength = maxLength || 75;\n\n head = '';\n start = this.position;\n\n while (start > 0 && '\\x00\\r\\n\\x85\\u2028\\u2029'.indexOf(this.buffer.charAt(start - 1)) === -1) {\n start -= 1;\n if Line truncated
{"version":3,"file":null,"sources":["../node_modules/js-yaml/lib/js-yaml/common.js","../node_modules/js-yaml/lib/js-yaml/exception.js","../node_modules/js-yaml/lib/js-yaml/mark.js","../node_modules/js-yaml/lib/js-yaml/type.js","../node_modules/js-yaml/lib/js-yaml/schema.js","../node_modules/js-yaml/lib/js-yaml/type/null.js","../node_modules/js-yaml/lib/js-yaml/type/bool.js","../node_modules/js-yaml/lib/js-yaml/type/int.js","../node_modules/js-yaml/lib/js-yaml/type/float.js","../node_modules/js-yaml/lib/js-yaml/type/timestamp.js","../node_modules/js-yaml/lib/js-yaml/type/merge.js","../node_modules/js-yaml/lib/js-yaml/type/binary.js","../node_modules/js-yaml/lib/js-yaml/type/omap.js","../node_modules/js-yaml/lib/js-yaml/type/pairs.js","../node_modules/js-yaml/lib/js-yaml/type/set.js","../node_modules/js-yaml/lib/js-yaml/type/js/undefined.js","../node_modules/js-yaml/lib/js-yaml/type/js/regexp.js","../node_modules/js-yaml/lib/js-yaml/type/js/function.js","../node_modules/js-yaml/lib/js-yaml/loader.js","../node_modules/js-yaml/lib/js-yaml/dumper.js","../node_modules/js-yaml/lib/js-yaml.js","../components/meta.js","../index.js","../components/html.js","../components/styles.js","../node_modules/js-yaml/lib/js-yaml/type/str.js","../node_modules/js-yaml/lib/js-yaml/type/seq.js","../node_modules/js-yaml/lib/js-yaml/type/map.js","../node_modules/js-yaml/lib/js-yaml/schema/failsafe.js","../node_modules/js-yaml/lib/js-yaml/schema/json.js","../node_modules/js-yaml/lib/js-yaml/schema/core.js","../node_modules/js-yaml/lib/js-yaml/schema/default_safe.js","../node_modules/js-yaml/lib/js-yaml/schema/default_full.js","../node_modules/js-yaml/index.js","../components/front-matter.js","../node_modules/bibtex-parse-js/bibtexParse.js","../components/bibliography.js","../components/expand-data.js","../components/header.js","../components/appendix.js","../components/footer.js","../components/citation.js","../node_modules/marked/lib/marked.js","../components/markdown.js","../node_modules/prismjs/prism.js","../components/code.js"],"sourcesContent":["'use strict';\n\n\nfunction isNothing(subject) {\n return (typeof subject === 'undefined') || (subject === null);\n}\n\n\nfunction isObject(subject) {\n return (typeof subject === 'object') && (subject !== null);\n}\n\n\nfunction toArray(sequence) {\n if (Array.isArray(sequence)) return sequence;\n else if (isNothing(sequence)) return [];\n\n return [ sequence ];\n}\n\n\nfunction extend(target, source) {\n var index, length, key, sourceKeys;\n\n if (source) {\n sourceKeys = Object.keys(source);\n\n for (index = 0, length = sourceKeys.length; index < length; index += 1) {\n key = sourceKeys[index];\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\n\nfunction repeat(string, count) {\n var result = '', cycle;\n\n for (cycle = 0; cycle < count; cycle += 1) {\n result += string;\n }\n\n return result;\n}\n\n\nfunction isNegativeZero(number) {\n return (number === 0) && (Number.NEGATIVE_INFINITY === 1 / number);\n}\n\n\nmodule.exports.isNothing = isNothing;\nmodule.exports.isObject = isObject;\nmodule.exports.toArray = toArray;\nmodule.exports.repeat = repeat;\nmodule.exports.isNegativeZero = isNegativeZero;\nmodule.exports.extend = extend;\n","// YAML error class. http://stackoverflow.com/questions/8458984\n//\n'use strict';\n\nfunction YAMLException(reason, mark) {\n // Super constructor\n Error.call(this);\n\n // Include stack trace in error object\n if (Error.captureStackTrace) {\n // Chrome and NodeJS\n Error.captureStackTrace(this, this.constructor);\n } else {\n // FF, IE 10+ and Safari 6+. Fallback for others\n this.stack = (new Error()).stack || '';\n }\n\n this.name = 'YAMLException';\n this.reason = reason;\n this.mark = mark;\n this.message = (this.reason || '(unknown reason)') + (this.mark ? ' ' + this.mark.toString() : '');\n}\n\n\n// Inherit from Error\nYAMLException.prototype = Object.create(Error.prototype);\nYAMLException.prototype.constructor = YAMLException;\n\n\nYAMLException.prototype.toString = function toString(compact) {\n var result = this.name + ': ';\n\n result += this.reason || '(unknown reason)';\n\n if (!compact && this.mark) {\n result += ' ' + this.mark.toString();\n }\n\n return result;\n};\n\n\nmodule.exports = YAMLException;\n","'use strict';\n\n\nvar common = require('./common');\n\n\nfunction Mark(name, buffer, position, line, column) {\n this.name = name;\n this.buffer = buffer;\n this.position = position;\n this.line = line;\n this.column = column;\n}\n\n\nMark.prototype.getSnippet = function getSnippet(indent, maxLength) {\n var head, start, tail, end, snippet;\n\n if (!this.buffer) return null;\n\n indent = indent || 4;\n maxLength = maxLength || 75;\n\n head = '';\n start = this.position;\n\n while (start > 0 && '\\x00\\r\\n\\x85\\u2028\\u2029'.indexOf(this.buffer.charAt(start - 1)) === -1) {\n start -= 1;\n if Line truncated