(function(a,b){function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c=0===c})}function U(a){var b=V.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}function bi(a,b){return f.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function bj(a,b){if(b.nodeType!==1||!f.hasData(a))return;var c,d,e,g=f._data(a),h=f._data(b,g),i=g.events;if(i){delete h.handle,h.events={};for(c in i)for(d=0,e=i[c].length;d0){if(c!=="border")for(;e").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}var c=a.document,d=a.navigator,e=a.location,f=function(){function J(){if(e.isReady)return;try{c.documentElement.doScroll("left")}catch(a){setTimeout(J,1);return}finally{}e.ready()}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};return e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if(a==="body"&&!d&&c.body)return this.context=c,this[0]=c.body,this.selector=a,this.length=1,this;if(typeof a=="string"){a.charAt(0)==="<"&&a.charAt(a.length-1)===">"&&a.length>=3?g=[null,a,null]:g=i.exec(a);if(g&&(g[1]||!d)){if(g[1])return d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes),e.merge(this,a);h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}return this.context=c,this.selector=a,this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}return e.isFunction(a)?f.ready(a):(a.selector!==b&&(this.selector=a.selector,this.context=a.context),e.makeArray(a,this))},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();return e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")"),d},each:function(a,b){return e.each(this,a,b)},ready:function(a){return e.bindReady(),A.add(a),this},eq:function(a){return a=+a,a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(A)return;A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}finally{}c.documentElement.doScroll&&b&&J()}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}finally{}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}finally{}return(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c),d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}function m(a){return function(b){e[a]=arguments.length>1?i.call(arguments,0):b,j.notifyWith(k,e)}}var b=i.call(arguments,0),c=0,d=b.length,e=new Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}finally{}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;return j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];if(!u)return;m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
"+""+"
",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
t
",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j)}),b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){return a=a.nodeType?f.cache[a[f.expando]]:a[f.expando],!!a&&!m(a)},data:function(a,c,d,e){if(!f.acceptData(a))return;var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);return g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d),o&&!h[c]?g.events:(k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h,i)},removeData:function(a,b,c){if(!f.acceptData(a))return;var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1))},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;return typeof a!="string"&&(c=a,a="fx",d--),arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){return a=f.propFix[a]||a,this.each(function(){try{this[a]=b,delete this[a]}catch(c){}finally{}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];if(!arguments.length){if(g)return c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()],c&&"get"in c&&(d=c.get(g,"value"))!==b?d:(d=g.value,typeof d=="string"?d.replace(q,""):d==null?"":d);return}return e=f.isFunction(a),this.each(function(d){var g=f(this),h;if(this.nodeType!==1)return;e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h})}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1),c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!a||j===3||j===8||j===2)return;if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}return h&&"set"in h&&i&&(g=h.set(a,d,c))!==b?g:(a.setAttribute(c,""+d),d)}return h&&"get"in h&&i&&(g=h.get(a,c))!==null?g:(g=a.getAttribute(c),g===null?b:g)},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function(a){var b=F.exec(a);return b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)")),b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))return;d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f=="undefined"||!!a&&f.event.triggered===a.type?b:f.event.dispatch.apply(i.elem,arguments)},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function w(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){return i=!1,0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length!==1||w[0]!=="~"&&w[0]!=="+"||!d.parentNode?d:d.parentNode,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);return l&&(m(l,h,e,f),m.uniqueSort(e)),e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);return a[0]=e++,a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");return!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" "),a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);return d||e.push.apply(e,g),!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){return a.unshift(!0),a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){return a=Array.prototype.slice.call(a,0),b?(b.push.apply(b,a),b):a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

