/*! * Cross-Browser Split 1.1.1 * Copyright 2007-2012 Steven Levithan * Available under the MIT License * ECMAScript compliant, uniform cross-browser split method */ ;var split;split=split||function(b){var d=String.prototype.split,c=/()??/.exec("")[1]===b,a;a=function(m,j,i){if(Object.prototype.toString.call(j)!=="[object RegExp]"){return d.call(m,j,i)}var g=[],h=(j.ignoreCase?"i":"")+(j.multiline?"m":"")+(j.extended?"x":"")+(j.sticky?"y":""),e=0,j=new RegExp(j.source,h+"g"),f,k,l,n;m+="";if(!c){f=new RegExp("^"+j.source+"$(?!\\s)",h)}i=i===b?-1>>>0:i>>>0;while(k=j.exec(m)){l=k.index+k[0].length;if(l>e){g.push(m.slice(e,k.index));if(!c&&k.length>1){k[0].replace(f,function(){for(var o=1;o1&&k.index=i){break}}if(j.lastIndex===k.index){j.lastIndex++}}if(e===m.length){if(n||!j.test("")){g.push("")}}else{g.push(m.slice(e))}return g.length>i?g.slice(0,i):g};String.prototype.split=function(f,e){return a(this,f,e)};return a}();