// (c) 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
// Underscore may be freely distributed under the MIT license.
//Copyright (C) 2012 Kory Nunn
//Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
//The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
if(!(i.inverseOf||i.bmp||i.astral))thrownewError(a+i.name);u[t(i.name)]=i,i.alias&&(u[t(i.alias)]=i)}e.cache.flush("patterns")},e.addUnicodeData([{name:"L",alias:"Letter",bmp:"A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",astral:"<22><><EFBFBD>[<5B><><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD>]|<7C><><EFBFBD>[<5B><><EFBFBD>-<2D><><EFBFBD>]|<7C><><EFBFBD>[<5B><><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD>]|<7C><><EFBFBD>[<5B><><EFBFBD>-<2D><><EFBFBD>]|<7C><><EFBFBD>[<5B><><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD>]|<7C><><EFBFBD>[<5B><><EFBFBD>-<2D><><EFBFBD>]|<7C><><EFBFBD>[<5B><><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD>]|<7C><><EFBFBD>[<5B><><EFBFBD>-<2D><><EFBFBD>]|<7C><><EFBFBD>[<5B><><EFBFBD>-<2D><><EFBFBD>]|<7C><><EFBFBD>[<5B><><EFBFBD>-<2D><><EFBFBD>]|<7C><><EFBFBD>[<5B><><EFBFBD>-<2D><><EFBFBD>]|<7C><><EFBFBD>[<5B><><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD>]|<7C><><EFBFBD>[<5B><><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD>]|<7C><><EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>]|[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD>][<5B><><EFBFBD>-<2D><><EFBFBD>]|<7C><><EFBFBD>[<5B><><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD>]|<7C><><EFBFBD>[<5B><><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD>]|<7C><><EFBFBD>[<5B><><EFBFBD>-<2D><><EFBFBD>]"}])}(e),function(e){if(!e.addUnicodeData)thrownewReferenceError("Unicode Base must be loaded before Unicode Blocks");e.addUnicodeData([{name:"InAegean_Numbers",astral:"<22><><EFBFBD>[<5B><><EFBFBD>-<2D><><EFBFBD>]"},{name:"InAlchemical_Symbols",astral:"<22><><EFBFBD>[<5B><><EFBFBD>-<2D><><EFBFBD>]"},{name:"InAlphabetic_Presentation_Forms",bmp:"ff-ﭏ"},{name:"InAncient_Greek_Musical_Notation",astral:"<22><><EFBFBD>[<5B><><EFBFBD>-<2D><><EFBFBD>]"},{name:"InAncient_Greek_Numbers",astral:"<22><><EFBFBD>[<5B><><EFBFBD>-<2D><><EFBFBD>]"},{name:"InAncient_Symbols",astral:"<22><><EFBFBD>[<5B><><EFBFBD>-<2D><><EFBFBD>]"},{name:"InArabic",bmp:"-ۿ"},{name:"InArabic_Extended_A",bmp:"ࢠ-ࣿ"},{name:"InArabic_Mathematical_Alphabetic_Symbols",astral:"<22><><EFBFBD>[<5B><><EFBFBD>-<2D><><EFBFBD>]"},{name:"InArabic_Presentation_Forms_A",bmp:"ﭐ-﷿"},{name:"InArabic_Presentation_Forms_B",bmp:"ﹰ-"},{name:"InArabic_Supplement",bmp:"ݐ-ݿ"},{name:"InArmenian",bmp:"-֏"},{name:"InArrows",bmp:"←-⇿"},{name:"InAvestan",astral:"<22><><EFBFBD>[<5B><><EFBFBD>-<2D><><EFBFBD>]"},{name:"InBalinese",bmp:"ᬀ-"},{name:
}}returnr},opera10b:function(e){for(vart=/^(.*)@(.+):(\d+)$/,n=e.stacktrace.split("\n"),i=[],r=0,o=n.length;o>r;r++){vara=t.exec(n[r]);if(a){vars=a[1]?a[1]+"()":"global code";i.push(s+"@"+a[2]+":"+a[3])}}returni},opera10a:function(e){for(vart="{anonymous}",n=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,i=e.stacktrace.split("\n"),r=[],o=0,a=i.length;a>o;o+=2){vars=n.exec(i[o]);if(s){varl=s[3]||t;r.push(l+"()@"+s[2]+":"+s[1]+" -- "+i[o+1].replace(/^\s+/,""))}}returnr},opera9:function(e){for(vart="{anonymous}",n=/Line (\d+).*script (?:in )?(\S+)/i,i=e.message.split("\n"),r=[],o=2,a=i.length;a>o;o+=2){vars=n.exec(i[o]);s&&r.push(t+"()@"+s[2]+":"+s[1]+" -- "+i[o+1].replace(/^\s+/,""))}returnr},other:function(e){for(vart,n,i="{anonymous}",r=/function\s*([\w\-$]+)?\s*\(/i,o=[],a=10;e&&e.arguments&&o.length<a;)t=r.test(e.toString())?RegExp.$1||i:i,n=Array.prototype.slice.call(e.arguments||[]),o[o.length]=t+"("+this.stringifyArguments(n)+")",e=e.caller;returno},stringifyArguments:function(e){for(vart=[],n=Array.prototype.slice,i=0;i<e.length;++i){varr=e[i];void0===r?t[i]="undefined":null===r?t[i]="null":r.constructor&&(r.constructor===Array?t[i]=r.length<3?"["+this.stringifyArguments(r)+"]":"["+this.stringifyArguments(n.call(r,0,1))+"..."+this.stringifyArguments(n.call(r,-1))+"]":r.constructor===Object?t[i]="#object":r.constructor===Function?t[i]="#function":r.constructor===String?t[i]='"'+r+'"':r.constructor===Number&&(t[i]=r))}returnt.join(",")},sourceCache:{},ajax:function(e){vart=this.createXMLHTTPObject();if(t)try{returnt.open("GET",e,!1),t.send(null),t.responseText}catch(n){}return""},createXMLHTTPObject:function(){for(vare,t=[function(){returnnewXMLHttpRequest},function(){returnnewActiveXObject("Msxml2.XMLHTTP")},function(){returnnewActiveXObject("Msxml3.XMLHTTP")},function(){returnnewActiveXObject("Microsoft.XMLHTTP")}],n=0;n<t.length;n++)try{returne=t[n](),this.createXMLHTTPObject=t[n],e}catch(i){}},isSameDomain:function(e){return"undefined"!=typeoflocation&&-1!==e.indexOf(location.hostname)},getSource:function(e){returneinthis.sourceCache||(this.sourceCache[e]=this.ajax(e).split("\n")),this.sourceCache[e]},guessAnonymousFunctions:function(e){for(vart=0;t<e.length;++t){varn=/\{anonymous\}\(.*\)@(.*)/,i=/^(.*?)(?::(\d+))(?::(\d+))?(?: -- .+)?$/,r=e[t],o=n.exec(r);if(o){vara=i.exec(o[1]);if(a){vars=a[1],l=a[2],c=a[3]||0;if(s&&this.isSameDomain(s)&&l){varu=this.guessAnonymousFunction(s,l,c);e[t]=r.replace("{anonymous}",u)}}}}returne},guessAnonymousFunction:function(e,t){varn;try{n=this.findFunctionName(this.getSource(e),t)}catch(i){n="getSource failed with url: "+e+", exception: "+i.toString()}returnn},findFunctionName:function(e,t){for(varn,i,r,o=/function\s+([^(]*?)\s*\(([^)]*)\)/,a=/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*function\b/,s=/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*(?:eval|new Function)\b/,l="",c=Math.min(t,20),u=0;c>u;++u)if(n=e[t-u-1],r=n.indexOf("//"),r>=0&&(n=n.substr(0,r)),n){if(l=n+l,i=a.exec(l),i&&i[1])returni[1];if(i=o.exec(l),i&&i[1])returni[1];if(i=s.exec(l),i&&i[1])returni[1]}return"(?)"}},define("stacktrace",function(e){returnfunction(){vart;returnt||e.printStackTrace}}(this));varsaveAs=saveAs||"undefined"!=typeofnavigator&&navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob.bind(navigator)||function(e){if("undefined"==typeofnavigator||!/MSIE [1-9]\./.test(navigator.userAgent)){vart=e.document,n=function(){returne.URL||e.webkitURL||e},i=e.URL||e.webkitURL||e,r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),o=!e.externalHost&&"download"inr,a=e.webkitRequestFileSystem,s=e.requestFileSystem||a||e.mozRequestFileSystem,l=function(t){(e.setImmediate||e.setTimeout)(function(){throwt},0)},c="application/octet-stream",u=0,d=[],p=function(){for(vare=d.length;e--;){vart=d[e];"string"==typeoft?i.revokeObjectURL(t):t.remove()}d.length=0},f=function(e,t,n){t=[].concat(t);for(vari=t.length;i--;){varr=e["on"+t[i]];if("function"==typeofr)try{r.call(e,n||e)}catch(o){l(o)}}},h=function(i,l){varp,h,m,g=this,v=i.type,b
}),hljs.registerLanguage("css",function(e){vart="[a-zA-Z-][a-zA-Z0-9_-]*",n={cN:"function",b:t+"\\(",e:"\\)",c:["self",e.NM,e.ASM,e.QSM]};return{cI:!0,i:"[=/|']",c:[e.CBLCLM,{cN:"id",b:"\\#[A-Za-z0-9_-]+"},{cN:"class",b:"\\.[A-Za-z0-9_-]+",r:0},{cN:"attr_selector",b:"\\[",e:"\\]",i:"$"},{cN:"pseudo",b:":(:)?[a-zA-Z0-9\\_\\-\\+\\(\\)\\\"\\']+"},{cN:"at_rule",b:"@(font-face|page)",l:"[a-z-]+",k:"font-face page"},{cN:"at_rule",b:"@",e:"[{;]",c:[{cN:"keyword",b:/\S+/},{b:/\s/,eW:!0,eE:!0,r:0,c:[n,e.ASM,e.QSM,e.NM]}]},{cN:"tag",b:t,r:0},{cN:"rules",b:"{",e:"}",i:"[^\\s]",r:0,c:[e.CBLCLM,{cN:"rule",b:"[^\\s]",rB:!0,e:";",eW:!0,c:[{cN:"attribute",b:"[A-Z\\_\\.\\-]+",e:":",eE:!0,i:"[^\\s]",starts:{cN:"value",eW:!0,eE:!0,c:[n,e.NM,e.QSM,e.ASM,e.CBLCLM,{cN:"hexcolor",b:"#[0-9A-Fa-f]+"},{cN:"important",b:"!important"}]}}]}]}]}}),hljs.registerLanguage("lisp",function(e){vart="[a-zA-Z_\\-\\+\\*\\/\\<\\=\\>\\&\\#][a-zA-Z0-9_\\-\\+\\*\\/\\<\\=\\>\\&\\#!]*",n="(\\-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s)(\\+|\\-)?\\d+)?",i={cN:"shebang",b:"^#!",e:"$"},r={cN:"literal",b:"\\b(t{1}|nil)\\b"},o={cN:"number",v:[{b:n,r:0},{b:"#b[0-1]+(/[0-1]+)?"},{b:"#o[0-7]+(/[0-7]+)?"},{b:"#x[0-9a-f]+(/[0-9a-f]+)?"},{b:"#c\\("+n+" +"+n,e:"\\)"}]},a=e.inherit(e.QSM,{i:null}),s={cN:"comment",b:";",e:"$"},l={cN:"variable",b:"\\*",e:"\\*"},c={cN:"keyword",b:"[:&]"+t},u={b:"\\(",e:"\\)",c:["self",r,a,o]},d={cN:"quoted",c:[o,a,l,c,u],v:[{b:"['`]\\(",e:"\\)"},{b:"\\(quote ",e:"\\)",k:{title:"quote"}}]},p={cN:"list",b:"\\(",e:"\\)"},f={eW:!0,r:0};returnp.c=[{cN:"title",b:t},f],f.c=[d,p,r,o,a,s,l,c],{i:/\S/,c:[o,i,r,a,s,d,p]}}),hljs.registerLanguage("profile",function(e){return{c:[e.CNM,{cN:"built_in",b:"{",e:"}$",eB:!0,eE:!0,c:[e.ASM,e.QSM],r:0},{cN:"filename",b:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",e:":",eE:!0},{cN:"header",b:"(ncalls|tottime|cumtime)",e:"$",k:"ncalls tottime|10 cumtime|10 filename",r:10},{cN:"summary",b:"function calls",e:"$",c:[e.CNM],r:10},e.ASM,e.QSM,{cN:"function",b:"\\(",e:"\\)$",c:[e.UTM],r:0}]}}),hljs.registerLanguage("http",function(){return{i:"\\S",c:[{cN:"status",b:"^HTTP/[0-9\\.]+",e:"$",c:[{cN:"number",b:"\\b\\d{3}\\b"}]},{cN:"request",b:"^[A-Z]+ (.*?) HTTP/[0-9\\.]+$",rB:!0,e:"$",c:[{cN:"string",b:" ",e:" ",eB:!0,eE:!0}]},{cN:"attribute",b:"^\\w",e:": ",eE:!0,i:"\\n|\\s|=",starts:{cN:"string",e:"$"}},{b:"\\n\\n",starts:{sL:"",eW:!0}}]}}),hljs.registerLanguage("java",function(e){vart="false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws";return{k:t,i:/<\//,c:[{cN:"javadoc",b:"/\\*\\*",e:"\\*/",c:[{cN:"javadoctag",b:"(^|\\s)@[A-Za-z]+"}],r:10},e.CLCM,e.CBLCLM,e.ASM,e.QSM,{bK:"protected public private",e:/[{;=]/,k:t,c:[{cN:"class",bK:"class interface",eW:!0,i:/[:"<>]/,c:[{bK:"extends implements",r:10},e.UTM]},{b:e.UIR+"\\s*\\(",rB:!0,c:[e.UTM]}]},e.CNM,{cN:"annotation",b:"@[A-Za-z]+"}]}}),hljs.registerLanguage("fsharp",function(e){return{k:"abstract and as assert base begin class default delegate do done downcast downto elif else end exception extern false finally for fun function global if in inherit inline interface internal lazy let match member module mutable namespace new null of open or override private public rec return sig static struct then to true try type upcast use val void when while with yield",c:[{cN:"string",b:'@"',e:'"',c:[{b:'""'}]},{cN:"string",b:'"""',e:'"""'},{cN:"comment",b:"\\(\\*",e:"\\*\\)"},{cN:"class",bK:"type",e:"\\(|=|$",c:[e.UTM]},{cN:"annotation",b:"\\[<",e:">\\]"},{cN:"attribute",b:"\\B('[A-Za-z])\\b",c:[e.BE]},e.CLCM,e.inherit(e.QSM,{i:null}),e.CNM]}}),hljs.registerLanguage("mathematica",function(e){return{aliases:["mma"],l:"(\\$|\\b)"+e.IR+"\\b",k:"AbelianGroupAbortAbortKernelsAbortProtectAboveAbsAbsoluteAbsoluteCorrelationAbsoluteCorrelationFunctionAbsoluteCurrentValueAbsoluteDashingAbsoluteFileNameAbsoluteOptionsAbsolutePo
}),hljs.registerLanguage("php",function(e){vart={cN:"variable",b:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*"},n={cN:"preprocessor",b:/<\?(php)?|\?>/},i={cN:"string",c:[e.BE,n],v:[{b:'b"',e:'"'},{b:"b'",e:"'"},e.inherit(e.ASM,{i:null}),e.inherit(e.QSM,{i:null})]},r={v:[e.BNM,e.CNM]};return{cI:!0,k:"and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception default die require __FUNCTION__ enddeclare final try switch continue endfor endif declare unset true false trait goto instanceof insteadof __DIR__ __NAMESPACE__ yield finally",c:[e.CLCM,e.HCM,{cN:"comment",b:"/\\*",e:"\\*/",c:[{cN:"phpdoc",b:"\\s@[A-Za-z]+"},n]},{cN:"comment",b:"__halt_compiler.+?;",eW:!0,k:"__halt_compiler",l:e.UIR},{cN:"string",b:"<<<['\"]?\\w+['\"]?$",e:"^\\w+;",c:[e.BE]},n,t,{cN:"function",bK:"function",e:/[;{]/,i:"\\$|\\[|%",c:[e.UTM,{cN:"params",b:"\\(",e:"\\)",c:["self",t,e.CBLCLM,i,r]}]},{cN:"class",bK:"class interface",e:"{",i:/[:\(\$"]/,c:[{bK:"extends implements",r:10},e.UTM]},{bK:"namespace",e:";",i:/[\.']/,c:[e.UTM]},{bK:"use",e:";",c:[e.UTM]},{b:"=>"},i,r]}}),hljs.registerLanguage("haskell",function(e){vart={cN:"comment",v:[{b:"--",e:"$"},{b:"{-",e:"-}",c:["self"]}]},n={cN:"pragma",b:"{-#",e:"#-}"},i={cN:"preprocessor",b:"^#",e:"$"},r={cN:"type",b:"\\b[A-Z][\\w']*",r:0},o={cN:"container",b:"\\(",e:"\\)",i:'"',c:[n,t,i,{cN:"type",b:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TM,{b:"[_a-z][\\w']*"})]},a={cN:"container",b:"{",e:"}",c:o.c};return{k:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",c:[{cN:"module",b:"\\bmodule\\b",e:"where",k:"module where",c:[o,t],i:"\\W\\.|;"},{cN:"import",b:"\\bimport\\b",e:"$",k:"import|0 qualified as hiding",c:[o,t],i:"\\W\\.|;"},{cN:"class",b:"^(\\s*)?(class|instance)\\b",e:"where",k:"class family instance where",c:[r,o,t]},{cN:"typedef",b:"\\b(data|(new)?type)\\b",e:"$",k:"data family type newtype deriving",c:[n,t,r,o,a]},{cN:"default",bK:"default",e:"$",c:[r,o,t]},{cN:"infix",bK:"infix infixl infixr",e:"$",c:[e.CNM,t]},{cN:"foreign",b:"\\bforeign\\b",e:"$",k:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",c:[r,e.QSM,t]},{cN:"shebang",b:"#!\\/usr\\/bin\\/env runhaskell",e:"$"},n,t,i,e.QSM,e.CNM,r,e.inherit(e.TM,{b:"^[_a-z][\\w']*"}),{b:"->|<-"}]}}),hljs.registerLanguage("1c",function(e){vart="[a-zA-Zа-яА-Я][a-zA-Z0-9_а-яА-Я]*",n="возврат дата для если и или иначе иначеесли исключение конецесли конецпопытки конецпроцедуры конецфункции конеццикла константа не перейти перем перечисление по пока попытка прервать продолжить процедура строка тогда фс функция цикл число экспорт",i="ansitooemoemtoansiввестивидсубконтоввестидатуввестизначениеввестиперечислениеввестипериодввестиплансчетовввестистрокуввестичисловопросвосстановитьзначениеврегвыбранныйплансчетоввызватьисключениедатагоддатамесяцдатачислодобавитьмесяцзавершитьработусистемызаголовоксистемызаписьжурналарегистрациизапуститьприложениезафиксироватьтранзакциюзначениевстрокузначениевстрокувнутрзначениевфайлзначениеизстрокизначениеизстрокивн<EFBFBD>
}),hljs.registerLanguage("vhdl",function(e){return{cI:!0,k:{keyword:"abs access after alias all and architecture array assert attribute begin block body buffer bus case component configuration constant context cover disconnect downto default else elsif end entity exit fairness file for force function generate generic group guarded if impure in inertial inout is label library linkage literal loop map mod nand new next nor not null of on open or others out package port postponed procedure process property protected pure range record register reject release rem report restrict restrict_guarantee return rol ror select sequence severity shared signal sla sll sra srl strong subtype then to transport type unaffected units until use variable vmode vprop vunit wait when while with xnor xor",typename:"boolean bit character severity_level integer time delay_length natural positive string bit_vector file_open_kind file_open_status std_ulogic std_ulogic_vector std_logic std_logic_vector unsigned signed boolean_vector integer_vector real_vector time_vector"},i:"{",c:[e.CBLCLM,{cN:"comment",b:"--",e:"$"},e.QSM,e.CNM,{cN:"literal",b:"'(U|X|0|1|Z|W|L|H|-)'",c:[e.BE]},{cN:"attribute",b:"'[A-Za-z](_?[A-Za-z0-9])*",c:[e.BE]}]}}),hljs.registerLanguage("coffeescript",function(e){vart={keyword:"in if for while finally new do return else break catch instanceof throw try this switch continue typeof delete debugger super then unless until loop of by when and or is isnt not",literal:"true false null undefined yes no on off",reserved:"case default function var void with const let enum export import native __hasProp __extends __slice __bind __indexOf",built_in:"npm require console print module exports global window document"},n="[A-Za-z$_][0-9A-Za-z$_]*",i=e.inherit(e.TM,{b:n}),r={cN:"subst",b:/#\{/,e:/}/,k:t},o=[e.BNM,e.inherit(e.CNM,{starts:{e:"(\\s*/)?",r:0}}),{cN:"string",v:[{b:/'''/,e:/'''/,c:[e.BE]},{b:/'/,e:/'/,c:[e.BE]},{b:/"""/,e:/"""/,c:[e.BE,r]},{b:/"/,e:/"/,c:[e.BE,r]}]},{cN:"regexp",v:[{b:"///",e:"///",c:[r,e.HCM]},{b:"//[gim]*",r:0},{b:"/\\S(\\\\.|[^\\n])*?/[gim]*(?=\\s|\\W|$)"}]},{cN:"property",b:"@"+n},{b:"`",e:"`",eB:!0,eE:!0,sL:"javascript"}];returnr.c=o,{k:t,c:o.concat([{cN:"comment",b:"###",e:"###"},e.HCM,{cN:"function",b:"("+n+"\\s*=\\s*)?(\\(.*\\))?\\s*\\B[-=]>",e:"[-=]>",rB:!0,c:[i,{cN:"params",b:"\\(",rB:!0,c:[{b:/\(/,e:/\)/,k:t,c:["self"].concat(o)}]}]},{cN:"class",bK:"class",e:"$",i:/[:="\[\]]/,c:[{bK:"extends",eW:!0,i:/[:="\[\]]/,c:[i]},i]},{cN:"attribute",b:n+":",e:":",rB:!0,eE:!0,r:0}])}}),hljs.registerLanguage("mizar",function(){return{k:["environ vocabularies notations constructors definitions registrations theorems schemes requirements","begin end definition registration cluster existence pred func defpred deffunc theorem proof","let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from","be being by means equals implies iff redefine define now not or attr is mode suppose per cases set","thesis contradiction scheme reserve struct","correctness compatibility coherence symmetry assymetry reflexivity irreflexivity","connectedness uniqueness commutativity idempotence involutiveness projectivity"].join(" "),c:[{cN:"comment",b:"::",e:"$"}]}}),hljs.registerLanguage("nginx",function(e){vart={cN:"variable",v:[{b:/\$\d+/},{b:/\$\{/,e:/}/},{b:"[\\$\\@]"+e.UIR}]},n={eW:!0,l:"[a-z/_]+",k:{built_in:"on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll"},r:0,i:"=>",c:[e.HCM,{cN:"string",c:[e.BE,t],v:[{b:/"/,e:/"/},{b:/'/,e:/'/}]},{cN:"url",b:"([a-z]+):/",e:"\\s",eW:!0,eE:!0},{cN:"regexp",c:[e.BE,t],v:[{b:"\\s\\^",e:"\\s|{|;",rE:!0},{b:"~\\*?\\s+",e:"\\s|{|;",rE:!0},{b:"\\*(\\.[a-z\\-]+)+"},{b:"([a-z\\-]+\\.)+\\*"}]},{cN:"number",b:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{cN:"number",b:"\\b\\d+[kKmMgGdshdwy]*\\b",r:0},t]};return{c:[e.HCM,{b:e.UIR+"\\s",e:";|{",rB:!0,c:[e.inherit(e.UTM,{starts:n})],r:0}],i:"[^\\s\\}]"}}),hljs.registerLanguage("erlang-repl",function(e){retur
}),hljs.registerLanguage("applescript",function(e){vart=e.inherit(e.QSM,{i:""}),n={cN:"params",b:"\\(",e:"\\)",c:["self",e.CNM,t]},i=[{cN:"comment",b:"--",e:"$"},{cN:"comment",b:"\\(\\*",e:"\\*\\)",c:["self",{b:"--",e:"$"}]},e.HCM];return{k:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the then third through thru timeout times to transaction try until where while whose with without",constant:"AppleScript false linefeed return pi quote result space tab true",type:"alias application boolean class constant date file integer list number real record string text",command:"activate beep count delay launch log offset read round run say summarize write",property:"character characters contents day frontmost id item length month name paragraph paragraphs rest reverse running time version weekday word words year"},c:[t,e.CNM,{cN:"type",b:"\\bPOSIX file\\b"},{cN:"command",b:"\\b(clipboard info|the clipboard|info for|list (disks|folder)|mount volume|path to|(close|open for) access|(get|set) eof|current date|do shell script|get volume settings|random number|set volume|system attribute|system info|time to GMT|(load|run|store) script|scripting components|ASCII (character|number)|localized string|choose (application|color|file|file name|folder|from list|remote application|URL)|display (alert|dialog))\\b|^\\s*return\\b"},{cN:"constant",b:"\\b(text item delimiters|current application|missing value)\\b"},{cN:"keyword",b:"\\b(apart from|aside from|instead of|out of|greater than|isn't|(doesn't|does not) (equal|come before|come after|contain)|(greater|less) than( or equal)?|(starts?|ends|begins?) with|contained by|comes (before|after)|a (ref|reference))\\b"},{cN:"property",b:"\\b(POSIX path|(date|time) string|quoted form)\\b"},{cN:"function_start",bK:"on",i:"[${=;\\n]",c:[e.UTM,n]}].concat(i),i:"//"}}),hljs.registerLanguage("lasso",function(e){vart="[a-zA-Z_][a-zA-Z0-9_.]*",n="<\\?(lasso(script)?|=)",i="\\]|\\?>",r={literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null bytes list queue set stack staticarray tie local var variable global data self inherited",keyword:"error_code error_msg error_pop error_push error_reset cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},o={cN:"comment",b:"<!--",e:"-->",r:0},a={cN:"preprocessor",b:"\\[noprocess\\]",starts:{cN:"markup",e:"\\[/noprocess\\]",rE:!0,c:[o]}},s={cN:"preprocessor",b:"\\[/noprocess|"+n},l={cN:"variable",b:"'"+t+"'"},c=[e.CLCM,{cN:"javadoc",b:"/\\*\\*!",e:"\\*/"},e.CBLCLM,e.inherit(e.CNM,{b:e.CNR+"|-?(infinity|nan)\\b"}),e.inherit(e.ASM,{i:null}),e.inherit(e.QSM,{i:null}),{cN:"string",b:"`",e:
returnn.preventDefault(),i=e(this),i.text(i.data(t._paused?"pause-text":"resume-text")),t._paused?t.resume():t.pause()})},n.prototype._setupKeyboardNavigation=function(){vart=this;if(this._options.keyboard)returne(i).on("keyup.tour-"+this._options.name,function(e){if(e.which)switch(e.which){case39:returne.preventDefault(),t._isLast()?t.next():t.end();case37:if(e.preventDefault(),t._current>0)returnt.prev();break;case27:returne.preventDefault(),t.end()}})},n.prototype._makePromise=function(t){returnt&&e.isFunction(t.then)?t:null},n.prototype._callOnPromiseDone=function(e,t,n){vari=this;returne?e.then(function(){returnt.call(i,n)}):t.call(this,n)},n.prototype._showBackdrop=function(){returnthis.backdrop.backgroundShown?void0:(this.backdrop=e("<div/>",{"class":"tour-backdrop"}),this.backdrop.backgroundShown=!0,e("body").append(this.backdrop))},n.prototype._hideBackdrop=function(){returnthis._hideOverlayElement(),this._hideBackground()},n.prototype._hideBackground=function(){returnthis.backdrop.remove(),this.backdrop.overlay=null,this.backdrop.backgroundShown=!1},n.prototype._showOverlayElement=function(t){varn,i,r;if(!this.backdrop.overlayElementShown)returnthis.backdrop.overlayElementShown=!0,i=e(t),n=e("<div/>"),r=i.offset(),r.top=r.top,r.left=r.left,n.width(i.innerWidth()).height(i.innerHeight()).addClass("tour-step-background").offset(r),i.addClass("tour-step-backdrop"),e("body").append(n),this.backdrop.$element=i,this.backdrop.$background=n},n.prototype._hideOverlayElement=function(){returnthis.backdrop.overlayElementShown?(this.backdrop.$element.removeClass("tour-step-backdrop"),this.backdrop.$background.remove(),this.backdrop.$element=null,this.backdrop.$background=null,this.backdrop.overlayElementShown=!1):void0},n.prototype._clearTimer=function(){returnt.clearTimeout(this._timer),this._timer=null,this._duration=null},n}(),t.Tour=n}(jQuery,window),define("bootstrap-tour",["bootstrap"],function(e){returnfunction(){vart;returnt||e.Tour}}(this)),define("extensions/welcomeTour",["underscore","jquery","storage","classes/Extension","bootstrap-tour"],function(e,t,n,i,r){varo,a=newi("welcomeTour","Welcome tour",!1,!0);returna.onEventMgrCreated=function(e){o=e},a.onReady=function(){functioni(e,n,i){varr=t(e).tooltip({html:!0,placement:i,trigger:"manual",title:n}).tooltip("show").addClass("info-tooltip");r.one("click",function(){r.tooltip("hide").removeClass("info-tooltip")}),setTimeout(function(){r.tooltip("hide").removeClass("info-tooltip")},2e4)}vara=newr({keyboard:!1,storage:{getItem:function(){},setItem:function(){},removeItem:function(){}},onEnd:function(){n.welcomeTour="done",i(".menu-panel .toggle-button *","Synchronize, publish and more...","right"),i(".document-panel .toggle-button *","Create and manage documents","left"),i(".extension-preview-buttons .btn-group:first","Need help with Markdown syntax?","left"),i(".layout-toggler-preview","Toggle preview","right")},template:['<div class="popover tour">',' <div class="arrow"></div>',' <h3 class="popover-title"></h3>',' <div class="popover-content"></div>',' <nav class="popover-navigation">',' <button class="btn btn-primary" data-role="next">Next</button>',' <button class="btn btn-default" data-role="end">Got it!</button>'," </nav>","</div>"].join("")});a.addSteps([{element:".navbar-inner",title:"StackEdit 4 beta preview!",content:["<p><strong>What's new?</strong></p>","<ul>"," <li>New contenteditable based editor (credit to Dabblet, Editorially...)</li>"," <li>New layout with CSS3 transitions (lighter supposedly)</li>"," <li>Comments/discussions support (see the new icon in the navigation bar)</li>"," <li>Auto-merge and conflict detection using standard synchronization</li>"," <li>Dropped real time sync support :( since you can collaborate simultaneously using standard synchronization</li>","</ul>",'<p>Please <a target="_blank" href="https://github.com/benweet/stackedit/issues/385">provide your feedback here</a>... Thanks!</p>','<ahref="https://twitter.com/share"class="twitter-share-button"data-u
if(!n.length)thrownewError("a filter is required");returnn.unshift(t+1,0),Array.prototype.splice.apply(this.filters,n),this},i.prototype.before=function(e){vart=this.indexOf(e),n=Array.prototype.slice.call(arguments,1);if(!n.length)thrownewError("a filter is required");returnn.unshift(t,0),Array.prototype.splice.apply(this.filters,n),this},i.prototype.clear=function(){returnthis.filters.length=0,this},i.prototype.shouldHaveResult=function(e){if(e===!1)returnvoid(this.resultCheck=null);if(!this.resultCheck){vart=this;returnthis.resultCheck=function(e){if(!e.hasResult){console.log(e);varn=newError(t.name+" failed");thrown.noResult=!0,n}},this}},n.Pipe=i},{}],16:[function(e,t,n){vari=function(e){this.selfOptions=e,this.pipes={}};i.prototype.options=function(e){returne&&(this.selfOptions=e),this.selfOptions},i.prototype.pipe=function(e,t){if("string"==typeofe){if("undefined"==typeoft)returnthis.pipes[e];this.pipes[e]=t}if(e&&e.name){if(t=e,t.processor===this)returnt;this.pipes[t.name]=t}returnt.processor=this,t},i.prototype.process=function(e,t){varn=e;n.options=this.options();for(vari,r,o=t||e.pipe||"default";o;)"undefined"!=typeofn.nextAfterChildren&&(n.next=n.nextAfterChildren,n.nextAfterChildren=null),"string"==typeofo&&(o=this.pipe(o)),o.process(n),r=n,i=o,o=null,n&&n.next&&(n=n.next,o=r.nextPipe||n.pipe||i);returnn.hasResult?n.result:void0},n.Processor=i},{}]},{},[8])(8)}),"undefined"==typeofWeakMap&&!function(){vare=Object.defineProperty,t=Date.now()%1e9,n=function(){this.name="__st"+(1e9*Math.random()>>>0)+(t+++"__")};n.prototype={set:function(t,n){vari=t[this.name];i&&i[0]===t?i[1]=n:e(t,this.name,{value:[t,n],writable:!0})},get:function(e){vart;return(t=e[this.name])&&t[0]===e?t[1]:void0},"delete":function(e){this.set(e,void0)}},window.WeakMap=n}(),define("WeakMap",function(){}),function(e){functiont(e){x.push(e),y||(y=!0,g(i))}functionn(e){returnwindow.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(e)||e}functioni(){y=!1;vare=x;x=[],e.sort(function(e,t){returne.uid_-t.uid_});vart=!1;e.forEach(function(e){varn=e.takeRecords();r(e),n.length&&(e.callback_(n,e),t=!0)}),t&&i()}functionr(e){e.nodes_.forEach(function(t){varn=m.get(t);n&&n.forEach(function(t){t.observer===e&&t.removeTransientObservers()})})}functiono(e,t){for(varn=e;n;n=n.parentNode){vari=m.get(n);if(i)for(varr=0;r<i.length;r++){varo=i[r],a=o.options;if(n===e||a.subtree){vars=t(a);s&&o.enqueue(s)}}}}functiona(e){this.callback_=e,this.nodes_=[],this.records_=[],this.uid_=++w}functions(e,t){this.type=e,this.target=t,this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}functionl(e){vart=news(e.type,e.target);returnt.addedNodes=e.addedNodes.slice(),t.removedNodes=e.removedNodes.slice(),t.previousSibling=e.previousSibling,t.nextSibling=e.nextSibling,t.attributeName=e.attributeName,t.attributeNamespace=e.attributeNamespace,t.oldValue=e.oldValue,t}functionc(e,t){returnS=news(e,t)}functionu(e){returnC?C:(C=l(S),C.oldValue=e,C)}functiond(){S=C=void0}functionp(e){returne===C||e===S}functionf(e,t){returne===t?e:C&&p(e)?C:null}functionh(e,t,n){this.observer=e,this.target=t,this.options=n,this.transientObservedNodes=[]}varm=newWeakMap,g=window.msSetImmediate;if(!g){varv=[],b=String(Math.random());window.addEventListener("message",function(e){if(e.data===b){vart=v;v=[],t.forEach(function(e){e()})}}),g=function(e){v.push(e),window.postMessage(b,"*")}}vary=!1,x=[],w=0;a.prototype={observe:function(e,t){if(e=n(e),!t.childList&&!t.attributes&&!t.characterData||t.attributeOldValue&&!t.attributes||t.attributeFilter&&t.attributeFilter.length&&!t.attributes||t.characterDataOldValue&&!t.characterData)thrownewSyntaxError;vari=m.get(e);i||m.set(e,i=[]);for(varr,o=0;o<i.length;o++)if(i[o].observer===this){r=i[o],r.removeListeners(),r.options=t;break}r||(r=newh(this,e,t),i.push(r),this.nodes_.push(e)),r.addListeners()},disconnect:function(){this.nodes_.forEach(function(e){for(vart=m.get(e
returni?(e.fileDesc=n,e.syncAttributes=i,e.wasRemoved===!0?voidd.push(e):void(i.version!=e.stat.versionTag&&d.push(e))):void0}),s.downloadContent(d,function(e,r){functiona(){if(0===r.length)returnn[p+".lastChangeId"]=u,i();vare=r.pop(),s=e.fileDesc,l=e.syncAttributes;if(e.wasRemoved===!0)returno.onError('"'+s.title+'" has been removed from Dropbox.'),s.removeSyncLocation(l),o.onSyncRemoved(s,l);varc=e.stat,d=f.parseContent(c.content),m=d.content,g=d.discussionListJSON,v=d.discussionList,b=f.syncMerge(s,l,m,s.title,v,g);l.version=c.versionTag,h===!0&&(l.content=m,l.discussionList=v),l.contentCRC=b.contentCRC,l.discussionListCRC=b.discussionListCRC,t.storeAttributes(l),setTimeout(a,5)}returne?voidi(e):voidsetTimeout(a,5)})})},f.publish=function(e,t,n,i,r){varo=l(e.path);returnvoid0===o?r(!0):voids.upload(o,i,r)},f.newPublishAttributes=function(e){varn={};returnn.path=t.getInputTextValue("#input-publish-dropbox-path",e),e.isPropagationStopped()?void0:n},f}),define("helpers/googleHelper",["underscore","jquery","constants","core","utils","storage","logger","settings","eventMgr","classes/AsyncTask"],function(e,t,n,i,r,o,a,s,l,c){functionu(t){varn={profile:!0},i=!0;e.each((o[t+".permissions"]||"").split(";"),function(e){e&&(n[e]=!0)}),this.setRefreshFlag=function(){i=!0},this.isAuthorized=function(t){returni===!1&&e.has(n,t)},this.add=function(r){n[r]=!0,o[t+".permissions"]=e.keys(n).join(";"),i=!1},this.getListWithNew=function(t){vari=e.keys(n);returne.has(n,t)||i.push(t),i};varr=o[t+".userId"];this.setUserId=function(e){r=e,o[t+".userId"]=r},this.getUserId=function(){returnr}}functiond(e){e.onRun(function(){returny===!0?(g=!1,voide.error(newError("Operation not available in offline mode.|stopPublish"))):g===!0?voide.chain():(window.delayedFunction=function(){gapi.load("client",function(){gapi.client.load("drive","v2",function(){g=!0,e.chain()})})},voidt.ajax({url:"https://apis.google.com/js/api.js?onload=runDelayedFunction",dataType:"script",timeout:n.AJAX_TIMEOUT}).fail(function(t){varn={code:t.status,message:t.statusText};h(n,e)}))})}functionp(i,o,a){vars=v[a];s||(s=newu(a),v[a]=s),i.onRun(function(){functiona(){t.ajax({url:"https://www.googleapis.com/oauth2/v1/tokeninfo",data:{access_token:d.access_token},timeout:n.AJAX_TIMEOUT,type:"GET"}).done(function(e){s.getUserId()&&s.getUserId()!=e.user_id?u():(s.setUserId(e.user_id),s.add(o),s.token=d,i.chain())}).fail(function(e){vart={code:e.status,message:e.statusText};h(t,i)})}functionl(){if(m>5)returnvoidi.error(newError("Unable to authenticate user "+s.getUserId()+", please sign in with Google."));p===!1&&(i.timeout=n.ASYNC_TASK_LONG_TIMEOUT);vart=e.chain(x).pick(s.getListWithNew(o)).flatten().value();gapi.auth.authorize({client_id:n.GOOGLE_CLIENT_ID,scope:t,immediate:p,authuser:p===!1?"":m},function(e){d=gapi.auth.getToken(),gapi.auth.setToken(f),!e||e.error?g===!0&&p===!0?(p=!1,i.chain(c)):i.error(newError("Access to Google account is not authorized.")):(p===!0&&m++,i.chain(a))})}functionc(){returnp===!0?voidi.chain(l):voidr.redirectConfirm("You are being redirected to <strong>Google</strong> authorization page.",function(){i.chain(l)},function(){i.error(newError("Operation canceled."))})}functionu(){returnp=!0,s.token&&s.isAuthorized(o)?voidi.chain():(s.getUserId()||(p=!1),voidi.chain(c))}vard,p,f=gapi.auth.getToken(),m=0;u()})}functionf(e,t){varn=gapi.auth.getToken(),i=v[e];gapi.auth.setToken(i.token),t(),gapi.auth.setToken(n)}functionh(t,n){varr;if(t)if(a.error(t),"string"==typeoft)r=t;else{if(r="Google error ("+t.code+": "+t.message+").",t.code>=500&&t.code<600)returnvoidn.retry(newError(r));if(401===t.code||403===t.code||"token_refresh_required"==t.code)returne.each(v,function(e){e.setRefreshFlag()}),r="Access to Google account is not authorized.",voidn.retry(newError(r),1);(0===t.code||-1===t.code)&&(g=!1,e.each(v,function(e){e.setRefreshFlag()}),i.setOffline(),r="|stopPublish")}n.error(newError(r))}functionm(e){e.onRun(function(){returnw===!0?voide.chain():voidt.ajax({url:"//www.google.com/jsapi",d
e.error<=0&&(p=!1,f=void0,n.setOffline(),i="|stopPublish")}t.error(newError(i))}varp,f,h={},m=!1;returns.addListener("onOfflineChanged",function(e){m=e}),h.upload=function(e,t,n,i,r,o,a){vars=newl;c(s),u(s),s.onRun(function(){functiona(){vare=f.getUser();e.show(void0,function(e,n){returne?voidd(e,s):(t=n.login,voids.chain(l))})}functionl(){vara=f.getRepo(t,e);a.write(n,i,r,o,function(e){returne?voidd(e,s):voids.chain()})}s.chain(t?l:a)}),s.onSuccess(function(){a()}),s.onError(function(e){a(e)}),s.enqueue()},h.uploadGist=function(e,t,n,i,r,o){vara=newl;c(a),u(a),a.onRun(function(){varo=f.getGist(e),s={};s[t]={content:r};varl=o.update;void0===e&&(l=o.create),l({description:i,"public":n,files:s},function(t,n){returnt?(404===t.error&&void0!==e&&(t="Gist "+e+" not found on GitHub.|removePublish"),voidd(t,a)):(e=n.id,voida.chain())})}),a.onSuccess(function(){o(void0,e)}),a.onError(function(e){o(e)}),a.enqueue()},h.downloadGist=function(e,t,n){vari=newl(!0);c(i);varr,o;i.onRun(function(){varn=newGithub({}),a=n.getGist(e);a.read(function(n,a){if(n)returnvoidi.error(newError("Error trying to access Gist "+e+"."));r=a.description;vars=a.files[t];returnvoid0===s?voidi.error(newError("Gist "+e+' does not contain "'+t+'".')):(o=s.content,voidi.chain())})}),i.onSuccess(function(){n(void0,r,o)}),i.onError(function(e){n(e)}),i.enqueue()},h}),define("providers/gistProvider",["utils","classes/Provider","helpers/githubHelper"],function(e,t,n){vari=newt("gist","Gist");returni.publishPreferencesInputIds=["gist-public"],i.sharingAttributes=["gistId","filename"],i.publish=function(e,t,i,r,o){n.uploadGist(e.gistId,e.filename,e.isPublic,i,r,function(t,n){returnt?voido(t):(e.gistId=n,voido())})},i.newPublishAttributes=function(t){varn={};returnn.gistId=e.getInputTextValue("#input-publish-gist-id"),n.filename=e.getInputTextValue("#input-publish-filename",t),n.isPublic=e.getInputChecked("#input-publish-gist-public"),t.isPropagationStopped()?void0:n},i.importPublic=function(e,t){n.downloadGist(e.gistId,e.filename,t)},i}),define("sharing",["jquery","underscore","constants","utils","eventMgr","fileMgr","classes/AsyncTask","classes/Provider","providers/downloadProvider","providers/gistProvider"],function(e,t,n,i,r,o,a,s){varl={},c=t.chain(arguments).map(function(e){returneinstanceofs&&[e.providerId,e]}).compact().object().value(),u=!1;returnr.addListener("onOfflineChanged",function(e){u=e}),l.createLink=function(e,i){varr=c[e.provider.providerId];if(void0!==e.sharingLink||void0===r||"markdown"!=e.format)returnvoidi();varo=[n.MAIN_URL,"viewer#!provider=",r.providerId];t.each(r.sharingAttributes,function(t){o.push("&"),o.push(t),o.push("="),o.push(encodeURIComponent(e[t]))}),e.sharingLink=o.join(""),i()},r.addListener("onReady",function(){if(window.viewerMode!==!1){varn=i.getURLParameter("provider");void0===n&&(n="download");varr=c[n];if(void0!==r){vara={};t.each(r.sharingAttributes,function(e){vart=i.getURLParameter(e);returnt?void(a[e]=t):void(a=void0)}),void0!==a&&(e("#preview-contents, .navbar .file-title-navbar").hide(),r.importPublic(a,function(t,n,i){if(e("#preview-contents, .navbar .file-title-navbar").show(),!t){varr=o.createFile(n,i,void0,void0,!0);o.selectFile(r)}}))}}}),l}),define("providers/bloggerProvider",["underscore","utils","classes/Provider","helpers/googleHelper"],function(e,t,n,i){varr=newn("blogger","Blogger");returnr.defaultPublishFormat="html",r.publishPreferencesInputIds=["blogger-url"],r.publish=function(t,n,r,o,a){vars=t.labelList||[];n&&void0!==n.tags&&(s=n.tags),e.isString(s)&&(s=e.compact(s.split(/[\s,]/)));varl=n&&n.published===!1,c=n&&n.date;i.uploadBlogger(t.blogUrl,t.blogId,t.postId,s,l,c,r,o,function(e,n,i){returne?voida(e):(t.blogId=n,t.postId=i,voida())})},r.newPublishAttributes=function(e){varn={},i=t.getInputTextValue("#input-publish-blogger-url",e);returnvoid0!==i&&(n.blogUrl=t.checkUrl(i)),n.postId=t.getInputTextValue("#input-publish-postid"),e.isPropagationStopped()?void0:n},r}),define("providers/bloggerPageProvider",["undersc