/*! * Legacy browser support */[].map||(Array.prototype.map=function(a,b){for(varc=this,d=c.length,e=newArray(d),f=0;d>f;f++)finc&&(e[f]=a.call(b,c[f],f,c));returne}),[].filter||(Array.prototype.filter=function(a){if(null==this)thrownewTypeError;varb=Object(this),c=b.length>>>0;if("function"!=typeofa)thrownewTypeError;for(vard=[],e=arguments[1],f=0;c>f;f++)if(finb){varg=b[f];a.call(e,g,f,b)&&d.push(g)}returnd}),[].indexOf||(Array.prototype.indexOf=function(a){if(null==this)thrownewTypeError;varb=Object(this),c=b.length>>>0;if(0===c)return-1;vard=0;if(arguments.length>1&&(d=Number(arguments[1]),d!=d?d=0:0!==d&&1/0!=d&&d!=-1/0&&(d=(d>0||-1)*Math.floor(Math.abs(d)))),d>=c)return-1;for(vare=d>=0?d:Math.max(c-Math.abs(d),0);c>e;e++)if(einb&&b[e]===a)returne;return-1});/*! * Cross-Browser Split 1.1.1 * Copyright 2007-2012 Steven Levithan <stevenlevithan.com> * Available under the MIT License * http://blog.stevenlevithan.com/archives/cross-browser-split */varnativeSplit=String.prototype.split,compliantExecNpcg=void0===/()??/.exec("")[1];String.prototype.split=function(a,b){varc=this;if("[object RegExp]"!==Object.prototype.toString.call(a))returnnativeSplit.call(c,a,b);vard,e,f,g,h=[],i=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.extended?"x":"")+(a.sticky?"y":""),j=0;for(a=newRegExp(a.source,i+"g"),c+="",compliantExecNpcg||(d=newRegExp("^"+a.source+"$(?!\\s)",i)),b=void0===b?-1>>>0:b>>>0;(e=a.exec(c))&&(f=e.index+e[0].length,!(f>j&&(h.push(c.slice(j,e.index)),!compliantExecNpcg&&e.length>1&&e[0].replace(d,function(){for(vara=1;a<arguments.length-2;a++)void0===arguments[a]&&(e[a]=void0)}),e.length>1&&e.index<c.length&&Array.prototype.push.apply(h,e.slice(1)),g=e[0].length,j=f,h.length>=b)));)a.lastIndex===e.index&&a.lastIndex++;returnj===c.length?(g||!a.test(""))&&h.push(""):h.push(c.slice(j)),h.length>b?h.slice(0,b):h};