/*
SPF 22 (v2.2.0)
(c) 2012-2014 Google, Inc.
License: MIT
*/
(function(){function l(a,b,c){var d=Array.prototype.slice.call(arguments,2);return function(){var c=d.slice();c.push.apply(c,arguments);return a.apply(b,c)}}function aa(a,b){if(a){var c=Array.prototype.slice.call(arguments,1);try{return a.apply(null,c)}catch(d){return d}}}function n(a,b){if(document.createEvent){var c=document.createEvent("CustomEvent");c.initCustomEvent(a,!0,!0,b);return document.dispatchEvent(c)}return!0}function p(){return(new Date).getTime()}function ba(){};function q(a,b){return t[a]=b}var t=window._spf_state||{};window._spf_state=t;var ca={"animation-class":"spf-animate","animation-duration":425,"cache-lifetime":6E5,"cache-max":50,"cache-unified":!1,"link-class":"spf-link","nolink-class":"spf-nolink","navigate-limit":20,"navigate-lifetime":864E5,"reload-identifier":null,"request-timeout":0,"url-identifier":"?spf=__type__"},u={};"config"in t||q("config",u);u=t.config;function da(a,b){var c=b||document;return c.querySelectorAll?c.querySelectorAll(a):[]}function ea(a,b,c){for(;a;){if(b(a))return a;if(c&&a==c)break;a=a.parentNode}return null}function fa(a,b,c){b=b||document;var d=b.createElement("iframe");d.id=a||"";d.src='javascript:""';d.style.display="none";c&&(d.onload=l(c,null,d));b.body.appendChild(d);return d};function ga(a,b,c){var d=null,e=window.history.state;if(e){var d={},f;for(f in e)d[f]=e[f]}if(b)for(f in d=d||{},b)d[f]=b[f];ha(!0,a,d,c)}function ha(a,b,c,d){if(b||c){b=b||window.location.href;c=c||{};var e=p();q("history-timestamp",e);c["spf-timestamp"]=e;if(a)ia(c,b);else if(a=ja().contentWindow.history.pushState,"function"==typeof a)a.call(window.history,c,"",b);else throw Error("history.pushState is not a function.");q("history-url",b);d&&(d=t["history-callback"])&&d(b,c)}}
function ka(a){var b=window.location.href;if(t["history-ignore-pop"])q("history-ignore-pop",!1);else if(a.state){a=a.state;var c=a["spf-timestamp"];b==t["history-url"]?(q("history-timestamp",c),ia(a,b)):(a["spf-back"]=c<parseInt(t["history-timestamp"],10),a["spf-current"]=t["history-url"],q("history-timestamp",c),q("history-url",b),(c=t["history-callback"])&&c(b,a))}}
function ia(a,b){var c=ja().contentWindow.history.replaceState;if("function"==typeof c)c.call(window.history,a,"",b);else throw Error("history.replaceState is not a function");}function ja(){var a=document.getElementById("history-iframe");a||(a=fa("history-iframe"));return a};function v(a,b){if(a.forEach)a.forEach(b,void 0);else for(var c=0,d=a.length;c<d;c++)c in a&&b.call(void 0,a[c],c,a)}function la(a,b){if(a.every)return a.every(b,void 0);for(var c=0,d=a.length;c<d;c++)if(c in a&&!b.call(void 0,a[c],c,a))return!1;return!0}function ma(a,b){if(a.filter)return a.filter(b,void 0);var c=[];v(a,function(a,e,f){b.call(void 0,a,e,f)&&c.push(a)});return c}
function na(a,b){if(a.map)return a.map(b,void 0);var c=[];c.length=a.length;v(a,function(a,e,f){c[e]=b.call(void 0,a,e,f)});return c}function w(a){return"[object Array]"==Object.prototype.toString.call(a)?a:[a]};function oa(a){var b=x();a in b&&delete b[a]}function qa(){var a=x(),b;for(b in a)ra(a[b])||delete a[b];a=x();b=parseInt(u["cache-max"],10);b=isNaN(b)?Infinity:b;b=Object.keys(a).length-b;if(!(0>=b))for(var c=0;c<b;c++){var d=Infinity,e,f;for(f in a)a[f].count<d&&(e=f,d=a[f].count);delete a[e]}}function ra(a){if(!(a&&"data"in a))return!1;var b=a.life,b=isNaN(b)?Infinity:b;return p()-a.time<b}function sa(a){var b=parseInt(t["cache-counter"],10)||0;b++;q("cache-counter",b);a.count=b}
function x(a){return!a&&"cache-storage"in t?t["cache-storage"]:q("cache-storage",a||{})};function ta(a){return a.classList?a.classList:a.className&&a.className.match(/\S+/g)||[]}function ua(a,b){if(b){if(a.classList)return a.classList.contains(b);for(var c=ta(a),d=0,e=c.length;d<e;d++)if(c[d]==b)return!0}return!1}function y(a,b){b&&(a.classList?a.classList.add(b):ua(a,b)||(a.className+=" "+b))}function z(a,b){if(b)if(a.classList)a.classList.remove(b);else{for(var c=ta(a),d=[],e=0,f=c.length;e<f;e++)c[e]!=b&&d.push(c[e]);a.className=d.join(" ")}};function va(a,b){a&&b&&(a in B||(B[a]=[]),B[a].push(b))}function wa(a,b){a in B&&b&&la(B[a],function(a,d,e){return a==b?(e[d]=null,!1):!0})}function xa(a){a in B&&v(B[a],function(a,c,d){d[c]=null;a&&a()})}var B={};"ps-s"in t||q("ps-s",B);B=t["ps-s"];function C(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}var ya=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s+|\s+$/g,"")};function D(a,b){var c=a.split(b),d=1==c.length;return[c[0],d?"":b,d?"":c.slice(1).join(b)]};function E(a,b,c){var d=F[a];return a&&b?(d||(d=F[a]={items:[],k:0,i:0,o:1}),d.items.push({t:b,p:c||0})):d&&d.items.length||0}function G(a,b){var c=F[a];if(c){var d=!!c.k||!!c.i;0<c.o&&(b||!d)&&za(a,b)}}function I(a){(a=F[a])&&a.o--}function J(a,b){var c=F[a];c&&(c.o++,G(a,b))}function Aa(a){var b=F[a];b&&(Ba(b),delete F[a])}
function za(a,b){var c=F[a];if(c&&(Ba(c),0<c.o&&c.items.length)){var d=c.items[0];if(d){var e=l(function(a,b){b();a()},null,l(za,null,a,b));b?(c.items.shift(),e(d.t)):Ca(c,d,e)}}}function Ca(a,b,c){b.p?(c=l(c,null,ba),a.i=setTimeout(c,b.p),b.p=0):(a.items.shift(),c=l(c,null,b.t),(b=(b=u["advanced-task-scheduler"])&&b.addTask)?a.k=b(c):a.i=setTimeout(c,0))}function Ba(a){if(a.k){var b=u["advanced-task-scheduler"];(b=b&&b.cancelTask)&&b(a.k);a.k=0}a.i&&(clearTimeout(a.i),a.i=0)}var F={};function K(a){var b=document.createElement("a");b.href=a;b.href=b.href;a={href:b.href,protocol:b.protocol,host:b.host,hostname:b.hostname,port:b.port,pathname:b.pathname,search:b.search,hash:b.hash,L:b.L,K:b.K};a.origin=a.protocol+"//"+a.host;a.pathname&&"/"==a.pathname[0]||(a.pathname="/"+a.pathname);return a}function L(a,b){var c=K(a);return b?c.href:D(c.href,"#")[0]}
function Da(a,b){var c=D(a,"#");a=c[0];for(var d=0;d<b.length;d++)a=a.replace(new RegExp("([?&])"+b[d]+"(?:=[^&]*)?(?:(?=[&])|$)","g"),function(a,b){return"?"==b?b:""});C(a,"?")&&(a=a.slice(0,-1));return a+c[1]+c[2]}function Ea(a){var b=u["advanced-persistent-parameters"]||"",c=D(a,"#");a=c[0];var d=-1!=a.indexOf("?")?"&":"?";return a+(b?d+b:"")+c[1]+c[2]};function Fa(a,b,c,d){var e=a==M;b=N(a,b);var f=c||"^"+b,g=O(a,f),k;c&&(k=P(a,c))&&b!=k&&(n(e?"spfjsbeforeunload":"spfcssbeforeunload",{name:c,url:k}),Ga(a,c,k),va(g,l(Ha,null,a,c,k)));e=O(a,b);if((e=Q[e])&&f!=e){var h=O(a,e);delete R[h];h=O(a,b);delete Q[h];(h=O(a,e))&&g&&h in B&&(B[g]=(B[g]||[]).concat(B[h]),delete B[h])}h=O(a,b);Q[h]=f;Ia(a,f,b);va(g,d);d=l(Ka,null,a);S(a,b)?(e&&f!=e&&(a=La(a,b))&&a.setAttribute("name",c||""),d()):(a=Ma(a,b,d,void 0,void 0,k))&&c&&a.setAttribute("name",c)}
function Na(a,b){var c=P(a,b);Ga(a,b,c);Ha(a,b,c)}function Ga(a,b,c){var d=O(a,b);delete R[d];c&&(c=O(a,c),delete Q[c]);a=O(a,b);delete B[a]}function Ha(a,b,c){var d=a==M;c&&(n(d?"spfjsunload":"spfcssunload",{name:b,url:c}),Oa(a,c))}function Ka(a){var b=O(a,""),c;for(c in B)0==c.indexOf(b)&&la(c.substring(b.length).split("|"),l(Pa,null,a))&&xa(c)}
function Ma(a,b,c,d,e,f){function g(){S(a,b,e)&&Qa(Ra,a,b,e);k&&m&&m.parentNode&&h==document&&m.parentNode.removeChild(m);c&&setTimeout(c,0);return null}var k=a==M;b=N(a,b);Qa(Sa,a,b,e);var h=d||document,m=h.createElement(k?"script":"link");if(!b)return g();d=Ta(b);m.className=O(a,d);"onload"in m?m.onerror=m.onload=g:m.onreadystatechange=function(){/^c|loade/.test(m.readyState)&&g()};d=h.getElementsByTagName("head")[0]||h.body;k?(m.async=!0,m.src=b,d.insertBefore(m,d.firstChild)):(m.rel="stylesheet",
m.href=b,(f=f&&La(a,f,d))?d.insertBefore(m,f):d.appendChild(m));return m}function Oa(a,b){b=N(a,b);var c=La(a,b,void 0);c&&c.parentNode&&c.parentNode.removeChild(c);c=O(a,b);delete Ua[c]}function La(a,b,c){b=Ta(b);a="."+O(a,b);return da(a,c)[0]}function Va(a){var b=a==M,c=[];v(da(b?"script[src]":'link[rel~="stylesheet"]'),function(d){var e=b?d.src:d.href,e=N(a,e);if(!S(a,e)){Qa(Ra,a,e);var f=Ta(e),f=O(a,f);y(d,f);if(f=d.getAttribute("name")){var g=O(a,e);Q[g]=f;Ia(a,f,e)}c.push(d)}})}
function Wa(a,b){if(b&&(b=N(a,b),!S(a,b))){var c=Ta(b),d=O(a,c),e=O(a,"prefetch"),c=document.getElementById(e);if(!c)c=fa(e,null,function(a){a.title=e;G(e,!0)});else if(c.contentWindow.document.getElementById(d))return;d=l(Xa,null,c,a,b,d,e);c.title?d():E(e,d)}}
function Xa(a,b,c,d,e){var f=b==T;a=a.contentWindow.document;b==M?(b=a.createElement("object"),Ya?a.createElement("script").src=c:b.data=c,b.id=d,a.body.appendChild(b)):f?(b=Ma(b,c,null,a,e),b.id=d):(b=a.createElement("img"),b.src=c,b.id=d,a.body.appendChild(b))}
function Za(a,b,c){for(var d=a==M,e=P(a,c),f=b.replace(/\s/g,""),f=f||"",g=0,k=0,h=f.length;k<h;++k)g=31*g+f.charCodeAt(k),g%=4294967296;f="hash-"+g;Ia(a,c,f);!$a(a,f)&&(b=ab(a,b))&&(Qa(Ra,a,f),b&&!d&&(d=Ta(f),d=O(a,d),b.className=d,b.setAttribute("name",c)),(e=e&&e[0])&&Oa(a,e))}
function ab(a,b){b=ya(b);if(!b)return null;var c=document.getElementsByTagName("head")[0]||document.body,d;a==M?(d=document.createElement("script"),d.text=b,c.appendChild(d),c.removeChild(d)):(d=document.createElement("style"),c.appendChild(d),"styleSheet"in d?d.styleSheet.cssText=b:d.appendChild(document.createTextNode(b)));return d}
function N(a,b){var c="rsrc-p-"+a;if(b){var d=b.indexOf("//");if(0>d){if(0==b.lastIndexOf("hash-",0))return b;c=t[c]||"";if("[object String]"==Object.prototype.toString.call(c))b=c+b;else for(var e in c)b=b.replace(e,c[e]);b=0>b.indexOf("."+a)?b+"."+a:b;b=L(b)}else 0==d&&(b=L(b))}return b}function O(a,b,c){return a+"-"+b+(c?"-"+c:"")}function Ta(a){return a?String(a).replace(/[^\w]/g,""):""}function Qa(a,b,c,d){b=O(b,c,d);Ua[b]=a}function S(a,b,c){a=O(a,b,c);return Ua[a]}
function $a(a,b){var c=S(a,b);return""==b||c==Ra}function Ia(a,b,c){a=O(a,b);R[a]=c}function P(a,b){var c=O(a,b);return R[c]}function Pa(a,b){var c=P(a,b);return void 0!=c&&$a(a,c)}var Ua={},Q={},R={},Ya=-1!=navigator.userAgent.indexOf(" Trident/"),Sa=1,Ra=2,T="css",M="js";"rsrc-s"in t||q("rsrc-s",Ua);Ua=t["rsrc-s"];"rsrc-n"in t||q("rsrc-n",Q);Q=t["rsrc-n"];"rsrc-u"in t||q("rsrc-u",R);R=t["rsrc-u"];function bb(a){a=w(a);v(a,function(a){Wa("img",a)})};function cb(a,b,c){Fa(M,a,b,c)}function db(a){Na(M,a)}function eb(a,b){Ma(M,a,b)}function fb(a){a=w(a);v(a,function(a){Wa(M,a)})}function gb(a,b,c){a=w(a);a=ma(a,function(a){return!!a});var d=[];v(a,function(a){void 0==P(M,a)&&d.push(a)});var e=!d.length;if(b){var f=la(a,l(Pa,null,M));e&&f?b():(a=O(M,a.sort().join("|")),va(a,b))}c&&!e&&c(d)}function hb(a,b){a=w(a);v(a,function(a){if(a){var b=ib[a]||a,b=N(M,b),e=P(M,a);e&&b!=e&&jb(a)}});gb(a,b,kb)}
function kb(a){v(a,function(a){function c(){cb(e,a)}var d=U[a],e=ib[a]||a;d?hb(d,c):c()})}function jb(a){a=w(a);v(a,function(a){var c=[],d;for(d in U){var e=U[d],e=w(e);v(e,function(e){e==a&&c.push(d)})}v(c,function(a){jb(a)});db(a)})}function lb(a,b){Za(M,a,b)}function mb(a){ab(M,a)}var U={};"js-d"in t||q("js-d",U);var U=t["js-d"],ib={};"js-u"in t||q("js-u",ib);ib=t["js-u"];function nb(a,b,c){Fa(T,a,b,c)}function ob(a,b){Ma(T,a,b)}function pb(a){a=w(a);v(a,function(a){Wa(T,a)})};function qb(a,b,c){if(b){b=[];var d,e=0;c&&(a+="\r\n");var f=a.indexOf(rb,e);for(-1<f&&(e=f+rb.length);-1<(f=a.indexOf(sb,e));)d=ya(a.substring(e,f)),e=f+sb.length,d&&b.push(JSON.parse(d));f=a.indexOf(tb,e);-1<f&&(d=ya(a.substring(e,f)),e=f+tb.length,d&&b.push(JSON.parse(d)));d="";a.length>e&&(d=a.substring(e),c&&C(d,"\r\n")&&(d=d.substring(0,d.length-2)));if(u["experimental-parse-extract"])for(a=0;a<b.length;a++)b[a]=ub(b[a]);return{j:b,c:d}}a=JSON.parse(a);b="number"==typeof a.length?a:[a];if(u["experimental-parse-extract"])for(a=
0;a<b.length;a++)b[a]=ub(b[a]);return{j:b,c:""}}
function V(a,b,c,d){var e=c&&0==c.type.lastIndexOf("navigate",0),f=c&&c.reverse,g=c&&!!c.position,k=c&&c.e,h=b.name||"",m="process "+L(a),A=!u["experimental-process-async"],r;r=0;b.timing||(b.timing={});b.title&&(document.title=b.title);e&&b.url&&L(b.url)!=L(window.location.href)&&ga(b.url+window.location.hash);b.head&&(r=l(function(a,b){var c=W(a);vb(c);wb(c);I(m);xb(c,function(){b.spfProcessHead=p();J(m,A)})},null,b.head,b.timing),r=E(m,r));b.attr&&(r=l(function(a,b){for(var c in a){var d=document.getElementById(c);
if(d){var e=a[c],f=void 0;for(f in e){var g=e[f];"class"==f?d.className=g:"style"==f?d.style.cssText=g:d.setAttribute(f,g)}}}b.spfProcessAttr=p()},null,b.attr,b.timing),r=E(m,r));var H=b.body||{},Fc=r,Ja;for(Ja in H)r=l(function(a,b){var d=document.getElementById(a);if(d){!e||g||k||(q("nav-scroll-position",null),q("nav-scroll-url",null),window.scroll(0,0),k=!0,c&&(c.e=!0));var r=W(b);wb(r);var H=function(){I(m);xb(r,function(){J(m,A)})},pa=u["animation-class"];yb&&ua(d,pa)?(d=new zb(d,r.html,pa,h,
!!f),I(m),G(d.key,!0),E(d.key,l(Ab,null,d),0),E(d.key,l(Bb,null,d),17),E(d.key,l(Cb,null,d),d.duration),E(d.key,l(function(){H();J(m,A)},null),0),G(d.key)):(pa=u["experimental-html-handler"])?(I(m),pa(r.html,d,function(){H();J(m,A)})):(d.innerHTML=r.html,H())}},null,Ja,H[Ja],b.timing),r=E(m,r);H=r-Fc;b.foot?(r=l(function(a,b,c){c&&(b.spfProcessBody=p());a=W(a);wb(a);I(m);xb(a,function(){b.spfProcessFoot=p();J(m,A)})},null,b.foot,b.timing,H),r=E(m,r)):H&&(r=l(function(a){a.spfProcessBody=p()},null,
b.timing),r=E(m,r));d&&(r=E(m,l(d,null,a,b)));G(m,A)}function Db(a,b,c,d){c="preprocess "+L(a);var e;b.head&&(e=l(function(a){a=W(a);vb(a);Eb(a);Fb(a)},null,b.head),E(c,e));var f=b.body||{},g;for(g in f)f[g]&&(e=l(function(a,b){var c=W(b);Eb(c);Fb(c)},null,g,f[g]),E(c,e));b.foot&&(e=l(function(a){a=W(a);Eb(a);Fb(a)},null,b.foot),E(c,e));d&&E(c,l(d,null,a,b));G(c)}
function Ab(a){y(a.element,a.l);y(a.element,a.u);y(a.element,a.G);y(a.element,a.C);y(a.element,a.D);a.g=document.createElement("div");a.g.className=a.J;var b=a.element,c=a.g;if(c){for(var d;d=b.firstChild;)c.appendChild(d);b.appendChild(c)}a.f=document.createElement("div");a.f.className=a.I;a.f.innerHTML=a.H;a.reverse?(b=a.g,b.parentNode.insertBefore(a.f,b)):(b=a.g,b.parentNode.insertBefore(a.f,b.nextSibling))}function Bb(a){z(a.element,a.C);z(a.element,a.D);y(a.element,a.r);y(a.element,a.s)}
function Cb(a){a.element.removeChild(a.g);var b=a.f,c,d=b.parentNode;if(d&&11!=d.nodeType)if(b.removeNode)b.removeNode(!1);else{for(;c=b.firstChild;)d.insertBefore(c,b);d.removeChild(b)}z(a.element,a.r);z(a.element,a.s);z(a.element,a.u);z(a.element,a.G);z(a.element,a.l)}function ub(a){a.head&&(a.head=W(a.head));if(a.body)for(var b in a.body)a.body[b]=W(a.body[b]);a.foot&&(a.foot=W(a.foot));return a}
function W(a){var b=new Gb;if(!a)return b;if("[object String]"!=Object.prototype.toString.call(a))return a.scripts&&v(a.scripts,function(a){b.scripts.push({url:a.url||"",text:a.text||"",name:a.name||"",async:a.async||!1})}),a.styles&&v(a.styles,function(a){b.styles.push({url:a.url||"",text:a.text||"",name:a.name||""})}),a.links&&u["experimental-preconnect"]&&v(a.links,function(a){"spf-preconnect"==a.rel&&b.links.push({url:a.url||"",rel:a.rel||""})}),b.html=a.html||"",b;a=a.replace(Hb,function(a,d,
e,f){return"script"==d?(a=(a=e.match(Ib))?a[1]:"",d=(d=e.match(Jb))?d[1]:"",e=Kb.test(e),b.scripts.push({url:d,text:f,name:a,async:e}),""):"style"==d?(a=(a=e.match(Ib))?a[1]:"",b.styles.push({url:"",text:f,name:a}),""):a});a=a.replace(Lb,function(a,d){var e=d.match(Mb),e=e?e[1]:"";if("stylesheet"==e){var e=(e=d.match(Ib))?e[1]:"",f=d.match(Nb),f=f?f[1]:"";b.styles.push({url:f,text:"",name:e});return""}return"spf-preconnect"==e&&u["experimental-preconnect"]?(f=(f=d.match(Nb))?f[1]:"",b.links.push({url:f,
rel:e}),""):a});b.html=a;return b}function xb(a,b){if(0>=a.scripts.length)b&&b();else{var c=-1,d=function(){c++;if(c<a.scripts.length){var e=a.scripts[c],f=function(){};e.url?f=e.name?l(cb,null,e.url,e.name):l(eb,null,e.url):e.text&&(f=e.name?l(lb,null,e.text,e.name):l(mb,null,e.text));e.url&&!e.async?f(d):(f(),d())}else b&&b()};d()}}function Fb(a){0>=a.scripts.length||(a=na(a.scripts,function(a){return a.url}),fb(a))}
function wb(a){if(!(0>=a.styles.length))for(var b=0,c=a.styles.length;b<c;b++){var d=a.styles[b];d.url?d.name?nb(d.url,d.name):ob(d.url):d.text&&(d.name?Za(T,d.text,d.name):ab(T,d.text))}}function Eb(a){0>=a.styles.length||(a=na(a.styles,function(a){return a.url}),pb(a))}function vb(a){0>=a.links.length||(a=na(a.links,function(a){return"spf-preconnect"==a.rel?a.url:""}),bb(a))}
function zb(a,b,c,d,e){var f=parseInt(u["animation-duration"],10);this.element=a;this.H=b;this.duration=f;this.reverse=e;b=document.body;b=(b.dataset?b.dataset.spfName:b.getAttribute("data-"+"spfName".replace(/([A-Z])/g,"-$1").toLowerCase()))||"";f=parseInt(t.uid,10)||0;f++;this.key=a["spf-key"]||(a["spf-key"]=""+q("uid",f));this.u=b&&c+"-from-"+b;this.G=d&&c+"-to-"+d;this.g=null;this.J=c+"-old";this.f=null;this.I=c+"-new";this.l=c+(e?"-reverse":"-forward");this.C=c+"-start";this.D=this.l+"-start";
this.r=c+"-end";this.s=this.l+"-end"}function Gb(){this.html="";this.scripts=[];this.styles=[];this.links=[]}
var yb=function(){var a=document.createElement("div");if("transition"in a.style)return!0;for(var b=["webkit","Moz","Ms","O","Khtml"],c=0,d=b.length;c<d;c++)if(b[c]+"Transition"in a.style)return!0;return!1}(),Lb=/\x3clink([\s\S]*?)\x3e/ig,Hb=/\x3c(script|style)([\s\S]*?)\x3e([\s\S]*?)\x3c\/\1\x3e/ig,Kb=/(?:\s|^)async(?:\s|=|$)/i,Nb=/(?:\s|^)href\s*=\s*["']?([^\s"']+)/i,Ib=/(?:\s|^)name\s*=\s*["']?([^\s"']+)/i,Mb=/(?:\s|^)rel\s*=\s*["']?([^\s"']+)/i,Jb=/(?:\s|^)src\s*=\s*["']?([^\s"']+)/i,rb="[\r\n",
sb=",\r\n",tb="]\r\n";function Ob(a,b,c,d){var e=d||{},f=!1,g=0,k,h=new XMLHttpRequest;h.open(a,b,!0);h.timing={};var m=h.abort;h.abort=function(){clearTimeout(k);h.onreadystatechange=null;m.call(h)};h.onreadystatechange=function(){var a=h.timing;if(h.readyState==Pb){a.responseStart=a.responseStart||p();f=-1<(h.getResponseHeader("Transfer-Encoding")||"").toLowerCase().indexOf("chunked");if(!f){var a=h.getResponseHeader("X-Firefox-Spdy"),c=window.chrome&&chrome.loadTimes&&chrome.loadTimes(),c=c&&c.wasFetchedViaSpdy;f=!(!a&&
!c)}e.A&&e.A(h)}else h.readyState==Qb?f&&e.m&&(a=h.responseText.substring(g),g=h.responseText.length,e.m(h,a)):h.readyState==Rb&&(a.responseEnd=a.responseEnd||p(),window.performance&&window.performance.getEntriesByName&&(h.resourceTiming=window.performance.getEntriesByName(b).pop()),f&&e.m&&h.responseText.length>g&&(a=h.responseText.substring(g),g=h.responseText.length,e.m(h,a)),clearTimeout(k),e.w&&e.w(h))};a="POST"==a;if(e.headers)for(var A in e.headers)h.setRequestHeader(A,e.headers[A]),"content-type"==
A.toLowerCase()&&(a=!1);a&&h.setRequestHeader("Content-Type","application/x-www-form-urlencoded");0<e.F&&(k=setTimeout(function(){h.abort();e.B&&e.B(h)},e.F));h.timing.fetchStart=p();h.send(c);return h}var Pb=2,Qb=3,Rb=4;function Sb(a,b){var c=b||{};c.method=((c.method||"GET")+"").toUpperCase();c.type=c.type||"request";var d=a,e=u["url-identifier"]||"";if(e){var e=e.replace("__type__",c.type||""),f=D(d,"#"),g=D(f[0],"?"),d=g[0],k=g[1],g=g[2],h=f[1],f=f[2];if(0==e.lastIndexOf("?",0))k&&(e=e.replace("?","&")),g+=e;else{if(0==e.lastIndexOf(".",0))if(C(d,"/"))e="index"+e;else{var m=d.lastIndexOf(".");-1<m&&(d=d.substring(0,m))}else C(d,"/")&&0==e.lastIndexOf("/",0)&&(e=e.substring(1));d+=e}d=d+k+g+h+f}e=L(d);d={};d.spfUrl=
e;d.startTime=p();d.fetchStart=d.startTime;a:{g=Tb(a,c.current,null,c.type,!1);h=c.current;k=[];h&&(k.push(g+" previous "+h),k.push(g+" previous "+K(h).pathname));k.push(g);g=0;for(h=k.length;g<h;g++){b:{f=k[g];m=x();if(f in m){m=m[f];if(ra(m)){sa(m);f=m.data;break b}oa(f)}f=void 0}if(f){k={key:k[g],response:f.response,type:f.type};break a}}k=null}d.spfPrefetched=!!k&&"prefetch"==k.type;d.spfCached=!!k;if(k)return setTimeout(l(Ub,null,a,c,d,k.key,k.response),0),null;k={};void 0!=c.b&&(k["X-SPF-Referer"]=
c.b);c.current&&(k["X-SPF-Previous"]=c.current);if(g=u["advanced-header-identifier"])k["X-SPF-Request"]=g.replace("__type__",c.type),k.Accept="application/json";g=new Vb;d=l(Wb,null,a,c,d,g);d={headers:k,F:u["request-timeout"],A:l(Xb,null,a,g),m:l(Yb,null,a,c,g),w:d,B:d};return"POST"==c.method?Ob("POST",e,c.q,d):Ob("GET",e,null,d)}
function Ub(a,b,c,d,e){var f=!1;c.responseStart=c.responseEnd=p();b.type&&0==b.type.lastIndexOf("navigate",0)&&(c.navigationStart=c.startTime,u["cache-unified"]||(oa(d),f=!0));if(b.d&&"multipart"==e.type){d=e.parts;for(var g=0;g<d.length;g++)b.d(a,d[g])}Zb(a,b,c,e,f)}function Xb(a,b,c){a=-1!=(c.getResponseHeader("X-SPF-Response-Type")||"").toLowerCase().indexOf("multipart");b.v=a}
function Yb(a,b,c,d,e,f){if(c.v){e=c.c+e;var g;try{g=qb(e,!0,f)}catch(k){d.abort();b.h&&b.h(a,k);return}if(b.d)for(d=0;d<g.j.length;d++)b.d(a,g.j[d]);c.complete=c.complete.concat(g.j);c.c=g.c}}
function Wb(a,b,c,d,e){if(e.timing)for(var f in e.timing)c[f]=e.timing[f];if(e.resourceTiming)if("load"==b.type)for(var g in e.resourceTiming)c[g]=e.resourceTiming[g];else if(window.performance&&window.performance.timing&&(f=window.performance.timing.navigationStart,f+e.resourceTiming.startTime>=c.startTime))for(var k in e.resourceTiming)g=e.resourceTiming[k],void 0!==g&&(C(k,"Start")||C(k,"End")||"startTime"==k)&&(c[k]=f+Math.round(g));"load"!=b.type&&(c.navigationStart=c.startTime);d.complete.length&&
(d.c=ya(d.c),d.c&&Yb(a,b,d,e,"",!0));var h;try{h=qb(e.responseText).j}catch(m){b.h&&b.h(a,m);return}if(b.d&&1<h.length)for(d=d.complete.length;d<h.length;d++)b.d(a,h[d]);if(1<h.length){var A;d=0;for(e=h.length;d<e;d++)k=h[d],k.cacheType&&(A=k.cacheType);h={parts:h,type:"multipart"};A&&(h.cacheType=A)}else h=1==h.length?h[0]:{};Zb(a,b,c,h,!0)}
function Zb(a,b,c,d,e){if(e&&"POST"!=b.method&&(e=Tb(a,b.current,d.cacheType,b.type,!0))){d.cacheKey=e;var f={response:d,type:b.type||""},g=parseInt(u["cache-lifetime"],10),k=parseInt(u["cache-max"],10);0>=g||0>=k||(k=x(),f={data:f,life:g,time:p(),count:0},sa(f),k[e]=f,setTimeout(qa,1E3))}d.timing=c;b.n&&b.n(a,d)}
function Tb(a,b,c,d,e){a=L(a);var f;u["cache-unified"]?f=a:"navigate-back"==d||"navigate-forward"==d?f="history "+a:"navigate"==d?f=(e?"history ":"prefetch ")+a:"prefetch"==d&&(f=e?"prefetch "+a:"");b&&"url"==c?f+=" previous "+b:b&&"path"==c&&(f+=" previous "+K(b).pathname);return f||""}function Vb(){this.v=!1;this.c="";this.complete=[]};function $b(a){return ea(a,function(a){return ua(a,u["link-class"])})}function ac(a){return ea(a,function(a){return ua(a,u["nolink-class"])})}function bc(a,b){return ea(a,function(a){return a.href&&"img"!=a.tagName.toLowerCase()},b)}function cc(a){if(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey||0<a.button)return null;var b=$b(a.target);return!b||u["nolink-class"]&&ac(a.target)?null:(a=bc(a.target,b))?a.href:null}function dc(a){return K(a).origin!=K(window.location.href).origin?!1:!0}
function ec(){if(!t["nav-init"])return!1;var a=parseInt(t["nav-counter"],10)||0;a++;var b=parseInt(u["navigate-limit"],10),b=isNaN(b)?Infinity:b;if(a>b)return!1;a=parseInt(t["nav-init-time"],10);a--;a=p()-a;b=parseInt(u["navigate-lifetime"],10);b=isNaN(b)?Infinity:b;return a>b?!1:!0}function fc(a){if(!a.defaultPrevented){var b=cc(a);b&&(b=Ea(b),dc(b)&&ec()&&n("spfclick",{url:b,target:a.target})&&(gc(b,{},new hc),a.preventDefault()))}}function ic(a){var b=cc(a);b&&setTimeout(function(){jc(b)},0)}
function kc(){var a;a=t["nav-scroll-position"]||null;var b=t["nav-scroll-url"]||"";a=a&&b==window.location.href?a:null;lc();a&&window.scroll.apply(null,a)}
function mc(a,b){var c=new hc({current:b&&b["spf-current"],history:!0,position:b&&b["spf-position"],b:b&&b["spf-referer"],reverse:!(!b||!b["spf-back"])}),d=u["reload-identifier"];d&&(a=Da(a,[d]));dc(a)?ec()?n("spfhistory",{url:a,referer:c.b,previous:c.current})&&(c.position&&(q("nav-scroll-position",[window.pageXOffset,window.pageYOffset]),q("nav-scroll-url",window.location.href)),gc(a,{},c)):X(a,oc):X(a,nc)}
function gc(a,b,c){pc();var d;a:{var e=c.current||window.location.href;if(-1!=a.indexOf("#")||-1!=e.indexOf("#"))if(d=L(a),e=L(e),d==e){d=!1;break a}d=!0}if(d)if(qc(a,c.b,c.current,b)){q("nav-counter",(parseInt(t["nav-counter"],10)||0)+1);rc(a);d=L(a);var e="preprocess "+L(d),f;for(f in F)e!=f&&0==f.lastIndexOf("preprocess",0)&&Aa(f);f=sc()[d];q("nav-request",f);q("nav-promote",null);q("nav-promote-time",null);f&&4!=f.readyState?(f="preprocess "+L(a),d="promote "+L(a),q("nav-promote",a),q("nav-promote-time",
p()),Aa(f),G(d,!0),c.history||tc(a,c.b,l(Y,null,b))):(f=l(Y,null,b),d=l(uc,null,b,c),e=l(vc,null,b,c),u["advanced-navigate-persist-timing"]||wc(),c.type="navigate",c.history&&(c.type+=c.reverse?"-back":"-forward"),b=Sb(a,{method:b.method,d:d,h:f,n:e,q:b.postData,type:c.type,current:c.current,b:c.b}),q("nav-request",b),c.history||tc(a,c.b,f))}else X(a,xc);else c.history||tc(a,c.b,l(Y,null,b)),yc(a,c)}
function yc(a,b){if(b.position)lc(),window.scroll.apply(null,b.position),b.e=!0;else{var c=D(a,"#");if(c[2]){if(c=document.getElementById(c[2]))lc(),c.scrollIntoView(),b.e=!0}else b.e||(lc(),window.scroll(0,0),b.e=!0)}}function tc(a,b,c){try{ga(null,{"spf-position":[window.pageXOffset,window.pageYOffset]}),L(a,!0)!=window.location.href&&ha(!1,a,{"spf-referer":b},void 0)}catch(d){pc(),c(a,d)}}function Y(a,b,c){q("nav-request",null);zc(b,c,a)&&X(b,Ac,c)}
function uc(a,b,c,d){if(Bc(c,d,a))if(d.reload)X(c,Cc);else if(d.redirect)Dc(a,d.redirect);else try{V(c,d,b,function(){Ec(c,d,a)})}catch(e){Y(a,c,e)}else X(c,Gc)}
function vc(a,b,c,d){q("nav-request",null);if(t["nav-promote"]==b.a){var e=d.timing||{};e.navigationStart=t["nav-promote-time"];e.spfPrefetched=!0}var f="multipart"==d.type;if(!f){if(!Hc(c,d,a)){X(c,Ic);return}if(d.reload){X(c,Cc);return}if(d.redirect){Dc(a,d.redirect);return}}try{V(c,f?{}:d,b,function(){var e=d.name||"";if(f)for(var g=d.parts,m=0;m<g.length;m++)e=g[m].name||e;g=document.body;g.dataset?g.dataset.spfName=e:g.setAttribute("data-"+"spfName".replace(/([A-Z])/g,"-$1").toLowerCase(),e);
yc(c,b);Jc(c,d,a)})}catch(g){Y(a,c,g)}}function Dc(a,b){try{b+=window.location.hash,ga(b,null,!0)}catch(c){pc(),Y(a,b,c)}}function pc(){var a=t["nav-request"];a&&(a.abort(),q("nav-request",null))}function Z(a,b){var c;a&&(c=Array.prototype.slice.call(arguments),c[0]=a,c=aa.apply(null,c));return!1!==c}
function X(a,b,c){c=c?c.message:"";pc();rc();var d=b;c&&(d+=" Message: "+c);n("spfreload",{url:a,reason:d});u["experimental-remove-history"]&&window.location.href==a&&(q("history-ignore-pop",!0),window.history.back());setTimeout(function(){var c=u["reload-identifier"];if(c){var d={};d[c]=encodeURIComponent(b);var c=a,g=D(c,"#"),c=g[0],k=-1!=c.indexOf("?")?"&":"?",h;for(h in d)c+=k+h,d[h]&&(c+="="+d[h]),k="&";a=c+g[1]+g[2]}window.location.href=a},0)}
function Kc(a,b,c){c.a=c.a||a;if(qc(a,void 0,void 0,b,!0)){var d=l(Lc,null,!1,b,c),e=l(Mc,null,!1,b,c),f=l(Nc,null,!1,b,c);c.type="load";Sb(a,{method:b.method,d:e,h:d,n:f,q:b.postData,type:c.type})}}function jc(a,b){a=Ea(a);Oc(a,b||{},new hc)}function Oc(a,b,c){c.a=c.a||a;if(qc(a,void 0,void 0,b,!0)){var d=l(Lc,null,!0,b,c),e=l(Mc,null,!0,b,c),f=l(Nc,null,!0,b,c);c.type="prefetch";b=Sb(a,{method:b.method,d:e,h:d,n:f,q:b.postData,type:c.type,current:c.current});a=L(a);sc()[a]=b}}
function Lc(a,b,c,d,e){a&&Pc(d);a&&t["nav-promote"]==c.a?Y(b,d,e):zc(d,e,b,!0)}function Mc(a,b,c,d,e){if(Bc(d,e,b,!0)){if(e.reload){if(!a)return;if(t["nav-promote"]==c.a){X(d,Cc);return}}if(e.redirect)Qc(a,b,c,e.redirect);else{if(a){var f=l(uc,null,b,c,d,e),g="promote "+L(c.a);E(g,f);if(t["nav-promote"]==c.a){G(g,!0);return}}(a?Db:V)(d,e,c,function(){Ec(d,e,b,!0)})}}}
function Nc(a,b,c,d,e){var f="multipart"==e.type;if(!f){if(!Hc(d,e,b,!0)){X(d,Ic);return}if(e.reload){if(!a)return;if(t["nav-promote"]==c.a){X(d,Cc);return}}if(e.redirect){Qc(a,b,c,e.redirect);return}}var g="promote "+L(c.a);if(a){Pc(d);if(t["nav-promote"]==c.a){E(g,l(vc,null,b,c,d,e));G(g,!0);return}Aa(g)}g=a?Db:V;try{g(d,f?{}:e,c,function(){Jc(d,e,b,!0)})}catch(k){Lc(a,b,c,d,k)}}function Qc(a,b,c,d){a=a?Oc:Kc;var e={};v([Rc,Sc,Tc,Uc,Vc,Wc],function(a){e[a]=b[a]});a(d,e,c)}
function zc(a,b,c,d){a={url:a,err:b};(c=Z((c||{})[Rc],a))&&!d&&(c=n("spferror",a));return c}function qc(a,b,c,d,e){a={url:a,referer:b,previous:c};(d=Z((d||{})[Sc],a))&&!e&&(d=n("spfrequest",a));return d}function Bc(a,b,c,d){a={url:a,part:b};(c=Z((c||{})[Tc],a))&&!d&&(c=n("spfpartprocess",a));return c}function Ec(a,b,c,d){a={url:a,part:b};Z((c||{})[Uc],a)&&!d&&n("spfpartdone",a)}function Hc(a,b,c,d){a={url:a,response:b};(c=Z((c||{})[Vc],a))&&!d&&(c=n("spfprocess",a));return c}
function Jc(a,b,c,d){a={url:a,response:b};Z((c||{})[Wc],a)&&!d&&n("spfdone",a)}function Pc(a){a=L(a);var b=sc(),c=b[a];c&&c.abort();delete b[a]}function rc(a){var b=sc();a=a&&L(a);for(var c in b)a!=c&&Pc(c)}var wc,Xc=window.performance&&(window.performance.clearResourceTimings||window.performance.webkitClearResourceTimings||window.performance.mozClearResourceTimings||window.performance.msClearResourceTimings||window.performance.oClearResourceTimings);wc=Xc?l(Xc,window.performance):ba;
function sc(){return"nav-prefetches"in t?t["nav-prefetches"]:q("nav-prefetches",{})}function lc(){q("nav-scroll-position",null);q("nav-scroll-url",null)}function hc(a){a=a||{};this.current=a.history&&a.current?a.current:window.location.href;this.history=!!a.history;this.a=a.a||"";this.position=a.position||null;this.b=void 0!=a.b?a.b:window.location.href;this.reverse=!!a.reverse;this.e=!!a.e;this.type=a.type||""}
var Rc="onError",Sc="onRequest",Tc="onPartProcess",Uc="onPartDone",Vc="onProcess",Wc="onDone",oc="1",xc="2",Gc="3",Ic="4",Cc="5",nc="9",Ac="10";function Yc(){Va(M);Va(T);"complete"==document.readyState&&(document.removeEventListener?document.removeEventListener("DOMContentLoaded",Yc,!1):document.detachEvent&&document.detachEvent("onreadystatechange",Yc))}document.addEventListener?document.addEventListener("DOMContentLoaded",Yc,!1):document.attachEvent&&document.attachEvent("onreadystatechange",Yc);Yc();
var Zc={init:function(a){var b=!("function"!=typeof window.history.pushState&&!ja().contentWindow.history.pushState);a=a||{};for(var c in ca)u[c]=c in a?a[c]:ca[c];for(c in a)c in ca||(u[c]=a[c]);if(b){c=zc;if(!t["history-init"]&&window.addEventListener){a=window.location.href;window.addEventListener("popstate",ka,!1);q("history-init",!0);q("history-callback",mc);q("history-error-callback",c);q("history-listener",ka);q("history-url",a);q("history-timestamp",p());var d={"spf-referer":document.referrer};
try{ga(a,d)}catch(e){c&&c(a,e)}}!t["nav-init"]&&document.addEventListener&&(q("nav-init",!0),q("nav-init-time",p()),q("nav-counter",0),document.addEventListener("click",fc,!1),q("nav-listener",fc),!u["experimental-prefetch-mousedown"]||"ontouchstart"in window||0<window.navigator.maxTouchPoints||0<window.navigator.msMaxTouchPoints||(document.addEventListener("mousedown",ic,!1),q("nav-mousedown-listener",ic)),document.addEventListener("scroll",kc,!1),q("nav-scroll-listener",kc))}return b},dispose:function(){"undefined"!=
typeof History&&History.prototype.pushState&&(pc(),t["nav-init"]&&(document.removeEventListener&&(document.removeEventListener("click",t["nav-listener"],!1),document.removeEventListener("mousedown",t["nav-mousedown-listener"],!1),document.removeEventListener("scroll",t["nav-scroll-listener"],!1)),q("nav-listener",null),q("nav-mousedown-listener",null),q("nav-scroll-listener",null),q("nav-scroll-position",null),q("nav-scroll-url",null),q("nav-init",!1),q("nav-init-time",null),q("nav-counter",null)),
t["history-init"]&&(window.removeEventListener&&window.removeEventListener("popstate",t["history-listener"],!1),q("history-init",!1),q("history-callback",null),q("history-error-callback",null),q("history-listener",null),q("history-url",null),q("history-timestamp",0)));for(var a in u)delete u[a]},navigate:function(a,b){a&&(a=Ea(a),dc(a)?ec()?gc(a,b||{},new hc):X(a,oc):X(a,nc))},load:function(a,b){a=Ea(a);Kc(a,b||{},new hc)},prefetch:jc,process:function(a,b){function c(a,c,d,e){a==c&&b&&b(e)}var d=
window.location.href;if("multipart"==a.type)for(var e=a.parts,f=0;f<e.length;f++){var g=l(c,null,f,e.length-1);V(d,e[f],null,g)}else g=l(c,null,0,0),V(d,a,null,g)}},$c={cache:{remove:oa,clear:function(){x({})}},script:{load:cb,get:eb,ready:gb,done:function(a){Ia(M,a,"");Ka(M)},require:hb,declare:function(a,b){if(a){for(var c in a)U[c]=a[c];if(b)for(c in b)ib[c]=b[c]}},path:function(a){q("rsrc-p-"+M,a)},unload:db,ignore:function(a,b){a=w(a);var c=O(M,a.sort().join("|"));wa(c,b)},unrequire:jb,prefetch:fb},
style:{load:nb,get:ob,unload:function(a){Na(T,a)},path:function(a){q("rsrc-p-"+T,a)},prefetch:pb}},ad=this.spf=this.spf||{},bd;for(bd in Zc)ad[bd]=Zc[bd];for(var cd in $c)for(var dd in $c[cd])ad[cd]=ad[cd]||{},ad[cd][dd]=$c[cd][dd];n("spfready");if(typeof define=='function'&&define.amd)define(spf);else if(typeof exports=='object')for(var f in spf)exports[f]=spf[f];})();


