/*! jQuery v1.7.2 jquery.com | jquery.org/license */ (function(a,b){function c(a){return J.isWindow(a)?a :a.nodeType===9?a.defaultView||a.parentWindow:!1}function d (a){if(!co[a]){var b=G.body,c=J("<"+a+">").appendTo (b),d=c.css("display");c.remove();if(d==="none"||d==="" ){cp||(cp=G.createElement("iframe"),cp.frameBorder= cp.width=cp.height=0),b.appendChild(cp);if(!cq||!cp .createElement)cq=(cp.contentWindow||cp.contentDocument ).document,cq.write((J.support.boxModel?"" :"")+""),cq.close();c=cq.createElement( a),cq.body.appendChild(c),d=J.css(c,"display"),b.removeChild (cp)}co[a]=d}return co[a]}function e(a,b){var c={}; return J.each(cu.concat.apply([],cu.slice(0,b)),function( ){c[this]=a}),c}function f(){cv=b}function g(){return setTimeout (f,0),cv=J.now()}function h(){try{return new a.ActiveXObject ("Microsoft.XMLHTTP")}catch(b){}}function i(){try{return new a.XMLHttpRequest}catch(b){}}function j(a,c){a.dataFilter&& (c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e= {},f,g,h=d.length,i,j=d[0],k,l,m,n,o;for(f=1;f0){if(c!=="border" )for(;e=0===c} )}function z(a){return!a||!a.parentNode||a.parentNode .nodeType===11}function A(){return!0}function B(){return!1 }function C(a,b,c){var d=b+"defer",e=b+"queue",f=b+"mark" ,g=J._data(a,d);g&&(c==="queue"||!J._data(a,e))&&(c==="mark"||! J._data(a,f))&&setTimeout(function(){!J._data(a,e)&&! J._data(a,f)&&(J.removeData(a,d,!0),g.fire())},0)}function D (a){for(var b in a){if(b==="data"&&J.isEmptyObject( a[b]))continue;if(b!=="toJSON")return!1}return!0}function E (a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace (N,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"? null:J.isNumeric(d)?+d:M.test(d)?J.parseJSON(d):d}catch( f){}J.data(a,c,d)}else d=b}return d}function F(a){var b= K[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/ ,i=/\S/,j=/^\s+/,k=/\s+$/,l=/^<(\w+)\s*\/?>(?:<\/\1>)?$/ ,m=/^[\],:{}\s]*$/,n=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g ,o=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g ,p=/(?:^|:|,)(?:\s*\[)+/g,q=/(webkit)[ \/]([\w.]+)/ ,r=/(opera)(?:.*version)?[ \/]([\w.]+)/,s=/(msie) ([\w.]+)/ ,t=/(mozilla)(?:.*? rv:([\w.]+))?/,u=/-([a-z]|[0-9])/ig ,v=/^-ms-/,w=function(a,b){return(b+"").toUpperCase ()},x=H.userAgent,y,z,A,B=Object.prototype.toString ,C=Object.prototype.hasOwnProperty,D=Array.prototype .push,E=Array.prototype.slice,F=String.prototype.trim ,I=Array.prototype.indexOf,J={};return d.fn=d.prototype= {constructor:d,init:function(a,c,e){var f,g,i,j;if(! a)return this;if(a.nodeType)return this.context=this [0]=a,this.length=1,this;if(a==="body"&&!c&&G.body) return this.context=G,this[0]=G.body,this.selector= a,this.length=1,this;if(typeof a=="string"){a.charAt (0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?f= h.exec(a):f=[null,a,null];if(f&&(f[1]||!c)){if(f[1] )return c=c instanceof d?c[0]:c,j=c?c.ownerDocument|| c:G,i=l.exec(a),i?d.isPlainObject(c)?(a=[G.createElement (i[1])],d.fn.attr.call(a,c,!0)):a=[j.createElement( i[1])]:(i=d.buildFragment([f[1]],[j]),a=(i.cacheable? d.clone(i.fragment):i.fragment).childNodes),d.merge (this,a);g=G.getElementById(f[2]);if(g&&g.parentNode ){if(g.id!==f[2])return e.find(a);this.length=1,this [0]=g}return this.context=G,this.selector=a,this}return! c||c.jquery?(c||e).find(a):this.constructor(c).find (a)}return d.isFunction(a)?e.ready(a):(a.selector!== b&&(this.selector=a.selector,this.context=a.context ),d.makeArray(a,this))},selector:"",jquery:"1.7.2", length:0,size:function(){return this.length},toArray :function(){return E.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 e=this.constructor ();return d.isArray(a)?D.apply(e,a):d.merge(e,a),e. prevObject=this,e.context=this.context,b==="find"?e .selector=this.selector+(this.selector?" ":"")+c:b&& (e.selector=this.selector+"."+b+"("+c+")"),e},each: function(a,b){return d.each(this,a,b)},ready:function( a){return d.bindReady(),z.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(E.apply(this,arguments),"slice",E.call(arguments ).join(","))},map:function(a){return this.pushStack (d.map(this,function(b,c){return a.call(b,c,b)}))}, end:function(){return this.prevObject||this.constructor (null)},push:D,sort:[].sort,splice:[].splice},d.fn. init.prototype=d.fn,d.extend=d.fn.extend=function() {var a,c,e,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"&&!d.isFunction(i)&&(i= {}),k===j&&(i=this,--j);for(;j0)return;z.fireWith (G,[d]),d.fn.trigger&&d(G).trigger("ready").off("ready" )}},bindReady:function(){if(!z){z=d.Callbacks("once memory" );if(G.readyState==="complete")return setTimeout(d. ready,1);if(G.addEventListener)G.addEventListener("DOMContentLoaded" ,A,!1),a.addEventListener("load",d.ready,!1);else if( G.attachEvent){G.attachEvent("onreadystatechange",A ),a.attachEvent("onload",d.ready);var b=!1;try{b=a. frameElement==null}catch(e){}G.documentElement.doScroll&& b&&c()}}},isFunction:function(a){return d.type(a)==="function" },isArray:Array.isArray||function(a){return d.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):J[B.call(a)]||"object"},isPlainObject:function( a){if(!a||d.type(a)!=="object"||a.nodeType||d.isWindow (a))return!1;try{if(a.constructor&&!C.call(a,"constructor" )&&!C.call(a.constructor.prototype,"isPrototypeOf") )return!1}catch(c){return!1}var e;for(e in a);return e=== b||C.call(a,e)},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=d.trim(b);if(a.JSON&&a.JSON.parse)return a .JSON.parse(b);if(m.test(b.replace(n,"@").replace(o ,"]").replace(p,"")))return(new Function("return "+ b))();d.error("Invalid JSON: "+b)},parseXML:function( c){if(typeof c!="string"||!c)return null;var e,f;try{ a.DOMParser?(f=new DOMParser,e=f.parseFromString(c,"text/xml" )):(e=new ActiveXObject("Microsoft.XMLDOM"),e.async="false" ,e.loadXML(c))}catch(g){e=b}return(!e||!e.documentElement|| e.getElementsByTagName("parsererror").length)&&d.error ("Invalid XML: "+c),e},noop:function(){},globalEval :function(b){b&&i.test(b)&&(a.execScript||function( b){a.eval.call(a,b)})(b)},camelCase:function(a){return a .replace(v,"ms-").replace(u,w)},nodeName:function(a ,b){return a.nodeName&&a.nodeName.toUpperCase()===b .toUpperCase()},each:function(a,c,e){var f,g=0,h=a. length,i=h===b||d.isFunction(a);if(e){if(i){for(f in a)if(c.apply(a[f],e)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0|| d.isArray(a));if(k)for(;i1?L.call(arguments,0):b,j. notifyWith(k,g)}}function c(a){return function(b){d [a]=arguments.length>1?L.call(arguments,0):b,--h||j .resolveWith(j,d)}}var d=L.call(arguments,0),e=0,f= d.length,g=Array(f),h=f,i=f,j=f<=1&&a&&J.isFunction (a.promise)?a:J.Deferred(),k=j.promise();if(f>1){for( ;e",submitBubbles:!0,changeBubbles :!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent :!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight :!0,pixelMargin:!0},J.boxModel=b.boxModel=G.compatMode==="CSS1Compat" ,g.checked=!0,b.noCloneChecked=g.cloneNode(!0).checked ,e.disabled=!0,b.optDisabled=!f.disabled;try{delete n.test}catch(p){b.deleteExpando=!1}!n.addEventListener&& n.attachEvent&&n.fireEvent&&(n.attachEvent("onclick" ,function(){b.noCloneEvent=!1}),n.cloneNode(!0).fireEvent ("onclick")),g=G.createElement("input"),g.value="t" ,g.setAttribute("type","radio"),b.radioValue=g.value==="t" ,g.setAttribute("checked","checked"),g.setAttribute ("name","t"),n.appendChild(g),h=G.createDocumentFragment (),h.appendChild(n.lastChild),b.checkClone=h.cloneNode (!0).cloneNode(!0).lastChild.checked,b.appendChecked= g.checked,h.removeChild(g),h.appendChild(n);if(n.attachEvent )for(l in{submit:1,change:1,focusin:1})k="on"+l,m=k in n,m||(n.setAttribute(k,"return;"),m=typeof n[k]=="function" ),b[l+"Bubbles"]=m;return h.removeChild(n),h=e=f=n= g=null,J(function(){var c,d,e,f,g,h,j,k,l,o,p,q,r,s= G.getElementsByTagName("body")[0];!s||(k=1,r="padding:0;margin:0;border:" ,p="position:absolute;top:0;left:0;width:1px;height:1px;" ,q=r+"0;visibility:hidden;",l="style='"+p+r+"5px solid #000;" ,o="
"+""+"
" ,c=G.createElement("div"),c.style.cssText=q+"width:0;height:0;position:static;top:0;margin-top:"+ k+"px",s.insertBefore(c,s.firstChild),n=G.createElement ("div"),c.appendChild(n),n.innerHTML="
t
",i= n.getElementsByTagName("td"),m=i[0].offsetHeight===0 ,i[0].style.display="",i[1].style.display="none",b. reliableHiddenOffsets=m&&i[0].offsetHeight===0,a.getComputedStyle&& (n.innerHTML="",j=G.createElement("div"),j.style.width="0" ,j.style.marginRight="0",n.style.width="2px",n.appendChild (j),b.reliableMarginRight=(parseInt((a.getComputedStyle (j,null)||{marginRight:0}).marginRight,10)||0)===0) ,typeof n.style.zoom!="undefined"&&(n.innerHTML="", n.style.width=n.style.padding="1px",n.style.border=0 ,n.style.overflow="hidden",n.style.display="inline" ,n.style.zoom=1,b.inlineBlockNeedsLayout=n.offsetWidth===3 ,n.style.display="block",n.style.overflow="visible" ,n.innerHTML="
",b.shrinkWrapBlocks= n.offsetWidth!==3),n.style.cssText=p+q,n.innerHTML= o,d=n.firstChild,e=d.firstChild,g=d.nextSibling.firstChild .firstChild,h={doesNotAddBorder:e.offsetTop!==5,doesAddBorderForTableAndCells :g.offsetTop===5},e.style.position="fixed",e.style. top="20px",h.fixedPosition=e.offsetTop===20||e.offsetTop===15 ,e.style.position=e.style.top="",d.style.overflow="hidden" ,d.style.position="relative",h.subtractsBorderForOverflowNotVisible= e.offsetTop===-5,h.doesNotIncludeMarginInBodyOffset= s.offsetTop!==k,a.getComputedStyle&&(n.style.marginTop="1%" ,b.pixelMargin=(a.getComputedStyle(n,null)||{marginTop :0}).marginTop!=="1%"),typeof c.style.zoom!="undefined"&& (c.style.zoom=1),s.removeChild(c),j=n=c=null,J.extend (b,h))}),b}();var M=/^(?:\{.*\}|\[.*\])$/,N=/([A-Z])/g ;J.extend({cache:{},uuid:0,expando:"jQuery"+(J.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?J.cache [a[J.expando]]:a[J.expando],!!a&&!D(a)},data:function( a,c,d,e){if(!!J.acceptData(a)){var f,g,h,i=J.expando ,j=typeof c=="string",k=a.nodeType,l=k?J.cache:a,m= k?a[i]:a[i]&&i,n=c==="events";if((!m||!l[m]||!n&&!e&&! l[m].data)&&j&&d===b)return;m||(k?a[i]=m=++J.uuid:m= i),l[m]||(l[m]={},k||(l[m].toJSON=J.noop));if(typeof c=="object"||typeof c=="function")e?l[m]=J.extend(l [m],c):l[m].data=J.extend(l[m].data,c);return f=g=l [m],e||(g.data||(g.data={}),g=g.data),d!==b&&(g[J.camelCase (c)]=d),n&&!g[c]?f.events:(j?(h=g[c],h==null&&(h=g[ J.camelCase(c)])):h=g,h)}},removeData:function(a,b, c){if(!!J.acceptData(a)){var d,e,f,g=J.expando,h=a. nodeType,i=h?J.cache:a,j=h?a[g]:g;if(!i[j])return;if( b){d=c?i[j]:i[j].data;if(d){J.isArray(b)||(b in d?b= [b]:(b=J.camelCase(b),b in d?b=[b]:b=b.split(" "))) ;for(e=0,f=b.length;e1,null,!1))},removeData:function( a){return this.each(function(){J.removeData(this,a) })}}),J.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark" ,J._data(a,b,(J._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:(J._data(b,d)||1)-1;e?J._data(b,d,e) :(J.removeData(b,d,!0),C(b,c,"mark"))}},queue:function( a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=J._data (a,b),c&&(!d||J.isArray(c)?d=J._data(a,b,J.makeArray (c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx" ;var c=J.queue(a,b),d=c.shift(),e={};d==="inprogress"&& (d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress") ,J._data(a,b+".run",e),d.call(a,function(){J.dequeue (a,b)},e)),c.length||(J.removeData(a,b+"queue "+b+".run" ,!0),C(a,b,"queue"))}}),J.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(){J.removeAttr(this,a)})},prop:function(a ,b){return J.access(this,J.prop,a,b,arguments.length>1 )},removeProp:function(a){return a=J.propFix[a]||a, this.each(function(){try{this[a]=b,delete this[a]}catch( c){}})},addClass:function(a){var b,c,d,e,f,g,h;if(J .isFunction(a))return this.each(function(b){J(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,f=this[0];if(!!arguments.length)return e= J.isFunction(a),this.each(function(d){var f=J(this) ,g;if(this.nodeType===1){e?g=a.call(this,d,f.val()) :g=a,g==null?g="":typeof g=="number"?g+="":J.isArray (g)&&(g=J.map(g,function(a){return a==null?"":a+""} )),c=J.valHooks[this.type]||J.valHooks[this.nodeName .toLowerCase()];if(!c||!("set"in c)||c.set(this,g,"value" )===b)this.value=g}});if(f)return c=J.valHooks[f.type ]||J.valHooks[f.nodeName.toLowerCase()],c&&"get"in c&&(d=c.get(f,"value"))!==b?d:(d=f.value,typeof d=="string"? d.replace(Q,""):d==null?"":d)}}),J.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,f=a.selectedIndex,g=[],h=a. options,i=a.type==="select-one";if(f<0)return null; c=i?f:0,d=i?f+1:h.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 f,g,h,i=a.nodeType;if(!!a&&i!==3&&i!==8&&i!==2 ){if(e&&c in J.attrFn)return J(a)[c](d);if(typeof a .getAttribute=="undefined")return J.prop(a,c,d);h=i!==1||! J.isXMLDoc(a),h&&(c=c.toLowerCase(),g=J.attrHooks[c ]||(U.test(c)?X:W));if(d!==b){if(d===null){J.removeAttr (a,c);return}return g&&"set"in g&&h&&(f=g.set(a,d,c ))!==b?f:(a.setAttribute(c,""+d),d)}return g&&"get"in g&&h&&(f=g.get(a,c))!==null?f:(f=a.getAttribute(c), f===null?b:f)}},removeAttr:function(a,b){var c,d,e, f,g,h=0;if(b&&a.nodeType===1){d=b.toLowerCase().split (P),f=d.length;for(;h=0}})});var Z=/^(?:textarea|input|select)$/i ,$=/^([^\.]*)?(?:\.(.+))?$/,_=/(?:^|\s)hover(\.\S+)?\b/ ,ba=/^key/,bb=/^(?:mouse|contextmenu)|click/,bc=/^(?:focusinfocus|focusoutblur)$/ ,bd=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,be=function( a){var b=bd.exec(a);return b&&(b[1]=(b[1]||"").toLowerCase (),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)" )),b},bf=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))},bg=function(a){return J.event.special .hover?a:a.replace(_,"mouseenter$1 mouseleave$1")}; J.event={add:function(a,c,d,e,f){var g,h,i,j,k,l,m, n,o,p,q,r;if(!(a.nodeType===3||a.nodeType===8||!c||! d||!(g=J._data(a)))){d.handler&&(o=d,d=o.handler,f= o.selector),d.guid||(d.guid=J.guid++),i=g.events,i|| (g.events=i={}),h=g.handle,h||(g.handle=h=function( a){return typeof J=="undefined"||!!a&&J.event.triggered=== a.type?b:J.event.dispatch.apply(h.elem,arguments)}, h.elem=a),c=J.trim(bg(c)).split(" ");for(j=0;j=0&&(g=g.slice(0,-1),j=!0),g.indexOf(".")>=0&& (h=g.split("."),g=h.shift(),h.sort());if((!e||J.event .customEvent[g])&&!J.event.global[g])return;c=typeof c=="object"?c[J.expando]?c:new J.Event(g,c):new J.Event (g),c.type=g,c.isTrigger=!0,c.exclusive=j,c.namespace= h.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+ h.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,n=g.indexOf (":")<0?"on"+g:"";if(!e){i=J.cache;for(k in i)i[k]. events&&i[k].events[g]&&J.event.trigger(c,d,i[k].handle .elem,!0);return}c.result=b,c.target||(c.target=e), d=d!=null?J.makeArray(d):[],d.unshift(c),o=J.event. special[g]||{};if(o.trigger&&o.trigger.apply(e,d)===!1 )return;q=[[e,o.bindType||g]];if(!f&&!o.noBubble&&! J.isWindow(e)){r=o.delegateType||g,l=bc.test(r+g)?e :e.parentNode,m=null;for(;l;l=l.parentNode)q.push([ l,r]),m=l;m&&m===e.ownerDocument&&q.push([m.defaultView|| m.parentWindow||a,r])}for(k=0;ke&&i.push({elem:this,matches :d.slice(e)});for(j=0;j0?this.on(b,null ,a,c):this.trigger(b)},J.attrFn&&(J.attrFn[b]=!0),ba .test(b)&&(J.event.fixHooks[b]=J.event.keyHooks),bb .test(b)&&(J.event.fixHooks[b]=J.event.mouseHooks)} ),function(){function a(a,b,c,d,f,g){for(var h=0,i= d.length;h0 ){k=j;break}}j=j[a]}d[h]=k}}}function c(a,b,c,d,f,g ){for(var h=0,i=d.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g ,e="sizcache"+(Math.random()+"").replace(".",""),f=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(a,b,c,e){c=c||[],b=b||G;var f=b;if(b.nodeType!==1&& b.nodeType!==9)return[];if(!a||typeof a!="string")return c ;var h,i,j,k,l,n,q,r,t=!0,u=m.isXML(b),v=[],x=a;do{ d.exec(""),h=d.exec(x);if(h){x=h[3],v.push(h[1]);if( h[2]){k=h[3];break}}}while(h);if(v.length>1&&p.exec (a))if(v.length===2&&o.relative[v[0]])i=w(v[0]+v[1] ,b,e);else{i=o.relative[v[0]]?[b]:m(v.shift(),b);while( v.length)a=v.shift(),o.relative[a]&&(a+=v.shift()), i=w(a,i,e)}else{!e&&v.length>1&&b.nodeType===9&&!u&& o.match.ID.test(v[0])&&!o.match.ID.test(v[v.length-1 ])&&(l=m.find(v.shift(),b,u),b=l.expr?m.filter(l.expr ,l.set)[0]:l.set[0]);if(b){l=e?{expr:v.pop(),set:s( e)}:m.find(v.pop(),v.length!==1||v[0]!=="~"&&v[0]!=="+"||! b.parentNode?b:b.parentNode,u),i=l.expr?m.filter(l. expr,l.set):l.set,v.length>0?j=s(i):t=!1;while(v.length )n=v.pop(),q=n,o.relative[n]?q=v.pop():n="",q==null&& (q=b),o.relative[n](j,q,u)}else j=v=[]}j||(j=i),j|| m.error(n||a);if(g.call(j)==="[object Array]")if(!t )c.push.apply(c,j);else if(b&&b.nodeType===1)for(r=0 ;j[r]!=null;r++)j[r]&&(j[r]===!0||j[r].nodeType===1&& m.contains(b,j[r]))&&c.push(i[r]);else for(r=0;j[r]!= null;r++)j[r]&&j[r].nodeType===1&&c.push(i[r]);else s (j,c);return k&&(m(k,f,c,e),m.uniqueSort(c)),c};m.uniqueSort= function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b< a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a },m.matches=function(a,b){return m(a,null,null,b)}, m.matchesSelector=function(a,b){return m(b,null,null ,[a]).length>0},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< f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName .toLowerCase()===b?g:!1}}}else{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]=f++ ,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(a,b,c,e,f){if( a[1]==="not")if((d.exec(a[3])||"").length>1||/^\w/. test(a[3]))a[3]=m(a[3],null,null,b);else{var g=m.filter (a[3],b,c,!0^f);return c||e.push.apply(e,g),!1}else if( o.match.POS.test(a[0])||o.match.CHILD.test(a[0]))return!0 ;return a},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(G.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",d.insertBefore(a,d .firstChild),G.getElementById(c)&&(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}),d.removeChild(a),d=a=null}(),function( ){var a=G.createElement("div");a.appendChild(G.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}(),G.querySelectorAll&&function(){var a=m,b= G.createElement("div"),c="__sizzle__";b.innerHTML="

" ;if(!b.querySelectorAll||b.querySelectorAll(".TEST" ).length!==0){m=function(b,d,e,f){d=d||G;if(!f&&!m. isXML(d)){var g=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/ .exec(b);if(g&&(d.nodeType===1||d.nodeType===9)){if( g[1])return s(d.getElementsByTagName(b),e);if(g[2]&& o.find.CLASS&&d.getElementsByClassName)return s(d.getElementsByClassName (g[2]),e)}if(d.nodeType===9){if(b==="body"&&d.body) return s([d.body],e);if(g&&g[3]){var h=d.getElementById (g[3]);if(!h||!h.parentNode)return s([],e);if(h.id=== g[3])return s([h],e)}try{return s(d.querySelectorAll (b),e)}catch(i){}}else if(d.nodeType===1&&d.nodeName .toLowerCase()!=="object"){var j=d,k=d.getAttribute ("id"),l=k||c,n=d.parentNode,p=/^\s*[+~]/.test(b);k? l=l.replace(/'/g,"\\$&"):d.setAttribute("id",l),p&& n&&(d=d.parentNode);try{if(!p||n)return s(d.querySelectorAll ("[id='"+l+"'] "+b),e)}catch(q){}finally{k||j.removeAttribute ("id")}}}return a(b,d,e,f)};for(var d in a)m[d]=a[d ];b=null}}(),function(){var a=G.documentElement,b=a .matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector|| a.msMatchesSelector;if(b){var c=!b.call(G.createElement ("div"),"div"),d=!1;try{b.call(G.documentElement,"[test!='']:sizzle" )}catch(e){d=!0}m.matchesSelector=function(a,e){e=e .replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML (a))try{if(d||!o.match.PSEUDO.test(e)&&!/!=/.test(e )){var f=b.call(a,e);if(f||!c||a.document&&a.document .nodeType!==11)return f}}catch(g){}return m(e,null, null,[a]).length>0}}}(),function(){var a=G.createElement ("div");a.innerHTML="
" ;if(!!a.getElementsByClassName&&a.getElementsByClassName ("e").length!==0){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}}() ,G.documentElement.contains?m.contains=function(a,b ){return a!==b&&(a.contains?a.contains(b):!0)}:G.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 w=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(g=f;g=0:J.filter(a, this).length>0:this.filter(a).length>0)},closest:function( a,b){var c=[],d,e,f=this[0];if(J.isArray(a)){var g=1 ;while(f&&f.ownerDocument&&f!==b){for(d=0;d-1:J.find .matchesSelector(f,a)){c.push(f);break}f=f.parentNode ;if(!f||!f.ownerDocument||f===b||f.nodeType===11)break} }return c=c.length>1?J.unique(c):c,this.pushStack(c ,"closest",a)},index:function(a){return a?typeof a=="string"? J.inArray(this[0],J(a)):J.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"?J(a ,b):J.makeArray(a&&a.nodeType?[a]:a),d=J.merge(this .get(),c);return this.pushStack(z(c[0])||z(d[0])?d: J.unique(d))},andSelf:function(){return this.add(this .prevObject)}}),J.each({parent:function(a){var b=a. parentNode;return b&&b.nodeType!==11?b:null},parents :function(a){return J.dir(a,"parentNode")},parentsUntil :function(a,b,c){return J.dir(a,"parentNode",c)},next :function(a){return J.nth(a,2,"nextSibling")},prev: function(a){return J.nth(a,2,"previousSibling")},nextAll :function(a){return J.dir(a,"nextSibling")},prevAll :function(a){return J.dir(a,"previousSibling")},nextUntil :function(a,b,c){return J.dir(a,"nextSibling",c)},prevUntil :function(a,b,c){return J.dir(a,"previousSibling",c )},siblings:function(a){return J.sibling((a.parentNode|| {}).firstChild,a)},children:function(a){return J.sibling (a.firstChild)},contents:function(a){return J.nodeName (a,"iframe")?a.contentDocument||a.contentWindow.document :J.makeArray(a.childNodes)}},function(a,b){J.fn[a]= function(c,d){var e=J.map(this,b,c);return bh.test( a)||(d=c),d&&typeof d=="string"&&(e=J.filter(d,e)), e=this.length>1&&!bn[a]?J.unique(e):e,(this.length>1|| bj.test(d))&&bi.test(a)&&(e=e.reverse()),this.pushStack (e,a,bl.call(arguments).join(","))}}),J.extend({filter :function(a,b,c){return c&&(a=":not("+a+")"),b.length===1? J.find.matchesSelector(b[0],a)?[b[0]]:[]:J.find.matches (a,b)},dir:function(a,c,d){var e=[],f=a[c];while(f&& f.nodeType!==9&&(d===b||f.nodeType!==1||!J(f).is(d) ))f.nodeType===1&&e.push(f),f=f[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 bo="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video" ,bp=/ jQuery\d+="(?:\d+|null)"/g,bq=/^\s+/,br=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig ,bs=/<([\w:]+)/,bt=/]","i"),by=/checked\s*(?:[^=]|=\s*.checked.)/i ,bz=/\/(java|ecma)script/i,bA=/^\s*","" ],legend:[1,"
","
"],thead:[1,"" ,"
"],tr:[2,"","
" ],td:[3,"","
" ],col:[2,"","
" ],area:[1,"",""],_default:[0,"",""]},bC= x(G);bB.optgroup=bB.option,bB.tbody=bB.tfoot=bB.colgroup= bB.caption=bB.thead,bB.th=bB.td,J.support.htmlSerialize|| (bB._default=[1,"div
","
"]),J.fn.extend({ text:function(a){return J.access(this,function(a){return a=== b?J.text(this):this.empty().append((this[0]&&this[0 ].ownerDocument||G).createTextNode(a))},null,a,arguments .length)},wrapAll:function(a){if(J.isFunction(a))return this .each(function(b){J(this).wrapAll(a.call(this,b))}) ;if(this[0]){var b=J(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 J .isFunction(a)?this.each(function(b){J(this).wrapInner (a.call(this,b))}):this.each(function(){var b=J(this ),c=b.contents();c.length?c.wrapAll(a):b.append(a)} )},wrap:function(a){var b=J.isFunction(a);return this .each(function(c){J(this).wrapAll(b?a.call(this,c): a)})},unwrap:function(){return this.parent().each(function( ){J.nodeName(this,"body")||J(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=J.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,J.clean (arguments)),a}},remove:function(a,b){for(var c=0,d ;(d=this[c])!=null;c++)if(!a||J.filter(a,[d]).length )!b&&d.nodeType===1&&(J.cleanData(d.getElementsByTagName ("*")),J.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&&J.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 J.clone(this,a,b)})},html:function(a){return J .access(this,function(a){var c=this[0]||{},d=0,e=this .length;if(a===b)return c.nodeType===1?c.innerHTML. replace(bp,""):null;if(typeof a=="string"&&!bv.test (a)&&(J.support.leadingWhitespace||!bq.test(a))&&!bB [(bs.exec(a)||["",""])[1].toLowerCase()]){a=a.replace (br,"<$1>");try{for(;d1&&k0?this.clone (!0):this).get();J(e[g])[b](i),d=d.concat(i)}return this .pushStack(d,a,e.selector)}}),J.extend({clone:function( a,b,c){var d,e,f,g=J.support.html5Clone||J.isXMLDoc (a)||!bx.test("<"+a.nodeName+">")?a.cloneNode(!0):q (a);if((!J.support.noCloneEvent||!J.support.noCloneChecked )&&(a.nodeType===1||a.nodeType===11)&&!J.isXMLDoc(a )){u(a,g),d=t(a),e=t(g);for(f=0;d[f];++f)e[f]&&u(d[ f],e[f])}if(b){v(a,g);if(c){d=t(a),e=t(g);for(f=0;d [f];++f)v(d[f],e[f])}}return d=e=null,g},clean:function( a,b,c,d){var e,f,g,h=[];b=b||G,typeof b.createElement=="undefined"&& (b=b.ownerDocument||b[0]&&b[0].ownerDocument||G);for( var i=0,j;(j=a[i])!=null;i++){typeof j=="number"&&( j+="");if(!j)continue;if(typeof j=="string")if(!bu. test(j))j=b.createTextNode(j);else{j=j.replace(br,"<$1>" );var k=(bs.exec(j)||["",""])[1].toLowerCase(),l=bB [k]||bB._default,m=l[0],n=b.createElement("div"),o= bC.childNodes,p;b===G?bC.appendChild(n):x(b).appendChild (n),n.innerHTML=l[1]+j+l[2];while(m--)n=n.lastChild ;if(!J.support.tbody){var q=bt.test(j),s=k==="table"&&! q?n.firstChild&&n.firstChild.childNodes:l[1]===""&&! q?n.childNodes:[];for(g=s.length-1;g>=0;--g)J.nodeName (s[g],"tbody")&&!s[g].childNodes.length&&s[g].parentNode .removeChild(s[g])}!J.support.leadingWhitespace&&bq .test(j)&&n.insertBefore(b.createTextNode(bq.exec(j )[0]),n.firstChild),j=n.childNodes,n&&(n.parentNode .removeChild(n),o.length>0&&(p=o[o.length-1],p&&p.parentNode&& p.parentNode.removeChild(p)))}var t;if(!J.support.appendChecked )if(j[0]&&typeof (t=j.length)=="number")for(g=0;g1)},J.extend({cssHooks:{ opacity:{get:function(a,b){if(b){var c=bM(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":J.support.cssFloat?"cssFloat":"styleFloat" },style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a .nodeType!==8&&!!a.style){var f,g,h=J.camelCase(c), i=a.style,j=J.cssHooks[h];c=J.cssProps[h]||h;if(d=== b)return j&&"get"in j&&(f=j.get(a,!1,e))!==b?f:i[c] ;g=typeof d,g==="string"&&(f=bI.exec(d))&&(d=+(f[1]+1 )*+f[2]+parseFloat(J.css(a,c)),g="number");if(d==null|| g==="number"&&isNaN(d))return;g==="number"&&!J.cssNumber [h]&&(d+="px");if(!j||!("set"in j)||(d=j.set(a,d))!== b)try{i[c]=d}catch(k){}}},css:function(a,c,d){var e ,f;c=J.camelCase(c),f=J.cssHooks[c],c=J.cssProps[c]|| c,c==="cssFloat"&&(c="float");if(f&&"get"in f&&(e=f .get(a,!0,d))!==b)return e;if(bM)return bM(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}}),J.curCSS=J.css,G.defaultView&&G .defaultView.getComputedStyle&&(bN=function(a,b){var c ,d,e,f,g=a.style;return b=b.replace(bF,"-$1").toLowerCase (),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle (a,null))&&(c=e.getPropertyValue(b),c===""&&!J.contains (a.ownerDocument.documentElement,a)&&(c=J.style(a,b ))),!J.support.pixelMargin&&e&&bJ.test(b)&&bH.test( c)&&(f=g.width,g.width=c,c=e.width,g.width=f),c}),G .documentElement.currentStyle&&(bO=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),bH.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}),bM=bN||bO,J.each(["height","width" ],function(a,b){J.cssHooks[b]={get:function(a,c,d){ if(c)return a.offsetWidth!==0?p(a,b,d):J.swap(a,bK, function(){return p(a,b,d)})},set:function(a,b){return bG .test(b)?b+"px":b}}}),J.support.opacity||(J.cssHooks .opacity={get:function(a,b){return bE.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=J.isNumeric(b)?"alpha(opacity="+ b*100+")":"",f=d&&d.filter||c.filter||"";c.zoom=1;if( b>=1&&J.trim(f.replace(bD,""))===""){c.removeAttribute ("filter");if(d&&!d.filter)return}c.filter=bD.test( f)?f.replace(bD,e):f+" "+e}}),J(function(){J.support .reliableMarginRight||(J.cssHooks.marginRight={get: function(a,b){return J.swap(a,{display:"inline-block" },function(){return b?bM(a,"margin-right"):a.style. marginRight})}})}),J.expr&&J.expr.filters&&(J.expr. filters.hidden=function(a){var b=a.offsetWidth,c=a. offsetHeight;return b===0&&c===0||!J.support.reliableHiddenOffsets&& (a.style&&a.style.display||J.css(a,"display"))==="none" },J.expr.filters.visible=function(a){return!J.expr. filters.hidden(a)}),J.each({margin:"",padding:"",border :"Width"},function(a,b){J.cssHooks[a+b]={expand:function( c){var d,e=typeof c=="string"?c.split(" "):[c],f={} ;for(d=0;d<4;d++)f[a+bL[d]+b]=e[d]||e[d-2]||e[0];return f }}});var bP=/%20/g,bQ=/\[\]$/,bR=/\r?\n/g,bS=/#.*$/ ,bT=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bU=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i ,bV=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/ ,bW=/^(?:GET|HEAD)$/,bX=/^\/\//,bY=/\?/,bZ=/)<[^<]*)*<\/script>/gi ,b$=/^(?:select|textarea)/i,b_=/\s+/,ca=/([?&])_=[^&]*/ ,cb=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/ ,cc=J.fn.load,cd={},ce={},cf,cg,ch=["*/"]+["*"];try{ cf=I.href}catch(ci){cf=G.createElement("a"),cf.href="" ,cf=cf.href}cg=cb.exec(cf.toLowerCase())||[],J.fn.extend ({load:function(a,c,d){if(typeof a!="string"&&cc)return cc .apply(this,arguments);if(!this.length)return this; var e=a.indexOf(" ");if(e>=0){var f=a.slice(e,a.length );a=a.slice(0,e)}var g="GET";c&&(J.isFunction(c)?(d= c,c=b):typeof c=="object"&&(c=J.param(c,J.ajaxSettings .traditional),g="POST"));var h=this;return J.ajax({ url:a,type:g,dataType:"html",data:c,complete:function( a,b,c){c=a.responseText,a.isResolved()&&(a.done(function( a){c=a}),h.html(f?J("
").append(c.replace(bZ,"" )).find(f):c)),d&&h.each(d,[c,b,a])}}),this},serialize :function(){return J.param(this.serializeArray())}, serializeArray:function(){return this.map(function( ){return this.elements?J.makeArray(this.elements):this }).filter(function(){return this.name&&!this.disabled&& (this.checked||b$.test(this.nodeName)||bU.test(this .type))}).map(function(a,b){var c=J(this).val();return c== null?null:J.isArray(c)?J.map(c,function(a,c){return{ name:b.name,value:a.replace(bR,"\r\n")}}):{name:b.name ,value:c.replace(bR,"\r\n")}}).get()}}),J.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend" .split(" "),function(a,b){J.fn[b]=function(a){return this .on(b,a)}}),J.each(["get","post"],function(a,c){J[c ]=function(a,d,e,f){return J.isFunction(d)&&(f=f||e ,e=d,d=b),J.ajax({type:c,url:a,data:d,success:e,dataType :f})}}),J.extend({getScript:function(a,c){return J. get(a,b,c,"script")},getJSON:function(a,b,c){return J .get(a,b,c,"json")},ajaxSetup:function(a,b){return b? m(a,J.ajaxSettings):(b=a,a=J.ajaxSettings),m(a,b),a },ajaxSettings:{url:cf,isLocal:bV.test(cg[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" ,"*":ch},contents:{xml:/xml/,html:/html/,json:/json/ },responseFields:{xml:"responseXML",text:"responseText" },converters:{"* text":a.String,"text html":!0,"text json" :J.parseJSON,"text xml":J.parseXML},flatOptions:{context :!0,url:!0}},ajaxPrefilter:o(cd),ajaxTransport:o(ce ),ajax:function(a,c){function d(a,c,d,n){if(v!==2){ v=2,t&&clearTimeout(t),s=b,q=n||"",y.readyState=a>0?4 :0;var o,p,r,u=c,x=d?k(e,y,d):b,z,A;if(a>=200&&a<300|| a===304){if(e.ifModified){if(z=y.getResponseHeader("Last-Modified" ))J.lastModified[m]=z;if(A=y.getResponseHeader("Etag" ))J.etag[m]=A}if(a===304)u="notmodified",o=!0;else try{ p=j(e,x),u="success",o=!0}catch(B){u="parsererror", r=B}}else{r=u;if(!u||a)u="error",a<0&&(a=0)}y.status= a,y.statusText=""+(c||u),o?h.resolveWith(f,[p,u,y]) :h.rejectWith(f,[y,u,r]),y.statusCode(l),l=b,w&&g.trigger ("ajax"+(o?"Success":"Error"),[y,e,o?p:r]),i.fireWith (f,[y,u]),w&&(g.trigger("ajaxComplete",[y,e]),--J.active|| J.event.trigger("ajaxStop"))}}typeof a=="object"&&( c=a,a=b),c=c||{};var e=J.ajaxSetup({},c),f=e.context|| e,g=f!==e&&(f.nodeType||f instanceof J)?J(f):J.event ,h=J.Deferred(),i=J.Callbacks("once memory"),l=e.statusCode|| {},m,o={},p={},q,r,s,t,u,v=0,w,x,y={readyState:0,setRequestHeader :function(a,b){if(!v){var c=a.toLowerCase();a=p[c]= p[c]||a,o[a]=b}return this},getAllResponseHeaders:function( ){return v===2?q:null},getResponseHeader:function(a ){var c;if(v===2){if(!r){r={};while(c=bT.exec(q))r[ c[1].toLowerCase()]=c[2]}c=r[a.toLowerCase()]}return c=== b?null:c},overrideMimeType:function(a){return v||(e .mimeType=a),this},abort:function(a){return a=a||"abort" ,s&&s.abort(a),d(0,a),this}};h.promise(y),y.success= y.done,y.error=y.fail,y.complete=i.add,y.statusCode= function(a){if(a){var b;if(v<2)for(b in a)l[b]=[l[b ],a[b]];else b=a[y.status],y.then(b,b)}return this} ,e.url=((a||e.url)+"").replace(bS,"").replace(bX,cg [1]+"//"),e.dataTypes=J.trim(e.dataType||"*").toLowerCase ().split(b_),e.crossDomain==null&&(u=cb.exec(e.url. toLowerCase()),e.crossDomain=!(!u||u[1]==cg[1]&&u[2 ]==cg[2]&&(u[3]||(u[1]==="http:"?80:443))==(cg[3]|| (cg[1]==="http:"?80:443)))),e.data&&e.processData&&typeof e.data!="string"&&(e.data=J.param(e.data,e.traditional )),n(cd,e,c,y);if(v===2)return!1;w=e.global,e.type= e.type.toUpperCase(),e.hasContent=!bW.test(e.type), w&&J.active++===0&&J.event.trigger("ajaxStart");if(! e.hasContent){e.data&&(e.url+=(bY.test(e.url)?"&":"?" )+e.data,delete e.data),m=e.url;if(e.cache===!1){var z= J.now(),A=e.url.replace(ca,"$1_="+z);e.url=A+(A===e .url?(bY.test(e.url)?"&":"?")+"_="+z:"")}}(e.data&& e.hasContent&&e.contentType!==!1||c.contentType)&&y .setRequestHeader("Content-Type",e.contentType),e.ifModified&& (m=m||e.url,J.lastModified[m]&&y.setRequestHeader("If-Modified-Since" ,J.lastModified[m]),J.etag[m]&&y.setRequestHeader("If-None-Match" ,J.etag[m])),y.setRequestHeader("Accept",e.dataTypes [0]&&e.accepts[e.dataTypes[0]]?e.accepts[e.dataTypes [0]]+(e.dataTypes[0]!=="*"?", "+ch+"; q=0.01":""):e .accepts["*"]);for(x in e.headers)y.setRequestHeader (x,e.headers[x]);if(!e.beforeSend||e.beforeSend.call (f,y,e)!==!1&&v!==2){for(x in{success:1,error:1,complete :1})y[x](e[x]);s=n(ce,e,c,y);if(!s)d(-1,"No Transport" );else{y.readyState=1,w&&g.trigger("ajaxSend",[y,e] ),e.async&&e.timeout>0&&(t=setTimeout(function(){y. abort("timeout")},e.timeout));try{v=1,s.send(o,d)}catch( B){if(v<2)d(-1,B);else throw B}}return y}return y.abort (),!1},param:function(a,c){var d=[],e=function(a,b) {b=J.isFunction(b)?b():b,d[d.length]=encodeURIComponent (a)+"="+encodeURIComponent(b)};c===b&&(c=J.ajaxSettings .traditional);if(J.isArray(a)||a.jquery&&!J.isPlainObject (a))J.each(a,function(){e(this.name,this.value)});else for( var f in a)l(f,a[f],c,e);return d.join("&").replace (bP,"+")}}),J.extend({active:0,lastModified:{},etag :{}});var cj=J.now(),ck=/(\=)\?(&|$)|\?\?/i;J.ajaxSetup ({jsonp:"callback",jsonpCallback:function(){return J .expando+"_"+cj++}}),J.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&&(ck.test(b.url)||e&&ck.test(b.data))){ var f,g=b.jsonpCallback=J.isFunction(b.jsonpCallback )?b.jsonpCallback():b.jsonpCallback,h=a[g],i=b.url, j=b.data,k="$1"+g+"$2";return b.jsonp!==!1&&(i=i.replace (ck,k),b.url===i&&(e&&(j=j.replace(ck,k)),b.data=== j&&(i+=(/\?/.test(i)?"&":"?")+b.jsonp+"="+g))),b.url= i,b.data=j,a[g]=function(a){f=[a]},d.always(function( ){a[g]=h,f&&J.isFunction(h)&&a[g](f[0])}),b.converters ["script json"]=function(){return f||J.error(g+" was not called" ),f[0]},b.dataTypes[0]="json","script"}}),J.ajaxSetup ({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript" },contents:{script:/javascript|ecmascript/},converters :{"text script":function(a){return J.globalEval(a), a}}}),J.ajaxPrefilter("script",function(a){a.cache=== b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1 )}),J.ajaxTransport("script",function(a){if(a.crossDomain ){var c,d=G.head||G.getElementsByTagName("head")[0]|| G.documentElement;return{send:function(e,f){c=G.createElement ("script"),c.async="async",a.scriptCharset&&(c.charset= a.scriptCharset),c.src=a.url,c.onload=c.onreadystatechange= function(a,e){if(e||!c.readyState||/loaded|complete/ .test(c.readyState))c.onload=c.onreadystatechange=null ,d&&c.parentNode&&d.removeChild(c),c=b,e||f(200,"success" )},d.insertBefore(c,d.firstChild)},abort:function() {c&&c.onload(0,1)}}}});var cl=a.ActiveXObject?function( ){for(var a in cn)cn[a](0,1)}:!1,cm=0,cn;J.ajaxSettings .xhr=a.ActiveXObject?function(){return!this.isLocal&& i()||h()}:i,function(a){J.extend(J.support,{ajax:!! a,cors:!!a&&"withCredentials"in a})}(J.ajaxSettings .xhr()),J.support.ajax&&J.ajaxTransport(function(c) {if(!c.crossDomain||J.support.cors){var d;return{send :function(e,f){var g=c.xhr(),h,i;c.username?g.open( c.type,c.url,c.async,c.username,c.password):g.open( c.type,c.url,c.async);if(c.xhrFields)for(i in c.xhrFields )g[i]=c.xhrFields[i];c.mimeType&&g.overrideMimeType&& g.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With" ]&&(e["X-Requested-With"]="XMLHttpRequest");try{for( i in e)g.setRequestHeader(i,e[i])}catch(j){}g.send( c.hasContent&&c.data||null),d=function(a,e){var i,j ,k,l,m;try{if(d&&(e||g.readyState===4)){d=b,h&&(g.onreadystatechange= J.noop,cl&&delete cn[h]);if(e)g.readyState!==4&&g.abort ();else{i=g.status,k=g.getAllResponseHeaders(),l={} ,m=g.responseXML,m&&m.documentElement&&(l.xml=m);try{ l.text=g.responseText}catch(a){}try{j=g.statusText} catch(n){j=""}!i&&c.isLocal&&!c.crossDomain?i=l.text?200 :404:i===1223&&(i=204)}}}catch(o){e||f(-1,o)}l&&f(i ,j,l,k)},!c.async||g.readyState===4?d():(h=++cm,cl&& (cn||(cn={},J(a).unload(cl)),cn[h]=d),g.onreadystatechange= d)},abort:function(){d&&d(0,1)}}}});var co={},cp,cq ,cr=/^(?:toggle|show|hide)$/,cs=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i ,ct,cu=[["height","marginTop","marginBottom","paddingTop" ,"paddingBottom"],["width","marginLeft","marginRight" ,"paddingLeft","paddingRight"],["opacity"]],cv;J.fn .extend({show:function(a,b,c){var f,g;if(a||a===0)return this .animate(e("show",3),a,b,c);for(var h=0,i=this.length ;h=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&&(f=!1);if(f){i.overflow!=null&&!J.support .shrinkWrapBlocks&&J.each(["","X","Y"],function(a,b ){h.style["overflow"+b]=i.overflow[a]}),i.hide&&J(h ).hide();if(i.hide||i.show)for(b in i.animatedProperties )J.style(h,b,i.orig[b]),J.removeData(h,"fxshow"+b,!0 ),J.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=J.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}},J.extend(J.fx,{tick:function(){var a,b=J.timers ,c=0;for(;c-1,j={},k={}, l,m;i?(k=e.position(),l=k.top,m=k.left):(l=parseFloat (g)||0,m=parseFloat(h)||0),J.isFunction(b)&&(b=b.call (a,c,f)),b.top!=null&&(j.top=b.top-f.top+l),b.left!= null&&(j.left=b.left-f.left+m),"using"in b?b.using. call(a,j):e.css(j)}},J.fn.extend({position:function( ){if(!this[0])return null;var a=this[0],b=this.offsetParent (),c=this.offset(),d=cy.test(b[0].nodeName)?{top:0, left:0}:b.offset();return c.top-=parseFloat(J.css(a ,"marginTop"))||0,c.left-=parseFloat(J.css(a,"marginLeft" ))||0,d.top+=parseFloat(J.css(b[0],"borderTopWidth" ))||0,d.left+=parseFloat(J.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|| G.body;while(a&&!cy.test(a.nodeName)&&J.css(a,"position" )==="static")a=a.offsetParent;return a})}}),J.each( {scrollLeft:"pageXOffset",scrollTop:"pageYOffset"}, function(a,d){var e=/Y/.test(d);J.fn[a]=function(f) {return J.access(this,function(a,f,g){var h=c(a);if( g===b)return h?d in h?h[d]:J.support.boxModel&&h.document .documentElement[f]||h.document.body[f]:a[f];h?h.scrollTo (e?J(h).scrollLeft():g,e?g:J(h).scrollTop()):a[f]=g },a,f,arguments.length,null)}}),J.each({Height:"height" ,Width:"width"},function(a,c){var d="client"+a,e="scroll"+ a,f="offset"+a;J.fn["inner"+a]=function(){var a=this [0];return a?a.style?parseFloat(J.css(a,c,"padding" )):this[c]():null},J.fn["outer"+a]=function(a){var b= this[0];return b?b.style?parseFloat(J.css(b,c,a?"margin" :"border")):this[c]():null},J.fn[c]=function(a){return J .access(this,function(a,c,g){var h,i,j,k;if(J.isWindow (a))return h=a.document,i=h.documentElement[d],J.support .boxModel&&i||h.body&&h.body[d]||i;if(a.nodeType===9 )return h=a.documentElement,h[d]>=h[e]?h[d]:Math.max (a.body[e],h[e],a.body[f],h[f]);if(g===b)return j=J .css(a,c),k=parseFloat(j),J.isNumeric(k)?k:j;J(a).css (c,g)},c,a,arguments.length,null)}}),a.jQuery=a.$=J ,typeof define=="function"&&define.amd&&define.amd. jQuery&&define("jquery",[],function(){return J})})( window),minispade={root:null,modules:{},loaded:{},globalEval :function(a){a&&(window.execScript||function(a){window .eval.call(window,a)})(a)},require:function(a){var b= minispade.loaded[a],c=minispade.modules[a];if(!b)if( c)minispade.loaded[a]=!0,typeof c=="string"?this.globalEval (c):c();else{if(minispade.root&&a.substr(0,minispade .root.length)!==minispade.root)return minispade.require (minispade.root+a);throw"The module '"+a+"' could not be found" }return b},requireAll:function(a){for(var b in this .modules){if(!this.modules.hasOwnProperty(b))continue; if(a&&!a.test(b))continue;minispade.require(b)}},register :function(a,b){minispade.modules[a]=b}},this.Handlebars= {},function(){Handlebars.VERSION="1.0.rc.1",Handlebars .helpers={},Handlebars.partials={},Handlebars.registerHelper= function(a,b,c){c&&(b.not=c),this.helpers[a]=b},Handlebars .registerPartial=function(a,b){this.partials[a]=b}, Handlebars.registerHelper("helperMissing",function( a){if(arguments.length===2)return undefined;throw new Error("Could not find property '"+a+"'")});var a=Object .prototype.toString,b="[object Function]";Handlebars .registerHelper("blockHelperMissing",function(c,d){ var e=d.inverse||function(){},f=d.fn,g="",h=a.call( c);h===b&&(c=c.call(this));if(c===!0)return f(this) ;if(c===!1||c==null)return e(this);if(h==="[object Array]" ){if(c.length>0)for(var i=0,j=c.length;i0)for(var f=0,g=a.length ;f2&&z.push("'"+this.terminals_ [w]+"'");var B="";this.lexer.showPosition?B="Parse error on line "+ (j+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+ z.join(", ")+", got '"+this.terminals_[p]+"'":B="Parse error on line "+ (j+1)+": Unexpected "+(p==1?"end of input":"'"+(this .terminals_[p]||p)+"'"),this.parseError(B,{text:this .lexer.match,token:this.terminals_[p]||p,line:this. lexer.yylineno,loc:o,expected:z})}if(l==3){if(p==n) throw new Error(B||"Parsing halted.");k=this.lexer. yyleng,i=this.lexer.yytext,j=this.lexer.yylineno,o= this.lexer.yylloc,p=c()}for(;;){if(m.toString()in d [r])break;if(r==0)throw new Error(B||"Parsing halted." );b(1),r=f[f.length-1]}q=p,p=m,r=f[f.length-1],s=d[ r]&&d[r][m],l=3}if(s[0]instanceof Array&&s.length>1 )throw new Error("Parse Error: multiple actions possible at state: "+ r+", token: "+p);switch(s[0]){case 1:f.push(p),g.push (this.lexer.yytext),h.push(this.lexer.yylloc),f.push (s[1]),p=null,q?(p=q,q=null):(k=this.lexer.yyleng,i= this.lexer.yytext,j=this.lexer.yylineno,o=this.lexer .yylloc,l>0&&l--);break;case 2:x=this.productions_[ s[1]][1],v.$=g[g.length-x],v._$={first_line:h[h.length- (x||1)].first_line,last_line:h[h.length-1].last_line ,first_column:h[h.length-(x||1)].first_column,last_column :h[h.length-1].last_column},u=this.performAction.call (v,i,k,j,this.yy,s[1],g,h);if(typeof u!="undefined" )return u;x&&(f=f.slice(0,-1*x*2),g=g.slice(0,-1*x) ,h=h.slice(0,-1*x)),f.push(this.productions_[s[1]][0 ]),g.push(v.$),h.push(v._$),y=d[f[f.length-2]][f[f. length-1]],f.push(y);break;case 3:return!0}}return!0 }},b=function(){var a={EOF:1,parseError:function b( a,b){if(this.yy.parseError)this.yy.parseError(a,b); else throw new Error(a)},setInput:function(a){return this ._input=a,this._more=this._less=this.done=!1,this.yylineno= this.yyleng=0,this.yytext=this.matched=this.match="" ,this.conditionStack=["INITIAL"],this.yylloc={first_line :1,first_column:0,last_line:1,last_column:0},this}, input:function(){var a=this._input[0];this.yytext+= a,this.yyleng++,this.match+=a,this.matched+=a;var b= a.match(/\n/);return b&&this.yylineno++,this._input= this._input.slice(1),a},unput:function(a){return this ._input=a+this._input,this},more:function(){return this ._more=!0,this},pastInput:function(){var a=this.matched .substr(0,this.matched.length-this.match.length);return( a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"" )},upcomingInput:function(){var a=this.match;return a .length<20&&(a+=this._input.substr(0,20-a.length)), (a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g ,"")},showPosition:function(){var a=this.pastInput( ),b=(new Array(a.length+1)).join("-");return a+this .upcomingInput()+"\n"+b+"^"},next:function(){if(this .done)return this.EOF;this._input||(this.done=!0);var a ,b,c,d;this._more||(this.yytext="",this.match="");var e= this._currentRules();for(var f=0;f/,/^\{\{#/,/^\{\{\// ,/^\{\{\^/,/^\{\{\s*else\b/,/^\{\{\{/,/^\{\{&/,/^\{\{![\s\S]*?\}\}/ ,/^\{\{/,/^=/,/^\.(?=[} ])/,/^\.\./,/^[\/.]/,/^\s+/ ,/^\}\}\}/,/^\}\}/,/^"(\\["]|[^"])*"/,/^true(?=[}\s])/ ,/^false(?=[}\s])/,/^[0-9]+(?=[}\s])/,/^[a-zA-Z0-9_$-]+(?=[=}\s\/.])/ ,/^\[[^\]]*\]/,/^./,/^$/],a.conditions={mu:{rules:[3 ,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22 ,23,24,25,26],inclusive:!1},emu:{rules:[2],inclusive :!1},INITIAL:{rules:[0,1,26],inclusive:!0}},a}();return a .lexer=b,a}();typeof require!="undefined"&&typeof exports!="undefined"&& (exports.parser=handlebars,exports.parse=function() {return handlebars.parse.apply(handlebars,arguments )},exports.main=function a(a){if(!a[1])throw new Error ("Usage: "+a[0]+" FILE");if(typeof process!="undefined" )var b=require("fs").readFileSync(require("path").join (process.cwd(),a[1]),"utf8");else var c=require("file" ).path(require("file").cwd()),b=c.join(a[1]).read({ charset:"utf-8"});return exports.parser.parse(b)},typeof module!="undefined"&&require.main===module&&exports .main(typeof process!="undefined"?process.argv.slice (1):require("system").args)),Handlebars.Parser=handlebars ,Handlebars.parse=function(a){return Handlebars.Parser .yy=Handlebars.AST,Handlebars.Parser.parse(a)},Handlebars .print=function(a){return(new Handlebars.PrintVisitor ).accept(a)},Handlebars.logger={DEBUG:0,INFO:1,WARN :2,ERROR:3,level:3,log:function(a,b){}},Handlebars. log=function(a,b){Handlebars.logger.log(a,b)},function( ){Handlebars.AST={},Handlebars.AST.ProgramNode=function( a,b){this.type="program",this.statements=a,b&&(this .inverse=new Handlebars.AST.ProgramNode(b))},Handlebars .AST.MustacheNode=function(a,b,c){this.type="mustache" ,this.escaped=!c,this.hash=b;var d=this.id=a[0],e=this .params=a.slice(1),f=this.eligibleHelper=d.isSimple ;this.isHelper=f&&(e.length||b)},Handlebars.AST.PartialNode= function(a,b){this.type="partial",this.id=a,this.context= b};var a=function(a,b){if(a.original!==b.original)throw new Handlebars.Exception(a.original+" doesn't match "+b .original)};Handlebars.AST.BlockNode=function(b,c,d ,e){a(b.id,e),this.type="block",this.mustache=b,this .program=c,this.inverse=d,this.inverse&&!this.program&& (this.isInverse=!0)},Handlebars.AST.ContentNode=function( a){this.type="content",this.string=a},Handlebars.AST .HashNode=function(a){this.type="hash",this.pairs=a },Handlebars.AST.IdNode=function(a){this.type="ID", this.original=a.join(".");var b=[],c=0;for(var d=0, e=a.length;d" :">",'"':""","'":"'","`":"`"},b=/&(?!\w+;)|[<>"'`]/g ,c=/[&<>"'`]/,d=function(b){return a[b]||"&"};Handlebars .Utils={escapeExpression:function(a){return a instanceof Handlebars.SafeString?a.toString():a==null||a===!1?"" :c.test(a)?a.replace(b,d):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}}}(),Handlebars.Compiler=function(){},Handlebars .JavaScriptCompiler=function(){},function(a,b){a.prototype= {compiler:a,disassemble:function(){var a=this.opcodes ,b,c=[],d,e;for(var f=0,g=a.length;fthis.stackVars .length&&this.stackVars.push("stack"+this.stackSlot ),"stack"+this.stackSlot},popStack:function(){var a= this.compileStack.pop();return a instanceof c?a.value :(this.stackSlot--,a)},topStack:function(){var a=this .compileStack[this.compileStack.length-1];return a instanceof c?a.value:a},quotedString:function(a){return'"'+a.replace (/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n" ).replace(/\r/g,"\\r")+'"'},setupHelper:function(a, b){var c=[];this.setupParams(a,c);var d=this.nameLookup ("helpers",b,"helper");return{params:c,name:d,callParams :["depth0"].concat(c).join(", "),helperMissingParams :["depth0",this.quotedString(b)].concat(c).join(", " )}},setupParams:function(a,b){var c=[],d=[],e,f,g;c .push("hash:"+this.popStack()),f=this.popStack(),g= this.popStack();if(g||f)g||(this.context.aliases.self="this" ,g="self.noop"),f||(this.context.aliases.self="this" ,f="self.noop"),c.push("inverse:"+f),c.push("fn:"+g );for(var h=0;h\s*\(([^\)]+)\)/gm,"{anonymous}($1)" ).split("\n"),e.shift()):e=c.stack.replace(/(?:\n@:0)?\s+$/m ,"").replace(/^\(/gm,"{anonymous}(").split("\n"),f="\n "+ e.slice(2).join("\n "),a+=f}Ember.Logger.warn("DEPRECATION: "+ a)},Ember.deprecateFunc=function(a,b){return function( ){return b.apply(this,arguments)}},window.ember_assert= Ember.deprecateFunc("ember_assert is deprecated. Please use Ember.assert instead." ,Ember.assert),window.ember_warn=Ember.deprecateFunc ("ember_warn is deprecated. Please use Ember.warn instead." ,Ember.warn),window.ember_deprecate=Ember.deprecateFunc ("ember_deprecate is deprecated. Please use Ember.deprecate instead." ,Ember.deprecate),window.ember_deprecateFunc=Ember. deprecateFunc("ember_deprecateFunc is deprecated. Please use Ember.deprecateFunc instead." ,Ember.deprecateFunc)}(),function(){"undefined"==typeof Ember&&(Ember={}),"undefined"!=typeof window&&(window .Em=window.Ember=Em=Ember),Ember.isNamespace=!0,Ember .toString=function(){return"Ember"},Ember.VERSION="1.0.pre" ,Ember.ENV=Ember.ENV||("undefined"==typeof ENV?{}:ENV ),Ember.config=Ember.config||{},Ember.EXTEND_PROTOTYPES= Ember.ENV.EXTEND_PROTOTYPES!==!1,Ember.LOG_STACKTRACE_ON_DEPRECATION= Ember.ENV.LOG_STACKTRACE_ON_DEPRECATION!==!1,Ember. SHIM_ES5=Ember.ENV.SHIM_ES5===!1?!1:Ember.EXTEND_PROTOTYPES ,Ember.CP_DEFAULT_CACHEABLE=Ember.ENV.CP_DEFAULT_CACHEABLE!==!1 ,Ember.VIEW_PRESERVES_CONTEXT=Ember.ENV.VIEW_PRESERVES_CONTEXT!==!1 ,Ember.K=function(){return this},"undefined"==typeof Ember.assert&&(Ember.assert=Ember.K),"undefined"==typeof Ember.warn&&(Ember.warn=Ember.K),"undefined"==typeof Ember.deprecate&&(Ember.deprecate=Ember.K),"undefined"==typeof Ember.deprecateFunc&&(Ember.deprecateFunc=function( a,b){return b}),"undefined"==typeof ember_assert&&( window.ember_assert=Ember.K),"undefined"==typeof ember_warn&& (window.ember_warn=Ember.K),"undefined"==typeof ember_deprecate&& (window.ember_deprecate=Ember.K),"undefined"==typeof ember_deprecateFunc&&(window.ember_deprecateFunc=function( a,b){return b}),Ember.Logger=window.console||{log:Ember .K,warn:Ember.K,error:Ember.K,info:Ember.K,debug:Ember .K},Ember.onerror=null,Ember.handleErrors=function( a,b){if("function"!=typeof Ember.onerror)return a.apply (b||this);try{return a.apply(b||this)}catch(c){Ember .onerror(c)}}}(),function(){var a=function(a){return a&& Function.prototype.toString.call(a).indexOf("[native code]" )>-1},b=a(Array.prototype.map)?Array.prototype.map: function(a){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 ;var d=arguments[1];for(var e=0;e-1&&f.splice(g,1)} ,isEmpty:function(){return this.list.length===0},has :function(b){var c=a(b),d=this.presenceSet;return c in d},forEach:function(a,b){var c=this.list.slice();for( var d=0,e=c.length;d0?g=d.values[b]:g=a[b],g!==undefined||"object"!=typeof a||b in a||"function"!=typeof a.unknownProperty?g:a .unknownProperty(b))},g=function(a,b,c,f){typeof a=="string"&& (c=b,b=a,a=null);if(!a||b.indexOf(".")!==-1)return d (a,b,c,f);var g=a[e],i=g&&g.descs[b],j,k;return i?i .set(a,b,c):(j="object"==typeof a&&!(b in a),j&&"function"==typeof a.setUnknownProperty?a.setUnknownProperty(b,c):g&&g .watching[b]>0?(h?k=g.values[b]:k=a[b],c!==k&&(Ember .propertyWillChange(a,b),h?k!==undefined||b in a?g. values[b]=c:Ember.defineProperty(a,b,null,c):a[b]=c ,Ember.propertyDidChange(a,b))):a[b]=c),c},Ember.normalizeTuple= function(a,c){return b(a,c)},Ember.getWithDefault=function( a,b,c){var d=f(a,b);return d===undefined?c:d},Ember .get=f,Ember.getPath=Ember.deprecateFunc("getPath is deprecated since get now supports paths" ,Ember.get),Ember.set=g,Ember.setPath=Ember.deprecateFunc ("setPath is deprecated since set now supports paths" ,Ember.set),Ember.trySet=function(a,b,c){return g(a ,b,c,!0)},Ember.trySetPath=Ember.deprecateFunc("trySetPath has been renamed to trySet" ,Ember.trySet),Ember.isGlobalPath=function(a){return i .test(a)},Ember.config.overrideAccessors&&(Ember.config .overrideAccessors(),f=Ember.get,g=Ember.set)}(),function( ){var a=Ember.GUID_KEY,b=Ember.META_KEY,c=Ember.EMPTY_META ,d=Ember.meta,e=Ember.create,f=Ember.platform.defineProperty ,g=Ember.ENV.MANDATORY_SETTER,h=Ember.Descriptor=function( ){};Ember.defineProperty=function(a,c,e,h,i){var j, k,l,m;return i||(i=d(a)),j=i.descs,k=i.descs[c],l=i .watching[c]>0,k instanceof Ember.Descriptor&&k.teardown (a,c),e instanceof Ember.Descriptor?(m=e,j[c]=e,g&& l?f(a,c,{configurable:!0,enumerable:!0,writable:!0, value:undefined}):a[c]=undefined,e.setup(a,c)):(j[c ]=undefined,e==null?(m=h,g&&l?(i.values[c]=h,f(a,c, {configurable:!0,enumerable:!0,set:function(){},get :function(){var a=this[b];return a&&a.values[c]}})) :a[c]=h):(m=e,f(a,c,e))),l&&Ember.overrideChains(a, c,i),a.didDefineProperty&&a.didDefineProperty(a,c,m ),this}}(),function(){function a(a,b,c,d){h&&!d?l.push (a,b,c):Ember.sendEvent(a,b,[a,c])}function b(){m.clear (),l.flush()}function c(a){return a+e}function d(a) {return a+f}var e=":change",f=":before",g=Ember.guidFor ,h=0,i=[].slice,j=function(){this.targetSet={}};j.prototype .add=function(a,b){var c=this.targetSet,d=Ember.guidFor (a),e=c[d];return e||(c[d]=e={}),e[b]?!1:e[b]=!0},j .prototype.clear=function(){this.targetSet={}};var k= function(){this.targetSet={},this.queue=[]};k.prototype .push=function(a,b,c){var d=this.targetSet,e=this.queue ,f=Ember.guidFor(a),g=d[f],h;g||(d[f]=g={}),h=g[b], h===undefined?g[b]=e.push(Ember.deferEvent(a,b,[a,c ]))-1:e[h]=Ember.deferEvent(a,b,[a,c])},k.prototype .flush=function(){var a=this.queue;this.queue=[],this .targetSet={};for(var b=0,c=a.length;b0||b==="length",g=e.proto,h= e.descs[b];if(!f)return;if(g===a)return;h&&h.willChange&& h.willChange(a,b),d(a,b,e),l(a,b,e),Ember.notifyBeforeObservers (a,b)}function o(a,b){var c=q(a,!1),d=c.watching[b]>0|| b==="length",f=c.proto,g=c.descs[b];if(f===a)return; g&&g.didChange&&g.didChange(a,b);if(!d&&b!=="length" )return;e(a,b,c),m(a,b,c),Ember.notifyObservers(a,b )}var p=Ember.guidFor,q=Ember.meta,r=Ember.get,s=Ember .set,t=Ember.normalizeTuple,u=Ember.GUID_KEY,v=Ember .META_KEY,w=Ember.notifyObservers,x=Ember.ArrayPolyfills .forEach,y=/^([^\.\*]+)/,z=/[\.\*]/,A=Ember.ENV.MANDATORY_SETTER ,B=Ember.platform.defineProperty,C={__emberproto__:!0 },D,E,F=[],G=function(a,b,c,d){var e;this._parent=a ,this._key=b,this._watching=c===undefined,this._value= c,this._separator=d||".",this._paths={},this._watching&& (this._object=a.value(),this._object&&f(this._object ,this._key,this)),this._parent&&this._parent._key==="@each"&& this.value()},H=G.prototype;H.value=function(){if(this ._value===undefined&&this._watching){var a=this._parent .value();this._value=a&&!i(a)?r(a,this._key):undefined }return this._value},H.destroy=function(){if(this._watching ){var a=this._object;a&&g(a,this._key,this),this._watching=!1 }},H.copy=function(a){var b=new G(null,null,a,this. _separator),c=this._paths,d;for(d in c){if(c[d]<=0) continue;b.add(d)}return b},H.add=function(b){var c ,d,e,f,g,h;h=this._paths,h[b]=(h[b]||0)+1,c=this.value (),d=t(c,b);if(d[0]&&d[0]===c)b=d[1],e=a(b),b=b.slice (e.length+1);else{if(!d[0]){F.push([this,b]),d.length=0 ;return}f=d[0],e=b.slice(0,0-(d[1].length+1)),g=b.slice (e.length,e.length+1),b=d[1]}d.length=0,this.chain( e,b,f,g)},H.remove=function(b){var c,d,e,f,g;g=this ._paths,g[b]>0&&g[b]--,c=this.value(),d=t(c,b),d[0]=== c?(b=d[1],e=a(b),b=b.slice(e.length+1)):(f=d[0],e=b .slice(0,0-(d[1].length+1)),b=d[1]),d.length=0,this .unchain(e,b)},H.count=0,H.chain=function(b,c,d,e){ var f=this._chains,g;f||(f=this._chains={}),g=f[b], g||(g=f[b]=new G(this,b,d,e)),g.count++,c&&c.length>0&& (b=a(c),c=c.slice(b.length+1),g.chain(b,c))},H.unchain= function(b,c){var d=this._chains,e=d[b];c&&c.length>1&& (b=a(c),c=c.slice(b.length+1),e.unchain(b,c)),e.count-- ,e.count<=0&&(delete d[e._key],e.destroy())},H.willChange= function(){var a=this._chains;if(a)for(var b in a){ if(!a.hasOwnProperty(b))continue;a[b].willChange()} this._parent&&this._parent.chainWillChange(this,this ._key,1)},H.chainWillChange=function(a,b,c){this._key&& (b=this._key+this._separator+b),this._parent?this._parent .chainWillChange(this,b,c+1):(c>1&&Ember.propertyWillChange (this.value(),b),b="this."+b,this._paths[b]>0&&Ember .propertyWillChange(this.value(),b))},H.chainDidChange= function(a,b,c){this._key&&(b=this._key+this._separator+ b),this._parent?this._parent.chainDidChange(this,b, c+1):(c>1&&Ember.propertyDidChange(this.value(),b), b="this."+b,this._paths[b]>0&&Ember.propertyDidChange (this.value(),b))},H.didChange=function(a){if(this. _watching){var b=this._parent.value();b!==this._object&& (g(this._object,this._key,this),this._object=b,f(b, this._key,this)),this._value=undefined,this._parent&& this._parent._key==="@each"&&this.value()}var c=this ._chains;if(c)for(var d in c){if(!c.hasOwnProperty( d))continue;c[d].didChange(a)}if(a)return;this._parent&& this._parent.chainDidChange(this,this._key,1)},Ember .overrideChains=function(a,b,c){k(a,c,b,"didChange" ,!0)},Ember.watch=function(a,c){if(c==="length"&&Ember .typeOf(a)==="array")return this;var d=q(a),e=d.watching ,f;return e[c]?e[c]=(e[c]||0)+1:(e[c]=1,b(c)?(f=d.descs [c],f&&f.willWatch&&f.willWatch(a,c),"function"==typeof a.willWatchProperty&&a.willWatchProperty(c),A&&c in a&&(d.values[c]=a[c],B(a,c,{configurable:!0,enumerable :!0,set:function(){},get:function(){var a=this[v];return a&& a.values[c]}}))):j(a).add(c)),this},Ember.isWatching= function(a,b){var c=a[v];return(c&&c.watching[b])>0 },Ember.watch.flushPending=h,Ember.unwatch=function( a,c){if(c==="length"&&Ember.typeOf(a)==="array")return this ;var d=q(a),e=d.watching,f;return e[c]===1?(e[c]=0, b(c)?(f=d.descs[c],f&&f.didUnwatch&&f.didUnwatch(a, c),"function"==typeof a.didUnwatchProperty&&a.didUnwatchProperty (c),A&&c in a&&(B(a,c,{configurable:!0,enumerable:!0 ,writable:!0,value:d.values[c]}),delete d.values[c] )):j(a).remove(c)):e[c]>1&&e[c]--,this},Ember.rewatch= function(a){var b=q(a,!1),c=b.chains;return u in a&&! a.hasOwnProperty(u)&&Ember.generateGuid(a,"ember"), c&&c.value()!==a&&(b.chains=c.copy(a)),this},Ember. finishChains=function(a){var b=q(a,!1),c=b.chains;c&& (c.value()!==a&&(b.chains=c=c.copy(a)),c.didChange(!0 ))},Ember.propertyWillChange=n,Ember.propertyDidChange= o;var I=[];Ember.destroy=function(a){var b=a[v],c,d ,e,f;if(b){a[v]=null,c=b.chains;if(c){I.push(c);while( I.length>0){c=I.pop(),d=c._chains;if(d)for(e in d)d .hasOwnProperty(e)&&I.push(d[e]);c._watching&&(f=c. _object,f&&g(f,c._key,c))}}}}}(),function(){function a (a,b,c){var d=b[c];return d?d.__emberproto__!==a&&( d=b[c]=j(d),d.__emberproto__=a):d=b[c]={__emberproto__ :a},d}function b(a,b){var c=b.deps;return c?c.__emberproto__!== a&&(c=b.deps=j(c),c.__emberproto__=a):c=b.deps={__emberproto__ :a},c}function c(c,d,e,f){var g=c._dependentKeys,h, i,j,k,m;if(!g)return;h=b(d,f);for(i=0,j=g.length;i< j;i++)k=g[i],m=a(d,h,k),m[e]=(m[e]||0)+1,l(d,k)}function d (c,d,e,f){var g=c._dependentKeys,h,i,j,k,l;if(!g)return; h=b(d,f);for(i=0,j=g.length;i1&&(b=i.call(arguments,0,-1),a=i.call(arguments ,-1)[0]);var c=new e(a);return b&&c.property.apply( c,b),c},Ember.cacheFor=function(a,b){var c=g(a,!1). cache;if(c&&b in c)return c[b]},Ember.computed.not= function(a){return Ember.computed(a,function(b){return! f(this,a)}).cacheable()},Ember.computed.empty=function( a){return Ember.computed(a,function(b){var c=f(this ,a);return c===undefined||c===null||c===""||Ember.isArray (c)&&f(c,"length")===0}).cacheable()},Ember.computed .bool=function(a){return Ember.computed(a,function( b){return!!f(this,a)}).cacheable()}}(),function(){function a (a,b,c,d){return p(a,["listeners",b,q(c)],d)}function b (a,b){var c=o(a,!1).listeners;return c?c[b]||!1:!1} function c(a,c,d,e){var f=b(a,c);if(!f)return!1;for( var g in f){if(s[g])continue;var h=f[g];if(h)for(var i in h){if(s[i])continue;var j=h[i];if(j&&d(j,e,a)===!0) return!0}}return!1}function d(a,b,c){var d=a.method ,e=a.target;e||(e=c),"string"==typeof d&&(d=e[d]),b? d.apply(e,b):d.apply(e)}function e(b,c,d,e){!e&&"function"==typeof d&&(e=d,d=null);var f=a(b,c,d,!0),g=q(e);f[g]||(f[g ]={target:d,method:e}),"function"==typeof b.didAddListener&& b.didAddListener(c,d,e)}function f(b,c,d,e){!e&&"function"==typeof d&&(e=d,d=null);var f=a(b,c,d,!0),g=q(e);f&&f[g]&&( f[g]=null),"function"==typeof b.didRemoveListener&& b.didRemoveListener(c,d,e)}function g(b,c,d,e,f){!e&&"function"==typeof d&&(e=d,d=null);var g=a(b,c,d,!0),h=q(e),i=g&&g[h]; g[h]=null;try{return f.call(d)}finally{g[h]=i}}function h (b,c,d,e,f){!e&&"function"==typeof d&&(e=d,d=null); var g=[],h=[],i,j,k,l,m,n;for(m=0,n=c.length;m0&&(c=c.length>d?g.call(c,d):null),Ember .handleErrors(function(){return b.apply(a||this,c|| [])},this)}function b(){l=null,k.currentRunLoop&&k. end()}function c(){n=null;var b=+(new Date),d=-1;for( var e in m){if(!m.hasOwnProperty(e))continue;var f= m[e];if(f&&f.expires)if(b>=f.expires)delete m[e],a( f.target,f.method,f.args,2);else if(d<0||f.expires< d)d=f.expires}d>0&&(n=setTimeout(c,d- +(new Date))) }function d(b,c){c[this.tguid]&&delete c[this.tguid ][this.mguid],m[b]&&a(this.target,this.method,this. args),delete m[b]}function e(a,b,c,e){var f=Ember.guidFor (b),g=Ember.guidFor(c),h=k.autorun().onceTimers,i=h [f]&&h[f][g],j;return i&&m[i]?m[i].args=e:(j={target :b,method:c,args:e,tguid:f,mguid:g},i=Ember.guidFor (j),m[i]=j,h[f]||(h[f]={}),h[f][g]=i,k.schedule(a,j ,d,i,h)),i}function f(){o=null;for(var b in m){if(! m.hasOwnProperty(b))continue;var c=m[b];c.next&&(delete m[b],a(c.target,c.method,c.args,2))}}var g=[].slice ,h=Ember.ArrayPolyfills.forEach,i,j=function(a){this ._prev=a||null,this.onceTimers={}};j.prototype={end :function(){this.flush()},prev:function(){return this ._prev},schedule:function(a,b,c){var d=this._queues ,e;d||(d=this._queues={}),e=d[a],e||(e=d[a]=[]);var f= arguments.length>3?g.call(arguments,3):null;return e .push({target:b,method:c,args:f}),this},flush:function( b){function c(b){a(b.target,b.method,b.args)}var d, e,f,g,j;if(!this._queues)return this;Ember.watch.flushPending ();if(b)while(this._queues&&(g=this._queues[b])){this ._queues[b]=null;if(b==="sync"){j=Ember.LOG_BINDINGS ,j&&Ember.Logger.log("Begin: Flush Sync Queue"),Ember .beginPropertyChanges();try{h.call(g,c)}finally{Ember .endPropertyChanges()}j&&Ember.Logger.log("End: Flush Sync Queue" )}else h.call(g,c)}else{d=Ember.run.queues,f=d.length ,e=0;k:while(e("+this._from+" -> "+this._to+")"+a},connect :function(b){var c=this._from,d=this._to;return Ember .trySet(b,d,a(b,c)),Ember.addObserver(b,c,this,this .fromDidChange),this._oneWay||Ember.addObserver(b,d ,this,this.toDidChange),this._readyToSync=!0,this}, disconnect:function(a){var b=!this._oneWay;return Ember .removeObserver(a,this._from,this,this.fromDidChange ),b&&Ember.removeObserver(a,this._to,this,this.toDidChange ),this._readyToSync=!1,this},fromDidChange:function( a){this._scheduleSync(a,"fwd")},toDidChange:function( a){this._scheduleSync(a,"back")},_scheduleSync:function( a,b){var c=this._directionMap,d=c.get(a);d||(Ember. run.schedule("sync",this,this._sync,a),c.set(a,b)), d==="back"&&b==="fwd"&&c.set(a,"fwd")},_sync:function( b){var d=Ember.LOG_BINDINGS;if(b.isDestroyed||!this ._readyToSync)return;var e=this._directionMap,f=e.get (b),g=this._from,h=this._to;e.remove(b);if(f==="fwd" ){var i=a(b,this._from);d&&Ember.Logger.log(" ",this .toString(),"->",i,b),this._oneWay?Ember.trySet(b,h ,i):Ember._suspendObserver(b,h,this,this.toDidChange ,function(){Ember.trySet(b,h,i)})}else if(f==="back" ){var j=c(b,this._to);d&&Ember.Logger.log(" ",this. toString(),"<-",j,b),Ember._suspendObserver(b,g,this ,this.fromDidChange,function(){Ember.trySet(Ember.isGlobalPath (g)?window:b,g,j)})}}},b(g,{from:function(){var a=this ,b=new a;return b.from.apply(b,arguments)},to:function( ){var a=this,b=new a;return b.to.apply(b,arguments) },oneWay:function(a,b){var c=this,d=new c(null,a);return d .oneWay(b)}}),Ember.Binding=g,Ember.bind=function(a ,b,c){return(new Ember.Binding(b,c)).connect(a)},Ember .oneWay=function(a,b,c){return(new Ember.Binding(b, c)).oneWay().connect(a)}}(),function(){function a(a ){var b=Ember.meta(a,!0),c=b.mixins;return c?c.__emberproto__!== a&&(c=b.mixins=y(c),c.__emberproto__=a):c=b.mixins= {__emberproto__:a},c}function b(a,b){return b&&b.length>0&& (a.mixins=s.call(b,function(a){if(a instanceof n)return a ;var b=new n;return b.properties=a,b})),a}function c (a){return"function"==typeof a&&a.isMethod!==!1&&a!== Boolean&&a!==Object&&a!==Number&&a!==Array&&a!==Date&& a!==String}function d(a,b,e,f,g){function h(a){delete e[a],delete f[a]}var i=a.length,j,k,l,m,p,q,r,s;for( j=0;j=0||q==="concatenatedProperties" ){var x=f[q]||g[q];p=x?x.concat(p):Ember.makeArray( p)}e[q]=undefined,f[q]=p}}m.hasOwnProperty("toString" )&&(g.toString=m.toString)}else k.mixins&&(d(k.mixins ,b,e,f,g),k._without&&u.call(k._without,h))}}function e (a){var b=Ember.meta(a),c=b.required;if(!c||c.__emberproto__!== a)c=b.required=c?y(c):{__ember_count__:0},c.__emberproto__= a;return c}function f(a,b,c,d){if(B.test(b)){var e= d.bindings;e?e.__emberproto__!==a&&(e=d.bindings=y( d.bindings),e.__emberproto__=a):e=d.bindings={__emberproto__ :a},e[b]=c}}function g(a,b){var c=b.bindings,d,e,f; if(c){for(d in c)e=d!=="__emberproto__"&&c[d],e&&(f= d.slice(0,-7),e instanceof Ember.Binding?(e=e.copy( ),e.to(f)):e=new Ember.Binding(f,e),e.connect(a),a[ d]=e);b.bindings={__emberproto__:a}}}function h(a,b ){return g(a,b||Ember.meta(a)),a}function i(b,c,g){ var i={},j={},k=Ember.meta(b),l=k.required,m,n,q,r, s,t,u;d(c,a(b),i,j,b);for(m in j){if(m==="contructor" )continue;if(!j.hasOwnProperty(m))continue;q=i[m],n= j[m];if(q===o)m in b||(l=e(b),l.__ember_count__++,l [m]=!0);else{while(q&&q instanceof p){var v=q.methodName ;i[v]||j[v]?(n=j[v],q=i[v]):k.descs[v]?(q=k.descs[v ],n=undefined):(q=undefined,n=b[v])}if(q===undefined&& n===undefined)continue;r=b[m];if("function"==typeof r)if(s=r.__ember_observesBefore__){t=s.length;for(u=0 ;u0){var w=[];for( m in l){if(x[m])continue;w.push(m)}}return b}function j (a,b,c){var d=A(a);if(c[d])return!1;c[d]=!0;if(a=== b)return!0;var e=a.mixins,f=e?e.length:0;while(--f>=0 )if(j(e[f],b,c))return!0;return!1}function k(a,b,c) {if(c[A(b)])return;c[A(b)]=!0;if(b.properties){var d= b.properties;for(var e in d)d.hasOwnProperty(e)&&(a [e]=!0)}else b.mixins&&u.call(b.mixins,function(b){ k(a,b,c)})}function l(a,b,c){var d=a.length;for(var e in b){if(!b.hasOwnProperty||!b.hasOwnProperty(e))continue; var f=b[e];a[d]=e;if(f&&f.toString===q)f[D]=a.join("." );else if(f&&E(f,"isNamespace")){if(c[A(f)])continue; c[A(f)]=!0,l(a,f,c)}}a.length=d}function m(){var a= Ember.Namespace,b,c;if(a.PROCESSED)return;for(var d in window){if(d==="globalStorage"&&window.StorageList&& window.globalStorage instanceof window.StorageList) continue;if(window.hasOwnProperty&&!window.hasOwnProperty (d))continue;try{b=window[d],c=b&&E(b,"isNamespace" )}catch(e){continue}c&&(b[D]=d)}}var n,o,p,q,r,s=Ember .ArrayPolyfills.map,t=Ember.ArrayPolyfills.indexOf, u=Ember.ArrayPolyfills.forEach,v=[].slice,w={},x={__emberproto__ :!0,__ember_count__:!0},y=Ember.create,z=Ember.defineProperty ,A=Ember.guidFor,B=Ember.IS_BINDING=/^.+Binding$/;Ember .mixin=function(a){var b=v.call(arguments,1);return i (a,b,!1),a},Ember.Mixin=function(){return b(this,arguments )},n=Ember.Mixin,n._apply=i,n.applyPartial=function( a){var b=v.call(arguments,1);return i(a,b,!0)},n.finishPartial= h,n.create=function(){q.processed=!1;var a=this;return b (new a,arguments)};var C=n.prototype;C.reopen=function( ){var a,b;this.properties?(a=n.create(),a.properties= this.properties,delete this.properties,this.mixins= [a]):this.mixins||(this.mixins=[]);var c=arguments. length,d=this.mixins,e;for(e=0;e=0)return f[h];if(Ember.typeOf(c)==="array" ){g=c.slice();if(d){h=g.length;while(--h>=0)g[h]=a( g[h],d,e,f)}}else if(Ember.Copyable&&Ember.Copyable .detect(c))g=c.copy(d,e,f);else{g={};for(i in c){if(! c.hasOwnProperty(i))continue;g[i]=d?a(c[i],d,e,f):c [i]}}return d&&(e.push(c),f.push(g)),g}var b=Ember. EnumerableUtils.indexOf,c={},d="Boolean Number String Function Array Date RegExp Object" .split(" ");Ember.ArrayPolyfills.forEach.call(d,function( a){c["[object "+a+"]"]=a.toLowerCase()});var e=Object .prototype.toString;Ember.typeOf=function(a){var b; return b=a===null||a===undefined?String(a):c[e.call (a)]||"object",b==="function"?Ember.Object&&Ember.Object .detect(a)&&(b="class"):b==="object"&&(a instanceof Error?b="error":Ember.Object&&a instanceof Ember.Object? b="instance":b="object"),b},Ember.none=function(a){ return a===null||a===undefined},Ember.empty=function( a){return a===null||a===undefined||a.length===0&&typeof a!="function"||typeof a=="object"&&Ember.get(a,"length" )===0},Ember.compare=function g(a,b){if(a===b)return 0 ;var c=Ember.typeOf(a),d=Ember.typeOf(b),e=Ember.Comparable ;if(e){if(c==="instance"&&e.detect(a.constructor))return a .constructor.compare(a,b);if(d==="instance"&&e.detect (b.constructor))return 1-b.constructor.compare(b,a) }var f=Ember.ORDER_DEFINITION_MAPPING;if(!f){var h= Ember.ORDER_DEFINITION;f=Ember.ORDER_DEFINITION_MAPPING= {};var i,j;for(i=0,j=h.length;il)return 1;switch(c){case"boolean":case"number" :if(ab)return 1;return 0;case"string" :var m=a.localeCompare(b);if(m<0)return-1;if(m>0)return 1 ;return 0;case"array":var n=a.length,o=b.length,p=Math .min(n,o),q=0,r=0;while(q===0&&ro)return 1; return 0;case"instance":if(Ember.Comparable&&Ember. Comparable.detect(a))return a.compare(a,b);return 0 ;case"date":var s=a.getTime(),t=b.getTime();if(st)return 1;return 0;default:return 0} },Ember.copy=function(b,c){return"object"!=typeof b|| b===null?b:Ember.Copyable&&Ember.Copyable.detect(b)? b.copy(c):a(b,c,c?[]:null,c?[]:null)},Ember.inspect= function(a){var b,c=[];for(var d in a)if(a.hasOwnProperty (d)){b=a[d];if(b==="toString")continue;Ember.typeOf (b)==="function"&&(b="function() { ... }"),c.push(d+": "+ b)}return"{"+c.join(" , ")+"}"},Ember.isEqual=function( a,b){return a&&"function"==typeof a.isEqual?a.isEqual (b):a===b},Ember.ORDER_DEFINITION=Ember.ENV.ORDER_DEFINITION|| ["undefined","null","boolean","number","string","array" ,"object","instance","function","class","date"],Ember .keys=Object.keys,Ember.keys||(Ember.keys=function( a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push (c);return b});var f=["description","fileName","lineNumber" ,"message","name","number","stack"];Ember.Error=function( ){var a=Error.prototype.constructor.apply(this,arguments );for(var b=0;b1&&(b=f.call(arguments,1)),this.forEach(function( d,e){var f=d&&d[a];"function"==typeof f&&(c[e]=b?f. apply(d,b):f.call(d))},this),c},toArray:function(){ var a=[];return this.forEach(function(b,c){a[c]=b}) ,a},compact:function(){return this.without(null)},without :function(a){if(!this.contains(a))return this;var b= [];return this.forEach(function(c){c!==a&&(b[b.length ]=c)}),b},uniq:function(){var a=[];return this.forEach (function(b){g(a,b)<0&&a.push(b)}),a},"[]":Ember.computed (function(a,b){return this}).property().cacheable() ,addEnumerableObserver:function(a,b){var c=b&&b.willChange||"enumerableWillChange" ,e=b&&b.didChange||"enumerableDidChange",f=d(this,"hasEnumerableObservers" );return f||Ember.propertyWillChange(this,"hasEnumerableObservers" ),Ember.addListener(this,"@enumerable:before",a,c), Ember.addListener(this,"@enumerable:change",a,e),f|| Ember.propertyDidChange(this,"hasEnumerableObservers" ),this},removeEnumerableObserver:function(a,b){var c= b&&b.willChange||"enumerableWillChange",e=b&&b.didChange||"enumerableDidChange" ,f=d(this,"hasEnumerableObservers");return f&&Ember .propertyWillChange(this,"hasEnumerableObservers"), Ember.removeListener(this,"@enumerable:before",a,c) ,Ember.removeListener(this,"@enumerable:change",a,e ),f&&Ember.propertyDidChange(this,"hasEnumerableObservers" ),this},hasEnumerableObservers:Ember.computed(function( ){return Ember.hasListeners(this,"@enumerable:change" )||Ember.hasListeners(this,"@enumerable:before")}). property().cacheable(),enumerableContentWillChange: function(a,b){var c,e,f;return"number"==typeof a?c= a:a?c=d(a,"length"):c=a=-1,"number"==typeof b?e=b:b? e=d(b,"length"):e=b=-1,f=e<0||c<0||e-c!==0,a===-1&& (a=null),b===-1&&(b=null),Ember.propertyWillChange( this,"[]"),f&&Ember.propertyWillChange(this,"length" ),Ember.sendEvent(this,"@enumerable:before",[this,a ,b]),this},enumerableContentDidChange:function(a,b) {var c=this.propertyDidChange,e,f,g;return"number"==typeof a?e=a:a?e=d(a,"length"):e=a=-1,"number"==typeof b?f= b:b?f=d(b,"length"):f=b=-1,g=f<0||e<0||f-e!==0,a===-1&& (a=null),b===-1&&(b=null),Ember.sendEvent(this,"@enumerable:change" ,[this,a,b]),g&&Ember.propertyDidChange(this,"length" ),Ember.propertyDidChange(this,"[]"),this}})}(),function( ){function a(a){return a===null||a===undefined}var b= Ember.get,c=Ember.set,d=Ember.meta,e=Ember.EnumerableUtils .map,f=Ember.cacheFor;Ember.Array=Ember.Mixin.create (Ember.Enumerable,{isSCArray:!0,length:Ember.required (),objectAt:function(a){return a<0||a>=b(this,"length" )?undefined:b(this,a)},objectsAt:function(a){var b= this;return e(a,function(a){return b.objectAt(a)})} ,nextObject:function(a){return this.objectAt(a)},"[]" :Ember.computed(function(a,c){return c!==undefined&& this.replace(0,b(this,"length"),c),this}).property( ).cacheable(),firstObject:Ember.computed(function() {return this.objectAt(0)}).property().cacheable(),lastObject :Ember.computed(function(){return this.objectAt(b(this ,"length")-1)}).property().cacheable(),contains:function( a){return this.indexOf(a)>=0},slice:function(c,d){var e= [],f=b(this,"length");a(c)&&(c=0);if(a(d)||d>f)d=f; while(c=e)c=e-1;c<0&&(c+=e);for(d=c;d>=0;d--)if(this.objectAt (d)===a)return d;return-1},addArrayObserver:function( a,c){var d=c&&c.willChange||"arrayWillChange",e=c&& c.didChange||"arrayDidChange",f=b(this,"hasArrayObservers" );return f||Ember.propertyWillChange(this,"hasArrayObservers" ),Ember.addListener(this,"@array:before",a,d),Ember .addListener(this,"@array:change",a,e),f||Ember.propertyDidChange (this,"hasArrayObservers"),this},removeArrayObserver :function(a,c){var d=c&&c.willChange||"arrayWillChange" ,e=c&&c.didChange||"arrayDidChange",f=b(this,"hasArrayObservers" );return f&&Ember.propertyWillChange(this,"hasArrayObservers" ),Ember.removeListener(this,"@array:before",a,d),Ember .removeListener(this,"@array:change",a,e),f&&Ember. propertyDidChange(this,"hasArrayObservers"),this},hasArrayObservers :Ember.computed(function(){return Ember.hasListeners (this,"@array:change")||Ember.hasListeners(this,"@array:before" )}).property().cacheable(),arrayContentWillChange:function( a,c,d){a===undefined?(a=0,c=d=-1):(c===undefined&&( c=-1),d===undefined&&(d=-1)),Ember.isWatching(this,"@each" )&&b(this,"@each"),Ember.sendEvent(this,"@array:before" ,[this,a,c,d]);var e,f;if(a>=0&&c>=0&&b(this,"hasEnumerableObservers" )){e=[],f=a+c;for(var g=a;g=0&&d>=0&&b(this,"hasEnumerableObservers" )){e=[],g=a+d;for(var h=a;hc(this,"length" ))throw new Error(a);return this.replace(b,0,[d]),this },removeAt:function(d,e){if("number"==typeof d){if( d<0||d>=c(this,"length"))throw new Error(a);e===undefined&& (e=1),this.replace(d,e,b)}return this},pushObject:function( a){return this.insertAt(c(this,"length"),a),a},pushObjects :function(a){return this.replace(c(this,"length"),0 ,a),this},popObject:function(){var a=c(this,"length" );if(a===0)return null;var b=this.objectAt(a-1);return this .removeAt(a-1,1),b},shiftObject:function(){if(c(this ,"length")===0)return null;var a=this.objectAt(0);return this .removeAt(0),a},unshiftObject:function(a){return this .insertAt(0,a),a},unshiftObjects:function(a){return this .replace(0,0,a),this},reverseObjects:function(){var a= c(this,"length");if(a===0)return this;var b=this.toArray ().reverse();return this.replace(0,a,b),this},setObjects :function(a){if(a.length===0)return this.clear();var b= c(this,"length");return this.replace(0,b,a),this},removeObject :function(a){var b=c(this,"length")||0;while(--b>=0 ){var d=this.objectAt(b);d===a&&this.removeAt(b)}return this },addObject:function(a){return this.contains(a)||this .pushObject(a),this}})}(),function(){var a=Ember.get ,b=Ember.set,c=Ember.defineProperty;Ember.Observable= Ember.Mixin.create({isObserverable:!0,get:function( b){return a(this,b)},getProperties:function(){var b= {},c=arguments;arguments.length===1&&Ember.typeOf(arguments [0])==="array"&&(c=arguments[0]);for(var d=0;d"}}),Ember.config.overridePrototypeMixin&& Ember.config.overridePrototypeMixin(u.PrototypeMixin ),u.__super__=null;var v=o.create({ClassMixin:Ember .required(),PrototypeMixin:Ember.required(),isClass :!0,isMethod:!1,extend:function(){var b=a(),c;return b .ClassMixin=o.create(this.ClassMixin),b.PrototypeMixin= o.create(this.PrototypeMixin),b.ClassMixin.ownerConstructor= b,b.PrototypeMixin.ownerConstructor=b,r.apply(b.PrototypeMixin ,arguments),b.superclass=this,b.__super__=this.prototype ,c=b.prototype=d(this.prototype),c.constructor=b,i( c,"ember"),j(c).proto=c,b.ClassMixin.apply(b),b},create :function(){var a=this;return arguments.length>0&&this ._initMixins(arguments),new a},reopen:function(){return this .willReopen(),r.apply(this.PrototypeMixin,arguments ),this},reopenClass:function(){return r.apply(this. ClassMixin,arguments),p(this,arguments,!1),this},detect :function(a){if("function"!=typeof a)return!1;while( a){if(a===this)return!0;a=a.superclass}return!1},detectInstance :function(a){return a instanceof this},metaForProperty :function(a){var b=j(this.proto(),!1).descs[a];return b ._meta||{}},eachComputedProperty:function(a,b){var c= this.proto(),d=j(c).descs,e={},f;for(var g in d)f=d [g],f instanceof Ember.ComputedProperty&&a.call(b|| this,g,f._meta||e)}});Ember.config.overrideClassMixin&& Ember.config.overrideClassMixin(v),u.ClassMixin=v,v .apply(u),Ember.CoreObject=u}(),function(){var a=Ember .get,b=Ember.set,c=Ember.guidFor,d=Ember.none;Ember .Set=Ember.CoreObject.extend(Ember.MutableEnumerable ,Ember.Copyable,Ember.Freezable,{length:0,clear:function( ){if(this.isFrozen)throw new Error(Ember.FROZEN_ERROR );var d=a(this,"length");if(d===0)return this;var e ;this.enumerableContentWillChange(d,0),Ember.propertyWillChange (this,"firstObject"),Ember.propertyWillChange(this,"lastObject" );for(var f=0;f=0)if(!b.contains(this[c]))return!1;return!0 },add:Ember.alias("addObject"),remove:Ember.alias("removeObject" ),pop:function(){if(a(this,"isFrozen"))throw new Error (Ember.FROZEN_ERROR);var b=this.length>0?this[this. length-1]:null;return this.remove(b),b},push:Ember. alias("addObject"),shift:Ember.alias("pop"),unshift :Ember.alias("push"),addEach:Ember.alias("addObjects" ),removeEach:Ember.alias("removeObjects"),init:function( a){this._super(),a&&this.addObjects(a)},nextObject: function(a){return this[a]},firstObject:Ember.computed (function(){return this.length>0?this[0]:undefined} ).property().cacheable(),lastObject:Ember.computed( function(){return this.length>0?this[this.length-1] :undefined}).property().cacheable(),addObject:function( e){if(a(this,"isFrozen"))throw new Error(Ember.FROZEN_ERROR );if(d(e))return this;var f=c(e),g=this[f],h=a(this ,"length"),i;return g>=0&&g=0&&g=0},copy:function(){ var d=this.constructor,e=new d,f=a(this,"length");b (e,"length",f);while(--f>=0)e[f]=this[f],e[c(this[f ])]=f;return e},toString:function(){var a=this.length ,b,c=[];for(b=0;b" .fmt(c.join(","))}})}(),function(){Ember.Object=Ember .CoreObject.extend(Ember.Observable)}(),function(){ var a=Ember.ArrayPolyfills.indexOf;Ember.Namespace= Ember.Object.extend({isNamespace:!0,init:function() {Ember.Namespace.NAMESPACES.push(this),Ember.Namespace .PROCESSED=!1},toString:function(){return Ember.identifyNamespaces (),this[Ember.GUID_KEY+"_name"]},destroy:function() {var b=Ember.Namespace.NAMESPACES;window[this.toString ()]=undefined,b.splice(a.call(b,this),1),this._super ()}}),Ember.Namespace.NAMESPACES=[Ember],Ember.Namespace .PROCESSED=!1}(),function(){Ember.Application=Ember .Namespace.extend()}(),function(){var a=Ember.get,b= Ember.set;Ember.ArrayProxy=Ember.Object.extend(Ember .MutableArray,{content:null,arrangedContent:Ember.computed ("content",function(){return a(this,"content")}).cacheable (),objectAtContent:function(b){return a(this,"arrangedContent" ).objectAt(b)},replaceContent:function(b,c,d){a(this ,"arrangedContent").replace(b,c,d)},_contentWillChange :Ember.beforeObserver(function(){this._teardownContent ()},"content"),_teardownContent:function(){var b=a( this,"content");b&&b.removeArrayObserver(this,{willChange :"contentArrayWillChange",didChange:"contentArrayDidChange" })},contentArrayWillChange:Ember.K,contentArrayDidChange :Ember.K,_contentDidChange:Ember.observer(function( ){var b=a(this,"content");this._setupContent()},"content" ),_setupContent:function(){var b=a(this,"content"); b&&b.addArrayObserver(this,{willChange:"contentArrayWillChange" ,didChange:"contentArrayDidChange"})},_arrangedContentWillChange :Ember.beforeObserver(function(){var b=a(this,"arrangedContent" ),c=b?a(b,"length"):0;this.arrangedContentArrayWillChange (this,0,c,undefined),this.arrangedContentWillChange (this),this._teardownArrangedContent(b)},"arrangedContent" ),_arrangedContentDidChange:Ember.observer(function( ){var b=a(this,"arrangedContent"),c=b?a(b,"length") :0;this._setupArrangedContent(),this.arrangedContentDidChange (this),this.arrangedContentArrayDidChange(this,0,undefined ,c)},"arrangedContent"),_setupArrangedContent:function( ){var b=a(this,"arrangedContent");b&&b.addArrayObserver (this,{willChange:"arrangedContentArrayWillChange", didChange:"arrangedContentArrayDidChange"})},_teardownArrangedContent :function(){var b=a(this,"arrangedContent");b&&b.removeArrayObserver (this,{willChange:"arrangedContentArrayWillChange", didChange:"arrangedContentArrayDidChange"})},arrangedContentWillChange :Ember.K,arrangedContentDidChange:Ember.K,objectAt: function(b){return a(this,"content")&&this.objectAtContent (b)},length:Ember.computed(function(){var b=a(this,"arrangedContent" );return b?a(b,"length"):0}).property().cacheable() ,replace:function(b,c,d){return a(this,"content")&& this.replaceContent(b,c,d),this},arrangedContentArrayWillChange :function(a,b,c,d){this.arrayContentWillChange(b,c, d)},arrangedContentArrayDidChange:function(a,b,c,d) {this.arrayContentDidChange(b,c,d)},init:function() {this._super(),this._setupContent(),this._setupArrangedContent ()},willDestroy:function(){this._teardownArrangedContent (),this._teardownContent()}})}(),function(){function a (a,b){var c=b.slice(8);if(c in this)return;j(this,c )}function b(a,b){var c=b.slice(8);if(c in this)return; k(this,c)}var c=Ember.get,d=Ember.set,e=Ember.String .fmt,f=Ember.addBeforeObserver,g=Ember.addObserver, h=Ember.removeBeforeObserver,i=Ember.removeObserver ,j=Ember.propertyWillChange,k=Ember.propertyDidChange ;Ember.ObjectProxy=Ember.Object.extend({content:null ,_contentDidChange:Ember.observer(function(){},"content" ),willWatchProperty:function(c){var d="content."+c; f(this,d,null,a),g(this,d,null,b)},didUnwatchProperty :function(c){var d="content."+c;h(this,d,null,a),i( this,d,null,b)},unknownProperty:function(a){var b=c (this,"content");if(b)return c(b,a)},setUnknownProperty :function(a,b){var e=c(this,"content");return d(e,a ,b)}})}(),function(){function a(a,b,c,d,f){var g=c. _objects,h;g||(g=c._objects={});while(--f>=d){var i= a.objectAt(f);i&&(Ember.addBeforeObserver(i,b,c,"contentKeyWillChange" ),Ember.addObserver(i,b,c,"contentKeyDidChange"),h= e(i),g[h]||(g[h]=[]),g[h].push(f))}}function b(a,b, c,d,f){var g=c._objects;g||(g=c._objects={});var h, i;while(--f>=d){var j=a.objectAt(f);j&&(Ember.removeBeforeObserver (j,b,c,"contentKeyWillChange"),Ember.removeObserver (j,b,c,"contentKeyDidChange"),i=e(j),h=g[i],h[h.indexOf (f)]=null)}}var c=Ember.set,d=Ember.get,e=Ember.guidFor ,f=Ember.EnumerableUtils.forEach,g=Ember.Object.extend (Ember.Array,{init:function(a,b,c){this._super(),this ._keyName=b,this._owner=c,this._content=a},objectAt :function(a){var b=this._content.objectAt(a);return b&& d(b,this._keyName)},length:Ember.computed(function( ){var a=this._content;return a?d(a,"length"):0}).property ().cacheable()}),h=/^.+:(before|change)$/;Ember.EachProxy= Ember.Object.extend({init:function(a){this._super() ,this._content=a,a.addArrayObserver(this),f(Ember.watchedEvents (this),function(a){this.didAddListener(a)},this)},unknownProperty :function(a,b){var c;return c=new g(this._content,a ,this),Ember.defineProperty(this,a,null,c),this.beginObservingContentKey (a),c},arrayWillChange:function(a,c,d,e){var f=this ._keys,g,h,i;i=d>0?c+d:-1,Ember.beginPropertyChanges (this);for(g in f){if(!f.hasOwnProperty(g))continue; i>0&&b(a,g,this,c,i),Ember.propertyWillChange(this, g)}Ember.propertyWillChange(this._content,"@each"), Ember.endPropertyChanges(this)},arrayDidChange:function( b,c,d,e){var f=this._keys,g,h,i;i=e>0?c+e:-1,Ember. beginPropertyChanges(this);for(g in f){if(!f.hasOwnProperty (g))continue;i>0&&a(b,g,this,c,i),Ember.propertyDidChange (this,g)}Ember.propertyDidChange(this._content,"@each" ),Ember.endPropertyChanges(this)},didAddListener:function( a){h.test(a)&&this.beginObservingContentKey(a.slice (0,-7))},didRemoveListener:function(a){h.test(a)&&this .stopObservingContentKey(a.slice(0,-7))},beginObservingContentKey :function(b){var c=this._keys;c||(c=this._keys={}); if(!c[b]){c[b]=1;var e=this._content,f=d(e,"length" );a(e,b,this,0,f)}else c[b]++},stopObservingContentKey :function(a){var c=this._keys;if(c&&c[a]>0&&--c[a]<=0 ){var e=this._content,f=d(e,"length");b(e,a,this,0, f)}},contentKeyWillChange:function(a,b){Ember.propertyWillChange (this,b)},contentKeyDidChange:function(a,b){Ember.propertyDidChange (this,b)}})}(),function(){var a=Ember.get,b=Ember.set ,c=Ember.Mixin.create(Ember.MutableArray,Ember.Observable ,Ember.Copyable,{get:function(a){return a==="length"? this.length:"number"==typeof a?this[a]:this._super( a)},objectAt:function(a){return this[a]},replace:function( b,c,d){if(this.isFrozen)throw Ember.FROZEN_ERROR;var e= d?a(d,"length"):0;this.arrayContentWillChange(b,c,e );if(!d||d.length===0)this.splice(b,c);else{var f=[ b,c].concat(d);this.splice.apply(this,f)}return this .arrayContentDidChange(b,c,e),this},unknownProperty :function(a,b){var c;return b!==undefined&&c===undefined&& (c=this[a]=b),c},indexOf:function(a,b){var c,d=this .length;b===undefined?b=0:b=b<0?Math.ceil(b):Math.floor (b),b<0&&(b+=d);for(c=b;c=0;c--)if(this[c]===a)return c ;return-1},copy:function(){return this.slice()}}),d= ["length"];Ember.EnumerableUtils.forEach(c.keys(),function( a){Array.prototype[a]&&d.push(a)}),d.length>0&&(c=c .without.apply(c,d)),Ember.NativeArray=c,Ember.A=function( a){return a===undefined&&(a=[]),Ember.NativeArray.apply (a)},Ember.NativeArray.activate=function(){c.apply( Array.prototype),Ember.A=function(a){return a||[]}} ,Ember.EXTEND_PROTOTYPES&&Ember.NativeArray.activate ()}(),function(){var a=Ember.get,b=Ember.set;Ember. _PromiseChain=Ember.Object.extend({promises:null,failureCallback :Ember.K,successCallback:Ember.K,abortCallback:Ember .K,promiseSuccessCallback:Ember.K,runNextPromise:function( ){if(a(this,"isDestroyed"))return;var b=a(this,"promises" ).shiftObject();if(b){var c=a(b,"promise")||b,d=this ,e=function(){d.promiseSuccessCallback.call(this,b, arguments),d.runNextPromise()},f=a(d,"failureCallback" );c.then(e,f)}else this.successCallback()},start:function( ){return this.runNextPromise(),this},abort:function( ){this.abortCallback(),this.destroy()},init:function( ){b(this,"promises",Ember.A(a(this,"promises"))),this ._super()}})}(),function(){var a={},b={};Ember.onLoad= function(c,d){var e;a[c]=a[c]||Ember.A(),a[c].pushObject (d),(e=b[c])&&d(e)},Ember.runLoadHooks=function(c,d ){var e;b[c]=d,(e=a[c])&&a[c].forEach(function(a){a (d)})}}(),function(){}(),function(){Ember.ControllerMixin= Ember.Mixin.create({target:null,store:null}),Ember. Controller=Ember.Object.extend(Ember.ControllerMixin )}(),function(){var a=Ember.get,b=Ember.set,c=Ember .EnumerableUtils.forEach;Ember.SortableMixin=Ember. Mixin.create(Ember.MutableEnumerable,{sortProperties :null,sortAscending:!0,addObject:function(b){var c= a(this,"content");c.pushObject(b)},removeObject:function( b){var c=a(this,"content");c.removeObject(b)},orderBy :function(b,d){var e=0,f=a(this,"sortProperties"),g= a(this,"sortAscending");return c(f,function(c){e===0&& (e=Ember.compare(a(b,c),a(d,c)),e!==0&&!g&&(e=-1*e) )}),e},destroy:function(){var b=a(this,"content"),d= a(this,"sortProperties");return b&&d&&c(b,function( a){c(d,function(b){Ember.removeObserver(a,b,this,"contentItemSortPropertyDidChange" )},this)},this),this._super()},isSorted:Ember.computed ("sortProperties",function(){return!!a(this,"sortProperties" )}),arrangedContent:Ember.computed("content","sortProperties.@each" ,function(b,d){var e=a(this,"content"),f=a(this,"isSorted" ),g=a(this,"sortProperties"),h=this;return e&&f?(e= e.slice(),e.sort(function(a,b){return h.orderBy(a,b )}),c(e,function(a){c(g,function(b){Ember.addObserver (a,b,this,"contentItemSortPropertyDidChange")},this )},this),Ember.A(e)):e}).cacheable(),_contentWillChange :Ember.beforeObserver(function(){var b=a(this,"content" ),d=a(this,"sortProperties");b&&d&&c(b,function(a){ c(d,function(b){Ember.removeObserver(a,b,this,"contentItemSortPropertyDidChange" )},this)},this),this._super()},"content"),sortAscendingWillChange :Ember.beforeObserver(function(){this._lastSortAscending= a(this,"sortAscending")},"sortAscending"),sortAscendingDidChange :Ember.observer(function(){if(a(this,"sortAscending" )!==this._lastSortAscending){var b=a(this,"arrangedContent" );b.reverseObjects()}},"sortAscending"),contentArrayWillChange :function(b,d,e,f){var g=a(this,"isSorted");if(g){var h= a(this,"arrangedContent"),i=b.slice(d,d+e),j=a(this ,"sortProperties");c(i,function(a){h.removeObject(a ),c(j,function(b){Ember.removeObserver(a,b,this,"contentItemSortPropertyDidChange" )},this)})}return this._super(b,d,e,f)},contentArrayDidChange :function(b,d,e,f){var g=a(this,"isSorted"),h=a(this ,"sortProperties");if(g){var i=b.slice(d,d+f),j=a(this ,"arrangedContent");c(i,function(a){this.insertItemSorted (a),c(h,function(b){Ember.addObserver(a,b,this,"contentItemSortPropertyDidChange" )},this)},this)}return this._super(b,d,e,f)},insertItemSorted :function(b){var c=a(this,"arrangedContent"),d=a(c,"length" ),e=this._binarySearch(b,0,d);c.insertAt(e,b)},contentItemSortPropertyDidChange :function(b){var c=a(this,"arrangedContent"),d=c.indexOf (b),e=this._binarySearch(b,0,a(c,"length"));e!==d&& (c.removeObject(b),this.insertItemSorted(b))},_binarySearch :function(b,c,d){var e,f,g,h;return c===d?c:(h=a(this ,"arrangedContent"),e=c+Math.floor((d-c)/2),f=h.objectAt (e),g=this.orderBy(f,b),g<0?this._binarySearch(b,e+1 ,d):g>0?this._binarySearch(b,c,e):e)}})}(),function( ){var a=Ember.get,b=Ember.set;Ember.ArrayController= Ember.ArrayProxy.extend(Ember.ControllerMixin,Ember .SortableMixin)}(),function(){Ember.ObjectController= Ember.ObjectProxy.extend(Ember.ControllerMixin)}(), function(){}(),function(){}(),function(){function a (b,c,d,e){var f=b.name,g=b.incoming,h=b.incomingNames ,i=h.length,j;d||(d={}),e||(e=[]);if(d.hasOwnProperty (f))return;e.push(f),d[f]=!0;for(j=0;j"}var j=this.childBuffers;return Ember .ArrayPolyfills.forEach.call(j,function(b){var c=typeof b=="string";a+=c?b:b.string()}),b?c+a+"":a} ,_escapeAttribute:function(a){var b={"<":"<",">" :">",'"':""","'":"'","`":"`"},c=/&(?!\w+;)|[<>"'`]/g ,d=/[&<>"'`]/,e=function(a){return b[a]||"&"},f= a.toString();return d.test(f)?f.replace(c,e):f}}}() ,function(){var a=Ember.get,b=Ember.set,c=Ember.String .fmt;Ember.EventDispatcher=Ember.Object.extend({rootElement :"body",setup:function(b){var c,d={touchstart:"touchStart" ,touchmove:"touchMove",touchend:"touchEnd",touchcancel :"touchCancel",keydown:"keyDown",keyup:"keyUp",keypress :"keyPress",mousedown:"mouseDown",mouseup:"mouseUp" ,contextmenu:"contextMenu",click:"click",dblclick:"doubleClick" ,mousemove:"mouseMove",focusin:"focusIn",focusout:"focusOut" ,mouseenter:"mouseEnter",mouseleave:"mouseLeave",submit :"submit",input:"input",change:"change",dragstart:"dragStart" ,drag:"drag",dragenter:"dragEnter",dragleave:"dragLeave" ,dragover:"dragOver",drop:"drop",dragend:"dragEnd"} ;Ember.$.extend(d,b||{});var e=Ember.$(a(this,"rootElement" ));e.addClass("ember-application");for(c in d)d.hasOwnProperty (c)&&this.setupHandler(e,c,d[c])},setupHandler:function( a,b,c){var d=this;a.delegate(".ember-view",b+".ember" ,function(a,b){return Ember.handleErrors(function() {var e=Ember.View.views[this.id],f=!0,g=null;return g= d._findNearestEventManager(e,c),g&&g!==b?f=d._dispatchEvent (g,a,c,e):e?f=d._bubbleEvent(e,a,c):a.stopPropagation (),f},this)}),a.delegate("[data-ember-action]",b+".ember" ,function(a){return Ember.handleErrors(function(){var b= Ember.$(a.currentTarget).attr("data-ember-action"), d=Ember.Handlebars.ActionHelper.registeredActions[b ],e=d.handler;if(d.eventName===c)return e(a)},this) })},_findNearestEventManager:function(b,c){var d=null ;while(b){d=a(b,"eventManager");if(d&&d[c])break;b= a(b,"parentView")}return d},_dispatchEvent:function( a,b,c,d){var e=!0,f=a[c];return Ember.typeOf(f)==="function"? (e=f.call(a,b,d),b.stopPropagation()):e=this._bubbleEvent (d,b,c),e},_bubbleEvent:function(a,b,c){return Ember .run(function(){return a.handleEvent(c,b)})},destroy :function(){var b=a(this,"rootElement");return Ember .$(b).undelegate(".ember").removeClass("ember-application" ),this._super()}})}(),function(){var a=Ember.run.queues ;a.splice(Ember.$.inArray("actions",a)+1,0,"render" )}(),function(){var a=Ember.get,b=Ember.set;Ember.ControllerMixin .reopen({target:null,controllers:null,namespace:null ,view:null,connectOutlet:function(c,d){var e,f,g,h, i;Ember.typeOf(d)==="string"&&(e=c,c=d,d=arguments[2 ]),arguments.length===1?Ember.typeOf(c)==="object"&& (i=c,e=i.outletName,c=i.name,f=i.viewClass,h=i.controller ,d=i.context):i={},e=e||"view";if(c){var j=a(this,"namespace" ),k=a(this,"controllers"),l=c.charAt(0).toUpperCase ()+c.substr(1)+"View";f=a(j,l),h=a(k,c+"Controller" )}return h&&d&&b(h,"content",d),g=this.createOutletView (e,f),h&&b(g,"controller",h),b(this,e,g),g},connectControllers :function(){var c=a(this,"controllers"),d=Array.prototype .slice.apply(arguments),e;for(var f=0,g=d.length;f< g;f++)e=d[f]+"Controller",b(this,e,a(c,e))},disconnectOutlet :function(a){a=a||"view",b(this,a,null)},createOutletView :function(a,b){return b.create()}})}(),function(){} (),function(){var a=Ember.get,b=Ember.set,c=Ember.addObserver ,d=Ember.removeObserver,e=Ember.meta,f=Ember.String .fmt,g=[].slice,h=Ember.EnumerableUtils.forEach,i=Ember .computed(function(){var b=this._childViews,c=Ember .A();return h(b,function(b){b.isVirtual?c.pushObjects (a(b,"childViews")):c.push(b)}),c}).property().cacheable (),j=Ember.VIEW_PRESERVES_CONTEXT;Ember.TEMPLATES={ };var k={preRender:{},inBuffer:{},hasElement:{},inDOM :{},destroyed:{}};Ember.View=Ember.Object.extend(Ember .Evented,{concatenatedProperties:["classNames","classNameBindings" ,"attributeBindings"],isView:!0,templateName:null,layoutName :null,templates:Ember.TEMPLATES,template:Ember.computed (function(b,c){if(c!==undefined)return c;var d=a(this ,"templateName"),e=this.templateForName(d,"template" );return e||a(this,"defaultTemplate")}).property("templateName" ).cacheable(),controller:Ember.computed(function(b, c){var d;return arguments.length===2?c:(d=a(this,"parentView" ),d?a(d,"controller"):null)}).property().cacheable( ),layout:Ember.computed(function(b,c){if(arguments. length===2)return c;var d=a(this,"layoutName"),e=this .templateForName(d,"layout");return e||a(this,"defaultLayout" )}).property("layoutName").cacheable(),templateForName :function(b,c){if(!b)return;var d=a(this,"templates" ),e=a(d,b);if(!e)throw new Ember.Error(f('%@ - Unable to find %@ "%@".' ,[this,c,b]));return e},context:Ember.computed(function( c,d){return arguments.length===2?(b(this,"_context" ,d),d):a(this,"_context")}).volatile(),_context:Ember .computed(function(b,c){var d,e;if(arguments.length===2 )return c;if(j){if(e=a(this,"controller"))return e; d=a(this,"_parentView");if(d)return a(d,"_context") }return this}).cacheable(),_displayPropertyDidChange :Ember.observer(function(){this.rerender()},"context" ,"controller"),parentView:Ember.computed(function() {var b=a(this,"_parentView");return b&&b.isVirtual? a(b,"parentView"):b}).property("_parentView").volatile (),_parentView:null,concreteView:Ember.computed(function( ){return this.isVirtual?a(this,"parentView"):this}) .property("_parentView").volatile(),isVisible:!0,childViews :i,_childViews:[],_childViewsWillChange:Ember.beforeObserver (function(){if(this.isVirtual){var b=a(this,"parentView" );b&&Ember.propertyWillChange(b,"childViews")}},"childViews" ),_childViewsDidChange:Ember.observer(function(){if( this.isVirtual){var b=a(this,"parentView");b&&Ember .propertyDidChange(b,"childViews")}},"childViews"), nearestInstanceOf:function(b){var c=a(this,"parentView" );while(c){if(c instanceof b)return c;c=a(c,"parentView" )}},nearestWithProperty:function(b){var c=a(this,"parentView" );while(c){if(b in c)return c;c=a(c,"parentView")}} ,nearestChildOf:function(b){var c=a(this,"parentView" );while(c){if(a(c,"parentView")instanceof b)return c ;c=a(c,"parentView")}},collectionView:Ember.computed (function(){return this.nearestInstanceOf(Ember.CollectionView )}).cacheable(),itemView:Ember.computed(function(){ return this.nearestChildOf(Ember.CollectionView)}). cacheable(),contentView:Ember.computed(function(){return this .nearestWithProperty("content")}).cacheable(),_parentViewDidChange :Ember.observer(function(){if(this.isDestroying)return; this.invokeRecursively(function(a){a.propertyDidChange ("collectionView"),a.propertyDidChange("itemView"), a.propertyDidChange("contentView")}),a(this,"parentView.controller" )&&!a(this,"controller")&&this.notifyPropertyChange ("controller")},"_parentView"),_controllerDidChange :Ember.observer(function(){if(this.isDestroying)return; this.forEachChildView(function(a){a.propertyDidChange ("controller")})},"controller"),cloneKeywords:function( ){var c=a(this,"templateData"),d=c?Ember.copy(c.keywords ):{};return b(d,"view",a(this,"concreteView")),b(d,"controller" ,a(this,"controller")),d},render:function(b){var c= a(this,"layout")||a(this,"template");if(c){var d=a( this,"context"),e=this.cloneKeywords(),f={view:this ,buffer:b,isRenderData:!0,keywords:e},g=c(d,{data:f });g!==undefined&&b.push(g)}},invokeForState:function( a){var b=this.state,c,d;if(d=k[b][a])return c=g.call (arguments),c[0]=this,d.apply(this,c);var e=this,f= e.states,h;while(f){h=f[b];while(h){d=h[a];if(d)return k [b][a]=d,c=g.call(arguments,1),c.unshift(this),d.apply (this,c);h=h.parentState}f=f.parent}},rerender:function( ){return this.invokeForState("rerender")},clearRenderedChildren :function(){var a=this.lengthBeforeRender,b=this.lengthAfterRender ,c=this._childViews;for(var d=b-1;d>=a;d--)c[d]&&c[ d].destroy()},_applyClassNameBindings:function(){var b= a(this,"classNameBindings"),e=a(this,"classNames"), f,g,i;if(!b)return;h(b,function(a){var b,h=Ember.View ._parsePropertyPath(a),j=function(){g=this._classStringForProperty (a),f=this.$();if(!f){d(this,h.path,j);return}b&&(f .removeClass(b),e.removeObject(b)),g?(f.addClass(g) ,b=g):b=null};i=this._classStringForProperty(a),i&& (e.push(i),b=i),c(this,h.path,j)},this)},_applyAttributeBindings :function(b){var d=a(this,"attributeBindings"),e,f, g;if(!d)return;h(d,function(d){var g=d.split(":"),h= g[0],i=g[1]||h,j=function(){f=this.$();if(!f)return; e=a(this,h),Ember.View.applyAttributeBindings(f,i,e )};c(this,h,j),e=a(this,h),Ember.View.applyAttributeBindings (b,i,e)},this)},_classStringForProperty:function(b) {var c=Ember.View._parsePropertyPath(b),d=c.path,e= a(this,d);return e===undefined&&Ember.isGlobalPath( d)&&(e=a(window,d)),Ember.View._classStringForValue (d,e,c.className,c.falsyClassName)},element:Ember.computed (function(a,b){return b!==undefined?this.invokeForState ("setElement",b):this.invokeForState("getElement")} ).property("_parentView").cacheable(),$:function(a) {return this.invokeForState("$",a)},mutateChildViews :function(a){var b=this._childViews,c=b.length,d;while(-- c>=0)d=b[c],a.call(this,d,c);return this},forEachChildView :function(a){var b=this._childViews;if(!b)return this ;var c=b.length,d,e;for(e=0;e=0 ;g--)c[g].removedFromDOM=!0,c[g].destroy();this.isVirtual||delete Ember.View.views[a(this,"elementId")]},createChildView :function(c,d){return Ember.View.detect(c)?(d=d||{} ,d._parentView=this,d.templateData=d.templateData|| a(this,"templateData"),c=c.create(d),c.viewName&&b( a(this,"concreteView"),c.viewName,c)):(a(c,"templateData" )||b(c,"templateData",a(this,"templateData")),b(c,"_parentView" ,this)),c},becameVisible:Ember.K,becameHidden:Ember .K,_isVisibleDidChange:Ember.observer(function(){var b= this.$();if(!b)return;var c=a(this,"isVisible");b.toggle (c);if(this._isAncestorHidden())return;c?this._notifyBecameVisible ():this._notifyBecameHidden()},"isVisible"),_notifyBecameVisible :function(){this.trigger("becameVisible"),this.forEachChildView (function(b){var c=a(b,"isVisible");(c||c===null)&& b._notifyBecameVisible()})},_notifyBecameHidden:function( ){this.trigger("becameHidden"),this.forEachChildView (function(b){var c=a(b,"isVisible");(c||c===null)&& b._notifyBecameHidden()})},_isAncestorHidden:function( ){var b=a(this,"parentView");while(b){if(a(b,"isVisible" )===!1)return!0;b=a(b,"parentView")}return!1},clearBuffer :function(){this.invokeRecursively(function(a){this .buffer=null})},transitionTo:function(a,b){this.state= a,b!==!1&&this.forEachChildView(function(b){b.transitionTo (a)})},trigger:function(a){this._super.apply(this,arguments );var b=this[a];if(b){var c=[],d,e;for(d=1,e=arguments .length;d1&&(e=b[1],b.length===3&&(f=b[2]),d=":"+e,f&& (d+=":"+f)),{path:c,classNames:d,className:e===""?undefined :e,falsyClassName:f}},_classStringForValue:function( a,b,c,d){if(c||d)return c&&!!b?c:d&&!b?d:null;if(b===!0 ){var e=a.split(".");return Ember.String.dasherize( e[e.length-1])}return b!==!1&&b!==undefined&&b!==null? b:null}}),Ember.View.views={},Ember.View.childViewsProperty= i,Ember.View.applyAttributeBindings=function(a,b,c) {var d=Ember.typeOf(c),e=a.attr(b);(d==="string"||d==="number"&&! isNaN(c))&&c!==e?a.attr(b,c):c&&d==="boolean"?a.attr (b,b):c||a.removeAttr(b)}}(),function(){var a=Ember .get,b=Ember.set;Ember.View.states={_default:{appendChild :function(){throw"You can't use appendChild outside of the rendering process" },$:function(){return undefined},getElement:function( ){return null},handleEvent:function(){return!0},destroyElement :function(a){return b(a,"element",null),a._scheduledInsert&& (Ember.run.cancel(a._scheduledInsert),a._scheduledInsert= null),a},renderToBufferIfNeeded:function(){return!1 }}},Ember.View.reopen({states:Ember.View.states})}( ),function(){Ember.View.states.preRender={parentState :Ember.View.states._default,insertElement:function( a,b){a.createElement(),a._notifyWillInsertElement() ,b.call(a),a.transitionTo("inDOM"),a._notifyDidInsertElement ()},renderToBufferIfNeeded:function(a){return a.renderToBuffer ()},empty:Ember.K,setElement:function(a,b){return b!== null&&a.transitionTo("hasElement"),b}}}(),function( ){var a=Ember.get,b=Ember.set,c=Ember.meta;Ember.View .states.inBuffer={parentState:Ember.View.states._default ,$:function(a,b){return a.rerender(),Ember.$()},rerender :function(a){a._notifyWillRerender(),a.clearRenderedChildren (),a.renderToBuffer(a.buffer,"replaceWith")},appendChild :function(a,b,c){var d=a.buffer;return b=this.createChildView (b,c),a._childViews.push(b),b.renderToBuffer(d),a.propertyDidChange ("childViews"),b},destroyElement:function(a){return a .clearBuffer(),a._notifyWillDestroyElement(),a.transitionTo ("preRender"),a},empty:function(){},renderToBufferIfNeeded :function(a){return a.buffer},insertElement:function( ){throw"You can't insert an element that has already been rendered" },setElement:function(a,b){return b===null?a.transitionTo ("preRender"):(a.clearBuffer(),a.transitionTo("hasElement" )),b}}}(),function(){var a=Ember.get,b=Ember.set,c= Ember.meta;Ember.View.states.hasElement={parentState :Ember.View.states._default,$:function(b,c){var d=a (b,"element");return c?Ember.$(c,d):Ember.$(d)},getElement :function(b){var c=a(b,"parentView");return c&&(c=a (c,"element")),c?b.findElementInParentElement(c):Ember .$("#"+a(b,"elementId"))[0]},setElement:function(a, b){if(b===null)a.transitionTo("preRender");else throw"You cannot set an element to a non-null value when the element is already in the DOM." ;return b},rerender:function(a){return a._notifyWillRerender (),a.clearRenderedChildren(),a.domManager.replace(a ),a},destroyElement:function(a){return a._notifyWillDestroyElement (),a.domManager.remove(a),b(a,"element",null),a._scheduledInsert&& (Ember.run.cancel(a._scheduledInsert),a._scheduledInsert= null),a},empty:function(a){var b=a._childViews,c,d; if(b){c=b.length;for(d=0;d=c;h--)g=f[h],j&&(g.removedFromDOM=!0),g.destroy ()},arrayDidChange:function(c,d,e,f){var g=a(this,"itemViewClass" ),h=a(this,"childViews"),i=[],j,k,l,m,n;"string"==typeof g&&(g=a(g)),m=c?a(c,"length"):0;if(m)for(l=d;l0){if(c>=0)e=this.enterStates[c-- ];else{if(this.enterStates.length){e=a(this.enterStates [0],"parentState");if(!e)throw"Cannot match all contexts to states" }else e=this.resolveState;this.enterStates.unshift( e),this.exitStates.unshift(e)}a(e,"hasContext")?f=b .pop():f=null,d.unshift(f)}this.contexts=d},addInitialStates :function(){var b=this.finalState,c;for(;;){c=a(b,"initialState" )||"start",b=a(b,"states."+c);if(!b)break;this.finalState= b,this.enterStates.push(b),this.contexts.push(undefined )}},removeUnchangedContexts:function(a){while(this. enterStates.length>0){if(this.enterStates[0]!==this .exitStates[0])break;if(this.enterStates.length===this .contexts.length){if(a.getStateMeta(this.enterStates [0],"context")!==this.contexts[0])break;this.contexts .shift()}this.resolveState=this.enterStates.shift() ,this.exitStates.shift()}}},Ember.StateManager=Ember .State.extend({init:function(){this._super(),b(this ,"stateMeta",Ember.Map.create());var c=a(this,"initialState" );!c&&a(this,"states.start")&&(c="start"),c&&this.transitionTo (c)},stateMetaFor:function(b){var c=a(this,"stateMeta" ),d=c.get(b);return d||(d={},c.set(b,d)),d},setStateMeta :function(a,c,d){return b(this.stateMetaFor(a),c,d) },getStateMeta:function(b,c){return a(this.stateMetaFor (b),c)},currentState:null,currentPath:Ember.computed ("currentState",function(){return a(this,"currentState.path" )}).cacheable(),transitionEvent:"setup",errorOnUnhandledEvent :!0,send:function(b){var c,d;return c=[].slice.call (arguments,1),d=c,d.unshift(b,a(this,"currentState" )),this.sendRecursively.apply(this,d)},sendRecursively :function(b,d){var e=this.enableLogging,f=d[b],g,h, i;g=[].slice.call(arguments,2);if(typeof f=="function" )return e&&Ember.Logger.log(c("STATEMANAGER: Sending event '%@' to state %@." ,[b,a(d,"path")])),i=g,i.unshift(this),f.apply(d,i) ;var j=a(d,"parentState");if(j)return h=g,h.unshift (b,j),this.sendRecursively.apply(this,h);if(a(this,"errorOnUnhandledEvent" ))throw new Ember.Error(this.toString()+" could not respond to event "+ b+" in state "+a(this,"currentState.path")+".")},getStateByPath :function(b,c){var d=c.split("."),e=b;for(var f=0,g= d.length;f0&&e[0]=== f[0])g=e.shift(),f.shift();var h=b.pathsCache[c]={exitStates :f,enterStates:e,resolveState:g};return h},triggerSetupContext :function(b){var c=b.contexts,e=b.enterStates.length- c.length,f=b.enterStates,g=a(this,"transitionEvent" );d.call(f,function(a,b){a.trigger(g,this,c[b-e])}, this)},getState:function(b){var c=a(this,b),d=a(this ,"parentState");if(c)return c;if(d)return d.getState (b)},enterState:function(c){var e=this.enableLogging ,f=c.exitStates.slice(0).reverse();d.call(f,function( a){a.trigger("exit",this)},this),d.call(c.enterStates ,function(b){e&&Ember.Logger.log("STATEMANAGER: Entering "+ a(b,"path")),b.trigger("enter",this)},this),b(this,"currentState" ,c.finalState)}})}(),function(){}(),function(){var a= Ember.get;Ember._ResolvedState=Ember.Object.extend( {manager:null,state:null,match:null,object:Ember.computed (function(b,c){if(arguments.length===2)return this. _object=c,c;if(this._object)return this._object;var d= a(this,"state"),e=a(this,"match"),f=a(this,"manager" );return d.deserialize(f,e.hash)}).property(),hasPromise :Ember.computed(function(){return Ember.canInvoke(a (this,"object"),"then")}).property("object"),promise :Ember.computed(function(){var b=a(this,"object");return Ember .canInvoke(b,"then")?b:{then:function(a){a(b)}}}).property ("object"),transition:function(){var b=a(this,"manager" ),c=a(this,"state.path"),d=a(this,"object");b.transitionTo (c,d)}})}(),function(){var a=Ember.get,b=function(a ){var b=a.toString(),c=b.split("."),d=c[c.length-1] ;return Ember.String.underscore(d)+"_id"},c=function( a,b){for(var c in b){if(!b.hasOwnProperty(c))continue; if(a.hasOwnProperty(c))continue;a[c]=b[c]}};Ember.Routable= Ember.Mixin.create({init:function(){var b;this.on("setup" ,this,this.stashContext);if(b=a(this,"redirectsTo") )this.connectOutlets=function(a){a.transitionTo(b)} ;var c=a(this,"route");c===""&&(c="/"),this._super( )},setup:function(){return this.connectOutlets.apply (this,arguments)},stashContext:function(b,c){this.router= b;var d=this.serialize(b,c);b.setStateMeta(this,"context" ,c),b.setStateMeta(this,"serialized",d),a(this,"isRoutable" )&&!a(b,"isRouting")&&this.updateRoute(b,a(b,"location" ))},updateRoute:function(b,c){if(a(this,"isLeafRoute" )){var d=this.absoluteRoute(b);c.setURL(d)}},absoluteRoute :function(b,d){var e=a(this,"parentState"),f="",g;a (e,"isRoutable")&&(f=e.absoluteRoute(b,d));var h=a( this,"routeMatcher"),i=b.getStateMeta(this,"serialized" );return d=d||{},c(d,i),g=h&&h.generate(d),g&&(f=f+"/"+ g),f},isRoutable:Ember.computed(function(){return typeof a(this,"route")=="string"}).cacheable(),isLeafRoute :Ember.computed(function(){return a(this,"isLeaf")?!0 :!a(this,"childStates").findProperty("isRoutable")} ).cacheable(),routeMatcher:Ember.computed(function( ){var b=a(this,"route");if(b)return Ember._RouteMatcher .create({route:b})}).cacheable(),hasContext:Ember.computed (function(){var b=a(this,"routeMatcher");if(b)return b .identifiers.length>0}).cacheable(),modelClass:Ember .computed(function(){var b=a(this,"modelType");return typeof b=="string"?Ember.get(window,b):b}).cacheable(),modelClassFor :function(b){var c,d,e,f,g;if(c=a(this,"modelClass" ))return c;if(!b)return;d=a(this,"routeMatcher");if(! d)return;e=d.identifiers;if(e.length!==2)return;f=e [1].match(/^(.*)_id$/);if(!f)return;return g=Ember. String.classify(f[1]),a(b,g)},deserialize:function( c,d){var e,f,g;return(e=this.modelClassFor(a(c,"namespace" )))?e.find(d[b(e)]):d},serialize:function(c,d){var e ,f,g,h,i;if(Ember.empty(d))return"";if(e=this.modelClassFor (a(c,"namespace")))h=b(e),i=a(d,"id"),d={},d[h]=i;return d },resolvePath:function(b,c){if(a(this,"isLeafRoute" ))return Ember.A();var d=a(this,"childStates"),e;d= Ember.A(d.filterProperty("isRoutable")),d=d.sort(function( b,c){var d=a(b,"routeMatcher.identifiers.length"),e= a(c,"routeMatcher.identifiers.length"),f=a(b,"route" ),g=a(c,"route");return f.indexOf(g)===0?-1:g.indexOf (f)===0?1:d!==e?d-e:a(c,"route.length")-a(b,"route.length" )});var f=d.find(function(b){var d=a(b,"routeMatcher" );if(e=d.match(c))return!0}),g=Ember._ResolvedState .create({manager:b,state:f,match:e}),h=f.resolvePath (b,e.remaining);return Ember.A([g]).pushObjects(h)} ,routePath:function(b,c){function d(){e.forEach(function( a){a.transition()})}if(a(this,"isLeafRoute"))return; var e=this.resolvePath(b,c),f=e.some(function(b){return a (b,"hasPromise")});f?(b.transitionTo("loading"),b.handleStatePromises (e,d)):d()},unroutePath:function(b,c){var d=a(this,"parentState" );if(d===b)return;c=c.replace(/^(?=[^\/])/,"/");var e= this.absoluteRoute(b),f=a(this,"route");if(f!=="/") {var g=c.indexOf(e),h=c.charAt(e.length);if(g===0&& (h==="/"||h===""))return}b.enterState({exitStates:[ this],enterStates:[],finalState:d}),b.send("unroutePath" ,c)},parentTemplate:Ember.computed(function(){var b= this,c,d;while(b=a(b,"parentState"))if(d=a(b,"template" ))return d;return"application"}).cacheable(),_template :Ember.computed(function(b,c){if(arguments.length>1 )return c;if(c=a(this,"template"))return c;var d=this .constructor.toString(),e;if(/^[^\[].*Route$/.test( d))return e=d.match(/([^\.]+\.)*([^\.]+)/)[2],e=e.replace (/Route$/,""),e.charAt(0).toLowerCase()+e.substr(1) }).cacheable(),render:function(b){b=b||{};var c=b.template|| a(this,"_template"),d=b.into||a(this,"parentTemplate" ),e=a(this.router,d+"Controller"),f=Ember.String.classify (c)+"View",g=a(a(this.router,"namespace"),f);g=(g|| Ember.View).extend({templateName:c}),e.set("view",g .create())},connectOutlets:Ember.K,navigateAway:Ember .K})}(),function(){Ember.Route=Ember.State.extend(Ember .Routable)}(),function(){var a=function(a){return a .replace(/[\-\[\]{}()*+?.,\\\^\$|#\s]/g,"\\$&")};Ember ._RouteMatcher=Ember.Object.extend({state:null,init :function(){var b=this.route,c=[],d=1,e;b.charAt(0)==="/"&& (b=this.route=b.substr(1)),e=a(b);var f=e.replace(/:([a-z_]+)(?=$|\/)/gi ,function(a,b){return c[d++]=b,"([^/]+)"});this.identifiers= c,this.regex=new RegExp("^/?"+f)},match:function(a) {var b=a.match(this.regex);if(b){var c=this.identifiers ,d={};for(var e=1,f=c.length;e0?d:null }}},generate:function(a){var b=this.identifiers,c=this .route,d;for(var e=1,f=b.length;e" },p=function(){return"" };if(e)h=function(a,b){var c=d.createRange(),e=d.getElementById (a.start),f=d.getElementById(a.end);return b?(c.setStartBefore (e),c.setEndAfter(f)):(c.setStartAfter(e),c.setEndBefore (f)),c},i=function(a,b){var c=h(this,b);c.deleteContents ();var d=c.createContextualFragment(a);c.insertNode (d)},j=function(){var a=h(this,!0);a.deleteContents ()},l=function(a){var b=d.createRange();b.setStart( a),b.collapse(!1);var c=b.createContextualFragment( this.outerHTML());a.appendChild(c)},m=function(a){var b= d.createRange(),c=d.getElementById(this.end);b.setStartAfter (c),b.setEndAfter(c);var e=b.createContextualFragment (a);b.insertNode(e)},n=function(a){var b=d.createRange (),c=d.getElementById(this.start);b.setStartAfter(c ),b.setEndAfter(c);var e=b.createContextualFragment (a);b.insertNode(e)};else{var q={select:[1,""],fieldset:[1,"
","
" ],table:[1,"
","
"],tbody:[2,"" ,"
"],tr:[3,"","
" ],colgroup:[2,"","
" ],map:[1,"",""],_default:[0,"",""]},r=function( a,b){var c=q[a.tagName.toLowerCase()]||q._default,e= c[0],g=c[1],h=c[2];f&&(b="­"+b);var i=d.createElement ("div");i.innerHTML=g+b+h;for(var j=0;j<=e;j++)i=i. firstChild;if(f){var k=i;while(k.nodeType===1&&!k.nodeName )k=k.firstChild;k.nodeType===3&&k.nodeValue.charAt(0 )==="­"&&(k.nodeValue=k.nodeValue.slice(1))}return i },s=function(a){while(a.parentNode.tagName==="")a=a .parentNode;return a},t=function(a,b){a.parentNode!== b.parentNode&&b.parentNode.insertBefore(a,b.parentNode .firstChild)};i=function(a,b){var c=s(d.getElementById (this.start)),e=d.getElementById(this.end),f=e.parentNode ,g,h,i;t(c,e),g=c.nextSibling;while(g){h=g.nextSibling ,i=g===e;if(i)if(b)e=g.nextSibling;else break;g.parentNode .removeChild(g);if(i)break;g=h}g=r(c.parentNode,a); while(g)h=g.nextSibling,f.insertBefore(g,e),g=h},j= function(){var a=s(d.getElementById(this.start)),b= d.getElementById(this.end);this.html(""),a.parentNode .removeChild(a),b.parentNode.removeChild(b)},l=function( a){var b=r(a,this.outerHTML());while(b)nextSibling= b.nextSibling,a.appendChild(b),b=nextSibling},m=function( a){var b=d.getElementById(this.end),c=b.nextSibling ,e=b.parentNode,f,g;g=r(e,a);while(g)f=g.nextSibling ,e.insertBefore(g,c),g=f},n=function(a){var b=d.getElementById (this.start),c=b.parentNode,e,f;f=r(c,a);var g=b.nextSibling ;while(f)e=f.nextSibling,c.insertBefore(f,g),f=e}}g .prototype.html=function(a){this.checkRemoved();if( a===undefined)return this.innerHTML;i.call(this,a), this.innerHTML=a},g.prototype.replaceWith=function( a){this.checkRemoved(),i.call(this,a,!0)},g.prototype .remove=j,g.prototype.outerHTML=k,g.prototype.appendTo= l,g.prototype.after=m,g.prototype.prepend=n,g.prototype .startTag=o,g.prototype.endTag=p,g.prototype.isRemoved= function(){var a=d.getElementById(this.start),b=d.getElementById (this.end);return!a||!b},g.prototype.checkRemoved=function( ){if(this.isRemoved())throw new Error("Cannot perform operations on a Metamorph that is not in the DOM." )},a.Metamorph=g})(this)}(),function(){var a=Ember. create;Ember.Handlebars=a(Handlebars),Ember.Handlebars .helpers=a(Handlebars.helpers),Ember.Handlebars.Compiler= function(){},Handlebars.Compiler&&(Ember.Handlebars .Compiler.prototype=a(Handlebars.Compiler.prototype )),Ember.Handlebars.Compiler.prototype.compiler=Ember .Handlebars.Compiler,Ember.Handlebars.JavaScriptCompiler= function(){},Handlebars.JavaScriptCompiler&&(Ember. Handlebars.JavaScriptCompiler.prototype=a(Handlebars .JavaScriptCompiler.prototype),Ember.Handlebars.JavaScriptCompiler .prototype.compiler=Ember.Handlebars.JavaScriptCompiler ),Ember.Handlebars.JavaScriptCompiler.prototype.namespace="Ember.Handlebars" ,Ember.Handlebars.JavaScriptCompiler.prototype.initializeBuffer= function(){return"''"},Ember.Handlebars.JavaScriptCompiler .prototype.appendToBuffer=function(a){return"data.buffer.push("+ a+");"},Ember.Handlebars.Compiler.prototype.mustache= function(a){if(a.params.length||a.hash)return Handlebars .Compiler.prototype.mustache.call(this,a);var b=new Handlebars.AST.IdNode(["_triageMustache"]);return a .escaped||(a.hash=a.hash||new Handlebars.AST.HashNode ([]),a.hash.pairs.push(["unescaped",new Handlebars. AST.StringNode("true")])),a=new Handlebars.AST.MustacheNode ([b].concat([a.id]),a.hash,!a.escaped),Handlebars.Compiler .prototype.mustache.call(this,a)},Ember.Handlebars. precompile=function(a){var b=Handlebars.parse(a),c= {knownHelpers:{action:!0,unbound:!0,bindAttr:!0,template :!0,view:!0,_triageMustache:!0},data:!0,stringParams :!0},d=(new Ember.Handlebars.Compiler).compile(b,c) ;return(new Ember.Handlebars.JavaScriptCompiler).compile (d,c,undefined,!0)},Handlebars.compile&&(Ember.Handlebars .compile=function(a){var b=Handlebars.parse(a),c={data :!0,stringParams:!0},d=(new Ember.Handlebars.Compiler ).compile(b,c),e=(new Ember.Handlebars.JavaScriptCompiler ).compile(d,c,undefined,!0);return Handlebars.template (e)});var b=Ember.Handlebars.normalizePath=function( a,b,c){var d=c&&c.keywords||{},e,f;return e=b.split (".",1)[0],d.hasOwnProperty(e)&&(a=d[e],f=!0,b===e? b="":b=b.substr(e.length+1)),{root:a,path:b,isKeyword :f}};Ember.Handlebars.getPath=function(a,c,d){var e= d&&d.data,f=b(a,c,e),g;return a=f.root,c=f.path,g=Ember .get(a,c),g===undefined&&a!==window&&Ember.isGlobalPath (c)&&(g=Ember.get(window,c)),g},Ember.Handlebars.registerHelper ("helperMissing",function(a,b){var c,d="";throw c="%@ Handlebars error: Could not find property '%@' on object %@." ,b.data&&(d=b.data.view),new Ember.Error(Ember.String .fmt(c,[d,a,this]))})}(),function(){Ember.String.htmlSafe= function(a){return new Handlebars.SafeString(a)};var a= Ember.String.htmlSafe;Ember.EXTEND_PROTOTYPES&&(String .prototype.htmlSafe=function(){return a(this)})}(), function(){var a=Ember.set,b=Ember.get,c={remove:function( a){a.morph.remove()},prepend:function(a,b){a.morph. prepend(b)},after:function(a,b){a.morph.after(b)},html :function(a,b){a.morph.html(b)},replace:function(a) {var c=a.morph;a.transitionTo("preRender"),a.clearRenderedChildren ();var d=a.renderToBuffer();Ember.run.schedule("render" ,this,function(){if(b(a,"isDestroyed"))return;a.invalidateRecursively ("element"),a._notifyWillInsertElement(),c.replaceWith (d.string()),a.transitionTo("inDOM"),a._notifyDidInsertElement ()})},empty:function(a){a.morph.html("")}};Ember._Metamorph= Ember.Mixin.create({isVirtual:!0,tagName:"",init:function( ){this._super(),this.morph=Metamorph()},beforeRender :function(a){a.push(this.morph.startTag())},afterRender :function(a){a.push(this.morph.endTag())},createElement :function(){var a=this.renderToBuffer();this.outerHTML= a.string(),this.clearBuffer()},domManager:c}),Ember ._MetamorphView=Ember.View.extend(Ember._Metamorph) }(),function(){var a=Ember.get,b=Ember.set,c=Ember. Handlebars.getPath;Ember._HandlebarsBoundView=Ember ._MetamorphView.extend({shouldDisplayFunc:null,preserveContext :!1,previousContext:null,displayTemplate:null,inverseTemplate :null,path:null,pathRoot:null,normalizedValue:Ember .computed(function(){var b=a(this,"path"),d=a(this,"pathRoot" ),e=a(this,"valueNormalizerFunc"),f,g;return b===""? f=d:(g=a(this,"templateData"),f=c(d,b,{data:g})),e? e(f):f}).property("path","pathRoot","valueNormalizerFunc" ).volatile(),rerenderIfNeeded:function(){!a(this,"isDestroyed" )&&a(this,"normalizedValue")!==this._lastNormalizedValue&& this.rerender()},render:function(c){var d=a(this,"isEscaped" ),e=a(this,"shouldDisplayFunc"),f=a(this,"preserveContext" ),g=a(this,"previousContext"),h=a(this,"inverseTemplate" ),i=a(this,"displayTemplate"),j=a(this,"normalizedValue" );this._lastNormalizedValue=j;if(e(j)){b(this,"template" ,i);if(f)b(this,"_context",g);else if(i)b(this,"_context" ,j);else{j===null||j===undefined?j="":j instanceof Handlebars.SafeString||(j=String(j)),d&&(j=Handlebars .Utils.escapeExpression(j)),c.push(j);return}}else h? (b(this,"template",h),f?b(this,"_context",g):b(this ,"_context",j)):b(this,"template",function(){return"" });return this._super(c)}})}(),function(){function a (a,b,c,d,g){var h=b.data,i=b.fn,j=b.inverse,k=h.view ,l=this,m,n,o;o=f(l,a,h),m=o.root,n=o.path;if("object"==typeof this){var p=k.createChildView(Ember._HandlebarsBoundView ,{preserveContext:c,shouldDisplayFunc:d,valueNormalizerFunc :g,displayTemplate:i,inverseTemplate:j,path:n,pathRoot :m,previousContext:l,isEscaped:!b.hash.unescaped,templateData :b.data});k.appendChild(p);var q=function(){Ember.run .scheduleOnce("render",p,"rerenderIfNeeded")};n!==""&& Ember.addObserver(m,n,q)}else h.buffer.push(e(m,n,b ))}var b=Ember.get,c=Ember.set,d=Ember.String.fmt,e= Ember.Handlebars.getPath,f=Ember.Handlebars.normalizePath ,g=Ember.ArrayPolyfills.forEach,h=Ember.Handlebars, i=h.helpers;h.registerHelper("_triageMustache",function( a,b){return i[a]?i[a].call(this,b):i.bind.apply(this ,arguments)}),h.registerHelper("bind",function(b,c) {var d=c.contexts&&c.contexts[0]||this;return a.call (d,b,c,!1,function(a){return!Ember.none(a)})}),h.registerHelper ("boundIf",function(c,d){var e=d.contexts&&d.contexts [0]||this,f=function(a){return Ember.typeOf(a)==="array"? b(a,"length")!==0:!!a};return a.call(e,c,d,!0,f,f)} ),h.registerHelper("with",function(b,c){if(arguments .length===4){var d,e,g,h;c=arguments[3],d=arguments [2],e=arguments[0];if(Ember.isGlobalPath(e))Ember.bind (c.data.keywords,d,e);else{h=f(this,e,c.data),e=h.path ,g=h.root;var j=Ember.$.expando+Ember.guidFor(g);c. data.keywords[j]=g;var k=e?j+"."+e:j;Ember.bind(c.data .keywords,d,k)}return a.call(this,e,c,!0,function(a ){return!Ember.none(a)})}return i.bind.call(c.contexts [0],b,c)}),h.registerHelper("if",function(a,b){return i .boundIf.call(b.contexts[0],a,b)}),h.registerHelper ("unless",function(a,b){var c=b.fn,d=b.inverse;return b .fn=d,b.inverse=c,i.boundIf.call(b.contexts[0],a,b) }),h.registerHelper("bindAttr",function(a){var b=a. hash,c=a.data.view,d=[],i=this,j=++Ember.$.uuid,k=b ["class"];if(k!==null&&k!==undefined){var l=h.bindClasses (this,k,c,j,a);d.push('class="'+Handlebars.Utils.escapeExpression (l.join(" "))+'"'),delete b["class"]}var m=Ember.keys (b);return g.call(m,function(g){var h=b[g],k,l;l=f( i,h,a.data),k=l.root,h=l.path;var m=h==="this"?k:e( k,h,a),n=Ember.typeOf(m),o,p;o=function(){var b=e(k ,h,a),d=c.$("[data-bindattr-"+j+"='"+j+"']");if(!d|| d.length===0){Ember.removeObserver(k,h,p);return}Ember .View.applyAttributeBindings(d,g,b)},p=function(){Ember .run.scheduleOnce("render",o)},h!=="this"&&Ember.addObserver (k,h,p),n==="string"||n==="number"&&!isNaN(m)?d.push (g+'="'+Handlebars.Utils.escapeExpression(m)+'"'):m&& n==="boolean"&&d.push(g+'="'+g+'"')},this),d.push("data-bindattr-"+ j+'="'+j+'"'),new h.SafeString(d.join(" "))}),h.bindClasses= function(a,b,c,d,h){var i=[],j,k,l,m=function(a,b,c ){var d,f=b.path;return f==="this"?d=a:f===""?d=!0: d=e(a,f,c),Ember.View._classStringForValue(f,d,b.className ,b.falsyClassName)};return g.call(b.split(" "),function( b){var e,g,n,o=Ember.View._parsePropertyPath(b),p=o .path,q=a,r;p!==""&&p!=="this"&&(r=f(a,p,h.data),q= r.root,p=r.path),g=function(){j=m(q,o,h),l=d?c.$("[data-bindattr-"+ d+"='"+d+"']"):c.$(),!l||l.length===0?Ember.removeObserver (q,p,n):(e&&l.removeClass(e),j?(l.addClass(j),e=j): e=null)},n=function(){Ember.run.scheduleOnce("render" ,g)},p!==""&&p!=="this"&&Ember.addObserver(q,p,n),k= m(q,o,h),k&&(i.push(k),e=k)}),i}}(),function(){var a= Ember.get,b=Ember.set,c=/^parentView\./,d=Ember.Handlebars ,e=Ember.VIEW_PRESERVES_CONTEXT;d.ViewHelper=Ember. Object.create({propertiesFromHTMLOptions:function(a ,b){var c=a.hash,d=a.data,e={},f=c["class"],g=!1;c. id&&(e.elementId=c.id,g=!0),f&&(f=f.split(" "),e.classNames= f,g=!0),c.classBinding&&(e.classNameBindings=c.classBinding .split(" "),g=!0),c.classNameBindings&&(e.classNameBindings=== undefined&&(e.classNameBindings=[]),e.classNameBindings= e.classNameBindings.concat(c.classNameBindings.split (" ")),g=!0),c.attributeBindings&&(e.attributeBindings= null,g=!0),g&&(c=Ember.$.extend({},c),delete c.id,delete c["class"],delete c.classBinding);var h;for(var i in c){if(!c.hasOwnProperty(i))continue;Ember.IS_BINDING .test(i)&&typeof c[i]=="string"&&(h=this.contextualizeBindingPath (c[i],d),h&&(c[i]=h))}if(e.classNameBindings)for(var j in e.classNameBindings){var k=e.classNameBindings[j];if(typeof k=="string"){var l=Ember.View._parsePropertyPath(k) ;h=this.contextualizeBindingPath(l.path,d),h&&(e.classNameBindings [j]=h+l.classNames)}}return e.bindingContext=b,Ember .$.extend(c,e)},contextualizeBindingPath:function(a ,b){var c=Ember.Handlebars.normalizePath(null,a,b); return c.isKeyword?"templateData.keywords."+a:Ember .isGlobalPath(a)?null:a==="this"?"bindingContext":"bindingContext."+ a},helper:function(a,b,c){var f=c.inverse,g=c.data, h=g.view,i=c.fn,j=c.hash,k;"string"==typeof b?k=d.getPath (a,b,c):k=b;var l=this.propertiesFromHTMLOptions(c, a),m=g.view;l.templateData=c.data,i&&(l.template=i) ,e&&!k.proto().controller&&!k.proto().controllerBinding&&! l.controller&&!l.controllerBinding&&(l._context=a), m.appendChild(k,l)}}),d.registerHelper("view",function( a,b){return a&&a.data&&a.data.isRenderData&&(b=a,a="Ember.View" ),d.ViewHelper.helper(this,a,b)})}(),function(){var a= Ember.get,b=Ember.Handlebars.getPath,c=Ember.String .fmt;Ember.Handlebars.registerHelper("collection",function( c,d){c&&c.data&&c.data.isRenderData&&(d=c,c=undefined );var e=d.fn,f=d.data,g=d.inverse,h;h=c?b(this,c,d) :Ember.CollectionView;var i=d.hash,j={},k,l,m=i.itemViewClass ,n=h.proto();delete i.itemViewClass,l=m?b(n,m,d):n. itemViewClass;for(var o in i)i.hasOwnProperty(o)&&( k=o.match(/^item(.)(.*)$/),k&&(j[k[1].toLowerCase()+ k[2]]=i[o],delete i[o]));var p=i.tagName||n.tagName ;e&&(j.template=e,delete d.fn);var q;g&&g!==Handlebars .VM.noop?(q=a(n,"emptyViewClass"),q=q.extend({template :g,tagName:j.tagName})):i.emptyViewClass&&(q=b(this ,i.emptyViewClass,d)),i.emptyView=q,i.eachHelper==="each"&& (j._context=Ember.computed(function(){return a(this ,"content")}).property("content"),delete i.eachHelper );var r=Ember.Handlebars.ViewHelper.propertiesFromHTMLOptions ({data:f,hash:j},this);return i.itemViewClass=l.extend (r),Ember.Handlebars.helpers.view.call(this,h,d)})} (),function(){var a=Ember.Handlebars.getPath;Ember. Handlebars.registerHelper("unbound",function(b,c){var d= c.contexts&&c.contexts[0]||this;return a(d,b,c)})}( ),function(){var a=Ember.Handlebars.getPath,b=Ember .Handlebars.normalizePath;Ember.Handlebars.registerHelper ("log",function(c,d){var e=d.contexts&&d.contexts[0 ]||this,f=b(e,c,d.data),g=f.root,h=f.path,i=h==="this"? g:a(g,h,d);Ember.Logger.log(i)}),Ember.Handlebars.registerHelper ("debugger",function(){debugger})}(),function(){var a= Ember.get,b=Ember.set;Ember.Handlebars.EachView=Ember .CollectionView.extend(Ember._Metamorph,{itemViewClass :Ember._MetamorphView,emptyViewClass:Ember._MetamorphView ,createChildView:function(c,d){c=this._super(c,d);var e= a(this,"keyword");if(e){var f=a(c,"templateData");f= Ember.copy(f),f.keywords=c.cloneKeywords(),b(c,"templateData" ,f);var g=a(c,"content");f.keywords[e]=g}return c}} ),Ember.Handlebars.registerHelper("each",function(a ,b){if(arguments.length===4){var c=arguments[0];b=arguments [3],a=arguments[2],a===""&&(a="this"),b.hash.keyword= c}else b.hash.eachHelper="each";return b.hash.contentBinding= a,Ember.Handlebars.helpers.collection.call(this,"Ember.Handlebars.EachView" ,b)})}(),function(){Ember.Handlebars.registerHelper ("template",function(a,b){var c=Ember.TEMPLATES[a]; Ember.TEMPLATES[a](this,{data:b.data})})}(),function( ){var a=Ember.Handlebars,b=a.getPath,c=Ember.get,d= Array.prototype.slice,e=a.ActionHelper={registeredActions :{}};e.registerAction=function(a,b){var c=(++Ember. $.uuid).toString();return e.registeredActions[c]={eventName :b.eventName,handler:function(c){var d=c.shiftKey|| c.metaKey||c.altKey||c.ctrlKey,e=c.which>1,f=d||e;if( b.link&&f)return;c.preventDefault(),c.view=b.view,b .hasOwnProperty("context")&&(c.context=b.context),b .hasOwnProperty("contexts")&&(c.contexts=b.contexts );var g=b.target;return g.isState&&typeof g.send=="function"? g.send(a,c):g[a].call(g,c)}},b.view.on("willRerender" ,function(){delete e.registeredActions[c]}),c},a.registerHelper ("action",function(f){var g=arguments[arguments.length-1 ],h=d.call(arguments,1,-1),i=g.hash,j=g.data.view,k ,l,m,n={eventName:i.on||"click"};n.view=j=c(j,"concreteView" );if(i.target)k=b(this,i.target,g);else if(l=g.data .keywords.controller)k=c(l,"target");n.target=k=k|| j,h.length&&(n.contexts=h=Ember.EnumerableUtils.map (h,function(a){return b(this,a,g)},this),n.context= h[0]);var o=[],p;i.href&&k.urlForEvent&&(p=k.urlForEvent .apply(k,[f].concat(h)),o.push('href="'+p+'"'),n.link=!0 );var q=e.registerAction(f,n);return o.push('data-ember-action="'+ q+'"'),new a.SafeString(o.join(" "))})}(),function( ){var a=Ember.get,b=Ember.set;Ember.Handlebars.registerHelper ("yield",function(b){var c=b.data.view,d;while(c&&! a(c,"layout"))c=a(c,"parentView");d=a(c,"template") ,d&&d(this,b)})}(),function(){Ember.Handlebars.OutletView= Ember.ContainerView.extend(Ember._Metamorph),Ember. Handlebars.registerHelper("outlet",function(a,b){return a&& a.data&&a.data.isRenderData&&(b=a,a="view"),b.hash. currentViewBinding="controller."+a,Ember.Handlebars .helpers.view.call(this,Ember.Handlebars.OutletView ,b)})}(),function(){}(),function(){}(),function(){var a= Ember.set,b=Ember.get;Ember.Checkbox=Ember.View.extend ({classNames:["ember-checkbox"],tagName:"input",attributeBindings :["type","checked","disabled","tabindex"],type:"checkbox" ,checked:!1,disabled:!1,init:function(){this._super (),this.on("change",this,this._updateElementValue)} ,_updateElementValue:function(){a(this,"checked",this .$().prop("checked"))}})}(),function(){var a=Ember. get,b=Ember.set;Ember.TextSupport=Ember.Mixin.create ({value:"",attributeBindings:["placeholder","disabled" ,"maxlength","tabindex"],placeholder:null,disabled:!1 ,maxlength:null,insertNewline:Ember.K,cancel:Ember. K,init:function(){this._super(),this.on("focusOut", this,this._elementValueDidChange),this.on("change", this,this._elementValueDidChange),this.on("keyUp",this ,this.interpretKeyEvents)},interpretKeyEvents:function( a){var b=Ember.TextSupport.KEY_EVENTS,c=b[a.keyCode ];this._elementValueDidChange();if(c)return this[c] (a)},_elementValueDidChange:function(){b(this,"value" ,this.$().val())}}),Ember.TextSupport.KEY_EVENTS={13 :"insertNewline",27:"cancel"}}(),function(){var a=Ember .get,b=Ember.set;Ember.TextField=Ember.View.extend( Ember.TextSupport,{classNames:["ember-text-field"], tagName:"input",attributeBindings:["type","value","size" ],value:"",type:"text",size:null})}(),function(){var a= Ember.get,b=Ember.set;Ember.Button=Ember.View.extend (Ember.TargetActionSupport,{classNames:["ember-button" ],classNameBindings:["isActive"],tagName:"button",propagateEvents :!1,attributeBindings:["type","disabled","href","tabindex" ],targetObject:Ember.computed(function(){var b=a(this ,"target"),c=a(this,"context"),d=a(this,"templateData" );return typeof b!="string"?b:Ember.Handlebars.getPath (c,b,{data:d})}).property("target").cacheable(),type :Ember.computed(function(a,b){var c=this.get("tagName" );b!==undefined&&(this._type=b);if(this._type!==undefined )return this._type;if(c==="input"||c==="button")return"button" }).property("tagName").cacheable(),disabled:!1,href :Ember.computed(function(){return this.get("tagName" )==="a"?"#":null}).property("tagName").cacheable(), mouseDown:function(){return a(this,"disabled")||(b( this,"isActive",!0),this._mouseDown=!0,this._mouseEntered=!0 ),a(this,"propagateEvents")},mouseLeave:function(){ this._mouseDown&&(b(this,"isActive",!1),this._mouseEntered=!1 )},mouseEnter:function(){this._mouseDown&&(b(this,"isActive" ,!0),this._mouseEntered=!0)},mouseUp:function(c){return a (this,"isActive")&&(this.triggerAction(),b(this,"isActive" ,!1)),this._mouseDown=!1,this._mouseEntered=!1,a(this ,"propagateEvents")},keyDown:function(a){(a.keyCode===13|| a.keyCode===32)&&this.mouseDown()},keyUp:function(a ){(a.keyCode===13||a.keyCode===32)&&this.mouseUp()} ,touchStart:function(a){return this.mouseDown(a)},touchEnd :function(a){return this.mouseUp(a)},init:function( ){this._super()}})}(),function(){var a=Ember.get,b= Ember.set;Ember.TextArea=Ember.View.extend(Ember.TextSupport ,{classNames:["ember-text-area"],tagName:"textarea" ,attributeBindings:["rows","cols"],rows:null,cols:null ,_updateElementValue:Ember.observer(function(){var b= a(this,"value"),c=this.$();c&&b!==c.val()&&c.val(b) },"value"),init:function(){this._super(),this.on("didInsertElement" ,this,this._updateElementValue)}})}(),function(){Ember .TabContainerView=Ember.View.extend({init:function( ){this._super()}})}(),function(){var a=Ember.get;Ember .TabPaneView=Ember.View.extend({tabsContainer:Ember .computed(function(){return this.nearestInstanceOf( Ember.TabContainerView)}).property().volatile(),isVisible :Ember.computed(function(){return a(this,"viewName" )===a(this,"tabsContainer.currentView")}).property("tabsContainer.currentView" ).volatile(),init:function(){this._super()}})}(),function( ){var a=Ember.get,b=Ember.setPath;Ember.TabView=Ember .View.extend({tabsContainer:Ember.computed(function( ){return this.nearestInstanceOf(Ember.TabContainerView )}).property().volatile(),mouseUp:function(){b(this ,"tabsContainer.currentView",a(this,"value"))},init :function(){this._super()}})}(),function(){}(),function( ){var a=Ember.set,b=Ember.get,c=Ember.EnumerableUtils .indexOf,d=Ember.EnumerableUtils.indexesOf;Ember.Select= Ember.View.extend({tagName:"select",classNames:["ember-select" ],defaultTemplate:Ember.Handlebars.compile('{{#if view.prompt}}{{/if}}{{#each view.content}}{{view Ember.SelectOption contentBinding="this"}}{{/each}}' ),attributeBindings:["multiple","tabindex"],multiple :!1,content:null,selection:null,value:Ember.computed (function(a,c){if(arguments.length===2)return c;var d= b(this,"optionValuePath").replace(/^content\.?/,"") ;return d?b(this,"selection."+d):b(this,"selection" )}).property("selection").cacheable(),prompt:null,optionLabelPath :"content",optionValuePath:"content",_change:function( ){b(this,"multiple")?this._changeMultiple():this._changeSingle ()},selectionDidChange:Ember.observer(function(){var c= b(this,"selection"),d=Ember.isArray(c);if(b(this,"multiple" )){if(!d){a(this,"selection",Ember.A([c]));return}this ._selectionDidChangeMultiple()}else this._selectionDidChangeSingle ()},"selection"),valueDidChange:Ember.observer(function( ){var a=b(this,"content"),c=b(this,"value"),d=b(this ,"optionValuePath").replace(/^content\.?/,""),e=d?b (this,"selection."+d):b(this,"selection"),f;c!==e&& (f=a.find(function(a){return c===(d?b(a,d):a)}),this .set("selection",f))},"value"),_triggerChange:function( ){var a=b(this,"selection"),c=b(this,"value");a&&this .selectionDidChange(),c&&this.valueDidChange(),this ._change()},_changeSingle:function(){var c=this.$() [0].selectedIndex,d=b(this,"content"),e=b(this,"prompt" );if(!d)return;if(e&&c===0){a(this,"selection",null );return}e&&(c-=1),a(this,"selection",d.objectAt(c) )},_changeMultiple:function(){var c=this.$("option:selected" ),d=b(this,"prompt"),e=d?1:0,f=b(this,"content");if(! f)return;if(c){var g=c.map(function(){return this.index- e}).toArray();a(this,"selection",f.objectsAt(g))}}, _selectionDidChangeSingle:function(){var a=this.get ("element");if(!a)return;var d=b(this,"content"),e= b(this,"selection"),f=d?c(d,e):-1,g=b(this,"prompt" );g&&(f+=1),a&&(a.selectedIndex=f)},_selectionDidChangeMultiple :function(){var a=b(this,"content"),e=b(this,"selection" ),f=a?d(a,e):[-1],g=b(this,"prompt"),h=g?1:0,i=this .$("option"),j;i&&i.each(function(){j=this.index>-1? this.index-h:-1,this.selected=c(f,j)>-1})},init:function( ){this._super(),this.on("didInsertElement",this,this ._triggerChange),this.on("change",this,this._change )}}),Ember.SelectOption=Ember.View.extend({tagName:"option" ,attributeBindings:["value","selected"],defaultTemplate :function(a,b){b={data:b.data,hash:{}},Ember.Handlebars .helpers.bind.call(a,"view.label",b)},init:function( ){this.labelPathDidChange(),this.valuePathDidChange (),this._super()},selected:Ember.computed(function( ){var a=b(this,"content"),d=b(this,"parentView.selection" );return b(this,"parentView.multiple")?d&&c(d,a.valueOf ())>-1:a==d}).property("content","parentView.selection" ).volatile(),labelPathDidChange:Ember.observer(function( ){var a=b(this,"parentView.optionLabelPath");if(!a) return;Ember.defineProperty(this,"label",Ember.computed (function(){return b(this,a)}).property(a).cacheable ())},"parentView.optionLabelPath"),valuePathDidChange :Ember.observer(function(){var a=b(this,"parentView.optionValuePath" );if(!a)return;Ember.defineProperty(this,"value",Ember .computed(function(){return b(this,a)}).property(a) .cacheable())},"parentView.optionValuePath")})}(),function( ){}(),function(){function a(){Ember.Handlebars.bootstrap (Ember.$(document))}Ember.Handlebars.bootstrap=function( a){var b='script[type="text/x-handlebars"], script[type="text/x-raw-handlebars"]' ;Ember.$(b,a).each(function(){var a=Ember.$(this),b= a.attr("type"),c=a.attr("type")==="text/x-raw-handlebars"? Ember.$.proxy(Handlebars.compile,Handlebars):Ember. $.proxy(Ember.Handlebars.compile,Ember.Handlebars), d=a.attr("data-template-name")||a.attr("id")||"application" ,e=c(a.html());Ember.TEMPLATES[d]=e,a.remove()})},Ember .onLoad("application",a)}(),function(){}(),function( ){}(),ansiparse=function(a){var b=null,c=null,d="", e=[],f=[],g={};for(var h=0;h-1?b.split("." )[1].length:0):a=isNaN(b=Y(b))?2:b;var b=a,d=d===void 0? f.decimalPoint:d,e=e===void 0?f.thousandsSep:e,f=g<0?"-" :"",a=String(c(g=Y(+g||0).toFixed(b))),h=a.length>3? a.length%3:0;return f+(h?a.substr(0,h)+e:"")+a.substr (h).replace(/(\d{3})(?=\d)/g,"$1"+e)+(b?d+Y(g-a).toFixed (b).slice(2):"")}function s(a,b){return Array((b||2 )+1-String(a).length).join(0)+a}function t(a,b,c,d) {var e,c=n(c,1);e=a/c,b||(b=[1,2,2.5,5,10],d&&d.allowDecimals===!1&& (c===1?b=[1,2,5,10]:c<=.1&&(b=[1/c])));for(d=0;d=bs[by]&&(j.setMilliseconds(0),j.setSeconds (c>=bs[bz]?0:k*U(j.getSeconds()/k))),c>=bs[bz]&&j[bM ](c>=bs[bA]?0:k*U(j[bG]()/k)),c>=bs[bA]&&j[bN](c>=bs [bB]?0:k*U(j[bH]()/k)),c>=bs[bB]&&j[bO](c>=bs[bD]?1 :k*U(j[bJ]()/k)),c>=bs[bD]&&(j[bP](c>=bs[bE]?0:k*U( j[bK]()/k)),i=j[bL]()),c>=bs[bE]&&(i-=i%k,j[bQ](i)) ,c===bs[bC]&&j[bO](j[bJ]()-j[bI]()+n(e,1)),e=1,i=j[ bL]();for(var l=j.getTime(),m=j[bK](),o=j[bJ](),j=h?0 :(864e5+j.getTimezoneOffset()*6e4)%864e5;lc&&(c=a[b]);return c}function A(a, b){for(var c in a)a[c]&&a[c]!==b&&a[c].destroy&&a[c ].destroy(),delete a[c]}function B(a){bn||(bn=p(bu) ),a&&bn.appendChild(a),bn.innerHTML=""}function C(a ,b){var c="Highcharts error #"+a+": www.highcharts.com/errors/"+ a;if(b)throw c;R.console&&console.log(c)}function D (a){return parseFloat(a.toPrecision(14))}function E (a,b){bq=n(a,b.animation)}function F(){var a=bo.global .useUTC,b=a?"getUTC":"get",c=a?"setUTC":"set";bF=a? Date.UTC:function(a,b,c,d,e,f){return(new Date(a,b, n(c,1),n(d,0),n(e,0),n(f,0))).getTime()},bG=b+"Minutes" ,bH=b+"Hours",bI=b+"Day",bJ=b+"Date",bK=b+"Month",bL= b+"FullYear",bM=c+"Minutes",bN=c+"Hours",bO=c+"Date" ,bP=c+"Month",bQ=c+"FullYear"}function G(){}function H (a,b,c){this.axis=a,this.pos=b,this.type=c||"",this .isNew=!0,c||this.addLabel()}function I(a,b){return this .axis=a,b&&(this.options=b,this.id=b.id),this}function J (a,b,c,d,e){var f=a.chart.inverted;this.axis=a,this .isNegative=c,this.options=b,this.x=d,this.stack=e, this.alignOptions={align:b.align||(f?c?"left":"right" :"center"),verticalAlign:b.verticalAlign||(f?"middle" :c?"bottom":"top"),y:n(b.y,f?4:c?14:-6),x:n(b.x,f?c?-6 :6:0)},this.textAlign=b.textAlign||(f?c?"right":"left" :"center")}function K(){this.init.apply(this,arguments )}function L(a,b){var d=b.borderWidth,e=b.style,f=b .shared,g=c(e.padding);this.chart=a,this.options=b, e.padding=0,this.crosshairs=[],this.currentY=this.currentX=0 ,this.tooltipIsHidden=!0,this.label=a.renderer.label ("",0,0,null,null,null,b.useHTML,null,"tooltip").attr ({padding:g,fill:b.backgroundColor,"stroke-width":d ,r:b.borderRadius,zIndex:8}).css(e).hide().add(),bi|| this.label.shadow(b.shadow),this.shared=f}function M (a,b){var c=bi?"":b.chart.zoomType;this.zoomX=/x/.test (c),this.zoomY=/y/.test(c),this.options=b,this.chart= a,this.init(a,b.tooltip)}function N(a){this.init(a) }function O(a,b){var c,d=a.series;a.series=null,c=b$ (bo,a),c.series=a.series=d;var d=c.chart,f=d.margin ,f=e(f)?f:[f,f,f,f];this.optionsMarginTop=n(d.marginTop ,f[0]),this.optionsMarginRight=n(d.marginRight,f[1] ),this.optionsMarginBottom=n(d.marginBottom,f[2]),this .optionsMarginLeft=n(d.marginLeft,f[3]),this.runChartClick= (f=d.events)&&!!f.click,this.callback=b,this.isResizing=0 ,this.options=c,this.axes=[],this.series=[],this.hasCartesianSeries= d.showAxes,this.init(f)}var P,Q=document,R=window,S= Math,T=S.round,U=S.floor,V=S.ceil,W=S.max,X=S.min,Y= S.abs,Z=S.cos,$=S.sin,_=S.PI,ba=_*2/360,bb=navigator .userAgent,bc=/msie/i.test(bb)&&!R.opera,bd=Q.documentMode===8 ,be=/AppleWebKit/.test(bb),bf=/Firefox/.test(bb),bg=!! Q.createElementNS&&!!Q.createElementNS("http://www.w3.org/2000/svg" ,"svg").createSVGRect,bh=bf&&parseInt(bb.split("Firefox/" )[1],10)<4,bi=!bg&&!bc&&!!Q.createElement("canvas") .getContext,bj,bk=Q.documentElement.ontouchstart!== P,bl={},bm=0,bn,bo,bp,bq,br,bs,bt=function(){},bu="div" ,bv="none",bw="rgba(192,192,192,"+(bg?1e-6:.002)+")" ,bx="millisecond",by="second",bz="minute",bA="hour" ,bB="day",bC="week",bD="month",bE="year",bF,bG,bH,bI ,bJ,bK,bL,bM,bN,bO,bP,bQ,bR={};R.Highcharts={},bp=function( a,b,c){if(!k(b)||isNaN(b))return"Invalid date";var a= n(a,"%Y-%m-%d %H:%M:%S"),d=new Date(b),e,f=d[bH](), g=d[bI](),h=d[bJ](),i=d[bK](),j=d[bL](),l=bo.lang,m= l.weekdays,b={a:m[g].substr(0,3),A:m[g],d:s(h),e:h, b:l.shortMonths[i],B:l.months[i],m:s(i+1),y:j.toString ().substr(2,2),Y:j,H:s(f),I:s(f%12||12),l:f%12||12, M:s(d[bG]()),p:f<12?"AM":"PM",P:f<12?"am":"pm",S:s( d.getSeconds()),L:s(T(b%1e3),3)};for(e in b)a=a.replace ("%"+e,b[e]);return c?a.substr(0,1).toUpperCase()+a .substr(1):a},w.prototype={wrapColor:function(a){this .color>=a&&(this.color=0)},wrapSymbol:function(a){this .symbol>=a&&(this.symbol=0)}},bs=b(bx,1,by,1e3,bz,6e4 ,bA,36e5,bB,864e5,bC,6048e5,bD,2592e6,bE,31556952e3 ),br={init:function(a,b,c){var b=b||"",d=a.shift,e= b.indexOf("C")>-1,f=e?7:3,g,b=b.split(" "),c=[].concat (c),h,i,j=function(a){for(g=a.length;g--;)a[g]==="M"&& a.splice(g+1,0,a[g+1],a[g+2],a[g+1],a[g+2])};e&&(j( b),j(c)),a.isArea&&(h=b.splice(b.length-6,6),i=c.splice (c.length-6,6));if(d<=c.length/f)for(;d--;)c=[].concat (c).splice(0,f).concat(c);a.shift=0;if(b.length)for( a=c.length;b.length{point.key}
' ,pointFormat:'{series.name}: {point.y}
' ,shadow:!0,shared:bi,snap:bk?25:10,style:{color:"#333333" ,fontSize:"12px",padding:"5px",whiteSpace:"nowrap"} },credits:{enabled:!0,text:"Highcharts.com",href:"http://www.highcharts.com" ,position:{align:"right",x:-10,verticalAlign:"bottom" ,y:-5},style:{cursor:"pointer",color:"#909090",fontSize :"10px"}}};var ci=bo.plotOptions,bS=ci.line;F();var cj= function(a){var b=[],d;return function(a){(d=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/ .exec(a))?b=[c(d[1]),c(d[2]),c(d[3]),parseFloat(d[4 ],10)]:(d=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/ .exec(a))&&(b=[c(d[1],16),c(d[2],16),c(d[3],16),1]) }(a),{get:function(c){return b&&!isNaN(b[0])?c==="rgb"?"rgb("+ b[0]+","+b[1]+","+b[2]+")":c==="a"?b[3]:"rgba("+b.join (",")+")":a},brighten:function(a){if(g(a)&&a!==0){var d ;for(d=0;d<3;d++)b[d]+=c(a*255),b[d]<0&&(b[d]=0),b[ d]>255&&(b[d]=255)}return this},setOpacity:function( a){return b[3]=a,this}}};G.prototype={init:function( a,b){this.element=b==="span"?p(b):Q.createElementNS ("http://www.w3.org/2000/svg",b),this.renderer=a,this .attrSetters={}},animate:function(a,b,c){b=n(b,bq,!0 ),ce(this),b?(b=b$(b),c&&(b.complete=c),cd(this,a,b )):(this.attr(a),c&&c())},attr:function(a,b){var e, f,g,h,i=this.element,j=i.nodeName,m=this.renderer,n ,o=this.attrSetters,p=this.shadows,q,r,s=this;d(a)&& k(b)&&(e=a,a={},a[e]=b);if(d(a))e=a,j==="circle"?e= {x:"cx",y:"cy"}[e]||e:e==="strokeWidth"&&(e="stroke-width" ),s=l(i,e)||this[e]||0,e!=="d"&&e!=="visibility"&&( s=parseFloat(s));else for(e in a)if(n=!1,f=a[e],g=o [e]&&o[e](f,e),g!==!1){g!==P&&(f=g);if(e==="d")f&&f .join&&(f=f.join(" ")),/(NaN| {2}|^$)/.test(f)&&(f="M 0 0" );else if(e==="x"&&j==="text"){for(g=0;gq&&/[ \-]/.test (b.innerText)&&(o(b,{width:q+"px",display:"block",whiteSpace :"normal"}),m=q),q=a.fontMetrics(b.style.fontSize). b,u=r<0&&-m,v=s<0&&-p,t=r*s<0,u+=s*q*(t?1-i:i),v-=r* q*(l?t?i:1-i:1),j&&(u-=m*i*(r<0?-1:1),l&&(v-=p*i*(s<0?-1 :1)),o(b,{textAlign:h})),this.xCorr=u,this.yCorr=v) ,o(b,{left:f+u+"px",top:g+v+"px"}),this.cTT=w}}else this .alignOnAdd=!0},updateTransform:function(){var a=this .translateX||0,b=this.translateY||0,c=this.inverted ,d=this.rotation,e=[];c&&(a+=this.attr("width"),b+= this.attr("height")),(a||b)&&e.push("translate("+a+","+ b+")"),c?e.push("rotate(90) scale(-1,1)"):d&&e.push ("rotate("+d+" "+(this.x||0)+" "+(this.y||0)+")"),e .length&&l(this.element,"transform",e.join(" "))},toFront :function(){var a=this.element;return a.parentNode. appendChild(a),this},align:function(a,b,c){a?(this. alignOptions=a,this.alignByTranslate=b,c||this.renderer .alignedObjects.push(this)):(a=this.alignOptions,b= this.alignByTranslate);var c=n(c,this.renderer),d=a .align,e=a.verticalAlign,f=(c.x||0)+(a.x||0),g=(c.y||0 )+(a.y||0),h={};return/^(right|center)$/.test(d)&&( f+=(c.width-(a.width||0))/{right:1,center:2}[d]),h[ b?"translateX":"x"]=T(f),/^(bottom|middle)$/.test(e )&&(g+=(c.height-(a.height||0))/({bottom:1,middle:2 }[e]||1)),h[b?"translateY":"y"]=T(g),this[this.placed?"animate" :"attr"](h),this.placed=!0,this.alignAttr=h,this},getBBox :function(b){var c,d,e=this.rotation;d=this.element ;var f=e*ba;if(d.namespaceURI==="http://www.w3.org/2000/svg"|| this.renderer.forExport){try{c=d.getBBox?a({},d.getBBox ()):{width:d.offsetWidth,height:d.offsetHeight}}catch( g){}if(!c||c.width<0)c={width:0,height:0};b=c.width ,d=c.height,e&&(c.width=Y(d*$(f))+Y(b*Z(f)),c.height= Y(d*Z(f))+Y(b*$(f)))}else c=this.htmlGetBBox(b);return c },show:function(){return this.attr({visibility:"visible" })},hide:function(){return this.attr({visibility:"hidden" })},add:function(a){var b=this.renderer,d=a||b,e=d. element||b.box,f=e.childNodes,g=this.element,h=l(g,"zIndex" ),i;this.parentInverted=a&&a.inverted,this.textStr!==void 0&& b.buildText(this),h&&(d.handleZ=!0,h=c(h));if(d.handleZ )for(d=0;dh||!k(h)&&k(b))){e.insertBefore(g,a),i=!0; break}return i||e.appendChild(g),this.added=!0,cb(this ,"add"),this},safeRemoveChild:function(a){var b=a.parentNode ;b&&b.removeChild(a)},destroy:function(){var a=this ,b=a.element||{},c=a.shadows,d=a.box,e,f;b.onclick= b.onmouseout=b.onmouseover=b.onmousemove=null,ce(a) ,a.clipPath&&(a.clipPath=a.clipPath.destroy());if(a .stops){for(f=0;f/g,'' ).replace(/<(i|em)>/g,'' ).replace(//g ,"").split(//g),e=b.childNodes,f=/style="([^"]+)"/ ,g=/href="([^"]+)"/,h=l(b,"x"),i=a.styles,j=i&&c(i. width),k=i&&i.lineHeight,m,i=e.length,p=[];i--;)b.removeChild (e[i]);j&&!a.added&&this.box.appendChild(b),d[d.length-1 ]===""&&d.pop(),bW(d,function(d,e){var i,n=0,q,d=d. replace(//g,"|||" );i=d.split("|||"),bW(i,function(d){if(d!==""||i.length===1 ){var r={},s=Q.createElementNS("http://www.w3.org/2000/svg" ,"tspan");f.test(d)&&l(s,"style",d.match(f)[1].replace (/(;| |^)color([ :])/,"$1fill$2")),g.test(d)&&(l(s,"onclick" ,'location.href="'+d.match(g)[1]+'"'),o(s,{cursor:"pointer" })),d=(d.replace(/<(.|\n)*?>/g,"")||" ").replace(/</g ,"<").replace(/>/g,">"),s.appendChild(Q.createTextNode (d)),n?r.dx=3:r.x=h;if(!n){if(e){!bg&&a.renderer.forExport&& o(s,{display:"block"}),q=R.getComputedStyle&&c(R.getComputedStyle (m,null).getPropertyValue("line-height"));if(!q||isNaN (q)){var t;(t=k)||(t=m.offsetHeight)||(p[e]=b.getBBox ().height,t=T(p[e]-(p[e-1]||0))||18),q=t}l(s,"dy",q )}m=s}l(s,r),b.appendChild(s),n++;if(j)for(var d=d. replace(/-/g,"- ").split(" "),u=[];d.length||u.length ;)t=a.getBBox().width,r=t>j,!r||d.length===1?(d=u,u= [],d.length&&(s=Q.createElementNS("http://www.w3.org/2000/svg" ,"tspan"),l(s,{dy:k||16,x:h}),b.appendChild(s),t>j&& (j=t))):(s.removeChild(s.firstChild),u.unshift(d.pop ())),d.length&&s.appendChild(Q.createTextNode(d.join (" ").replace(/- /g,"-")))}})})},button:function(c, d,e,f,g,h,i){var j=this.label(c,d,e),k=0,l,m,n,o,p, c={x1:0,y1:0,x2:0,y2:1},g=b$(b("stroke-width",1,"stroke" ,"#999","fill",b("linearGradient",c,"stops",[[0,"#FFF" ],[1,"#DDD"]]),"r",3,"padding",3,"style",b("color","black" )),g);return n=g.style,delete g.style,h=b$(g,b("stroke" ,"#68A","fill",b("linearGradient",c,"stops",[[0,"#FFF" ],[1,"#ACF"]])),h),o=h.style,delete h.style,i=b$(g, b("stroke","#68A","fill",b("linearGradient",c,"stops" ,[[0,"#9BD"],[1,"#CDF"]])),i),p=i.style,delete i.style ,b_(j.element,"mouseenter",function(){j.attr(h).css (o)}),b_(j.element,"mouseleave",function(){l=[g,h,i ][k],m=[n,o,p][k],j.attr(l).css(m)}),j.setState=function( a){(k=a)?a===2&&j.attr(i).css(p):j.attr(g).css(n)}, j.on("click",function(){f.call(j)}).attr(g).css(a({ cursor:"default"},n))},crispLine:function(a,b){return a [1]===a[4]&&(a[1]=a[4]=T(a[1])+b%2/2),a[2]===a[5]&& (a[2]=a[5]=T(a[2])+b%2/2),a},path:function(b){var c= {fill:bv};return f(b)?c.d=b:e(b)&&a(c,b),this.createElement ("path").attr(c)},circle:function(a,b,c){return a=e (a)?a:{x:a,y:b,r:c},this.createElement("circle").attr (a)},arc:function(a,b,c,d,f,g){return e(a)&&(b=a.y, c=a.r,d=a.innerR,f=a.start,g=a.end,a=a.x),this.symbol ("arc",a||0,b||0,c||0,c||0,{innerR:d||0,start:f||0, end:g||0})},rect:function(a,b,c,d,f,g){return f=e(a )?a.r:f,f=this.createElement("rect").attr({rx:f,ry: f,fill:bv}),f.attr(e(a)?a:f.crisp(g,a,b,W(c,0),W(d,0 )))},setSize:function(a,b,c){var d=this.alignedObjects ,e=d.length;this.width=a,this.height=b;for(this.boxWrapper [n(c,!0)?"animate":"attr"]({width:a,height:b});e--; )d[e].align()},g:function(a){var b=this.createElement ("g");return k(a)?b.attr({"class":"highcharts-"+a}) :b},image:function(b,c,d,e,f){var g={preserveAspectRatio :bv};return arguments.length>1&&a(g,{x:c,y:d,width: e,height:f}),g=this.createElement("image").attr(g), g.element.setAttributeNS?g.element.setAttributeNS("http://www.w3.org/1999/xlink" ,"href",b):g.element.setAttribute("hc-svg-href",b), g},symbol:function(b,c,d,e,f,g){var h,i=this.symbols [b],i=i&&i(T(c),T(d),e,f,g),j=/^url\((.*?)\)$/,k,l; return i?(h=this.path(i),a(h,{symbolName:b,x:c,y:d, width:e,height:f}),g&&a(h,g)):j.test(b)&&(l=function( a,b){a.attr({width:b[0],height:b[1]}),a.alignByTranslate|| a.translate(-T(b[0]/2),-T(b[1]/2))},k=b.match(j)[1] ,b=bl[k],h=this.image(k).attr({x:c,y:d}),b?l(h,b):( h.attr({width:0,height:0}),p("img",{onload:function( ){l(h,bl[k]=[this.width,this.height])},src:k}))),h} ,symbols:{circle:function(a,b,c,d){var e=.166*c;return["M" ,a+c/2,b,"C",a+c+e,b,a+c+e,b+d,a+c/2,b+d,"C",a-e,b+ d,a-e,b,a+c/2,b,"Z"]},square:function(a,b,c,d){return["M" ,a,b,"L",a+c,b,a+c,b+d,a,b+d,"Z"]},triangle:function( a,b,c,d){return["M",a+c/2,b,"L",a+c,b+d,a,b+d,"Z"]} ,"triangle-down":function(a,b,c,d){return["M",a,b,"L" ,a+c,b,a+c/2,b+d,"Z"]},diamond:function(a,b,c,d){return["M" ,a+c/2,b,"L",a+c,b+d/2,a+c/2,b+d,a,b+d/2,"Z"]},arc: function(a,b,c,d,e){var f=e.start,c=e.r||c||d,g=e.end-1e-6 ,d=e.innerR,h=e.open,i=Z(f),j=$(f),k=Z(g),g=$(g),e= e.end-f<_?0:1;return["M",a+c*i,b+c*j,"A",c,c,0,e,1, a+c*k,b+c*g,h?"M":"L",a+d*k,b+d*g,"A",d,d,0,e,0,a+d* i,b+d*j,h?"":"Z"]}},clipRect:function(a,b,c,d){var e="highcharts-"+ bm++,f=this.createElement("clipPath").attr({id:e}). add(this.defs),a=this.rect(a,b,c,d,0).add(f);return a .id=e,a.clipPath=f,a},color:function(b,c,d){var e=this ,g,h=/^rgba/,i;b&&b.linearGradient?i="linearGradient" :b&&b.radialGradient&&(i="radialGradient");if(i){var d= b[i],j=e.gradients,m,n,o,c=c.radialReference;if(!d. id||!j[d.id])f(d)&&(b[i]=d={x1:d[0],y1:d[1],x2:d[2] ,y2:d[3],gradientUnits:"userSpaceOnUse"}),i==="radialGradient"&& c&&!k(d.gradientUnits)&&a(d,{cx:c[0]-c[2]/2+d.cx*c[2 ],cy:c[1]-c[2]/2+d.cy*c[2],r:d.r*c[2],gradientUnits :"userSpaceOnUse"}),d.id="highcharts-"+bm++,j[d.id]= m=e.createElement(i).attr(d).add(e.defs),m.stops=[] ,bW(b.stops,function(a){h.test(a[1])?(g=cj(a[1]),n= g.get("rgb"),o=g.get("a")):(n=a[1],o=1),a=e.createElement ("stop").attr({offset:a[0],"stop-color":n,"stop-opacity" :o}).add(m),m.stops.push(a)});return"url("+e.url+"#"+ d.id+")"}return h.test(b)?(g=cj(b),l(c,d+"-opacity" ,g.get("a")),g.get("rgb")):(c.removeAttribute(d+"-opacity" ),b)},text:function(a,b,c,d){var e=bo.chart.style;return d&&! this.forExport?this.html(a,b,c):(b=T(n(b,0)),c=T(n( c,0)),a=this.createElement("text").attr({x:b,y:c,text :a}).css({fontFamily:e.fontFamily,fontSize:e.fontSize }),a.x=b,a.y=c,a)},html:function(b,c,d){var e=bo.chart .style,f=this.createElement("span"),g=f.attrSetters ,h=f.element,i=f.renderer;return g.text=function(a) {return h.innerHTML=a,!1},g.x=g.y=g.align=function( a,b){return b==="align"&&(b="textAlign"),f[b]=a,f.htmlUpdateTransform (),!1},f.attr({text:b,x:T(c),y:T(d)}).css({position :"absolute",whiteSpace:"nowrap",fontFamily:e.fontFamily ,fontSize:e.fontSize}),f.css=f.htmlCss,i.isSVG&&(f. add=function(b){var c,d,e=i.box.parentNode;if(b){if( c=b.div,!c)c=b.div=p(bu,{className:l(b.element,"class" )},{position:"absolute",left:b.attr("translateX")+"px" ,top:b.attr("translateY")+"px"},e),d=c.style,a(b.attrSetters ,{translateX:function(a){d.left=a+"px"},translateY: function(a){d.top=a+"px"},visibility:function(a,b){ d[b]=a}})}else c=e;return c.appendChild(h),f.added=!0 ,f.alignOnAdd&&f.htmlUpdateTransform(),f}),f},fontMetrics :function(a){var a=c(a||11),a=a<24?a+4:T(a*1.2),b=T (a*.8);return{h:a,b:b}},label:function(b,c,d,e,f,g, h,i,j){function l(){var a=p.styles,a=a&&a.textAlign ,b=u*(1-t),c;c=i?0:B,k(v)&&(a==="center"||a==="right" )&&(b+={center:.5,right:1}[a]*(v-s.width)),(b!==q.x|| c!==q.y)&&q.attr({x:b,y:c}),q.x=b,q.y=c}function m( a,b){r?r.attr(a,b):A[a]=b}function n(){p.attr({text :b,x:c,y:d}),k(f)&&p.attr({anchorX:f,anchorY:g})}var o= this,p=o.g(j),q=o.text("",0,0,h).attr({zIndex:1}).add (p),r,s,t=0,u=3,v,w,x,y,z=0,A={},B,h=p.attrSetters; b_(p,"add",n),h.width=function(a){return v=a,!1},h. height=function(a){return w=a,!1},h.padding=function( a){return k(a)&&a!==u&&(u=a,l()),!1},h.align=function( a){return t={left:0,center:.5,right:1}[a],!1},h.text= function(a,b){q.attr(b,a);var c;return c=q.element. style,s=(v===void 0||w===void 0||p.styles.textAlign )&&q.getBBox(!0),p.width=(v||s.width||0)+2*u,p.height= (w||s.height||0)+2*u,B=u+o.fontMetrics(c&&c.fontSize ).b,r||(c=i?-B:0,p.box=r=e?o.symbol(e,-t*u,c,p.width ,p.height):o.rect(-t*u,c,p.width,p.height,0,A["stroke-width" ]),r.add(p)),r.attr(b$({width:p.width,height:p.height },A)),A=null,l(),!1},h["stroke-width"]=function(a,b ){return z=a%2/2,m(b,a),!1},h.stroke=h.fill=h.r=function( a,b){return m(b,a),!1},h.anchorX=function(a,b){return f= a,m(b,a+z-x),!1},h.anchorY=function(a,b){return g=a ,m(b,a-y),!1},h.x=function(a){return p.x=a,a-=t*((v|| s.width)+u),x=T(a),p.attr("translateX",x),!1},h.y=function( a){return y=p.y=T(a),p.attr("translateY",a),!1};var C= p.css;return a(p,{css:function(a){if(a){var b={},a= b$({},a);bW("fontSize,fontWeight,fontFamily,color,lineHeight,width" .split(","),function(c){a[c]!==P&&(b[c]=a[c],delete a[c])}),q.css(b)}return C.call(p,a)},getBBox:function( ){return r.getBBox()},shadow:function(a){return r.shadow (a),p},destroy:function(){ca(p,"add",n),ca(p.element ,"mouseenter"),ca(p.element,"mouseleave"),q&&(q=q.destroy ()),G.prototype.destroy.call(p)}})}},bj=ck;var cl;if(! bg&&!bi){cl={init:function(a,b){var c=["<",b,' filled="f" stroked="f"' ],d=["position: ","absolute",";"];(b==="shape"||b=== bu)&&d.push("left:0;top:0;width:1px;height:1px;"),bd&& d.push("visibility: ",b===bu?"hidden":"visible"),c. push(' style="',d.join(""),'"/>'),b&&(c=b===bu||b==="span"|| b==="img"?c.join(""):a.prepVML(c),this.element=p(c) ),this.renderer=a,this.attrSetters={}},add:function( a){var b=this.renderer,c=this.element,d=b.box,d=a?a .element||a:d;return a&&a.inverted&&b.invertChild(c ,d),bd&&d.gVis==="hidden"&&o(c,{visibility:"hidden" }),d.appendChild(c),this.added=!0,this.alignOnAdd&&! this.deferUpdateTransform&&this.updateTransform(),cb (this,"add"),this},toggleChildren:function(a,b){for( var c=a.childNodes,d=c.length;d--;)o(c[d],{visibility :b}),c[d].nodeName==="DIV"&&this.toggleChildren(c[d ],b)},updateTransform:G.prototype.htmlUpdateTransform ,attr:function(a,b){var c,e,f,h=this.element||{},i= h.style,j=h.nodeName,m=this.renderer,n=this.symbolName ,o,q=this.shadows,r,s=this.attrSetters,t=this;d(a)&& k(b)&&(c=a,a={},a[c]=b);if(d(a))c=a,t=c==="strokeWidth"|| c==="stroke-width"?this.strokeweight:this[c];else for( c in a)if(e=a[c],r=!1,f=s[c]&&s[c](e,c),f!==!1&&e!== null){f!==P&&(e=f);if(n&&/^(x|y|r|start|end|width|height|innerR|anchorX|anchorY)/ .test(c))o||(this.symbolAttr(a),o=!0),r=!0;else if( c==="d"){e=e||[],this.d=e.join(" "),f=e.length;for( r=[];f--;)r[f]=g(e[f])?T(e[f]*10)-5:e[f]==="Z"?"x": e[f];e=r.join(" ")||"x",h.path=e;if(q)for(f=q.length ;f--;)q[f].path=q[f].cutOff?this.cutOffPath(e,q[f]. cutOff):e;r=!0}else c==="zIndex"||c==="visibility"? (bd&&c==="visibility"&&j==="DIV"&&(h.gVis=e,this.toggleChildren (h,e),e==="visible"&&(e=null)),e&&(i[c]=e),r=!0):c==="width"|| c==="height"?(e=W(0,e),this[c]=e,this.updateClipping? (this[c]=e,this.updateClipping()):i[c]=e,r=!0):c==="x"|| c==="y"?(this[c]=e,i[{x:"left",y:"top"}[c]]=e):c==="class"? h.className=e:c==="stroke"?(e=m.color(e,h,c),c="strokecolor" ):c==="stroke-width"||c==="strokeWidth"?(h.stroked= e?!0:!1,c="strokeweight",this[c]=e,g(e)&&(e+="px")) :c==="dashstyle"?((h.getElementsByTagName("stroke") [0]||p(m.prepVML([""]),null,null,h))[c]=e||"solid" ,this.dashstyle=e,r=!0):c==="fill"?j==="SPAN"?i.color= e:(h.filled=e!==bv?!0:!1,e=m.color(e,h,c),c="fillcolor" ):j==="shape"&&c==="rotation"?this[c]=e:c==="translateX"|| c==="translateY"||c==="rotation"?(this[c]=e,this.updateTransform (),r=!0):c==="text"&&(this.bBox=null,h.innerHTML=e, r=!0);if(q&&c==="visibility")for(f=q.length;f--;)q[ f].style[c]=e;r||(bd?h[c]=e:l(h,c,e))}return t},clip :function(a){var b=this,c=a.members,d=b.element,e=d .parentNode;return c.push(b),b.destroyClip=function( ){j(c,b)},e&&e.className==="highcharts-tracker"&&!bd&& o(d,{visibility:"hidden"}),b.css(a.getCSS(b))},css: G.prototype.htmlCss,safeRemoveChild:function(a){a.parentNode&& B(a)},destroy:function(){return this.destroyClip&&this .destroyClip(),G.prototype.destroy.apply(this)},empty :function(){for(var a=this.element.childNodes,b=a.length ,c;b--;)c=a[b],c.parentNode.removeChild(c)},on:function( a,b){return this.element["on"+a]=function(){var a=R .event;a.target=a.srcElement,b(a)},this},cutOffPath :function(a,b){var d,a=a.split(/[ ,]/);d=a.length;if( d===9||d===11)a[d-4]=a[d-2]=c(a[d-2])-10*b;return a .join(" ")},shadow:function(a,b,d){var e=[],f=this. element,g=this.renderer,h,i=f.style,j,k=f.path,l,m; k&&typeof k.value!="string"&&(k="x"),m=k;if(a){for( a=1;a<=3;a++)l=7-2*a,d&&(m=this.cutOffPath(k.value, l+.5)),j=[''],h=p(g.prepVML(j),null,{left :c(i.left)+1,top:c(i.top)+1}),d&&(h.cutOff=l+1),j=[''],p(g.prepVML(j),null,null,h),b?b.element .appendChild(h):f.parentNode.insertBefore(h,f),e.push (h);this.shadows=e}return this}},cl=q(G,cl);var cm= {Element:cl,isIE8:bb.indexOf("MSIE 8.0")>-1,init:function( a,b,c){var d,e;this.alignedObjects=[],d=this.createElement (bu),e=d.element,e.style.position="relative",a.appendChild (d.element),this.box=e,this.boxWrapper=d,this.setSize (b,c,!1),Q.namespaces.hcv||(Q.namespaces.add("hcv","urn:schemas-microsoft-com:vml" ),Q.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } " )},isHidden:function(){return!this.box.offsetWidth} ,clipRect:function(b,c,d,e){var f=this.createElement ();return a(f,{members:[],left:b,top:c,width:d,height :e,getCSS:function(b){var c=b.inverted,d=this.top,e= this.left,f=e+this.width,g=d+this.height,d={clip:"rect("+ T(c?e:d)+"px,"+T(c?g:f)+"px,"+T(c?f:g)+"px,"+T(c?d: e)+"px)"};return!c&&bd&&b.element.nodeName!=="IMG"&& a(d,{width:f+"px",height:g+"px"}),d},updateClipping :function(){bW(f.members,function(a){a.css(f.getCSS (a))})}})},color:function(a,b,c){var d,e=/^rgba/,f, g=bv;a&&a.linearGradient?f="gradient":a&&a.radialGradient&& (f="pattern");if(f){var h,i,j=a.linearGradient||a.radialGradient ,k,l,m,n,o,q,r="",a=a.stops,s,t=[];l=a[0],s=a[a.length-1 ],l[0]>0&&a.unshift([0,l[1]]),s[0]<1&&a.push([1,s[1 ]]),bW(a,function(a,b){e.test(a[1])?(d=cj(a[1]),h=d .get("rgb"),i=d.get("a")):(h=a[1],i=1),t.push(a[0]*100+"% "+ h),b?(n=i,o=h):(m=i,q=h)}),f==="gradient"?(k=j.x1|| j[0]||0,a=j.y1||j[1]||0,l=j.x2||j[2]||0,j=j.y2||j[3 ]||0,k=90-S.atan((j-a)/(l-k))*180/_):(g=j.r*2,r='src="http://code.highcharts.com/gfx/radial-gradient.png" size="'+ g+","+g+'" origin="0.5,0.5" position="'+j.cx+","+j. cy+'" color2="'+q+'" ',g=o),c==="fill"?(c=['' ],p(this.prepVML(c),null,null,b)):g=h}else e.test(a )&&b.tagName!=="IMG"?(d=cj(a),c=["<",c,' opacity="' ,d.get("a"),'"/>'],p(this.prepVML(c),null,null,b),g= d.get("rgb")):(b=b.getElementsByTagName(c),b.length&& (b[0].opacity=1),g=a);return g},prepVML:function(a) {var b=this.isIE8,a=a.join("");return b?(a=a.replace ("/>",' xmlns="urn:schemas-microsoft-com:vml" />'), a=a.indexOf('style="')===-1?a.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />' ):a.replace('style="','style="display:inline-block;behavior:url(#default#VML);' )):a=a.replace("<","1&&f.css({left :b,top:c,width:d,height:e}),f},rect:function(a,b,c, d,f,g){e(a)&&(b=a.y,c=a.width,d=a.height,g=a.strokeWidth ,a=a.x);var h=this.symbol("rect");return h.r=f,h.attr (h.crisp(g,a,b,W(c,0),W(d,0)))},invertChild:function( a,b){var d=b.style;o(a,{flip:"x",left:c(d.width)-1, top:c(d.height)-1,rotation:-90})},symbols:{arc:function( a,b,c,d,e){var f=e.start,g=e.end,h=e.r||c||d,c=Z(f) ,d=$(f),i=Z(g),j=$(g),k=e.innerR,l=.08/h,m=k&&.1/k||0 ;return g-f===0?["x"]:(2*_-g+fj&&(c=!1 )):h+k>m&&(h=m-k,d&&h+l0&&b.height>0?(f=b$({align:c&&m&&"center",x :c?!m&&4:10,verticalAlign:!c&&m&&"middle",y:c?m?16:10 :m?6:-4,rotation:c&&!m&&90},f),g||(a.label=g=w.text (f.text,0,0).attr({align:f.textAlign||f.align,rotation :f.rotation,zIndex:u}).css(f.style).add()),b=[r[1], r[4],n(r[6],r[1])],r=[r[2],r[5],n(r[7],r[2])],c=y(b ),m=y(r),g.align(f,!1,{x:c,y:m,width:z(b)-c,height: z(r)-m}),g.show()):g&&g.hide(),a},destroy:function( ){j(this.axis.plotLinesAndBands,this),A(this,this.axis )}},J.prototype={destroy:function(){A(this,this.axis )},setTotal:function(a){this.cum=this.total=a},render :function(a){var b=this.options.formatter.call(this );this.label?this.label.attr({text:b,visibility:"hidden" }):this.label=this.axis.chart.renderer.text(b,0,0). css(this.options.style).attr({align:this.textAlign, rotation:this.options.rotation,visibility:"hidden"} ).add(a)},setOffset:function(a,b){var c=this.axis,d= c.chart,e=d.inverted,f=this.isNegative,g=c.translate (this.total,0,0,0,1),c=c.translate(0),c=Y(g-c),h=d. xAxis[0].translate(this.x)+a,d=d.plotHeight,e={x:e? f?g:g-c:h,y:e?d-h-b:f?d-g-c:d-g,width:e?c:b,height: e?b:c};this.label&&this.label.align(this.alignOptions ,null,e).attr({visibility:"visible"})}},K.prototype= {defaultOptions:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L" ,second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b" ,week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:!1 ,gridLineColor:"#C0C0C0",labels:bT,lineColor:"#C0D0E0" ,lineWidth:1,minPadding:.01,maxPadding:.01,minorGridLineColor :"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0" ,minorTickLength:2,minorTickPosition:"outside",startOfWeek :1,startOnTick:!1,tickColor:"#C0D0E0",tickLength:5, tickmarkPlacement:"between",tickPixelInterval:100,tickPosition :"outside",tickWidth:1,title:{align:"middle",style: {color:"#6D869F",fontWeight:"bold"}},type:"linear"} ,defaultYAxisOptions:{endOnTick:!0,gridLineWidth:1, tickPixelInterval:72,showLastLabel:!0,labels:{align :"right",x:-8,y:3},lineWidth:0,maxPadding:.05,minPadding :.05,startOnTick:!0,tickWidth:0,title:{rotation:270 ,text:"Y-values"},stackLabels:{enabled:!1,formatter :function(){return this.total},style:bT.style}},defaultLeftAxisOptions :{labels:{align:"right",x:-8,y:null},title:{rotation :270}},defaultRightAxisOptions:{labels:{align:"left" ,x:8,y:null},title:{rotation:90}},defaultBottomAxisOptions :{labels:{align:"center",x:0,y:14},title:{rotation:0 }},defaultTopAxisOptions:{labels:{align:"center",x:0 ,y:-5},title:{rotation:0}},init:function(a,b){var c= b.isX;this.horiz=a.inverted?!c:c,this.xOrY=(this.isXAxis= c)?"x":"y",this.opposite=b.opposite,this.side=this. horiz?this.opposite?0:2:this.opposite?1:3,this.setOptions (b);var d=this.options,e=d.type,f=e==="datetime";this .labelFormatter=d.labels.formatter||this.defaultLabelFormatter ,this.staggerLines=this.horiz&&d.labels.staggerLines ,this.userOptions=b,this.minPixelPadding=0,this.chart= a,this.reversed=d.reversed,this.categories=d.categories ,this.isLog=e==="logarithmic",this.isLinked=k(d.linkedTo ),this.isDatetimeAxis=f,this.ticks={},this.minorTicks= {},this.plotLinesAndBands=[],this.alternateBands={} ,this.len=0,this.minRange=this.userMinRange=d.minRange|| d.maxZoom,this.range=d.range,this.offset=d.offset||0 ,this.stacks={},this.min=this.max=null;var g,d=this .options.events;a.axes.push(this),a[c?"xAxis":"yAxis" ].push(this),this.series=[],a.inverted&&c&&this.reversed=== P&&(this.reversed=!0),this.removePlotLine=this.removePlotBand= this.removePlotBandOrLine,this.addPlotLine=this.addPlotBand= this.addPlotBandOrLine;for(g in d)b_(this,g,d[g]);this .isLog&&(this.val2lin=h,this.lin2val=i)},setOptions :function(a){this.options=b$(this.defaultOptions,this .isXAxis?{}:this.defaultYAxisOptions,[this.defaultTopAxisOptions ,this.defaultRightAxisOptions,this.defaultBottomAxisOptions ,this.defaultLeftAxisOptions][this.side],a)},defaultLabelFormatter :function(){var a=this.axis,b=this.value,c=a.tickInterval ,d=this.dateTimeLabelFormat;return a.categories?b:d? bp(d,b):c%1e6===0?b/1e6+"M":c%1e3===0?b/1e3+"k":b>=1e3? r(b,0):r(b,-1)},getSeriesExtremes:function(){var a= this,b=a.chart,c=a.stacks,d=[],e=[],f;a.dataMin=a.dataMax= null,bW(a.series,function(g){if(g.visible||!b.options .chart.ignoreHiddenSeries){var h=g.options,i,j,l,m, o,p,q,r,s,t=h.threshold,u,v=[],w=0;a.isLog&&t<=0&&( t=h.threshold=null);if(a.isXAxis){if(h=g.xData,h.length )a.dataMin=X(n(a.dataMin,h[0]),y(h)),a.dataMax=W(n( a.dataMax,h[0]),z(h))}else{var x,A,B,C=g.cropped,D= g.xAxis.getExtremes(),E=!!g.modifyValue;i=h.stacking ,a.usePercentage=i==="percent",i&&(o=h.stack,m=g.type+ n(o,""),p="-"+m,g.stackKey=m,j=d[m]||[],d[m]=j,l=e[ p]||[],e[p]=l),a.usePercentage&&(a.dataMin=0,a.dataMax=99 ),h=g.processedXData,q=g.processedYData,u=q.length; for(f=0;f=D.min&&(h[f-1]||r)<=D.max))if(r= s.length)for(;r--;)s[r]!==null&&(v[w++]=s[r]);else v [w++]=s;!a.usePercentage&&v.length&&(a.dataMin=X(n( a.dataMin,v[0]),y(v)),a.dataMax=W(n(a.dataMax,v[0]) ,z(v))),k(t)&&(a.dataMin>=t?(a.dataMin=t,a.ignoreMinPadding=!0 ):a.dataMax e+this.width)l=!0}else if(c=e,h=k-this.right,g f+this.height)l=!0;return l?null:d.renderer.crispLine (["M",c,g,"L",h,i],b||0)},getPlotBandPath:function( a,b){var c=this.getPlotLinePath(b),d=this.getPlotLinePath (a);return d&&c?d.push(c[4],c[5],c[1],c[2]):d=null, d},getLinearTickPositions:function(a,b,c){for(var d ,b=D(U(b/a)*a),c=D(V(c/a)*a),e=[];b<=c;){e.push(b), b=D(b+a);if(b===d)break;d=b}return e},getLogTickPositions :function(a,b,c,d){var e=this.options,f=this.len,g= [];d||(this._minorAutoInterval=null);if(a>=.5)a=T(a ),g=this.getLinearTickPositions(a,b,c);else if(a>=.08 )for(var f=U(b),j,k,l,m,o,e=a>.3?[1,2,4]:a>.15?[1,2 ,4,6,8]:[1,2,3,4,5,6,7,8,9];fb&&g.push(m), m>c&&(o=!0),m=l}else if(b=i(b),c=i(c),a=e[d?"minorTickInterval" :"tickInterval"],a=n(a==="auto"?null:a,this._minorAutoInterval ,(c-b)*(e.tickPixelInterval/(d?5:1))/((d?f/this.tickPositions .length:f)||1)),a=t(a,null,S.pow(10,U(S.log(a)/S.LN10 ))),g=bZ(this.getLinearTickPositions(a,b,c),h),!d)this ._minorAutoInterval=a/5;return d||(this.tickInterval= a),g},getMinorTickPositions:function(){var a=this.tickPositions ,b=this.minorTickInterval,c=[],d,e;if(this.isLog){e= a.length;for(d=1;d=this.minRange,f,g,h ,i,j;this.isXAxis&&this.minRange===P&&!this.isLog&& (k(a.min)||k(a.max)?this.minRange=null:(bW(this.series ,function(a){i=a.xData;for(g=j=a.xIncrement?1:i.length-1 ;g>0;g--)if(h=i[g]-i[g-1],f===P||h0||!b.ignoreMaxPadding)&&(b.max+=c* l)),b.tickInterval=b.min===b.max||b.min===void 0||b .max===void 0?1:i&&!o&&p===b.linkedParent.options.tickPixelInterval? b.linkedParent.tickInterval:n(o,q?1:(b.max-b.min)*p/ (b.len||1)),g&&!a&&bW(b.series,function(a){a.processData (b.min!==b.oldMin||b.max!==b.oldMax)}),b.setAxisTranslation (),b.beforeSetTickPositions&&b.beforeSetTickPositions (),b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval (b.tickInterval)),!f&&!e&&(a=S.pow(10,U(S.log(b.tickInterval )/S.LN10)),!k(d.tickInterval))&&(b.tickInterval=t(b .tickInterval,null,a,d)),b.minorTickInterval=d.minorTickInterval==="auto"&& b.tickInterval?b.tickInterval/5:d.minorTickInterval ,b.tickPositions=j=d.tickPositions||j&&j.apply(b,[b .min,b.max]),j||(j=f?(b.getNonLinearTimeTicks||v)(u (b.tickInterval,d.units),b.min,b.max,d.startOfWeek, b.ordinalPositions,b.closestPointRange,!0):e?b.getLogTickPositions (b.tickInterval,b.min,b.max):b.getLinearTickPositions (b.tickInterval,b.min,b.max),b.tickPositions=j),i|| (e=j[0],f=j[j.length-1],d.startOnTick?b.min=e:b.min> e&&j.shift(),d.endOnTick?b.max=f:b.maxb[d]&& this.options.alignTicks!==!1&&(b[d]=c.length),a.maxTicks= b},adjustTickAmount:function(){var a=this.xOrY,b=this .tickPositions,c=this.chart.maxTicks;if(c&&c[a]&&!this .isDatetimeAxis&&!this.categories&&!this.isLinked&& this.options.alignTicks!==!1){var d=this.tickAmount ,e=b.length;this.tickAmount=a=c[a];if(ea||a===null?a=c:b=a.min&&b<=a.max)l[b]||(l [b]=new H(a,b)),s&&l[b].isNew&&l[b].render(c,!0),l[ b].isActive=!0,l[b].render(c)}),p&&bW(g,function(b, c){c%2===0&&b1||Y(b-c.currentY)>1? function(){c.move(a,b)}:null},hide:function(){if(!this .tooltipIsHidden){var a=this.chart.hoverPoints;this .label.hide(),a&&bW(a,function(a){a.setState()}),this .chart.hoverPoints=null,this.tooltipIsHidden=!0}},hideCrosshairs :function(){bW(this.crosshairs,function(a){a&&a.hide ()})},getAnchor:function(a,b){var c,d=this.chart,e= d.inverted,f=0,g=0,a=m(a);return c=a[0].tooltipPos, c||(bW(a,function(a){f+=a.plotX,g+=a.plotLow?(a.plotLow+ a.plotHigh)/2:a.plotY}),f/=a.length,g/=a.length,c=[ e?d.plotWidth-g:f,this.shared&&!e&&a.length>1&&b?b. chartY-d.plotTop:e?d.plotHeight-f:g]),bZ(c,T)},getPosition :function(a,b,c){var d=this.chart,e=d.plotLeft,f=d. plotTop,g=d.plotWidth,h=d.plotHeight,i=n(this.options .distance,12),j=c.plotX,c=c.plotY,d=j+e+(d.inverted? i:-a-i),k=c-b+f+15,l;return d<7&&(d=e+j+i),d+a>e+g&& (d-=d+a-(e+g),k=c-b+f-i,l=!0),k=k&& c<=k+b&&(k=c+f+i)),k+b>f+h&&(k=W(f,f+h-b-i)),{x:d,y :k}},refresh:function(a,b){function c(){var a=this. points||m(this),b=a[0].series,c;return c=[b.tooltipHeaderFormatter (a[0].key)],bW(a,function(a){b=a.series,c.push(b.tooltipFormatter&& b.tooltipFormatter(a)||a.point.tooltipFormatter(b.tooltipOptions .pointFormat))}),c.push(f.footerFormat||""),c.join("" )}var d=this.chart,e=this.label,f=this.options,g,h, i,j={},k,l=[];k=f.formatter||c;var j=d.hoverPoints, o,p=f.crosshairs;i=this.shared,h=this.getAnchor(a,b ),g=h[0],h=h[1],i&&(!a.series||!a.series.noSharedTooltip )?(j&&bW(j,function(a){a.setState()}),d.hoverPoints= a,bW(a,function(a){a.setState("hover"),l.push(a.getLabelConfig ())}),j={x:a[0].category,y:a[0].y},j.points=l,a=a[0 ]):j=a.getLabelConfig(),k=k.call(j),j=a.series,i=i||! j.isCartesian||j.tooltipOutsidePlot||d.isInsidePlot (g,h),k===!1||!i?this.hide():(this.tooltipIsHidden&& e.show(),e.attr({text:k}),o=f.borderColor||a.color|| j.color||"#606060",e.attr({stroke:o}),e=(f.positioner|| this.getPosition).call(this,e.width,e.height,{plotX :g,plotY:h}),this.move(T(e.x),T(e.y)),this.tooltipIsHidden=!1 );if(p){p=m(p);for(e=p.length;e--;)if(i=a.series[e?"yAxis" :"xAxis"],p[e]&&i)(i=i.getPlotLinePath(e?n(a.stackY ,a.y):a.x,1),this.crosshairs[e])?this.crosshairs[e] .attr({d:i,visibility:"visible"}):(j={"stroke-width" :p[e].width||1,stroke:p[e].color||"#C0C0C0",zIndex: p[e].zIndex||2},p[e].dashStyle&&(j.dashstyle=p[e].dashStyle ),this.crosshairs[e]=d.renderer.path(i).attr(j).add ())}cb(d,"tooltipRefresh",{text:k,x:g+d.plotLeft,y: h+d.plotTop,borderColor:o})},tick:function(){this.tooltipTick&& this.tooltipTick()}},M.prototype={normalizeMouseEvent :function(b){var c,d,e,b=b||R.event;return b.target|| (b.target=b.srcElement),b.originalEvent&&(b=b.originalEvent ),b.event&&(b=b.event),e=b.touches?b.touches.item(0 ):b,this.chartPosition=c=bY(this.chart.container),e .pageX===P?(d=b.x,c=b.y):(d=e.pageX-c.left,c=e.pageY- c.top),a(b,{chartX:T(d),chartY:T(c)})},getMouseCoordinates :function(a){var b={xAxis:[],yAxis:[]},c=this.chart ;return bW(c.axes,function(d){var e=d.isXAxis;b[e?"xAxis" :"yAxis"].push({axis:d,value:d.translate((c.inverted?! e:e)?a.chartX-c.plotLeft:c.plotHeight-a.chartY+c.plotTop ,!0)})}),b},onmousemove:function(a){var b=this.chart ,c=b.series,d,e,f=b.hoverPoint,g=b.hoverSeries,h,i, j=b.chartWidth,k=b.inverted?b.plotHeight+b.plotTop- a.chartY:a.chartX-b.plotLeft;if(b.tooltip&&this.options .tooltip.shared&&(!g||!g.noSharedTooltip)){e=[],h=c .length;for(i=0;ij&&e.splice(h,1);e.length&& e[0].plotX!==this.hoverX&&(b.tooltip.refresh(e,a),this .hoverX=e[0].plotX)}g&&g.tracker&&(d=g.tooltipPoints [k])&&d!==f&&d.onMouseOver()},resetTracker:function( a){var b=this.chart,c=b.hoverSeries,d=b.hoverPoint, e=b.hoverPoints||d,b=b.tooltip;(a=a&&b&&e)&&m(e)[0] .plotX===P&&(a=!1),a?b.refresh(e):(d&&d.onMouseOut( ),c&&c.onMouseOut(),b&&(b.hide(),b.hideCrosshairs() ),this.hoverX=null)},setDOMEvents:function(){function b (){if(c.selectionMarker){var a={xAxis:[],yAxis:[]}, g=c.selectionMarker.getBBox(),h=g.x-d.plotLeft,i=g. y-d.plotTop,j;f&&(bW(d.axes,function(b){if(b.options .zoomEnabled!==!1){var c=b.isXAxis,e=d.inverted?!c: c,f=b.translate(e?h:d.plotHeight-i-g.height,!0,0,0,1 ),e=b.translate(e?h+g.width:d.plotHeight-i,!0,0,0,1 );!isNaN(f)&&!isNaN(e)&&(a[c?"xAxis":"yAxis"].push( {axis:b,min:X(f,e),max:W(f,e)}),j=!0)}}),j&&cb(d,"selection" ,a,function(a){d.zoom(a)})),c.selectionMarker=c.selectionMarker .destroy()}d&&(o(e,{cursor:"auto"}),d.cancelClick=f ,d.mouseIsDown=f=!1),ca(Q,bk?"touchend":"mouseup",b )}var c=this,d=c.chart,e=d.container,f,g=c.zoomX&&! d.inverted||c.zoomY&&d.inverted,h=c.zoomY&&!d.inverted|| c.zoomX&&d.inverted;c.hideTooltipOnMouseMove=function( a){cc(a),c.chartPosition&&d.hoverSeries&&d.hoverSeries .isCartesian&&!d.isInsidePlot(a.pageX-c.chartPosition .left-d.plotLeft,a.pageY-c.chartPosition.top-d.plotTop )&&c.resetTracker()},c.hideTooltipOnMouseLeave=function( ){c.resetTracker(),c.chartPosition=null},e.onmousedown= function(a){a=c.normalizeMouseEvent(a),!bk&&a.preventDefault&& a.preventDefault(),d.mouseIsDown=!0,d.cancelClick=!1 ,d.mouseDownX=c.mouseDownX=a.chartX,c.mouseDownY=a. chartY,b_(Q,bk?"touchend":"mouseup",b)};var i=function( a){if(!a||!(a.touches&&a.touches.length>1)){a=c.normalizeMouseEvent (a),bk||(a.returnValue=!1);var b=a.chartX,e=a.chartY ,i=!d.isInsidePlot(b-d.plotLeft,e-d.plotTop);bk&&a. type==="touchstart"&&(l(a.target,"isTracker")?d.runTrackerClick|| a.preventDefault():!d.runChartClick&&!i&&a.preventDefault ()),i&&(bd.plotLeft+d.plotWidth&& (b=d.plotLeft+d.plotWidth),ed.plotTop+d.plotHeight&&(e=d.plotTop+d.plotHeight ));if(d.mouseIsDown&&a.type!=="touchstart"){if(f=Math .sqrt(Math.pow(c.mouseDownX-b,2)+Math.pow(c.mouseDownY- e,2)),f>10){a=d.isInsidePlot(c.mouseDownX-d.plotLeft ,c.mouseDownY-d.plotTop),d.hasCartesianSeries&&(c.zoomX|| c.zoomY)&&a&&!c.selectionMarker&&(c.selectionMarker= d.renderer.rect(d.plotLeft,d.plotTop,g?1:d.plotWidth ,h?1:d.plotHeight,0).attr({fill:c.options.chart.selectionMarkerFill||"rgba(69,114,167,0.25)" ,zIndex:7}).add());if(c.selectionMarker&&g){var j=b- c.mouseDownX;c.selectionMarker.attr({width:Y(j),x:( j>0?0:j)+c.mouseDownX})}c.selectionMarker&&h&&(e-=c .mouseDownY,c.selectionMarker.attr({height:Y(e),y:( e>0?0:e)+c.mouseDownY})),a&&!c.selectionMarker&&c.options .chart.panning&&d.pan(b)}}else i||c.onmousemove(a); return i||!d.hasCartesianSeries}};e.onmousemove=i,b_ (e,"mouseleave",c.hideTooltipOnMouseLeave),b_(Q,"mousemove" ,c.hideTooltipOnMouseMove),e.ontouchstart=function( a){(c.zoomX||c.zoomY)&&e.onmousedown(a),i(a)},e.ontouchmove= i,e.ontouchend=function(){f&&c.resetTracker()},e.onclick= function(b){var e=d.hoverPoint,f,g,b=c.normalizeMouseEvent (b);b.cancelBubble=!0,d.cancelClick||(e&&(l(b.target ,"isTracker")||l(b.target.parentNode,"isTracker"))? (f=e.plotX,g=e.plotY,a(e,{pageX:c.chartPosition.left+ d.plotLeft+(d.inverted?d.plotWidth-g:f),pageY:c.chartPosition .top+d.plotTop+(d.inverted?d.plotHeight-f:g)}),cb(e .series,"click",a(b,{point:e})),e.firePointEvent("click" ,b)):(a(b,c.getMouseCoordinates(b)),d.isInsidePlot( b.chartX-d.plotLeft,b.chartY-d.plotTop)&&cb(d,"click" ,b)))}},destroy:function(){var a=this.chart,b=a.container ;a.trackerGroup&&(a.trackerGroup=a.trackerGroup.destroy ()),ca(b,"mouseleave",this.hideTooltipOnMouseLeave) ,ca(Q,"mousemove",this.hideTooltipOnMouseMove),b.onclick= b.onmousedown=b.onmousemove=b.ontouchstart=b.ontouchend= b.ontouchmove=null,clearInterval(this.tooltipInterval )},init:function(a,b){a.trackerGroup||(a.trackerGroup= a.renderer.g("tracker").attr({zIndex:9}).add()),b.enabled&& (a.tooltip=new L(a,b),this.tooltipInterval=setInterval (function(){a.tooltip.tick()},32)),this.setDOMEvents ()}},N.prototype={init:function(a){var b=this,d=b.options= a.options.legend;if(d.enabled){var e=d.itemStyle,f= n(d.padding,8),g=d.itemMarginTop||0;b.baseline=c(e. fontSize)+3+g,b.itemStyle=e,b.itemHiddenStyle=b$(e, d.itemHiddenStyle),b.itemMarginTop=g,b.padding=f,b. initialItemX=f,b.initialItemY=f-5,b.maxItemWidth=0, b.chart=a,b.itemHeight=0,b.lastLineHeight=0,b.render (),b_(b.chart,"endResize",function(){b.positionCheckboxes ()})}},colorizeItem:function(a,b){var c=this.options ,d=a.legendItem,e=a.legendLine,f=a.legendSymbol,g=this .itemHiddenStyle.color,c=b?c.itemStyle.color:g,g=b? a.color:g;d&&d.css({fill:c}),e&&e.attr({stroke:g}), f&&f.attr({stroke:g,fill:g})},positionItem:function( a){var b=this.options,c=b.symbolPadding,b=!b.rtl,d= a._legendItemPos,e=d[0],d=d[1],f=a.checkbox;a.legendGroup&& a.legendGroup.translate(b?e:this.legendWidth-e-2*c-4 ,d),f&&(f.x=e,f.y=d)},destroyItem:function(a){var b= a.checkbox;bW(["legendItem","legendLine","legendSymbol" ,"legendGroup"],function(b){a[b]&&a[b].destroy()}), b&&B(a.checkbox)},destroy:function(){var a=this.group ,b=this.box;b&&(this.box=b.destroy()),a&&(this.group= a.destroy())},positionCheckboxes:function(){var a=this ;bW(a.allItems,function(b){var c=b.checkbox,d=a.group .alignAttr;c&&o(c,{left:d.translateX+b.legendItemWidth+ c.x-20+"px",top:d.translateY+c.y+3+"px"})})},renderItem :function(a){var b,c=this,d=c.chart,e=d.renderer,f= c.options,g=f.layout==="horizontal",h=f.symbolWidth ,i=f.symbolPadding,j=c.itemStyle,k=c.itemHiddenStyle ,l=c.padding,m=!f.rtl,n=f.width,o=f.itemMarginBottom||0 ,q=c.itemMarginTop,r=c.initialItemX,s=a.legendItem, t=a.series||a,u=t.options,v=u.showCheckbox;!s&&(a.legendGroup= e.g("legend-item").attr({zIndex:1}).add(c.scrollGroup ),t.drawLegendSymbol(c,a),a.legendItem=s=e.text(f.labelFormatter .call(a),m?h+i:-i,c.baseline,f.useHTML).css(b$(a.visible? j:k)).attr({align:m?"left":"right",zIndex:2}).add(a .legendGroup),a.legendGroup.on("mouseover",function( ){a.setState("hover"),s.css(c.options.itemHoverStyle )}).on("mouseout",function(){s.css(a.visible?j:k),a .setState()}).on("click",function(b){var c=function( ){a.setVisible()},b={browserEvent:b};a.firePointEvent? a.firePointEvent("legendItemClick",b,c):cb(a,"legendItemClick" ,b,c)}),c.colorizeItem(a,a.visible),u&&v)&&(a.checkbox= p("input",{type:"checkbox",checked:a.selected,defaultChecked :a.selected},f.itemCheckboxStyle,d.container),b_(a. checkbox,"click",function(b){cb(a,"checkboxClick",{ checked:b.target.checked},function(){a.select()})}) ),e=s.getBBox(),b=a.legendItemWidth=f.itemWidth||h+ i+e.width+l+(v?20:0),f=b,c.itemHeight=h=e.height,g&& c.itemX-r+f>(n||d.chartWidth-2*l-r)&&(c.itemX=r,c.itemY+= q+c.lastLineHeight+o,c.lastLineHeight=0),c.maxItemWidth= W(c.maxItemWidth,f),c.lastItemY=q+c.itemY+o,c.lastLineHeight= W(h,c.lastLineHeight),a._legendItemPos=[c.itemX,c.itemY ],g?c.itemX+=f:(c.itemY+=q+h+o,c.lastLineHeight=h), c.offsetWidth=n||W(g?c.itemX-r:f,c.offsetWidth)},render :function(){var b=this,c=b.chart,d=c.renderer,e=b.group ,f,g,h,i,j=b.box,k=b.options,l=b.padding,m=k.borderWidth ,n=k.backgroundColor;b.itemX=b.initialItemX,b.itemY= b.initialItemY,b.offsetWidth=0,b.lastItemY=0,e||(b. group=e=d.g("legend").attr({zIndex:7}).add(),b.contentGroup= d.g().attr({zIndex:1}).add(e),b.scrollGroup=d.g().add (b.contentGroup),b.clipRect=d.clipRect(0,0,9999,c.chartHeight ),b.contentGroup.clip(b.clipRect)),f=[],bW(c.series ,function(a){var b=a.options;b.showInLegend&&(f=f.concat (a.legendItems||(b.legendType==="point"?a.data:a))) }),x(f,function(a,b){return(a.options.legendIndex||0 )-(b.options.legendIndex||0)}),k.reversed&&f.reverse (),b.allItems=f,b.display=g=!!f.length,bW(f,function( a){b.renderItem(a)}),h=k.width||b.offsetWidth,i=b.lastItemY+ b.lastLineHeight,i=b.handleOverflow(i);if(m||n)h+=l ,i+=l,j?h>0&&i>0&&(j[j.isNew?"attr":"animate"](j.crisp (null,null,null,h,i)),j.isNew=!1):(b.box=j=d.rect(0 ,0,h,i,k.borderRadius,m||0).attr({stroke:k.borderColor ,"stroke-width":m||0,fill:n||bv}).add(e).shadow(k.shadow ),j.isNew=!0),j[g?"show":"hide"]();b.legendWidth=h, b.legendHeight=i,bW(f,function(a){b.positionItem(a) }),g&&e.align(a({width:h,height:i},k),!0,c.spacingBox ),c.isResizing||this.positionCheckboxes()},handleOverflow :function(a){var b=this,c=this.chart,d=c.renderer,e= this.options,f=e.y,f=c.spacingBox.height+(e.verticalAlign==="top"?- f:f)-this.padding,g=e.maxHeight,h=this.clipRect,i=e .navigation,j=n(i.animation,!0),k=i.arrowSize||12,l= this.nav;return e.layout==="horizontal"&&(f/=2),g&& (f=X(f,g)),a>f?(this.clipHeight=c=f-20,this.pageCount= V(a/c),this.currentPage=n(this.currentPage,1),this. fullHeight=a,h.attr({height:c}),l||(this.nav=l=d.g( ).attr({zIndex:1}).add(this.group),this.up=d.symbol ("triangle",0,0,k,k).on("click",function(){b.scroll (-1,j)}).add(l),this.pager=d.text("",15,10).css(i.style ).add(l),this.down=d.symbol("triangle-down",0,0,k,k ).on("click",function(){b.scroll(1,j)}).add(l)),b.scroll (0),a=f):l&&(h.attr({height:c.chartHeight}),l.hide( ),this.scrollGroup.attr({translateY:1})),a},scroll: function(a,b){var c=this.pageCount,d=this.currentPage+ a,e=this.clipHeight,f=this.options.navigation,g=f.activeColor ,f=f.inactiveColor,h=this.pager,i=this.padding;d>c&& (d=c),d>0&&(b!==P&&E(b,this.chart),this.nav.attr({translateX :i,translateY:e+7,visibility:"visible"}),this.up.attr ({fill:d===1?f:g}).css({cursor:d===1?"default":"pointer" }),h.attr({text:d+"/"+this.pageCount}),this.down.attr ({x:18+this.pager.getBBox().width,fill:d===c?f:g}). css({cursor:d===c?"default":"pointer"}),this.scrollGroup .animate({translateY:-X(e*(d-1),this.fullHeight-e+i )+1}),h.attr({text:d+"/"+c}),this.currentPage=d)}}, O.prototype={initSeries:function(a){var b=this.options .chart,b=new bR[a.type||b.type||b.defaultSeriesType ];return b.init(this,a),b},addSeries:function(a,b,c ){var d=this;a&&(E(c,d),b=n(b,!0),cb(d,"addSeries", {options:a},function(){d.initSeries(a),d.isDirtyLegend=!0 ,b&&d.redraw()}))},isInsidePlot:function(a,b){return a>=0&& a<=this.plotWidth&&b>=0&&b<=this.plotHeight},adjustTickAmounts :function(){this.options.chart.alignTicks!==!1&&bW( this.axes,function(a){a.adjustTickAmount()}),this.maxTicks= null},redraw:function(a){var b=this.axes,c=this.series ,d=this.tracker,e=this.legend,f=this.isDirtyLegend, g,h=this.isDirtyBox,i=c.length,j=i,k=this.clipRect, l=this.renderer,m=l.isHidden();E(a,this);for(m&&this .cloneRenderTo();j--;)if(a=c[j],a.isDirty&&a.options .stacking){g=!0;break}if(g)for(j=i;j--;)if(a=c[j],a .options.stacking)a.isDirty=!0;bW(c,function(a){a.isDirty&& a.options.legendType==="point"&&(f=!0)}),f&&e.options .enabled&&(e.render(),this.isDirtyLegend=!1),this.hasCartesianSeries&& (this.isResizing||(this.maxTicks=null,bW(b,function( a){a.setScale()})),this.adjustTickAmounts(),this.getMargins (),bW(b,function(a){a.isDirtyExtremes&&(a.isDirtyExtremes=!1 ,cb(a,"afterSetExtremes",a.getExtremes()));if(a.isDirty|| h||g)a.redraw(),h=!0})),h&&(this.drawChartBox(),k&& (ce(k),k.animate({width:this.plotSizeX,height:this. plotSizeY+1}))),bW(c,function(a){a.isDirty&&a.visible&& (!a.isCartesian||a.xAxis)&&a.redraw()}),d&&d.resetTracker&& d.resetTracker(!0),l.draw(),cb(this,"redraw"),m&&this .cloneRenderTo(!0)},showLoading:function(b){var c=this .options,d=this.loadingDiv,e=c.loading;d||(this.loadingDiv= d=p(bu,{className:"highcharts-loading"},a(e.style,{ left:this.plotLeft+"px",top:this.plotTop+"px",width :this.plotWidth+"px",height:this.plotHeight+"px",zIndex :10,display:bv}),this.container),this.loadingSpan=p ("span",null,e.labelStyle,d)),this.loadingSpan.innerHTML= b||c.lang.loading,this.loadingShown||(o(d,{opacity:0 ,display:""}),cd(d,{opacity:e.style.opacity},{duration :e.showDuration||0}),this.loadingShown=!0)},hideLoading :function(){var a=this.options,b=this.loadingDiv;b&& cd(b,{opacity:0},{duration:a.loading.hideDuration||100 ,complete:function(){o(b,{display:bv})}}),this.loadingShown=!1 },get:function(a){var b=this.axes,c=this.series,d,e ;for(d=0;dX(e .dataMin,e.min)&&c19? this.containerHeight:400)},cloneRenderTo:function(a ){var b=this.renderToClone,c=this.container;a?b&&(this .renderTo.appendChild(c),B(b),delete this.renderToClone ):(c&&this.renderTo.removeChild(c),this.renderToClone= b=this.renderTo.cloneNode(0),o(b,{position:"absolute" ,top:"-9999px",display:"block"}),Q.body.appendChild (b),c&&b.appendChild(c))},getContainer:function(){var b ,c=this.options.chart,e,f,g;this.renderTo=b=c.renderTo ,g="highcharts-"+bm++,d(b)&&(this.renderTo=b=Q.getElementById (b)),b||C(13,!0),b.innerHTML="",b.offsetWidth||this .cloneRenderTo(),this.getChartSize(),e=this.chartWidth ,f=this.chartHeight,this.container=b=p(bu,{className :"highcharts-container"+(c.className?" "+c.className :""),id:g},a({position:"relative",overflow:"hidden" ,width:e+"px",height:f+"px",textAlign:"left",lineHeight :"normal"},c.style),this.renderToClone||b),this.renderer= c.forExport?new ck(b,e,f,!0):new bj(b,e,f),bi&&this .renderer.create(this,b,e,f)},getMargins:function() {var a=this.options.chart,b=a.spacingTop,c=a.spacingRight ,d=a.spacingBottom,a=a.spacingLeft,e,f=this.legend, g=this.optionsMarginTop,h=this.optionsMarginLeft,i= this.optionsMarginRight,j=this.optionsMarginBottom, l=this.chartTitleOptions,m=this.chartSubtitleOptions ,o=this.options.legend,p=n(o.margin,10),q=o.x,r=o.y ,s=o.align,t=o.verticalAlign;this.resetMargins(),e= this.axisOffset,(this.title||this.subtitle)&&!k(this .optionsMarginTop)&&(m=W(this.title&&!l.floating&&! l.verticalAlign&&l.y||0,this.subtitle&&!m.floating&&! m.verticalAlign&&m.y||0))&&(this.plotTop=W(this.plotTop ,m+n(l.margin,15)+b)),f.display&&!o.floating&&(s==="right"? k(i)||(this.marginRight=W(this.marginRight,f.legendWidth- q+p+c)):s==="left"?k(h)||(this.plotLeft=W(this.plotLeft ,f.legendWidth+q+p+a)):t==="top"?k(g)||(this.plotTop= W(this.plotTop,f.legendHeight+r+p+b)):t==="bottom"&&! k(j)&&(this.marginBottom=W(this.marginBottom,f.legendHeight- r+p+d))),this.extraBottomMargin&&(this.marginBottom+= this.extraBottomMargin),this.extraTopMargin&&(this. plotTop+=this.extraTopMargin),this.hasCartesianSeries&& bW(this.axes,function(a){a.getOffset()}),k(h)||(this .plotLeft+=e[3]),k(g)||(this.plotTop+=e[0]),k(j)||( this.marginBottom+=e[2]),k(i)||(this.marginRight+=e [1]),this.setChartSize()},initReflow:function(){function a (a){var f=c.width||bU(d,"width"),g=c.height||bU(d,"height" ),a=a?a.target:R;if(f&&g&&(a===R||a===Q)){if(f!==b. containerWidth||g!==b.containerHeight)clearTimeout( e),e=setTimeout(function(){b.resize(f,g,!1)},100);b .containerWidth=f,b.containerHeight=g}}var b=this,c= b.options.chart,d=b.renderTo,e;b_(R,"resize",a),b_( b,"destroy",function(){ca(R,"resize",a)})},fireEndResize :function(){var a=this;a&&cb(a,"endResize",null,function( ){a.isResizing-=1})},resize:function(a,b,c){var d,e ,f=this.title,g=this.subtitle;this.isResizing+=1,E( c,this),this.oldChartHeight=this.chartHeight,this.oldChartWidth= this.chartWidth,k(a)&&(this.chartWidth=d=T(a)),k(b)&& (this.chartHeight=e=T(b)),o(this.container,{width:d+"px" ,height:e+"px"}),this.renderer.setSize(d,e,c),this. plotWidth=d-this.plotLeft-this.marginRight,this.plotHeight= e-this.plotTop-this.marginBottom,this.maxTicks=null ,bW(this.axes,function(a){a.isDirty=!0,a.setScale() }),bW(this.series,function(a){a.isDirty=!0}),this.isDirtyBox= this.isDirtyLegend=!0,this.getMargins(),a=this.spacingBox ,f&&f.align(null,null,a),g&&g.align(null,null,a),this .redraw(c),this.oldChartHeight=null,cb(this,"resize" ),bq===!1?this.fireEndResize():setTimeout(this.fireEndResize ,bq&&bq.duration||500)},setChartSize:function(){var a= this.inverted,b=this.chartWidth,c=this.chartHeight, d=this.options.chart,e=d.spacingTop,f=d.spacingRight ,g=d.spacingBottom,d=d.spacingLeft;this.plotLeft=T( this.plotLeft),this.plotTop=T(this.plotTop),this.plotWidth= T(b-this.plotLeft-this.marginRight),this.plotHeight= T(c-this.plotTop-this.marginBottom),this.plotSizeX= a?this.plotHeight:this.plotWidth,this.plotSizeY=a?this .plotWidth:this.plotHeight,this.spacingBox={x:d,y:e ,width:b-d-f,height:c-e-g},bW(this.axes,function(a) {a.setAxisSize(),a.setAxisTranslation()})},resetMargins :function(){var a=this.options.chart,b=a.spacingRight ,c=a.spacingBottom,d=a.spacingLeft;this.plotTop=n(this .optionsMarginTop,a.spacingTop),this.marginRight=n( this.optionsMarginRight,b),this.marginBottom=n(this .optionsMarginBottom,c),this.plotLeft=n(this.optionsMarginLeft ,d),this.axisOffset=[0,0,0,0]},drawChartBox:function( ){var a=this.options.chart,b=this.renderer,c=this.chartWidth ,d=this.chartHeight,e=this.chartBackground,f=this.plotBackground ,g=this.plotBorder,h=this.plotBGImage,i=a.borderWidth||0 ,j=a.backgroundColor,k=a.plotBackgroundColor,l=a.plotBackgroundImage ,m,n={x:this.plotLeft,y:this.plotTop,width:this.plotWidth ,height:this.plotHeight};m=i+(a.shadow?8:0);if(i||j )e?e.animate(e.crisp(null,null,null,c-m,d-m)):(e={fill :j||bv},i&&(e.stroke=a.borderColor,e["stroke-width" ]=i),this.chartBackground=b.rect(m/2,m/2,c-m,d-m,a. borderRadius,i).attr(e).add().shadow(a.shadow));k&& (f?f.animate(n):this.plotBackground=b.rect(this.plotLeft ,this.plotTop,this.plotWidth,this.plotHeight,0).attr ({fill:k}).add().shadow(a.plotShadow)),l&&(h?h.animate (n):this.plotBGImage=b.image(l,this.plotLeft,this.plotTop ,this.plotWidth,this.plotHeight).add()),a.plotBorderWidth&& (g?g.animate(g.crisp(null,this.plotLeft,this.plotTop ,this.plotWidth,this.plotHeight)):this.plotBorder=b .rect(this.plotLeft,this.plotTop,this.plotWidth,this .plotHeight,0,a.plotBorderWidth).attr({stroke:a.plotBorderColor ,"stroke-width":a.plotBorderWidth,zIndex:4}).add()) ,this.isDirtyBox=!1},propFromSeries:function(){var a= this,b=a.options.chart,c,d=a.options.series,e,f;bW( ["inverted","angular","polar"],function(g){c=bR[b.type|| b.defaultSeriesType],f=a[g]||b[g]||c&&c.prototype[g ];for(e=d&&d.length;!f&&e--;)(c=bR[d[e].type])&&c.prototype [g]&&(f=!0);a[g]=f})},render:function(){var b=this, d=b.axes,e=b.renderer,f=b.options,g=f.labels,f=f.credits ,h;b.setTitle(),b.legend=new N(b),bW(d,function(a){ a.setScale()}),b.getMargins(),b.maxTicks=null,bW(d, function(a){a.setTickPositions(!0),a.setMaxTicks()} ),b.adjustTickAmounts(),b.getMargins(),b.drawChartBox (),b.hasCartesianSeries&&bW(d,function(a){a.render( )}),b.seriesGroup||(b.seriesGroup=e.g("series-group" ).attr({zIndex:3}).add()),bW(b.series,function(a){a .translate(),a.setTooltipPoints(),a.render()}),g.items&& bW(g.items,function(){var d=a(g.style,this.style),f= c(d.left)+b.plotLeft,h=c(d.top)+b.plotTop+12;delete d.left,delete d.top,e.text(this.html,f,h).attr({zIndex :2}).css(d).add()}),f.enabled&&!b.credits&&(h=f.href ,b.credits=e.text(f.text,0,0).on("click",function() {h&&(location.href=h)}).attr({align:f.position.align ,zIndex:8}).css(f.style).add().align(f.position)),b .hasRendered=!0},destroy:function(){var a=this,b=a. axes,c=a.series,d=a.container,e,f=d&&d.parentNode;if( a!==null){cb(a,"destroy"),ca(a);for(e=b.length;e--; )b[e]=b[e].destroy();for(e=c.length;e--;)c[e]=c[e]. destroy();bW("title,subtitle,chartBackground,plotBackground,plotBGImage,plotBorder,seriesGroup,clipRect,credits,tracker,scroller,rangeSelector,legend,resetZoomButton,tooltip,renderer" .split(","),function(b){var c=a[b];c&&(a[b]=c.destroy ())}),d&&(d.innerHTML="",ca(d),f&&B(d),d=null);for( e in a)delete a[e];a=a.options=null}},firstRender:function( ){var a=this,b=a.options,c=a.callback;!bg&&R==R.top&& Q.readyState!=="complete"||bi&&!R.canvg?bi?co.push( function(){a.firstRender()},b.global.canvasToolsURL ):Q.attachEvent("onreadystatechange",function(){Q.detachEvent ("onreadystatechange",a.firstRender),Q.readyState==="complete"&& a.firstRender()}):(a.getContainer(),cb(a,"init"),Highcharts .RangeSelector&&b.rangeSelector.enabled&&(a.rangeSelector=new Highcharts.RangeSelector(a)),a.resetMargins(),a.setChartSize (),a.propFromSeries(),a.getAxes(),bW(b.series||[],function( b){a.initSeries(b)}),Highcharts.Scroller&&(b.navigator .enabled||b.scrollbar.enabled)&&(a.scroller=new Highcharts .Scroller(a)),a.tracker=new M(a,b),a.render(),a.renderer .draw(),c&&c.apply(a,[a]),bW(a.callbacks,function(b ){b.apply(a,[a])}),a.cloneRenderTo(!0),cb(a,"load") )},init:function(a){var b=this.options.chart,c;b.reflow!==!1&& b_(this,"load",this.initReflow);if(a)for(c in a)b_( this,c,a[c]);this.xAxis=[],this.yAxis=[],this.animation= bi?!1:n(b.animation,!0),this.setSize=this.resize,this .pointCount=0,this.counters=new w,this.firstRender( )}},O.prototype.callbacks=[];var cp=function(){};cp .prototype={init:function(a,b,c){var d=a.chart.counters ;return this.series=a,this.applyOptions(b,c),this.pointAttr= {},a.options.colorByPoint&&(b=a.chart.options.colors ,this.options||(this.options={}),this.color=this.options .color=this.color||b[d.color++],d.wrapColor(b.length )),a.chart.pointCount++,this},applyOptions:function( b,c){var d=this.series,e=typeof b;this.config=b;if( e==="number"||b===null)this.y=b;else if(typeof b[0]=="number" )this.x=b[0],this.y=b[1];else if(e==="object"&&typeof b.length!="number"){if(a(this,b),this.options=b,b.dataLabels )d._hasPointLabels=!0}else typeof b[0]=="string"&&( this.name=b[0],this.y=b[1]);this.x===P&&(this.x=c=== P?d.autoIncrement():c)},destroy:function(){var a=this .series.chart,b=a.hoverPoints,c;a.pointCount--,b&&( this.setState(),j(b,this),!b.length)&&(a.hoverPoints= null),this===a.hoverPoint&&this.onMouseOut();if(this .graphic||this.dataLabel)ca(this),this.destroyElements ();this.legendItem&&a.legend.destroyItem(this);for( c in this)this[c]=null},destroyElements:function(){ for(var a="graphic,tracker,dataLabel,group,connector,shadowGroup" .split(","),b,c=6;c--;)b=a[c],this[b]&&(this[b]=this [b].destroy())},getLabelConfig:function(){return{x: this.category,y:this.y,key:this.name||this.category ,series:this.series,point:this,percentage:this.percentage ,total:this.total||this.stackTotal}},select:function( a,b){var c=this,d=c.series.chart,a=n(a,!c.selected) ;c.firePointEvent(a?"select":"unselect",{accumulate :b},function(){c.selected=a,c.setState(a&&"select") ,b||bW(d.getSelectedPoints(),function(a){a.selected&& a!==c&&(a.selected=!1,a.setState(""),a.firePointEvent ("unselect"))})})},onMouseOver:function(){var a=this .series,b=a.chart,c=b.tooltip,d=b.hoverPoint;d&&d!== this&&d.onMouseOut(),this.firePointEvent("mouseOver" ),c&&(!c.shared||a.noSharedTooltip)&&c.refresh(this ),this.setState("hover"),b.hoverPoint=this},onMouseOut :function(){this.firePointEvent("mouseOut"),this.setState (),this.series.chart.hoverPoint=null},tooltipFormatter :function(a){var b=this.series,c=b.tooltipOptions,e= a.match(/\{(series|point)\.[a-zA-Z]+\}/g),f=/[{\.}]/ ,g,h,i,j,k={y:0,open:0,high:0,low:0,close:0,percentage :1,total:1};c.valuePrefix=c.valuePrefix||c.yPrefix, c.valueDecimals=c.valueDecimals||c.yDecimals,c.valueSuffix= c.valueSuffix||c.ySuffix;for(j in e)h=e[j],d(h)&&h!== a&&(i=(" "+h).split(f),g={point:this,series:b}[i[1] ],i=i[2],g===this&&k.hasOwnProperty(i)?(g=k[i]?i:"value" ,g=(c[g+"Prefix"]||"")+r(this[i],n(c[g+"Decimals"],-1 ))+(c[g+"Suffix"]||"")):g=g[i],a=a.replace(h,g));return a },update:function(a,b,c){var d=this,f=d.series,g=d. graphic,h,i=f.data,j=i.length,k=f.chart,b=n(b,!0);d .firePointEvent("update",{options:a},function(){d.applyOptions (a),e(a)&&(f.getAttribs(),g&&g.attr(d.pointAttr[f.state ]));for(h=0;ha+1&&b.push (d.slice(a+1,f)),a=f):f===e-1&&b.push(d.slice(a+1,f+1 ))});this.segments=b},setOptions:function(a){var b= this.chart.options,c=b.plotOptions,d=a.data;return a .data=null,c=b$(c[this.type],c.series,a),c.data=a.data= d,this.tooltipOptions=b$(b.tooltip,c.tooltip),c},getColor :function(){var a=this.options,b=this.chart.options .colors,c=this.chart.counters;this.color=a.color||! a.colorByPoint&&b[c.color++]||"gray",c.wrapColor(b. length)},getSymbol:function(){var a=this.options.marker ,b=this.chart,c=b.options.symbols,b=b.counters;this .symbol=a.symbol||c[b.symbol++],/^url/.test(this.symbol )&&(a.radius=0),b.wrapSymbol(c.length)},drawLegendSymbol :function(a){var b=this.options,c=b.marker,d=a.options .symbolWidth,e=this.chart.renderer,f=this.legendGroup ,a=a.baseline,g;b.lineWidth&&(g={"stroke-width":b.lineWidth },b.dashStyle&&(g.dashstyle=b.dashStyle),this.legendLine= e.path(["M",0,a-4,"L",d,a-4]).attr(g).add(f)),c&&c. enabled&&(b=c.radius,this.legendSymbol=e.symbol(this .symbol,d/2-b,a-4-b,2*b,2*b).attr(this.pointAttr["" ]).add(f))},addPoint:function(a,b,c,d){var e=this.data ,f=this.graph,g=this.area,h=this.chart,i=this.xData ,j=this.yData,k=f&&f.shift||0,l=this.options.data;E (d,h),f&&c&&(f.shift=k+1),g&&(c&&(g.shift=k+1),g.isArea=!0 ),b=n(b,!0),d={series:this},this.pointClass.prototype .applyOptions.apply(d,[a]),i.push(d.x),j.push(this. valueCount===4?[d.open,d.high,d.low,d.close]:d.y),l .push(a),c&&(e[0]&&e[0].remove?e[0].remove(!1):(e.shift (),i.shift(),j.shift(),l.shift())),this.getAttribs( ),this.isDirtyData=this.isDirty=!0,b&&h.redraw()},setData :function(a,b){var c=this.points,d=this.options,e=this .initialColor,h=this.chart,i=null,j=this.xAxis,l=this .pointClass.prototype;this.xIncrement=null,this.pointRange= j&&j.categories&&1||d.pointRange,k(e)&&(h.counters. color=e);var m=[],o=[],p=a?a.length:[],q=this.valueCount ;if(p>(d.turboThreshold||1e3)){for(e=0;i===null&&e< p;)i=a[e],e++;if(g(i)){l=n(d.pointStart,0),d=n(d.pointInterval ,1);for(e=0;ek||this.forceCrop))if(a=i.getExtremes (),i=a.min,k=a.max,b[d-1]k)b=[],c=[];else if( b[0]k){for(a=0;a=i){e=W(0 ,a-1);break}for(;ak){f=a+1;break}b=b .slice(e,f),c=c.slice(e,f),g=!0}for(a=b.length-1;a>0 ;a--)if(d=b[a]-b[a-1],d>0&&(h===P||d=0&&d<= e;)h[d++]=f}this.tooltipPoints=h}},tooltipHeaderFormatter :function(a){var b=this.tooltipOptions,c=b.xDateFormat ,d=this.xAxis,e=d&&d.options.type==="datetime",f;if( e&&!c)for(f in bs)if(bs[f]>=d.closestPointRange){c= b.dateTimeLabelFormats[f];break}return b.headerFormat .replace("{point.key}",e?bp(c,a):a).replace("{series.name}" ,this.name).replace("{series.color}",this.color)},onMouseOver :function(){var a=this.chart,b=a.hoverSeries;if(bk||! a.mouseIsDown)b&&b!==this&&b.onMouseOut(),this.options .events.mouseOver&&cb(this,"mouseOver"),this.setState ("hover"),a.hoverSeries=this},onMouseOut:function() {var a=this.options,b=this.chart,c=b.tooltip,d=b.hoverPoint ;d&&d.onMouseOut(),this&&a.events.mouseOut&&cb(this ,"mouseOut"),c&&!a.stickyTracking&&!c.shared&&c.hide (),this.setState(),b.hoverSeries=null},animate:function( a){var b=this.chart,c=this.clipRect,d=this.options. animation;d&&!e(d)&&(d={}),a?c.isAnimating||(c.attr ("width",0),c.isAnimating=!0):(c.animate({width:b.plotSizeX },d),this.animate=null)},drawPoints:function(){var b ,c=this.points,d=this.chart,e,f,g,h,i,j,k,l;if(this .options.marker.enabled)for(g=c.length;g--;)if(h=c[ g],e=h.plotX,f=h.plotY,l=h.graphic,f!==P&&!isNaN(f) )if(b=h.pointAttr[h.selected?"select":""],i=b.r,j=n (h.marker&&h.marker.symbol,this.symbol),k=j.indexOf ("url")===0,l)l.animate(a({x:e-i,y:f-i},l.symbolName? {width:2*i,height:2*i}:{}));else if(i>0||k)h.graphic= d.renderer.symbol(j,e-i,f-i,2*i,2*i).attr(b).add(this .group)},convertAttribs:function(a,b,c,d){var e=this .pointAttrToOptions,f,g,h={},a=a||{},b=b||{},c=c||{ },d=d||{};for(f in e)g=e[f],h[f]=n(a[g],b[f],c[f],d [f]);return h},getAttribs:function(){var a=this,b=ci [a.type].marker?a.options.marker:a.options,c=b.states ,d=c.hover,e,f=a.color,g={stroke:f,fill:f},h=a.points|| [],i=[],j,l=a.pointAttrToOptions,m;a.options.marker? (d.radius=d.radius||b.radius+2,d.lineWidth=d.lineWidth|| b.lineWidth+1):d.color=d.color||cj(d.color||f).brighten (d.brightness).get(),i[""]=a.convertAttribs(b,g),bW (["hover","select"],function(b){i[b]=a.convertAttribs (c[b],i[""])}),a.pointAttr=i;for(f=h.length;f--;){g= h[f],(b=g.options&&g.options.marker||g.options)&&b. enabled===!1&&(b.radius=0),e=!1;if(g.options)for(m in l)k(b[l[m]])&&(e=!0);e?(j=[],c=b.states||{},e=c.hover= c.hover||{},a.options.marker||(e.color=cj(e.color|| g.options.color).brighten(e.brightness||d.brightness ).get()),j[""]=a.convertAttribs(b,i[""]),j.hover=a. convertAttribs(c.hover,i.hover,j[""]),j.select=a.convertAttribs (c.select,i.select,j[""])):j=i,g.pointAttr=j}},destroy :function(){var a=this,b=a.chart,c=a.clipRect,d=/AppleWebKit\/533/ .test(bb),e,f,g=a.data||[],h,i,k;cb(a,"destroy"),ca (a),bW(["xAxis","yAxis"],function(b){if(k=a[b])j(k. series,a),k.isDirty=!0}),a.legendItem&&a.chart.legend .destroyItem(a);for(f=g.length;f--;)(h=g[f])&&h.destroy&& h.destroy();a.points=null,c&&c!==b.clipRect&&(a.clipRect= c.destroy()),bW("area,graph,dataLabelsGroup,group,tracker,trackerGroup" .split(","),function(b){a[b]&&(e=d&&b==="group"?"hide" :"destroy",a[b][e]())}),b.hoverSeries===a&&(b.hoverSeries= null),j(b.series,a);for(i in a)delete a[i]},drawDataLabels :function(){var a=this,b=a.options,c=b.dataLabels;if( c.enabled||a._hasPointLabels){var d,e,f=a.points,g, h,i,j=a.dataLabelsGroup,l=a.chart,m=a.xAxis,m=m?m.left :l.plotLeft,o=a.yAxis,o=o?o.top:l.plotTop,p=l.renderer ,q=l.inverted,r=a.type,s=b.stacking,t=r==="column"|| r==="bar",u=c.verticalAlign===null,v=c.y===null,w=p .fontMetrics(c.style.fontSize),x=w.h,y=w.b,z,A;t&&( w={top:y,middle:y-x/2,bottom:-x+y},s?(u&&(c=b$(c,{verticalAlign :"middle"})),v&&(c=b$(c,{y:w[c.verticalAlign]}))):u? c=b$(c,{verticalAlign:"top"}):v&&(c=b$(c,{y:w[c.verticalAlign ]}))),j?j.translate(m,o):j=a.dataLabelsGroup=p.g("data-labels" ).attr({visibility:a.visible?"visible":"hidden",zIndex :6}).translate(m,o).add(),h=c,bW(f,function(f){z=f. dataLabel,c=h,(g=f.options)&&g.dataLabels&&(c=b$(c, g.dataLabels));if(A=c.enabled){var m=f.barX&&f.barX+ f.barW/2||n(f.plotX,-999),o=n(f.plotY,-999),u=c.y=== null?f.y>=b.threshold?-x+y:y:c.y;d=(q?l.plotWidth-o :m)+c.x,e=T((q?l.plotHeight-m:o)+u)}if(z&&a.isCartesian&& (!l.isInsidePlot(d,e)||!A))f.dataLabel=z.destroy(); else if(A){var m=c.align,v;i=c.formatter.call(f.getLabelConfig (),c),r==="column"&&(d+={left:-1,right:1}[m]*f.barW/2||0 ),!s&&q&&f.y<0&&(m="right",d-=10),c.style.color=n(c .color,c.style.color,a.color,"black");if(z)z.attr({ text:i}).animate({x:d,y:e});else if(k(i)){m={align: m,fill:c.backgroundColor,stroke:c.borderColor,"stroke-width" :c.borderWidth,r:c.borderRadius||0,rotation:c.rotation ,padding:c.padding,zIndex:1};for(v in m)m[v]===P&&delete m[v];z=f.dataLabel=p[c.rotation?"text":"label"](i,d ,e,null,null,null,c.useHTML,!0).attr(m).css(c.style ).add(j).shadow(c.shadow)}t&&b.stacking&&z&&(v=f.barX ,m=f.barY,o=f.barW,f=f.barH,z.align(c,null,{x:q?l.plotWidth- m-f:v,y:q?l.plotHeight-v-o:m,width:q?f:o,height:q?o :f}))}})}},getSegmentPath:function(a){var b=this,c= [];return bW(a,function(d,e){b.getPointSpline?c.push .apply(c,b.getPointSpline(a,d,e)):(c.push(e?"L":"M" ),e&&b.options.step&&c.push(d.plotX,a[e-1].plotY),c .push(d.plotX,d.plotY))}),c},drawGraph:function(){var a= this,b=a.options,c=a.graph,d=[],e=a.group,f=b.lineColor|| a.color,g=b.lineWidth,h=b.dashStyle,i,j=a.chart.renderer ,k=[];bW(a.segments,function(b){i=a.getSegmentPath( b),b.length>1?d=d.concat(i):k.push(b[0])}),a.graphPath= d,a.singlePoints=k,c?(ce(c),c.animate({d:d})):g&&(c= {stroke:f,"stroke-width":g},h&&(c.dashstyle=h),a.graph= j.path(d).attr(c).add(e).shadow(b.shadow))},invertGroups :function(){function a(){var a={width:b.yAxis.len,height :b.xAxis.len};c.attr(a).invert(),d&&d.attr(a).invert ()}var b=this,c=b.group,d=b.trackerGroup,e=b.chart; b_(e,"resize",a),b_(b,"destroy",function(){ca(e,"resize" ,a)}),a(),b.invertGroups=a},createGroup:function(){ var a=this.chart;(this.group=a.renderer.g("series") ).attr({visibility:this.visible?"visible":"hidden", zIndex:this.options.zIndex}).translate(this.xAxis.left ,this.yAxis.top).add(a.seriesGroup),this.createGroup= bt},render:function(){var a=this,b=a.chart,c,d=a.options ,e=d.clip!==!1,f=d.animation,f=(d=f&&a.animate)?f&& f.duration||500:0,g=a.clipRect,h=b.renderer;!g&&(g= a.clipRect=!b.hasRendered&&b.clipRect?b.clipRect:h. clipRect(0,0,b.plotSizeX,b.plotSizeY+1),!b.clipRect )&&(b.clipRect=g),a.createGroup(),c=a.group,a.drawDataLabels (),d&&a.animate(!0),a.getAttribs(),a.drawGraph&&a.drawGraph (),a.drawPoints(),a.options.enableMouseTracking!==!1&& a.drawTracker(),b.inverted&&a.invertGroups(),e&&!a. hasRendered&&(c.clip(g),a.trackerGroup&&a.trackerGroup .clip(b.clipRect)),d&&a.animate(),setTimeout(function( ){g.isAnimating=!1,(c=a.group)&&g!==b.clipRect&&g.renderer&& (e&&c.clip(a.clipRect=b.clipRect),g.destroy())},f), a.isDirty=a.isDirtyData=!1,a.hasRendered=!0},redraw :function(){var a=this.chart,b=this.isDirtyData,c=this .group;c&&(a.inverted&&c.attr({width:a.plotWidth,height :a.plotHeight}),c.animate({translateX:this.xAxis.left ,translateY:this.yAxis.top})),this.translate(),this .setTooltipPoints(!0),this.render(),b&&cb(this,"updatedData" )},setState:function(a){var b=this.options,c=this.graph ,d=b.states,b=b.lineWidth,a=a||"";this.state!==a&&( this.state=a,d[a]&&d[a].enabled===!1||(a&&(b=d[a].lineWidth|| b+1),c&&!c.dashstyle&&c.attr({"stroke-width":b},a?0 :500)))},setVisible:function(a,b){var c=this.chart, d=this.legendItem,e=this.group,f=this.tracker,g=this .dataLabelsGroup,h,i=this.points,j=c.options.chart. ignoreHiddenSeries;h=this.visible,h=(this.visible=a= a===P?!h:a)?"show":"hide",e&&e[h]();if(f)f[h]();else if( i)for(e=i.length;e--;)(f=i[e],f.tracker)&&f.tracker [h]();g&&g[h](),d&&c.legend.colorizeItem(this,a),this .isDirty=!0,this.options.stacking&&bW(c.series,function( a){a.options.stacking&&a.visible&&(a.isDirty=!0)}), j&&(c.isDirtyBox=!0),b!==!1&&c.redraw(),cb(this,h)} ,show:function(){this.setVisible(!0)},hide:function( ){this.setVisible(!1)},select:function(a){this.selected= a=a===P?!this.selected:a,this.checkbox&&(this.checkbox .checked=a),cb(this,a?"select":"unselect")},drawTrackerGroup :function(){var a=this.trackerGroup,b=this.chart;return this .isCartesian&&(a||(this.trackerGroup=a=b.renderer.g ().attr({zIndex:this.options.zIndex||1}).add(b.trackerGroup )),a.translate(this.xAxis.left,this.yAxis.top)),a}, drawTracker:function(){var a=this,b=a.options,c=b.trackByArea ,d=[].concat(c?a.areaPath:a.graphPath),e=d.length,f= a.chart,g=f.renderer,h=f.options.tooltip.snap,i=a.tracker ,j=b.cursor,j=j&&{cursor:j},k=a.singlePoints,l=a.drawTrackerGroup (),m;if(e&&!c)for(m=e+1;m--;)d[m]==="M"&&d.splice(m+1 ,0,d[m+1]-h,d[m+2],"L"),(m&&d[m]==="M"||m===e)&&d.splice (m,0,"L",d[m-2]+h,d[m-1]);for(m=0;m=0;d--)da&&i>e?(i=W(a,e), k=2*e-i):ig&&k>e?(k=W (g,e),i=2*e-k):kx?h-x:w-(g<=w?x:0)), a(d,{barX:i,barY:j,barW:u,barH:k,pointWidth:t}),d.shapeType="rect" ,d.shapeArgs=g=c.renderer.Element.prototype.crisp.call (0,f,i,j,u,k),f%2&&(g.y-=1,g.height+=1),d.trackerArgs= Y(k)<3&&b$(d.shapeArgs,{height:6,y:j-3})})},getSymbol :function(){},drawLegendSymbol:bT.prototype.drawLegendSymbol ,drawGraph:function(){},drawPoints:function(){var a= this,b=a.options,c=a.chart.renderer,d,e;bW(a.points ,function(f){var g=f.plotY;g!==P&&!isNaN(g)&&f.y!== null&&(d=f.graphic,e=f.shapeArgs,d?(ce(d),d.animate (b$(e))):f.graphic=d=c[f.shapeType](e).attr(f.pointAttr [f.selected?"select":""]).add(a.group).shadow(b.shadow ,null,b.stacking&&!b.borderRadius))})},drawTracker: function(){var a=this,b=a.chart,c=b.renderer,d,e,f=+ (new Date),g=a.options,h=g.cursor,i=h&&{cursor:h},j= a.drawTrackerGroup(),k,m,n;bW(a.points,function(h){ e=h.tracker,d=h.trackerArgs||h.shapeArgs,m=h.plotY, n=!a.isCartesian||m!==P&&!isNaN(m),delete d.strokeWidth ,h.y!==null&&n&&(e?e.attr(d):h.tracker=c[h.shapeType ](d).attr({isTracker:f,fill:bw,visibility:a.visible?"visible" :"hidden"}).on(bk?"touchstart":"mouseover",function( c){k=c.relatedTarget||c.fromElement,b.hoverSeries!== a&&l(k,"isTracker")!==f&&a.onMouseOver(),h.onMouseOver ()}).on("mouseout",function(b){!g.stickyTracking&&( k=b.relatedTarget||b.toElement,l(k,"isTracker")!==f )&&a.onMouseOut()}).css(i).add(h.group||j))})},animate :function(a){var b=this,c=b.points,d=b.options;a||( bW(c,function(a){var c=a.graphic,a=a.shapeArgs,e=b. yAxis,f=d.threshold;c&&(c.attr({height:0,y:k(f)?e.getThreshold (f):e.translate(e.getExtremes().min,0,1,0,1)}),c.animate ({height:a.height,y:a.y},d.animation))}),b.animate= null)},remove:function(){var a=this,b=a.chart;b.hasRendered&& bW(b.series,function(b){b.type===a.type&&(b.isDirty=!0 )}),cq.prototype.remove.apply(a,arguments)}}),bR.column= cm,ci.bar=b$(ci.column,{dataLabels:{align:"left",x:5 ,y:null,verticalAlign:"middle"}}),cr=q(cm,{type:"bar" ,inverted:!0}),bR.bar=cr,ci.scatter=b$(bS,{lineWidth :0,states:{hover:{lineWidth:0}},tooltip:{headerFormat :'{series.name}
' ,pointFormat:"x: {point.x}
y: {point.y}
" }}),cr=q(cq,{type:"scatter",sorted:!1,translate:function( ){var a=this;cq.prototype.translate.apply(a),bW(a.points ,function(b){b.shapeType="circle",b.shapeArgs={x:b. plotX,y:b.plotY,r:a.chart.options.tooltip.snap}})}, drawTracker:function(){for(var a=this,b=a.options.cursor ,b=b&&{cursor:b},c=a.points,d=c.length,e;d--;)if(e= c[d].graphic)e.element._i=d;a._hasTracking?a._hasTracking=!0 :a.group.attr({isTracker:!0}).on(bk?"touchstart":"mouseover" ,function(b){a.onMouseOver(),b.target._i!==P&&c[b.target ._i].onMouseOver()}).on("mouseout",function(){a.options .stickyTracking||a.onMouseOut()}).css(b)}}),bR.scatter= cr,ci.pie=b$(bS,{borderColor:"#FFFFFF",borderWidth:1 ,center:["50%","50%"],colorByPoint:!0,dataLabels:{distance :30,enabled:!0,formatter:function(){return this.point .name},y:5},legendType:"point",marker:null,size:"75%" ,showInLegend:!1,slicedOffset:10,states:{hover:{brightness :.1,shadow:!1}}}),bS={type:"pie",isCartesian:!1,pointClass :q(cp,{init:function(){cp.prototype.init.apply(this ,arguments);var b=this,c;return a(b,{visible:b.visible!==!1 ,name:n(b.name,"Slice")}),c=function(){b.slice()},b_ (b,"select",c),b_(b,"unselect",c),b},setVisible:function( a){var b=this.series.chart,c=this.tracker,d=this.dataLabel ,e=this.connector,f=this.shadowGroup,g;g=(this.visible= a=a===P?!this.visible:a)?"show":"hide",this.group[g ](),c&&c[g](),d&&d[g](),e&&e[g](),f&&f[g](),this.legendItem&& b.legend.colorizeItem(this,a)},slice:function(a,b,c ){var d=this.series.chart,e=this.slicedTranslation; E(c,d),n(b,!0),a=this.sliced=k(a)?a:!this.sliced,a= {translateX:a?e[0]:d.plotLeft,translateY:a?e[1]:d.plotTop },this.group.animate(a),this.shadowGroup&&this.shadowGroup .animate(a)}}),pointAttrToOptions:{stroke:"borderColor" ,"stroke-width":"borderWidth",fill:"color"},getColor :function(){this.initialColor=this.chart.counters.color },animate:function(){var a=this;bW(a.points,function( b){var c=b.graphic,b=b.shapeArgs,d=-_/2;c&&(c.attr( {r:0,start:d,end:d}),c.animate({r:b.r,start:b.start ,end:b.end},a.options.animation))}),a.animate=null} ,setData:function(a,b){cq.prototype.setData.call(this ,a,!1),this.processData(),this.generatePoints(),n(b ,!0)&&this.chart.redraw()},getCenter:function(){var a= this.options,b=this.chart,d=b.plotWidth,e=b.plotHeight ,a=a.center.concat([a.size,a.innerSize||0]),f=X(d,e ),g;return bZ(a,function(a,b){return(g=/%$/.test(a) )?[d,e,f,f][b]*c(a)/100:a})},translate:function(){this .generatePoints();var a=0,b=-0.25,c=this.options,d= c.slicedOffset,e=d+c.borderWidth,f,g=this.chart,h,i ,j,k=this.points,l=2*_,m,n,o,p=c.dataLabels.distance ;this.center=f=this.getCenter(),this.getX=function( a,b){return j=S.asin((a-f[1])/(f[2]/2+p)),f[0]+(b?-1 :1)*Z(j)*(f[2]/2+p)},bW(k,function(b){a+=b.y}),bW(k ,function(c){m=a?c.y/a:0,h=T(b*l*1e3)/1e3,b+=m,i=T( b*l*1e3)/1e3,c.shapeType="arc",c.shapeArgs={x:f[0], y:f[1],r:f[2]/2,innerR:f[3]/2,start:h,end:i},j=(i+h )/2,c.slicedTranslation=bZ([Z(j)*d+g.plotLeft,$(j)* d+g.plotTop],T),n=Z(j)*f[2]/2,o=$(j)*f[2]/2,c.tooltipPos= [f[0]+n*.7,f[1]+o*.7],c.labelPos=[f[0]+n+Z(j)*p,f[1 ]+o+$(j)*p,f[0]+n+Z(j)*e,f[1]+o+$(j)*e,f[0]+n,f[1]+ o,p<0?"center":j0,p=[[],[]],q,r,s,t,u=2 ,v;if(d.enabled){cq.prototype.drawDataLabels.apply( this),bW(a,function(a){a.dataLabel&&p[a.labelPos[7]< _/2?0:1].push(a)}),p[1].reverse(),t=function(a,b){return b .y-a.y};for(a=p[0][0]&&p[0][0].dataLabel&&(p[0][0]. dataLabel.getBBox().height||21);u--;){var w=[],x=[] ,y=p[u],z=y.length,A;if(j>0){for(v=m-l-j;v<=m+l+j;v+= a)w.push(v);s=w.length;if(z>s){h=[].concat(y),h.sort (t);for(v=z;v--;)h[v].rank=v;for(v=z;v--;)y[v].rank>= s&&y.splice(v,1);z=y.length}for(v=0;v0){if(r=x.pop(),A=r.i,r=r.y, q>r&&w[A+1]!==null||q>>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(;e0 )g=a.shift(),f=f[g];if(!f){if(I18n.fallbacks){var h= this.getFallbacks(e);for(var i=0;i11?1:0,k=a.getSeconds(),l=a.getMinutes(), m=a.getTimezoneOffset(),n=Math.floor(Math.abs(m/60) ),o=Math.abs(m)-n*60,p=(m>0?"-":"+")+(n.toString(). length<2?"0"+n:n)+(o.toString().length<2?"0"+o:o);i>12? i-=12:i===0&&(i=12);var q=function(a){var b="0"+a.toString ();return b.substr(b.length-2)},r=b;return r=r.replace ("%a",c.abbr_day_names[d]),r=r.replace("%A",c.day_names [d]),r=r.replace("%b",c.abbr_month_names[g]),r=r.replace ("%B",c.month_names[g]),r=r.replace("%d",q(e)),r=r. replace("%e",e),r=r.replace("%-d",e),r=r.replace("%H" ,q(h)),r=r.replace("%-H",h),r=r.replace("%I",q(i)), r=r.replace("%-I",i),r=r.replace("%m",q(g)),r=r.replace ("%-m",g),r=r.replace("%M",q(l)),r=r.replace("%-M", l),r=r.replace("%p",c.meridian[j]),r=r.replace("%S" ,q(k)),r=r.replace("%-S",k),r=r.replace("%w",d),r=r .replace("%y",q(f)),r=r.replace("%-y",q(f).replace(/^0+/ ,"")),r=r.replace("%Y",f),r=r.replace("%z",p),r},I18n .toNumber=function(a,b){b=this.prepareOptions(b,this .lookup("number.format"),{precision:3,separator:"." ,delimiter:",",strip_insignificant_zeros:!1});var c= a<0,d=Math.abs(a).toFixed(b.precision).toString(),e= d.split("."),f,g=[],h;a=e[0],f=e[1];while(a.length>0 )g.unshift(a.substr(Math.max(0,a.length-3),3)),a=a. substr(0,a.length-3);h=g.join(b.delimiter),b.precision>0&& (h+=b.separator+e[1]),c&&(h="-"+h);if(b.strip_insignificant_zeros ){var i={separator:new RegExp(b.separator.replace(/\./ ,"\\.")+"$"),zeros:/0+$/};h=h.replace(i.zeros,"").replace (i.separator,"")}return h},I18n.toCurrency=function( a,b){return b=this.prepareOptions(b,this.lookup("number.currency.format" ),this.lookup("number.format"),{unit:"$",precision:2 ,format:"%u%n",delimiter:",",separator:"."}),a=this .toNumber(a,b),a=b.format.replace("%u",b.unit).replace ("%n",a),a},I18n.toHumanSize=function(a,b){var c=1024 ,d=a,e=0,f,g;while(d>=c&&e<4)d/=c,e+=1;return e===0? (f=this.t("number.human.storage_units.units.byte",{ count:d}),g=0):(f=this.t("number.human.storage_units.units."+ [null,"kb","mb","gb","tb"][e]),g=d-Math.floor(d)===0?0 :1),b=this.prepareOptions(b,{precision:g,format:"%n%u" ,delimiter:""}),a=this.toNumber(d,b),a=b.format.replace ("%u",f).replace("%n",a),a},I18n.toPercentage=function( a,b){return b=this.prepareOptions(b,this.lookup("number.percentage.format" ),this.lookup("number.format"),{precision:3,separator :".",delimiter:""}),a=this.toNumber(a,b),a+"%"},I18n .pluralizer=function(a){return pluralizer=this.pluralizationRules [a],pluralizer!==undefined?pluralizer:this.pluralizationRules .en},I18n.findAndTranslateValidNode=function(a,b){for( i=0;i "+a),w.emit("state_change" ,{previous:d,current:a}),w.emit(a,b))}var w=this;c. EventsDispatcher.call(this),this.options=c.Util.extend ({encrypted:!1},k),this.netInfo=new c.NetInfo,this. netInfo.bind("online",function(){w._machine.is("waiting" )&&(w._machine.transition("connecting"),v("connecting" ))}),this.netInfo.bind("offline",function(){w._machine .is("connected")&&(w.socket.onclose=void 0,w.socket .onmessage=void 0,w.socket.onerror=void 0,w.socket. onopen=void 0,w.socket.close(),w.socket=void 0,w._machine .transition("waiting"))}),this._machine=new c.Machine ("initialized",d,{initializedPre:function(){w.compulsorySecure= w.options.encrypted,w.key=b,w.socket=null,w.socket_id= null,w.state="initialized"},waitingPre:function(){w .connectionWait>0&&w.emit("connecting_in",w.connectionWait ),w.netInfo.isOnLine()&&w.connectionAttempts<=4?v("connecting" ):v("unavailable"),w.netInfo.isOnLine()&&(w._waitingTimer= setTimeout(function(){w._machine.transition("connecting" )},o()))},waitingExit:function(){clearTimeout(w._waitingTimer )},connectingPre:function(){if(w.netInfo.isOnLine()===!1 )w._machine.transition("waiting"),v("unavailable"); else{var a;a=c.ws_port;var b="ws://";if(w.connectionSecure|| document.location.protocol==="https:")a=c.wss_port, b="wss://";a=b+c.host+":"+a+"/app/"+w.key+"?protocol=5&client=js&version="+ c.VERSION+"&flash="+(c.TransportType==="flash"?"true" :"false"),c.debug("Connecting",a),w.socket=new c.Transport (a),w.socket.onopen=p,w.socket.onclose=t,w.socket.onerror= u,w._connectingTimer=setTimeout(m,w.openTimeout)}}, connectingExit:function(){clearTimeout(w._connectingTimer ),w.socket.onopen=void 0},connectingToWaiting:function( ){l()},connectingToImpermanentlyClosing:function(){ l()},openPre:function(){w.socket.onmessage=q,w.socket .onerror=u,w.socket.onclose=t,w._openTimer=setTimeout (m,w.connectedTimeout)},openExit:function(){clearTimeout (w._openTimer),w.socket.onmessage=void 0},openToWaiting :function(){l()},openToImpermanentlyClosing:function( ){l()},connectedPre:function(b){w.socket_id=b,w.socket .onmessage=r,w.socket.onerror=u,w.socket.onclose=t, a(w),w.connectedAt=(new Date).getTime(),n()},connectedPost :function(){v("connected")},connectedExit:function( ){w._activityTimer&&clearTimeout(w._activityTimer), v("disconnected")},impermanentlyClosingPost:function( ){w.socket&&(w.socket.onclose=t,w.socket.close())}, permanentlyClosingPost:function(){w.socket?(w.socket .onclose=function(){a(w),w._machine.transition("permanentlyClosed" )},w.socket.close()):(a(w),w._machine.transition("permanentlyClosed" ))},failedPre:function(){v("failed"),c.debug("WebSockets are not available in this browser." )},permanentlyClosedPost:function(){v("disconnected" )}})}var c=this.Pusher,d={initialized:["waiting","failed" ],waiting:["connecting","permanentlyClosed"],connecting :["open","permanentlyClosing","impermanentlyClosing" ,"waiting"],open:["connected","permanentlyClosing","impermanentlyClosing" ,"waiting"],connected:["permanentlyClosing","waiting" ],impermanentlyClosing:["waiting","permanentlyClosing" ],permanentlyClosing:["permanentlyClosed"],permanentlyClosed :["waiting","failed"],failed:["permanentlyClosed"]} ,e=2e3,f=2e3,g=2e3,h=5*e,i=5*f,j=5*g;b.prototype.connect= function(){!this._machine.is("failed")&&!c.Transport? this._machine.transition("failed"):this._machine.is ("initialized")?(a(this),this._machine.transition("waiting" )):this._machine.is("waiting")&&this.netInfo.isOnLine ()===!0?this._machine.transition("connecting"):this ._machine.is("permanentlyClosed")&&(a(this),this._machine .transition("waiting"))},b.prototype.send=function( a){if(this._machine.is("connected")){var b=this;return setTimeout (function(){b.socket.send(a)},0),!0}return!1},b.prototype .send_event=function(a,b,d){return a={event:a,data: b},d&&(a.channel=d),c.debug("Event sent",a),this.send (JSON.stringify(a))},b.prototype.disconnect=function( ){this._machine.is("permanentlyClosed")||(this._machine .is("waiting")||this._machine.is("failed")?this._machine .transition("permanentlyClosed"):this._machine.transition ("permanentlyClosing"))},c.Util.extend(b.prototype, c.EventsDispatcher.prototype),this.Pusher.Connection= b}.call(this),function(){Pusher.Channels=function() {this.channels={}},Pusher.Channels.prototype={add:function( a,b){var c=this.find(a);return c||(c=Pusher.Channel .factory(a,b),this.channels[a]=c),c},find:function( a){return this.channels[a]},remove:function(a){delete this.channels[a]},disconnect:function(){for(var a in this.channels)this.channels[a].disconnect()}},Pusher .Channel=function(a,b){var c=this;Pusher.EventsDispatcher .call(this,function(b){Pusher.debug("No callbacks on "+ a+" for "+b)}),this.pusher=b,this.name=a,this.subscribed=!1 ,this.bind("pusher_internal:subscription_succeeded" ,function(a){c.onSubscriptionSucceeded(a)})},Pusher .Channel.prototype={init:function(){},disconnect:function( ){this.subscribed=!1,this.emit("pusher_internal:disconnected" )},onSubscriptionSucceeded:function(){this.subscribed=!0 ,this.emit("pusher:subscription_succeeded")},authorize :function(a,b,c){return c(!1,{})},trigger:function( a,b){return this.pusher.send_event(a,b,this.name)}} ,Pusher.Util.extend(Pusher.Channel.prototype,Pusher .EventsDispatcher.prototype),Pusher.Channel.PrivateChannel= {authorize:function(a,b,c){var d=this;return(new Pusher .Channel.Authorizer(this,Pusher.channel_auth_transport ,b)).authorize(a,function(a,b){a||d.emit("pusher_internal:authorized" ,b),c(a,b)})}},Pusher.Channel.PresenceChannel={init :function(){this.members=new a(this)},onSubscriptionSucceeded :function(){this.subscribed=!0}};var a=function(a){ var b=this,c=function(){this._members_map={},this.count=0 ,this.me=null};c.call(this),a.bind("pusher_internal:authorized" ,function(c){var d=JSON.parse(c.channel_data);a.bind ("pusher_internal:subscription_succeeded",function( c){b._members_map=c.presence.hash,b.count=c.presence .count,b.me=b.get(d.user_id),a.emit("pusher:subscription_succeeded" ,b)})}),a.bind("pusher_internal:member_added",function( c){b.get(c.user_id)===null&&b.count++,b._members_map [c.user_id]=c.user_info,a.emit("pusher:member_added" ,b.get(c.user_id))}),a.bind("pusher_internal:member_removed" ,function(c){var d=b.get(c.user_id);d&&(delete b._members_map [c.user_id],b.count--,a.emit("pusher:member_removed" ,d))}),a.bind("pusher_internal:disconnected",function( ){c.call(b)})};a.prototype={each:function(a){for(var b in this._members_map)a(this.get(b))},get:function(a){return this ._members_map.hasOwnProperty(a)?{id:a,info:this._members_map [a]}:null}},Pusher.Channel.factory=function(a,b){var c=new Pusher.Channel(a,b);return a.indexOf("private-")===0? Pusher.Util.extend(c,Pusher.Channel.PrivateChannel) :a.indexOf("presence-")===0&&(Pusher.Util.extend(c, Pusher.Channel.PrivateChannel),Pusher.Util.extend(c ,Pusher.Channel.PresenceChannel)),c.init(),c}}.call (this),function(){Pusher.Channel.Authorizer=function( a,b,c){this.channel=a,this.type=b,this.authOptions= (c||{}).auth||{}},Pusher.Channel.Authorizer.prototype= {composeQuery:function(a){var a="&socket_id="+encodeURIComponent (a)+"&channel_name="+encodeURIComponent(this.channel .name),b;for(b in this.authOptions.params)a+="&"+encodeURIComponent (b)+"="+encodeURIComponent(this.authOptions.params[ b]);return a},authorize:function(a,b){return Pusher .authorizers[this.type].call(this,a,b)}},Pusher.auth_callbacks= {},Pusher.authorizers={ajax:function(a,b){var c;c=Pusher .XHR?new Pusher.XHR:window.XMLHttpRequest?new window .XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP" ),c.open("POST",Pusher.channel_auth_endpoint,!0),c. setRequestHeader("Content-Type","application/x-www-form-urlencoded" );for(var d in this.authOptions.headers)c.setRequestHeader (d,this.authOptions.headers[d]);return c.onreadystatechange= function(){if(c.readyState==4)if(c.status==200){var a ,d=!1;try{a=JSON.parse(c.responseText),d=!0}catch(e ){b(!0,"JSON returned from webapp was invalid, yet status code was 200. Data was: "+ c.responseText)}d&&b(!1,a)}else Pusher.warn("Couldn't get auth info from your webapp" ,c.status),b(!0,c.status)},c.send(this.composeQuery (a)),c},jsonp:function(a,b){this.authOptions.headers!==void 0&& Pusher.warn("Warn","To send headers with the auth request, you must use AJAX, rather than JSONP." );var c=document.createElement("script");Pusher.auth_callbacks [this.channel.name]=function(a){b(!1,a)},c.src=Pusher .channel_auth_endpoint+"?callback="+encodeURIComponent ("Pusher.auth_callbacks['"+this.channel.name+"']")+ this.composeQuery(a);var d=document.getElementsByTagName ("head")[0]||document.documentElement;d.insertBefore (c,d.firstChild)}}}.call(this);var _require=function( ){function a(a,b){document.addEventListener?a.addEventListener ("load",b,!1):a.attachEvent("onreadystatechange",function( ){(a.readyState=="loaded"||a.readyState=="complete" )&&b()})}function b(b,c){var d=document.getElementsByTagName ("head")[0],e=document.createElement("script");e.setAttribute ("src",b),e.setAttribute("type","text/javascript"), e.setAttribute("async",!0),a(e,function(){c()}),d.appendChild (e)}return function(a,c){for(var d=0,e=0;e0?_require(b,e):e()})();minispade.register("app","(function() {(function() {\nminispade.require('travis');\nminispade.require('auth');\nminispade.require('controllers');\nminispade.require('helpers');\nminispade.require('models');\nminispade.require('pusher');\nminispade.require('routes');\nminispade.require('slider');\nminispade.require('store');\nminispade.require('tailing');\nminispade.require('templates');\nminispade.require('views');\nminispade.require('config/locales');\nminispade.require('data/sponsors');\n\n Travis.reopen({\n App: Em.Application.extend({\n autoinit: false,\n currentUserBinding: 'auth.user',\n authStateBinding: 'auth.state',\n init: function() {\n this._super.apply(this, arguments);\n this.store = Travis.Store.create();\n this.store.loadMany(Travis.Sponsor, Travis.SPONSORS);\n this.set('auth', Travis.Auth.create({\n store: this.store,\n endpoint: Travis.config.api_endpoint\n }));\n this.slider = new Travis.Slider();\n this.pusher = new Travis.Pusher(Travis.config.pusher);\n return this.tailing = new Travis.Tailing();\n },\n signIn: function() {\n return this.get('auth').signIn();\n },\n signOut: function() {\n this.get('auth').signOut();\n return this.get('router').send('showAuthenticated');\n },\n receive: function() {\n return this.store.receive.apply(this.store, arguments);\n },\n toggleSidebar: function() {\n var element;\n $('body').toggleClass('maximized');\n element = $('');\n $('#top .profile').append(element);\n Em.run.later((function() {\n return element.remove();\n }), 10);\n element = $('');\n $('#repository').append(element);\n return Em.run.later((function() {\n return element.remove();\n }), 10);\n }\n })\n });\n\n}).call(this);\n\n})();\n//@ sourceURL=app" ),minispade.register("auth","(function() {(function() {\n\n this.Travis.Auth = Ember.Object.extend({\n iframe: $('