";if(b.querySelectorAll&&b.querySelectorAll(".TEST").length===0)return;m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}finally{}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}finally{}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}finally{}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
";if(!a.getElementsByClassName||a.getElementsByClassName("e").length===0)return;a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}return c=c.length>1?f.unique(c):c,this.pushStack(c,"closest",a)},index:function(a){return a?typeof a=="string"?f.inArray(this[0],f(a)):f.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);return L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse()),this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){return c&&(a=":not("+a+")"),b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
","
"]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return f.isFunction(a)?this.each(function(b){f(this).wrapInner(a.call(this,b))}):this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f.clean(arguments);return a.push.apply(a,this.toArray()),this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);return a.push.apply(a,f.clean(arguments)),a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){return a=a==null?!1:a,b=b==null?a:b,this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}return d=e=null,h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!a||a.nodeType===3||a.nodeType===8||!a.style)return;var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b)return k&&"get"in k&&(g=k.get(a,!1,e))!==b?g:j[c];h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}finally{}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;return b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g),c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;return f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d)),f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}finally{}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;return f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}}),this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){return f.isFunction(d)&&(g=g||e,e=d,d=b),f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){return b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b),a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s===2)return;s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}finally{}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){return s||(d.mimeType=a),this},abort:function(a){return a=a||"abort",p&&p.abort(a),w(0,a),this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(!d.beforeSend||d.beforeSend.call(e,v,d)!==!1&&s!==2){for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}finally{}}return v}return v.abort(),!1},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";return b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){return g||f.error(h+" was not called"),g[0]},b.dataTypes[0]="json","script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){return f.globalEval(a),a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}finally{}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}finally{}try{k=h.statusText}catch(o){k=""}finally{}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}finally{}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}return i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();return c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0,{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a))return i=a.document,j=i.documentElement[d],f.support.boxModel&&j||i.body&&i.body[d]||j;if(a.nodeType===9)return i=a.documentElement,i[d]>=i[e]?i[d]:Math.max(a.body[e],i[e],a.body[g],i[g]);if(h===b)return k=f.css(a,c),l=parseFloat(k),f.isNumeric(l)?l:k;f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&& define("jquery","return f")})(window);var requirejs,require,define,__inflate;(function(a){function i(a,b){var c=b&&b.split("/"),e=d.map,f=e&&e["*"]||{},g,h,i,j,k,l,m;if(a&&a.charAt(0)==="."&&b){c=c.slice(0,c.length-1),a=c.concat(a.split("/"));for(k=0;m=a[k];k++)if(m===".")a.splice(k,1),k-=1;else if(m==="..")if(k!==1||a[2]!==".."&&a[0]!=="..")k>0&&(a.splice(k-1,2),k-=2);else return!0;a=a.join("/")}if((c||f)&&e){g=a.split("/");for(k=g.length;k>0;k-=1){h=g.slice(0,k).join("/");if(c)for(l=c.length;l>0;l-=1){i=e[c.slice(0,l).join("/")];if(i){i=i[h];if(i){j=i;break}}}j=j||f[h];if(j){g.splice(0,k,j),a=g.join("/");break}}}return a}function j(b,c){return function(){return h.apply(a,f.call(arguments,0).concat([b,c]))}}function k(a){return function(b){return i(b,a)}}function l(a){return function(c){b[a]=c}}function m(d){if(c.hasOwnProperty(d)){var f=c[d];delete c[d],e[d]=!0,g.apply(a,f)}if(!b.hasOwnProperty(d))throw new Error("No "+d);return b[d]}function n(a,b){var c,d,e=a.indexOf("!");return e!==-1?(c=i(a.slice(0,e),b),a=a.slice(e+1),d=m(c),d&&d.normalize?a=d.normalize(a,k(b)):a=i(a,b)):a=i(a,b),{f:c?c+"!"+a:a,n:a,p:d}}function o(a){return function(){return d&&d.config&&d.config[a]||{}}}var b={},c={},d={},e={},f=[].slice,g,h;g=function(d,f,g,h){var i=[],k,p,q,r,s,t;h=h||d,typeof g=="string"&&(g=__inflate(d,g));if(typeof g=="function"){f=!f.length&&g.length?["require","exports","module"]:f;for(t=0;t
"),e=d.children()[0];return a("body").append(d),b=e.offsetWidth,d.css("overflow","scroll"),c=e.offsetWidth,b===c&&(c=d[0].clientWidth),d.remove(),b-c},getScrollInfo:function(b){var c=b[0]!==window,d=c?b.css("overflow-x"):"",e=c?b.css("overflow-y"):"",f=d==="auto"||d==="scroll"?a.position.scrollbarWidth():0,g=e==="auto"||e==="scroll"?a.position.scrollbarWidth():0;return{height:b.height()h?j>0&&k<=0?(l=b.left+j+c.collisionWidth-h-g,b.left+=j-l):k>0&&j<=0?b.left=g:j>k?b.left=g+h-c.collisionWidth:b.left=g:j>0?b.left+=j:k>0?b.left-=k:b.left=Math.max(b.left-i,b.left)},top:function(b,c){var d=c.within,e=a(window),f=a.isWindow(c.within[0]),g=f?e.scrollTop():d.offset().top,h=f?e.height():d.outerHeight(),i=b.top-c.collisionPosition.marginTop,j=g-i,k=i+c.collisionHeight-h-g,l,m;c.collisionHeight>h?j>0&&k<=0?(m=b.top+j+c.collisionHeight-h-g,b.top+=j-m):k>0&&j<=0?b.top=g:j>k?b.top=g+h-c.collisionHeight:b.top=g:j>0?b.top+=j:k>0?b.top-=k:b.top=Math.max(b.top-i,b.top)}},flip:{left:function(b,c){if(c.at[0]===h)return;c.elem.removeClass("ui-flipped-left ui-flipped-right");var d=c.within,e=a(window),f=a.isWindow(c.within[0]),g=(f?0:d.offset().left)+d.scrollLeft(),i=f?d.width():d.outerWidth(),j=b.left-c.collisionPosition.marginLeft,k=j-g,l=j+c.collisionWidth-i-g,m=c.my[0]==="left",n=c.my[0]==="left"?-c.elemWidth:c.my[0]==="right"?c.elemWidth:0,o=c.at[0]==="left"?c.targetWidth:-c.targetWidth,p=-2*c.offset[0],q,r;if(k<0){q=b.left+n+o+p+c.collisionWidth-i-g;if(q<0||q0){r=b.left-c.collisionPosition.marginLeft+n+o+p-g;if(r>0||Math.abs(r)0){q=b.top-c.collisionPosition.marginTop+n+o+p-g;if(q>0||Math.abs(q)>>0;if(typeof a!="function")throw new TypeError;var d=arguments[1];for(var e=0;e>>0;if(typeof a!="function")throw new TypeError;var d=[],e=arguments[1];for(var f=0;f>>0;if(typeof a!="function")throw new TypeError;var d=arguments[1];for(var e=0;e>>0;if(c===0)return-1;var d=0;arguments.length>0&&(d=Number(arguments[1]),d!==d?d=0:d!==0&&d!==Infinity&&d!==-Infinity&&(d=(d>0||-1)*Math.floor(Math.abs(d))));if(d>=c)return-1;var e=d>=0?d:Math.max(c-Math.abs(d),0);for(;e>>0;if(c===0)return-1;var d=c;arguments.length>1&&(d=Number(arguments[1]),d!==d?d=0:d!==0&&d!==Infinity&&d!==-Infinity&&(d=(d>0||-1)*Math.floor(Math.abs(d))));var e=d>=0?Math.min(d,c-1):c-Math.abs(d);for(;e>=0;e--)if(e in b&&b[e]===a)return e;return-1}),Array.prototype.map||(Array.prototype.map=function(a){"use strict";if(this===void 0||this===null)throw new TypeError;var b=Object(this),c=b.length>>>0;if(typeof a!="function")throw new TypeError;var d=new Array(c),e=arguments[1];for(var f=0;f>>0;if(typeof a!="function")throw new TypeError;if(c==0&&arguments.length==1)throw new TypeError;var d=0,e;if(arguments.length>=2)e=arguments[1];else do{if(d in b){e=b[d++];break}if(++d>=c)throw new TypeError}while(!0);while(d>>0;if(typeof a!="function")throw new TypeError;if(c===0&&arguments.length===1)throw new TypeError;var d=c-1,e;if(arguments.length>=2)e=arguments[1];else do{if(d in this){e=this[d--];break}if(--d<0)throw new TypeError}while(!0);while(d>=0)d in b&&(e=a.call(undefined,e,b[d],d,b)),d--;return e}),Array.prototype.some||(Array.prototype.some=function(a){"use strict";if(this===void 0||this===null)throw new TypeError;var b=Object(this),c=b.length>>>0;if(typeof a!="function")throw new TypeError;var d=arguments[1];for(var e=0;e9999?"+":"")+("00000"+Math.abs(b)).slice(0<=b&&b<=9999?-4:-6);var c=[b,a(this.getUTCMonth()+1),a(this.getUTCDate())].join("-"),d=[a(this.getUTCHours()),a(this.getUTCMinutes()),a(this.getUTCSeconds())].join(":")+"."+a(this.getUTCMilliseconds(),3);return[c,d].join("T")+"Z"}}()),Date.prototype.toJSON||(Date.prototype.toJSON=Date.prototype.toJSON),Function.prototype.bind||(Function.prototype.bind=function(a){if(typeof this!="function")throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var b=Array.prototype.slice,c=b.call(arguments,1),d=this,e=function(){},f=function(){if(e.prototype&&this instanceof e){var f=d.apply(new e,c.concat(b.call(arguments)));return Object(f)===f?f:d}return d.apply(a,c.concat(b.call(arguments)))};return e.prototype=d.prototype,f.prototype=new e,f}),function(){"use strict";var a=function(a){if(a!==Object(a))throw new TypeError("Object.getPrototypeOf called on non-object")};Object.getPrototypeOf||(typeof "test".__proto__=="object"?Object.getPrototypeOf=function(b){return a(b),b.__proto__}:Object.getPrototypeOf=function(b){return a(b),b.constructor.prototype})}(),Object.keys||(Object.keys=function(){var a=Object.prototype.hasOwnProperty,b=!{toString:null}.propertyIsEnumerable("toString"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=c.length;return function(e){if(typeof e!="object"&&typeof e!="function"||e===null)throw new TypeError("Object.keys called on non-object");var f=[];for(var g in e)a.call(e,g)&&f.push(g);if(b)for(var h=0;h=a)return!1;for(a-=1;0<=a;a--)if(b=n[a],!b.fired&&d.position>=b.position)b.fired=!0,o++,b.method.apply(b.scope,[b.position]);return!0},this._resetOnPosition=function(a){var b,c;b=n.length;if(!b)return!1;for(b-=1;0<=b;b--)if(c=n[b],c.fired&&a<=c.position)c.fired=!1,o--;return!0},q=function(){var a=d._iO,b=a.from,c=a.to,e,f;return f=function(){d.clearOnPosition(c,f),d.stop()},e=function(){null!==c&&!isNaN(c)&&d.onPosition(c,f)},null!==b&&!isNaN(b)&&(a.position=b,a.multiShot=!1,e()),a},l=function(){var a,b=d._iO.onposition;if(b)for(a in b)b.hasOwnProperty(a)&&d.onPosition(parseInt(a,10),b[a])},p=function(){var a,b=d._iO.onposition;if(b)for(a in b)b.hasOwnProperty(a)&&d.clearOnPosition(parseInt(a,10))},k=function(){d.isHTML5&&bf(d)},h=function(){d.isHTML5&&bg(d)},e=function(a){a||(n=[],o=0),m=!1,d._hasTimer=null,d._a=null,d._html5_canplay=!1,d.bytesLoaded=null,d.bytesTotal=null,d.duration=d._iO&&d._iO.duration?d._iO.duration:null,d.durationEstimate=null,d.buffered=[],d.eqData=[],d.eqData.left=[],d.eqData.right=[],d.failures=0,d.isBuffering=!1,d.instanceOptions={},d.instanceCount=0,d.loaded=!1,d.metadata={},d.readyState=0,d.muted=!1,d.paused=!1,d.peakData={left:0,right:0},d.waveformData={left:[],right:[]},d.playState=0,d.position=null,d.id3={}},e(),this._onTimer=function(a){var e,f=!1,g={};if(d._hasTimer||a)return d._a&&(a||(0f.duration?d.duration:f.duration:parseInt(d.bytesTotal/d.bytesLoaded*d.duration,10):d.duration,d.isHTML5||(d.buffered=[{start:0,end:d.duration}]),(3!==d.readyState||d.isHTML5)&&f.whileloading&&f.whileloading.apply(d)},this._whileplaying=function(a,b,c,e,f){var g=d._iO;return isNaN(a)||null===a?!1:(d.position=Math.max(0,a),d._processOnPosition(),!d.isHTML5&&8s&&(i.flashVersion=s=9),i.version=i.versionNumber+(i.html5Only?" (HTML5-only mode)":9===s?" (AS3/Flash 9)":" (AS2/Flash 8)"),8'}if(u&&v)return!1;if(i.html5Only)return I(),i.oMC=k(i.movieID),r(),v=u=!0,!1;var d=b||i.url,e=i.altURL||d,f;f=O();var g,h,j=$(),m,n=null,n=(n=o.getElementsByTagName("html")[0])&&n.dir&&n.dir.match(/rtl/i),a="undefined"==typeof a?i.id:a;I(),i.url=V(bM?d:e),b=i.url,i.wmode=!i.wmode&&i.useHighPerformance?"transparent":i.wmode,null!==i.wmode&&(l.match(/msie 8/i)||!bC&&!i.useHighPerformance)&&navigator.platform.match(/win32|win64/i)&&(i.wmode=null),f={name:a,id:a,src:b,quality:"high",allowScriptAccess:i.allowScriptAccess,bgcolor:i.bgColor,pluginspage:bN+"www.macromedia.com/go/getflashplayer",title:"JS/Flash audio component (SoundManager 2)",type:"application/x-shockwave-flash",wmode:i.wmode,hasPriority:"true"},i.debugFlash&&(f.FlashVars="debug=1"),i.wmode||delete f.wmode;if(bC)d=o.createElement("div"),h=['',c("movie",b),c("AllowScriptAccess",i.allowScriptAccess),c("quality",f.quality),i.wmode?c("wmode",i.wmode):"",c("bgcolor",i.bgColor),c("hasPriority","true"),i.debugFlash?c("FlashVars",f.FlashVars):"",""].join("");else for(g in d=o.createElement("embed"),f)f.hasOwnProperty(g)&&d.setAttribute(g,f[g]);S(),j=$();if(f=O())if(i.oMC=k(i.movieID)||o.createElement("div"),i.oMC.id)m=i.oMC.className,i.oMC.className=(m?m+" ":"movieContainer")+(j?" "+j:""),i.oMC.appendChild(d),bC&&(g=i.oMC.appendChild(o.createElement("div")),g.className="sm2-object-box",g.innerHTML=h),v=!0;else{i.oMC.id=i.movieID,i.oMC.className="movieContainer "+j,g=j=null;if(!i.useFlashBlock)if(i.useHighPerformance)j={position:"fixed",width:"8px",height:"8px",bottom:"0px",left:"0px",overflow:"hidden"};else if(j={position:"absolute",width:"6px",height:"6px",top:"-9999px",left:"-9999px"},n)j.left=Math.abs(parseInt(j.left,10))+"px";bD&&(i.oMC.style.zIndex=1e4);if(!i.debugFlash)for(m in j)j.hasOwnProperty(m)&&(i.oMC.style[m]=j[m]);try{bC||i.oMC.appendChild(d),f.appendChild(i.oMC),bC&&(g=i.oMC.appendChild(o.createElement("div")),g.className="sm2-object-box",g.innerHTML=h),v=!0}catch(p){throw Error(Y("domError")+" \n"+p.toString())}finally{}}return u=!0},K=function(){return i.html5Only?(P(),!1):j?!1:(j=i.getMovie(i.id),j||(W?(bC?i.oMC.innerHTML=X:i.oMC.appendChild(W),W=null,u=!0):P(i.id,i.url),j=i.getMovie(i.id)),"function"==typeof i.oninitmovie&&setTimeout(i.oninitmovie,1),!0)},G=function(){setTimeout(H,1e3)},H=function(){var a,b=!1;if(bd)return!1;bd=!0,bt.remove(m,"load",G);if(bJ&&!bI)return!1;w||(a=i.getMoviePercent(),0a&&(b=!0)),setTimeout(function(){a=i.getMoviePercent();if(b)return bd=!1,m.setTimeout(G,1),!1;!w&&bK&&(null===a?i.useFlashBlock||0===i.flashLoadTimeout?i.useFlashBlock&&Z():U(!0):0!==i.flashLoadTimeout&&U(!0))},i.flashLoadTimeout)},J=function(){return bI||!bJ?(bt.remove(m,"focus",J),!0):(bI=bK=!0,bd=!1,G(),bt.remove(m,"focus",J),!0)},bA=function(){var a,b=[];if(i.useHTML5Audio&&i.hasHTML5)for(a in i.audioFormats)i.audioFormats.hasOwnProperty(a)&&b.push(a+": "+i.html5[a]+(!i.html5[a]&&bw&&i.flash[a]?" (using flash)":i.preferFlash&&i.flash[a]&&bw?" (preferring flash)":i.html5[a]?"":" ("+(i.audioFormats[a].required?"required, ":"")+"and no flash support)"))},z=function(a){if(w)return!1;if(i.html5Only)return w=!0,F(),!0;var b=!0,c;if(!i.useFlashBlock||!i.flashLoadTimeout||i.getMoviePercent())w=!0,x&&(c={type:!bw&&bl?"NO_FLASH":"INIT_TIMEOUT"});if(x||a)i.useFlashBlock&&i.oMC&&(i.oMC.className=$()+" "+(null===i.getMoviePercent()?"swf_timedout":"swf_error")),E({type:"ontimeout",error:c,ignoreInit:!0}),Q(c),b=!1;return x||(i.waitForWindowLoad&&!y?bt.add(m,"load",F):F()),b},q=function(){var a,b=i.setupOptions;for(a in b)b.hasOwnProperty(a)&&("undefined"==typeof i[a]?i[a]=b[a]:i[a]!==b[a]&&(i.setupOptions[a]=i[a]))},r=function(){if(w)return!1;if(i.html5Only)return w||(bt.remove(m,"load",i.beginDelayedInit),i.enabled=!0,z()),!0;K();try{j._externalInterfaceTest(!1),R(!0,i.flashPollingInterval||(i.useHighPerformance?10:50)),i.debugMode||j._disableDebug(),i.enabled=!0,i.html5Only||bt.add(m,"unload",p)}catch(a){return Q({type:"JS_TO_FLASH_EXCEPTION",fatal:!0}),U(!0),z(),!1}finally{}return z(),bt.remove(m,"load",i.beginDelayedInit),!0},L=function(){return N?!1:(N=!0,q(),S(),!bw&&i.hasHTML5&&i.setup({useHTML5Audio:!0,preferFlash:!1}),bs(),i.html5.usingFlash=bm(),bl=i.html5.usingFlash,bA(),!bw&&bl&&i.setup({flashLoadTimeout:1}),o.removeEventListener&&o.removeEventListener("DOMContentLoaded",L,!1),K(),!0)},br=function(){return"complete"===o.readyState&&(L(),o.detachEvent("onreadystatechange",br)),!0},M=function(){y=!0,bt.remove(m,"load",M)},bx(),bt.add(m,"focus",J),bt.add(m,"load",G),bt.add(m,"load",M),o.addEventListener?o.addEventListener("DOMContentLoaded",L,!1):o.attachEvent?o.attachEvent("onreadystatechange",br):Q({type:"NO_DOM2_EVENTS",fatal:!0}),"complete"===o.readyState&&setTimeout(L,100)}var c=null;if("undefined"==typeof SM2_DEFER||!SM2_DEFER)c=new b;a.SoundManager=b,a.soundManager=c}(window),function(a){var b={millisecond:1,sec:1e3,min:60,hour:60,day:24,month:30,year:12},c=["January","February","March","April","May","June","July","August","September","October","November","December"];a.toRelativeTime=function(a){var c=Date.now()-this,d=c>0,e,f=null;a=a&&parseInt(a,10)||1e3,c=Math.abs(c);if(c<=a)return d?"Just now":"Right now";for(e in b)if(b.hasOwnProperty(e)){if(c2;a==null&&(a=[]);if(p&&a.reduce===p)return d&&(b=z.bind(b,d)),e?a.reduce(b,c):a.reduce(b);A(a,function(a,f,g){e?c=b.call(d,c,a,f,g):(c=a,e=!0)});if(!e)throw new TypeError("Reduce of empty array with no initial value");return c},z.reduceRight=z.foldr=function(a,b,c,d){var e=arguments.length>2;a==null&&(a=[]);if(q&&a.reduceRight===q)return d&&(b=z.bind(b,d)),e?a.reduceRight(b,c):a.reduceRight(b);var f=z.toArray(a).reverse();return d&&!e&&(b=z.bind(b,d)),e?z.reduce(f,b,c,d):z.reduce(f,b)},z.find=z.detect=function(a,b,c){var d;return B(a,function(a,e,f){if(b.call(c,a,e,f))return d=a,!0}),d},z.filter=z.select=function(a,b,c){var d=[];return a==null?d:r&&a.filter===r?a.filter(b,c):(A(a,function(a,e,f){b.call(c,a,e,f)&&(d[d.length]=a)}),d)},z.reject=function(a,b,c){var d=[];return a==null?d:(A(a,function(a,e,f){b.call(c,a,e,f)||(d[d.length]=a)}),d)},z.every=z.all=function(a,b,c){var d=!0;return a==null?d:s&&a.every===s?a.every(b,c):(A(a,function(a,f,g){if(!(d=d&&b.call(c,a,f,g)))return e}),!!d)};var B=z.some=z.any=function(a,b,c){b||(b=z.identity);var d=!1;return a==null?d:t&&a.some===t?a.some(b,c):(A(a,function(a,f,g){if(d||(d=b.call(c,a,f,g)))return e}),!!d)};z.include=z.contains=function(a,b){var c=!1;return a==null?c:u&&a.indexOf===u?a.indexOf(b)!=-1:(c=B(a,function(a){return a===b}),c)},z.invoke=function(a,b){var c=j.call(arguments,2);return z.map(a,function(a){return(z.isFunction(b)?b||a:a[b]).apply(a,c)})},z.pluck=function(a,b){return z.map(a,function(a){return a[b]})},z.max=function(a,b,c){if(!b&&z.isArray(a)&&a[0]===+a[0]&&a.length<65535)return Math.max.apply(Math,a);if(!b&&z.isEmpty(a))return-Infinity;var d={computed:-Infinity};return A(a,function(a,e,f){var g=b?b.call(c,a,e,f):a;g>=d.computed&&(d={value:a,computed:g})}),d.value},z.min=function(a,b,c){if(!b&&z.isArray(a)&&a[0]===+a[0]&&a.length<65535)return Math.min.apply(Math,a);if(!b&&z.isEmpty(a))return Infinity;var d={computed:Infinity};return A(a,function(a,e,f){var g=b?b.call(c,a,e,f):a;gd?1:0}),"value")},z.groupBy=function(a,b){var c={},d=z.isFunction(b)?b:function(a){return a[b]};return A(a,function(a,b){var e=d(a,b);(c[e]||(c[e]=[])).push(a)}),c},z.sortedIndex=function(a,b,c){c||(c=z.identity);var d=c(b),e=0,f=a.length;while(e>1;c(a[g])=0})})},z.difference=function(a){var b=z.flatten(j.call(arguments,1),!0);return z.filter(a,function(a){return!z.include(b,a)})},z.zip=function(){var a=j.call(arguments),b=z.max(z.pluck(a,"length")),c=new Array(b);for(var d=0;d=0;c--)b=[a[c].apply(this,b)];return b[0]}},z.after=function(a,b){return a<=0?b():function(){if(--a<1)return b.apply(this,arguments)}},z.keys=x||function(a){if(a!==Object(a))throw new TypeError("Invalid object");var b=[];for(var c in a)z.has(a,c)&&(b[b.length]=c);return b},z.values=function(a){return z.map(a,z.identity)},z.functions=z.methods=function(a){var b=[];for(var c in a)z.isFunction(a[c])&&b.push(c);return b.sort()},z.extend=function(a){return A(j.call(arguments,1),function(b){for(var c in b)a[c]=b[c]}),a},z.pick=function(a){var b={};return A(z.flatten(j.call(arguments,1)),function(c){c in a&&(b[c]=a[c])}),b},z.defaults=function(a){return A(j.call(arguments,1),function(b){for(var c in b)a[c]==null&&(a[c]=b[c])}),a},z.clone=function(a){return z.isObject(a)?z.isArray(a)?a.slice():z.extend({},a):a},z.tap=function(a,b){return b(a),a},z.isEqual=function(a,b){return D(a,b,[])},z.isEmpty=function(a){if(a==null)return!0;if(z.isArray(a)||z.isString(a))return a.length===0;for(var b in a)if(z.has(a,b))return!1;return!0},z.isElement=function(a){return!!a&&a.nodeType==1},z.isArray=w||function(a){return l.call(a)=="[object Array]"},z.isObject=function(a){return a===Object(a)},z.isArguments=function(a){return l.call(a)=="[object Arguments]"},z.isArguments(arguments)||(z.isArguments=function(a){return!!a&&!!z.has(a,"callee")}),z.isFunction=function(a){return l.call(a)=="[object Function]"},z.isString=function(a){return l.call(a)=="[object String]"},z.isNumber=function(a){return l.call(a)=="[object Number]"},z.isFinite=function(a){return z.isNumber(a)&&isFinite(a)},z.isNaN=function(a){return a!==a},z.isBoolean=function(a){return a===!0||a===!1||l.call(a)=="[object Boolean]"},z.isDate=function(a){return l.call(a)=="[object Date]"},z.isRegExp=function(a){return l.call(a)=="[object RegExp]"},z.isNull=function(a){return a===null},z.isUndefined=function(a){return a===void 0},z.has=function(a,b){return m.call(a,b)},z.noConflict=function(){return a._=d,this},z.identity=function(a){return a},z.times=function(a,b,c){for(var d=0;d/g,">").replace(/"/g,""").replace(/\'/g,"'").replace(/\\//g,"/")},z.result=function(a,b){if(a==null)return null;var c=a[b];return z.isFunction(c)?c.call(a):c},z.mixin=function(a){A(z.functions(a),function(b){N(b,z[b]=a[b])})};var E=0;z.uniqueId=function(a){var b=E++;return a?a+b:b},z.templateSettings={evaluate:/<%([\\s\\S]+?)%>/g,interpolate:/<%=([\\s\\S]+?)%>/g,escape:/<%-([\\s\\S]+?)%>/g};var F=/.^/,G={"\\\\":"\\\\","\'":"\'",r:"\\r",n:"\\n",t:"\\t",u2028:"\\u2028",u2029:"\\u2029"};for(var H in G)G[G[H]]=H;var I=/\\\\|\'|\\r|\\n|\\t|\\u2028|\\u2029/g,J=/\\\\(\\\\|\'|r|n|t|u2028|u2029)/g,K=function(a){return a.replace(J,function(a,b){return G[b]})};z.template=function(a,b,c){c=z.defaults(c||{},z.templateSettings);var d="__p+=\'"+a.replace(I,function(a){return"\\\\"+G[a]}).replace(c.escape||F,function(a,b){return"\'+\\n((__t=("+K(b)+"))==null?\'\':_.escape(__t))+\\n\'"}).replace(c.interpolate||F,function(a,b){return"\'+\\n((__t=("+K(b)+"))==null?\'\':__t)+\\n\'"}).replace(c.evaluate||F,function(a,b){return"\';\\n"+K(b)+"\\n__p+=\'"})+"\';\\n";c.variable||(d="with(obj||{}){\\n"+d+"}\\n"),d="var __t,__p=\'\',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,\'\')};\\n"+d+"return __p;\\n";var e=new Function(c.variable||"obj","_",d);if(b)return e(b,z);var f=function(a){return e.call(this,a,z)};return f.source="function("+(c.variable||"obj")+"){\\n"+d+"}",f},z.chain=function(a){return z(a).chain()};var L=function(a){this._wrapped=a};z.prototype=L.prototype;var M=function(a,b){return b?z(a).chain():a},N=function(a,b){L.prototype[a]=function(){var a=j.call(arguments);return k.call(a,this._wrapped),M(b.apply(z,a),this._chain)}};z.mixin(z),A(["pop","push","reverse","shift","sort","splice","unshift"],function(a){var b=f[a];L.prototype[a]=function(){var c=this._wrapped;return b.apply(c,arguments),(a=="shift"||a=="splice")&&c.length===0&&delete c[0],M(c,this._chain)}}),A(["concat","join","slice"],function(a){var b=f[a];L.prototype[a]=function(){return M(b.apply(this._wrapped,arguments),this._chain)}}),L.prototype.chain=function(){return this._chain=!0,this},L.prototype.value=function(){return this._wrapped}})).call(this)'), define("lib/api/api-bridge",'function r(){return(f||(f=a("config"))).get("nowPlaying")}function s(){var b=r(),c=(f||(f=a("config"))).get("playQueue"),d;return b?d=b:c&&(d=c.current()),d}function t(a){var b=r();a&&(b&&b.stop(),a.play(),a.seek(0))}function u(b){var c,d=(f||(f=a("config"))).get("playQueue"),e=s();switch(b){case(i||(i=a("lib/api/getters"))).GET_VOLUME:c=e?e.getVolume():p;break;case(i||(i=a("lib/api/getters"))).GET_POSITION:c=e?e.currentTime():p;break;case(i||(i=a("lib/api/getters"))).GET_DURATION:c=e?e.duration():p;break;case(i||(i=a("lib/api/getters"))).GET_CURRENT_SOUND:c=e?e.toJSON():p;break;case(i||(i=a("lib/api/getters"))).GET_CURRENT_SOUND_INDEX:c=d?d.cursor:-1;break;case(i||(i=a("lib/api/getters"))).GET_SOUNDS:c=d?d.getSounds().map(function(a){return a.toJSON()}):[];break;case(i||(i=a("lib/api/getters"))).IS_PAUSED:c=e?e.isPaused():!1}return c}function v(b,c){var d=(f||(f=a("config"))).get("playQueue"),e=s();if(e)switch(b){case(h||(h=a("lib/api/setters"))).SET_VOLUME:e.setVolume(c);break;case(h||(h=a("lib/api/setters"))).SEEK_TO:e.seek(c);break;case(h||(h=a("lib/api/setters"))).PLAY:e.play();break;case(h||(h=a("lib/api/setters"))).PAUSE:e.pause();break;case(h||(h=a("lib/api/setters"))).TOGGLE:e.toggle()}if(d)switch(b){case(h||(h=a("lib/api/setters"))).NEXT:t(d.next());break;case(h||(h=a("lib/api/setters"))).PREV:t(d.prev());break;case(h||(h=a("lib/api/setters"))).SKIP:t(d.get(c))}}function w(b,c){if(!window.parent.postMessage||window.parent===window)return!1;var d=JSON.stringify({widgetId:(f||(f=a("config"))).get("widget_id"),method:b,value:(e||(e=a("_"))).isUndefined(c)?null:c});window.parent.postMessage(d,"*")}function x(b,c,d){(d||(e||(e=a("_"))).indexOf(q,b)>-1)&&w(b,c)}function y(b){return(e||(e=a("_"))).indexOf((e||(e=a("_"))).values(j),b)>-1}function z(a){y(a)&&q.push(a)}function A(b){y(b)&&(q=(e||(e=a("_"))).without(q,b))}function B(b){var c,d,f;try{c=JSON.parse(b.data)}catch(g){return}finally{}d=c.method;if(!d)return;(e||(e=a("_"))).indexOf(m,d)>-1?w(d,u(d)):(e||(e=a("_"))).indexOf(n,d)>-1?v(d,c.value):(e||(e=a("_"))).indexOf(o,d)>-1&&(f=c.value,f&&(d===k.ADD_LISTENER?z(f):A(f)))}function C(a){var b=a.currentTime();return{loadedProgress:a.loadProgress(),currentPosition:b,relativePosition:a.progress()}}var d,e,f,g,h,i,j=a("lib/api/events").api,k=a("lib/api/events").bridge,l,m=(e||(e=a("_"))).values(i||(i=a("lib/api/getters"))),n=(e||(e=a("_"))).values(h||(h=a("lib/api/setters"))),o=(e||(e=a("_"))).values(k),p,q=[];d=c.exports={start:(e||(e=a("_"))).once(function(){window.addEventListener?window.addEventListener("message",B,!1):window.attachEvent("onmessage",B),(e||(e=a("_"))).each((l||(l=a("lib/api/events-map"))).audio,function(b,c){(g||(g=a("lib/event-bus"))).on(b,function(a){a.sound&&a.sound.isNowPlaying()&&x(c,C(a.sound))})}),(e||(e=a("_"))).each((l||(l=a("lib/api/events-map"))).ui,function(b,c){(g||(g=a("lib/event-bus"))).on(b,function(a,b){b=b&&b.shareButtonType?b:null,x(c,b)})}),w(j.READY)})}'), define("config",'var d,e,f,g,h,i,j=c.exports=new(f||(f=a("lib/store")));(d||(d=a("lib/mixins/observing"))).applyTo(j),h="0f8fdbbaa21a9bd18210986a7dc2d72c",i="https://w.soundcloud.com/player/callback.html",h||window.console.error("Unknown host: %o","http://w.soundcloud.com/player/"),(e||(e=a("_"))).each({app_root:(g||(g=a("lib/url"))).parse("http://w.soundcloud.com/player/").directory||"/",api_host:window.location.protocol+"//api.soundcloud.com/",widget_id:"widget_"+Date.now(),client_id:h,redirect_uri:i,fb_app_id:"19507961798",mixi_api_key:"1403ed11563185e9cff6cfeedf4f2ecf77fa459e",me:null,nowPlaying:null,playQueue:null,oauth_token:null,pageVisible:!0,preferFlashAudio:!0,router:null,appView:null,widgetParams:{},wisHost:"https://wis.sndcdn.com"},function(a,b){j.set(b,a,{silent:!0})}),j.finalize()'), define("lib/mixins/observing",'var d,e,f,g;d=c.exports=new(g||(g=a("lib/mixin")))((e||(e=a("_"))).extend({around:{set:function(a,b,c,d){var e=d&&d.silent,f,g;return e||(g=this.get(b)),f=a(b,c,d),!e&&g!==c&&this.trigger(b,{prev:g,current:c}),f},unset:function(a,b,c){var d=c&&c.silent,e,f;return d||(f=this.get(b)),e=a(b,c),!d&&f!==undefined&&this.trigger(b,{prev:f,current:undefined}),e}},before:{reset:function(a){(!a||!a.silent)&&this.each(function(a,b){this.trigger(b,{prev:this.get(b),current:undefined})},this)}}},(f||(f=a("lib/backbone"))).Events))'), define("lib/backbone",'var d,e,f,g,h,i=(g||(g=a("backbone"))).Model.prototype,j=(g||(g=a("backbone"))).Collection.prototype,k="url";c.exports=g||(g=a("backbone")),(g||(g=a("backbone"))).History.prototype.getFragment=function(a){var b=/\\/*(?:[#?].*)?$/;return function(){var c=a.apply(this,arguments);return c.replace(b,"")}}((g||(g=a("backbone"))).History.prototype.getFragment),(d||(d=a("_"))).extend((g||(g=a("backbone"))).History.prototype,{getFragment:function(a){var b=this.getOptions(a);return b[k]&&(b[k]=b[k].replace(/\\/+$/,"")),b[k]||""},_getParams:function(b){return(e||(e=a("lib/url"))).parse((f||(f=a("lib/utils"))).unescapeHTML(b)).query},getOptions:function(b){var c,f;return c=this._getParams(b||location.search),c[k]=decodeURIComponent(c[k]),f=this._getParams(c[k]),c[k]=(e||(e=a("lib/url"))).parse(c[k]).path,c=(d||(d=a("_"))).extend(c,f),(d||(d=a("_"))).each(c,function(a,b){a==="false"?c[b]=!1:a==="true"?c[b]=!0:b==="start_track"&&(c[b]=parseInt(a,10))}),c}});if(window.history&&window.history.pushState){var l=function(){window.history.replaceState({scrollTop:document.body.scrollTop||document.documentElement.scrollTop},"",window.location.href)};(g||(g=a("backbone"))).History.prototype.navigate=function(a){return function(){return l(),a.apply(this,arguments)}}((g||(g=a("backbone"))).History.prototype.navigate),$(window).on("unload",l)}(function(){function b(b,c){return function(){delete b._requests[c||(c=a("lib/url"))]}}function c(c){return function(e){var f;return e=(d||(d=a("_"))).extend({url:(d||(d=a("_"))).result(this,"url"),jqAjax:!1,saveRequest:!1,dataType:"json"},e),this._requests||(this._requests={}),f=this._requests[e.url],f?(e.success&&f.done(function(a){e.success(this,a)}.bind(this)),e.error&&f.fail(e.error)):(f=this._requests[e.url]=e.jqAjax?$.ajax(e):c.call(this,e),f[e.saveRequest?"fail":"always"](b(this,e.url))),f}}i.fetch=c(i.fetch),j.fetch=c(j.fetch)})(),i.change=function(){var b=0;return function(c){var e;c&&c.force&&c.force.forEach(function(a){this._changed[a]=this.get(a)}.bind(this)),++b;for(e in this._changed)this._changed.hasOwnProperty(e)&&this.trigger("change:"+e,this,this._changed[e],c,b);this.trigger("change",this,c,b),this._previousAttributes=(d||(d=a("_"))).clone(this.attributes),this._changed={}}}(),(g||(g=a("backbone"))).Model.extend=(g||(g=a("backbone"))).Collection.extend=(g||(g=a("backbone"))).View.extend=function(b){return function(){var c=(d||(d=a("_"))).toArray(arguments),e=0,f,g;return f=c.filter(function(b,c){if(b instanceof(h||(h=a("lib/mixin"))))return e=c+1,!0}),g=b.apply(this,c.slice(e)),f.forEach(function(a){a.applyTo(g.prototype)}),g}}((g||(g=a("backbone"))).View.extend),j.add=function(b,c){var e,f,g,h,i,j,k={},l={},m,n;c||(c={}),b=(d||(d=a("_"))).isArray(b)?b.slice():[b];for(e=b.length;e--;){m=!1;if(!(h=b[e]=this._prepareModel(b[e],c)))m=!0;else if(k[i=h.cid]||this._byCid[i]||(j=h.id)!==null&&j!==n&&(l[j]||this._byId[j]))h.release(),m=!0;m?b.splice(e,1):k[i]=l[j]=h}for(e=0,g=b.length;e\\"\\\']/g,e=function(a){return"&#"+a.charCodeAt(0)+";"},f=/(&(lt|gt|quot|apos|amp|#\\d+);|.)/gi,g={lt:"<",gt:">",quot:\'"\',apos:"\'",amp:"&"},h=function(a,b,c){return g[c]||(c?String.fromCharCode(c.substring(1)):b)};c.exports={unescapeHTML:function(a){return(a||"").replace(f,h)},escapeHTML:function(a){return(a||"").replace(d,e)},supplant:function(a,b,c){var d=c?/<([^<>]*)>/g:/\\{([^\\{\\}]*)\\}/g;return(a||"").replace(d,function(a,c){var d=b[c];return typeof d=="string"||typeof d=="number"?d:a})}}'), define("backbone",'((function(){var c=function(){return this}(),d=c.Backbone,e=Array.prototype.slice,f=Array.prototype.splice,g;typeof b!="undefined"?g=b:g=c.Backbone={},g.VERSION="0.9.1";var h=c._;!h&&typeof a!="undefined"&&(h=a("_"));var i=c.jQuery||c.Zepto||c.ender;g.setDomLibrary=function(a){i=a},g.noConflict=function(){return c.Backbone=d,this},g.emulateHTTP=!1,g.emulateJSON=!1,g.Events={on:function(a,b,c){if(b===i.noop)return this;var d;a=a.split(/\\s+/);var e=this._callbacks||(this._callbacks={});while(d=a.shift()){var f=e[d]||(e[d]={}),g=f.tail||(f.tail=f.next={});g.callback=b,g.context=c,f.tail=g.next={}}return this},off:function(a,b,c){if(b===i.noop)return this;var d,e,f;if(!a)delete this._callbacks;else if(e=this._callbacks){a=a.split(/\\s+/);while(d=a.shift()){f=e[d],delete e[d];if(!b||!f)continue;while((f=f.next)&&f.next)if(f.callback!==b||!!c&&f.context!==c)this.on(d,f.callback,f.context);else continue}}return this},trigger:function(a){var b,c,d,f,g,h,i;if(!(d=this._callbacks))return this;h=d.all,(a=a.split(/\\s+/)).push(null);while(b=a.shift()){h&&a.push({next:h.next,tail:h.tail,event:b});if(!(c=d[b]))continue;a.push({next:c.next,tail:c.tail})}i=e.call(arguments,1);while(c=a.pop()){f=c.tail,g=c.event?[c.event].concat(i):i;while((c=c.next)!==f)c.callback.apply(c.context||this,g)}return this},one:function(a,b,c){var d=this,e,f=function(a){var e=function(){d.off(a,e,c),b.apply(this,arguments)};return e};a=a.split(/\\s+/);while(e=a.shift())d.on(e,f(e),c);return this}},g.Events.bind=g.Events.on,g.Events.unbind=g.Events.off,g.Model=function(a,b){var c;a||(a={}),b&&b.parse&&(a=this.parse(a));if(c=w(this,"defaults"))a=h.extend({},c,a);b&&b.collection&&(this.collection=b.collection),this.attributes={},this._escapedAttributes={},this.cid=h.uniqueId("c");if(!this.set(a,{silent:!0}))throw new Error("Can\'t create an invalid model");delete this._changed,this._previousAttributes=h.clone(this.attributes),this.initialize.apply(this,arguments)},h.extend(g.Model.prototype,g.Events,{idAttribute:"id",initialize:function(){},toJSON:function(){return h.clone(this.attributes)},get:function(a){return this.attributes[a]},escape:function(a){var b;if(b=this._escapedAttributes[a])return b;var c=this.attributes[a];return this._escapedAttributes[a]=h.escape(c==null?"":""+c)},has:function(a){return this.attributes[a]!=null},set:function(a,b,c){var d,e,f;h.isObject(a)||a==null?(d=a,c=b):(d={},d[a]=b),c||(c={});if(!d)return this;d instanceof g.Model&&(d=d.attributes);if(c.unset)for(e in d)d[e]=void 0;if(!this._validate(d,c))return!1;this.idAttribute in d&&(this.id=d[this.idAttribute]);var i=this.attributes,j=this._escapedAttributes,k=this._previousAttributes||{},l=this._setting;this._changed||(this._changed={}),this._setting=!0;for(e in d){f=d[e],h.isEqual(i[e],f)||delete j[e],c.unset?delete i[e]:i[e]=f,this._changing&&!h.isEqual(this._changed[e],f)&&(this.trigger("change:"+e,this,f,c),this._moreChanges=!0),delete this._changed[e];if(!h.isEqual(k[e],f)||h.has(i,e)!=h.has(k,e))this._changed[e]=f}return l||(!c.silent&&this.hasChanged()&&this.change(c),this._setting=!1),this},unset:function(a,b){return(b||(b={})).unset=!0,this.set(a,null,b)},clear:function(a){return(a||(a={})).unset=!0,this.set(h.clone(this.attributes),a)},fetch:function(a){a=a?h.clone(a):{};var b=this,c=a.success;return a.success=function(d,e,f){b.lastFetchTime=Date.now();if(!b.set(b.parse(d,f),a))return!1;c&&c(b,d)},a.error=g.wrapError(a.error,b,a),(this.sync||g.sync).call(this,"read",this,a)},save:function(a,b,c){var d,e;h.isObject(a)||a==null?(d=a,c=b):(d={},d[a]=b),c=c?h.clone(c):{},c.wait&&(e=h.clone(this.attributes));var f=h.extend({},c,{silent:!0});if(d&&!this.set(d,c.wait?f:c))return!1;var i=this,j=c.success;c.success=function(a,b,e){var f=i.parse(a,e);c.wait&&(f=h.extend(d||{},f));if(!i.set(f,c))return!1;j?j(i,a):i.trigger("sync",i,a,c)},c.error=g.wrapError(c.error,i,c);var k=this.isNew()?"create":"update",l=(this.sync||g.sync).call(this,k,this,c);return c.wait&&this.set(e,f),l},destroy:function(a){a=a?h.clone(a):{};var b=this,c=a.success,d=function(){b.trigger("destroy",b,b.collection,a)};if(this.isNew())return d();a.success=function(e){a.wait&&d(),c?c(b,e):b.trigger("sync",b,e,a)},a.error=g.wrapError(a.error,b,a);var e=(this.sync||g.sync).call(this,"delete",this,a);return a.wait||d(),e},url:function(){var a=w(this.collection,"url")||w(this,"urlRoot")||x();return this.isNew()?a:a+(a.charAt(a.length-1)=="/"?"":"/")+encodeURIComponent(this.id)},parse:function(a,b){return a},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return this.id==null},change:function(a){if(this._changing||!this.hasChanged())return this;this._changing=!0,this._moreChanges=!0;for(var b in this._changed)this.trigger("change:"+b,this,this._changed[b],a);while(this._moreChanges)this._moreChanges=!1,this.trigger("change",this,a);return this._previousAttributes=h.clone(this.attributes),delete this._changed,this._changing=!1,this},hasChanged:function(a){return arguments.length?this._changed&&h.has(this._changed,a):!h.isEmpty(this._changed)},changedAttributes:function(a){if(!a)return this.hasChanged()?h.clone(this._changed):!1;var b,c=!1,d=this._previousAttributes;for(var e in a){if(h.isEqual(d[e],b=a[e]))continue;(c||(c={}))[e]=b}return c},previous:function(a){return!arguments.length||!this._previousAttributes?null:this._previousAttributes[a]},previousAttributes:function(){return h.clone(this._previousAttributes)},isValid:function(){return!this.validate(this.attributes)},_validate:function(a,b){if(b.silent||!this.validate)return!0;a=h.extend({},this.attributes,a);var c=this.validate(a,b);return c?(b&&b.error?b.error(this,c,b):this.trigger("error",this,c,b),!1):!0}}),g.Collection=function(a,b){b||(b={}),b.comparator&&(this.comparator=b.comparator),this._reset(),this.initialize.apply(this,arguments),a&&this.reset(a,{silent:!0,parse:b.parse})},h.extend(g.Collection.prototype,g.Events,{model:g.Model,initialize:function(){},toJSON:function(){return this.map(function(a){return a.toJSON()})},add:function(a,b){var c,d,e,g,i,j,k={},l={};b||(b={}),a=h.isArray(a)?a.slice():[a];for(c=0,e=a.length;c\').hide().appendTo("body")[0].contentWindow,this.navigate(b)),this._hasPushState?i(window).bind("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!d?i(window).bind("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=b,p=!0;var e=window.location,f=e.pathname==this.options.root;if(this._wantsHashChange&&this._wantsPushState&&!this._hasPushState&&!f)return this.fragment=this.getFragment(null,!0),window.location.replace(this.options.root+"#"+this.fragment),!0;if(!this.options.silent)return this.loadUrl()},stop:function(){i(window).unbind("popstate",this.checkUrl).unbind("hashchange",this.checkUrl),clearInterval(this._checkUrlInterval),p=!1},route:function(a,b){this.handlers.unshift({route:a,callback:b})},checkUrl:function(a){var b=this.getFragment();b==this.fragment&&this.iframe&&(b=this.getFragment(this.iframe.location.hash));if(b==this.fragment||b==decodeURIComponent(this.fragment))return!1;this.iframe&&this.navigate(b),this.loadUrl()||this.loadUrl(window.location.hash)},loadUrl:function(a){var b=this.fragment=this.getFragment(a),c=h.any(this.handlers,function(a){if(a.route.test(b))return a.callback(b),!0});return c},navigate:function(a,b){if(!p)return!1;if(!b||b===!0)b={trigger:b};var c=(a||"").replace(n,"");if(this.fragment==c||this.fragment==decodeURIComponent(c))return;this._hasPushState?(c.indexOf(this.options.root)!=0&&(c=this.options.root+c),this.fragment=c,window.history[b.replace?"replaceState":"pushState"]({},document.title,c)):this._wantsHashChange?(this.fragment=c,this._updateHash(window.location,c,b.replace),this.iframe&&c!=this.getFragment(this.iframe.location.hash)&&(b.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,c,b.replace))):window.location.assign(this.options.root+a),b.trigger&&this.loadUrl(a)},_updateHash:function(a,b,c){c?a.replace(a.toString().replace(/(javascript:|#).*$/,"")+"#"+b):a.hash=b}}),g.View=function(a){this.cid=h.uniqueId("view"),this._configure(a||{}),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()};var q=/^(\\S+)\\s*(.*)$/,r=["model","collection","el","id","attributes","className","tagName"];h.extend(g.View.prototype,g.Events,{tagName:"div",$:function(a){return this.$el.find(a)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this},make:function(a,b,c){var d=document.createElement(a);return b&&i(d).attr(b),c&&i(d).html(c),d},setElement:function(a,b){return this.$el=i(a),this.el=this.$el[0],b!==!1&&this.delegateEvents(),this},delegateEvents:function(a){if(!a&&!(a=w(this,"events")))return;this.undelegateEvents();for(var b in a){var c=a[b];h.isFunction(c)||(c=this[a[b]]);if(!c)throw new Error(\'Event "\'+a[b]+\'" does not exist\');var d=b.match(q),e=d[1],f=d[2];c=h.bind(c,this),e+=".delegateEvents"+this.cid,f===""?this.$el.bind(e,c):this.$el.delegate(f,e,c)}},undelegateEvents:function(){this.$el.unbind(".delegateEvents"+this.cid)},_configure:function(a){this.options&&(a=h.extend({},this.options,a));for(var b=0,c=r.length;bthis.maxLength&&this.unset(this._keys[0])),this.maxLength&&this._keys.push(a),this._store[a]=b,this},unset:function(a){var b;return this.has(a)&&(--this.length,this._final?this._store[a]=b:(delete this._store[a],this.maxLength&&this._keys.splice(this._keys.indexOf(a),1))),this},reset:function(){return this._store={},this.maxLength&&(this._keys=[]),this._final=!1,this.length=0,this},has:function(a){return this._store.hasOwnProperty(a)},keys:function(){return Object.keys(this._store)},finalize:function(){this._final=!0}}])'), define("lib/event-bus",'var d,e,f,g,h,i,j,k,l;l=new(g||(g=a("lib/persistent-store")))("broadcast"),h=String(Date.now()).substr(-8)*1e3+Math.floor(Math.random()*1e3),l.on("broadcast",function(a){var b=a.current;b&&b.appId!==h&&k.call(d,b)}),d=c.exports=(e||(e=a("_"))).extend({},(f||(f=a("lib/backbone"))).Events,{broadcast:function(a,b){var c,d;return typeof a=="string"?(c=[].slice.call(arguments,1),b=a,a={}):c=[].slice.call(arguments,2),d=j(b,c),l.set("broadcast",d),a.excludeThis||k.call(this,d),this}}),j=function(a,b){return{type:a,timestamp:Date.now(),appId:h,args:b}},k=function(a){this.trigger.apply(this,["broadcast:"+a.type].concat(a.args||[]))}'), define("lib/persistent-store",'var d,e,f,g;g=c.exports=(d||(d=a("lib/store"))).extend(),(e||(e=a("lib/mixins/persistent"))).applyTo(g.prototype),(f||(f=a("lib/mixins/observing"))).applyTo(g.prototype)'), define("lib/mixins/persistent",'function l(a,b){return[h,a,b].join(i)}function m(a){var b=a.storage;if(b)try{return b.setItem(a.keyName,JSON.stringify(a._store)),!0}catch(c){return!1}finally{}}function n(b){var c;return b==="local"&&(g||(g=a("lib/support"))).localStorage?c=window.localStorage:b==="session"&&(g||(g=a("lib/support"))).sessionStorage&&(c=window.sessionStorage),c}function o(a){var b={},c=a.storage;return c&&(b=JSON.parse(c.getItem(a.keyName)||"{}")),b}function p(b){var c,d,f,g,h;h={dontPersist:!0};if(!b.key){(e||(e=a("_"))).each((e||(e=a("_"))).values(k.local).concat((e||(e=a("_"))).values(k.session)),function(a){a.reset(h)});return}j.lastIndex=0,c=j.exec(b.key),c&&(f=c[1],d=c[2],f&&d&&(g=k[f][d],g&&(e||(e=a("_"))).each(o(g),function(a,b){g.set(b,a,h)})))}function q(){if(!(g||(g=a("lib/support"))).localStorage)return;var b=[],c=localStorage.length,d,e;for(d=0;d=this.currentProgress[0].value&&((g||(g=a("lib/event-bus"))).trigger(this.currentProgress[0].name,this.sound.getCurrentSound().toJSON()),this.currentProgress.shift())},onAll:function(a){this.sound.trigger.apply(this.sound,arguments)},onPlay:function(){this.registerPlays&&(this.registerPlay(),this.registerPlays=!1),this.onTimeInterval=setInterval(this.onTime,40),(g||(g=a("lib/event-bus"))).trigger(o.PLAY,this.sound.getCurrentSound().toJSON())},onPause:function(){clearInterval(this.onTimeInterval),delete this.onTimeInterval,(g||(g=a("lib/event-bus"))).trigger(o.PAUSE,this.sound.getCurrentSound().toJSON())},onFinish:function(){this.sound.stop(),this.registerPlays=!0,(g||(g=a("lib/event-bus"))).trigger(o.FINISH,this.sound.getCurrentSound().toJSON())},_initAudioDefer:null,_expirationTimeoutId:null,initAudio:function(){return this._initAudioDefer||(this._initAudioDefer=$.Deferred()),this._initAudioDefer.isResolved()&&this.streamInfo?this._initAudioDefer:((l||(l=a("lib/browser"))).isSafari&&(l||(l=a("lib/browser"))).isMobile||(l||(l=a("lib/browser"))).isUIWebView?z.call(this):this.sound.fetchStreams().done(y.bind(this)).fail(this.resetInitAudio.bind(this)),this._initAudioDefer)},_isObfuscatedStreamUsed:!1,createAudioController:function(b){var c,d;if(this.controller)return;c={id:"audio-"+this.sound.resource_id,url:b.url,autoLoad:!1},b.protocol===t&&((e||(e=a("_"))).extend(c,{rtmp:!0,url:this.getRtmpFilePath(b.url),serverURL:this.getRtmpServerAddress(b.url),duration:this.sound.get("duration")}),this._isObfuscatedStreamUsed=!0),d={onpause:w.PAUSE,onstop:w.PAUSE,whileloading:w.LOADING},(e||(e=a("_"))).each(d,function(a,b){c[b]=x(this,a)},this),c.onfinish=this.audioFinish,this.controller=soundManager.createSound(c)},audioFinish:function(){this._isPlayActionQueued=!1,this.triggerEvent(w.PAUSE,!0),this.triggerEvent(w.FINISH)},choosePreferredStream:function(b){var c={},d=this.streamSettings,f=d.bitrate,g=d.protocols,h=d.extensions,i=r[this.sound.id];return i?i:((e||(e=a("_"))).each(b,function(a,b){var d=b.split("_"),e=d[0],f=d[1],g=d[2];c[e]=c[e]||{},c[e][f]=c[e][f]||{},c[e][f][g]=e===t?this.transformRtmpStreamUrl(a,f):a},this),g.every(function(b){return h.every(function(d){if(c[b]&&c[b][d]){var g=(e||(e=a("_"))).sortBy((e||(e=a("_"))).keys(c[b][d]).map(Number),function(a){return a}),h=f===Infinity,j=f===-Infinity;h||j?f=g[h?"pop":"shift"]():f=g.sort(function(a,b){return Math.abs(b-f)-Math.abs(a-f)}).pop(),i=r[this.sound.id]={url:B(c[b][d][f]),bitrate:f,protocol:b,extension:d}}return!i},this),!i},this),i)},transformRtmpStreamUrl:function(a,b){return a.replace(/([a-z0-9.]+\\?)/i,function(a){return a=a.replace("."+b,""),b+":"+a})},getExpirationTime:function(b){var c=(h||(h=a("lib/url"))).parse(b.url),d;switch(b.protocol){case t:d=Date.now()+v;break;case s:d=parseInt(c.query.Expires,10)*1e3}return d},getRtmpFilePath:function(b){var c=(h||(h=a("lib/url"))).parse(b);return c.file+"?"+$.param(c.query)},getRtmpServerAddress:function(b){var c=(h||(h=a("lib/url"))).parse(b);return b.substr(0,b.indexOf(c.file))},registerPlay:function(){var b=this.sound.getOriginalSound(),c=b.get("playback_count");return b.set("playback_count",c+1),$.ajax({type:"POST",url:(h||(h=a("lib/url"))).stringify({path:["tracks",b.id,"plays"],query:{referer:document.referrer,secret_token:this.sound.get("secret_token")}})}).fail(function(){b.set("playback_count",c)})},toggle:function(){this[this.isPaused()?"play":"pause"]()},play:function(){if(!this.sound.isStreamable())return;this.currentTime()===0&&(this._timingId=(n||(n=a("lib/tracking"))).startTiming(),this.on("time",A,this)),this.triggerEvent(w.PLAY_START),this.initAudio().done(function(){clearTimeout(this._expirationTimeoutId),this.createAudioController(this.streamInfo),this.toggleMute(p.muted),this.setVolume(p.volume),this.controller.play()}.bind(this)),this._isPlayActionQueued=!0,this.triggerEvent(w.PLAY)},pause:function(){this._isPlayActionQueued=!1,this._timingId&&(n||(n=a("lib/tracking"))).clearTiming(this._timingId),this.controller?this.controller.pause():this.triggerEvent(w.PAUSE)},resetInitAudio:function(a){this._initAudioDefer&&(a||!this._initAudioDefer.isResolved())&&(this._initAudioDefer.reject(),this._initAudioDefer=null)},triggerEvent:function(b,c){var d=this.getEvent(b);c||(g||(g=a("lib/event-bus"))).trigger(b,d),this.trigger(b,d)},getEvent:function(a){return{sound:this.sound,type:a}},dispose:function(){this.off(),delete this.controller,delete this.sound},seek:function(a){if(this.controller){var b=this.currentTime(),c;this.controller.setPosition(a),c=function(){this.currentTime()!==b?this.isPlaying()&&this.triggerEvent("seeked"):setTimeout(c,20)}.bind(this),c()}},seekRelative:function(a){this.controller&&this.seek(this.currentTime()+a)},currentTime:function(){return this.controller&&this.controller.position||0},loadProgress:function(){var a=0;return this.controller&&(a=this._isObfuscatedStreamUsed?1:this.controller.bytesLoaded/this.controller.bytesTotal),a},buffered:function(){return this.controller&&this.controller.duration||0},isPaused:function(){return!this.isPlaying()},isPlaying:function(){return this.controller&&this.controller.playState&&!this.controller.paused||this._isPlayActionQueued},_isPlayActionQueued:!1,toggleMute:function(a){this.controller&&(p.muted=a===undefined?!p.muted:!!a,this.controller[p.muted?"mute":"unmute"]())},getVolume:function(){return this.controller?this.controller.volume:p.volume},setVolume:function(a){a=Math.max(0,Math.min(100,a===undefined?1:parseInt(a,10))),p.volume=a,this.controller&&this.controller.setVolume(a)}}]),d.Events=w'), define("lib/math","var d=c.exports={precise:function(a,b){return b=Math.pow(10,b||0),Math.round(a*b)/b}}"), define("lib/experiments",'function p(){if(n)return;var b=(f||(f=a("lib/connect"))).isLoggedIn()?"":"anonymous-";n=new(g||(g=a("lib/persistent-store")))("experiments-"+b+(f||(f=a("lib/connect"))).getUserIdentifier()),n.each(function(a,b){o.hasOwnProperty(b)&&q(b).indexOf(a)>-1?t(b,a):n.unset(b)})}function q(b){var c=[],d=o[b];return d&&(c=(e||(e=a("_"))).pluck(d.groups,"value")),c}function r(a,b){var c=o[b],d=0,e,f;e=c.groups.reduce(function(a,b){return a+(b.ratio||0)},0);for(f=Math.floor(b.length/2);f--;)a*=b.charCodeAt(f*2)/b.charCodeAt(f*2+1);a=Math.floor(a)%e,c.groups.some(function(c){d+=c.ratio||0;if(a0?(this._counts[a]=(this._counts[a]||0)+b,this.onIncrement&&this.onIncrement(this.get(a),a,b)):b<0&&this.decrement(a,-b)),this},decrement:function(a,b){return this.has(a)&&(b=typeof b=="number"?b:1,b>0?(this._counts[a]=(this._counts[a]||1)-b,this.onDecrement&&this.onDecrement(this.get(a),a,b),this._counts[a]<=0&&(this._needsGC=!0,this._autoCleanup&&this.cleanup())):b<0&&this.increment(a,-b)),this},cleanup:function(){var a,b=this.onCleanup;if(this._needsGC){for(a in this._counts)this._counts.hasOwnProperty(a)&&this._counts[a]===0&&(b&&b(this.get(a),a),this.unset(a));this._needsGC=!1}},changeKey:function(a,b){if(a===b)return;var c=this.get(a),d=this.countFor(a);this.unset(a),this.set(b,c),this.increment(b,d-1)}})'), define("config/experiments",'var d=c.exports={use_rtmp_stream:{rolloutId:"use_rtmp_stream",groups:[{value:!1,ratio:50},{value:!0,ratio:50}]}}'), define("lib/flash-widget",'var d,e;d=c.exports={start:function(){var b=\' \',c="//player.soundcloud.com/player.swf"+location.search,d=document.getElementById("widget");b=(e||(e=a("lib/utils"))).supplant(b,{flashPlayerSrc:c}),d.className+=" noBorders fullSize",d.innerHTML=b}}'), define("lib/play-queue",'var d,e,f,g,h={},i,j,k,l;["forEach","each","map","reduce","find","size","first","last","indexOf"].forEach(function(b){h[b]=function(){return(e||(e=a("_")))[b].apply(e||(e=a("_")),[this.getSounds()].concat((e||(e=a("_"))).toArray(arguments)))}}),d=c.exports=Class.extend([h,(e||(e=a("_"))).extend({},(f||(f=a("backbone"))).Events,{cursor:0,source:null,sourceIsCollection:!1,set:function(b,c){this.sourceIsCollection=b instanceof(g||(g=a("lib/collection"))),this.cursor=0,this.source!==b&&(this.source&&l.call(this),this.source=b,k.call(this)),c&&this.setCursor(c)},get:function(a){var b=this.source;return this.sourceIsCollection?(b.soundAt||b.at).call(b,a):b},getSounds:function(){var a=this.source;return this.sourceIsCollection?a.models:a.getSounds()},current:function(){var a=this.get(this.cursor),b;return!a&&this.source&&this.source.getNextSoundIndex&&(b=this.source.getNextSoundIndex(this.cursor+1),b&&(this.cursor=b,a=this.get(this.cursor))),a||null},setCursor:function(a){if(!this.sourceIsCollection)return;typeof a=="number"?this.cursor=Math.max(0,Math.min(this.source.length-1,a)):(this.cursor=0,this.source.any(function(b,c){return this.get(c)===a?(this.cursor=c,!0):!1}.bind(this))),this.cursor===this.length()-1&&this.source.fetch({add:!0})},reset:function(){this.cursor=0,this.source.release(),this.source=null,this.get=$.noop},length:function(){return this.source?this.sourceIsCollection?this.source.length:1:0},next:function(){return this.cursor0?(this.setCursor(this.cursor-1),this.current()):null}})]),k=function(){var b=this.source;b instanceof(g||(g=a("lib/collection")))&&b.on("add",j,this).on("remove",i,this),b.hold()},l=function(){var b=this.source;b instanceof(g||(g=a("lib/collection")))&&b.off("add",j,this).off("remove",i,this),b.release()},j=function(a,b,c){c.index<=this.cursor&&++this.cursor},i=function(a,b,c){this.cursor&&c.index<=this.cursor&&--this.cursor}'), define("lib/collection",'var d,e,f,g,h,i,j={},k,l;d=(e||(e=a("lib/backbone"))).Collection.extend({next_href:null,lastFetchTime:null,model:j,defaults:{offset:0,limit:5,onEmpty:$.noop,secret_token:null},initialize:function(a,b){this.options=b=l(this.constructor,b||{}),this.setup(b),b.onEmpty!==$.noop&&this.on("reset",function(){this.isEmpty()&&b.onEmpty(this)},this)},setup:$.noop,_prepareModel:function(){var b=(e||(e=a("lib/backbone"))).Collection.prototype._prepareModel.apply(this,arguments);return b&&b.hold(this._usageCount()-1),b},_removeReference:function(b){return b.release(this._usageCount()),(e||(e=a("lib/backbone"))).Collection.prototype._removeReference.apply(this,arguments)},fetch:function(b){var c=this.url();return c?this._requests&&this._requests[c]||(e||(e=a("lib/backbone"))).Collection.prototype.fetch.call(this,b).done(function(a){this.next_href=a.next_href||!1}.bind(this)):$.Deferred().done(b&&b.success).resolve({})},bulkFetch:function(a){var b=arguments[1],c=arguments[2],d,e,f;if(!b){this._requests=this._requests||{};if(this._requests.bulk)return this._requests.bulk;this._requests.bulk=b=$.Deferred(),b.always(function(){delete this._requests.bulk}.bind(this)),c=this.length,d=this.options.limit,this.next_href||(this.options.limit=a-this.length),b.always(function(){this.options.limit=d,k.call(this,{limit:d})}.bind(this))}return this.length=this.timeOffset+a)return 1}return this.currentTime()/a},toJSON:function(){var b=(h||(h=a("lib/model"))).prototype.toJSON.apply(this,arguments);return b._playlist={},this.playlist&&(e||(e=a("_"))).each(["id","permalink","permalink_url","secret_token","user_id"],function(a){b._playlist[a]=this.get(a)}.bind(this.playlist)),b}},{Events:m,hashFn:function(a){var b=a.resource_id;return b?typeof b=="object"?[b.playlist_id,b.sound_id].join("_"):b:a.id||null},resolve:function(b,c,d){return(h||(h=a("lib/model")))._resolve(this,[b,c,d],function(a){var d=a.get("user");return d&&a.get("permalink")===c&&d.permalink===b})}})'), define("models/audible-interface",'var d,e,f,g,h,i,j,k,l;l=function(){throw new Error("Abstract method should be implemented in subclass")},d=c.exports=(j||(j=a("lib/model"))).extend({getCurrentSound:l,getSounds:l,getNumSounds:l,getSoundAt:l,getSoundIndex:l,getSoundIndexAt:l,getRelativeTrackLength:l,initAudio:function(){var a=this.getCurrentSound();a&&a.audio.initAudio()},setup:function(){this.on("error",function(b,c,d){(k||(k=a("models/exception"))).raise({fatal:!0,source:b,xhr:c})}),this.on("destroy",this.pause,this)},isNowPlaying:function(){return(f||(f=a("config"))).get("nowPlaying")===this},likesChanged:function(a){this.set({likes_count:Math.max(0,(this.get("likes_count")||0)+(a?1:-1))})},getEmbedCode:function(){var b=[],c=(f||(f=a("config"))).get("widgetParams"),d;return(e||(e=a("_"))).each(c,function(c,d){d in(g||(g=a("config/widget-params")))&&c!==(g||(g=a("config/widget-params")))[d]&&b.push(d)}),d=(e||(e=a("_"))).pick.apply(e||(e=a("_")),[c].concat(b)),(h||(h=a("vendor/embed/embed")))({type:"track",id:this.id,secret_token:this.get("secret_token"),params:d})},getShareURL:function(){return this.get("permalink_url")+(this.get("sharing")==="private"?"/"+this.get("secret_token"):"")},useAsPlayQueue:function(){(f||(f=a("config"))).get("playQueue").set(this)},play:l,pause:l,seek:l,isPlaying:l,isProcessing:l,isEditing:l,loadProgress:l,currentTime:l,toggle:function(){this[this.isPlaying()?"pause":"play"]()},stop:function(){this.seek(0),this.pause()},isPaused:function(){return!this.isPlaying()},seekRelative:function(a){this.seek(this.currentTime()+a)},duration:function(){return this.get("duration")},progress:function(){return this.currentTime()/this.duration()},timecode:function(){return(i||(i=a("lib/helpers/datetime-helper"))).timecode(this.currentTime())},toggleMute:function(a){var b=this.getCurrentSound();b&&b.audio.toggleMute(a)},getVolume:function(){var a=this.getCurrentSound(),b;return a&&(b=a.audio.getVolume()),b},setVolume:function(a){var b=this.getCurrentSound();b&&b.audio.setVolume(a)}})'), define("config/widget-params",'var d=c.exports={auto_advance:!0,auto_play:!1,buying:!0,liking:!0,download:!0,sharing:!0,show_artwork:!0,show_comments:!0,show_playcount:!0,show_user:!0,start_track:0,secret_token:"",single_active:!0,tracking:""}'), define("vendor/embed/embed",'(function(){var a,b,d,e,f,g,h,i,j;i=166,j=450,g={track:"tracks/",playlist:"playlists/",group:"groups/",favorites:"users/favorites/",user:"users/",app:"apps/"},h=\'\',a=function(a){var c={};return a.secret_token&&(a.params=a.params||{},a.params.secret_token=a.secret_token),c.params=f(a.params),c.path=d(a.type,a.id),c.height=b(a.type,a.height),e(h,c)},f=function(a){var b,c,d,e,f,g=[];if(a)for(b in a)if(a.hasOwnProperty(b)){e=a[b];if(e!==null&&e!==f)if(typeof e=="object"){d=e.length;for(c=0;c0&&b.push(c.h),b.push(c.m<10&&c.h>0?"0"+c.m:c.m,c.s<10?"0"+c.s:c.s),b.join("."))}}'), define("lib/view",'var d,e,f,g,h,i,j,k,l,m,n,o;o=c.exports=(d||(d=a("lib/backbone"))).View.extend(g||(g=a("lib/views/mixins/stateful")),{ModelClass:null,requiredAttributes:null,observedAttributes:null,css:null,template:$.noop,LoadingView:null,loadingViewArgs:null,loadingTemplate:function(){return""},element2selector:{},_element2selector_cache:null,defaults:null,disposed:!1,subviews:null,_subviews_keys:null,_lastEventId:null,constructorArguments:null,_whenInsertedDefer:null,_deferreds:null,initialize:function(b){b=l(this.constructor,b||{}),this.constructorArguments=(i||(i=a("_"))).clone(b),b.resource_id&&this.ModelClass?this.model=this.getModel(b.resource_id,b.resource_type):typeof this.collection=="function"&&(this.collection=new this.collection),this._deferreds=[],this.subviews=[],this._subviews_keys=[],this.resetElementCache(),this._setup.call(this,b),this.model?this.setupModelListeners():this.collection&&this.setupCollectionListeners()},_setup:function(){this.setup.apply(this,arguments)},setup:$.noop,_dispose:function(){if(this.disposed)return;this._teardown(),this.dispose(),this.disposed=!0;while(this._deferreds.length)typeof this._deferreds[0]=="number"?clearTimeout(this._deferreds.shift()):this._deferreds[0].reject("viewDisposed");this.off(),this.model&&(this.teardownModelListeners(),this.model.release()),this.collection&&(this.teardownCollectionListeners(),this.collection.release()),this.$el.remove(),delete this.el,delete this.$el,delete this.model,delete this.collection,this.constructorArguments=null},dispose:$.noop,_teardown:function(){this.resetElementCache(),this.disposeSubviews(),this._whenInsertedDefer&&(this._whenInsertedDefer.reject(),this._whenInsertedDefer=null),this.teardown()},teardown:$.noop,disposeSubviews:function(){while(this.subviews.length)this.subviews.pop()._dispose();this.subviews=[],this._subviews_keys=[]},getModel:function(a,b){var c,d,e,f,g;return f={id:a,resource_type:b},e=this.ModelClass.getClass?this.ModelClass.getClass(f):this.ModelClass,c=e.hashFn(f),d=e.instances.get(c),d?d.hold():(g={id:a},b&&(g.resource_type=b),d=new e(g)),d},setupModelListeners:function(a){m.call(this,!0,a)},teardownModelListeners:function(a){m.call(this,!1,a)},setupCollectionListeners:function(a){n.call(this,!0,a)},teardownCollectionListeners:function(a){n.call(this,!1,a)},getRequiredAttributes:function(a){var b=this.requiredAttributes;return a||(a=this.model),b&&!Array.isArray(b)&&(b=b[a.resource_type]),b||[]},getObservedAttributes:function(a){var b=this.observedAttributes,c;return a||(a=this.model),c=this.getRequiredAttributes(a),b&&!Array.isArray(b)&&(b=b[a.resource_type]),b?b.concat(c):c},addDeferred:function(a){return typeof a=="number"?this._deferreds.push(a):a.state()==="pending"&&(a.always(function(){var b=this._deferreds.indexOf(a);b>-1&&this._deferreds.splice(b,1)}.bind(this)),this._deferreds.push(a)),a},addSubview:function(a,b){return this.subviews.push(a),this._subviews_keys.push(b),b&&(this.subviews[b]=a),a},removeSubview:function(a){for(var b=this.subviews.length;b--;)if(this.subviews[b]===a){this._subviews_keys[b]&&delete this.subviews[this._subviews_keys[b]],this.subviews.splice(b,1),this._subviews_keys.splice(b,1);return}},getElement:function(a){var b,c,d;return this._element2selector_cache[a]===b&&(d=this.className.split(" ").shift(),c=this.element2selector[a]||"."+d+"__"+a,this._element2selector_cache[a]=this.$(c)),this._element2selector_cache[a]},resetElementCache:function(){this._element2selector_cache={}},render:function(){var b=this.hasData(),c=this.getTemplate(b),d=this.model||this.collection,e=b||!d?this._getTemplateData():d.toJSON();return c&&((h||(h=a("lib/template"))).render(c.bind(this),e,this.el),(h||(h=a("lib/template"))).subviews(this)),this.css&&(f||(f=a("lib/css"))).insert(this.css,this.colorCustomizable?function(b){var c=(k||(k=a("lib/customization"))).getColorParams();return(i||(i=a("_"))).each(c,function(a,b){c[b]=" "+a+" "}),(j||(j=a("lib/utils"))).supplant(b,c,!0)}:undefined),b?this.renderDecorate():d&&(!c&&this.LoadingView&&this.addSubview(new this.LoadingView((i||(i=a("_"))).result(this,"loadingViewArgs")),"loading").render().$el.appendTo(this.el),this.fetchData(d).fail(this.onFetchFail.bind(this))),this},onFetchFail:$.noop,renderDecorate:$.noop,rerender:function(){this.disposed||(this._teardown(),this.render())},getTemplate:function(a){return a||!this.LoadingView&&!this.loadingTemplate?this.template:this.LoadingView?null:this.loadingTemplate},_getTemplateData:function(){var b={};return this.model?b=this.getModelData():this.collection&&(b=this.getCollectionData()),b._options=(i||(i=a("_"))).clone(this.options),b._params=(e||(e=a("config"))).get("widgetParams"),b=this.getTemplateData(b)||b,b},getTemplateData:$.noop,getCollectionData:function(){return this.collection.toJSON()},getModelData:function(){return this.model.toJSON()},fetchData:function(a){return a.fetch({attrs:this.getObservedAttributes(a)})},hasData:function(a){return a=a||this.model||this.collection,a?a.hasDataForView(this):!0},scrollIntoView:function(b){var c,d=this.$el.offset(),e,f,g,h,j,k,l;b=(i||(i=a("_"))).defaults({},b,{position:"auto"});if(!d)return!1;k=$(".g-main-scroll-area").first(),k.length||(k=$("#content")),g=$(document).scrollTop(),l=k.offset().top,e=g+l,f=g+$(window).height(),h=Math.floor(d.top),j=Math.floor(h+this.$el.height()),c=h>e&&j-1)return;j.push(a),i.innerText+=c?c(a.innerHTML):a.innerHTML,a=i}a.parentNode||(!h&&c&&(a.innerHTML=c(a.innerHTML)),g.appendChild(a))})}}'), define("lib/views/mixins/stateful",'var d,e,f;d=c.exports=new(f||(f=a("lib/mixin")))({states:null,_states:null,toggleState:function(b,c){var d,f;return this.states||(this.states={}),this.states[b]||(this.states[b]=b),this._states=this._states||{},this._states[b]=this._states[b]||!1,c=typeof c!="undefined"?!!c:!this._states[b],this._states[b]===c?this:(this._states[b]=c,d=this.states[b],typeof d=="string"?(f=d,this.$el[c?"addClass":"removeClass"](f)):(e||(e=a("_"))).isFunction(d)?d.call(this,c):d&&d[c?"setup":"teardown"].call(this),this.trigger("state:"+b,c),this)},getState:function(a){return!!this._states&&!!this._states[a]}})'), define("lib/template",'var d,e,f,g,h;(h||(h=a("_"))).each(g||(g=a("lib/template-helpers")),function(b,c){(e||(e=a("vendor/handlebars-runtime"))).registerHelper(c,b)}),d=c.exports={render:function(b,c,d){var e=b(c||{}),f,g,i;return d?((h||(h=a("_"))).isArray(d)?(f=d[0],g=d[1],i=document.createElement(f),g&&$(i).attr(g)):i=d,i.innerHTML=e,i):e},subviews:function(b){(f||(f=a("lib/subview-plugin"))).replacePlaceholders(b)}}'), define("vendor/handlebars-runtime",'var d={};c.exports=d,d.VERSION="1.0.beta.5",d.helpers={},d.partials={},d.registerHelper=function(a,b,c){c&&(b.not=c),this.helpers[a]=b},d.registerPartial=function(a,b){this.partials[a]=b},d.registerHelper("helperMissing",function(a){if(arguments.length===2)return undefined;throw new Error("Could not find property \'"+a+"\'")});var e=Object.prototype.toString,f="[object Function]";d.registerHelper("blockHelperMissing",function(a,b){var c=b.inverse||function(){},d=b.fn,g="",h=e.call(a);h===f&&(a=a.call(this));if(a===!0)return d(this);if(a===!1||a==null)return c(this);if(h==="[object Array]"){if(a.length>0)for(var i=0,j=a.length;i0)for(var f=0,g=a.length;f":">",\'"\':""","\'":"'","`":"`"},b=/&(?!\\w+;)|[<>"\'`]/g,c=/[&<>"\'`]/,e=function(b){return a[b]||"&"};d.Utils={escapeExpression:function(a){return a instanceof d.SafeString?a.toString():a==null||a===!1?"":c.test(a)?a.replace(b,e):a},isEmpty:function(a){return typeof a=="undefined"?!0:a===null?!0:a===!1?!0:Object.prototype.toString.call(a)==="[object Array]"&&a.length===0?!0:!1}}}(),d.VM={template:function(a){var b={escapeExpression:d.Utils.escapeExpression,invokePartial:d.VM.invokePartial,programs:[],program:function(a,b,c){var e=this.programs[a];return c?d.VM.program(b,c):e?e:(e=this.programs[a]=d.VM.program(b),e)},programWithDepth:d.VM.programWithDepth,noop:d.VM.noop};return function(c,e){return e=e||{},a.call(b,d,c,e.helpers,e.partials,e.data)}},programWithDepth:function(a,b,c){var d=Array.prototype.slice.call(arguments,2);return function(c,e){return e=e||{},a.apply(this,[c,e.data||b].concat(d))}},program:function(a,b){return function(c,d){return d=d||{},a(c,d.data||b)}},noop:function(){return""},invokePartial:function(a,b,c,e,f,g){var h={helpers:e,partials:f,data:g};if(a===undefined)throw new d.Exception("The partial "+b+" could not be found");if(a instanceof Function)return a(c,h);if(!d.compile)throw new d.Exception("The partial "+b+" could not be compiled when running in runtime-only mode");return f[b]=d.compile(a),f[b](c,h)}},d.template=d.VM.template'), define("lib/subview-plugin",'function g(b,c){var d=b.getAttribute("data-id"),f=e[d],g,h,i;f.__path?(h=a(f.__path),delete f.__path):(h=f.__class,delete f.__class),delete e[d],f.key&&(i=f.key,delete f.key),g=c.addSubview(new h(f),i),g.render(),b.parentNode.replaceChild(g.el,b)}function h(b,c){var g,h;return typeof b=="string"?(c.hash.__path=b,h=a(b)):(c.hash.__class=b,h=b),c.hash.args&&((d||(d=a("_"))).isFunction(c.hash.args)&&(c.hash.args=c.hash.args(this)),c.hash=(d||(d=a("_"))).extend({},c.hash.args,c.hash)),delete c.hash.args,c.hash.className&&(c.hash.className=[h.prototype.className,c.hash.className].filter(Boolean).join(" ")),g=f++,e[g]=c.hash,\'\'}function i(a){a.$("view").each(function(){g(this,a)})}var d,e={},f=0;b.handlebarHelper=h,b.replacePlaceholders=i'), define("lib/template-helpers",'var d,e,f,g,h;d=c.exports={$debug:function(){return window.console.log.apply(window.console,[].slice.call(arguments,0,arguments.length-1)),""},$image:function(b,c){return new((e||(e=a("vendor/handlebars-runtime"))).SafeString)((g||(g=a("lib/helpers/image-helper"))).markup(b,c.hash))},$timecode:(f||(f=a("lib/helpers/datetime-helper"))).timecode,$view:function(){return new((e||(e=a("vendor/handlebars-runtime"))).SafeString)((h||(h=a("lib/subview-plugin"))).handlebarHelper.apply(this,arguments))}}'), define("lib/helpers/image-helper",'var d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s;i=/default_avatar/,l=/^.*(artworks|avatars)-0*([0-9]+)-[a-z0-9]+-([a-z0-9]+)\\.jpg.*$/i,r=/\\/images\\/default\\/.*?x[0-9]+(?:-[a-z0-9]+)?\\.png$/,j={artworks:{},avatars:{}},h=[[20,"t20x20"],[50,"t50x50"],[120,"t120x120"],[200,"t200x200"]],m=["alt","class","height","src","title","width"],q={cloud:{40:"/player/assets/images/default/cloudx40-72176be9.png",50:"/player/assets/images/default/cloudx50-72176be9.png",80:"/player/assets/images/default/cloudx80-72176be9.png",120:"/player/assets/images/default/cloudx120-72176be9.png",200:"/player/assets/images/default/cloudx200-72176be9.png"},group:{40:"/player/assets/images/default/groupx40-72176be9.png",50:"/player/assets/images/default/groupx50-72176be9.png",80:"/player/assets/images/default/groupx80-72176be9.png",120:"/player/assets/images/default/groupx120-72176be9.png",200:"/player/assets/images/default/groupx200-72176be9.png"},user:{40:"/player/assets/images/default/userx40-72176be9.png",50:"/player/assets/images/default/userx50-72176be9.png",80:"/player/assets/images/default/userx80-72176be9.png",120:"/player/assets/images/default/userx120-72176be9.png",200:"/player/assets/images/default/userx200-72176be9.png"}},d=c.exports={load:function(b){var c=new Image,d=$.Deferred();return(g||(g=a("lib/support"))).corsImg&&(c.crossOrigin=location.host,b+="?xd=true"),$(c).on("load",function(){d.resolve(this)}).on("error",function(){d.reject(this)}),c.src=b,d},markup:function(b,c){return(f||(f=a("_"))).defaults(c,{src:d.urlFrom(b,c.size),width:c.size,height:c.size,alt:d.getAltText(b)}),d.getMarkup(c)},getMarkup:function(b){var c=[],d;return(f||(f=a("_"))).each(b,function(b,d){(f||(f=a("_"))).indexOf(m,d)!==-1&&c.push(d+\'="\'+b+\'"\')}),d=k(b.src),d&&(j[d.type][d.key]=j[d.type][d.key]|Math.pow(2,d.index)),""},getAltText:function(b){return b.username?(e||(e=a("lib/helpers/name-helper"))).fetch(b,!0)+" avatar":(e||(e=a("lib/helpers/name-helper"))).fetch(b)},getPlaceholderUrl:function(b,c){var e,g,i,l,m;i=k(d.setFormat(b,c));if(i){e=i.key;if(j[i.type][e]){g=(f||(f=a("_"))).find(h,function(a,b){return m=b,c<=a[0]});while(m>=0){if(j[i.type][e]&Math.pow(2,m)){l=h[m];break}--m}}if(g&&l===g)return!1;if(l)return d.setFormat(b,l[0])}return null},urlFrom:function(a,b){var c=a&&(a.artwork_url||a.avatar_url||a.user&&a.user.avatar_url)||"";return!c||i.test(c)?p(a.kind,b):b?d.setFormat(c,b):c},setFormat:function(a,b){if(r.test(a))return a.replace(/[0-9]+((?:-[a-z0-9]+)?\\.png)$/,s(b)+"$1");l.lastIndex=0;var c=l.exec(a),d=c[1],e=c[3],f=o(d,b);return f?a.replace(e,f):a},scaleImage:function(a){var b=a.width,c=a.height,d=a.imageData,e=a.scaledWidth,f=a.scaledHeight,g=a.scaledImageData,h=a.bgColor,i=h[0],j=h[1],k=h[2],l=a.upperPartHeight*f,m=f-l,o=e/b,p,q,r,s,t,u,v,w;for(p=0;p>1,h,i;while(f>1,i=(h*e+d)*4+3,a.data[i]===255?f=h+1:g=h;return f},o=function(b,c){var d=(f||(f=a("_"))).find(h,function(a){return a[0]>=c})||(f||(f=a("_"))).last(h);return d[1]==="t20x20"&&b==="artworks"?"tiny":d[1]},p=function(a,b){return(q[a]||q.cloud)[s(b)]},s=function(){var b=Object.keys(q.cloud),c;return b.sort(function(a,b){return a-b}),c=(f||(f=a("_"))).last(b),(f||(f=a("_"))).memoize(function(a){var d,e;for(d=0;e=b[d];++d)if(e>=a)return e;return c})}()'), define("lib/helpers/name-helper",'var d,e,f;d=c.exports={fetch:function(b,c){var d=(e||(e=a("vendor/handlebars-runtime"))).Utils.escapeExpression(b.username||b.title||b.name);return c===!0&&(d=(f||(f=a("lib/helpers/lang-helper"))).possessive(d)),d}}'), define("lib/helpers/lang-helper",'var d;d=c.exports={plural:function(a,b,c){return c=typeof c=="string"?c:b+"s",a===1?b:c},possessive:function(a){return a+"’s"}}'), define("lib/customization",'var d,e,f,g,h,i,j;h={MAIN_COLOR:"#FF6600",MAIN_CONTRAST_COLOR:"#FFFFFF",MAIN_CONTRAST_COLOR2:"#333333",WAVEFORM_BG_COLOR:"#EFEFEF"},i={color:"MAIN_COLOR",waveformbg:"WAVEFORM_BG_COLOR"},d=c.exports={getColorParams:function(){if(!this.getColorParams.__cached){var b=(e||(e=a("_"))).clone(h),c=(f||(f=a("backbone"))).history.getOptions(),d=/^#[a-f0-9]{3}$/i;(e||(e=a("_"))).each(i,function(a,e){var f=c[e];f&&(f[0]!=="#"&&(f="#"+f),d.test(f)&&(f=f.replace(/([a-z0-9])/gi,"$1$1")),b[a]=f)}),(g||(g=a("lib/color"))).match(b.MAIN_COLOR,b.MAIN_CONTRAST_COLOR)||(b.MAIN_CONTRAST_COLOR=b.MAIN_CONTRAST_COLOR2),b.MAIN_COLOR_RGB=(g||(g=a("lib/color"))).hex2rgbString(b.MAIN_COLOR),b.MAIN_COLOR_BURN=(g||(g=a("lib/color"))).burn(b.MAIN_COLOR,.35),b.MAIN_COLOR_LIGHTER=(g||(g=a("lib/color"))).rgb2hex((g||(g=a("lib/color"))).lighten(b.MAIN_COLOR_RGB.split(","),.15)),b.MAIN_COLOR_DARKER=(g||(g=a("lib/color"))).rgb2hex((g||(g=a("lib/color"))).darken(b.MAIN_COLOR_RGB.split(","),.1)),this.getColorParams.__cached=b}return this.getColorParams.__cached},isAlternativeContrastColor:function(){var a=this.getColorParams();return a.MAIN_CONTRAST_COLOR===a.MAIN_CONTRAST_COLOR2}}'), define("lib/color",'var d,e=260,f=100;d=c.exports={getBrightnessDiff:function(a,b){var c=(a[0]*299+a[1]*587+a[2]*114)/1e3,d=(b[0]*299+b[1]*587+b[2]*114)/1e3;return Math.abs(Math.round(c-d))},getColorDiff:function(a,b){var c=Math.max(a[0],b[0])-Math.min(a[0],b[0])+(Math.max(a[1],b[1])-Math.min(a[1],b[1]))+(Math.max(a[2],b[2])-Math.min(a[2],b[2]));return Math.abs(Math.round(c))},hex2rgbString:function(a){var b=d.hex2rgb(a);return b.join(",")},hex2rgb:function(a){a=a.replace("#","");var b=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)];return b},rgb2hex:function(a){var b="#",c,d;for(d=0;d<3;d++)c=a[d].toString(16),b+=c.length<2?"0"+c:c;return b},rgb2hsl:function(a){var b=a[0]/255,c=a[1]/255,d=a[2]/255,e=Math.min(b,c,d),f=Math.max(b,c,d),g=f-e,h,i,j;return f===e?h=0:b===f?h=(c-d)/g:c===f?h=2+(d-b)/g:d===f&&(h=4+(b-c)/g),h=Math.min(h*60,360),h<0&&(h+=360),j=(e+f)/2,f===e?i=0:j<=.5?i=g/(f+e):i=g/(2-f-e),[h,i*100,j*100]},hsl2rgb:function(a){var b=a[0]/360,c=a[1]/100,d=a[2]/100,e,f,g,h,i,j;if(c===0)return i=Math.floor(d*255),[i,i,i];d<.5?f=d*(1+c):f=d+c-d*c,e=2*d-f,h=[0,0,0];for(j=0;j<3;j++)g=b+1/3*-(j-1),g<0&&g++,g>1&&g--,6*g<1?i=e+(f-e)*6*g:2*g<1?i=f:3*g<2?i=e+(f-e)*(2/3-g)*6:i=e,h[j]=Math.floor(i*255);return h},match:function(a,b){var c=this.hex2rgb(a),d=this.hex2rgb(b),g=this.getBrightnessDiff(c,d),h=this.getColorDiff(c,d);return g>=f&&h>=e?!0:!1},darken:function(a,b){var c=d.rgb2hsl(a);return c[2]-=b*100,c[2]=Math.max(0,c[2]),d.hsl2rgb(c)},lighten:function(a,b){var c=d.rgb2hsl(a);return c[2]+=b*100,c[2]=Math.min(100,c[2]),d.hsl2rgb(c)},burn:function(a,b){var c=d.hex2rgb(a),e=[],f;b=b||1;for(f=0;f<3;f++)e[f]=c[f]===255?255:Math.round(c[f]*(1-b));return d.rgb2hex(e)}}'), define("views/widget-container.css",'var d=c.exports=document.createElement("style"),e=".widgetContainer{position:absolute;width:100%;height:100%;overflow:hidden;background:#f5f5f5;border:1px solid #e5e5e5;-webkit-border-radius:2px;-moz-border-radius:2px;-o-border-radius:2px;border-radius:2px}";d.styleSheet?d.styleSheet.cssText=e:d.appendChild(document.createTextNode(e)),e=null'), define("views/widget/multi-sounds",'var d,e,f,g,h,i,j,k;d=c.exports=(g||(g=a("views/widget/widget"))).extend({template:a("views/widget/multi-sounds.tmpl"),css:a("views/widget/multi-sounds.css"),className:"multiSounds",defaults:{resource_id:null,resource_type:null},setup:function(){this.model||(this.ModelClass=(g||(g=a("views/widget/widget"))).modelForResourceType(this.options.resource_type),this.model=this.getModel(this.options.resource_id)),this.collection=(k||(k=a("views/sound/list"))).getSoundsCollection(this.options.resource_id,this.options.resource_type),this.toggleState("detailed",this.isPlaylist()),(h||(h=a("config"))).on("nowPlaying",this.onNowPlayingChange,this)},dispose:function(){(h||(h=a("config"))).off("nowPlaying",this.onNowPlayingChange,this)},getPlayQueueSource:function(){return this.collection},onCollectionReset:function(){if(!this.collection.length){(f||(f=a("models/exception"))).raise({fatal:!0,source:this.collection,message:"This playlist is empty."});return}this.rerender()},onNowPlayingChange:function(){var b=(h||(h=a("config"))).get("nowPlaying"),c=this.subviews.sound;if(c&&c.model===b)return;this.createSoundView(b.id)},createSoundView:function(b){var c=this.subviews.sound;c&&c._dispose(),c=this.addSubview(new(j||(j=a("views/sound/sound")))({resource_id:b,resource_type:"sound"}),"sound"),this.$$("sound").append(c.el),c.render()},isPlaylist:function(){return this.options.resource_type===(i||(i=a("config/resources"))).PLAYLIST},getTemplateData:function(){return(e||(e=a("_"))).extend({is_set:this.isPlaylist()},this.options)}})'), define("views/widget/widget",'var d,e=a("lib/view"),f,g,h,i,j,k,l,m,n=480;d=c.exports=e.extend({getPlayQueueSource:$.noop,createSoundView:$.noop,renderDecorate:function(){this.getPlayQueueSource().fetch().done(this.startWidget.bind(this))},startWidget:function(){var b=(f||(f=a("config"))).get("playQueue"),c=(f||(f=a("config"))).get("widgetParams"),d;if(this.model&&this.model.get("permalink_url")&&(h||(h=a("lib/browser"))).isUIWebView&&document.referrer&&window.innerHeight>n){document.location=this.model.get("permalink_url").replace("http://","http://m.");return}this.getPlayQueueSource().useAsPlayQueue(),c.start_track&&b.setCursor(c.start_track),d=b.current(),c.auto_play&&(!(h||(h=a("lib/browser"))).isSafari||!(h||(h=a("lib/browser"))).isMobile)&&d.play(),this.createSoundView(d.id),(g||(g=a("lib/event-bus"))).trigger("widget:ready")}},{modelForResourceType:function(b){var c;switch(b){case(i||(i=a("config/resources"))).PLAYLIST:c=m||(m=a("models/playlist"));break;case(i||(i=a("config/resources"))).USER_SOUNDS:case(i||(i=a("config/resources"))).USER_FAVORITES:c=k||(k=a("models/user"));break;case(i||(i=a("config/resources"))).GROUP_SOUNDS:c=l||(l=a("models/group"));break;case(i||(i=a("config/resources"))).APP_SOUNDS:c=j||(j=a("models/app"))}return c}})'), define("models/app",'var d,e;d=c.exports=(e||(e=a("lib/model"))).extend({resource_type:"app",baseUrl:function(){return["apps",this.id].join("/")}})'), define("models/group",'var d,e;d=c.exports=(e||(e=a("lib/model"))).extend({resource_type:"group",baseUrl:function(){return["groups",this.id].join("/")}})'), define("models/playlist",'var d,e;d=c.exports=(e||(e=a("lib/model"))).extend({resource_type:"playlist",baseUrl:function(){return"playlists/"+this.id+"/?representation=compact"},isShareable:function(){return this.get("embeddable_by")!=="none"&&this.get("sharing")!=="private"}})'), define("views/sound/sound",'var d,e,f,g,h,i,j,k,l,m,n=a("lib/view"),o,p=$.support.cors,q=a("tracking-events").Track;d=c.exports=n.extend(l||(l=a("lib/views/mixins/timed-comments")),{className:"sound",css:a("views/sound/sound.css"),template:a("views/sound/sound.tmpl"),ModelClass:g||(g=a("models/audible")),requiredAttributes:["permalink"],events:{"click .sound__shareLink":"onShareLinkClick"},setup:function(){var b=(h||(h=a("config"))).get("widgetParams");b&&b.show_artwork&&this.toggleState("artVisible",!0),this.model.on("play",this.onSoundPlay,this).on("finish",this.onSoundFinish,this)},dispose:function(){this.model.off("play",this.onSoundPlay,this).off("finish",this.onSoundFinish,this)},renderDecorate:function(){this.model.isPlaying()&&this.showAd()},onSoundPlay:function(){this.showAd()},onSoundFinish:function(){(h||(h=a("config"))).get("playQueue").last()===this.model&&this.isShareable()&&this.showSharePanel()},onShareLinkClick:function(b){b.preventDefault();var c=this.model;this.showSharePanel([c.resource_type,c.id].join("_")),(o||(o=a("lib/event-bus"))).trigger(q.SHARE_PANEL,this.model.toJSON())},onCurrentCommentChange:function(b){this.commentForm&&this.commentForm.$el.hide(),this.commentView&&this.commentView._dispose(),this.commentView=this.addSubview(new(j||(j=a("views/comment/comment-view")))({resource_id:b})),this.$$("comments").show(),this.$$("comments").append(this.commentView.render().el)},showSharePanel:function(){var b=this.subviews.sharePanel;b||(b=this.addSubview(new(k||(k=a("views/share/share-panel")))({resource_id:this.model.resource_id,onClose:this.toggleState.bind(this,"shareVisible",!1)}),"sharePanel"),this.$$("sharePanel").append(b.render().el)),this.toggleState("shareVisible",!0),(o||(o=a("lib/event-bus"))).trigger((m||(m=a("tracking-events"))).SharePanel.OPENED)},showAd:function(){if(!this.model.hasAd())return;var b=this.subviews.artwork;this.toggleState("adVisible",!0),this._isAdInserted||(this._isAdInserted=!0,b&&(this.removeSubview(b),b._dispose()),(f||(f=a("lib/ads"))).insertAd(this.$$("art"),(f||(f=a("lib/ads"))).providers.EXPO9))},showCommentForm:function(b){return this.commentForm||(this.commentForm=this.addSubview(new(i||(i=a("views/comment/comment-form")))({sound_id:this.model.id})),this.$$("comments").append(this.commentForm.render().el)),this.commentForm.$el.show(),b&&this.commentForm.updateTimestamp(b),this.commentForm},onCurrentTimestamp:function(a){this.commentView&&this.commentView.$el.hide(),p&&this.showCommentForm(a),this.$$("comments").toggle(p)},onActiveTimestamp:function(a){this.commentView&&this.commentView.$el.hide(),p&&this.showCommentForm().updateTimestamp(a).focus()},onInitialState:function(){this.$$("comments").hide(),this.commentForm&&this.commentForm.blur()},getTemplateData:function(b){var c=this.model;return(e||(e=a("_"))).extend(b,{show_ad:c.hasAd(),sc_logo_link:c.isShareable()?b.permalink_url:"http://soundcloud.com/"})}})'), define("lib/ads",'function j(a,b){switch(b){case e.DOUBLE_CLICK:l(a);break;case e.EXPO9:k(a)}}function k(a){m(a,function(a){a.write(\'\'),a.write(\'