'},ClipboardSwf:null,Version:"1.5.1"}};dp.SyntaxHighlighter=dp.sh,dp.sh.Toolbar.Commands={ExpandSource:{label:"+ expand source",check:function(e){return e.collapse},func:function(e,n){e.parentNode.removeChild(e),n.div.className=n.div.className.replace("collapsed","")}},ViewSource:{label:"view plain",func:function(e,n){var t=dp.sh.Utils.FixForBlogger(n.originalCode).replace(/'+t+""),i.document.close()}},CopyToClipboard:{label:"copy to clipboard",check:function(){return window.clipboardData!=null||dp.sh.ClipboardSwf!=null},func:function(e,n){var t=dp.sh.Utils.FixForBlogger(n.originalCode).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&");if(window.clipboardData)window.clipboardData.setData("text",t);else if(dp.sh.ClipboardSwf!=null){var i=n.flashCopier;i==null&&(i=document.createElement("div"),n.flashCopier=i,n.div.appendChild(i)),i.innerHTML=''}alert("The code is in your clipboard now")}},PrintSource:{label:"print",func:function(e,n){var t=document.createElement("IFRAME"),i=null;t.style.cssText="position:absolute;width:0px;height:0px;left:-500px;top:-500px;",document.body.appendChild(t),i=t.contentWindow.document,dp.sh.Utils.CopyStyles(i,window.document),i.write('
'+n.div.innerHTML+"
"),i.close(),t.contentWindow.focus(),t.contentWindow.print(),alert("Printing..."),document.body.removeChild(t)}},About:{label:"?",func:function(e){var n=window.open("","_blank","dialog,width=300,height=150,scrollbars=0"),t=n.document;dp.sh.Utils.CopyStyles(t,window.document),t.write(dp.sh.Strings.AboutDialog.replace("{V}",dp.sh.Version)),t.close(),n.focus()}}},dp.sh.Toolbar.Create=function(e){var n=document.createElement("DIV");n.className="tools";for(var t in dp.sh.Toolbar.Commands){var i=dp.sh.Toolbar.Commands[t];i.check!=null&&!i.check(e)||(n.innerHTML+=``+i.label+"")}return n},dp.sh.Toolbar.Command=function(e,n){for(var t=n;t!=null&&t.className.indexOf("dp-highlighter")==-1;)t=t.parentNode;t!=null&&dp.sh.Toolbar.Commands[e].func(n,t.highlighter)},dp.sh.Utils.CopyStyles=function(e,n){for(var t=n.getElementsByTagName("link"),i=0;i')},dp.sh.Utils.FixForBlogger=function(e){return dp.sh.isBloggerMode==!0?e.replace(/
|<br\s*\/?>/gi,`
`):e},dp.sh.RegexLib={MultiLineCComments:new RegExp("/\\*[\\s\\S]*?\\*/","gm"),SingleLineCComments:new RegExp("//.*$","gm"),SingleLinePerlComments:new RegExp("#.*$","gm"),DoubleQuotedString:new RegExp('"(?:\\.|(\\\\\\")|[^\\""\\n])*"',"g"),SingleQuotedString:new RegExp("'(?:\\.|(\\\\\\')|[^\\''\\n])*'","g")},dp.sh.Match=function(e,n,t){this.value=e,this.index=n,this.length=e.length,this.css=t},dp.sh.Highlighter=function(){this.noGutter=!1,this.addControls=!0,this.collapse=!1,this.tabsToSpaces=!0,this.wrapColumn=80,this.showColumns=!0},dp.sh.Highlighter.SortCallback=function(e,n){return e.indexn.index?1:e.lengthn.length?1:0},dp.sh.Highlighter.prototype.CreateElement=function(e){var n=document.createElement(e);return n.highlighter=this,n},dp.sh.Highlighter.prototype.GetMatches=function(e,n){for(var t=0,i=null;(i=e.exec(this.code))!=null;)this.matches[this.matches.length]=new dp.sh.Match(i[0],i.index,n)},dp.sh.Highlighter.prototype.AddBit=function(e,n){if(!(e==null||e.length==0)){var t=this.CreateElement("SPAN");if(e=e.replace(/ /g," "),e=e.replace(/"),n!=null)if(/br/gi.test(e))for(var i=e.split("
"),d=0;dt.index&&e.index/gi,`
`),n=e.split(`
`);if(this.addControls==!0&&this.bar.appendChild(dp.sh.Toolbar.Create(this)),this.showColumns){for(var t=this.CreateElement("div"),i=this.CreateElement("div"),d=10,s=1;s<=150;)s%d==0?(t.innerHTML+=s,s+=(s+"").length):(t.innerHTML+="·",s++);i.className="columns",i.appendChild(t),this.bar.appendChild(i)}for(var s=0,c=this.firstLine;s0;g++)if(n(a[g]).length!=0){var v=h.exec(a[g]);v!=null&&v.length>0&&(f=Math.min(v[0].length,f))}if(f>0)for(var g=0;g