window.PR_SHOULD_USE_CONTINUATION=true,window.PR_TAB_WIDTH=8,window.PR_normalizedHtml=window.PR=window.prettyPrintOne=window.prettyPrint=void 0,window._pr_isIE6=function(){var b=navigator&&navigator.userAgent&&navigator.userAgent.match(/\bMSIE ([678])\./);return b=b?+b[1]:false,window._pr_isIE6=function(){return b},b},(function(){var a0=true,aZ=null,aY="break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try typeof ",aX=aY+"alignof align_union asm axiom bool concept concept_map const_cast constexpr decltype dynamic_cast explicit export friend inline late_check mutable namespace nullptr reinterpret_cast static_assert static_cast template typeid typename using virtual wchar_t where ",aW=aY+"abstract boolean byte extends final finally implements import instanceof null native package strictfp super synchronized throws transient ",aV=aW+"as base by checked decimal delegate descending event fixed foreach from group implicit in interface internal into is lock object out override orderby params partial readonly ref sbyte sealed stackalloc string select uint ulong unchecked unsafe ushort var ",aU=aY+"debugger eval export function get null set undefined var with Infinity NaN ",aT="caller delete die do dump elsif eval exit foreach for goto if import last local my next no our print package redo require sub undef unless until use wantarray while BEGIN END ",aS="break continue do else for if return while and as assert class def del elif except exec finally from global import in is lambda nonlocal not or pass print raise try with yield False True None ",aR="break continue do else for if return while alias and begin case class def defined elsif end ensure false in module next nil not or redo rescue retry self super then true undef unless until when yield BEGIN END ",aQ="break continue do else for if return while case done elif esac eval fi function in local set then until ",aP=aX+aV+aU+aT+aS+aR+aQ,aO=(function(){var e=["!","!=","!==","#","%","%=","&","&&","&&=","&=","(","*","*=","+=",",","-=","->","/","/=",":","::",";","<","<<","<<=","<=","=","==","===",">",">=",">>",">>=",">>>",">>>=","?","@","[","^","^=","^^","^^=","{","|","|=","||","||=","~","break","case","continue","delete","do","else","finally","instanceof","return","throw","try","typeof"],d="(?:^^|[+-]",f;for(f=0;f<e.length;++f){d+="|"+e[f].replace(/([^=<>:&a-z])/g,"\\$1")}return d+=")\\s*",d})(),aN=/&/g,aM=/</g,aL=/>/g,aK=/\"/g,aJ,aI,aH,aG,aF,aE,aD,aC,aB,aA,az,ay,ax,aw,av;function au(b){return b.replace(aN,"&amp;").replace(aM,"&lt;").replace(aL,"&gt;").replace(aK,"&quot;")}function at(b){return b.replace(aN,"&amp;").replace(aM,"&lt;").replace(aL,"&gt;")}ay=/&lt;/g,az=/&gt;/g,aE=/&apos;/g,aw=/&quot;/g,aF=/&amp;/g,ax=/&nbsp;/g;function ar(h){var g=h.indexOf("&"),l,k,j,i;if(g<0){return h}for(--g;(g=h.indexOf("&#",g+1))>=0;){k=h.indexOf(";",g),k>=0&&(j=h.substring(g+3,k),i=10,j&&j.charAt(0)==="x"&&(j=j.substring(1),i=16),l=parseInt(j,i),isNaN(l)||(h=h.substring(0,g)+String.fromCharCode(l)+h.substring(k+1)))}return h.replace(ay,"<").replace(az,">").replace(aE,"'").replace(aw,'"').replace(ax," ").replace(aF,"&")}function aq(b){return"XMP"===b.tagName}aG=/[\r\n]/g;function ap(f,b){var a;return"PRE"===f.tagName?a0:aG.test(b)?(a="",f.currentStyle?(a=f.currentStyle.whiteSpace):window.getComputedStyle&&(a=window.getComputedStyle(f,aZ).whiteSpace),!a||a==="pre"):a0}function ao(h,g){var l,k,j,i;switch(h.nodeType){case 1:i=h.tagName.toLowerCase(),g.push("<",i);for(j=0;j<h.attributes.length;++j){l=h.attributes[j];if(!l.specified){continue}g.push(" "),ao(l,g)}g.push(">");for(k=h.firstChild;k;k=k.nextSibling){ao(k,g)}(h.firstChild||!/^(?:br|link|img)$/.test(i))&&g.push("</",i,">");break;case 2:g.push(h.name.toLowerCase(),'="',au(h.value),'"');break;case 3:case 4:g.push(at(h.nodeValue))}}function an(x){var w=0,v=false,u=false,t,s,r,q;for(t=0,s=x.length;t<s;++t){r=x[t];if(r.ignoreCase){u=a0}else{if(/[a-z]/i.test(r.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){v=a0,u=false;break}}}function p(b){if(b.charAt(0)!=="\\"){return b.charCodeAt(0)}switch(b.charAt(1)){case"b":return 8;case"t":return 9;case"n":return 10;case"v":return 11;case"f":return 12;case"r":return 13;case"u":case"x":return parseInt(b.substring(2),16)||b.charCodeAt(1);case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":return parseInt(b.substring(1),8);default:return b.charCodeAt(1)}}function o(d){var c;return d<32?(d<16?"\\x0":"\\x")+d.toString(16):(c=String.fromCharCode(d),(c==="\\"||c==="-"||c==="["||c==="]")&&(c="\\"+c),c)}function n(I){var H=I.substring(1,I.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),G=[],F=[],E=H[0]==="^",D,C,B,A,z,y,l,k,j;for(B=E?1:0,z=H.length;B<z;++B){l=H[B];switch(l){case"\\B":case"\\b":case"\\D":case"\\d":case"\\S":case"\\s":case"\\W":case"\\w":G.push(l);continue}j=p(l),B+2<z&&"-"===H[B+1]?(C=p(H[B+2]),B+=2):(C=j),F.push([j,C]),C<65||j>122||(C<65||j>90||F.push([Math.max(65,j)|32,Math.min(C,90)|32]),C<97||j>122||F.push([Math.max(97,j)&-33,Math.min(C,122)&-33]))}F.sort(function(d,c){return d[0]-c[0]||c[1]-d[1]}),D=[],A=[NaN,NaN];for(B=0;B<F.length;++B){k=F[B],k[0]<=A[1]+1?(A[1]=Math.max(A[1],k[1])):D.push(A=k)}y=["["],E&&y.push("^"),y.push.apply(y,G);for(B=0;B<D.length;++B){k=D[B],y.push(o(k[0])),k[1]>k[0]&&(k[1]+1>k[0]&&y.push("-"),y.push(o(k[1])))}return y.push("]"),y.join("")}function a(C){var B=C.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),A=B.length,z=[],y,m,l,d,c;for(d=0,l=0;d<A;++d){c=B[d],c==="("?++l:"\\"===c.charAt(0)&&(m=+c.substring(1),m&&m<=l&&(z[m]=-1))}for(d=1;d<z.length;++d){-1===z[d]&&(z[d]=++w)}for(d=0,l=0;d<A;++d){c=B[d],c==="("?(++l,z[l]===void 0&&(B[d]="(?:")):"\\"===c.charAt(0)&&(m=+c.substring(1),m&&m<=l&&(B[d]="\\"+z[l]))}for(d=0,l=0;d<A;++d){"^"===B[d]&&"^"!==B[d+1]&&(B[d]="")}if(C.ignoreCase&&v){for(d=0;d<A;++d){c=B[d],y=c.charAt(0),c.length>=2&&y==="["?(B[d]=n(c)):y!=="\\"&&(B[d]=c.replace(/[a-zA-Z]/g,function(f){var e=f.charCodeAt(0);return"["+String.fromCharCode(e&-33,e|32)+"]"}))}}return B.join("")}q=[];for(t=0,s=x.length;t<s;++t){r=x[t];if(r.global||r.multiline){throw new Error(""+r)}q.push("(?:"+a(r)+")")}return new RegExp(q.join("|"),u?"gi":"g")}aJ=aZ;function am(b){var j,i,h,g;aZ===aJ&&(g=document.createElement("PRE"),g.appendChild(document.createTextNode('<!DOCTYPE foo PUBLIC "foo bar">\n<foo />')),aJ=!/</.test(g.innerHTML));if(aJ){return i=b.innerHTML,aq(b)?(i=at(i)):ap(b,i)||(i=i.replace(/(<br\s*\/?>)[\r\n]+/g,"$1").replace(/(?:[\r\n]+[ \t]*)+/g," ")),i}h=[];for(j=b.firstChild;j;j=j.nextSibling){ao(j,h)}return h.join("")}function al(b){var d=0;return function(o){var n=aZ,m=0,l,k,c,a;for(k=0,c=o.length;k<c;++k){l=o.charAt(k);switch(l){case"	":n||(n=[]),n.push(o.substring(m,k)),a=b-d%b,d+=a;for(;a>=0;a-="                ".length){n.push("                ".substring(0,a))}m=k+1;break;case"\n":d=0;break;default:++d}}return n?(n.push(o.substring(m)),n.join("")):o}}aB=new RegExp("[^<]+|<!--[\\s\\S]*?-->|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>|</?[a-zA-Z](?:[^>\"']|'[^']*'|\"[^\"]*\")*>|<","g"),aA=/^<\!--/,aC=/^<!\[CDATA\[/,aD=/^<br\b/i,av=/^<(\/?)([a-zA-Z][a-zA-Z0-9]*)/;function ak(z){var y=z.match(aB),x=[],w=0,v=[],u,t,s,r,q,p,o,n;if(y){for(t=0,p=y.length;t<p;++t){q=y[t];if(q.length>1&&q.charAt(0)==="<"){if(aA.test(q)){continue}if(aC.test(q)){x.push(q.substring(9,q.length-3)),w+=q.length-12}else{if(aD.test(q)){x.push("\n"),++w}else{if(q.indexOf("nocode")>=0&&aj(q)){o=(q.match(av))[2],u=1;for(s=t+1;s<p;++s){n=y[s].match(av);if(n&&n[2]===o){if(n[1]==="/"){if(--u===0){break}}else{++u}}}s<p?(v.push(w,y.slice(t,s+1).join("")),t=s):v.push(w,q)}else{v.push(w,q)}}}}else{r=ar(q),x.push(r),w+=r.length}}}return{source:x.join(""),tags:v}}function aj(b){return !!b.replace(/\s(\w+)\s*=\s*(?:\"([^\"]*)\"|'([^\']*)'|(\S+))/g,' $1="$2$3$4"').match(/[cC][lL][aA][sS][sS]=\"[^\"]*\bnocode\b/)}function ai(g,f,j,i){var h;if(!f){return}h={source:f,basePos:g},j(h),i.push.apply(i,h.decorations)}function ah(b,n){var m={},l,k,j,i;return(function(){var u=b.concat(n),t=[],s={},r,q,p,h,d,c,a;for(q=0,h=u.length;q<h;++q){d=u[q],a=d[3];if(a){for(r=a.length;--r>=0;){m[a.charAt(r)]=d}}c=d[1],p=""+c,s.hasOwnProperty(p)||(t.push(c),s[p]=aZ)}t.push(/[\0-\uffff]/),i=an(t)})(),k=n.length,j=/\S/,l=function(N){var M=N.source,L=N.basePos,K,J,I,H,G,F,E,D,C,B,A,z,h,f,e,d,c;K=[L,"pln"],A=0,c=M.match(i)||[],h={};for(f=0,C=c.length;f<C;++f){e=c[f],z=h[e],D=void 0;if(typeof z==="string"){F=false}else{B=m[e.charAt(0)];if(B){D=e.match(B[1]),z=B[0]}else{for(G=0;G<k;++G){B=n[G],D=e.match(B[1]);if(D){z=B[0];break}}D||(z="pln")}F=z.length>=5&&"lang-"===z.substring(0,5),F&&!(D&&typeof D[1]==="string")&&(F=false,z="src"),F||(h[e]=z)}d=A,A+=e.length,F?(J=D[1],H=e.indexOf(J),I=H+J.length,D[2]&&(I=e.length-D[2].length,H=I-J.length),E=z.substring(5),ai(L+d,e.substring(0,H),l,K),ai(L+d+H,J,ad(E,J),K),ai(L+d+I,e.substring(I),l,K)):K.push(L+d,z)}N.decorations=K},l}function ag(b){var j=[],i=[],h,g;return b.tripleQuotedStrings?j.push(["str",/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,aZ,"'\""]):b.multiLineStrings?j.push(["str",/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,aZ,"'\"`"]):j.push(["str",/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,aZ,"\"'"]),b.verbatimStrings&&i.push(["str",/^@\"(?:[^\"]|\"\")*(?:\"|$)/,aZ]),b.hashComments&&(b.cStyleComments?(j.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/,aZ,"#"]),i.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,aZ])):j.push(["com",/^#[^\r\n]*/,aZ,"#"])),b.cStyleComments&&(i.push(["com",/^\/\/[^\r\n]*/,aZ]),i.push(["com",/^\/\*[\s\S]*?(?:\*\/|$)/,aZ])),b.regexLiterals&&(h="/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/",i.push(["lang-regex",new RegExp("^"+aO+"("+h+")")])),g=b.keywords.replace(/^\s+|\s+$/g,""),g.length&&i.push(["kwd",new RegExp("^(?:"+g.replace(/\s+/g,"|")+")\\b"),aZ]),j.push(["pln",/^\s+/,aZ," \r\n	\xa0"]),i.push(["lit",/^@[a-z_$][a-z_$@0-9]*/i,aZ],["typ",/^@?[A-Z]+[a-z][A-Za-z_$@0-9]*/,aZ],["pln",/^[a-z_$][a-z_$@0-9]*/i,aZ],["lit",new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),aZ,"0123456789"],["pun",/^.[^\s\w\.$@\'\"\`\/\#]*/,aZ]),ah(j,i)}aI=ag({keywords:aP,hashComments:a0,cStyleComments:a0,multiLineStrings:a0,regexLiterals:a0});function af(J){var I=J.source,H=J.extractedTags,G=J.decorations,F=[],E=0,D=aZ,C=aZ,B=0,A=0,z=al(window.PR_TAB_WIDTH),y=/([\r\n ]) /g,x=/(^| ) /gm,w=/\r\n?|\n/g,v=/[ \r\n]$/,u=a0,b;function a(d){var g,f;d>E&&(D&&D!==C&&(F.push("</span>"),D=aZ),!D&&C&&(D=C,F.push('<span class="',D,'">')),g=at(z(I.substring(E,d))).replace(u?x:y,"$1&nbsp;"),u=v.test(g),f=window._pr_isIE6()?"&nbsp;<br />":"<br />",F.push(g.replace(w,f)),E=d)}while(a0){B<H.length?A<G.length?(b=H[B]<=G[A]):(b=a0):(b=false);if(b){a(H[B]),D&&(F.push("</span>"),D=aZ),F.push(H[B+1]),B+=2}else{if(A<G.length){a(G[A]),C=G[A+1],A+=2}else{break}}}a(I.length),D&&F.push("</span>"),J.prettyPrintedHtml=F.join("")}aH={};function ae(f,e){var h,g;for(g=e.length;--g>=0;){h=e[g],aH.hasOwnProperty(h)?"console" in window&&console.warn("cannot override language handler %s",h):(aH[h]=f)}}function ad(d,c){return d&&aH.hasOwnProperty(d)||(d=/^\s*</.test(c)?"default-markup":"default-code"),aH[d]}ae(aI,["default-code"]),ae(ah([],[["pln",/^[^<?]+/],["dec",/^<!\w[^>]*(?:>|$)/],["com",/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),ae(ah([["pln",/^[\s]+/,aZ," 	\r\n"],["atv",/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,aZ,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],["pun",/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),ae(ah([],[["atv",/^[\s\S]+/]]),["uq.val"]),ae(ag({keywords:aX,hashComments:a0,cStyleComments:a0}),["c","cc","cpp","cxx","cyc","m"]),ae(ag({keywords:"null true false"}),["json"]),ae(ag({keywords:aV,hashComments:a0,cStyleComments:a0,verbatimStrings:a0}),["cs"]),ae(ag({keywords:aW,cStyleComments:a0}),["java"]),ae(ag({keywords:aQ,hashComments:a0,multiLineStrings:a0}),["bsh","csh","sh"]),ae(ag({keywords:aS,hashComments:a0,multiLineStrings:a0,tripleQuotedStrings:a0}),["cv","py"]),ae(ag({keywords:aT,hashComments:a0,multiLineStrings:a0,regexLiterals:a0}),["perl","pl","pm"]),ae(ag({keywords:aR,hashComments:a0,multiLineStrings:a0,regexLiterals:a0}),["rb"]),ae(ag({keywords:aU,cStyleComments:a0,regexLiterals:a0}),["js"]),ae(ah([],[["str",/^[\s\S]+/]]),["regex"]);function ac(h){var g=h.sourceCodeHtml,l=h.langExtension,k,j;h.prettyPrintedHtml=g;try{j=ak(g),k=j.source,h.source=k,h.basePos=0,h.extractedTags=j.tags,ad(l,k)(h),af(h)}catch(i){"console" in window&&(console.log(i),console.trace())}}function ab(e,d){var f={sourceCodeHtml:e,langExtension:d};return ac(f),f.prettyPrintedHtml}function aa(z){var y=window._pr_isIE6(),x=y===6?"\r\n":"\r",w=[document.getElementsByTagName("pre"),document.getElementsByTagName("code"),document.getElementsByTagName("xmp")],v=[],u,t,s,r,q,p;for(t=0;t<w.length;++t){for(s=0,q=w[t].length;s<q;++s){v.push(w[t][s])}}w=aZ,u=Date,u.now||(u={now:function(){return(new Date).getTime()}}),r=0;function b(){var c=window.PR_SHOULD_USE_CONTINUATION?u.now()+250:Infinity,m,l,k,h,g;for(;r<v.length&&u.now()<c;++r){l=v[r];if(l.className&&l.className.indexOf("prettyprint")>=0){k=l.className.match(/\blang-(\w+)\b/),k&&(k=k[1]),h=false;for(g=l.parentNode;g;g=g.parentNode){if((g.tagName==="pre"||g.tagName==="code"||g.tagName==="xmp")&&g.className&&g.className.indexOf("prettyprint")>=0){h=a0;break}}h||(m=am(l),m=m.replace(/(?:\r\n?|\n)$/,""),p={sourceCodeHtml:m,langExtension:k,sourceNode:l},ac(p),a())}}r<v.length?setTimeout(b,250):z&&z()}function a(){var C=p.prettyPrintedHtml,B,A,o,n,m,l,e,d;if(!C){return}o=p.sourceNode;if(!aq(o)){o.innerHTML=C}else{d=document.createElement("PRE");for(n=0;n<o.attributes.length;++n){B=o.attributes[n],B.specified&&(A=B.name.toLowerCase(),A==="class"?(d.className=B.value):d.setAttribute(B.name,B.value))}d.innerHTML=C,o.parentNode.replaceChild(d,o),o=d}if(y&&o.tagName==="PRE"){e=o.getElementsByTagName("br");for(m=e.length;--m>=0;){l=e[m],l.parentNode.replaceChild(document.createTextNode(x),l)}}}b()}window.PR_normalizedHtml=ao,window.prettyPrintOne=ab,window.prettyPrint=aa,window.PR={combinePrefixPatterns:an,createSimpleLexer:ah,registerLangHandler:ae,sourceDecorator:ag,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ"}})();var Markdown={};(function(){function c(e){return e}function d(e){return false}function b(){}b.prototype={chain:function(g,f){var e=this[g];if(!e){throw new Error("unknown hook "+g)}if(e===c){this[g]=f}else{this[g]=function(h){return f(e(h))}}},set:function(f,e){if(!this[f]){throw new Error("unknown hook "+f)}this[f]=e},addNoop:function(e){this[e]=c},addFalse:function(e){this[e]=d}};Markdown.HookCollection=b;function a(){}a.prototype={set:function(e,f){this["s_"+e]=f},get:function(e){return this["s_"+e]}};Markdown.Converter=function(){var j=this.hooks=new b();j.addNoop("plainLinkText");j.addNoop("preConversion");j.addNoop("postConversion");var w;var n;var e;var z;this.makeHtml=function(O){if(w){throw new Error("Recursive call to converter.makeHtml")}w=new a();n=new a();e=[];z=0;O=j.preConversion(O);O=O.replace(/~/g,"~T");O=O.replace(/\$/g,"~D");O=O.replace(/\r\n/g,"\n");O=O.replace(/\r/g,"\n");O="\n\n"+O+"\n\n";O=I(O);O=O.replace(/^[ \t]+$/mg,"");O=o(O);O=m(O);O=f(O);O=L(O);O=O.replace(/~D/g,"$$");O=O.replace(/~T/g,"~");O=j.postConversion(O);e=n=w=null;return O};function m(O){O=O.replace(/^[ ]{0,3}\[(.+)\]:[ \t]*\n?[ \t]*<?(\S+?)>?(?=\s|$)[ \t]*\n?[ \t]*((\n*)["(](.+?)[")][ \t]*)?(?:\n+)/gm,function(R,T,S,Q,P,U){T=T.toLowerCase();w.set(T,C(S));if(P){return Q}else{if(U){n.set(T,U.replace(/"/g,"&quot;"))}}return""});return O}function o(Q){var P="p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del";var O="p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math";Q=Q.replace(/^(<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del)\b[^\r]*?\n<\/\2>[ \t]*(?=\n+))/gm,N);Q=Q.replace(/^(<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math)\b[^\r]*?.*<\/\2>[ \t]*(?=\n+)\n)/gm,N);Q=Q.replace(/\n[ ]{0,3}((<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,N);Q=Q.replace(/\n\n[ ]{0,3}(<!(--(?:|(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>[ \t]*(?=\n{2,}))/g,N);Q=Q.replace(/(?:\n\n)([ ]{0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,N);return Q}function N(O,P){var Q=P;Q=Q.replace(/^\n+/,"");Q=Q.replace(/\n+$/g,"");Q="\n\n~K"+(e.push(Q)-1)+"K\n\n";return Q}function f(Q,P){Q=i(Q);var O="<hr />\n";Q=Q.replace(/^[ ]{0,2}([ ]?\*[ ]?){3,}[ \t]*$/gm,O);Q=Q.replace(/^[ ]{0,2}([ ]?-[ ]?){3,}[ \t]*$/gm,O);Q=Q.replace(/^[ ]{0,2}([ ]?_[ ]?){3,}[ \t]*$/gm,O);Q=K(Q);Q=q(Q);Q=g(Q);Q=o(Q);Q=H(Q,P);return Q}function k(O){O=r(O);O=v(O);O=G(O);O=D(O);O=E(O);O=J(O);O=O.replace(/~P/g,"://");O=C(O);O=x(O);O=O.replace(/  +\n/g," <br>\n");return O}function v(P){var O=/(<[a-z\/!$]("[^"]*"|'[^']*'|[^'">])*>|<!(--(?:|(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>)/gi;P=P.replace(O,function(R){var Q=R.replace(/(.)<\/?code>(?=.)/g,"$1`");Q=y(Q,R.charAt(1)=="!"?"\\`*_/":"\\`*_");return Q});return P}function E(O){O=O.replace(/(\[((?:\[[^\]]*\]|[^\[\]])*)\][ ]?(?:\n[ ]*)?\[(.*?)\])()()()()/g,h);O=O.replace(/(\[((?:\[[^\]]*\]|[^\[\]])*)\]\([ \t]*()<?((?:\([^)]*\)|[^()])*?)>?[ \t]*((['"])(.*?)\6[ \t]*)?\))/g,h);O=O.replace(/(\[([^\[\]]+)\])()()()()()/g,h);return O}function h(U,aa,Z,Y,X,W,T,S){if(S==undefined){S=""}var R=aa;var P=Z.replace(/:\/\//g,"~P");var Q=Y.toLowerCase();var O=X;var V=S;if(O==""){if(Q==""){Q=P.toLowerCase().replace(/ ?\n/g," ")}O="#"+Q;if(w.get(Q)!=undefined){O=w.get(Q);if(n.get(Q)!=undefined){V=n.get(Q)}}else{if(R.search(/\(\s*\)$/m)>-1){O=""}else{return R}}}O=A(O);O=y(O,"*_");var ab='<a href="'+O+'"';if(V!=""){V=V.replace(/"/g,"&quot;");V=y(V,"*_");ab+=' title="'+V+'"'}ab+=">"+P+"</a>";return ab}function D(O){O=O.replace(/(!\[(.*?)\][ ]?(?:\n[ ]*)?\[(.*?)\])()()()()/g,F);O=O.replace(/(!\[(.*?)\]\s?\([ \t]*()<?(\S+?)>?[ \t]*((['"])(.*?)\6[ \t]*)?\))/g,F);return O}function F(U,aa,Z,Y,X,W,T,S){var R=aa;var Q=Z;var P=Y.toLowerCase();var O=X;var V=S;if(!V){V=""}if(O==""){if(P==""){P=Q.toLowerCase().replace(/ ?\n/g," ")}O="#"+P;if(w.get(P)!=undefined){O=w.get(P);if(n.get(P)!=undefined){V=n.get(P)}}else{return R}}Q=y(Q.replace(/"/g,"&quot;"),"*_[]()");O=y(O,"*_");var ab='<img src="'+O+'" alt="'+Q+'"';V=V.replace(/"/g,"&quot;");V=y(V,"*_");ab+=' title="'+V+'"';ab+=" />";return ab}function i(O){O=O.replace(/^(.+)[ \t]*\n=+[ \t]*\n+/gm,function(P,Q){return"<h1>"+k(Q)+"</h1>\n\n"});O=O.replace(/^(.+)[ \t]*\n-+[ \t]*\n+/gm,function(Q,P){return"<h2>"+k(P)+"</h2>\n\n"});O=O.replace(/^(\#{1,6})[ \t]*(.+?)[ \t]*\#*\n+/gm,function(P,S,R){var Q=S.length;return"<h"+Q+">"+k(R)+"</h"+Q+">\n\n"});return O}function K(P){P+="~0";var O=/^(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm;if(z){P=P.replace(O,function(R,U,T){var V=U;var S=(T.search(/[*+-]/g)>-1)?"ul":"ol";var Q=l(V,S);Q=Q.replace(/\s+$/,"");Q="<"+S+">"+Q+"</"+S+">\n";return Q})}else{O=/(\n\n|^\n?)(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/g;P=P.replace(O,function(S,W,U,R){var V=W;var X=U;var T=(R.search(/[*+-]/g)>-1)?"ul":"ol";var Q=l(X,T);Q=V+"<"+T+">\n"+Q+"</"+T+">\n";return Q})}P=P.replace(/~0/,"");return P}var p={ol:"\\d+[.]",ul:"[*+-]"};function l(Q,P){z++;Q=Q.replace(/\n{2,}$/,"\n");Q+="~0";var O=p[P];var R=new RegExp("(^[ \\t]*)("+O+")[ \\t]+([^\\r]+?(\\n+))(?=(~0|\\1("+O+")[ \\t]+))","gm");var S=false;Q=Q.replace(R,function(U,W,V,T){var Z=T;var aa=W;var Y=/\n\n$/.test(Z);var X=Y||Z.search(/\n{2,}/)>-1;if(X||S){Z=f(t(Z),true)}else{Z=K(t(Z));Z=Z.replace(/\n$/,"");Z=k(Z)}S=Y;return"<li>"+Z+"</li>\n"});Q=Q.replace(/~0/g,"");z--;return Q}function q(O){O+="~0";O=O.replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=~0))/g,function(P,R,Q){var S=R;var T=Q;S=B(t(S));S=I(S);S=S.replace(/^\n+/g,"");S=S.replace(/\n+$/g,"");S="<pre><code>"+S+"\n</code></pre>";return"\n\n"+S+"\n\n"+T});O=O.replace(/~0/,"");return O}function M(O){O=O.replace(/(^\n+|\n+$)/g,"");return"\n\n~K"+(e.push(O)-1)+"K\n\n"}function r(O){O=O.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(R,T,S,Q,P){var U=Q;U=U.replace(/^([ \t]*)/g,"");U=U.replace(/[ \t]*$/g,"");U=B(U);U=U.replace(/:\/\//g,"~P");return T+"<code>"+U+"</code>"});return O}function B(O){O=O.replace(/&/g,"&amp;");O=O.replace(/</g,"&lt;");O=O.replace(/>/g,"&gt;");O=y(O,"*_{}[]\\",false);return O}function x(O){O=O.replace(/([\W_]|^)(\*\*|__)(?=\S)([^\r]*?\S[\*_]*)\2([\W_]|$)/g,"$1<strong>$3</strong>$4");O=O.replace(/([\W_]|^)(\*|_)(?=\S)([^\r\*_]*?\S)\2([\W_]|$)/g,"$1<em>$3</em>$4");return O}function g(O){O=O.replace(/((^[ \t]*>[ \t]?.+\n(.+\n)*\n*)+)/gm,function(P,Q){var R=Q;R=R.replace(/^[ \t]*>[ \t]?/gm,"~0");R=R.replace(/~0/g,"");R=R.replace(/^[ \t]+$/gm,"");R=f(R);R=R.replace(/(^|\n)/g,"$1  ");R=R.replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,function(S,T){var U=T;U=U.replace(/^  /mg,"~0");U=U.replace(/~0/g,"");return U});return M("<blockquote>\n"+R+"\n</blockquote>")});return O}function H(V,O){V=V.replace(/^\n+/g,"");V=V.replace(/\n+$/g,"");var W=V.split(/\n{2,}/g);var T=[];var P=/~K(\d+)K/;var Q=W.length;for(var R=0;R<Q;R++){var S=W[R];if(P.test(S)){T.push(S)}else{if(/\S/.test(S)){S=k(S);S=S.replace(/^([ \t]*)/g,"<p>");S+="</p>";T.push(S)}}}if(!O){Q=T.length;for(var R=0;R<Q;R++){var U=true;while(U){U=false;T[R]=T[R].replace(/~K(\d+)K/g,function(X,Y){U=true;return e[Y]})}}}return T.join("\n\n")}function C(O){O=O.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&amp;");O=O.replace(/<(?![a-z\/?\$!])/gi,"&lt;");return O}function G(O){O=O.replace(/\\(\\)/g,s);O=O.replace(/\\([`*_{}\[\]()>#+-.!])/g,s);return O}function J(P){P=P.replace(/(^|\s)(https?|ftp)(:\/\/[-A-Z0-9+&@#\/%?=~_|\[\]\(\)!:,\.;]*[-A-Z0-9+&@#\/%=~_|\[\]])($|\W)/gi,"$1<$2$3>$4");var O=function(R,Q){return'<a href="'+Q+'">'+j.plainLinkText(Q)+"</a>"};P=P.replace(/<((https?|ftp):[^'">\s]+)>/gi,O);return P}function L(O){O=O.replace(/~E(\d+)E/g,function(P,R){var Q=parseInt(R);return String.fromCharCode(Q)});return O}function t(O){O=O.replace(/^(\t|[ ]{1,4})/gm,"~0");O=O.replace(/~0/g,"");return O}function I(R){if(!/\t/.test(R)){return R}var Q=["    ","   ","  "," "],P=0,O;return R.replace(/[\n\t]/g,function(S,T){if(S==="\n"){P=T+1;return S}O=(T-P)%4;P=T+1;return Q[O]})}var u=/(?:["'*()[\]:]|~D)/g;function A(P){if(!P){return""}var O=P.length;return P.replace(u,function(Q,R){if(Q=="~D"){return"%24"}if(Q==":"){if(R==O-1||/[0-9\/]/.test(P.charAt(R+1))){return":"}}return"%"+Q.charCodeAt(0).toString(16)})}function y(S,P,Q){var O="(["+P.replace(/([\[\]\\])/g,"\\$1")+"])";if(Q){O="\\\\"+O}var R=new RegExp(O,"g");S=S.replace(R,s);return S}function s(O,Q){var P=Q.charCodeAt(0);return"~E"+P+"E"}}})();
/*! http://mths.be/details v0.0.4 by @mathias | includes http://mths.be/noselect v1.0.3 */
(function(a,f){var e=f.fn,d,c=Object.prototype.toString.call(window.opera)=="[object Opera]",g=(function(l){var j=l.createElement("details"),i,h,k;if(!("open" in j)){return false}h=l.body||(function(){var m=l.documentElement;i=true;return m.insertBefore(l.createElement("body"),m.firstElementChild||m.firstChild)}());j.innerHTML="<summary>a</summary>b";j.style.display="block";h.appendChild(j);k=j.offsetHeight;j.open=true;k=k!=j.offsetHeight;h.removeChild(j);if(i){h.parentNode.removeChild(h)}return k}(a)),b=function(i,l,k,h){var j=typeof i.attr("open")=="string",m=j&&h||!j&&!h;if(m){i.removeClass("open").prop("open",false).triggerHandler("close.details");l.attr("aria-expanded",false);k.hide()}else{i.addClass("open").prop("open",true).triggerHandler("open.details");l.attr("aria-expanded",true);k.show()}};e.noSelect=function(){var h="none";return this.bind("selectstart dragstart mousedown",function(){return false}).css({MozUserSelect:h,msUserSelect:h,webkitUserSelect:h,userSelect:h})};if(g){d=e.details=function(){return this.each(function(){var i=f(this),h=f("summary",i);h.attr({role:"button","aria-expanded":i.prop("open")}).on("click",function(){var j=i.prop("open");h.attr("aria-expanded",!j);i.triggerHandler((j?"close":"open")+".details")})})};d.support=g}else{d=e.details=function(){return this.each(function(){var h=f(this),j=f("summary",h),i=h.children(":not(summary)"),k=h.contents(":not(summary)");if(!j.length){j=f("<summary>").text("Details").prependTo(h)}if(i.length!=k.length){k.filter(function(){return this.nodeType==3&&/[^ \t\n\f\r]/.test(this.data)}).wrap("<span>");i=h.children(":not(summary)")}b(h,j,i);j.attr("role","button").noSelect().prop("tabIndex",0).on("click",function(){j.focus();b(h,j,i,true)}).keyup(function(l){if(32==l.keyCode&&!c||13==l.keyCode){l.preventDefault();j.click()}})})};d.support=g}}(document,jQuery));
/*! http://mths.be/oninput by @mathias */
$.fn.input=function(a){var b=this;return a?b.bind({"input.input":function(c){b.unbind("keydown.input");a.call(this,c)},"keydown.input":function(c){a.call(this,c)}}):b.trigger("keydown.input")};
/*! http://mths.be/noselect v1.0.2 by @mathias */
$.fn.noSelect=function(){var a="none";return this.bind("selectstart dragstart mousedown",function(){return false}).css({MozUserSelect:a,WebkitUserSelect:a,userSelect:a})};$.fn.insertAtCaret=function(a){return this.each(function(){var c=this,b;if(document.selection){c.focus();sel=document.selection.createRange();sel.text=a;c.focus()}else{if(c.selectionStart||c.selectionStart=="0"){b=c.selectionStart,endPos=c.selectionEnd,scrollTop=c.scrollTop;c.value=c.value.substring(0,b)+a+c.value.substring(endPos,c.value.length);c.focus();c.selectionStart=b+a.length;c.selectionEnd=b+a.length;c.scrollTop=scrollTop}else{c.value+=a;c.focus()}}})};$.expr[":"].Contains=function(c,d,b){return jQuery(c).text().toUpperCase().indexOf(b[3].toUpperCase())>=0};(function(d){var b="ar"+ +new Date,e=c.defaults={onResize:function(){},onBeforeResize:function(){return 123},onAfterResize:function(){return 555},animate:{duration:200,complete:function(){}},extraSpace:50,minHeight:"original",maxHeight:500,minWidth:"original",maxWidth:500};c.cloneCSSProperties=["lineHeight","textDecoration","letterSpacing","fontSize","fontFamily","fontStyle","fontWeight","textTransform","textAlign","direction","wordSpacing","fontSizeAdjust","paddingTop","paddingLeft","paddingBottom","paddingRight","width"];c.cloneCSSValues={position:"absolute",top:-9999,left:-9999,opacity:0,overflow:"hidden"};c.resizableFilterSelector=["textarea:not(textarea."+b+")","input:not(input[type])","input[type=text]","input[type=password]","input[type=email]","input[type=url]"].join(",");c.AutoResizer=a;d.fn.autoResize=c;function c(f){this.filter(c.resizableFilterSelector).each(function(){new a(d(this),f)});return this}function a(g,f){if(g.data("AutoResizer")){g.data("AutoResizer").destroy()}f=this.config=d.extend({},c.defaults,f);this.el=g;this.nodeName=g[0].nodeName.toLowerCase();this.originalHeight=g.height();this.previousScrollTop=null;this.value=g.val();if(f.maxWidth==="original"){f.maxWidth=g.width()}if(f.minWidth==="original"){f.minWidth=g.width()}if(f.maxHeight==="original"){f.maxHeight=g.height()}if(f.minHeight==="original"){f.minHeight=g.height()}if(this.nodeName==="textarea"){g.css({resize:"none",overflowY:"hidden"})}g.data("AutoResizer",this);f.animate.complete=(function(h){return function(){f.onAfterResize.call(g);return h.apply(this,arguments)}}(f.animate.complete));this.bind()}a.prototype={bind:function(){var f=d.proxy(function(){this.check();return true},this);this.unbind();this.el.bind("keyup.autoResize",f).bind("change.autoResize",f).bind("paste.autoResize",function(){setTimeout(function(){f()},0)});if(!this.el.is(":hidden")){this.check(null,true)}},unbind:function(){this.el.unbind(".autoResize")},createClone:function(){var f=this.el,g=this.nodeName==="textarea"?f.clone():d("<span/>");this.clone=g;d.each(c.cloneCSSProperties,function(h,j){g[0].style[j]=f.css(j)});g.removeAttr("name").removeAttr("id").addClass(b).attr("tabIndex",-1).css(c.cloneCSSValues);if(this.nodeName==="textarea"){g.height("auto")}else{g.width("auto").css({whiteSpace:"nowrap"})}},check:function(l,j){if(!this.clone){this.createClone();this.injectClone()}var i=this.config,m=this.clone,h=this.el,n=h.val();if(n===this.prevValue){return true}this.prevValue=n;if(this.nodeName==="input"){m.text(n);var o=m.width(),k=(o+i.extraSpace)>=i.minWidth?o+i.extraSpace:i.minWidth,g=h.width();k=Math.min(k,i.maxWidth);if((k<g&&k>=i.minWidth)||(k>=i.minWidth&&k<=i.maxWidth)){i.onBeforeResize.call(h);i.onResize.call(h);h.scrollLeft(0);if(i.animate&&!j){h.stop(1,1).animate({width:k},i.animate)}else{h.width(k);i.onAfterResize.call(h)}}return}m.width(h.width()).height(0).val(n).scrollTop(10000);var f=m[0].scrollTop;if(this.previousScrollTop===f){return}this.previousScrollTop=f;if(f+i.extraSpace>=i.maxHeight){h.css("overflowY","");f=i.maxHeight;j=true}else{if(f<=i.minHeight){f=i.minHeight}else{h.css("overflowY","hidden");f+=i.extraSpace}}i.onBeforeResize.call(h);i.onResize.call(h);if(i.animate&&!j){h.stop(1,1).animate({height:f},i.animate)}else{h.height(f);i.onAfterResize.call(h)}},destroy:function(){this.unbind();this.el.removeData("AutoResizer");this.clone.remove();delete this.el;delete this.clone},injectClone:function(){(c.cloneContainer||(c.cloneContainer=d("<arclones/>").appendTo("body"))).append(this.clone)}}})(jQuery);(function(b){b.hotkeys={version:"0.8",specialKeys:{8:"backspace",9:"tab",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",191:"/",224:"meta"},shiftNums:{"`":"~","1":"!","2":"@","3":"#","4":"$","5":"%","6":"^","7":"&","8":"*","9":"(","0":")","-":"_","=":"+",";":": ","'":'"',",":"<",".":">","/":"?","\\":"|"}};function a(d){if(typeof d.data!=="string"){return}var c=d.handler,e=d.data.toLowerCase().split(" ");d.handler=function(n){if(this!==n.target&&(/textarea|select/i.test(n.target.nodeName)||n.target.type==="text")){return}var h=n.type!=="keypress"&&b.hotkeys.specialKeys[n.which],o=String.fromCharCode(n.which).toLowerCase(),k,m="",g={};if(n.altKey&&h!=="alt"){m+="alt+"}if(n.ctrlKey&&h!=="ctrl"){m+="ctrl+"}if(n.metaKey&&!n.ctrlKey&&h!=="meta"){m+="meta+"}if(n.shiftKey&&h!=="shift"){m+="shift+"}if(h){g[m+h]=true}else{g[m+o]=true;g[m+b.hotkeys.shiftNums[o]]=true;if(m==="shift+"){g[b.hotkeys.shiftNums[o]]=true}}for(var j=0,f=e.length;j<f;j++){if(g[e[j]]){return c.apply(this,arguments)}}}}b.each(["keydown","keyup","keypress"],function(){b.event.special[this]={add:a}})})(jQuery);$(function(){var f=$("html"),o=$("form"),h=$("details",o).details(),b=$("#comments"),n=$("article",b),k=$("#comment-mail, #comment-site"),g=$("textarea").autoResize().change(),l=$(".archive"),e=$('<div id="comment-preview" />').insertAfter(g),c=new Markdown.Converter().makeHtml,a,j=(function(){var q=new Date,s,p;try{(s=window.localStorage).setItem(q,q);p=s.getItem(q)==q;s.removeItem(q);return p&&s}catch(r){}}()),d=["//www.google-analytics.com/ga.js"];$("code").addClass("prettyprint");prettyPrint();k.each(function(){this.setAttribute("autocapitalize","off");this.setAttribute("autocorrect","off")});if(j){k.add("#comment-name").each(function(){this.value=j[this.id]||""}).input(function(){j[this.id]=this.value});if(j["comment-name"]&&j["comment-mail"]){$("p:lt(3)",o).insertAfter(h)}}function m(r,t,s){var p=r,v=g[0].selectionStart,q=g[0].selectionEnd,u=g.val().substring(v,q);if(r===u.substr(0,r.length)&&p===u.substr(-p.length)){u=u.substr(r.length);u=u.substring(0,u.length-p.length);r=p=""}else{if(t){if(s){if(!/^\> \S/m.test(u)){u=u.replace(/^/gm,t).replace(/(\s*)$/,"")}else{u=u.replace(/^\> /gm,"")}r=p=""}else{if(/\n/.test(u)){if(/^[ ]{0,3}\S/m.test(u)){u=u.replace(/^/gm,t).replace(/(\s*)$/,"")}else{u=u.replace(RegExp("^[ ]{"+t.length+"}","gm"),"")}r=p=""}}}}u=r+u+p;g.val(g.val().substring(0,v)+u+g.val().substring(q,g.val().length));g[0].selectionStart=v;g[0].selectionEnd=v+u.length}var i=/Mac/.test(navigator.platform);$.fn.fnKeyBind=function(p,q){return this.bind("keydown",(i?"meta":"ctrl")+"+"+p,q)};g.input(function(){e.html(c(g.val()));clearTimeout(a);a=setTimeout(function(){prettyPrint()},1500)}).blur(function(){clearTimeout(a);prettyPrint()}).fnKeyBind("b",function(){m("**");return false}).fnKeyBind("i",function(){m("_");return false}).fnKeyBind("k",function(){m("`","    ");return false}).fnKeyBind("e",function(){m("","> ",1);return false});if($("form").length){$("#comments .meta").each(function(){var p=$(this),q=p.parent();$('<span>&nbsp;</span><a href="#comment-text" title="Reply to this comment" class="comment-reply">(reply)</a>').click(function(){g.insertAtCaret("[**"+p.find(".author").text()+":**](#"+q.prop("id")+") ").input().focus()}).appendTo(p)})}l.length&&(function(){var r=[],t="",v=$("li",l),p=$("<nav></nav>"),q,u=window.location.hash.slice(1).replace(/-/g," "),s=!!window.history&&history.pushState;$("b",l).each(function(){var w=this.innerHTML;if(!r[w]){r[w]=true;r.push(w)}});r=$.map(r.sort(),function(x,w){t+="<button>"+x+"</button>";return x.toLowerCase()});v.addClass("show");q=p.html(t).find("button");p.on("click","button",function(){var y=this.className!="selected",x,w;this.className=y?"selected":"";x=q.filter(".selected").map(function(){return this.innerHTML}).get();w=":contains("+x.join("),:contains(")+")";if(w==":contains()"){w="li"}v.removeClass("show").filter(w).addClass("show")}).insertBefore(l.addClass("filter-active"));if(u&&~$.inArray(u,r)){q.filter(":Contains("+u+")").click()}}());if(b.length&&!window.mathias){$("article").eq(0).prepend('<div id="carbonads-container"><div class="carbonad"><div id="azcarbon"></div></div></div>');d.push("//engine.carbonads.com/z/13051/azcarbon_2_1_0_VERT")}$("#comment-spam",o).val("no").parent().hide();$('a[href^="mailto:"]').each(function(){this.href=this.href.replace("(at)","@").replace(/\(dot\)/g,".");this.innerHTML=this.href.replace("mailto:","")});o.submit(function(){var q=$("p:not(.submit), fieldset fieldset",this),r=true,p=false;q.each(function(){var u=$(this);u.removeClass("error").find("strong").remove();var x=u.is("p"),w=$(":input",u),s=x?$("<strong />").appendTo(u):$("legend span",u),v=$("em",u).length,t=false;s.find("strong").remove();if(v&&w.is(":text")&&""===$.trim(w.val())){t="This field is required."}else{if(w.hasClass("email")&&w.val().indexOf("@")==-1){t="Invalid email."}else{if(w.is("textarea")&&""===$.trim(w.val())){t="This field is required."}}}if(t){p=true;u.addClass("error");s.text(t);if(r){w.focus();r=false}}});if(p){return false}});window._gaq=[["_setAccount","UA-6065217-11"],["_trackPageview"],["_trackPageLoadTime"]];(function(p,q){var r=p.createDocumentFragment(),s=p.getElementsByTagName(q)[0],u,t=d.length;while(t--){u=p.createElement(q);u.src=d[t];r.appendChild(u)}s.parentNode.insertBefore(r,s)}(document,"script"))});
