0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00
Bootstrap/docs-assets/js/customize.js

11 lines
132 KiB
JavaScript
Raw Normal View History

/*!
* Bootstrap v3.0.3 (http://getbootstrap.com)
* Copyright 2013 Twitter, Inc.
* Licensed under http://www.apache.org/licenses/LICENSE-2.0
*/
!function(a){function b(b){return a.less[b.split("/")[1]]}function c(){"development"===p.env?(p.optimization=0,p.watchTimer=setInterval(function(){p.watchMode&&e(function(a,b,c,d,e){b&&j(b.toCSS(),d,e.lastModified)})},p.poll)):p.optimization=3}function d(){for(var a=document.getElementsByTagName("style"),b=0;b<a.length;b++)a[b].type.match(x)&&new p.Parser({filename:document.location.href.replace(/#.*$/,""),dumpLineNumbers:p.dumpLineNumbers}).parse(a[b].innerHTML||"",function(c,d){var e=d.toCSS(),f=a[b];f.type="text/css",f.styleSheet?f.styleSheet.cssText=e:f.innerHTML=e})}function e(a,b){for(var c=0;c<p.sheets.length;c++)h(p.sheets[c],a,b,p.sheets.length-(c+1))}function f(a,b){var c,d,e,f,h=g(a),i=g(b),j="";if(h.hostPart!==i.hostPart)return"";for(d=Math.max(i.directories.length,h.directories.length),c=0;d>c&&i.directories[c]===h.directories[c];c++);for(f=i.directories.slice(c),e=h.directories.slice(c),c=0;c<f.length-1;c++)j+="../";for(c=0;c<e.length-1;c++)j+=e[c]+"/";return j}function g(a,b){var c,d,e=/^((?:[a-z-]+:)?\/\/(?:[^\/\?#]*\/)|([\/\\]))?((?:[^\/\\\?#]*[\/\\])*)([^\/\\\?#]*)([#\?].*)?$/,f=a.match(e),g={},h=[];if(!f)throw new Error("Could not parse sheet href - '"+a+"'");if(!f[1]||f[2]){if(d=b.match(e),!d)throw new Error("Could not parse page url - '"+b+"'");f[1]=d[1],f[2]||(f[3]=d[3]+f[3])}if(f[3])for(h=f[3].replace("\\","/").split("/"),c=0;c<h.length;c++)".."===h[c]&&c>0&&(h.splice(c-1,2),c-=2);return g.hostPart=f[1],g.directories=h,g.path=f[1]+h.join("/"),g.fileUrl=g.path+(f[4]||""),g.url=g.fileUrl+(f[5]||""),g}function h(b,c,d,e){var h,l=b.contents||{},n=b.files||{},q=g(b.href,a.location.href),r=q.url,s=u&&u.getItem(r),t=u&&u.getItem(r+":timestamp"),v={css:s,timestamp:t};h=p.relativeUrls?p.rootpath?b.entryPath?g(p.rootpath+f(q.path,b.entryPath)).path:p.rootpath:q.path:p.rootpath?p.rootpath:b.entryPath?b.entryPath:q.path,k(r,b.type,function(a,f){if(z+=a.replace(/@import .+?;/gi,""),!d&&v&&f&&new Date(f).valueOf()===new Date(v.timestamp).valueOf())j(v.css,b),c(null,null,a,b,{local:!0,remaining:e},r);else try{l[r]=a,new p.Parser({optimization:p.optimization,paths:[q.path],entryPath:b.entryPath||q.path,mime:b.type,filename:r,rootpath:h,relativeUrls:b.relativeUrls,contents:l,files:n,dumpLineNumbers:p.dumpLineNumbers}).parse(a,function(d,g){if(d)return o(d,r);try{c(d,g,a,b,{local:!1,lastModified:f,remaining:e},r),m(document.getElementById("less-error-message:"+i(r)))}catch(d){o(d,r)}})}catch(g){o(g,r)}},function(a,b){throw new Error("Couldn't load "+b+" ("+a+")")})}function i(a){return a.replace(/^[a-z]+:\/\/?[^\/]+/,"").replace(/^\//,"").replace(/\.[a-zA-Z]+$/,"").replace(/[^\.\w-]+/g,"-").replace(/\./g,":")}function j(a,b,c){var d,e=b.href||"",f="less:"+(b.title||i(e));if(null===(d=document.getElementById(f))){d=document.createElement("style"),d.type="text/css",b.media&&(d.media=b.media),d.id=f;var g=b&&b.nextSibling||null;(g||document.getElementsByTagName("head")[0]).parentNode.insertBefore(d,g)}if(d.styleSheet)try{d.styleSheet.cssText=a}catch(h){throw new Error("Couldn't reassign styleSheet.cssText.")}else(function(a){d.childNodes.length>0?d.firstChild.nodeValue!==a.nodeValue&&d.replaceChild(a,d.firstChild):d.appendChild(a)})(document.createTextNode(a));if(c&&u){n("saving "+e+" to cache.");try{u.setItem(e,a),u.setItem(e+":timestamp",c)}catch(h){n("failed to save")}}}function k(a,b,c,d){function e(b,c,d){b.status>=200&&b.status<300?c(b.responseText,b.getResponseHeader("Last-Modified")):"function"==typeof d&&d(b.status,a)}var f=l(),g=r?p.fileAsync:p.async;"function"==typeof f.overrideMimeType&&f.overrideMimeType("text/css"),f.open("GET",a,g),f.setRequestHeader("Accept",b||"text/x-less, text/css; q=0.9, */*; q=0.5"),f.send(null),r&&!p.fileAsync?0===f.status||f.status>=200&&f.status<300?c(f.responseText):d(f.status,a):g?f.onreadystatechange=function(){4==f.readyState&&e(f,c,d)}:e(f,c,d)}function l(){if(a.XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(b){return n("browser doesn't support AJAX."),null}}function m(a){return a&&a.parentNode.removeChild(a)}function n(a)
}(b("./tree")),function(a){a.Alpha=function(a){this.value=a},a.Alpha.prototype={toCSS:function(){return"alpha(opacity="+(this.value.toCSS?this.value.toCSS():this.value)+")"},eval:function(a){return this.value.eval&&(this.value=this.value.eval(a)),this}}}(b("../tree")),function(a){a.Anonymous=function(a){this.value=a.value||a},a.Anonymous.prototype={toCSS:function(){return this.value},eval:function(){return this},compare:function(a){if(!a.toCSS)return-1;var b=this.toCSS(),c=a.toCSS();return b===c?0:c>b?-1:1}}}(b("../tree")),function(a){a.Assignment=function(a,b){this.key=a,this.value=b},a.Assignment.prototype={toCSS:function(){return this.key+"="+(this.value.toCSS?this.value.toCSS():this.value)},eval:function(b){return this.value.eval?new a.Assignment(this.key,this.value.eval(b)):this}}}(b("../tree")),function(a){a.Call=function(a,b,c,d){this.name=a,this.args=b,this.index=c,this.filename=d},a.Call.prototype={eval:function(b){var c,d=this.args.map(function(a){return a.eval(b)});if(this.name in a.functions)try{if(c=a.functions[this.name].apply(a.functions,d),null!=c)return c}catch(e){throw{type:e.type||"Runtime",message:"error evaluating function `"+this.name+"`"+(e.message?": "+e.message:""),index:this.index,filename:this.filename}}return new a.Anonymous(this.name+"("+d.map(function(a){return a.toCSS(b)}).join(", ")+")")},toCSS:function(a){return this.eval(a).toCSS()}}}(b("../tree")),function(a){a.Color=function(a,b){this.rgb=Array.isArray(a)?a:6==a.length?a.match(/.{2}/g).map(function(a){return parseInt(a,16)}):a.split("").map(function(a){return parseInt(a+a,16)}),this.alpha="number"==typeof b?b:1},a.Color.prototype={eval:function(){return this},toCSS:function(){return this.alpha<1?"rgba("+this.rgb.map(function(a){return Math.round(a)}).concat(this.alpha).join(", ")+")":"#"+this.rgb.map(function(a){return a=Math.round(a),a=(a>255?255:0>a?0:a).toString(16),1===a.length?"0"+a:a}).join("")},operate:function(b,c){var d=[];c instanceof a.Color||(c=c.toColor());for(var e=0;3>e;e++)d[e]=a.operate(b,this.rgb[e],c.rgb[e]);return new a.Color(d,this.alpha+c.alpha)},toHSL:function(){var a,b,c=this.rgb[0]/255,d=this.rgb[1]/255,e=this.rgb[2]/255,f=this.alpha,g=Math.max(c,d,e),h=Math.min(c,d,e),i=(g+h)/2,j=g-h;if(g===h)a=b=0;else{switch(b=i>.5?j/(2-g-h):j/(g+h),g){case c:a=(d-e)/j+(e>d?6:0);break;case d:a=(e-c)/j+2;break;case e:a=(c-d)/j+4}a/=6}return{h:360*a,s:b,l:i,a:f}},toARGB:function(){var a=[Math.round(255*this.alpha)].concat(this.rgb);return"#"+a.map(function(a){return a=Math.round(a),a=(a>255?255:0>a?0:a).toString(16),1===a.length?"0"+a:a}).join("")},compare:function(a){return a.rgb?a.rgb[0]===this.rgb[0]&&a.rgb[1]===this.rgb[1]&&a.rgb[2]===this.rgb[2]&&a.alpha===this.alpha?0:-1:-1}}}(b("../tree")),function(a){a.Comment=function(a,b){this.value=a,this.silent=!!b},a.Comment.prototype={toCSS:function(a){return a.compress?"":this.value},eval:function(){return this}}}(b("../tree")),function(a){a.Condition=function(a,b,c,d,e){this.op=a.trim(),this.lvalue=b,this.rvalue=c,this.index=d,this.negate=e},a.Condition.prototype.eval=function(a){var b,c=this.lvalue.eval(a),d=this.rvalue.eval(a),e=this.index,b=function(a){switch(a){case"and":return c&&d;case"or":return c||d;default:if(c.compare)b=c.compare(d);else{if(!d.compare)throw{type:"Type",message:"Unable to perform comparison",index:e};b=d.compare(c)}switch(b){case-1:return"<"===a||"=<"===a;case 0:return"="===a||">="===a||"=<"===a;case 1:return">"===a||">="===a}}}(this.op);return this.negate?!b:b}}(b("../tree")),function(a){a.Dimension=function(a,b){this.value=parseFloat(a),this.unit=b||null},a.Dimension.prototype={eval:function(){return this},toColor:function(){return new a.Color([this.value,this.value,this.value])},toCSS:function(){var a=this.value+this.unit;return a},operate:function(b,c){return new a.Dimension(a.operate(b,this.value,c.value),this.unit||c.unit)},compare:function(b){return b instanceof a.Dimension?b.value>this.value?-1:b.value<this.value?1:b.unit&&this.unit!==b.unit?-1:0:-1}}}(b("../tree")),function(a){a.Directive=function(b,c){this.name=b,Array.isArray(c)?(this.rules
e+=r.fileRecord.length+q.compressedSize,f+=r.dirRecord.length,d.push(r)}var s="";switch(s=JSZip.signature.CENTRAL_DIRECTORY_END+"\x00\x00\x00\x00"+g(d.length,2)+g(d.length,2)+g(f,4)+g(e,4)+"\x00\x00",a.type.toLowerCase()){case"uint8array":case"arraybuffer":case"blob":case"nodebuffer":b=new p(e+f+s.length);break;default:b=new o(e+f+s.length)}for(c=0;c<d.length;c++)b.append(d[c].fileRecord),b.append(d[c].compressedObject.compressedContent);for(c=0;c<d.length;c++)b.append(d[c].dirRecord);b.append(s);var t=b.finalize();switch(a.type.toLowerCase()){case"uint8array":case"arraybuffer":case"nodebuffer":return JSZip.utils.transformTo(a.type.toLowerCase(),t);case"blob":return JSZip.utils.arrayBuffer2Blob(JSZip.utils.transformTo("arraybuffer",t));case"base64":return a.base64?JSZip.base64.encode(t):t;default:return t}},crc32:function(a,b){if("undefined"==typeof a||!a.length)return 0;var c="string"!==JSZip.utils.getTypeOf(a),d=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];"undefined"==typeof b&&(b=0);var e=0,f=0,g=0;b=-1^b;for(var h=0,i=a.length;i>h;h++)g=c?a[h]:a.charCodeAt(h),f=255&(b^g),e=d[f],b=b>>>8^e;return-1^b},clone:function(){var a=new JSZip;for(var b in this)"function"!=typeof this[b]&&(a[b]=this[b]);return a},utf8encode:function(b){if(a){var c=a.encode(b);return JSZip.utils.transformTo("string",c)}if(JSZip.support.nodebuffer)return JSZip.utils.transformTo("string",new Buffer(b
k.prototype.toString=function(){return this.message+" (line: "+this.line+", col: "+this.col+", pos: "+this.pos+")\n\n"+this.stack};var K={},L=s(["typeof","void","delete","--","++","!","~","-","+"]),M=s(["--","++"]),N=function(a,b,c){for(;c<a.length;)b[a[c]]=a[c].substr(0,a[c].length-1),c++;return b}(["+=","-=","/=","*=","%=",">>=","<<=",">>>=","|=","^=","&="],{"=":!0},0),O=function(a,b){for(var c=0,d=1;c<a.length;++c,++d)for(var e=a[c],f=0;f<e.length;++f)b[e[f]]=d;return b}([["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]],{}),P=s(["for","do","while","switch"]),Q=s(["atom","num","string","regexp","name"]);o.prototype.toString=function(){return this.name};var R=function(){};b.tokenizer=n,b.parse=p,b.slice=t,b.curry=q,b.member=v,b.array_to_hash=s,b.PRECEDENCE=O,b.KEYWORDS_ATOM=A,b.RESERVED_WORDS=y,b.KEYWORDS=x,b.ATOMIC_START_TOKEN=Q,b.OPERATORS=F,b.is_alphanumeric_char=e,b.set_logger=function(a){R=a}}),e("lib/process",["require","exports","module","./parse-js"],function(a,b){function c(){function a(a){return[this[0],F(a,function(a){var b=[a[0]];return a.length>1&&(b[1]=c(a[1])),b})]}function b(a){var b=[this[0]];return null!=a&&b.push(F(a,c)),b}function c(a){if(null==a)return null;try{h.push(a);var b=a[0],c=g[b];if(c){var d=c.apply(a,a.slice(1));if(null!=d)return d}return c=f[b],c.apply(a,a.slice(1))}finally{h.pop()}}function d(a){if(null==a)return null;try{return h.push(a),f[a[0]].apply(a,a.slice(1))}finally{h.pop()}}function e(a,b){var c,d={};for(c in a)y(a,c)&&(d[c]=g[c],g[c]=a[c]);var e=b();for(c in d)y(d,c)&&(d[c]?g[c]=d[c]:delete g[c]);return e}var f={string:function(a){return[this[0],a]},num:function(a){return[this[0],a]},name:function(a){return[this[0],a]},toplevel:function(a){return[this[0],F(a,c)]},block:b,splice:b,"var":a,"const":a,"try":function(a,b,d){return[this[0],F(a,c),null!=b?[b[0],F(b[1],c)]:null,null!=d?F(d,c):null]},"throw":function(a){return[this[0],c(a)]},"new":function(a,b){return[this[0],c(a),F(b,c)]},"switch":function(a,b){return[this[0],c(a),F(b,function(a){return[a[0]?c(a[0]):null,F(a[1],c)]})]},"break":function(a){return[this[0],a]},"continue":function(a){return[this[0],a]},conditional:function(a,b,d){return[this[0],c(a),c(b),c(d)]},assign:function(a,b,d){return[this[0],a,c(b),c(d)]},dot:function(a){return[this[0],c(a)].concat(A(arguments,1))},call:function(a,b){return[this[0],c(a),F(b,c)]},"function":function(a,b,d){return[this[0],a,b.slice(),F(d,c)]},defun:function(a,b,d){return[this[0],a,b.slice(),F(d,c)]},"if":function(a,b,d){return[this[0],c(a),c(b),c(d)]},"for":function(a,b,d,e){return[this[0],c(a),c(b),c(d),c(e)]},"for-in":function(a,b,d,e){return[this[0],c(a),c(b),c(d),c(e)]},"while":function(a,b){return[this[0],c(a),c(b)]},"do":function(a,b){return[this[0],c(a),c(b)]},"return":function(a){return[this[0],c(a)]},binary:function(a,b,d){return[this[0],a,c(b),c(d)]},"unary-prefix":function(a,b){return[this[0],a,c(b)]},"unary-postfix":function(a,b){return[this[0],a,c(b)]},sub:function(a,b){return[this[0],c(a),c(b)]},object:function(a){return[this[0],F(a,function(a){return 2==a.length?[a[0],c(a[1])]:[a[0],c(a[1]),a[2]]})]},regexp:function(a,b){return[this[0],a,b]},array:function(a){return[this[0],F(a,c)]},stat:function(a){return[this[0],c(a)]},seq:function(){return[this[0]].concat(F(A(arguments),c))},label:function(a,b){return[this[0],a,c(b)]},"with":function(a,b){return[this[0],c(a),c(b)]},atom:function(a){return[this[0],a]}},g={},h=[];return{walk:c,dive:d,with_walkers:e,parent:function(){return h[h.length-2]},stack:function(){return h}}}function d(a){this.names={},this.mangled={},this.rev_mangled={},this.cname=-1,this.refs={},this.uses_with=!1,this.uses_eval=!1,this.parent=a,this.children=[],a?(this.level=a.level+1,a.children.push(this)):this.level=0}function e(a){function b(a){i=new d(i);var b=i.body=a();return b.scope=i,i=i.parent,b}function e(a,b){return i.define(a,b)}function f(a){i.refs[a]=!0}function g(a,c,d){var f="defun"==this[0];return[this[0],f?e(a,"defun"):a,c,b(function(){return f||e(a,"lamb
}function b(a,b){var c=$('<div class="bs-callout bs-callout-danger"> <h4>Attention!</h4> <p>'+a+"</p> </div>");b?c.appendTo(".bs-docs-container"):c.insertAfter(".bs-customize-download")}function c(a){a=a.replace(/[*+?^$.\[\]{}()|\\\/]/g,"\\$&");var b=location.search.match(new RegExp("[?&]"+a+"=([^&]+)(&|$)"));return b&&decodeURIComponent(b[1].replace(/\+/g," "))}function d(b){var c={description:"Bootstrap Customizer Config","public":!0,files:{"config.json":{content:b}}};$.ajax({url:"https://api.github.com/gists",type:"POST",dataType:"json",data:JSON.stringify(c)}).success(function(a){var b=window.location.protocol+"//"+window.location.host;history.replaceState(!1,document.title,b+window.location.pathname+"?id="+a.id)}).error(function(b){a("<strong>Ruh roh!</strong> Could not save gist file, configuration not saved.",b)})}function e(){var a={};$("#less-variables-section input").each(function(){$(this).val()&&(a[$(this).prev().text()]=$(this).val())});var b={vars:a,css:$("#less-section input:checked").map(function(){return this.value}).toArray(),js:$("#plugin-section input:checked").map(function(){return this.value}).toArray()};if(!$.isEmptyObject(b.vars)||b.css.length||b.js.length)return b}function f(){var b=c("id");b&&$.ajax({url:"https://api.github.com/gists/"+b,type:"GET",dataType:"json"}).success(function(a){var b=JSON.parse(a.files["config.json"].content);if(b.js&&$("#plugin-section input").each(function(){$(this).prop("checked",~$.inArray(this.value,b.js))}),b.css&&$("#less-section input").each(function(){$(this).prop("checked",~$.inArray(this.value,b.css))}),b.vars)for(var c in b.vars)$('input[data-var="'+c+'"]').val(b.vars[c])}).error(function(b){a("Error fetching bootstrap config file",b)})}function g(b,c,d,e,f){if(!b&&!c)return a("<strong>Ruh roh!</strong> No Bootstrap files selected.",new Error("no Bootstrap"));var g=new JSZip;if(b){var h=g.folder("css");for(var i in b)h.file(i,b[i])}if(c){var j=g.folder("js");for(var i in c)j.file(i,c[i])}if(d){var k=g.folder("fonts");for(var i in d)k.file(i,d[i],{base64:!0})}e&&g.file("config.json",e);var l=g.generate({type:"blob"});f(l)}function h(a){var b="";for(var c in a)b+=c+": "+a[c]+";\n";return b+"\n\n"}function i(){var a=$('#less-section [value="glyphicons.less"]:checked');return a.length?__fonts:void 0}function j(){for(var a=/^@import \"(.*?)\";$/,b=__less["bootstrap.less"].split("\n"),c=0,d=[];c<b.length;c++){var e=a.exec(b[c]);e&&d.push(e[1])}return d}function k(){var b=!1,c={};if($("#less-section input").each(function(){var a=$(this),d=a.is(":checked");c[a.val()]=d,b=b||d}),!b)return!1;var d={},e={},f="";$("#less-variables-section input").each(function(){$(this).val()&&(e[$(this).prev().text()]=$(this).val())}),$.each(j(),function(a,b){var d=c[b];(d||null==d)&&(f+=__less[b]),"variables.less"===b&&e&&(f+=h(e))}),f=f.replace(/@import[^\n]*/gi,"");try{{new less.Parser({paths:["variables.less","mixins.less"],optimization:0,filename:"bootstrap.css"}).parse(f,function(b,c){return b?a("<strong>Ruh roh!</strong> Could not parse less files.",b):(d={"bootstrap.css":m+c.toCSS(),"bootstrap.min.css":m+c.toCSS({compress:!0}).replace(/\n/g,"")},void 0)})}}catch(g){return a("<strong>Ruh roh!</strong> Could not parse less files.",g)}return d}function l(){var a=$("#plugin-section input:checked");if(!a.length)return!1;var b=a.map(function(){return __js[this.value]}).toArray().join("\n");return{"bootstrap.js":b,"bootstrap.min.js":m+uglify(b)}}var m="/*!\n * Bootstrap v3.0.3\n *\n * Copyright 2013 Twitter, Inc\n * Licensed under the Apache License v2.0\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Designed and built with all the love in the world @twitter by @mdo and @fat.\n */\n\n",n=$("#less-section input"),o=$("#plugin-section input"),p=$("#less-variables-section input");$("#less-section .toggle").on("click",function(a){a.preventDefault(),n.prop("checked",!n.is(":checked"))}),$("#plugin-section .toggle").on("click",function(a){a.preventDefault(),o.prop("checked",!o.is(":checked"))}),$("#less-variables-section .toggle").on("click",function(a){a.preventDefaul