/*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/

YUI.add("event-mousewheel",function(e,t){var n="DOMMouseScroll",r=function(t){var r=e.Array(t,0,!0),i;return e.UA.gecko?(r[0]=n,i=e.config.win):i=e.config.doc,r.length<3?r[2]=i:r.splice(2,0,i),r};e.Env.evt.plugins.mousewheel={on:function(){return e.Event._attach(r(arguments))},detach:function(){return e.Event.detach.apply(e.Event,r(arguments))}}},"3.16.0",{requires:["node-base"]});
/*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/

YUI.add("event-mouseenter",function(e,t){var n=e.Env.evt.dom_wrappers,r=e.DOM.contains,i=e.Array,s=function(){},o={proxyType:"mouseover",relProperty:"fromElement",_notify:function(t,i,s){var o=this._node,u=t.relatedTarget||t[i];o!==u&&!r(o,u)&&s.fire(new e.DOMEventFacade(t,o,n["event:"+e.stamp(o)+t.type]))},on:function(t,n,r){var i=e.Node.getDOMNode(t),s=[this.proxyType,this._notify,i,null,this.relProperty,r];n.handle=e.Event._attach(s,{facade:!1})},detach:function(e,t){t.handle.detach()},delegate:function(t,n,r,i){var o=e.Node.getDOMNode(t),u=[this.proxyType,s,o,null,r];n.handle=e.Event._attach(u,{facade:!1}),n.handle.sub.filter=i,n.handle.sub.relProperty=this.relProperty,n.handle.sub._notify=this._filterNotify},_filterNotify:function(t,n,s){n=n.slice(),this.args&&n.push.apply(n,this.args);var o=e.delegate._applyFilter(this.filter,n,s),u=n[0].relatedTarget||n[0][this.relProperty],a,f,l,c,h;if(o){o=i(o);for(f=0,l=o.length&&(!a||!a.stopped);f<l;++f){h=o[0];if(!r(h,u)){a||(a=new e.DOMEventFacade(n[0],h,s),a.container=e.one(s.el)),a.currentTarget=e.one(h),c=n[1].fire(a);if(c===!1)break}}}return c},detachDelegate:function(e,t){t.handle.detach()}};e.Event.define("mouseenter",o,!0),e.Event.define("mouseleave",e.merge(o,{proxyType:"mouseout",relProperty:"toElement"}),!0)},"3.16.0",{requires:["event-synthetic"]});
/*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/

YUI.add("event-key",function(e,t){var n="+alt",r="+ctrl",i="+meta",s="+shift",o=e.Lang.trim,u={KEY_MAP:{enter:13,space:32,esc:27,backspace:8,tab:9,pageup:33,pagedown:34},_typeRE:/^(up|down|press):/,_keysRE:/^(?:up|down|press):|\+(alt|ctrl|meta|shift)/g,processArgs:function(t){var n=t.splice(3,1)[0],r=e.Array.hash(n.match(/\+(?:alt|ctrl|meta|shift)\b/g)||[]),i={type:this._typeRE.test(n)?RegExp.$1:null,mods:r,keys:null},s=n.replace(this._keysRE,""),u,a,f,l;if(s){s=s.split(","),i.keys={};for(l=s.length-1;l>=0;--l){u=o(s[l]);if(!u)continue;+u==u?i.keys[u]=r:(f=u.toLowerCase(),this.KEY_MAP[f]?(i.keys[this.KEY_MAP[f]]=r,i.type||(i.type="down")):(u=u.charAt(0),a=u.toUpperCase(),r["+shift"]&&(u=a),i.keys[u.charCodeAt(0)]=u===a?e.merge(r,{"+shift":!0}):r))}}return i.type||(i.type="press"),i},on:function(e,t,o,u){var a=t._extra,f="key"+a.type,l=a.keys,c=u?"delegate":"on";t._detach=e[c](f,function(e){var t=l?l[e.which]:a.mods;t&&(!t[n]||t[n]&&e.altKey)&&(!t[r]||t[r]&&e.ctrlKey)&&(!t[i]||t[i]&&e.metaKey)&&(!t[s]||t[s]&&e.shiftKey)&&o.fire(e)},u)},detach:function(e,t,n){t._detach.detach()}};u.delegate=u.on,u.detachDelegate=u.detach,e.Event.define("key",u,!0)},"3.16.0",{requires:["event-synthetic"]});
/*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/

YUI.add("event-focus",function(e,t){function u(t,r,u){var a="_"+t+"Notifiers";e.Event.define(t,{_useActivate:o,_attach:function(i,s,o){return e.DOM.isWindow(i)?n._attach([t,function(e){s.fire(e)},i]):n._attach([r,this._proxy,i,this,s,o],{capture:!0})},_proxy:function(t,r,i){var s=t.target,f=t.currentTarget,l=s.getData(a),c=e.stamp(f._node),h=o||s!==f,p;r.currentTarget=i?s:f,r.container=i?f:null,l?h=!0:(l={},s.setData(a,l),h&&(p=n._attach([u,this._notify,s._node]).sub,p.once=!0)),l[c]||(l[c]=[]),l[c].push(r),h||this._notify(t)},_notify:function(t,n){var r=t.currentTarget,i=r.getData(a),o=r.ancestors(),u=r.get("ownerDocument"),f=[],l=i?e.Object.keys(i).length:0,c,h,p,d,v,m,g,y,b,w;r.clearData(a),o.push(r),u&&o.unshift(u),o._nodes.reverse(),l&&(m=l,o.some(function(t){var n=e.stamp(t),r=i[n],s,o;if(r){l--;for(s=0,o=r.length;s<o;++s)r[s].handle.sub.filter&&f.push(r[s])}return!l}),l=m);while(l&&(c=o.shift())){d=e.stamp(c),h=i[d];if(h){for(g=0,y=h.length;g<y;++g){p=h[g],b=p.handle.sub,v=!0,t.currentTarget=c,b.filter&&(v=b.filter.apply(c,[c,t].concat(b.args||[])),f.splice(s(f,p),1)),v&&(t.container=p.container,w=p.fire(t));if(w===!1||t.stopped===2)break}delete h[d],l--}if(t.stopped!==2)for(g=0,y=f.length;g<y;++g){p=f[g],b=p.handle.sub,b.filter.apply(c,[c,t].concat(b.args||[]))&&(t.container=p.container,t.currentTarget=c,w=p.fire(t));if(w===!1||t.stopped===2||t.stopped&&f[g+1]&&f[g+1].container!==p.container)break}if(t.stopped)break}},on:function(e,t,n){t.handle=this._attach(e._node,n)},detach:function(e,t){t.handle.detach()},delegate:function(t,n,r,s){i(s)&&(n.filter=function(n){return e.Selector.test(n._node,s,t===n?null:t._node)}),n.handle=this._attach(t._node,r,!0)},detachDelegate:function(e,t){t.handle.detach()}},!0)}var n=e.Event,r=e.Lang,i=r.isString,s=e.Array.indexOf,o=function(){var t=!1,n=e.config.doc,r;return n&&(r=n.createElement("p"),r.setAttribute("onbeforeactivate",";"),t=r.onbeforeactivate!==undefined),t}();o?(u("focus","beforeactivate","focusin"),u("blur","beforedeactivate","focusout")):(u("focus","focus","focus"),u("blur","blur","blur"))},"3.16.0",{requires:["event-synthetic"]});
/*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/

YUI.add("event-resize",function(e,t){e.Event.define("windowresize",{on:e.UA.gecko&&e.UA.gecko<1.91?function(t,n,r){n._handle=e.Event.attach("resize",function(e){r.fire(e)})}:function(t,n,r){var i=e.config.windowResizeDelay||100;n._handle=e.Event.attach("resize",function(t){n._timer&&n._timer.cancel(),n._timer=e.later(i,e,function(){r.fire(t)})})},detach:function(e,t){t._timer&&t._timer.cancel(),t._handle.detach()}})},"3.16.0",{requires:["node-base","event-synthetic"]});
/*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/

YUI.add("event-hover",function(e,t){var n=e.Lang.isFunction,r=function(){},i={processArgs:function(e){var t=n(e[2])?2:3;return n(e[t])?e.splice(t,1)[0]:r},on:function(e,t,n,r){var i=t.args?t.args.slice():[];i.unshift(null),t._detach=e[r?"delegate":"on"]({mouseenter:function(e){e.phase="over",n.fire(e)},mouseleave:function(e){var n=t.context||this;i[0]=e,e.type="hover",e.phase="out",t._extra.apply(n,i)}},r)},detach:function(e,t,n){t._detach.detach()}};i.delegate=i.on,i.detachDelegate=i.detach,e.Event.define("hover",i)},"3.16.0",{requires:["event-mouseenter"]});
/*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/

YUI.add("event-outside",function(e,t){var n=["blur","change","click","dblclick","focus","keydown","keypress","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","select","submit"];e.Event.defineOutside=function(t,n){n=n||t+"outside";var r={on:function(n,r,i){r.handle=e.one("doc").on(t,function(e){this.isOutside(n,e.target)&&(e.currentTarget=n,i.fire(e))},this)},detach:function(e,t,n){t.handle.detach()},delegate:function(n,r,i,s){r.handle=e.one("doc").delegate(t,function(e){this.isOutside(n,e.target)&&i.fire(e)},s,this)},isOutside:function(e,t){return t!==e&&!t.ancestor(function(t){return t===e})}};r.detachDelegate=r.detach,e.Event.define(n,r)},e.Array.each(n,function(t){e.Event.defineOutside(t)})},"3.16.0",{requires:["event-synthetic"]});
/*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/

YUI.add("event-touch",function(e,t){var n="scale",r="rotation",i="identifier",s=e.config.win,o={};e.DOMEventFacade.prototype._touch=function(t,s,o){var u,a,f,l,c;if(t.touches){this.touches=[],c={};for(u=0,a=t.touches.length;u<a;++u)l=t.touches[u],c[e.stamp(l)]=this.touches[u]=new e.DOMEventFacade(l,s,o)}if(t.targetTouches){this.targetTouches=[];for(u=0,a=t.targetTouches.length;u<a;++u)l=t.targetTouches[u],f=c&&c[e.stamp(l,!0)],this.targetTouches[u]=f||new e.DOMEventFacade(l,s,o)}if(t.changedTouches){this.changedTouches=[];for(u=0,a=t.changedTouches.length;u<a;++u)l=t.changedTouches[u],f=c&&c[e.stamp(l,!0)],this.changedTouches[u]=f||new e.DOMEventFacade(l,s,o)}n in t&&(this[n]=t[n]),r in t&&(this[r]=t[r]),i in t&&(this[i]=t[i])},e.Node.DOM_EVENTS&&e.mix(e.Node.DOM_EVENTS,{touchstart:1,touchmove:1,touchend:1,touchcancel:1,gesturestart:1,gesturechange:1,gestureend:1,MSPointerDown:1,MSPointerUp:1,MSPointerMove:1,MSPointerCancel:1,pointerdown:1,pointerup:1,pointermove:1,pointercancel:1}),s&&"ontouchstart"in s&&!(e.UA.chrome&&e.UA.chrome<6)?(o.start=["touchstart","mousedown"],o.end=["touchend","mouseup"],o.move=["touchmove","mousemove"],o.cancel=["touchcancel","mousecancel"]):s&&s.PointerEvent?(o.start="pointerdown",o.end="pointerup",o.move="pointermove",o.cancel="pointercancel"):s&&"msPointerEnabled"in s.navigator?(o.start="MSPointerDown",o.end="MSPointerUp",o.move="MSPointerMove",o.cancel="MSPointerCancel"):(o.start="mousedown",o.end="mouseup",o.move="mousemove",o.cancel="mousecancel"),e.Event._GESTURE_MAP=o},"3.16.0",{requires:["node-base"]});
/*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/

YUI.add("event-move",function(e,t){var n=e.Event._GESTURE_MAP,r={start:n.start,end:n.end,move:n.move},i="start",s="move",o="end",u="gesture"+s,a=u+o,f=u+i,l="_msh",c="_mh",h="_meh",p="_dmsh",d="_dmh",v="_dmeh",m="_ms",g="_m",y="minTime",b="minDistance",w="preventDefault",E="button",S="ownerDocument",x="currentTarget",T="target",N="nodeType",C=e.config.win&&"msPointerEnabled"in e.config.win.navigator,k="msTouchActionCount",L="msInitTouchAction",A=function(t,n,r){var i=r?4:3,s=n.length>i?e.merge(n.splice(i,1)[0]):{};return w in s||(s[w]=t.PREVENT_DEFAULT),s},O=function(e,t){return t._extra.root||e.get(N)===9?e:e.get(S)},M=function(t){var n=t.getDOMNode();return t.compareTo(e.config.doc)&&n.documentElement?n.documentElement:!1},_=function(e,t,n){e.pageX=t.pageX,e.pageY=t.pageY,e.screenX=t.screenX,e.screenY=t.screenY,e.clientX=t.clientX,e.clientY=t.clientY,e[T]=e[T]||t[T],e[x]=e[x]||t[x],e[E]=n&&n[E]||1},D=function(t){var n=M(t)||t.getDOMNode(),r=t.getData(k);C&&(r||(r=0,t.setData(L,n.style.msTouchAction)),n.style.msTouchAction=e.Event._DEFAULT_TOUCH_ACTION,r++,t.setData(k,r))},P=function(e){var t=M(e)||e.getDOMNode(),n=e.getData(k),r=e.getData(L);C&&(n--,e.setData(k,n),n===0&&t.style.msTouchAction!==r&&(t.style.msTouchAction=r))},H=function(e,t){t&&(!t.call||t(e))&&e.preventDefault()},B=e.Event.define;e.Event._DEFAULT_TOUCH_ACTION="none",B(f,{on:function(e,t,n){D(e),t[l]=e.on(r[i],this._onStart,this,e,t,n)},delegate:function(e,t,n,s){var o=this;t[p]=e.delegate(r[i],function(r){o._onStart(r,e,t,n,!0)},s)},detachDelegate:function(e,t,n,r){var i=t[p];i&&(i.detach(),t[p]=null),P(e)},detach:function(e,t,n){var r=t[l];r&&(r.detach(),t[l]=null),P(e)},processArgs:function(e,t){var n=A(this,e,t);return y in n||(n[y]=this.MIN_TIME),b in n||(n[b]=this.MIN_DISTANCE),n},_onStart:function(t,n,i,u,a){a&&(n=t[x]);var f=i._extra,l=!0,c=f[y],h=f[b],p=f.button,d=f[w],v=O(n,i),m;t.touches?t.touches.length===1?_(t,t.touches[0],f):l=!1:l=p===undefined||p===t.button,l&&(H(t,d),c===0||h===0?this._start(t,n,u,f):(m=[t.pageX,t.pageY],c>0&&(f._ht=e.later(c,this,this._start,[t,n,u,f]),f._hme=v.on(r[o],e.bind(function(){this._cancel(f)},this))),h>0&&(f._hm=v.on(r[s],e.bind(function(e){(Math.abs(e.pageX-m[0])>h||Math.abs(e.pageY-m[1])>h)&&this._start(t,n,u,f)},this)))))},_cancel:function(e){e._ht&&(e._ht.cancel(),e._ht=null),e._hme&&(e._hme.detach(),e._hme=null),e._hm&&(e._hm.detach(),e._hm=null)},_start:function(e,t,n,r){r&&this._cancel(r),e.type=f,t.setData(m,e),n.fire(e)},MIN_TIME:0,MIN_DISTANCE:0,PREVENT_DEFAULT:!1}),B(u,{on:function(e,t,n){D(e);var i=O(e,t,r[s]),o=i.on(r[s],this._onMove,this,e,t,n);t[c]=o},delegate:function(e,t,n,i){var o=this;t[d]=e.delegate(r[s],function(r){o._onMove(r,e,t,n,!0)},i)},detach:function(e,t,n){var r=t[c];r&&(r.detach(),t[c]=null),P(e)},detachDelegate:function(e,t,n,r){var i=t[d];i&&(i.detach(),t[d]=null),P(e)},processArgs:function(e,t){return A(this,e,t)},_onMove:function(e,t,n,r,i){i&&(t=e[x]);var s=n._extra.standAlone||t.getData(m),o=n._extra.preventDefault;s&&(e.touches&&(e.touches.length===1?_(e,e.touches[0]):s=!1),s&&(H(e,o),e.type=u,r.fire(e)))},PREVENT_DEFAULT:!1}),B(a,{on:function(e,t,n){D(e);var i=O(e,t),s=i.on(r[o],this._onEnd,this,e,t,n);t[h]=s},delegate:function(e,t,n,i){var s=this;t[v]=e.delegate(r[o],function(r){s._onEnd(r,e,t,n,!0)},i)},detachDelegate:function(e,t,n,r){var i=t[v];i&&(i.detach(),t[v]=null),P(e)},detach:function(e,t,n){var r=t[h];r&&(r.detach(),t[h]=null),P(e)},processArgs:function(e,t){return A(this,e,t)},_onEnd:function(e,t,n,r,i){i&&(t=e[x]);var s=n._extra.standAlone||t.getData(g)||t.getData(m),o=n._extra.preventDefault;s&&(e.changedTouches&&(e.changedTouches.length===1?_(e,e.changedTouches[0]):s=!1),s&&(H(e,o),e.type=a,r.fire(e),t.clearData(m),t.clearData(g)))},PREVENT_DEFAULT:!1})},"3.16.0",{requires:["node-base","event-touch","event-synthetic"]});
/*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/

YUI.add("event-flick",function(e,t){var n=e.Event._GESTURE_MAP,r={start:n.start,end:n.end,move:n.move},i="start",s="end",o="move",u="ownerDocument",a="minVelocity",f="minDistance",l="preventDefault",c="_fs",h="_fsh",p="_feh",d="_fmh",v="nodeType";e.Event.define("flick",{on:function(e,t,n){var s=e.on(r[i],this._onStart,this,e,t,n);t[h]=s},detach:function(e,t,n){var r=t[h],i=t[p];r&&(r.detach(),t[h]=null),i&&(i.detach(),t[p]=null)},processArgs:function(t){var n=t.length>3?e.merge(t.splice(3,1)[0]):{};return a in n||(n[a]=this.MIN_VELOCITY),f in n||(n[f]=this.MIN_DISTANCE),l in n||(n[l]=this.PREVENT_DEFAULT),n},_onStart:function(t,n,i,a){var f=!0,l,h,m,g=i._extra.preventDefault,y=t;t.touches&&(f=t.touches.length===1,t=t.touches[0]),f&&(g&&(!g.call||g(t))&&y.preventDefault(),t.flick={time:(new Date).getTime()},i[c]=t,l=i[p],m=n.get(v)===9?n:n.get(u),l||(l=m.on(r[s],e.bind(this._onEnd,this),null,n,i,a),i[p]=l),i[d]=m.once(r[o],e.bind(this._onMove,this),null,n,i,a))},_onMove:function(e,t,n,r){var i=n[c];i&&i.flick&&(i.flick.time=(new Date).getTime())},_onEnd:function(e,t,n,r){var i=(new Date).getTime(),s=n[c],o=!!s,u=e,h,p,v,m,g,y,b,w,E=n[d];E&&(E.detach(),delete n[d]),o&&(e.changedTouches&&(e.changedTouches.length===1&&e.touches.length===0?u=e.changedTouches[0]:o=!1),o&&(m=n._extra,v=m[l],v&&(!v.call||v(e))&&e.preventDefault(),h=s.flick.time,i=(new Date).getTime(),p=i-h,g=[u.pageX-s.pageX,u.pageY-s.pageY],m.axis?w=m.axis:w=Math.abs(g[0])>=Math.abs(g[1])?"x":"y",y=g[w==="x"?0:1],b=p!==0?y/p:0,isFinite(b)&&Math.abs(y)>=m[f]&&Math.abs(b)>=m[a]&&(e.type="flick",e.flick={time:p,distance:y,velocity:b,axis:w,start:s},r.fire(e)),n[c]=null))},MIN_VELOCITY:0,MIN_DISTANCE:0,PREVENT_DEFAULT:!1})},"3.16.0",{requires:["node-base","event-touch","event-synthetic"]});
/*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/

YUI.add("event-valuechange",function(e,t){var n="_valuechange",r="value",i="nodeName",s,o={POLL_INTERVAL:50,TIMEOUT:1e4,_poll:function(t,r){var i=t._node,s=r.e,u=t._data&&t._data[n],a=0,f,l,c,h,p,d;if(!i||!u){o._stopPolling(t);return}l=u.prevVal,h=u.nodeName,u.isEditable?c=i.innerHTML:h==="input"||h==="textarea"?c=i.value:h==="select"&&(p=i.options[i.selectedIndex],c=p.value||p.text),c!==l&&(u.prevVal=c,f={_event:s,currentTarget:s&&s.currentTarget||t,newVal:c,prevVal:l,target:s&&s.target||t},e.Object.some(u.notifiers,function(e){var t=e.handle.evt,n;a!==1?e.fire(f):t.el===d&&e.fire(f),n=t&&t._facade?t._facade.stopped:0,n>a&&(a=n,a===1&&(d=t.el));if(a===2)return!0}),o._refreshTimeout(t))},_refreshTimeout:function(e,t){if(!e._node)return;var r=e.getData(n);o._stopTimeout(e),r.timeout=setTimeout(function(){o._stopPolling(e,t)},o.TIMEOUT)},_startPolling:function(t,s,u){var a,f;if(!t.test("input,textarea,select")&&!(f=o._isEditable(t)))return;a=t.getData(n),a||(a={nodeName:t.get(i).toLowerCase(),isEditable:f,prevVal:f?t.getDOMNode().innerHTML:t.get(r)},t.setData(n,a)),a.notifiers||(a.notifiers={});if(a.interval){if(!u.force){a.notifiers[e.stamp(s)]=s;return}o._stopPolling(t,s)}a.notifiers[e.stamp(s)]=s,a.interval=setInterval(function(){o._poll(t,u)},o.POLL_INTERVAL),o._refreshTimeout(t,s)},_stopPolling:function(t,r){if(!t._node)return;var i=t.getData(n)||{};clearInterval(i.interval),delete i.interval,o._stopTimeout(t),r?i.notifiers&&delete i.notifiers[e.stamp(r)]:i.notifiers={}},_stopTimeout:function(e){var t=e.getData(n)||{};clearTimeout(t.timeout),delete t.timeout},_isEditable:function(e){var t=e._node;return t.contentEditable==="true"||t.contentEditable===""},_onBlur:function(e,t){o._stopPolling(e.currentTarget,t)},_onFocus:function(e,t){var s=e.currentTarget,u=s.getData(n);u||(u={isEditable:o._isEditable(s),nodeName:s.get(i).toLowerCase()},s.setData(n,u)),u.prevVal=u.isEditable?s.getDOMNode().innerHTML:s.get(r),o._startPolling(s,t,{e:e})},_onKeyDown:function(e,t){o._startPolling(e.currentTarget,t,{e:e})},_onKeyUp:function(e,t){(e.charCode===229||e.charCode===197)&&o._startPolling(e.currentTarget,t,{e:e,force:!0})},_onMouseDown:function(e,t){o._startPolling(e.currentTarget,t,{e:e})},_onSubscribe:function(t,s,u,a){var f,l,c,h,p;l={blur:o._onBlur,focus:o._onFocus,keydown:o._onKeyDown,keyup:o._onKeyUp,mousedown:o._onMouseDown},f=u._valuechange={};if(a)f.delegated=!0,f.getNodes=function(){return h=t.all("input,textarea,select").filter(a),p=t.all('[contenteditable="true"],[contenteditable=""]').filter(a),h.concat(p)},f.getNodes().each(function(e){e.getData(n)||e.setData(n,{nodeName:e.get(i).toLowerCase(),isEditable:o._isEditable(e),prevVal:c?e.getDOMNode().innerHTML:e.get(r)})}),u._handles=e.delegate(l,t,a,null,u);else{c=o._isEditable(t);if(!t.test("input,textarea,select")&&!c)return;t.getData(n)||t.setData(n,{nodeName:t.get(i).toLowerCase(),isEditable:c,prevVal:c?t.getDOMNode().innerHTML:t.get(r)}),u._handles=t.on(l,null,null,u)}},_onUnsubscribe:function(e,t,n){var r=n._valuechange;n._handles&&n._handles.detach(),r.delegated?r.getNodes().each(function(e){o._stopPolling(e,n)}):o._stopPolling(e,n)}};s={detach:o._onUnsubscribe,on:o._onSubscribe,delegate:o._onSubscribe,detachDelegate:o._onUnsubscribe,publishConfig:{emitFacade:!0}},e.Event.define("valuechange",s),e.Event.define("valueChange",s),e.ValueChange=o},"3.16.0",{requires:["event-focus","event-synthetic"]});
/*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/

YUI.add("event-tap",function(e,t){function a(t,n){n=n||e.Object.values(u),e.Array.each(n,function(e){var n=t[e];n&&(n.detach(),t[e]=null)})}var n=e.config.doc,r=e.Event._GESTURE_MAP,i=r.start,s="tap",o=/pointer/i,u={START:"Y_TAP_ON_START_HANDLE",END:"Y_TAP_ON_END_HANDLE",CANCEL:"Y_TAP_ON_CANCEL_HANDLE"};e.Event.define(s,{publishConfig:{preventedFn:function(e){var t=e.target.once("click",function(e){e.preventDefault()});setTimeout(function(){t.detach()},100)}},processArgs:function(e,t){if(!t){var n=e[3];return e.splice(3,1),n}},on:function(e,t,n){t[u.START]=e.on(i,this._start,this,e,t,n)},detach:function(e,t,n){a(t)},delegate:function(t,n,r,s){n[u.START]=e.delegate(i,function(e){this._start(e,t,n,r,!0)},t,s,this)},detachDelegate:function(e,t,n){a(t)},_start:function(e,t,n,i,s){var a={canceled:!1,eventType:e.type},f=n.preventMouse||!1;if(e.button&&e.button===3)return;if(e.touches&&e.touches.length!==1)return;a.node=s?e.currentTarget:t,e.touches?a.startXY=[e.touches[0].pageX,e.touches[0].pageY]:a.startXY=[e.pageX,e.pageY],e.touches?(n[u.END]=t.once("touchend",this._end,this,t,n,i,s,a),n[u.CANCEL]=t.once("touchcancel",this.detach,this,t,n,i,s,a),n.preventMouse=!0):a.eventType.indexOf("mouse")!==-1&&!f?(n[u.END]=t.once("mouseup",this._end,this,t,n,i,s,a),n[u.CANCEL]=t.once("mousecancel",this.detach,this,t,n,i,s,a)):a.eventType.indexOf("mouse")!==-1&&f?n.preventMouse=!1:o.test(a.eventType)&&(n[u.END]=t.once(r.end,this._end,this,t,n,i,s,a),n[u.CANCEL]=t.once(r.cancel,this.detach,this,t,n,i,s,a))},_end:function(e,t,n,r,i,o){var f=o.startXY,l,c,h=15;n._extra&&n._extra.sensitivity>=0&&(h=n._extra.sensitivity),e.changedTouches?(l=[e.changedTouches[0].pageX,e.changedTouches[0].pageY],c=[e.changedTouches[0].clientX,e.changedTouches[0].clientY]):(l=[e.pageX,e.pageY],c=[e.clientX,e.clientY]),Math.abs(l[0]-f[0])<=h&&Math.abs(l[1]-f[1])<=h&&(e.type=s,e.pageX=l[0],e.pageY=l[1],e.clientX=c[0],e.clientY=c[1],e.currentTarget=o.node,r.fire(e)),a(n,[u.END,u.CANCEL])}})},"3.16.0",{requires:["node-base","event-base","event-touch","event-synthetic"]});
YUI.add("better-throttle",function(t){"use strict";t.betterThrottle=function(e,n,r,i){function u(){o&&(o.cancel(),o=void 0)}function l(){u(),e.apply(r,arguments)}var a,o;return a=0,r=r||null,function(){var e=(new Date).getTime();if(i)u();else if(e-a>n)return a=e,void l.apply(r,arguments);o||(o=t.later(n,r,l,arguments))}}},"@VERSION@",{requires:["yui-later"]});YUI.add("global-events",function(e){"use strict";var t={"window:click":{type:"click",target:window},"window:resize":{type:"resize",target:window,throttle:100},"window:scroll":{type:"scroll",target:window,throttle:100},"window:scroll:nothrottle":{type:"scroll",target:window,throttle:0},"window:keydown":{type:"keydown",target:window,throttle:0},"window:blur":{type:"blur",target:window,throttle:0},"document:fullscreenchange":{type:"onfullscreenchange"in document?"fullscreenchange":"onwebkitfullscreenchange"in document?"webkitfullscreenchange":"onmozfullscreenchange"in document?"mozfullscreenchange":"onmsfullscreenchange"in document?"MSFullscreenChange":void 0,target:document}},n={};e.globalEvents={subscribe:function(o,r){var l,c=t[o];if(c)return c.bound||((function(t){t in e.Node.DOM_EVENTS||(e.Node.DOM_EVENTS[t]=null)})(c.type),c.throttle?c.handle=e.one(c.target).on(c.type,e.betterThrottle(function(t){e.fire(o,{e:t})},c.throttle)):c.handle=e.one(c.target).on(c.type,function(t){e.fire(o,{e:t})}),n[o]=[],c.bound=!0),l=e.on(o,r),l.origDetach=l.detach,l.detach=function(){this.detach=this.origDetach,delete this.origDetach,e.globalEvents.unsubscribe(this)}.bind(l),n[o].push(l),l;throw new Error("global event name: '"+o+"' does not exist")},unsubscribe:function(e){var o=e.evt.type,r=n[o].indexOf(e);e.origDetach&&(e.detach=e.origDetach),-1!==r&&(e.detach(),n[o].splice(r,1),0===n[o].length&&(t[o].handle.detach(),t[o].bound=!1))}}},"@VERSION@",{requires:["event","node","better-throttle"],affinity:"client"});"undefined"!=typeof YAHOO&&YAHOO||(YAHOO={}),YAHOO.i13n=YAHOO.i13n||{},YAHOO.i13n.EventTypes=(function(){function e(e,t,n){this.yqlid=e,this.eventName=t,this.spaceidPrefix=n}var t="richview";e.prototype={getYQLID:function(){return this.yqlid},getEventName:function(){return this.eventName}};var n={pageview:new e("pv","pageview",""),simple:new e("lv","event","P"),linkview:new e("lv","linkview","P"),richview:new e(t,t,"R"),contentmodification:new e(t,"contentmodification","R"),dwell:new e("lv","dwell","D")};return{getEventByName:function(e){return n[e]}}})(),YAHOO.i13n.Rapid=function(e){function t(){}function n(e){this.map={},this.count=0,e&&this.absorb(e)}function r(){this.map={},this.count=0}function i(e,t){if(!e)return null;null===t&&(t=!1);var n=new r,i=L.getAttribute(e,L.data_action_outcome);i&&n.set("outcm",i);var o=L.getAttribute(e,"data-ylk");if(null===o||0===o.length)return n;for(var a=o.split(L.ylk_pair_delim),s=0,l=a.length;l>s;s++){var c=a[s].split(L.ylk_kv_delim);if(2===c.length){var u=c[0],d=c[1];null!==u&&""!==u&&null!==d&&(d.length>L.MAX_VALUE_LENGTH&&(d=d.substring(0,L.MAX_VALUE_LENGTH)),u.length<=8&&d.length<=L.MAX_VALUE_LENGTH&&("_p"!==u||t)&&n.set(u,d))}}return n}function o(t){var n=(YAHOO.i13n,YAHOO.i13n.TEST_ID||t.test_id),r=t.location||document.location.href;(function(t,n){O.set("A_sid",YAHOO.i13n.A_SID||L.rand()),O.set("_w",L.rmProto(n).substring(0,L.MAX_VALUE_LENGTH)),t?O.absorb(t):e.keys&&O.absorb(e.keys)})(t.keys,r),n&&(n=L.norm(""+n));var i=t.override||{},o={override:i,version:"3.39.1",keys:O,referrer:t.referrer,getReferrer:function(){return L.norm(L.clref(void 0!==this.referrer?this.referrer:document.referrer))},spaceid:L.norm(i.spaceid||YAHOO.i13n.SPACEID||t.spaceid),yrid:L.norm(t.yrid||""),oo:t.oo?"1":"0",nol:t.nol?"1":"0",yql_enabled:!1!==t.yql_enabled,fing:1==t.use_fing,USE_RAPID:!1!==t.use_rapid,linktrack_attribut:t.lt_attr||"text",tracked_mods:t.tracked_mods||[],tracked_mods_viewability:t.tracked_mods_viewability||[],viewability:t.viewability||!1,viewability_time:t.viewability_time||300,viewability_px:t.viewability_px||50,lt_attr:t.lt_attr||"text",client_only:t.client_only,text_link_len:t.text_link_len||-1,test_id:n,yql_host:t.yql_host||"geo.query.yahoo.com",yql_path:t.yql_path||"/v1/public/yql",click_timeout:t.click_timeout||1e4,compr_timeout:t.compr_timeout||700,compr_on:!1!==t.compr_on,compr_type:t.compr_type||"deflate",webworker_file:YAHOO.i13n.WEBWORKER_FILE||t.webworker_file||"rapidworker-1.2.js",nofollow_classname:t.nofollow_class||"rapidnofollow",no_click_listen:t.rapid_noclick_resp||"rapid-noclick-resp",nonanchor_track_class:t.nonanchor_track_class||"rapid-nonanchor-lt",anc_pos_attr:"data-rapid_p",anc_v9y_attr:"data-v9y",deb:!0===t.debug,ldbg:t.ldbg>0||r.indexOf("yhldebug=1")>0,addmod_timeout:t.addmodules_timeout||300,ult_token_capture:"boolean"==typeof t.ult_token_capture&&t.ult_token_capture,track_type:t.track_type||"data-tracktype",dwell_on:!0===t.dwell_on,prerender:!0===t.prerender,query_parameters:!0===t.query_parameters,async_all_clicks:!0===t.async_all_clicks,click_postmsg:t.click_postmsg||{},apv:!1!==t.apv,apv_time:t.apv_time||500,apv_px:t.apv_px||500,apv_always_send:!0===t.apv_always_send,ex:!0===t.ex,persist_asid:!0===t.persist_asid,track_right_click:!0===t.track_right_click,gen_bcookie:!0===t.gen_bcookie,skip_attr:t.skip_attr||"data-rapid-skip",parse_dom:!0===t.parse_dom,pageview_on_init:!1!==t.pageview_on_init,perf_navigationtime:t.perf_navigationtime||0,perf_commontime:t.perf_commontime||null,perf_usertime:t.perf_usertime||null,perf_resourcetime:t.perf_resourcetime||0,sample:t.sample||{},loc:r,fpc:!0===t.fpc,extendbcookie:!0===t.extendbcookie},a=1*o.compr_timeout;return L.isNum(a)?o.compr_timeout=(function(e,t,n){return t>e?t:e>n?n:e})(a,300,700):o.compr_timeout=700,o.ldbg&&1e4!=o.click_timeout&&s("Click timeout set to "+o.click_timeout+"ms (default 10000ms)"),t.apv_callback&&"function"==typeof t.apv_callback?o.apv_callback=t.apv_callback:o.apv_callback=null,o}function a(){O.set("A_sid",L.rand())}function s(e){P.ldbg&&console.warn("RAPID WARNING: "+e)}function l(e){P.ldbg&&console.error("RAPID ERROR: "+e)}function c(e){P.ldbg&&console.log("Rapid-"+P.version+"("+(new Date).getTime()+"):"+e)}function u(){var e=document.cookie;if(this.cookieMap={},/[^=]+=[^=;]?(?:; [^=]+=[^=]?)?/.test(e))for(var t=e.split(/;\s/g),n=null,r=null,i=null,o=0,a=t.length;a>o;o++){if((i=t[o].match(/([^=]+)=/i))instanceof Array)try{n=L.dec(i[1]),r=L.dec(t[o].substring(i[1].length+1))}catch(e){l(e)}else n=L.dec(t[o]),r=n;"B"!==n&&"BX"!==n&&"TT"!==n&&"D"!==n&&"_ga"!==n&&"yx"!==n&&"rxx"!==n||(this.cookieMap[n]=r)}L.clearCookie("rx","/",L.isIE?document.domain:"")}function d(){var e=null,t=null;return e=(new Date).valueOf().toString(),t=e.length,{ts:e.substr(0,t-3),ms:e.substr(t-3)}}function f(e,t,n,r){var i=new Date,o="";i.setTime(i.getTime()+1e3*n),o="; expires="+i.toGMTString();var a="";r&&(a=";domain="+r);var s=e+"="+t+o+a+"; path=/";document.cookie=s}function p(e,t,n,r,o,a,s){var l="",c=null,u=!s||L.isAboveFold(r),d={viewable:u,data:{sec:t,_p:n}};return s&&L.aug(d.data,{A_lv:1}),a?(d.data.slk=o||"section",c=i(r)):(r.setAttribute(P.anc_pos_attr,n),s&&r.setAttribute(P.anc_v9y_attr,u?"1":"0"),(l=L.getLT(r,e))&&""!==l?c=i(r):l="_ELINK_",d.data.slk=o||l),null!==c&&L.aug(d.data,c.getAll()),d}function m(e){return"input"===e.nodeName.toLowerCase()&&"submit"===L.getAttribute(e,"type")}function v(e,t){var n=_(e,t);V=n,n&&(e.ctrlKey||e.metaKey||H&&H.stop_dwell()&&(n.pp={etag:"dwell,stop",usergenf:1,A_prets:X?X.ts:null,A_prems:X?X.ms:null},H.destroy()),I.sendClick(n))}function g(e,t,n,r){n=n||{};var i=null;return e?(i=YAHOO.i13n.EventTypes.getEventByName(e),n._E=i.getEventName(),t=n._E):n._E=t||"_",r&&(n.outcm=r),{type:i,name:t,data:n,outcome:r}}function _(e,t){e=e||event;for(var n=L.getTarget(e),r="button",o="",a=!1,s=null;n&&(o=n.nodeName.toLowerCase())&&"a"!==o&&o!==r&&!m(n)&&!L.hasClass(n,P.nonanchor_track_class);)n=n.parentNode;if(!n||L.hasClass(n,P.no_click_listen))return 0;if(L.hasClass(n,P.nonanchor_track_class)){s={pos:0,sec:t.moduleName,slk:"_"};var l=i(n,1);l&&L.aug(s,l.getAll())}else{var c=L.getAttribute(n,P.anc_pos_attr);if(!(s=t.getLinkAtPos(c)))return 0;s=s.data,"input"===o||o===r||(function(e,t,n){var r=L.getAttribute;return t.target&&"_blank"===t.target.toLowerCase()||2===e.which||4===e.button||e.altKey||e.ctrlKey||e.shiftKey||e.metaKey||"on"===r(t,"data-nofollow")||r(t,"href")&&"javascript:"===r(t,"href").substr(0,11).toLowerCase()||L.hasClass(t,P.nofollow_classname)||L.hasClass(n,P.nofollow_classname)})(e,n,t.moduleElement)||(a=!0)}if(!s.tar){var u=L.getAttribute(n,"href");u&&(s.tar=L.extDomain(u)),u&&s.tar||(s.tar=L.extDomain(P.loc))}s.tar_uri||(n.pathname?s.tar_uri=n.pathname.substring(0,L.MAX_VALUE_LENGTH):s.tar_uri="");var d=t.moduleYLK;if(d){var f=d.getAll();L.aug(s,f,function(e){return!(e in s)})}return s.A_xy=L.xy(e),s.A_sr=L.sr(),"contextmenu"==e.type&&(s.A_cl=3,a=!1),{data:s,event:e,moduleElement:t.moduleElement,targetElement:n,synch:a,hasTargetTop:n&&n.target&&"_top"===n.target.toLowerCase()}}function h(e,t,n){t||(t=document);for(var r=e.split(","),i=[],o=0,a=r.length;a>o;o++)for(var s=t.getElementsByTagName(r[o]),l=0,c=s.length;c>l;l++){var u=s[l];n&&!n.call(0,u)||i.push(u)}var d=i[0];return d?(d.sourceIndex?i.sort(function(e,t){return e.sourceIndex-t.sourceIndex}):d.compareDocumentPosition&&i.sort(function(e,t){return 3-(6&e.compareDocumentPosition(t))}),i):[]}function w(e,t,n,r){t||(t=document);var i=e.split(",");n=n||[];var o=t.childNodes;if("true"!==L.getAttribute(t,P.skip_attr))for(var a=0,s=o.length;s>a;a++){var l=o[a];L.isTagOfInterest(l,i)&&(r&&!r.call(0,l)||n.push(l)),"true"!==L.getAttribute(l,P.skip_attr)?w(e,l,n,r):"true"===L.getAttribute(l,P.skip_attr)&&n.push(l)}var c=n[0];return c?(c.sourceIndex?n.sort(function(e,t){return e.sourceIndex-t.sourceIndex}):c.compareDocumentPosition&&n.sort(function(e,t){return 3-(6&e.compareDocumentPosition(t))}),n):[]}function y(e,t,n){function r(t,r){var o=[];r=r||1;for(var s=0,l=t.length;l>s;s++)if("div"===t[s].tagName.toLowerCase()){var c=t[s],f=i(c),v=p(m,u.map.sec||e,1,c,f.map.slk||u.map.slk,!0,n);d[0]=v,o.push(v)}else{var g=t[s],v=p(m,u.map.sec||e,r,g,u.map.slk,0,n);d[r-1]=v,o.push(v),r++}if("true"===L.getAttribute(a,P.skip_attr)){v=p(m,u.map.sec||e,1,c,u.map.slk,!0,n);d[0]=v,o.push(v)}return o}function o(e){return!L.getAttribute(e,P.anc_pos_attr)}var a=document.getElementById(t),l="a,button,input";if(!a)return s("Specified module not in DOM: "+t),null;var u=i(a),d=[],f=P.parse_dom?w(l,a):h(l,a),m=(function(e,t){return L.hasClass(e,"rapid_track_href")?"href":L.hasClass(e,"rapid_track_text")?"text":L.hasClass(e,"rapid_track_title")?"title":L.hasClass(e,"rapid_track_id")?"id":t})(a,P.lt_attr),g=f.length,_=L.getAttribute(a,P.track_type);r(f);var y={useViewability:n,moduleYLK:u,links:d,moduleName:e,trackType:_,moduleElement:a,refreshModule:function(e,t,i,a){a.isRefreshed=!0;var s=P.parse_dom?w(l,L.$(e),null,o):h(l,L.$(e),o);if(!0===t||s.length>0){var u=r(s,g+1);g+=s.length;var d=s.length;if(n){d=0;for(var f=0,p=u.length;p>f;f++)u[f].viewable&&d++}if((!0===t||d>0)&&(P.USE_RAPID||a.event)){var m={};L.aug(m,this),m.links=i?u:[],(!0===t||i)&&I.sendRefreshedContent(m,t,a)}}else L.ldbg&&c("refreshModule("+e+") - no new links.");!0===t&&P.apv&&N&&N.reInit()},reevaluateViewableLinks:function(){var t=d.length,n=h("a",this.moduleElement,(function(t){return function(n){if(!L.getAttribute(n,P.anc_pos_attr)){t++,n.setAttribute(P.anc_pos_attr,t);var r=p(m,u.map.sec||e,t,n,u.map.slk,0,!1);d[t-1]=r}return!("1"===L.getAttribute(n,P.anc_v9y_attr)||!L.isAboveFold(n))&&(n.setAttribute(P.anc_v9y_attr,"1"),!0)}})(t));if(0!==n.length&&P.USE_RAPID){var r=(function(t){for(var n=[],r=0,i=t.length;i>r;r++){var o=t[r],a=L.getAttribute(o,P.anc_pos_attr),s=p(m,u.map.sec||e,a,o,u.map.slk,0,!0);n.push(s)}return n})(n),i={};L.aug(i,this),i.links=r,I.sendRefreshedContent(i,!1,{})}},removeHandlers:function(){L.rmEvent(a,"click",b),P.track_right_click&&L.rmEvent(a,"contextmenu",b)},getLinkAtPos:function(e){return e>d.length?null:d[e-1]},identifier:t},b=function(e){v(e,y)};return L.addEvent(a,"click",b),P.track_right_click&&L.addEvent(a,"contextmenu",b),y}function b(e,t,n){P.ldbg&&c("beaconPageview called, pp="+L.fData(e)),t&&!P.persist_asid&&a(),(P.USE_RAPID||P.apv_always_send&&L.hasOwn(e,"A_apv"))&&I.sendRapidNoDelay([],!0,e,null,n),P.apv&&null!=N&&N.reInit()}function k(e,t,n,r){P.ldbg&&c('beaconEvent: event="'+e+'" data='+L.fData(t)+" outcome="+n);var i=g(0,e,t,n);I.sendEvents(i,r)}function A(){var e=null,t=lastApvTime=(new Date).getTime(),n=L.getScrollY(),r=-1,i=function(){var e=L.getScrollY(),t=-1===r?e-n:e-r,i=t>0?0:1;if(Math.abs(t)>P.apv_px){b({A_apv:1,A_apx:e,A_asd:i},!1,!0),r=e,lastApvTime=(new Date).getTime(),P.apv_callback&&P.apv_callback.call(this,{pixel_pos:e,scroll_dir:i})}},o=function(){null!=e&&clearTimeout(e);var r=(new Date).getTime();r-t<P.apv_time&&(n=L.getScrollY(),lastApvTime=r),e=setTimeout(function(){i()},P.apv_time)};L.addEvent(window,"scroll",o),this.reInit=function(){n=L.getScrollY(),r=-1,t=lastApvTime=(new Date).getTime()},this.destroy=function(){L.rmEvent(window,"scroll",o)}}function E(){var e={focus:{state:"start",etrg:"show",etag:"dwell,start",jse:"window.focus"},pageshow:{state:"start",etrg:"show",etag:"dwell,start",jse:"window.pageshow"},"visibilitychange-visible":{state:"start",etrg:"show",etag:"dwell,start",jse:"document.visibilitychange"},blur:{state:"stop",etrg:"hide",etag:"dwell,stop",jse:"window.blur"},pagehide:{state:"stop",etrg:"hide",etag:"dwell,stop",jse:"window.pagehide"},"visibilitychange-hidden":{state:"stop",etrg:"hide",etag:"dwell,stop",jse:"document.visibilitychange"},beforeunload:{state:"stop",etrg:"close",etag:"dwell,stop",jse:"window.beforeunload"}},t="start";X=d();var n,r;void 0!==document.hidden?(n="hidden",r="visibilitychange"):void 0!==document.mozHidden?(n="mozHidden",r="mozvisibilitychange"):void 0!==document.msHidden?(n="msHidden",r="msvisibilitychange"):void 0!==document.webkitHidden&&(n="webkitHidden",r="webkitvisibilitychange");var i=function(i){var o="",a=i.type;if(i.type==r&&(a=document[n]?"visibilitychange-hidden":"visibilitychange-visible"),L.hasOwn(e,a)&&(o=e[a].state),0!=o.length){if(t==o)return void c("dwell: -- state already "+t+" (event="+a+")");t=o;var s=e[a];c("dwell: change state to "+t+" (event="+a+")");var l={etrg:s.etrg,outcm:"window",usergenf:1,etag:s.etag,A_jse:s.jse};"start"===t&&(X=d(),null!=G&&(l.A_prets=G.ts,l.A_prems=G.ms)),"stop"===t&&(G=d(),null!=X&&(l.A_prets=X.ts,l.A_prems=X.ms)),k("dwell",l,"")}};for(var o in e)e.hasOwnProperty(o)&&L.addEvent(window,o,i);L.addEvent(window,r,i),this.set_state=function(e){t=e},this.start_dwell=function(){return"start"===t?(c("dwell: -- state already "+t),!1):(t="start",X=d(),!0)},this.stop_dwell=function(){return"stop"===t?(c("dwell: -- state already "+t),!1):(t="stop",G=d(),!0)},this.destroy=function(){for(var t in e)e.hasOwnProperty(t)&&L.rmEvent(window,t,i);L.rmEvent(window,r,i)}}function T(e,t){if(window.performance&&window.performance.timing){var r=e?e.perf_navigationtime||0:P.perf_navigationtime||0,i=e?e.perf_resourcetime||0:P.perf_resourcetime||0,o=e?e.perf_commontime||null:P.perf_commontime||null,a=e?e.perf_usertime||null:P.perf_usertime||null;if(!(1>r&&1>i)||o||a){var s=L.hasOwn(P.sample,"perf_navigationtime")?P.sample.perf_navigationtime:100,l=L.hasOwn(P.sample,"perf_resourcetime")?P.sample.perf_resourcetime:100,c=L.samplingSuccess(s),u=L.samplingSuccess(l);if(c||u){if(0===window.performance.timing.loadEventStart){if((j+=10)>200)return;return void setTimeout(function(){T(e,t)},10)}var d=new n(C(r,i,o,a,c,u));"object"==typeof t&&d.absorb(t);var f=g(0,"pageperf",d.getAll(),"");I.sendEvents(f)}}}}function C(e,t,n,r,i,o){var a={},s=window.performance.timing;if(i&&e>0&&(S(s.responseStart,s.connectEnd,a,"A_pfb"),S(s.responseEnd,s.responseStart,a,"A_pbp"),S(s.responseEnd,s.requestStart,a,"A_psr"),S(s.loadEventStart,s.navigationStart,a,"A_pol"),S(s.domInteractive,s.navigationStart,a,"A_pdi")),i&&e>1&&(S(s.redirectEnd,s.redirectStart,a,"A_prd"),S(s.domainLookupEnd,s.domainLookupStart,a,"A_pdl"),S(s.connectEnd,s.secureConnectionStart,a,"A_psh"),S(s.connectEnd,s.connectStart,a,"A_psc"),S(s.loadEventStart,s.responseEnd,a,"A_pfe")),o&&t>0&&void 0!==window.performance.getEntries){var l=[],c=window.performance.getEntries();c.sort(function(e,t){return e.duration>t.duration?-1:e.duration<t.duration?1:0});for(var u=c.slice(0,10),d=u.length,f=0;d>f;f++){var p={},m=u[f].name.replace(/\?.+$/,"");m=m.replace(/^.+\//,""),p.name=m,p.dur=Math.floor(u[f].duration),p.st=Math.floor(u[f].startTime),l.push(p)}a.A_res=L.sfy(l)}if(n&&(L.hasOwn(n,"initialPageLoad")&&(a.A_cmi=L.sfy(n.initialPageLoad)),L.hasOwn(n,"afterPageLoad")&&(a.A_cma=L.sfy(n.afterPageLoad))),r)for(var v=["utm"],f=0;f<v.length;f++)L.hasOwn(r,v[f])&&(a.A_utm=L.sfy(r[v[f]]));return a.etrg="backgroundPost",a.outcm="performance",a.usergenf=0,a.etag="performance",a}function S(e,t,n,r){if(e&&t){var i=e-t;n[r]=i}}function x(e){var t=navigator.userAgent,n=Object.prototype,r=t.match(/MSIE\s[^;]*/)||t.match(/Trident\/[^;]*/)?1:0,i=/KHTML/.test(t)?1:0,o=null!==t.match(/(iPhone|iPad|iPod)/gi),a=(t.indexOf("Android"),o&&null!==t.match(/AppleWebKit/)),s=null!==t.match(/AppleWebKit/)&&null===t.match(/Chrome/),c=new RegExp(/\ufeff|\uffef|[\u0000-\u001f]|[\ue000-\uf8ff]/g),d=new RegExp(/[\u007f-\u00a0]|\s{2,}/g),f="http://",p="https://",m="class",v=" ",g=-1,_=-1,h="https:"===window.location.protocol;return r&&(document.documentMode?_=document.documentMode:(_=5,document.compatMode&&"CSS1Compat"==document.compatMode&&(_=7))),{$:function(e){return document.getElementById(e)},ca:"%01",cb:"%02",cc:"%03",cd:"%04",ce:"%05",cf:"%06",cg:"%07",ch:"%08",ylk_kv_delim:e.ylk_kv_delim||":",ylk_pair_delim:e.ylk_pair_delim||";",DATA_ACTION:"data-action",data_action_outcome:"data-action-outcome",isIE:r,isIOSSafari:a,isSafari:s,isWebkit:i,ieV:_,MAX_VALUE_LENGTH:e.max_value_length||300,value_len_whitelist:["A_res","A_cmi","A_cma","A_utm"],hasOwn:function(e,t){return n.hasOwnProperty.call(e,t)},enc:encodeURIComponent,dec:decodeURIComponent,getQueryStringValue:function(e,t){return decodeURIComponent(e.replace(new RegExp("^(?:.*[&\\?]"+encodeURIComponent(t).replace(/[\.\+\*]/g,"\\$&")+"(?:\\=([^&]*))?)?.*$","i"),"$1"))},curProto:function(){return h?p:f},isSecure:function(){return h},isScrollHorizontalVisible:function(){return document.documentElement.scrollWidth>document.documentElement.clientWidth},getCompStyle:function(e,t){return void 0!==window.getComputedStyle?window.getComputedStyle(e,t):(this.el=e,this.getPropertyValue=function(t){var n=/(\-([a-z]){1})/g;return"float"==t&&(t="styleFloat"),n.test(t)&&(t=t.replace(n,function(){return arguments[2].toUpperCase()})),e.currentStyle[t]?e.currentStyle[t]:0},this)},getBorder:function(e,t){if(!e||!t)return 0;var n=parseInt(this.getCompStyle(e,null).getPropertyValue(t),10);return isNaN(n)&&(n=0),n},getElementHeight:function(e){if(!e)return 0;var t=e.offsetHeight||0;return t?t-this.getBorder(e,"border-top-width")-this.getBorder(e,"border-bottom-width"):0},getPositionTop:function(e){for(var t=0;e;)t+=e.offsetTop,e=e.offsetParent;return t},getScrollbarWidthHeight:function(){var e=this.make("div");e.style.overflow="scroll",e.style.visibility="hidden",e.style.position="absolute",e.style.width="100px",e.style.height="100px",document.body.appendChild(e);var t={width:e.offsetWidth-e.clientWidth,height:e.offsetHeight-e.clientHeight};return this.rmBodyEl(e),t},isAboveFold:function(e){if(r&&7>=_)return!0;var t=L.getCompStyle(e);if("hidden"==t.visibility||"none"==t.display)return!1;var n=e.getBoundingClientRect(),i=.5*this.getElementHeight(e);if(n.top+i<0)return!1;var o=window.innerHeight||document.documentElement.clientHeight;if(this.isScrollHorizontalVisible()){o-=this.getScrollbarWidthHeight().height}return n.bottom-i<=o||void 0},strip:function(e){for(var t={"/":"P",";":"1","?":"P","&":"1","#":"P"},n={url:e,clean:"",cookie:"",keys:[]},r=0;-1!==e.indexOf("_yl",r);){var i=e.indexOf("_yl",r);if(i>r&&(n.clean+=e.slice(r,i-1)),r=i+3,t[e.charAt(i-1)]&&"="===e.charAt(i+4)){n.ult=1;var o="_yl"+e.charAt(i+3),a="";for(i+=5;i<e.length&&!t[e.charAt(i)];i++)a+=e.charAt(i);n.keys.push(o),n[o]=a,"_ylv"!==o&&(n.cookie+="&"+o+"="+a),t[e.charAt(i)]&&"P"===t[e.charAt(i)]&&(n.clean+=e.charAt(i)),r=i+1}else n.clean+=e.slice(i-1,r)}return n.ult&&(n.cookie=n.cookie.substr(1),n.clean+=e.substr(r),n._ylv),n},prevDef:function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},appBodyEl:function(e){document.body.appendChild(e)},rmBodyEl:function(e){document.body.removeChild(e)},sa:function(e,t,n){e.setAttribute(t,n)},getScrollY:function(){return void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop},make:function(e,t){var n=document.createElement(e);if(t&&this.isObj(t))for(var r in t)this.sa(n,r,t[r]);return n},getXHR:function(){var e=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}];return(function(){for(var t=!1,n=e.length,r=0;n>r;r++){try{t=e[r]()}catch(e){continue}break}return t})()},hasLS:function(){try{return"localStorage"in window&&null!==window.localStorage}catch(e){return!1}},hasCORS:function(){return!(r&&10>_)&&("withCredentials"in new XMLHttpRequest||"undefined"!=typeof XDomainRequest)},hasWorkers:function(){return!!window.Worker},clearCookie:function(e,t,n){t=t||"/",n=n||"",document.cookie=e+"= ; path="+t+"; Expires=Thu, 01 Jan 1970 00:00:00 GMT; Domain="+n+";"},uniqConcat:function(e,t,n){function r(e){for(var t=0,r=e.length;r>t;t++){var a=e[t];if(a){var s=n(a);o[s]||(o[s]=1,i.push(a))}}}var i=[],o={};return r(e),r(t),i},trim:function(e){return e?e.replace(/^\s\s*/,"").replace(/\s\s*$/,""):e},extDomain:function(e){var t=e.match(/^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i);return t&&t[1]},getAttribute:function(e,t){var n="";return document.documentElement.hasAttribute||t!==m||(t="className"),e&&e.getAttribute&&(n=e.getAttribute(t,2)),n},isDate:function(e){return"[object Date]"===n.toString.call(e)},isArr:function(e){return"[object Array]"===n.toString.apply(e)},isStr:function(e){return"string"==typeof e},isNum:function(e){return"number"==typeof e&&isFinite(e)},isNumeric:function(e){return e-0==e&&(e+"").replace(/^\s+|\s+$/g,"").length>0},isObj:function(e){return e&&"object"==typeof e},rTN:function(e){try{if(e&&3===e.nodeType)return e.parentNode}catch(e){l(e)}return e},getTarget:function(e){var t=e.target||e.srcElement;return t&&!t.nodeName&&(t=t.correspondingUseElement&&t.correspondingUseElement.parentNode?t.correspondingUseElement.parentNode:null),this.rTN(t)},addEvent:function(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n)},rmEvent:function(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent&&e.detachEvent("on"+t,n)},aug:function(e,t,n){if(t)for(var r in t)if(this.hasOwn(t,r)){if(n&&!n.call(null,r,t[r]))continue;e[r]=t[r]}},rmProto:function(e){return e?e.substr(0,7)===f?e.substr(7,e.length):e.substr(0,8)===p?e.substr(8,e.length):e:""},norm:function(e){return null===e?"":(e=""+e,this.trim(e.replace(d," ").replace(c,"")))},_hasClass:function(e,t){var n,r=!1;return e&&t&&(n=this.getAttribute(e,m)||"",r=t.exec?t.test(n):t&&(v+n+v).indexOf(v+t+v)>-1),r},hasClass:function(e,t){if(this.isArr(t)){for(var n=0,r=t.length;r>n;n++)if(this._hasClass(e,t[n]))return!0;return!1}return!!this.isStr(t)&&this._hasClass(e,t)},quote:function(e){var t=/["\\\x00-\x1f\x7f-\x9f]/g,n={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};if(e.match(t)){return'"'+e.replace(t,function(e){var t=n[e];return"string"==typeof t?t:(t=e.charCodeAt(),"\\u00"+Math.floor(t/16).toString(16)+(e%16).toString(16))})+'"'}return'"'+e+'"'},sfy:function(e){if(!e&&""!==e)return{};var t,n=typeof e;if("undefined"===n)return"undefined";if("number"===n||"boolean"===n)return""+e;if("string"===n)return this.quote(e);if("function"==typeof e.toJSON)return this.sfy(e.toJSON());if(this.isDate(e)){var r=e.getUTCMonth()+1,i=e.getUTCDate(),o=e.getUTCFullYear(),a=e.getUTCHours(),s=e.getUTCMinutes(),l=e.getUTCSeconds(),c=e.getUTCMilliseconds();return 10>r&&(r="0"+r),10>i&&(i="0"+i),10>a&&(a="0"+a),10>s&&(s="0"+s),10>l&&(l="0"+l),100>c&&(c="0"+c),10>c&&(c="0"+c),'"'+o+"-"+r+"-"+i+"T"+a+":"+s+":"+l+"."+c+'Z"'}if(t=[],this.isArr(e)){for(var u=0,d=e.length;d>u;u++)t.push(this.sfy(e[u]));return"["+t.join(",")+"]"}if("object"===n){for(var f in e)if(this.hasOwn(e,f)){var p=typeof f,m=null;if("string"===p)m=this.quote(f);else{if("number"!==p)continue;m='"'+f+'"'}if("function"!=(p=typeof e[f])&&"undefined"!==p){var v="";v=null===e[f]?'""':0===e[f]?0:this.sfy(e[f]),t.push(m+":"+v)}}return"{"+t.join(",")+"}"}},toJSON:(function(){var e=null;return function(t){return e||(e="object"==typeof JSON&&JSON.stringify&&6!==_&&7!==_&&8!==_?JSON.stringify:this.sfy),e.call(this,t)}})(),executeOnLoad:function(e){var t=!1,n=function(n){(document.addEventListener||n&&"load"===n.type||"complete"===document.readyState)&&(t=!0,r(),e.call(this))},r=function(){document.addEventListener?(document.removeEventListener("DOMContentLoaded",n,!1),window.removeEventListener("load",n,!1)):(document.detachEvent("onreadystatechange",n),window.detachEvent("onload",n))};if("complete"===document.readyState)setTimeout(n);else if(document.addEventListener)document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1);else{document.attachEvent("onreadystatechange",n),window.attachEvent("onload",n);var i=!1;try{i=null==window.frameElement&&document.documentElement}catch(e){}i&&i.doScroll&&(function n(){if(!t){try{i.doScroll("left")}catch(e){return setTimeout(n,50)}r(),e.call(this)}})()}},getLinkContent:function(e){for(var t,n=0,r="";(t=e.childNodes[n])&&t;n++)1===t.nodeType&&("img"===t.nodeName.toLowerCase()&&(r+=(this.getAttribute(t,"alt")||"")+" "),r+=this.getLinkContent(t));return r},fData:function(e){return this.isStr(e)?e:this.toJSON(e)},getLT:function(e,t){if(!e)return"_";var n="";return t=t.toLowerCase(),n="input"===e.nodeName.toLowerCase()?this.getAttribute(e,"value"):"text"===t?i?e.textContent:e.innerText?e.innerText:e.textContent:"href"===t?this.rmProto(this.getAttribute(e,"href")):this.getAttribute(e,t)||"",""===(n=this.norm(n))&&(n=this.norm(this.getLinkContent(e))),n&&n.length>L.MAX_VALUE_LENGTH&&(n=n.substring(0,L.MAX_VALUE_LENGTH)),""===n?"_":n},clref:function(e){if(0!==e.indexOf(f)&&0!==e.indexOf(p))return"";var t=this.strip(e);return t.clean||t.url},cold:function(){return screen?screen.colorDepth||screen.pixelDepth:"unknown"},sr:function(e){return screen?screen.width+(e||",")+screen.height:""},xy:function(e){var t=null,n=e.pageX,i=e.pageY;return r&&(t=(function(){var e=document.documentElement,t=document.body;return e&&(e.scrollTop||e.scrollLeft)?[e.scrollTop,e.scrollLeft]:t?[t.scrollTop,t.scrollLeft]:[0,0]})()),n||0===n||(n=e.clientX||0,r&&(n+=t[1])),i||0===i||(i=e.clientY||0,r&&(i+=t[0])),n+","+i},hasCC:function(e){for(var t=0,n=e.length;n>t;t++){var r=e.charCodeAt(t);if(32>r||"="===r)return!0}return!1},isValidPair:function(e,t){return!!L.in_value_whitelist(e)||(!(e.length<=0||e.length>32||t.length>L.MAX_VALUE_LENGTH)||(L.ldbg&&console.warn("Invalid key/value pair ("+e+"="+t+") Size must be 1-32 & 0-300 respectively."),!1))},ser:function(e,t){if(!e)return"";void 0===typeof t&&(t=!0);var n=[],r="";for(var i in e)if(this.hasOwn(e,i)){var o=i,a=e[i];if(null===o||null===a)continue;if(o+="",(a+="")&&!L.in_value_whitelist(o)&&a.length>L.MAX_VALUE_LENGTH&&(a=a.substring(0,L.MAX_VALUE_LENGTH)),!this.isValidPair(o,a))continue;if(!this.hasCC(o)&&!this.hasCC(a)){r="",""!==(a=this.trim(a))&&" "!==a||!t||(a="_");try{r=(r=this.enc(o+""+a)).replace(/'/g,"%27")}catch(e){r="_ERR_ENCODE_",l(e)}n.push(r)}}return n.join(this.cd)},rand:function(){for(var e=0,t="";e++<16;){var n=Math.floor(62*Math.random());t+=10>n?n:String.fromCharCode(36>n?n+55:n+61)}return t},tms:function(){return+new Date},cookEn:function(){var e=navigator.cookieEnabled?1:0,t="rapidtc";return void 0!==navigator.cookieEnabled||e||(document.cookie=t+"=1",e=-1!=document.cookie.indexOf("testcookie"),document.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;"),e},isResCF:function(e){return{14:1,15:1,18:1,19:1,20:1}[e]},isTagOfInterest:function(e,t){for(var n=0,r=t.length;r>n;n++)if(e.tagName&&e.tagName.toLowerCase()==t[n].toLowerCase())return!0;return!1},samplingSuccess:function(e){return(function(e){e*=10;var t=""+(new u).getCookieByName("B");return!!t&&(0>g&&(g=(function(e){for(var t=33554467,n=0,r=e.length;r>n;n++)t+=(t<<1)+(t<<4)+(t<<7)+(t<<8)+(t<<24),t^=e.charCodeAt(n);return 0>t&&(t&=2147483647,t+=2147483648),t})(t)%1e3),e>g)})(e)},in_value_whitelist:function(e){return!(r&&8>=_)&&-1!==L.value_len_whitelist.indexOf(e)}}}"undefined"!=typeof console&&void 0!==console.log||(console={log:function(){}}),void 0===console.error&&(console.error=console.log),void 0===console.warn&&(console.warn=console.log),t.prototype={ser:function(){return L.ser(this.map)},set:function(e,t){var n=t?L.norm(t):t;void 0!==n&&null!==n||(n=""),null!==n&&L.isStr(n)&&(n=n.replace(/\\/g,"\\\\")),!L.in_value_whitelist(e)&&n.length>L.MAX_VALUE_LENGTH&&(n=n.substring(0,L.MAX_VALUE_LENGTH)),L.isValidPair(e,n)&&(this.map[L.norm(e)]=n,this.count++)},get:function(e){return this.map[e]},getAll:function(){return this.map},absorb:function(e){if(e&&L.isObj(e))for(var t in e)L.hasOwn(e,t)&&this.set(t,e[t])},absorb_filter:function(e,t){if(e&&L.isObj(e))for(var n in e)t&&!t.call(null,n)||L.hasOwn(e,n)&&this.set(n,e[n])},getSize:function(){return this.count}},(n.prototype=new t).constructor=t,(r.prototype=new t).constructor=t,n.makeFromPP=function(e){var t=new n;return e&&t.absorb(e.getAll()),t};var O=new n,L=x(e),D=new(function(){var e={};return{addModule:function(t,n){e[L.norm(t)]=n},addModules:function(e,t){var n=L.isArr(e),r=[];n||L.isStr(e)&&(e=new Array(e),n=!0);for(var i in e)if(L.hasOwn(e,i)){var o=n?e[i]:i,a=L.trim(e[i]);if(this.exists(o))l('addModules() called with prev processed id:"'+o+'"');else{var s=y(a,o,t);s&&(this.addModule(o,s),r.push(s))}}return r},getModules:function(){return e},getModulesWithViewability:function(){var t={};for(var n in e){var r=e[n];r.useViewability&&(t[n]=r)}return t},reevaluateModuleViewability:function(){var e=this.getModulesWithViewability();for(var t in e)e[t].reevaluateViewableLinks()},refreshModule:function(t,n,r,i){var o=e[L.norm(t)];o?o.refreshModule(t,n,r,i):l("refreshModule called on unknown section: "+o)},removeModule:function(t){var n=e[L.norm(t)];n&&(n.removeHandlers(),delete e[t])},destroy:function(){for(var t in e)L.hasOwn(e,t)&&this.removeModule(t);e={}},exists:function(t){return e[L.norm(t)]}}}),M={none:0,gzip:1,lzw:2,deflate:3};u.prototype={getCookieByName:function(e){return this.cookieMap[e]},getRxx:function(){var e=this.cookieMap.rxx;if(P.fpc&&(void 0===e||null===e||""===e)){var t=document.domain||"";t="."+t.split(".").slice(-2).join(".");var n=Date.UTC(2015,7,1),r=(new Date).getTime()-n;f("rxx",e=parseInt(Math.random().toString().substring(2)).toString(36)+"."+r.toString(36)+"&v=1",31536e3,t)}return e},extendBCookie:function(){var e=this.cookieMap.B;e?f("B",e,31536e3,".yahoo.com"):s("Bcookie not set")}};var P=o(e),I=(function(){function e(e,t){P.ldbg&&c(e);var n=new Image,r=null;n.onload=n.onabort=n.onerror=function(){t&&"function"==typeof t&&(clearTimeout(r),t.call(null))},n.src=e,t&&"function"==typeof t&&(r=setTimeout(function(){t.call(null)},P.click_timeout)),setTimeout(function(){n=null},1e7)}function t(){return"rapid_if_"+L.rand()}function r(e){var t="display:none;";!L.isIE||6!==L.ieV&&7!==L.ieV&&8!==L.ieV?L.sa(e,"style",t):e.style.setAttribute("cssText",t,0)}function i(e){var t=null;if(L.isIE&&L.ieV<=8){var n="";L.isSecure()&&6==L.ieV&&(n='src="https://geo.yahoo.com/b.html"'),
t=document.createElement("<iframe "+n+' name="'+e+'"></iframe>')}else t=document.createElement("iframe");return t.name=e,t}function o(e,n){var o=null,s=L.make("form"),l=L.make("input"),u=t(),d=t(),f="application/x-www-form-urlencoded;charset=UTF-8";r(o=i(u)),r(s),s.id=d,s.method="POST",s.action=a(n),s.target=u,L.isIE&&L.ieV<=7?s.setAttribute("enctype",f):(s.setAttribute("enctype",f),s.setAttribute("encoding",f)),l.name="q",l.value=e,L.isIE&&L.ieV>=10&&(l.type="submit"),s.appendChild(l);var p="load",m=function(){var e="";P.ldbg&&(!L.isIE||L.ieV>=9)&&(e=(o.contentDocument||o.contentWindow.document).body.innerHTML),L.rmEvent(o,p,m),setTimeout(function(){L.rmBodyEl(o),L.rmBodyEl(s)},0),P.ldbg&&c("iframe resp: "+e),L.isIE&&L.ieV<=7&&setTimeout(function(){var e=i("");L.addEvent(e,"load",function(){L.rmBodyEl(e)}),L.appBodyEl(e)},1)};L.addEvent(o,p,m),L.appBodyEl(o),L.appBodyEl(s),s.submit()}function a(e){var t=P.deb,n=L.rand(),r=["http:"===window.location.protocol?"http://":"https://",P.yql_host,P.yql_path,"?yhlVer=2&yhlClient=rapid&yhlS=",P.spaceid,!0===t?"&yhlEnv=staging":"",!0===t||P.ldbg?"&debug=true&diagnostics=true":"",L.isIE&&L.ieV?"&yhlUA=ie"+L.ieV:"",L.isIE&&8==L.ieV?"&format=json":"","&yhlCT=2","&yhlBTMS=",(new Date).valueOf(),"&yhlClientVer=",P.version,"&yhlRnd=",n,"&yhlCompressed=",e||0,P.gen_bcookie?"&yhlBcookie=1":""].join("");return P.ldbg&&c(r),r}function u(t){e(A("p",new n(t),1197799914))}function f(e,t){var n=a(t);try{var r=L.getXHR();r.open("POST",n,!0),r.withCredentials=!0,r.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),P.ldbg&&(r.onreadystatechange=function(){4===r.readyState&&c(r.status+":xhr response: "+r.responseText)}),r.send(e)}catch(e){u({_err_nm:"sendToYQL Failed",_err_msg:"sendToYQL Failed",_err_rs:String(e),_err_st:e.stack,urlUsed:n})}}function p(e,t,n){var r={};return L.isObj(e)?(L.aug(r,e,n),r):r}function m(e,t,n){n=n||{};var r={m:L.norm(e.moduleName),l:[]};e.moduleYLK&&(r.ylk=e.moduleYLK.getAll());for(var i=r.ylk&&r.ylk.sec?r.ylk.sec:"",o=e.links,a=function(e,n){var o="_p"===e;return!(!t||!o)||"sec"==e&&n!=r.m&&n!=i||"sec"!==e&&!o},s=0,l=(o=e.links).length;l>s;s++)o[s]&&(!P.viewability||o[s].viewable?r.l.push(p(o[s].data,0,a)):P.ldbg&&c("Skipping not viewable link: "+o[s].data.slk));return r}function v(e,t,n){var r=[],i=null;for(var o in e)if(L.hasOwn(e,o)&&(i=e[o])){var a=m(i,t,n);a.l.length>0?r.push(a):P.ldbg&&c('Not capturing 0 links mod: "'+i.moduleName+'"')}return r}function g(e,t,n,r,i){var o;return o=H?X:d(),[{t:(function(e,n){return t?"pv":n&&n.event?n.event.type.getYQLID():"lv"})(0,i),s:P.spaceid,pp:_(t,r).getAll(),_ts:o.ts,_ms:o.ms,lv:v(e,n,i)}]}function _(e,t){var r=n.makeFromPP(P.keys);return r.absorb(t),e&&r.set("A_",1),r}function h(e,t,n){var r="select * from x where a = '"+e+"'";return(t?"q=":"")+(n?L.enc(r):r)}function w(e){var t={bp:S().getAll(),r:e.call(0),yrid:P.yrid,optout:P.oo,nol:P.nol};return L.toJSON(t)}function y(e,t,n,r){k(w(function(){return g(e,t,!0,n,r)}))}function b(e){return e.identifier}function k(e){function t(e,t){0===t&&(e=e.replace(/'/g,"\\'")),r&&c("body: "+e),L.hasCORS()?(i=h(e,!0,!0),f(i,t)):(i=h(e,0,0),o(i,t))}function n(){u||(u=!0,t(e,0),r&&c("sent in failSend"))}var r=P.ldbg,i="",a=M[P.compr_type];if(P.compr_on&&L.hasWorkers()&&a>1&&e.length>2048){r&&c("Looking for worker:"+P.webworker_file+", compr timeout:"+P.compr_timeout);try{var l=new Worker(P.webworker_file),u=!1,d=null,p=0;l.onerror=function(e){clearTimeout(d),n(),s(e.message),l.terminate()},l.onmessage=function(i){clearTimeout(d);var o=L.tms();"Decompress fail"!==i.data&&"Compress fail"!==i.data&&0!=i.data.indexOf("error:")||(r&&c(i.data),n()),u||(u=!0,t(i.data,a)),r&&c("Ratio ("+i.data.length+"/"+e.length+"): "+(100*i.data.length/e.length).toFixed(2)+"% -> C_T: "+(o-p)+" ms ("+o+"-"+p+")"),l.terminate()},r&&c("posting to worker: "+e),p=L.tms(),l.postMessage({type:a,json:e}),d=setTimeout(function(){n(),l.terminate()},P.compr_timeout)}catch(n){r&&c("compression worker exception "+n),t(e,0)}}else t(e,0)}function A(e,t,n){return("http:"===window.location.protocol?"http://":"https://")+C+"/"+e+["?s="+(n||P.spaceid),"t="+L.rand()+","+Math.random(),"_I="+P.yrid,"_AO="+P.oo,"_NOL="+P.nol,"_R="+L.enc(P.getReferrer()),("c"===e?"_K=":"_P=")+E(t)].join("&")}function E(e){var t=new n(S(!1).getAll());t.absorb(P.keys.getAll()),e&&(e instanceof n?t.absorb(e.getAll()):l("Internal error in buildGeoPP: not PP type"));var r;return r="dwell,start"===t.get("etag")?X:"dwell,stop"===t.get("etag")?G:d(),t.set("_ts",r.ts),t.set("_ms",r.ms),P.version+"%05"+t.ser()}function T(e){return[A("c",new n(e.pp))+"&_C="+L.ser(e.data)].join("&")}var C=YAHOO.i13n.beacon_server||"geo.yahoo.com",S=function(e){var t=new n;t.set("_pl",1),t.set("A_v",P.version);var r=P.getReferrer();if(r&&!1!==e&&t.set("_R",r.substring(0,L.MAX_VALUE_LENGTH)),P.test_id&&t.set("test",P.test_id),P.ex&&t.set("_ex",1),t.get("_bt")||t.set("_bt","rapid"),P.query_parameters){var i=/^(test|outcm|etrg|usergenf|etag|sec|slk|tar|tar_uri|yhldebug|tsrc|action)$|^(A_|_)/,o=document.location.search;if(o){o=(o=o.substring(1)).split("&");for(var a in o)if(o.hasOwnProperty(a)){var s=o[a].split("=");if(s.length>=2){var l=decodeURIComponent(s[0]),u=decodeURIComponent(s[1]),d=!i.test(l);c("Queryparams decoded: "+l+" : "+u),c("Blacklist filter: "+d),d&&t.set(l,u)}}}}var f=window.location.protocol||"";f=f.replace(/:$/,""),t.set("A_pr",f);var p=(new Date).getTimezoneOffset();return p=p?-1*p/60:0,t.set("A_tzoff",p),t},x=(function(){var e=null,t=[],n=0,r=P.addmod_timeout;return function(i,o,a,s){clearTimeout(e);var l=+new Date-n;if(t=L.uniqConcat(t,i,b),l>r)n=+new Date,y(t,o,a,s),t=[];else{var u=r-l;e=setTimeout(function(){P.ldbg&&c("queueing send in addMods"),y(t,o,a,s),t=[]},u)}}})();return{sendGeoT:function(t){e(["http:"===window.location.protocol?"http://":"https://",C,"/t?",t].join(""))},sendGeoPV:function(){e(A("b"))},sendRapidNoDelay:function(t,r,i,o,a){if(r&&H&&H.start_dwell()&&(i.etag="dwell,start",i.usergenf=1,i.A_prets=G?G.ts:null,i.A_prems=G?G.ms:null),!P.yql_enabled||a){var s=null;i&&(s=new n(i)),e(A(r?"b":"p",s))}else y(t,r,i,o)},sendRapid:function(e,t,n,r){t&&H&&H.start_dwell()&&(n.etag="dwell,start",n.usergenf=1,n.A_prets=G?G.ts:null,n.A_prems=G?G.ms:null),x(e,t,n,r)},sendRefreshedContent:function(e,t,n){var r={};n.event&&L.aug(r,n.event.data),n.pp&&L.aug(r,n.pp),k(w(function(){return g([e],t,!0,r,n)}))},sendULTEvent:function(t,r){var i={};t&&t.data&&(i=t.data);var o=A("p",new n(i),r||0);t.type&&(o+="&_V="+t.type.spaceidPrefix),e(o)},sendEvents:function(e,t){P.USE_RAPID&&this.sendULTEvent(e)},sendClick:function(t,n){var r=null,i="",o=!1;return P.USE_RAPID&&(i=T(t)),P.async_all_clicks||!t.synch?void(i&&e(i,n)):(L.prevDef(t.event),r=function(){if(!o){if(o=!0,n)return void n.call();var e=t.targetElement.href;if(P.click_postmsg.origin){var r=P.click_postmsg.window||top,i=P.click_postmsg.payload||{};i.href=e,r.postMessage(L.toJSON(i),P.click_postmsg.origin)}else t.hasTargetTop?top.document.location=e:document.location=e}},void(P.USE_RAPID&&e(i,r)))}}})(),N=null,R=null,H=null,V=null,U=new u,Y=U.getRxx();null!=Y&&O.set("_rx",Y);var q=U.getCookieByName("_ga");null!=q&&O.set("_ga",q);var B=U.getCookieByName("yx");null!=B&&O.set("_yx",B);var j=((function(){var e={}})(),0),X=null,G=null;!(function(){P.dwell_on&&(H=new E),(function(){if(P.ult_token_capture&&!0!==YAHOO.i13n.__handled_ult_tokens__){YAHOO.i13n.__handled_ult_tokens__=!0;var e=P.loc;if(e.match(/;_yl[a-z]{1}=/))P.ldbg&&c("Found ULT Token on URL."),I.sendGeoT(e);else{var t=(new u).getCookieByName("D");t&&(L.clearCookie("D","/",".yahoo.com"),I.sendGeoT(t))}}})(),P.ldbg&&c("tracked_mods: "+L.fData(P.tracked_mods));var e=D.addModules(P.tracked_mods,!1),t=D.addModules(P.tracked_mods_viewability,P.viewability);P.USE_RAPID&&P.pageview_on_init&&I.sendRapidNoDelay(e.concat(t),1==P.client_only),P.prerender&&(function(){if("prerender"==document.visibilityState){var e=g(0,"prerender",{etrg:"prerender",outcm:"page",usergenf:0,etag:"prerender"},"");I.sendEvents(e)}})(),L.executeOnLoad(function(){R=new(function(){var e=null,t=(new Date).getTime(),n=t,r=L.getScrollY(),i=-1,o=function(){var e=L.getScrollY(),t=-1===i?e-r:e-i;Math.abs(t)>P.viewability_px&&(D.reevaluateModuleViewability(),i=e,n=(new Date).getTime())},a=function(){null!=e&&clearTimeout(e);var i=(new Date).getTime();i-t<P.viewability_time&&(r=L.getScrollY(),n=i),e=setTimeout(function(){o()},P.viewability_time)};L.addEvent(window,"scroll",a),this.reInit=function(){r=L.getScrollY(),i=-1,t=n=(new Date).getTime()},this.destroy=function(){L.rmEvent(window,"scroll",a)}}),P.apv&&(N=new A),T(),_initTimeStamp=null,P.extendbcookie&&U.extendBCookie()})})();var W={utils:L};return{init:function(){},beaconEvent:function(e,t,n,r){k(e,t,n,r)},beaconClick:function(e,t,n,r,i,o,a){P.ldbg&&c("beaconClick: sec="+e+" slk="+t+" callback="+o),!r&&i&&(r={});var s={};if(i&&(r.outcm=i,s.outcm=i),a&&a.pp&&L.aug(s,a.pp),a&&a.dwell&&P.dwell_on){var l=a.dwell;"start"!==l&&"stop"!==l||("start"===l?H.start_dwell()&&(s.etag="dwell,"+l,s.usergenf=1,s.A_prets=G?G.ts:null,s.A_prems=G?G.ms:null):H.stop_dwell()&&(s.etag="dwell,"+l,s.usergenf=1,s.A_prets=X?X.ts:null,s.A_prems=X?X.ms:null))}var u=(function(e,t,n,r,i){var o={};return L.aug(o,r),o.sec=e,o.slk=t,o._p=n,{data:o,outcome:i,event:null,moduleElement:null,targetElement:null,synch:!1,hasTargetTop:!1}})(e,t,n,r,i);u.pp=s,I.sendClick(u,o)},addModules:function(e,t,n){P.ldbg&&c("addModules() called: mods="+L.fData(e)+" isPage: "+t);var r={A_am:1};(n=n||{}).pp&&L.aug(r,n.pp),n.useViewability=n.useViewability||!1,n.clickonly=n.clickonly||!1;var i=!1;switch(t||(t=!!n.useViewability&&2),t){case 1:case"1":case!0:t=!0,i=!0;break;case 2:case"2":!0,t=!1,n.event=g("contentmodification","",{});break;case 0:case"0":case!1:default:t=!1}if(P.yql_enabled){n&&n.event&&t&&(l("Cannot track event type and pageview at same time."),n.event=null);var o=D.addModules(e,n.useViewability);(0!==o.length||n.event)&&(n.clickonly&&(o=[]),(P.USE_RAPID||n.event)&&(t||n.event||n.pp?(i&&!P.persist_asid&&a(),n.event&&n.event.data&&L.aug(r,n.event.data),I.sendRapidNoDelay(o,t,r,n)):o.length>0&&I.sendRapid(o,t,r,n)),!0===t&&P.apv&&N&&N.reInit())}else t?b(r,i):n.event&&this.beaconRichView(r,n.event.outcome)},addModulesWithViewability:function(e,t,n){(n=n||{}).useViewability=P.viewability,this.addModules(e,t,n)},refreshModule:function(e,t,n,r){P.ldbg&&c("refreshModule called: mod="+e+" isPV: "+t+" sendLinks: "+n+" options: "+L.fData(r));var i=!1;switch(r=r||{},t||(t=!1),t){case 1:case"1":case!0:t=!0,i=!0;break;case 2:case"2":!0,t=!1,r.event=g("contentmodification","",{});break;case 0:case"0":case!1:default:t=!1}if(P.yql_enabled){var o=!1!==n;i&&!P.persist_asid&&a(),t&&r&&r.event&&(r.event=null),D.refreshModule(e,t,o,r)}else{var s=r.pp||{};t?b(s,i):r.event&&this.beaconRichView(s,r.event.outcome)}},removeModule:function(e){D.removeModule(e)},isModuleTracked:function(e){return P.ldbg&&c("isTracked called: "+e),D&&void 0!==D.exists(e)},destroy:function(){c("destroy called"),D.destroy(),N&&(N.destroy(),N=null),R&&(R.destroy(),R=null),H&&(H.destroy(),H=null)},reInit:function(e){if(P.ldbg&&c("reInit called with: "+L.fData(e)),(e=e||{}).spaceid){O=new n,P=o(e),L=x(e);var t=new u,r=t.getRxx();null!=r&&O.set("_rx",r);var i=t.getCookieByName("_ga");null!=i&&O.set("_ga",i);var a=t.getCookieByName("yx");null!=a&&O.set("_yx",a)}else l("Invalid spid in reInit config: "+L.fData(e))},setRapidAttribute:function(e){e.keys&&P.keys.absorb(e.keys),e.spaceid&&(P.spaceid=e.spaceid),e.referrer&&(P.referrer=e.referrer.substring(0,L.MAX_VALUE_LENGTH)),e.A_sid&&(P.keys.set("A_sid",e.A_sid),P.persist_asid=!0),e.location&&(P.loc=e.location,P.keys.set("_w",L.rmProto(e.location).substring(0,L.MAX_VALUE_LENGTH))),L.hasOwn(e,"apv")&&(e.apv?N?N.reInit():N=new A:N&&(N.destroy(),N=null))},clearRapidAttribute:function(e){for(var t in e)if("keys"===e[t]){var r=P.keys.get("_w"),i=P.keys.get("A_sid");P.keys=new n,P.keys.set("_w",r),P.keys.set("A_sid",i)}else"referrer"===e[t]?P.referrer="":"A_sid"===e[t]?(P.keys.set("A_sid",""),P.persist_asid=!0):"location"===e[t]&&(P.loc="",P.keys.set("_w",""))},beaconPageview:function(e){b(e,!0)},beaconECommerce:function(e,t){},beaconInternalSearch:function(e,t){},getCurrentSID:function(){return O.get("A_sid")},notifyHistoryPushStateCalled:function(){},beaconLinkViews:function(e,t,n,i){P.ldbg&&c("beaconLinkViews() called");var o={};(n=n||{}).pp&&L.aug(o,n.pp);var a=!1;switch(t){case 1:case"1":case!0:a=!0;break;case 2:case"2":!0,a=!1,n.event=g("contentmodification","",{});break;case 0:case"0":case!1:default:a=!1}if(P.yql_enabled){if(n&&n.event&&a&&(l("Cannot track event type and pageview at same time."),n.event=null),0!==e.length||n.event){for(var s=[],u=0;u<e.length;u++){var d=e[u],f=new r;f.absorb_filter(d,function(e){return"sec"!=e&&"_links"!=e});for(var p=[],m=1,v=0;v<d._links.length;v++){var _=d._links[v],h={viewable:!0,data:{sec:d.sec,_p:m++,A_lv:2}};L.aug(h.data,_),p.push(h)}var w={moduleName:d.sec,moduleYLK:f,links:p,identifier:d.sec};s.push(w)}(P.USE_RAPID||n.event)&&((a||n.event||n.pp)&&n.event&&n.event.data&&L.aug(o,n.event.data),I.sendRapidNoDelay(s,a,o,n)),i&&i.call()}}else a?b(o,!1):n.event&&this.beaconRichView(o,n.event.outcome)},beaconPerformanceData:function(e,t){T(e,t)},__test_only__:function(){return W}}},YUI.add("rapid",function(e,t){var n,r=require("hermes-core/flog")("rapid"),i={debug:!1,trackedElements:["content"]};e.rapidTracker={ok:!1,_queuedEvents:[],init:function(t){var r,i,o;if(!e.rapidTracker.ok)try{for((n=new YAHOO.i13n.Rapid(t)).init(),e.mix(this,n),r=0,i=this._queuedEvents.length;r<i;r++)"beaconClick"===(o=this._queuedEvents.shift()).eventType?this.beaconClick(o.view,o.action,-1,o.keys,o.outcome):"beaconPerformanceData"===o.eventType?this.beaconPerformanceData(o.obj):"beaconEvent"===o.eventType&&this.beaconEvent(o.eventName,o.pageParams);e.rapidTracker.ok=!0}catch(t){e.rapidTracker.ok=!1}},destroy:function(){e.rapidTracker.ok&&(n&&n.destroy(),e.rapidTracker.ok=!1)},getConf:function(t,n,o){var a,s,l="",c={},u=n.getUA(),d=n.getViewer(),f=["signed_out_home_page_no_scroll","enable_personalized_group_recommendations"];return o=o||{},o.trackedElements=o.trackedElements||[],a=e.merge(i,t.get("rapidConf")||{},o),a.trackedElements=i.trackedElements.concat(t.get("trackedElementIDs"),o.trackedElements),n.buckets&&(l=Object.keys(n.buckets).reduce(function(e,t){return-1!==f.indexOf(t)?e+t+":"+n.buckets[t]+",":e},"").slice(0,-1)).length>300&&(r.warn("Rapid bucket data exceeded the 300 character limit."),l=l.substr(0,300)),c=e.QueryString.parse(window.location.search.replace("?","")),s=e.merge({pageType:t.name,intl:n.lang,bx:n.getCookie("BX"),buckets:l,isStaff:d&&d.isInsecureGod?1:0,renderer:n.hasClientSideRouted()?"c":"s",loggedIn:d&&d.signedIn?1:0,slice:n.slice,groupUsr:n.auth&&n.auth.activeGroupMembership?1:0,density:window.devicePixelRatio||1,dimensns:"innerWidth"in window?window.innerWidth+"x"+window.innerHeight:"unknown",isPro:0,isbot:u.isBot,isunsptd:u.isUnsupportedBrowser||u.isReallyUnsupportedBrowser,campaignID:decodeURIComponent(c.campaignID)||"",linkID:decodeURIComponent(c.linkID)||""},t.getTrackingSegments()),new e.Promise(function(r,i){var o,l=s.isunsptd&&t.get("isPanda")?"p#"+t.get("spaceid"):t.get("spaceid"),c=e.config.flickr.performance_samples[t.name.replace(/-/g,"_")];c?c.signedIn&&(c=c[d&&d.signedIn?"signedIn":"signedOut"]||0):c=0,c*=100,o={debug:a.debug,spaceid:l,client_only:a.client_only||1,compr_on:!1,tracked_mods:a.trackedElements,async_all_clicks:!0,lt_attr:"data-track",keys:s,perf_navigationtime:2,sample:{perf_navigationtime:c}},a.ex&&(o.ex=!0),void 0!==a.oo&&(o.oo=a.oo),d.signedIn?n.getModel("person-models",d.nsid).then(function(e){o.keys.joindate=e.getValue("dateCreated").format("YYYY-MM-DD"),o.keys.isPro=e.getValue("isPro")?1:0,r(o)}):r(o)})},beacon:function(e,t,r,i){r=r||{},i=i||"",n?n.beaconClick(e,t,-1,r,i):this._queuedEvents.push({eventType:"beaconClick",view:e,action:t,keys:r,outcome:i})},beaconPerformanceData:function(e){n?n.beaconPerformanceData(e):this._queuedEvents.push({eventType:"beaconPerformanceData",obj:e})},beaconEvent:function(e,t){n?n.beaconEvent(e,t):this._queuedEvents.push({eventType:"beaconEvent",eventName:e,pageParams:t})},refreshTracker:function(){n&&e.rapidTracker.ok&&n.refreshModule(i.trackedElements[0],!1,!1,{})},beaconScroll:function(t){t.registerEventHandler(e.globalEvents.subscribe("window:scroll",function(n){t.verticalScrollTimer&&clearTimeout(t.verticalScrollTimer),t.verticalScrollTimer=setTimeout(function(){e.rapidTracker.beaconEvent("verticalScroll",{view:t.name,scrollY:window.pageYOffset,scrollTo:e.rapidTracker.getScrollSection(t,window.innerWidth/2,window.innerHeight/2)})},750)}))},getScrollSection:function(t,n,r){var i=e.one(document.elementFromPoint(n,r)),o=i.ancestor("[data-scroll-section]",!0);if(o)return o.getAttribute("data-scroll-section");var a,s=i.ancestor(".view",!0);if(s){if((a=s.getAttribute("class").match(/[\S]+-view/)[0])===t.name&&n===window.innerWidth/2){var l=e.rapidTracker.getScrollSection(t,n/2,r);return l!==t.name?l:e.rapidTracker.getScrollSection(t,n+n/2,r)}return a}}}},"@VERSION@",{affinity:"client",requires:["querystring-parse-simple","global-events"]});YUI.add("storage-helper",function(e){e.StorageHelper={setItem:function(t,i,n){var o=n?"sessionStorage":"localStorage";if(e.config.win)try{e.config.win[o][t]=i}catch(e){}},getItem:function(t,i){var n,o=i?"sessionStorage":"localStorage";if(e.config.win)try{n=e.config.win[o][t]}catch(e){}return n},remove:function(t,i){var n=i?"sessionStorage":"localStorage";if(e.config.win)try{e.config.win[n].removeItem(t)}catch(e){}},hasEntries:function(t,i){var n=i?"sessionStorage":"localStorage",o=!1;if(e.config.win)try{o=void 0!==e.config.win[n][t]}catch(e){}return o},isLocalStorageAvailable:function(){var t="checkLSCompat",i=!1;try{e.config.win.localStorage[t]="checkLSCompatValue",e.config.win.localStorage.removeItem(t),i=!0}catch(e){i=!1}return i}},e.Storage={Instance:{_cache:{},_hasSessionStorage:!0,_clientIdKey:"",getClientIdKey:function(){return this._clientIdKey||(this._clientIdKey=e.config.win.appContext.clientId+"_"),this._clientIdKey},get:function(t){var i,n;try{t=t||"",i=this.getClientIdKey()+t,n=this._hasSessionStorage?e.config.win.sessionStorage.getItem(i):this._cache[i]}catch(e){this._hasSessionStorage=!1}return n},set:function(t,i){var n;try{t&&(n=this.getClientIdKey()+t,this._hasSessionStorage?e.config.win.sessionStorage.setItem(n,i):this._cache[n]=i)}catch(e){this._cache[n]=i,this._hasSessionStorage=!1}},has:function(t){var i,n=!1;try{i=this.getClientIdKey()+t,n=this._hasSessionStorage?!!e.config.win.sessionStorage.getItem(i):!!this._cache[i]}catch(e){this._hasSessionStorage=!1}return n},remove:function(t){var i;try{t=t||"",i=this.getClientIdKey()+t,this._hasSessionStorage?e.config.win.sessionStorage.removeItem(i):this._cache[i]=void 0}catch(e){this._hasSessionStorage=!1}},clear:function(){this.clearByKey(this.getClientIdKey())},clearByKey:function(t){var i,n,o,s=[];try{if(t)if(this._hasSessionStorage){for(i=0,o=e.config.win.sessionStorage.length;i<o;i++)(n=e.config.win.sessionStorage.key(i))&&0===n.indexOf(t)&&s.push(n);for(i=0,o=s.length;i<o;i++)e.config.win.sessionStorage.removeItem(s[i])}else for(e.Object.each(this._cache,function(e,i){0===i.indexOf(t)&&s.push(i)}),i=0,o=s.length;i<o;i++)this._cache[s[i]]=void 0}catch(e){this._hasSessionStorage=!1}}}}},"@VERSION@",{requires:[]});YUI.add("keyboard-manager",function(e){var t;(e.KeyboardManager=function(){var t=this;this.keyEventScope=["*"],e.on("flickr:setKeyEventScope",function(e){t.setCurrentKeyEventScope(e)}),e.on("flickr:removeKeyEventScope",function(e){t.removeCurrentKeyEventScope(e)})}).prototype={on:function(t,n,r){return void 0===r&&(r=n,n=null),e.one("doc").on("key",this.handleKey.bind(this,r,n),t)},handleKey:function(e,n,r){if(!(r.metaKey||r.altKey||r.shiftKey||r.ctrlKey||this.inputHasFocus())){var i=t.get(r,"keyEventScope");i||(i=this.getCurrentKeyEventScope(),t.add(r,{keyEventScope:i})),"*"!==n&&n!==i||e(r)}},inputHasFocus:function(){var t,n;try{t=e.one(document.activeElement)}catch(e){return!1}return!!t&&("INPUT"===(n=t.get("tagName").toUpperCase())?/^text|search|tel|url|email|password|datetime|date|month|week|time|datetime-local|number|range|color$/i.test(t.get("type")):"TEXTAREA"===n||"SELECT"===n||(t.getAttribute("contenteditable")||!1))},setCurrentKeyEventScope:function(e){var t=this.keyEventScope.indexOf(e);-1===t?this.keyEventScope.push(e):this.keyEventScope=this.keyEventScope.slice(0,t+1)},getCurrentKeyEventScope:function(){return this.keyEventScope.slice(-1)[0]},getKeyEventScopeStack:function(){return this.keyEventScope},removeCurrentKeyEventScope:function(e){var t=this.keyEventScope.indexOf(e);t>-1&&(this.keyEventScope=this.keyEventScope.slice(0,t))},resetCurrentKeyEventScope:function(e){this.keyEventScope=["*"]}},t=(function(){function t(e){var t;switch(e.type){case"key":t=e.which+e.pageX+e.pageY;break;default:t=e.type+e.pageX+e.pageY}return t}function n(e){delete r[e]}var r={};return{add:function(i,c){var o,a,u=t(i);e.Lang.isObject(i)&&e.Lang.isObject(i._event)&&e.Lang.isObject(c)&&(a=e.later(1,this,n,u),o=r[u]||{},e.mix(o,c,!0),o.timer&&o.timer.cancel(),o.timer=a,r[u]=o)},get:function(i,c){var o=t(i),a=r[o]||{};return a.timer&&a.timer.cancel(),a.timer=e.later(1,this,n,o),c?a[c]:a}}})()},"@VERSION@",{requires:["event-key"]});YUI.add("overflow-helper",function(e){e.OverflowHelper={detectScrollbarSize:function(t){var o,n=0;return YUI.Env.isServer||((o=e.Node.create("<div></div>")).setStyle("width",100).setStyle("height",100).setStyle("overflow","scroll").setStyle("position","absolute").setStyle("top",-9999),t.append(o),n=o._node.offsetWidth-o._node.clientWidth,o.remove(!0)),n},addFlowListener:function(t,o,n,i){var r,l,v,d,f="over"===o;"OverflowEvent"in window?(d=function(e){if(e.type===o+"flow"||0===e.orient&&e.horizontalOverflow===f||1===e.orient&&e.verticalOverflow===f||2===e.orient&&e.horizontalOverflow===f&&e.verticalOverflow===f)return n.call(this,e)},v=t._node.addEventListener("overflowchanged",d,!1),i({detach:function(){t._node.removeEventListener("overflowchanged",d)}})):(function(t,o){var n,i,r;YUI.Env.isServer||((n=e.Node.create("<div>test event</div>")).setStyle("height: 1px").setStyle("width","1px").setStyle("opacity",0).setStyle("position","absolute").setStyle("top",-99999).setStyle("left",-99999).setStyle("overflow","auto"),t.append(n),i=setTimeout(function(){n._node.removeEventListener("overflow",r),n.remove(!0),o(!1)},10),r=function(e){clearTimeout(i),n._node.removeEventListener("overflow",r),n.remove(!0),o(!0)},n._node.addEventListener("overflow",r,!1))})(t,function(e){e?(d=function(e){if(e.type===o+"flow"||0===e.orient&&e.horizontalOverflow===f||1===e.orient&&e.verticalOverflow===f||2===e.orient&&e.horizontalOverflow===f&&e.verticalOverflow===f)return n.call(this,e)},v=t._node.addEventListener(o+"flow",d,!1),i({detach:function(){t._node.removeEventListener(o+"flow",d)}})):(l=function(){t._node.scrollHeight>t._node.clientHeight?"over"===o&&n.call(t._node,{}):"under"===o&&n.call(t._node,{})},"MutationObserver"in window?((r=new MutationObserver(function(e){e.some(function(e){return l(),!0})})).observe(t._node,{attributes:!1,subtree:!0,childList:!0}),i({detach:function(){r.disconnect()}})):"MutationEvent"in window&&(d=function(e){setTimeout(function(){l()},10)},v=t._node.addEventListener("DOMSubtreeModified",d,!1),i({detach:function(){t._node.removeEventListener("DOMSubtreeModified",d)}})))})}}},"@VERSION@",{requires:[]});YUI.add("priority-queue",function(t,e){var o,r;t.PriorityQueue=o=function(t){this._comp=t||r,this._elts=[]},r=function(t,o){var r=typeof t,i=typeof o;if("number"===r&&"number"===i)return t-o;if("string"!==r||"string"!==i)throw new Error("["+e+"] can't sort items of type "+r+" and "+i);return t===o?0:t>o?1:void 0},o.prototype.size=function(){return this._elts.length},o.prototype.isEmpty=function(){return 0===this._elts.length},o.prototype.push=function(){var t=Array.prototype.slice.call(arguments);1===t.length?this._elts.push(t[0]):this._elts=this._elts.concat(t),this.sort()},o.prototype.pop=function(){return this._elts.pop()},o.prototype.peek=function(){return this._elts[this._elts.length-1]},o.prototype.sort=function(t){t&&(this._comp=t),this._elts.sort(this._comp)},o.prototype.clear=function(t){this._elts=[]},o.prototype.map=function(t){return this._elts.map(t)}},"@VERSION@",{requires:[]});YUI.add("defer-images",function(t,e){function n(){b||(f=new Array(l),s=new t.PriorityQueue(function(t,e){return i(m,e)-i(m,t)}),h=!0,u(),r(),a(),t.globalEvents.subscribe("window:scroll",function(){u(),s.sort()}),b=!0)}function r(){var e=[];(c=t.all(w)).each(function(t,n){var r=t.getXY();e.push({x:r[0],y:r[1],url:t.getAttribute(d),node:t,errorCount:0})}),s.push.apply(s,e)}function a(){var t,e,n;if(h)for(t=0;t<l;t++)(e=f[t])&&!e.complete||(n=s.pop())&&(f[t]=e={task:n,complete:!1},o(e))}function o(t){var e=new Image,n=function(t){var e=t.task.node;switch(e.get("tagName").toLowerCase()){case"img":e.setAttribute("src",t.task.url);break;case"video":e.setAttribute("poster",t.task.url);break;default:e.setStyle("backgroundImage","url("+t.task.url+")")}e.setAttribute(d,g),t.complete=!0,a()}.bind(this,t);e.onload=n,e.onerror=function(){var e;t.task.errorCount++,t.task.errorCount>p?(e=/[a-f0-9]+(_[a-z]{1,2})?\.[a-z]{3,4}$/.exec(t.task.url),t.task.url="https://s.yimg.com/pw/images/"+this.appContext.lang.toLowerCase()+"/photo_unavailable"+(e[1]?e[1]:"")+".png",n()):o(t)},e.src=t.task.url,e.complete&&n()}function i(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function u(){m={x:t.config.win.pageXOffset+t.config.win.innerWidth/2,y:t.config.win.pageYOffset+t.config.win.innerHeight/2}}var s,c,f,l=4,p=3,g="loaded",d="data-defer-src",w="["+d+"]:not(["+d+'="'+g+'"])',m={x:0,y:0},b=!1,h=!1;t.DeferImages={init:n,update:function(){b?(s.clear(),r(),a()):n()},pause:function(){h=!1},resume:function(){h=!0,a()}}},"@VERSION@",{requires:["priority-queue","app-context","global-events"]});YUI.add("accessibility",function(e,n){function t(){var n=e.one(document.activeElement);n&&n.addClass("no-outline")}function a(){var n=e.one(document.activeElement);n&&n.removeClass("no-outline")}e.Accessibility={manageFocusOutlines:function(e){e.registerEventHandler(e.get("container").on("mouseup",t)),e.registerEventHandler(e.get("container").on("focus",a))},makeDroparoundAnchorAccessible:function(e){var n,t=e.view,a=e.getDroparound,r=e.anchor,o=e.handler;t.registerEventHandler(r.on("key",function(e){e.preventDefault(),e.stopPropagation(),n=a(),"true"===e.target.get("aria-expanded")?(n&&n.close(),e.target.set("aria-expanded","false")):(o.call(t,e),n&&!n.isClosed&&e.target.set("aria-expanded","true"))},"down:13,32")),t.registerEventHandler(r.on("key",function(e){var t=!0;if(9===e.keyCode&&(t=t&&!e.shiftKey),"true"===e.target.getAttribute("aria-expanded")&&t&&(e.preventDefault(),n=a())){var r=n.get("container").one("ul[role=menu]").one("li:first-child");r&&r.focus()}},"down:40,9"))}}},"@VERSION@",{requires:[]});/*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/

YUI.add("anim-base",function(e,t){var n="running",r="startTime",i="elapsedTime",s="start",o="tween",u="end",a="node",f="paused",l="reverse",c="iterationCount",h=Number,p={},d;e.Anim=function(){e.Anim.superclass.constructor.apply(this,arguments),e.Anim._instances[e.stamp(this)]=this},e.Anim.NAME="anim",e.Anim._instances={},e.Anim.RE_DEFAULT_UNIT=/^width|height|top|right|bottom|left|margin.*|padding.*|border.*$/i,e.Anim.DEFAULT_UNIT="px",e.Anim.DEFAULT_EASING=function(e,t,n,r){return n*e/r+t},e.Anim._intervalTime=20,e.Anim.behaviors={left:{get:function(e,t){return e._getOffset(t)}}},e.Anim.behaviors.top=e.Anim.behaviors.left,e.Anim.DEFAULT_SETTER=function(t,n,r,i,s,o,u,a){var f=t._node,l=f._node,c=u(s,h(r),h(i)-h(r),o);l?"style"in l&&(n in l.style||n in e.DOM.CUSTOM_STYLES)?(a=a||"",f.setStyle(n,c+a)):"attributes"in l&&n in l.attributes?f.setAttribute(n,c):n in l&&(l[n]=c):f.set?f.set(n,c):n in f&&(f[n]=c)},e.Anim.DEFAULT_GETTER=function(t,n){var r=t._node,i=r._node,s="";return i?"style"in i&&(n in i.style||n in e.DOM.CUSTOM_STYLES)?s=r.getComputedStyle(n):"attributes"in i&&n in i.attributes?s=r.getAttribute(n):n in i&&(s=i[n]):r.get?s=r.get(n):n in r&&(s=r[n]),s},e.Anim.ATTRS={node:{setter:function(t){return t&&(typeof t=="string"||t.nodeType)&&(t=e.one(t)),this._node=t,!t,t}},duration:{value:1},easing:{value:e.Anim.DEFAULT_EASING,setter:function(t){if(typeof t=="string"&&e.Easing)return e.Easing[t]}},from:{},to:{},startTime:{value:0,readOnly:!0},elapsedTime:{value:0,readOnly:!0},running:{getter:function(){return!!p[e.stamp(this)]},value:!1,readOnly:!0},iterations:{value:1},iterationCount:{value:0,readOnly:!0},direction:{value:"normal"},paused:{readOnly:!0,value:!1},reverse:{value:!1}},e.Anim.run=function(){var t=e.Anim._instances,n;for(n in t)t[n].run&&t[n].run()},e.Anim.pause=function(){for(var t in p)p[t].pause&&p[t].pause();e.Anim._stopTimer()},e.Anim.stop=function(){for(var t in p)p[t].stop&&p[t].stop();e.Anim._stopTimer()},e.Anim._startTimer=function(){d||(d=setInterval(e.Anim._runFrame,e.Anim._intervalTime))},e.Anim._stopTimer=function(){clearInterval(d),d=0},e.Anim._runFrame=function(){var t=!0,n;for(n in p)p[n]._runFrame&&(t=!1,p[n]._runFrame());t&&e.Anim._stopTimer()},e.Anim.RE_UNITS=/^(-?\d*\.?\d*){1}(em|ex|px|in|cm|mm|pt|pc|%)*$/;var v={run:function(){return this.get(f)?this._resume():this.get(n)||this._start(),this},pause:function(){return this.get(n)&&this._pause(),this},stop:function(e){return(this.get(n)||this.get(f))&&this._end(e),this},_added:!1,_start:function(){this._set(r,new Date-this.get(i)),this._actualFrames=0,this.get(f)||this._initAnimAttr(),p[e.stamp(this)]=this,e.Anim._startTimer(),this.fire(s)},_pause:function(){this._set(r,null),this._set(f,!0),delete p[e.stamp(this)],this.fire("pause")},_resume:function(){this._set(f,!1),p[e.stamp(this)]=this,this._set(r,new Date-this.get(i)),e.Anim._startTimer(),this.fire("resume")},_end:function(t){var n=this.get("duration")*1e3;t&&this._runAttrs(n,n,this.get(l)),this._set(r,null),this._set(i,0),this._set(f,!1),delete p[e.stamp(this)],this.fire(u,{elapsed:this.get(i)})},_runFrame:function(){var e=this._runtimeAttr.duration,t=new Date-this.get(r),n=this.get(l),s=t>=e;this._runAttrs(t,e,n),this._actualFrames+=1,this._set(i,t),this.fire(o),s&&this._lastFrame()},_runAttrs:function(t,n,r){var i=this._runtimeAttr,s=e.Anim.behaviors,o=i.easing,u=n,a=!1,f,l,c;t>=n&&(a=!0),r&&(t=n-t,u=0);for(c in i)i[c].to&&(f=i[c],l=c in s&&"set"in s[c]?s[c].set:e.Anim.DEFAULT_SETTER,a?l(this,c,f.from,f.to,u,n,o,f.unit):l(this,c,f.from,f.to,t,n,o,f.unit))},_lastFrame:function(){var e=this.get("iterations"),t=this.get(c);t+=1,e==="infinite"||t<e?(this.get("direction")==="alternate"&&this.set(l,!this.get(l)),this.fire("iteration")):(t=0,this._end()),this._set(r,new Date),this._set(c,t)},_initAnimAttr:function(){var t=this.get("from")||{},n=this.get("to")||{},r={duration:this.get("duration")*1e3,easing:this.get("easing")},i=e.Anim.behaviors,s=this.get(a),o,u,f;e.each(n,function(n,a){typeof n=="function"&&(n=n.call(this,s)),u=t[a],u===undefined?u=a in i&&"get"in i[a]?i[a].get(this,a):e.Anim.DEFAULT_GETTER(this,a):typeof u=="function"&&(u=u.call(this,s));var l=e.Anim.RE_UNITS.exec(u),c=e.Anim.RE_UNITS.exec(n);u=l?l[1]:u,f=c?c[1]:n,o=c?c[2]:l?l[2]:"",!o&&e.Anim.RE_DEFAULT_UNIT.test(a)&&(o=e.Anim.DEFAULT_UNIT);if(!u||!f){e.error('invalid "from" or "to" for "'+a+'"',"Anim");return}r[a]={from:e.Lang.isObject(u)?e.clone(u):u,to:f,unit:o}},this),this._runtimeAttr=r},_getOffset:function(e){var t=this._node,n=t.getComputedStyle(e),r=e==="left"?"getX":"getY",i=e==="left"?"setX":"setY",s;return n==="auto"&&(s=t.getStyle("position"),s==="absolute"||s==="fixed"?(n=t[r](),t[i](n)):n=0),n},destructor:function(){delete e.Anim._instances[e.stamp(this)]}};e.extend(e.Anim,e.Base,v)},"3.16.0",{requires:["base-base","node-style"]});
/*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/

YUI.add("anim-color",function(e,t){var n=Number;e.Anim.getUpdatedColorValue=function(t,r,i,s,o){return t=e.Color.re_RGB.exec(e.Color.toRGB(t)),r=e.Color.re_RGB.exec(e.Color.toRGB(r)),(!t||t.length<3||!r||r.length<3)&&e.error("invalid from or to passed to color behavior"),"rgb("+[Math.floor(o(i,n(t[1]),n(r[1])-n(t[1]),s)),Math.floor(o(i,n(t[2]),n(r[2])-n(t[2]),s)),Math.floor(o(i,n(t[3]),n(r[3])-n(t[3]),s))].join(", ")+")"},e.Anim.behaviors.color={set:function(t,n,r,i,s,o,u){t._node.setStyle(n,e.Anim.getUpdatedColorValue(r,i,s,o,u))},get:function(e,t){var n=e._node.getComputedStyle(t);return n=n==="transparent"?"rgb(255, 255, 255)":n,n}},e.each(["backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],function(t){e.Anim.behaviors[t]=e.Anim.behaviors.color})},"3.16.0",{requires:["anim-base"]});
/*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/

YUI.add("anim-xy",function(e,t){var n=Number;e.Anim.behaviors.xy={set:function(e,t,r,i,s,o,u){e._node.setXY([u(s,n(r[0]),n(i[0])-n(r[0]),o),u(s,n(r[1]),n(i[1])-n(r[1]),o)])},get:function(e){return e._node.getXY()}}},"3.16.0",{requires:["anim-base","node-screen"]});
/*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/

YUI.add("anim-curve",function(e,t){e.Anim.behaviors.curve={set:function(t,n,r,i,s,o,u){r=r.slice.call(r),i=i.slice.call(i);var a=u(s,0,100,o)/100;i.unshift(r),t._node.setXY(e.Anim.getBezier(i,a))},get:function(e){return e._node.getXY()}},e.Anim.getBezier=function(e,t){var n=e.length,r=[],i,s;for(i=0;i<n;++i)r[i]=[e[i][0],e[i][1]];for(s=1;s<n;++s)for(i=0;i<n-s;++i)r[i][0]=(1-t)*r[i][0]+t*r[parseInt(i+1,10)][0],r[i][1]=(1-t)*r[i][1]+t*r[parseInt(i+1,10)][1];return[r[0][0],r[0][1]]}},"3.16.0",{requires:["anim-xy"]});
/*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/

YUI.add("anim-easing",function(e,t){var n={easeNone:function(e,t,n,r){return n*e/r+t},easeIn:function(e,t,n,r){return n*(e/=r)*e+t},easeOut:function(e,t,n,r){return-n*(e/=r)*(e-2)+t},easeBoth:function(e,t,n,r){return(e/=r/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t},easeInStrong:function(e,t,n,r){return n*(e/=r)*e*e*e+t},easeOutStrong:function(e,t,n,r){return-n*((e=e/r-1)*e*e*e-1)+t},easeBothStrong:function(e,t,n,r){return(e/=r/2)<1?n/2*e*e*e*e+t:-n/2*((e-=2)*e*e*e-2)+t},elasticIn:function(e,t,n,r,i,s){var o;return e===0?t:(e/=r)===1?t+n:(s||(s=r*.3),!i||i<Math.abs(n)?(i=n,o=s/4):o=s/(2*Math.PI)*Math.asin(n/i),-(i*Math.pow(2,10*(e-=1))*Math.sin((e*r-o)*2*Math.PI/s))+t)},elasticOut:function(e,t,n,r,i,s){var o;return e===0?t:(e/=r)===1?t+n:(s||(s=r*.3),!i||i<Math.abs(n)?(i=n,o=s/4):o=s/(2*Math.PI)*Math.asin(n/i),i*Math.pow(2,-10*e)*Math.sin((e*r-o)*2*Math.PI/s)+n+t)},elasticBoth:function(e,t,n,r,i,s){var o;return e===0?t:(e/=r/2)===2?t+n:(s||(s=r*.3*1.5),!i||i<Math.abs(n)?(i=n,o=s/4):o=s/(2*Math.PI)*Math.asin(n/i),e<1?-0.5*i*Math.pow(2,10*(e-=1))*Math.sin((e*r-o)*2*Math.PI/s)+t:i*Math.pow(2,-10*(e-=1))*Math.sin((e*r-o)*2*Math.PI/s)*.5+n+t)},backIn:function(e,t,n,r,i){return i===undefined&&(i=1.70158),e===r&&(e-=.001),n*(e/=r)*e*((i+1)*e-i)+t},backOut:function(e,t,n,r,i){return typeof i=="undefined"&&(i=1.70158),n*((e=e/r-1)*e*((i+1)*e+i)+1)+t},backBoth:function(e,t,n,r,i){return typeof i=="undefined"&&(i=1.70158),(e/=r/2)<1?n/2*e*e*(((i*=1.525)+1)*e-i)+t:n/2*((e-=2)*e*(((i*=1.525)+1)*e+i)+2)+t},bounceIn:function(t,n,r,i){return r-e.Easing.bounceOut(i-t,0,r,i)+n},bounceOut:function(e,t,n,r){return(e/=r)<1/2.75?n*7.5625*e*e+t:e<2/2.75?n*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?n*(7.5625*(e-=2.25/2.75)*e+.9375)+t:n*(7.5625*(e-=2.625/2.75)*e+.984375)+t},bounceBoth:function(t,n,r,i){return t<i/2?e.Easing.bounceIn(t*2,0,r,i)*.5+n:e.Easing.bounceOut(t*2-i,0,r,i)*.5+r*.5+n}};e.Easing=n},"3.16.0",{requires:["anim-base"]});
/*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/

YUI.add("anim-node-plugin",function(e,t){var n=function(t){t=t?e.merge(t):{},t.node=t.host,n.superclass.constructor.apply(this,arguments)};n.NAME="nodefx",n.NS="fx",e.extend(n,e.Anim),e.namespace("Plugin"),e.Plugin.NodeFX=n},"3.16.0",{requires:["node-pluginhost","anim-base"]});
/*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/

YUI.add("anim-scroll",function(e,t){var n=Number;e.Anim.behaviors.scroll={set:function(e,t,r,i,s,o,u){var a=e._node,f=[u(s,n(r[0]),n(i[0])-n(r[0]),o),u(s,n(r[1]),n(i[1])-n(r[1]),o)];f[0]&&a.set("scrollLeft",f[0]),f[1]&&a.set("scrollTop",f[1])},get:function(e){var t=e._node;return[t.get("scrollLeft"),t.get("scrollTop")]}}},"3.16.0",{requires:["anim-base"]});
YUI.add("anchor-repositioner",function(n,e){require("hermes-core/flog")(e);var o=10;n.AnchorRepositioner=(function(){function e(n,e){l.push({key:n,y:e})}function i(){var e,o=n.config.win.location.hash.replace("#","");o&&(e=n.one('[id="'+o+'"], [name="'+o+'"]'))&&t(e)}function t(e){e instanceof n.Node||(e=n.one(e)),a=e}function r(e){var o,i,r;e&&t(e),a&&(a.scrollIntoView(!0),o=n.config.win.scrollY||n.config.win.pageYOffset,i=Math.ceil(a.getY()),r=l.reduce(function(n,e){return n+e.y},0),i>=o&&i<=o+r&&(s&&s.stop(),(s=new n.Anim({duration:.25,node:"win",easing:"easeOut",to:{scroll:[0,i-r]}})).on("end",function(n){s=null}),s.run()))}function c(o,i){i instanceof n.Node&&e(o,parseInt(i.getComputedStyle("height"),10))}function f(n){return l.some(function(e,o){if(e.key===n)return l.splice(o,1),!0})}var u,a,s,l=[];return u||(i(),e("default",o),n.on("hashchange",function(n){i(),r()},n.config.win),u={addOffset:c,removeOffset:f,jumpTo:r}),u})()},"@VERSION@",{requires:["node","anim"]});YUI.add("autotrack",function(t,e){!(function(){function t(){t=function(){},et.Symbol||(et.Symbol=e)}function e(t){return"jscomp_symbol_"+(t||"")+it++}function i(){t();var e=et.Symbol.iterator;e||(e=et.Symbol.iterator=et.Symbol("iterator")),"function"!=typeof Array.prototype[e]&&tt(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return n(this)}}),i=function(){}}function n(t){var e=0;return(function(t){return i(),t={next:t},t[et.Symbol.iterator]=function(){return this},t})(function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}})}function o(e){i(),t(),i();var o=e[Symbol.iterator];return o?o.call(e):n(e)}function s(t){if(!(t instanceof Array)){t=o(t);for(var e,i=[];!(e=t.next()).done;)i.push(e.value);t=i}return t}function r(t,e){if(t&&1==t.nodeType&&e){if("string"==typeof e||1==e.nodeType)return t==e||a(t,e);if("length"in e)for(var i,n=0;i=e[n];n++)if(t==i||a(t,i))return!0}return!1}function a(t,e){if("string"!=typeof e)return!1;if(ot)return ot.call(t,e);e=t.parentNode.querySelectorAll(e);for(var i,n=0;i=e[n];n++)if(i==t)return!0;return!1}function h(t,e,i){function n(t){var n;if(s.composed&&"function"==typeof t.composedPath)for(var o,a=t.composedPath(),h=0;o=a[h];h++)1==o.nodeType&&r(o,e)&&(n=o);else t:{if((n=t.target)&&1==n.nodeType&&e)for(n=[n].concat((function(t){for(var e=[];t&&t.parentNode&&1==t.parentNode.nodeType;)t=t.parentNode,e.push(t);return e})(n)),a=0;h=n[a];a++)if(r(h,e)){n=h;break t}n=void 0}n&&i.call(n,t,n)}var o=document,s=void 0===(s={composed:!0,S:!0})?{}:s;return o.addEventListener(t,n,s.S),{j:function(){o.removeEventListener(t,n,s.S)}}}function c(t){if(t=t&&"."!=t?t:location.href,at[t])return at[t];if(rt.href=t,"."==t.charAt(0)||"/"==t.charAt(0))return c(rt.href);var e="0"==(e="80"==rt.port||"443"==rt.port?"":rt.port)?"":e,i=rt.host.replace(st,"");return at[t]={hash:rt.hash,host:i,hostname:rt.hostname,href:rt.href,origin:rt.origin?rt.origin:rt.protocol+"//"+i,pathname:"/"==rt.pathname.charAt(0)?rt.pathname:"/"+rt.pathname,port:e,protocol:rt.protocol,search:rt.search}}function u(t,e){var i=this;this.context=t,this.P=e,this.f=(this.c=/Task$/.test(e))?t.get(e):t[e],this.b=[],this.a=[],this.g=function(t){for(var e=[],n=0;n<arguments.length;++n)e[n-0]=arguments[n];return i.a[i.a.length-1].apply(null,[].concat(s(e)))},this.c?t.set(e,this.g):t[e]=this.g}function l(t,e,i){(t=b(t,e)).b.push(i),f(t)}function d(t,e,i){-1<(i=(t=b(t,e)).b.indexOf(i))&&(t.b.splice(i,1),0<t.b.length?f(t):t.j())}function f(t){t.a=[];for(var e,i=0;e=t.b[i];i++){var n=t.a[i-1]||t.f.bind(t.context);t.a.push(e(n))}}function b(t,e){var i=ht.filter(function(i){return i.context==t&&i.P==e})[0];return i||(i=new u(t,e),ht.push(i)),i}function v(t,e,i,n,o,s){if("function"==typeof n){var r=i.get("buildHitTask");return{buildHitTask:function(i){i.set(t,null,!0),i.set(e,null,!0),n(i,o,s),r(i)}}}return ut({},t,e)}function p(t,e){var i=(function(t){var e={};if(!t||1!=t.nodeType)return e;if(!(t=t.attributes).length)return{};for(var i,n=0;i=t[n];n++)e[i.name]=i.value;return e})(t),n={};return Object.keys(i).forEach(function(t){if(!t.indexOf(e)&&t!=e+"on"){var o=i[t];"true"==o&&(o=!0),"false"==o&&(o=!1),t=(function(t){return t.replace(/[\-\_]+(\w?)/g,function(t,e){return e.toUpperCase()})})(t.slice(e.length)),n[t]=o}}),n}function m(t,e){var i;return function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];clearTimeout(i),i=setTimeout(function(){return t.apply(null,[].concat(s(o)))},e)}}function g(t){function e(){i||(i=!0,t())}var i=!1;return setTimeout(e,2e3),e}function w(t){return"object"==typeof t&&null!==t}function y(t,e){var i=window.GoogleAnalyticsObject||"ga";window[i]=window[i]||function(t){for(var e=[],n=0;n<arguments.length;++n)e[n-0]=arguments[n];(window[i].q=window[i].q||[]).push(e)},window.gaDevIds=window.gaDevIds||[],0>window.gaDevIds.indexOf("i5iSjo")&&window.gaDevIds.push("i5iSjo"),window[i]("provide",t,e),window.gaplugins=window.gaplugins||{},window.gaplugins[t.charAt(0).toUpperCase()+t.slice(1)]=e}function k(t,e){t.set("&_av","2.4.1");var i=t.get("&_au");if((i=parseInt(i||"0",16).toString(2)).length<ft)for(var n=ft-i.length;n;)i="0"+i,n--;e=ft-e,i=i.substr(0,e)+1+i.substr(e+1),t.set("&_au",parseInt(i||"0",2).toString(16))}function T(t,e){k(t,dt.T),this.a=ut({},e),this.g=t,this.b=this.a.stripQuery&&this.a.queryDimensionIndex?"dimension"+this.a.queryDimensionIndex:null,this.f=this.f.bind(this),this.c=this.c.bind(this),l(t,"get",this.f),l(t,"buildHitTask",this.c)}function O(t,e){var i=c(e.page||e.location),n=i.pathname;if(t.a.indexFilename){var s=n.split("/");t.a.indexFilename==s[s.length-1]&&(s[s.length-1]="",n=s.join("/"))}return"remove"==t.a.trailingSlash?n=n.replace(/\/+$/,""):"add"==t.a.trailingSlash&&(/\.\w+$/.test(n)||"/"==n.substr(-1)||(n+="/")),n={page:n+(t.a.stripQuery?(function(t,e){if(Array.isArray(t.a.queryParamsWhitelist)){var i=[];return e.slice(1).split("&").forEach(function(e){var n=o(e.split("="));e=n.next().value,n=n.next().value,-1<t.a.queryParamsWhitelist.indexOf(e)&&n&&i.push([e,n])}),i.length?"?"+i.map(function(t){return t.join("=")}).join("&"):""}return""})(t,i.search):i.search)},e.location&&(n.location=e.location),t.b&&(n[t.b]=i.search.slice(1)||"(not set)"),"function"==typeof t.a.urlFieldsFilter?(e=t.a.urlFieldsFilter(n,c),i={page:e.page,location:e.location},t.b&&(i[t.b]=e[t.b]),i):n}function E(t,e){var i=this;if(k(t,dt.U),window.addEventListener){this.a=ut({events:["click"],fieldsObj:{},attributePrefix:"ga-"},e),this.f=t,this.c=this.c.bind(this);var n="["+this.a.attributePrefix+"on]";this.b={},this.a.events.forEach(function(t){i.b[t]=h(t,n,i.c)})}}function I(t,e){var i=this;k(t,dt.V),window.IntersectionObserver&&window.MutationObserver&&(this.a=ut({rootMargin:"0px",fieldsObj:{},attributePrefix:"ga-"},e),this.c=t,this.M=this.M.bind(this),this.O=this.O.bind(this),this.K=this.K.bind(this),this.L=this.L.bind(this),this.b=null,this.items=[],this.i={},this.h={},(function(t){"loading"==document.readyState?document.addEventListener("DOMContentLoaded",function e(){document.removeEventListener("DOMContentLoaded",e),t()}):t()})(function(){i.a.elements&&i.observeElements(i.a.elements)}))}function S(t,e){var i=[],n={},o={};return e.length&&e.forEach(function(e){e=j(e),i.push(e),o[e.id]=t.i[e.id]||null,n[e.threshold]=t.h[e.threshold]||null}),{items:i,i:o,h:n}}function x(t,e,i){1==e.nodeType&&e.id in t.i&&i(e.id);for(var n,o=0;n=e.childNodes[o];o++)x(t,n,i)}function j(t){return"string"==typeof t&&(t={id:t}),ut({threshold:0,trackFirstImpressionOnly:!0},t)}function L(){this.a={}}function F(t,e){e=void 0===e?{}:e,this.a={},this.b=t,this.w=e,this.l=null}function A(t,e,i){return t=["autotrack",t,e].join(":"),vt[t]||(vt[t]=new F(t,i),pt||(window.addEventListener("storage",C),pt=!0)),vt[t]}function M(){if(null!=bt)return bt;try{window.localStorage.setItem("autotrack","autotrack"),window.localStorage.removeItem("autotrack"),bt=!0}catch(t){bt=!1}return bt}function P(t){if(t.l={},M())try{window.localStorage.removeItem(t.b)}catch(t){}}function C(t){var e=vt[t.key];if(e){var i=ut({},e.w,D(t.oldValue));t=ut({},e.w,D(t.newValue)),e.l=t,e.ca("externalSet",t,i)}}function D(t){var e={};if(t)try{e=JSON.parse(t)}catch(t){}return e}function N(t,e,i){this.f=t,this.timeout=e||gt,this.timeZone=i,this.b=this.b.bind(this),l(t,"sendHitTask",this.b);try{this.c=new Intl.DateTimeFormat("en-US",{timeZone:this.timeZone})}catch(t){}this.a=A(t.get("trackingId"),"session",{hitTime:0,isExpired:!1}),this.a.get().id||this.a.set({id:lt()})}function H(t,e,i){var n=t.get("trackingId");return mt[n]?mt[n]:mt[n]=new N(t,e,i)}function B(t){return t.a.get().id}function U(t,e){k(t,dt.W),window.addEventListener&&(this.b=ut({increaseThreshold:20,sessionTimeout:gt,fieldsObj:{}},e),this.f=t,this.c=q(this),this.g=m(this.g.bind(this),500),this.o=this.o.bind(this),this.a=A(t.get("trackingId"),"plugins/max-scroll-tracker"),this.m=H(t,this.b.sessionTimeout,this.b.timeZone),l(t,"set",this.o),V(this))}function V(t){100>(t.a.get()[t.c]||0)&&window.addEventListener("scroll",t.g)}function q(t){return(t=c(t.f.get("page")||t.f.get("location"))).pathname+t.search}function R(t,e){k(t,dt.X),window.matchMedia&&(this.a=ut({changeTemplate:this.changeTemplate,changeTimeout:1e3,fieldsObj:{}},e),w(this.a.definitions)&&(e=this.a.definitions,this.a.definitions=Array.isArray(e)?e:[e],this.b=t,this.c=[],(function(t){t.a.definitions.forEach(function(e){if(e.name&&e.dimensionIndex){var i=K(e);t.b.set("dimension"+e.dimensionIndex,i),(function(t,e){e.items.forEach(function(i){i=_(i.media);var n=m(function(){var i=K(e),n=t.b.get("dimension"+e.dimensionIndex);i!==n&&(t.b.set("dimension"+e.dimensionIndex,i),i={transport:"beacon",eventCategory:e.name,eventAction:"change",eventLabel:t.a.changeTemplate(n,i),nonInteraction:!0},t.b.send("event",v(i,t.a.fieldsObj,t.b,t.a.hitFilter)))},t.a.changeTimeout);i.addListener(n),t.c.push({fa:i,da:n})})})(t,e)}})})(this)))}function K(t){var e;return t.items.forEach(function(t){_(t.media).matches&&(e=t)}),e?e.name:"(not set)"}function _(t){return wt[t]||(wt[t]=window.matchMedia(t))}function Z(t,e){k(t,dt.Y),window.addEventListener&&(this.a=ut({formSelector:"form",shouldTrackOutboundForm:this.shouldTrackOutboundForm,fieldsObj:{},attributePrefix:"ga-"},e),this.b=t,this.c=h("submit",this.a.formSelector,this.f.bind(this)))}function G(t,e){var i=this;k(t,dt.Z),window.addEventListener&&(this.a=ut({events:["click"],linkSelector:"a, area",shouldTrackOutboundLink:this.shouldTrackOutboundLink,fieldsObj:{},attributePrefix:"ga-"},e),this.c=t,this.f=this.f.bind(this),this.b={},this.a.events.forEach(function(t){i.b[t]=h(t,i.a.linkSelector,i.f)}))}function J(t,e){var i=this;k(t,dt.$),document.visibilityState&&(this.a=ut({sessionTimeout:gt,visibleThreshold:5e3,sendInitialPageview:!1,fieldsObj:{}},e),this.b=t,this.g=document.visibilityState,this.m=null,this.o=!1,this.v=this.v.bind(this),this.s=this.s.bind(this),this.G=this.G.bind(this),this.N=this.N.bind(this),this.c=A(t.get("trackingId"),"plugins/page-visibility-tracker"),(function(t,e){(t.a.externalSet=t.a.externalSet||[]).push(e)})(this.c,this.N),this.f=H(t,this.a.sessionTimeout,this.a.timeZone),l(t,"set",this.v),window.addEventListener("unload",this.G),document.addEventListener("visibilitychange",this.s),(function(t,e){function i(){clearTimeout(o.timeout),o.send&&d(t,"send",o.send),delete ct[n],o.R.forEach(function(t){return t()})}var n=t.get("trackingId"),o=ct[n]=ct[n]||{};clearTimeout(o.timeout),o.timeout=setTimeout(i,0),o.R=o.R||[],o.R.push(e),o.send||(o.send=function(t){return function(e){for(var n=[],o=0;o<arguments.length;++o)n[o-0]=arguments[o];i(),t.apply(null,[].concat(s(n)))}},l(t,"send",o.send))})(this.b,function(){if("visible"==document.visibilityState)i.a.sendInitialPageview&&(W(i,{ea:!0}),i.o=!0),i.c.set({time:+new Date,state:"visible",pageId:yt,sessionId:B(i.f)});else if(i.a.sendInitialPageview&&i.a.pageLoadsMetricIndex){var t=((t={}).transport="beacon",t.eventCategory="Page Visibility",t.eventAction="page load",t.eventLabel="(not set)",t["metric"+i.a.pageLoadsMetricIndex]=1,t.nonInteraction=!0,t);i.b.send("event",v(t,i.a.fieldsObj,i.b,i.a.hitFilter))}}))}function $(t,e,i){var n=((n={hitTime:i=(i||{}).hitTime})||{}).hitTime;(e=e.time?(n||+new Date)-e.time:0)&&e>=t.a.visibleThreshold&&(e=Math.round(e/1e3),n={transport:"beacon",nonInteraction:!0,eventCategory:"Page Visibility",eventAction:"track",eventValue:e,eventLabel:"(not set)"},i&&(n.queueTime=+new Date-i),t.a.visibleMetricIndex&&(n["metric"+t.a.visibleMetricIndex]=e),t.b.send("event",v(n,t.a.fieldsObj,t.b,t.a.hitFilter)))}function W(t,e){e=(i=e||{}).hitTime;var i=i.ea,n={transport:"beacon"};e&&(n.queueTime=+new Date-e),i&&t.a.pageLoadsMetricIndex&&(n["metric"+t.a.pageLoadsMetricIndex]=1),t.b.send("pageview",v(n,t.a.fieldsObj,t.b,t.a.hitFilter))}function Y(t,e){k(t,dt.aa),window.addEventListener&&(this.a=ut({fieldsObj:{},hitFilter:null},e),this.b=t,this.u=this.u.bind(this),this.J=this.J.bind(this),this.D=this.D.bind(this),this.A=this.A.bind(this),this.B=this.B.bind(this),this.F=this.F.bind(this),"complete"!=document.readyState?window.addEventListener("load",this.u):this.u())}function Q(t,e){k(t,dt.ba),history.pushState&&window.addEventListener&&(this.a=ut({shouldTrackUrlChange:this.shouldTrackUrlChange,trackReplaceState:!1,fieldsObj:{},hitFilter:null},e),this.b=t,this.c=location.pathname+location.search,this.H=this.H.bind(this),this.I=this.I.bind(this),this.C=this.C.bind(this),l(history,"pushState",this.H),l(history,"replaceState",this.I),window.addEventListener("popstate",this.C))}function X(t,e){setTimeout(function(){var i=t.c,n=location.pathname+location.search;i!=n&&t.a.shouldTrackUrlChange.call(t,n,i)&&(t.c=n,t.b.set({page:n,title:document.title}),(e||t.a.trackReplaceState)&&t.b.send("pageview",v({transport:"beacon"},t.a.fieldsObj,t.b,t.a.hitFilter)))},0)}var z,tt="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,i){if(i.get||i.set)throw new TypeError("ES3 does not support getters and setters.");t!=Array.prototype&&t!=Object.prototype&&(t[e]=i.value)},et="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,it=0,nt=window.Element.prototype,ot=nt.matches||nt.matchesSelector||nt.webkitMatchesSelector||nt.mozMatchesSelector||nt.msMatchesSelector||nt.oMatchesSelector,st=/:(80|443)$/,rt=document.createElement("a"),at={},ht=[];u.prototype.j=function(){var t=ht.indexOf(this);-1<t&&(ht.splice(t,1),this.c?this.context.set(this.P,this.f):this.context[this.P]=this.f)};var ct={},ut=Object.assign||function(t,e){for(var i=[],n=1;n<arguments.length;++n)i[n-1]=arguments[n];for(var n=0,o=i.length;n<o;n++){var s,r=Object(i[n]);for(s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},lt=function t(e){return e?(e^16*Math.random()>>e/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,t)},dt={T:1,U:2,V:3,X:4,Y:5,Z:6,$:7,aa:8,ba:9,W:10},ft=Object.keys(dt).length;T.prototype.f=function(t){var e=this;return function(i){if("page"==i||i==e.b){var n={location:t("location"),page:t("page")};return O(e,n)[i]}return t(i)}},T.prototype.c=function(t){var e=this;return function(i){var n=O(e,{location:i.get("location"),page:i.get("page")});i.set(n,null,!0),t(i)}},T.prototype.remove=function(){d(this.g,"get",this.f),d(this.g,"buildHitTask",this.c)},y("cleanUrlTracker",T),E.prototype.c=function(t,e){i=this.a.attributePrefix;if(!(0>e.getAttribute(i+"on").split(/\s*,\s*/).indexOf(t.type))){var i=p(e,i),n=ut({},this.a.fieldsObj,i);this.f.send(i.hitType||"event",v({transport:"beacon"},n,this.f,this.a.hitFilter,e,t))}},E.prototype.remove=function(){var t=this;Object.keys(this.b).forEach(function(e){t.b[e].j()})},y("eventTracker",E),(z=I.prototype).observeElements=function(t){var e=this;t=S(this,t),this.items=this.items.concat(t.items),this.i=ut({},t.i,this.i),this.h=ut({},t.h,this.h),t.items.forEach(function(t){var i=e.h[t.threshold]=e.h[t.threshold]||new IntersectionObserver(e.O,{rootMargin:e.a.rootMargin,threshold:[+t.threshold]});(t=e.i[t.id]||(e.i[t.id]=document.getElementById(t.id)))&&i.observe(t)}),this.b||(this.b=new MutationObserver(this.M),this.b.observe(document.body,{childList:!0,subtree:!0})),requestAnimationFrame(function(){})},z.unobserveElements=function(t){var e=[],i=[];if(this.items.forEach(function(n){t.some(function(t){return(t=j(t)).id===n.id&&t.threshold===n.threshold&&t.trackFirstImpressionOnly===n.trackFirstImpressionOnly})?i.push(n):e.push(n)}),e.length){var n=S(this,e),o=S(this,i);this.items=n.items,this.i=n.i,this.h=n.h,i.forEach(function(t){if(!n.i[t.id]){var e=o.h[t.threshold],i=o.i[t.id];i&&e.unobserve(i),n.h[t.threshold]||o.h[t.threshold].disconnect()}})}else this.unobserveAllElements()},z.unobserveAllElements=function(){var t=this;Object.keys(this.h).forEach(function(e){t.h[e].disconnect()}),this.b.disconnect(),this.b=null,this.items=[],this.i={},this.h={}},z.M=function(t){for(var e,i=0;e=t[i];i++){for(var n,o=0;n=e.removedNodes[o];o++)x(this,n,this.L);for(o=0;n=e.addedNodes[o];o++)x(this,n,this.K)}},z.O=function(t){for(var e,i=[],n=0;e=t[n];n++)for(var o,s=0;o=this.items[s];s++){var r;if((r=e.target.id===o.id)&&((r=o.threshold)?r=e.intersectionRatio>=r:(r=e.intersectionRect,r=0<r.top||0<r.bottom||0<r.left||0<r.right)),r){a=o.id;r=document.getElementById(a);var a={transport:"beacon",eventCategory:"Viewport",eventAction:"impression",eventLabel:a,nonInteraction:!0},h=ut({},this.a.fieldsObj,p(r,this.a.attributePrefix));this.c.send("event",v(a,h,this.c,this.a.hitFilter,r)),o.trackFirstImpressionOnly&&i.push(o)}}i.length&&this.unobserveElements(i)},z.K=function(t){var e=this,i=this.i[t]=document.getElementById(t);this.items.forEach(function(n){t==n.id&&e.h[n.threshold].observe(i)})},z.L=function(t){var e=this,i=this.i[t];this.items.forEach(function(n){t==n.id&&e.h[n.threshold].unobserve(i)}),this.i[t]=null},z.remove=function(){this.unobserveAllElements()},y("impressionTracker",I),L.prototype.ca=function(t,e){for(var i=[],n=1;n<arguments.length;++n)i[n-1]=arguments[n];(this.a[t]=this.a[t]||[]).forEach(function(t){return t.apply(null,[].concat(s(i)))})};var bt,vt={},pt=!1;!(function(t,e){function i(){}i.prototype=e.prototype,t.ha=e.prototype,t.prototype=new i,t.prototype.constructor=t;for(var n in e)if(Object.defineProperties){var o=Object.getOwnPropertyDescriptor(e,n);o&&Object.defineProperty(t,n,o)}else t[n]=e[n]})(F,L),F.prototype.get=function(){if(this.l)return this.l;if(M())try{this.l=D(window.localStorage.getItem(this.b))}catch(t){}return this.l=ut({},this.w,this.l)},F.prototype.set=function(t){if(this.l=ut({},this.w,this.l,t),M())try{var e=JSON.stringify(this.l);window.localStorage.setItem(this.b,e)}catch(t){}},F.prototype.j=function(){delete vt[this.b],Object.keys(vt).length||(window.removeEventListener("storage",C),pt=!1)};var mt={};N.prototype.isExpired=function(t){if((t=void 0===t?B(this):t)!=B(this))return!0;if((t=this.a.get()).isExpired)return!0;var e=t.hitTime;return!!(e&&(t=new Date,e=new Date(e),t-e>6e4*this.timeout||this.c&&this.c.format(t)!=this.c.format(e)))},N.prototype.b=function(t){var e=this;return function(i){t(i);i="start"==(n=i.get("sessionControl"))||e.isExpired();var n="end"==n,o=e.a.get();o.hitTime=+new Date,i&&(o.isExpired=!1,o.id=lt()),n&&(o.isExpired=!0),e.a.set(o)}},N.prototype.j=function(){d(this.f,"sendHitTask",this.b),this.a.j(),delete mt[this.f.get("trackingId")]};var gt=30;U.prototype.g=function(){var t=document.documentElement,e=document.body,t=Math.min(100,Math.max(0,Math.round(window.pageYOffset/(Math.max(t.offsetHeight,t.scrollHeight,e.offsetHeight,e.scrollHeight)-window.innerHeight)*100)));if((e=B(this.m))!=this.a.get().sessionId&&(P(this.a),this.a.set({sessionId:e})),this.m.isExpired(this.a.get().sessionId))P(this.a);else if(e=this.a.get()[this.c]||0,t>e&&(100!=t&&100!=e||window.removeEventListener("scroll",this.g),e=t-e,100==t||e>=this.b.increaseThreshold)){var i={};this.a.set((i[this.c]=t,i.sessionId=B(this.m),i)),t={transport:"beacon",eventCategory:"Max Scroll",eventAction:"increase",eventValue:e,eventLabel:String(t),nonInteraction:!0},this.b.maxScrollMetricIndex&&(t["metric"+this.b.maxScrollMetricIndex]=e),this.f.send("event",v(t,this.b.fieldsObj,this.f,this.b.hitFilter))}},U.prototype.o=function(t){var e=this;return function(i,n){t(i,n);var o={};(w(i)?i:(o[i]=n,o)).page&&(i=e.c,e.c=q(e),e.c!=i&&V(e))}},U.prototype.remove=function(){this.m.j(),window.removeEventListener("scroll",this.g),d(this.f,"set",this.o)},y("maxScrollTracker",U);var wt={};R.prototype.remove=function(){for(var t,e=0;t=this.c[e];e++)t.fa.removeListener(t.da)},R.prototype.changeTemplate=function(t,e){return t+" => "+e},y("mediaQueryTracker",R),Z.prototype.f=function(t,e){var i={transport:"beacon",eventCategory:"Outbound Form",eventAction:"submit",eventLabel:c(e.action).href};if(this.a.shouldTrackOutboundForm(e,c)){navigator.sendBeacon||(t.preventDefault(),i.hitCallback=g(function(){e.submit()}));var n=ut({},this.a.fieldsObj,p(e,this.a.attributePrefix));this.b.send("event",v(i,n,this.b,this.a.hitFilter,e,t))}},Z.prototype.shouldTrackOutboundForm=function(t,e){return(t=e(t.action)).hostname!=location.hostname&&"http"==t.protocol.slice(0,4)},Z.prototype.remove=function(){this.c.j()},y("outboundFormTracker",Z),G.prototype.f=function(t,e){var i=this;if(this.a.shouldTrackOutboundLink(e,c)){var n=e.getAttribute("href")||e.getAttribute("xlink:href"),o=c(n),s=v(o={transport:"beacon",eventCategory:"Outbound Link",eventAction:t.type,eventLabel:o.href},ut({},this.a.fieldsObj,p(e,this.a.attributePrefix)),this.c,this.a.hitFilter,e,t);if(navigator.sendBeacon||"click"!=t.type||"_blank"==e.target||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||1<t.which)this.c.send("event",s);else{var r=function(){if(window.removeEventListener("click",r),!t.defaultPrevented){t.preventDefault();var e=s.hitCallback;s.hitCallback=g(function(){"function"==typeof e&&e(),location.href=n})}i.c.send("event",s)};window.addEventListener("click",r)}}},G.prototype.shouldTrackOutboundLink=function(t,e){return t=t.getAttribute("href")||t.getAttribute("xlink:href"),(e=e(t)).hostname!=location.hostname&&"http"==e.protocol.slice(0,4)},G.prototype.remove=function(){var t=this;Object.keys(this.b).forEach(function(e){t.b[e].j()})},y("outboundLinkTracker",G);var yt=lt();(z=J.prototype).s=function(){var t=this;if("visible"==document.visibilityState||"hidden"==document.visibilityState){var e=(function(t){var e=t.c.get();return"visible"==t.g&&"hidden"==e.state&&e.pageId!=yt&&(e.state="visible",e.pageId=yt,t.c.set(e)),e})(this),i={time:+new Date,state:document.visibilityState,pageId:yt,sessionId:B(this.f)};"visible"==document.visibilityState&&this.a.sendInitialPageview&&!this.o&&(W(this),this.o=!0),"hidden"==document.visibilityState&&this.m&&clearTimeout(this.m),this.f.isExpired(e.sessionId)?(P(this.c),"hidden"==this.g&&"visible"==document.visibilityState&&(clearTimeout(this.m),this.m=setTimeout(function(){t.c.set(i),W(t,{hitTime:i.time})},this.a.visibleThreshold))):(e.pageId==yt&&"visible"==e.state&&$(this,e),this.c.set(i)),this.g=document.visibilityState}},z.v=function(t){var e=this;return function(i,n){var o={};(o=w(i)?i:(o[i]=n,o)).page&&o.page!==e.b.get("page")&&"visible"==e.g&&e.s(),t(i,n)}},z.N=function(t,e){t.time!=e.time&&(e.pageId!=yt||"visible"!=e.state||this.f.isExpired(e.sessionId)||$(this,e,{hitTime:t.time}))},z.G=function(){"hidden"!=this.g&&this.s()},z.remove=function(){this.c.j(),this.f.j(),d(this.b,"set",this.v),window.removeEventListener("unload",this.G),document.removeEventListener("visibilitychange",this.s)},y("pageVisibilityTracker",J),(z=Y.prototype).u=function(){if(window.FB)try{window.FB.Event.subscribe("edge.create",this.B),window.FB.Event.subscribe("edge.remove",this.F)}catch(t){}window.twttr&&this.J()},z.J=function(){var t=this;try{window.twttr.ready(function(){window.twttr.events.bind("tweet",t.D),window.twttr.events.bind("follow",t.A)})}catch(t){}},z.D=function(t){if("tweet"==t.region){var e={transport:"beacon",socialNetwork:"Twitter",socialAction:"tweet",socialTarget:t.data.url||t.target.getAttribute("data-url")||location.href};this.b.send("social",v(e,this.a.fieldsObj,this.b,this.a.hitFilter,t.target,t))}},z.A=function(t){if("follow"==t.region){var e={transport:"beacon",socialNetwork:"Twitter",socialAction:"follow",socialTarget:t.data.screen_name||t.target.getAttribute("data-screen-name")};this.b.send("social",v(e,this.a.fieldsObj,this.b,this.a.hitFilter,t.target,t))}},z.B=function(t){this.b.send("social",v({transport:"beacon",socialNetwork:"Facebook",socialAction:"like",socialTarget:t},this.a.fieldsObj,this.b,this.a.hitFilter))},z.F=function(t){this.b.send("social",v({transport:"beacon",socialNetwork:"Facebook",socialAction:"unlike",socialTarget:t},this.a.fieldsObj,this.b,this.a.hitFilter))},z.remove=function(){window.removeEventListener("load",this.u);try{window.FB.Event.unsubscribe("edge.create",this.B),window.FB.Event.unsubscribe("edge.remove",this.F)}catch(t){}!(function(t){try{window.twttr.ready(function(){window.twttr.events.unbind("tweet",t.D),window.twttr.events.unbind("follow",t.A)})}catch(t){}})(this)},y("socialWidgetTracker",Y),(z=Q.prototype).H=function(t){var e=this;return function(i){for(var n=[],o=0;o<arguments.length;++o)n[o-0]=arguments[o];t.apply(null,[].concat(s(n))),X(e,!0)}},z.I=function(t){var e=this;return function(i){for(var n=[],o=0;o<arguments.length;++o)n[o-0]=arguments[o];t.apply(null,[].concat(s(n))),X(e,!1)}},z.C=function(){X(this,!0)},z.shouldTrackUrlChange=function(t,e){return!(!t||!e)},z.remove=function(){d(history,"pushState",this.H),d(history,"replaceState",this.I),window.removeEventListener("popstate",this.C)},y("urlChangeTracker",Q)})()},"@VERSION@",{affinity:"client"});YUI.add("google-analytics",function(e,a){e.Analytics=(function(){function a(){ga.apply(null,arguments)}function t(){a("set","page",document.location.pathname),a("set","title",window.appContext.flapp.get("activeView").name),a("send","pageview")}function n(){a.apply(i,Array.prototype.concat.apply(["send","event"],arguments))}var i;Math.floor(Math.random()*Math.floor(100));return i||(a("create",{trackingId:e.config.flickr.google.analytics.property_id,sampleRate:e.config.flickr.google.analytics.sample_rate}),a("set","transport","beacon"),a("set","anonymizeIp",!0),a("require","eventTracker",{attributePrefix:"data-ga-"}),YUI_config.flickr.ga&&(a("set","expId",YUI_config.flickr.ga.experiment),a("set","expVar",YUI_config.flickr.ga.variation)),i={enqueue:a,sendPageView:t,sendEvent:n}),i})()},"@VERSION@",{requires:["autotrack"],affinity:"client"});YUI.add("client-app",function(e,i){function n(){A=!1}function t(i){var n,t,r=window.location,a=window.history,o=!1;if(r.search&&a.replaceState&&(n=e.QueryString.parse(r.search.replace("?","")),i.forEach(function(e){e in n&&(delete n[e],o=!0)}),o)){t=e.QueryString.stringify(n);try{a.replaceState({},"",r.pathname+(t?"?"+t:""))}catch(e){}}}function r(e,i){return i.betterUse(e,i)}function a(i){var n,t,r,a,o=[],c=["flickr.photos.addView","flickr.groups.updateViewDate","flickr.photos.getPhotos","flickr.people.addView","flickr.photosets.addView"];if(m.getViewCounter().flushQueue(),m.uploadIsInProgress())a=this.intlMessage({intlName:"client-app.UPLOAD_IN_PROGRESS"});else{for(n in m.writeAPICallsMadeOnThisPage)(t=m.writeAPICallsMadeOnThisPage[n]).completed||o.push(t);o.length&&(o.every(function(e){return-1!==c.indexOf(e.methodName)})||(e.config.flickr.requestConfig&&e.config.flickr.requestConfig.auth&&e.config.flickr.requestConfig.auth.isInsecureGod?(r=o.map(function(e){return e.methodName}).join(", "),a=this.intlMessage({intlName:"client-app.SAVING_LAST_ACTIONS"})+" In progress API Methods: "+r):a=this.intlMessage({intlName:"client-app.SAVING_LAST_ACTIONS"})))}return e.Storage.Instance.clear(),a&&((i||window.event).returnValue=a),a}function o(i){if(!A)return window.location=i.url,void i.halt();m.setClientSideRouted(!0),m.setPreviousLocation(),m.adManager.hideAd(),m.updateModelRefetchState(i.url,i.originEvent&&i.originEvent.currentTarget&&i.originEvent.currentTarget.hasClass("do-not-evict")),m.clearWriteAPICallCache(),m.setGPCredentials(null),e.loaderBar.start(),m.clientMetrics.clearPendingMeasurements(),m.clientMetrics.start(i.details[0].url),m.adManager.isEnabled()&&m.adManager.currentlyShowingAd&&m.adManager.adIsUnloading(),m.getKeyboardManager().resetCurrentKeyEventScope(),e.Object.each(m.modelRegistries,function(e,i){e.hasWeakSubscribers&&e.removeWeakSubscribers()}),C=!0}function c(){e.UA.chrome>0&&(window.scrollTo(window.scrollX,window.scrollY+1),window.scrollTo(window.scrollX,window.scrollY-1))}function s(i){e.Object.each(m.modelRegistries,function(e,i){e.hasWeakSubscribers&&e.removeWeakSubscribers()}),e.fire("close-dialogs"),"popstate"===i.src&&c(),"popstate"!==i.src||b.hasRoute(b.getPath())||e.Object.isEmpty(i.newVal)||b.navigate(b.getPath()),m.getViewCounter().flushQueue({resetDuplicateTracking:!0}),C||m.updateModelRefetchState(),C=!1}function l(e){b.set("previousView",e.prevVal)}function u(){"de"===m.getViewer().intl&&e.use("hermes-template-agof",function(){var i,n,t=b.get("activeView");i=e.config.flickr.agof.spaceids[t.name]||e.config.flickr.agof.spaceids.default,n=e.Template.get("hermes/agof")({spaceid:i}),e.one(".agof").set("innerHTML",n),y.log("AGOF",{spaceid:i})})}function p(i,n){n=n||b.get("activeView"),e.rapidTracker.getConf(n,m,i).then(function(i){e.rapidTracker.init(i)})}function f(i,n){e.rapidTracker&&e.rapidTracker.destroy&&e.rapidTracker.destroy(),p(i,n)}function d(){var i={c1:2,c2:7241469,c3:"",c4:encodeURIComponent((function(i){var n,t=i.pathname||"",r=(t.match(/^\/photos\/([^\/]+)/)||[])[1]||null;return r&&"friends"!==r&&(n=e.murmurhash(r,r+"secret insecure salt"),t=t.replace(r,n)),e.config.flickr.url.host+t})(document.location)),c5:b.get("activeView").get("spaceid"),c6:"",c15:""};e.comscore&&e.comscore.beacon&&e.comscore.beacon(i)}function g(i){var n=this.get("activeView");if(void 0===n.getViewDataFromHistory("referrer")&&n.setViewDataOnHistory("referrer",m.getPreviousURL()),m.clientMetrics.end(),f(),d(),u(),e.DeferImages.update(),e.config.win.DARLA&&e.config.win.DARLA.event&&"function"==typeof e.config.win.DARLA.event&&e.soon(function(){try{e.config.win.DARLA.event("AGOF")}catch(e){y.info("error firing secureFrame event",{err:e})}}),m.adManager.setAdCouldBeShown(!1),e.config.win.onappclientnav)try{e.config.win.onappclientnav()}catch(i){}e.Accessibility.manageFocusOutlines(n),e.rapidTracker.beaconScroll(n),void 0!==window._sift&&window._sift.push&&window._sift.push(["_trackPageview"])}function h(i){return new e.Promise(function(n,r){var a=setTimeout(function(){r(new Error("Initial View Timeout"))},1e4);i.params.appContext=m,b.showContent(e.one("#content > .view"),{view:{name:i.name,config:i.params}},function(o){e.one("body").removeClass("dark-loader"),o._params&&(o._params.keyEventScope=o.name+o._yuid),o.setViewDataOnHistory("referrer",document.referrer),(function(i,n){var t={spaceId:n,pageId:i.replace(/-/g,"_"),serverip:e.config.flickr.lighthouse.serverip,uuid:e.config.flickr.lighthouse.uuid,paft:!0,clientMetrics:m.clientMetrics,signedIn:m.getViewer().signedIn,rapidOnly:k,beaconToRapid:v,rapid:e.rapidTracker};m.Lighthouse=new e.Lighthouse(t)})(i.name,i.spaceId),o.set("isRootView",!0),o.initialize().then(function(){p(),d(),e.config.win.DARLA_CONFIG={events:{AGOF:{name:"AGOF",ps:"RS"}},positions:{RS:{id:"RS",dest:"tgtRS",hcpx:1,wcpx:1,h:1,w:1,supports:!1}}},"de-DE"===e.one("html").getAttribute("lang")&&setTimeout(function(){var i=e.Node.create("<script defer='true' async='true' src='https://fc.yahoo.com/sdarla/php/client.php?f=2022219890&l=RS&npv=1&ref=https%3A//flickr.com&rtype=boot'>");e.one("head").append(i)},100),u(),m.getKeyboardManager().setCurrentKeyEventScope(o.name+o._yuid),c(),e.DeferImages.init(),e.Accessibility.manageFocusOutlines(o),e.rapidTracker.beaconScroll(o),t(["campaignID","linkID"]),(function(){if(e.config.flickr.requestConfig&&e.config.flickr.requestConfig.auth&&e.config.flickr.requestConfig.auth.isInsecureGod){var i=e.all("[data-view-signature]");i.size()&&y.warn("View signature mismatches detected! A view likely modified the `params` object directly.",{views:i.getDOMNodes()})}})(),clearTimeout(a),n()}).then(null,function(e){throw y.error("There was a problem initializing or activating the view.",{err:e}),r(),e})}),b.before("navigate",o),b.before("activeViewChange",l),e.on("history:change",s),b.after("activeViewChange",g)})}function w(i,n,t,r){var a={};return e.Views&&e.Views[i]&&(a[i]={type:e.Views[i],preserve:!1}),b=new e.App({serverRouting:!0,viewContainer:"#content",container:"#content",linkSelector:":not(.server-only-link):not([target=_blank])",scrollToTop:!1,views:a}),v=r.flipper["enable-lighthouse-and-rapid-performance-beaconing"],(k=r.flipper["enable-rapid-only-performance-beaconing"])||e.FlickrClientMetrics.gatherColdStartData(),new e.FlickrRouter(b,e.config.flickr.routes),r.auth=n,r.flapp=b,m=(function(i){return window.appContext=new e.AppContext(i),window.appContext})(r),m.clientMetrics=new e.FlickrClientMetrics(m),k||(m.apiMetrics=new e.FlickrAPIMetrics(m)),m.routeTiming=r.routeTiming,m.routeConfig=r.routeConfig,e.mix(e.Node.DOM_EVENTS,{transitionend:!0,webkitTransitionEnd:!0}),e.ClientTransport.authorize(m),window.addEventListener("unload",function(i){e.ClientTransport.unloading=!0}),window.addEventListener("load",function(i){e.ClientTransport.unloading=!1}),m.modelImportExport.importAll(t)}var m,v,k,b,y=require("hermes-core/flog")(i),C=!1,A=e.config.flickr.clientNavEnabled;e.ClientApp={init:function(i){if(void 0===i)return e.Promise.reject({message:"Invalid config object supplied, was undefined."});var o,c,s=i.initialView,l=i.modelExport,u=i.auth,p=this;return u||n(),o=u&&i.auth.signedIn?i.auth.csrf:null,e.config.flickr.csrf.token=o,e.config.flickr.requestConfig={auth:u},i.params.routeTiming=i.routeTiming,i.params.routeConfig=i.routeConfig,t(e.config.flickr.routing_params),window.location.search&&window.location.search.match(/yc=/)&&(c=e.QueryString.parse(window.location.search.replace("?","")),e.config.flickr.ycParam=c.yc),e.transportFactory=function(i,n){return new e.ClientTransport(n)},r(s.name,e).then(function(){return w(s.name,u,l,i.params)}).then(function(){return h(s)}).then(function(){e.AnchorRepositioner.jumpTo(),e.config.win.addEventListener("beforeunload",a.bind(p))}).then(e.config.win.onappinit)},beforeUnload:a,beforeNavigate:o,_loadInitialView:r,langBundles:["client-app"],updateRapidTracker:f,disableClientNav:n},e.mix(e.ClientApp,e.Localizable)},"@VERSION@",{requires:["app-base","app-content","router","app-context","client-transport","flickr-router","flickr-client-metrics","flickr-api-metrics","handlebars-helpers","lighthouse","comscore","loader-bar","murmurhash","node","rapid","site-key","better-use","flickr-promise","global-events","querystring-parse-simple","querystring-stringify-simple","storage-helper","keyboard-manager","dom","overflow-helper","defer-images","accessibility","anchor-repositioner","google-analytics"],affinity:"client",langBundles:["client-app"]});YUI.add("csrf-updater",function(t){"use strict";var e=require("hermes-core/flog")("csrf");t.CsrfUpdater=function(t){this.flickrAPI=t,this._tasks=[]},t.CsrfUpdater.prototype.getKey=function(){return t.config.flickr.csrf.token||null},t.CsrfUpdater.prototype.isExpired=function(){return!!t.config.flickr.csrf.token&&Date.now()/1e3>t.config.flickr.csrf.csrfExpiresAt},t.CsrfUpdater.prototype.invalidate=function(t){var e=this._lastStored||0;if(t||(t=0),!(t<e))return this.setExpired()},t.CsrfUpdater.prototype.setExpired=function(){return t.config.flickr.csrf.csrfExpiresAt=0},t.CsrfUpdater.prototype.store=function(e,r){this._lastStored=Date.now(),r||(r=Math.floor(this._lastStored/1e3)),t.config.flickr.csrf.token=e,t.config.flickr.csrf.csrfFetched=r,t.config.flickr.csrf.csrfExpiresAt=r+t.config.flickr.csrf.fetch_interval,this.drainQueue()},t.CsrfUpdater.prototype.pushToQueue=function(t){this._tasks.push(t)},t.CsrfUpdater.prototype.drainQueue=function(){for(;this._tasks.length;)this._tasks.shift().resolve()},t.CsrfUpdater.prototype.hasQueuedTasks=function(){return!!this._tasks.length},t.CsrfUpdater.prototype.scheduleFutureFetch=function(){t.config.flickr.csrf.token&&(this._timerFutureFetch=setTimeout(this.fetch.bind(this),1e3*t.config.flickr.csrf.fetch_interval))},t.CsrfUpdater.prototype.scheduleRetry=function(e){var r=this,s=this._fetchRuns>4?1:Math.pow(2,(this._fetchRuns||1)-1)/10,i=t.config.flickr.csrf.retry_interval*s;clearTimeout(this._timerRetry),this._timerRetry=setTimeout(function(){r._timerRetry=null,r.fetch(e)},1e3*i)},t.CsrfUpdater.prototype.fetch=function(r){var s=this,i=s.hasQueuedTasks();if(clearTimeout(this._timerFutureFetch),YUI.Env.isServer){if(!r&&(r=new t.Promise(function(t,e){this.resolve=t,this.reject=e}),this.pushToQueue(r),i))return r;this._fetchRuns||(this._fetchRuns=0),this._fetchRuns++,this.flickrAPI.fetchCsrf().then(function(i){var f=i.token;if(!i.token)return e.error("Failed to fetch csrf token",i),t.fire("csrf:badkey",i),void s.scheduleRetry(r);e.log("Received new csrf token",i),t.fire("csrf:goodkey"),s._fetchRuns=0,s.store(f),s.scheduleFutureFetch()},function(i){e.error("Failed to fetch csrf token",{err:i}),t.fire("csrf:badkey",i.message),s.scheduleRetry(r)})}else t.ClientApp&&t.ClientApp.disableClientNav();return r}},"@VERSION@",{requires:["client-app"]});/*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/

YUI.add("base-pluginhost",function(e,t){var n=e.Base,r=e.Plugin.Host;e.mix(n,r,!1,null,1),n.plug=r.plug,n.unplug=r.unplug},"3.16.0",{requires:["base-base","pluginhost"]});
/*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/

YUI.add("template-base",function(e,t){function n(t,n){this.defaults=n,this.engine=t||e.Template.Micro,this.engine||e.error("No template engine loaded.")}n._registry={},n.register=function(e,t){return n._registry[e]=t,t},n.get=function(e){return n._registry[e]},n.render=function(t,r,i){var s=n._registry[t],o="";return s?o=s(r,i):e.error('Unregistered template: "'+t+'"'),o},n.prototype={compile:function(t,n){return n=n?e.merge(this.defaults,n):this.defaults,this.engine.compile(t,n)},precompile:function(t,n){return n=n?e.merge(this.defaults,n):this.defaults,this.engine.precompile(t,n)},render:function(t,n,r){return r=r?e.merge(this.defaults,r):this.defaults,this.engine.render?this.engine.render(t,n,r):this.engine.compile(t,r)(n,r)},revive:function(t,n){return n=n?e.merge(this.defaults,n):this.defaults,this.engine.revive?this.engine.revive(t,n):t}},e.Template=e.Template?e.mix(n,e.Template):n},"3.16.0",{requires:["yui-base"]});
