self.AMP_CONFIG={"amp-consent":1,"fixed-elements-in-lightbox":1,"chunked-amp":1,"hidden-mutation-observer":1,"expAdsenseCanonical":0.01,"canary":0,"expAdsenseUnconditionedCanonical":0.01,"amp-story-v1":1,"ad-type-custom":1,"linker-form":1,"no-sync-xhr-in-ads":1,"a4aProfilingRate":0.01,"allow-url-opt-in":["pump-early-frame","twitter-default-placeholder","twitter-default-placeholder-pulse","twitter-default-placeholder-fade"],"version-locking":1,"scroll-height-bounce":0,"amp-sidebar toolbar":1,"amp-auto-ads-adsense-holdout":0.1,"amp-list-resizable-children":1,"as-use-attr-for-format":0.01,"amp-auto-ads-adsense-responsive":0.05,"font-display-swap":1,"amp-ima-video":1,"amp-playbuzz":1,"amp-auto-lightbox":0.05,"amp-auto-ads":1,"pump-early-frame":1,"amp-date-picker":1,"amp-access-iframe":1,"a4aFastFetchAdSenseLaunched":0,"amp-list-viewport-resize":1,"doubleclickSraExp":0.01,"allow-doc-opt-in":["amp-date-picker","amp-next-page","ampdoc-shell","disable-amp-story-desktop","linker-meta-opt-in"],"amp-apester-media":1,"doubleclickSraReportExcludedBlock":0.1,"amp-live-list-sorting":1,"linker-meta-opt-in":1,"ampdoc-closest":0.01,"amp-story-responsive-units":1,"scroll-height-minheight":0,"user-error-reporting":1,"expAdsenseA4A":0.01,"a4aFastFetchDoubleclickLaunched":0,"adsense-ff-number-delay":0.01,"no-initial-intersection":1,"sandbox-ads":1,"v":"011903070012530","type":"production"};/*AMP_CONFIG*/(function(){var f,ca="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},da;if("function"==typeof Object.setPrototypeOf)da=Object.setPrototypeOf;else{var ea;a:{var ia={a:!0},ka={};try{ka.__proto__=ia;ea=ka.a;break a}catch(a){}ea=!1}da=ea?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ma=da;
function na(a,b){a.prototype=ca(b.prototype);a.prototype.constructor=a;if(ma)ma(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Ih=b.prototype}var oa=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a}(this);function pa(a,b){b=void 0===b?"":b;try{return decodeURIComponent(a)}catch(c){return b}};var qa=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function q(a){var b=Object.create(null);if(!a)return b;for(var c;c=qa.exec(a);){var d=pa(c[1],c[1]),e=c[2]?pa(c[2],c[2]):"";b[d]=e}return b};var ra="";
function r(a){var b=a||self;if(b.AMP_MODE)var c=b.AMP_MODE;else{c=b;var d=self.AMP_CONFIG||{},e=!!d.test||!1,g=q(c.location.originalHash||c.location.hash);d=d.spt;var h=q(c.location.search);ra||(ra=c.AMP_CONFIG&&c.AMP_CONFIG.v?c.AMP_CONFIG.v:"011903070012530");c=b.AMP_MODE={localDev:!1,development:!("1"!=g.development&&!c.AMP_DEV_MODE),examiner:"2"==g.development,filter:g.filter,geoOverride:g["amp-geo"],minified:!0,lite:void 0!=h.amp_lite,test:e,log:g.log,version:"1903070012530",rtvVersion:ra,
singlePassType:d}}return c};function sa(a,b){var c=b||0,d=this.length;for(b=0<=c?c:Math.max(d+c,0);b<d;b++){var e=this[b];if(e===a||a!==a&&e!==e)return!0}return!1};function ta(a,b){var c=void 0===b?this.contains(a):!b;if(c)return this.remove(a),!1;this.add(a);return!0}function wa(a){/Trident|MSIE|IEMobile/i.test(a.navigator.userAgent)&&a.DOMTokenList&&a.Object.defineProperty(a.DOMTokenList.prototype,"toggle",{enumerable:!1,configurable:!0,writable:!0,value:ta})};function xa(a){return a==this||this.documentElement.contains(a)}function ya(a){var b=a.HTMLDocument||a.Document;b.prototype.contains||a.Object.defineProperty(b.prototype,"contains",{enumerable:!1,configurable:!0,writable:!0,value:xa})};var za=Object.prototype.toString;function Aa(a){return Array.isArray(a)}function Ba(a){return"[object Object]"===za.call(a)}function Ca(a){return"number"===typeof a&&isFinite(a)};function Ea(a){return 0<=a.indexOf("\u200b\u200b\u200b")}var Fa=void 0;function Ga(a){Fa=a}function Ha(a,b,c){this.win=a;this.Sg=b;this.Tg=this.win.console&&this.win.console.log&&"0"!=r().log?this.Sg({localDev:!1,development:r(void 0).development,filter:r(void 0).filter,minified:!0,lite:r(void 0).lite,test:!1,log:r(void 0).log,version:r(void 0).version,rtvVersion:r(void 0).rtvVersion,singlePassType:r(void 0).singlePassType}):0;this.Qc=c||""}function Ia(a){return void 0!==Fa?Fa:a.Tg}
function Ja(a,b,c){if(0!=Ia(a)){var d=a.win.console.log;"ERROR"==b?d=a.win.console.error||d:"INFO"==b?d=a.win.console.info||d:"WARN"==b&&(d=a.win.console.warn||d);d.apply(a.win.console,c)}}f=Ha.prototype;f.isEnabled=function(){return 0!=Ia(this)};f.fine=function(a,b){4<=Ia(this)&&Ja(this,"FINE",Array.prototype.slice.call(arguments,1))};f.info=function(a,b){3<=Ia(this)&&Ja(this,"INFO",Array.prototype.slice.call(arguments,1))};
f.warn=function(a,b){2<=Ia(this)&&Ja(this,"WARN",Array.prototype.slice.call(arguments,1))};f.Da=function(a,b){if(1<=Ia(this))Ja(this,"ERROR",Array.prototype.slice.call(arguments,1));else{var c=Ka.apply(null,Array.prototype.slice.call(arguments,1));La(this,c);return c}};f.error=function(a,b){var c=this.Da.apply(this,arguments);c&&(c.name=a||c.name,self.reportError(c))};f.expectedError=function(a,b){var c=this.Da.apply(this,arguments);c&&(c.expected=!0,self.reportError(c))};
f.createError=function(a){var b=Ka.apply(null,arguments);La(this,b);return b};f.createExpectedError=function(a){var b=Ka.apply(null,arguments);La(this,b);b.expected=!0;return b};
f.assert=function(a,b,c){var d;if(!a){var e=(b||"Assertion failed").split("%s"),g=e.shift(),h=g,k=[],l=2;for(""!=g&&k.push(g);0<e.length;){var m=e.shift(),n=arguments[l++];n&&n.tagName&&(d=n);k.push(n);g=m.trim();""!=g&&k.push(g);g=n;h+=(g&&1==g.nodeType?g.tagName.toLowerCase()+(g.id?"#"+g.id:""):g)+m}l=Error(h);l.fromAssert=!0;l.associatedElement=d;l.messageArray=k;La(this,l);self.reportError(l);throw l;}return a};
f.assertElement=function(a,b){this.assert(a&&1==a.nodeType,(b||"Element expected")+": %s",a);return a};f.assertString=function(a,b){this.assert("string"==typeof a,(b||"String expected")+": %s",a);return a};f.assertNumber=function(a,b){this.assert("number"==typeof a,(b||"Number expected")+": %s",a);return a};f.assertArray=function(a,b){this.assert(Array.isArray(a),(b||"Array expected")+": %s",a);return a};f.assertBoolean=function(a,b){this.assert(!!a===a,(b||"Boolean expected")+": %s",a);return a};
f.assertEnumValue=function(a,b,c){a:{for(var d in a)if(a[d]===b){a=!0;break a}a=!1}if(a)return b;this.assert(!1,'Unknown %s value: "%s"',c||"enum",b)};function La(a,b){b=Ma(b);a.Qc?b.message?-1==b.message.indexOf(a.Qc)&&(b.message+=a.Qc):b.message=a.Qc:Ea(b.message)&&(b.message=b.message.replace("\u200b\u200b\u200b",""))}function Ma(a){var b=Object.getOwnPropertyDescriptor(a,"message");if(b&&b.writable)return a;var c=a.stack,d=Error(a.message),e;for(e in a)d[e]=a[e];d.stack=c;return d}
function Ka(a){for(var b=null,c="",d=0;d<arguments.length;d++){var e=arguments[d];e instanceof Error&&!b?b=Ma(e):(c&&(c+=" "),c+=e)}b?c&&(b.message=c+": "+b.message):b=Error(c);return b}function Oa(a){var b=Ka.apply(null,arguments);setTimeout(function(){self.reportError(b);throw b;})}self.log=self.log||{user:null,dev:null,userForEmbed:null};var Pa=self.log,Qa=null;
function u(a){Pa.user||(Pa.user=Ra("\u200b\u200b\u200b"));var b=Pa.user.win;return a&&a.ownerDocument.defaultView!=b?Pa.userForEmbed?Pa.userForEmbed:Pa.userForEmbed=Ra("\u200b\u200b\u200b\u200b"):Pa.user}function Ra(a){if(!Qa)throw Error("failed to call initLogConstructor");return new Qa(self,function(a){var b=parseInt(a.log,10);return a.development||1<=b?4:2},a)}
function w(){if(Pa.dev)return Pa.dev;if(!Qa)throw Error("failed to call initLogConstructor");return Pa.dev=new Qa(self,function(a){a=parseInt(a.log,10);return 3<=a?4:2<=a?3:0})}function z(a,b,c,d,e,g){return u().assert(a,b,c,d,e,g,void 0,void 0,void 0,void 0,void 0)};var Sa=Object.prototype.hasOwnProperty;function A(a){var b=Object.create(null);a&&Object.assign(b,a);return b}function B(a){return a||{}};function C(){var a,b;this.promise=new Promise(function(c,d){a=c;b=d});this.resolve=a;this.reject=b}function Ta(a){return new Promise(function(b){b(a())})};/*
 https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
var Ua=/(\0)|^(-)$|([\x01-\x1f\x7f]|^-?[0-9])|([\x80-\uffff0-9a-zA-Z_-]+)|[^]/g;function Va(a,b,c,d,e){return e?e:b?"\ufffd":d?a.slice(0,-1)+"\\"+a.slice(-1).charCodeAt(0).toString(16)+" ":"\\"+a};var Wa;function $a(a){try{var b=a.ownerDocument,c=b.createElement("div"),d=b.createElement("div");c.appendChild(d);return c.querySelector(":scope div")===d}catch(e){return!1}};function ab(a){return"loading"!=a.readyState&&"uninitialized"!=a.readyState}function bb(a){return"complete"==a.readyState}function cb(a,b){db(a,ab,b)}function db(a,b,c){var d=b(a);if(d)c(a);else{var e=function(){b(a)&&(d||(d=!0,c(a)),a.removeEventListener("readystatechange",e))};a.addEventListener("readystatechange",e)}}function eb(a){return new Promise(function(b){cb(a,b)})}function fb(a){return new Promise(function(b){db(a,bb,b)})};function gb(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}function hb(a,b){return b.length>a.length?!1:0==a.lastIndexOf(b,0)};function ib(a,b,c){if(b(a))c();else{var d=a.ownerDocument.defaultView;if(d.MutationObserver){var e=new d.MutationObserver(function(){b(a)&&(e.disconnect(),c())});e.observe(a,{childList:!0})}else var g=d.setInterval(function(){b(a)&&(d.clearInterval(g),c())},5)}}function pb(a,b){cb(a,b)}function qb(a){var b=a.isConnected;if(void 0!==b)return b;do if(a=rb(a),a.host)a=a.host;else break;while(1);return a.nodeType===Node.DOCUMENT_NODE}
function rb(a){if(Node.prototype.getRootNode)return a.getRootNode()||a;for(;a.parentNode;a=a.parentNode);return a}function sb(a,b){for(var c;a&&a!==c;a=a.parentElement)if(b(a))return a;return null}function tb(a,b){for(;a;a=a.parentNode)if(b(a))return a;return null}function ub(a,b){return a.closest?a.closest(b):sb(a,function(a){return vb(a,b)})}function wb(a,b){var c=[];for(a=a.firstElementChild;a;a=a.nextElementSibling)b(a)&&c.push(a);return c}
function xb(a,b){for(a=a.lastElementChild;a;a=a.previousElementSibling)if(b(a))return a;return null}function yb(a,b){var c=[];for(a=a.firstChild;a;a=a.nextSibling)b(a)&&c.push(a);return c}function zb(a,b){/^[\w-]+$/.test(b);return Ab(a,"> ["+b+"]")}function vb(a,b){var c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector;return c?c.call(a,b):!1}
function Bb(a,b){var c="i-amphtml-scoped";a.classList.add(c);var d=b.replace(/^|,/g,"$&."+c+" "),e=a.querySelectorAll(d);a.classList.remove(c);return e}function Ab(a,b){if(void 0!==Wa?Wa:Wa=$a(a))return a.querySelector(b.replace(/^|,/g,"$&:scope "));var c=Bb(a,b);return void 0===c[0]?null:c[0]}function Cb(a,b,c,d){try{var e=a.open(b,c,d)}catch(g){w().error("DOM","Failed to open url on target: ",c,g)}e||"_top"==c||(e=a.open(b,"_top"));return e}function Lb(a){try{a.focus()}catch(b){}}
function Mb(a){return a.parent&&a.parent!=a}var Nb=Node.DOCUMENT_POSITION_PRECEDING|Node.DOCUMENT_POSITION_CONTAINS;function Ob(a){var b=Object.create(null),c;for(c in a)if(Pb(a,c)){var d=a[c];b[c]=Ba(d)?Ob(d):d}return b}function Qb(a){return JSON.parse(a)}function Rb(a){var b;try{return Qb(a)}catch(c){b&&b(c)}}function Pb(a,b){return null==a||"object"!=typeof a?!1:Object.prototype.hasOwnProperty.call(a,b)};function Sb(a){return"undefined"!==typeof TextEncoder?(new TextEncoder("utf-8")).encode(a):Tb(unescape(encodeURIComponent(a)))}function Tb(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++){var d=a.charCodeAt(c);b[c]=d}return b}function Ub(a){for(var b=Array(a.length),c=0;c<a.length;c++)b[c]=String.fromCharCode(a[c]);return b.join("")};var Vb={document:1,text:2},Wb=["GET","POST"];
function Xb(a,b){b=void 0===b?{}:b;return new Promise(function(c,d){var e=Yb(b.method||"GET"),g=Zb(e,a);"include"==b.credentials&&(g.withCredentials=!0);b.responseType in Vb&&(g.responseType=b.responseType);b.headers&&Object.keys(b.headers).forEach(function(a){g.setRequestHeader(a,b.headers[a])});g.onreadystatechange=function(){2>g.readyState||(100>g.status||599<g.status?(g.onreadystatechange=null,d(u().createExpectedError("Unknown HTTP status "+g.status))):4==g.readyState&&c(new $b(g)))};g.onerror=
function(){d(u().createExpectedError("Network failure"))};g.onabort=function(){d(u().createExpectedError("Request aborted"))};"POST"==e?g.send(b.body):g.send()})}function Zb(a,b){var c=new XMLHttpRequest;if("withCredentials"in c)c.open(a,b,!0);else throw w().createExpectedError("CORS is not supported");return c}function $b(a){this.Ya=a;this.status=this.Ya.status;this.statusText=this.Ya.statusText;this.ok=200<=this.status&&300>this.status;this.headers=new ac(a);this.bodyUsed=!1;this.body=null}
$b.prototype.clone=function(){return new $b(this.Ya)};function bc(a){a.bodyUsed=!0;return Promise.resolve(a.Ya.responseText)}$b.prototype.text=function(){return bc(this)};$b.prototype.json=function(){return bc(this).then(Qb)};$b.prototype.arrayBuffer=function(){return bc(this).then(Sb)};function Yb(a){if(void 0===a)return"GET";a=a.toUpperCase();Wb.includes(a);return a}function ac(a){this.Ya=a}ac.prototype.get=function(a){return this.Ya.getResponseHeader(a)};
ac.prototype.has=function(a){return null!=this.Ya.getResponseHeader(a)};
function cc(a,b){b=void 0===b?{}:b;var c=A();a=Object.assign({status:200,statusText:"OK",responseText:a?String(a):"",getResponseHeader:function(a){var b=String(a).toLowerCase();return Sa.call(c,b)?c[b]:null}},b);a.status=void 0===b.status?200:parseInt(b.status,10);if(Aa(b.headers))b.headers.forEach(function(a){var b=a[1];c[String(a[0]).toLowerCase()]=String(b)});else if(Ba(b.headers))for(var d in b.headers)c[String(d).toLowerCase()]=String(b.headers[d]);b.statusText&&(a.statusText=String(b.statusText));
$b.call(this,a)}na(cc,$b);function E(a,b,c,d){return{left:a,top:b,width:c,height:d,bottom:b+d,right:a+c,x:a,y:b}}function dc(a){for(var b=-Infinity,c=Infinity,d=-Infinity,e=Infinity,g=0;g<arguments.length;g++){var h=arguments[g];if(h&&(b=Math.max(b,h.left),c=Math.min(c,h.left+h.width),d=Math.max(d,h.top),e=Math.min(e,h.top+h.height),c<b||e<d))return null}return Infinity==c?null:E(b,d,c-b,e-d)}function ec(a,b,c){return E(a.left-a.width*b,a.top-a.height*c,a.width*(1+2*b),a.height*(1+2*c))}
function fc(a,b,c){return 0==b&&0==c||0==a.width&&0==a.height?a:E(a.left+b,a.top+c,a.width,a.height)};var gc=Element.prototype.getBoundingClientRect;function hc(){return qb(this)?gc.call(this):E(0,0,0,0)};function ic(a){return(a=Number(a))?0<a?1:-1:a};var jc=Object.prototype.hasOwnProperty;function kc(a,b){if(null==a)throw new TypeError("Cannot convert undefined or null to object");for(var c=Object(a),d=1;d<arguments.length;d++){var e=arguments[d];if(null!=e)for(var g in e)jc.call(e,g)&&(c[g]=e[g])}return c};function lc(a){return Object.keys(a).map(function(b){return a[b]})};function mc(a){if(!(this instanceof mc))throw new TypeError("Constructor Promise requires `new`");if(!nc(a))throw new TypeError("Must pass resolver function");this._state=oc;this._value=[];this._isChainEnd=!0;pc(this,qc(this,rc),qc(this,sc),{then:a})}mc.prototype.then=function(a,b){a=nc(a)?a:void 0;b=nc(b)?b:void 0;if(a||b)this._isChainEnd=!1;return this._state(this._value,a,b)};mc.prototype.catch=function(a){return this.then(void 0,a)};
function tc(a){var b=this;return a===Object(a)&&a instanceof this?a:new b(function(b){b(a)})}function uc(a){return new this(function(b,c){c(a)})}function vc(a){var b=this;return new b(function(c,d){var e=a.length,g=Array(e);if(0===e)return c(g);Lc(a,function(a,k){b.resolve(a).then(function(a){g[k]=a;0===--e&&c(g)},d)})})}function Mc(a){var b=this;return new b(function(c,d){for(var e=0;e<a.length;e++)b.resolve(a[e]).then(c,d)})}
function rc(a,b,c,d){if(!b)return d&&(b=d.promise,b._state=rc,b._value=a),this;d||(d=new Nc(this.constructor));Oc(Pc(d,b,a));return d.promise}function sc(a,b,c,d){if(!c)return d&&(b=d.promise,b._state=sc,b._value=a),this;d||(d=new Nc(this.constructor));Oc(Pc(d,c,a));return d.promise}function oc(a,b,c,d){if(!d){if(!b&&!c)return this;d=new Nc(this.constructor)}a.push({deferred:d,onFulfilled:b||d.resolve,onRejected:c||d.reject});return d.promise}
function Nc(a){var b=this;this.promise=new a(function(a,d){b.resolve=a;b.reject=d});return b}function Qc(a,b,c,d){var e=a._value;a._state=b;a._value=c;d&&b===oc&&d._state(c,void 0,void 0,{promise:a,resolve:void 0,reject:void 0});for(var g=0;g<e.length;g++){var h=e[g];a._state(c,h.onFulfilled,h.onRejected,h.deferred)}e.length=0;b===sc&&a._isChainEnd&&setTimeout(function(){if(a._isChainEnd)throw c;},0)}function qc(a,b){return function(c){Qc(a,b,c)}}function Rc(){}
function nc(a){return"function"===typeof a}function Lc(a,b){for(var c=0;c<a.length;c++)b(a[c],c)}function Pc(a,b,c){var d=a.promise,e=a.resolve,g=a.reject;return function(){try{var a=b(c);pc(d,e,g,a,a)}catch(k){g(k)}}}
var Oc=function(){function a(){for(var a=0;a<e;a++){var b=d[a];d[a]=null;b()}e=0}function b(a){0===e&&c();d[e++]=a}if("undefined"!==typeof window&&window.postMessage){window.addEventListener("message",a);var c=function(){window.postMessage("macro-task","*")}}else c=function(){setTimeout(a,0)};var d=Array(16),e=0;return b}();
function pc(a,b,c,d,e){var g=c,h;try{if(d===a)throw new TypeError("Cannot fulfill promise with itself");var k=d===Object(d);if(k&&d instanceof a.constructor)Qc(a,d._state,d._value,d);else if(k&&(h=d.then)&&nc(h)){var l=function(d){l=g=Rc;pc(a,b,c,d,d)};g=function(a){l=g=Rc;c(a)};h.call(e,function(a){l(a)},function(a){g(a)})}else b(d)}catch(m){g(m)}};/*
 Copyright (C) 2014-2016 by Andrea Giammarchi - @WebReflection

Use of this source code is governed by a MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.

*/
function Sc(a){function b(a){return a.toLowerCase()}var c="auto";function d(){var a=wc.splice(0,wc.length);for(xc=0;a.length;)a.shift().call(null,a.shift())}function e(a,b){for(var c=0,d=a.length;c<d;c++)J(a[c],b)}function g(a){for(var b=0,c=a.length,d;b<c;b++)d=a[b],zc(d,Db[k(d)])}function h(a){return function(b){fk(b)&&(J(b,a),ja.length&&e(b.querySelectorAll(ja),a))}}function k(a){var b=jb.call(a,"is"),c=a.nodeName.toUpperCase();a=ua.call(Xa,b?Ac+b.toUpperCase():Eb+c);return b&&-1<a&&!l(c,b)?-1:
a}function l(a,b){return-1<ja.indexOf(a+'[is="'+b+'"]')}function m(a){var b=a.currentTarget,c=a.attrChange,d=a.attrName,e=a.target,g=a[Bc]||2,h=a[Ed]||3;if(Cc&&(!e||e===b)&&b[Na]&&"style"!==d&&(a.prevValue!==a.newValue||""===a.newValue&&(c===g||c===h)))b[Na](d,c===g?null:a.prevValue,c===h?null:a.newValue)}function n(a){var b=h(a);return function(a){wc.push(b,a.target);xc&&clearTimeout(xc);xc=setTimeout(d,1)}}function t(a){Vf&&(Vf=!1,a.currentTarget.removeEventListener(Wf,t));ja.length&&e((a.target||
H).querySelectorAll(ja),a.detail===va?va:la);kb&&v()}function p(a,b){Xf.call(this,a,b);Yf.call(this,{target:this})}function x(a,b){gk(a,b);Dc?Dc.observe(a,hk):(Ec&&(a.setAttribute=p,a[fa]=Zf(a),a[ga](ik,Yf)),a[ga](Ya,m));a[Fb]&&Cc&&(a.created=!0,a[Fb](),a.created=!1)}function v(){for(var a,b=0,c=Gb.length;b<c;b++)a=Gb[b],lb.contains(a)||(c--,Gb.splice(b--,1),J(a,va))}function F(a){throw Error("A "+a+" type is already registered");}function J(a,b){var c,d=k(a);-1<d&&($f(a,Db[d]),d=0,b!==la||a[la]?
b!==va||a[va]||(a[la]=!1,a[va]=!0,d=1):(a[va]=!1,a[la]=!0,d=1,kb&&0>ua.call(Gb,a)&&Gb.push(a)),d&&(c=a[b+Za])&&c.call(a))}function G(){}function Y(a,c,d){d=d&&d[Hb]||"";var e=c.prototype,g=Fd(e),h=c.observedAttributes||Gd,k={prototype:g};Fc(g,Fb,{value:function(){if(Gc)Gc=!1;else if(!this[Ib]){this[Ib]=!0;new c(this);e[Fb]&&e[Fb].call(this);var a=Jb[Hc.get(c)];(!mb||1<a.create.length)&&K(this)}}});Fc(g,Na,{value:function(a){-1<ua.call(h,a)&&e[Na].apply(this,arguments)}});e[ag]&&Fc(g,jk,{value:e[ag]});
e[bg]&&Fc(g,kk,{value:e[bg]});d&&(k[Hb]=d);a=a.toUpperCase();Jb[a]={constructor:c,create:d?[d,b(a)]:[a]};Hc.set(c,a);H[D](a.toLowerCase(),k);Z(a);nb[a].r()}function aa(a){return(a=Jb[a.toUpperCase()])&&a.constructor}function y(a){return"string"===typeof a?a:a&&a.is||""}function K(a){for(var b=a[Na],c=b?a.attributes:Gd,d=c.length,e;d--;)e=c[d],b.call(a,e.name||e.nodeName,null,e.value||e.nodeValue)}function Z(a){a=a.toUpperCase();a in nb||(nb[a]={},nb[a].p=new cg(function(b){nb[a].r=b}));return nb[a].p}
function ha(){function c(b){var c=a[b];if(c){a[b]=function(a){var b;a||(a=this);a[Ib]||(Gc=!0,a=Jb[Hc.get(a.constructor)],a=(b=mb&&1===a.create.length)?Reflect.construct(c,Gd,a.constructor):H.createElement.apply(H,a.create),a[Ib]=!0,Gc=!1,b||K(a));return a};a[b].prototype=c.prototype;try{c.prototype.constructor=a[b]}catch(Mn){ob(c,Ib,{value:a[b]})}}}Da&&delete a.customElements;ob(a,"customElements",{configurable:!0,value:new G});ob(a,"CustomElementRegistry",{configurable:!0,value:G});for(var d=Ic.get(/^HTML[A-Z]*[a-z]/),
e=d.length;e--;c(d[e]));H.createElement=function(a,c){return(c=y(c))?Hd.call(this,a,b(c)):Hd.call(this,a)};dg||(Id=!0,H[D](""))}var H=a.document,Q=a.Object,Ic=function(a){function b(a,b){b=b.toLowerCase();b in e||(e[a]=(e[a]||[]).concat(b),e[b]=e[b.toUpperCase()]=a)}function c(a){var b=[],c;for(c in e)a.test(c)&&b.push(c);return b}var d=/^[A-Z]+[a-z]/,e=(Q.create||Q)(null),g={},h,k,l;for(k in a)for(l in a[k]){var m=a[k][l];e[l]=m;for(h=0;h<m.length;h++)e[m[h].toLowerCase()]=e[m[h].toUpperCase()]=
l}g.get=function(a){return"string"===typeof a?e[a]||(d.test(a)?[]:""):c(a)};g.set=function(a,c){return d.test(a)?b(a,c):b(c,a),g};return g}({collections:{HTMLAllCollection:["all"],HTMLCollection:["forms"],HTMLFormControlsCollection:["elements"],HTMLOptionsCollection:["options"]},elements:{Element:["element"],HTMLAnchorElement:["a"],HTMLAppletElement:["applet"],HTMLAreaElement:["area"],HTMLAttachmentElement:["attachment"],HTMLAudioElement:["audio"],HTMLBRElement:["br"],HTMLBaseElement:["base"],HTMLBodyElement:["body"],
HTMLButtonElement:["button"],HTMLCanvasElement:["canvas"],HTMLContentElement:["content"],HTMLDListElement:["dl"],HTMLDataElement:["data"],HTMLDataListElement:["datalist"],HTMLDetailsElement:["details"],HTMLDialogElement:["dialog"],HTMLDirectoryElement:["dir"],HTMLDivElement:["div"],HTMLDocument:["document"],HTMLElement:"element abbr address article aside b bdi bdo cite code command dd dfn dt em figcaption figure footer header i kbd mark nav noscript rp rt ruby s samp section small strong sub summary sup u var wbr".split(" "),
HTMLEmbedElement:["embed"],HTMLFieldSetElement:["fieldset"],HTMLFontElement:["font"],HTMLFormElement:["form"],HTMLFrameElement:["frame"],HTMLFrameSetElement:["frameset"],HTMLHRElement:["hr"],HTMLHeadElement:["head"],HTMLHeadingElement:"h1 h2 h3 h4 h5 h6".split(" "),HTMLHtmlElement:["html"],HTMLIFrameElement:["iframe"],HTMLImageElement:["img"],HTMLInputElement:["input"],HTMLKeygenElement:["keygen"],HTMLLIElement:["li"],HTMLLabelElement:["label"],HTMLLegendElement:["legend"],HTMLLinkElement:["link"],
HTMLMapElement:["map"],HTMLMarqueeElement:["marquee"],HTMLMediaElement:["media"],HTMLMenuElement:["menu"],HTMLMenuItemElement:["menuitem"],HTMLMetaElement:["meta"],HTMLMeterElement:["meter"],HTMLModElement:["del","ins"],HTMLOListElement:["ol"],HTMLObjectElement:["object"],HTMLOptGroupElement:["optgroup"],HTMLOptionElement:["option"],HTMLOutputElement:["output"],HTMLParagraphElement:["p"],HTMLParamElement:["param"],HTMLPictureElement:["picture"],HTMLPreElement:["pre"],HTMLProgressElement:["progress"],
HTMLQuoteElement:["blockquote","q","quote"],HTMLScriptElement:["script"],HTMLSelectElement:["select"],HTMLShadowElement:["shadow"],HTMLSlotElement:["slot"],HTMLSourceElement:["source"],HTMLSpanElement:["span"],HTMLStyleElement:["style"],HTMLTableCaptionElement:["caption"],HTMLTableCellElement:["td","th"],HTMLTableColElement:["col","colgroup"],HTMLTableElement:["table"],HTMLTableRowElement:["tr"],HTMLTableSectionElement:["thead","tbody","tfoot"],HTMLTemplateElement:["template"],HTMLTextAreaElement:["textarea"],
HTMLTimeElement:["time"],HTMLTitleElement:["title"],HTMLTrackElement:["track"],HTMLUListElement:["ul"],HTMLUnknownElement:["unknown","vhgroupv","vkeygen"],HTMLVideoElement:["video"]},nodes:{Attr:["node"],Audio:["audio"],CDATASection:["node"],CharacterData:["node"],Comment:["#comment"],Document:["#document"],DocumentFragment:["#document-fragment"],DocumentType:["node"],HTMLDocument:["#document"],Image:["img"],Option:["option"],ProcessingInstruction:["node"],ShadowRoot:["#shadow-root"],Text:["#text"],
XMLDocument:["xml"]}});c||(c="auto");var D="registerElement",fa="__"+D+(1E5*a.Math.random()>>0),ga="addEventListener",la="attached",Za="Callback",va="detached",Hb="extends",Na="attributeChanged"+Za,jk=la+Za,ag="connected"+Za,bg="disconnected"+Za,Fb="created"+Za,kk=va+Za,Bc="ADDITION",Jd="MODIFICATION",Ed="REMOVAL",Ya="DOMAttrModified",Wf="DOMContentLoaded",ik="DOMSubtreeModified",Eb="<",Ac="=",lk=/^[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+$/,mk="ANNOTATION-XML COLOR-PROFILE FONT-FACE FONT-FACE-SRC FONT-FACE-URI FONT-FACE-FORMAT FONT-FACE-NAME MISSING-GLYPH".split(" "),
Xa=[],Db=[],ja="",lb=H.documentElement,ua=Xa.indexOf||function(a){for(var b=this.length;b--&&this[b]!==a;);return b},Kd=Q.prototype,Ld=Kd.hasOwnProperty,Jc=Kd.isPrototypeOf,ob=Q.defineProperty,Gd=[],Md=Q.getOwnPropertyDescriptor,eg=Q.getOwnPropertyNames,nk=Q.getPrototypeOf,fg=Q.setPrototypeOf,gg=!!Q.__proto__,Ib="__dreCEv1",Da=a.customElements,mb="force"!==c&&!!(Da&&Da.define&&Da.get&&Da.whenDefined),hg=Q.create||Q,ok=a.Map||function(){var a=[],b=[],c;return{get:function(c){return b[ua.call(a,c)]},
set:function(d,e){c=ua.call(a,d);0>c?b[a.push(d)-1]=e:b[c]=e}}},cg=a.Promise||function(a){function b(a){for(d=!0;c.length;)c.shift()(a)}var c=[],d=!1,e={"catch":function(){return e},then:function(a){c.push(a);d&&setTimeout(b,1);return e}};a(b);return e},Gc=!1,Jb=hg(null),nb=hg(null),Hc=new ok,Fd=Q.create||function yc(a){return a?(yc.prototype=a,new yc):this},gk=fg||(gg?function(a,b){a.__proto__=b;return a}:eg&&Md?function(){function a(a,b){for(var c,d=eg(b),e=0,g=d.length;e<g;e++)c=d[e],Ld.call(a,
c)||ob(a,c,Md(b,c))}return function(b,c){do a(b,c);while((c=nk(c))&&!Jc.call(c,b));return b}}():function(a,b){for(var c in b)a[c]=b[c];return a}),Kb=a.MutationObserver||a.WebKitMutationObserver,ba=(a.HTMLElement||a.Element||a.Node).prototype,kb=!Jc.call(ba,lb),Fc=kb?function(a,b,c){a[b]=c.value;return a}:ob,fk=kb?function(a){return 1===a.nodeType}:function(a){return Jc.call(ba,a)},Gb=kb&&[],ig=ba.attachShadow,pk=ba.cloneNode,Nd=ba.dispatchEvent,jb=ba.getAttribute,qk=ba.hasAttribute,rk=ba.removeAttribute,
Xf=ba.setAttribute,Kc=H.createElement,Hd=Kc,hk=Kb&&{attributes:!0,characterData:!0,attributeOldValue:!0},jg=Kb||function(){Ec=!1;lb.removeEventListener(Ya,jg)},wc,xc=0,dg=D in H,kg=!0,Id=!1,Ec=!0,Vf=!0,Cc=!0,Dc,Od;if(!dg){if(fg||gg){var $f=function(a,b){Jc.call(b,a)||x(a,b)};var zc=x}else zc=$f=function(a,b){a[fa]||(a[fa]=Q(!0),x(a,b))};if(kb)Ec=!1,function(){function a(a){var b=a.currentTarget,c=b[fa];a=a.propertyName;if(c.hasOwnProperty(a)){c=c[a];var d=new CustomEvent(Ya,{bubbles:!0});d.attrName=
c.name;d.prevValue=c.value||null;d.newValue=c.value=b[a]||null;null==d.prevValue?d[Bc]=d.attrChange=0:d[Jd]=d.attrChange=1;Nd.call(b,d)}}function b(a,b){var c=qk.call(this,a),d=c&&jb.call(this,a),e=new CustomEvent(Ya,{bubbles:!0});Xf.call(this,a,b);e.attrName=a;e.prevValue=c?d:null;e.newValue=b;c?e[Jd]=e.attrChange=1:e[Bc]=e.attrChange=0;Nd.call(this,e)}function c(a){var b=new CustomEvent(Ya,{bubbles:!0});b.attrName=a;b.prevValue=jb.call(this,a);b.newValue=null;b[Ed]=b.attrChange=2;rk.call(this,a);
Nd.call(this,b)}var d=Md(ba,ga),e=d.value;d.value=function(d,g,h){d===Ya&&this[Na]&&this.setAttribute!==b&&(this[fa]={className:{name:"class",value:this.className}},this.setAttribute=b,this.removeAttribute=c,e.call(this,"propertychange",a));e.call(this,d,g,h)};ob(ba,ga,d)}();else if(!Kb&&(lb[ga](Ya,jg),lb.setAttribute(fa,1),lb.removeAttribute(fa),Ec)){var Yf=function(a){var b,c;if(this===a.target){var d=this[fa];this[fa]=b=Zf(this);for(c in b){if(!(c in d))return Pd(0,this,c,d[c],b[c],Bc);if(b[c]!==
d[c])return Pd(1,this,c,d[c],b[c],Jd)}for(c in d)if(!(c in b))return Pd(2,this,c,d[c],b[c],Ed)}};var Pd=function(a,b,c,d,e,g){c={attrChange:a,currentTarget:b,attrName:c,prevValue:d,newValue:e};c[g]=a;m(c)};var Zf=function(a){for(var b,c={},d=a.attributes,e=0,g=d.length;e<g;e++)a=d[e],b=a.name,"setAttribute"!==b&&(c[b]=a.value);return c}}H[D]=function(a,b){function c(){return m?H.createElement(p,d):H.createElement(p)}var d=a.toUpperCase();kg&&(kg=!1,Kb?(Dc=function(a,b){function c(a,b){for(var c=0,
d=a.length;c<d;b(a[c++]));}return new Kb(function(d){for(var e,g,h,k=0,l=d.length;k<l;k++)if(e=d[k],"childList"===e.type)c(e.addedNodes,a),c(e.removedNodes,b);else if(g=e.target,Cc&&g[Na]&&"style"!==e.attributeName&&(h=jb.call(g,e.attributeName),h!==e.oldValue))g[Na](e.attributeName,e.oldValue,h)})}(h(la),h(va)),Od=function(a){Dc.observe(a,{childList:!0,subtree:!0});return a},Od(H),ig&&(ba.attachShadow=function(){return Od(ig.apply(this,arguments))})):(wc=[],H[ga]("DOMNodeInserted",n(la)),H[ga]("DOMNodeRemoved",
n(va))),H[ga](Wf,t),H[ga]("readystatechange",t),ba.cloneNode=function(a){var b=pk.call(this,!!a),c=k(b);-1<c&&zc(b,Db[c]);a&&ja.length&&g(b.querySelectorAll(ja));return b});if(Id)return Id=!1;-2<ua.call(Xa,Ac+d)+ua.call(Xa,Eb+d)&&F(a);if(!lk.test(d)||-1<ua.call(mk,d))throw Error("The type "+a+" is invalid");var l=b||Kd,m=Ld.call(l,Hb),p=m?b[Hb].toUpperCase():d;m&&-1<ua.call(Xa,Eb+p)&&F(p);b=Xa.push((m?Ac:Eb)+d)-1;ja=ja.concat(ja.length?",":"",m?p+'[is="'+a.toLowerCase()+'"]':p);c.prototype=Db[b]=
Ld.call(l,"prototype")?l.prototype:Fd(ba);ja.length&&e(H.querySelectorAll(ja),la);return c};H.createElement=Hd=function(a,c){var d=y(c),e=d?Kc.call(H,a,b(d)):Kc.call(H,a);a=""+a;var g=ua.call(Xa,(d?Ac:Eb)+(d||a).toUpperCase()),h=-1<g;d&&(e.setAttribute("is",d=d.toLowerCase()),h&&(h=l(a.toUpperCase(),d)));Cc=!H.createElement.innerHTMLHelper;h&&zc(e,Db[g]);return e}}G.prototype={constructor:G,define:mb?function(a,b,c){if(c)Y(a,b,c);else{var d=a.toUpperCase();Jb[d]={constructor:b,create:[d]};Hc.set(b,
d);Da.define(a,b)}}:Y,get:mb?function(a){return Da.get(a)||aa(a)}:aa,whenDefined:mb?function(a){return cg.race([Da.whenDefined(a),Z(a)])}:Z};if(Da&&"force"!==c)try{(function(b,c,d){c[Hb]="a";b.prototype=Fd(HTMLAnchorElement.prototype);b.prototype.constructor=b;a.customElements.define(d,b,c);if(jb.call(H.createElement("a",{is:d}),"is")!==d||mb&&jb.call(new b,"is")!==d)throw c;})(function yc(){return Reflect.construct(HTMLAnchorElement,[],yc)},{},"document-register-element-a")}catch(ek){ha()}else ha();
try{Kc.call(H,"a","a")}catch(ek){b=function(a){return{is:a.toLowerCase()}}}};function Tc(){var a=100;this.tg=a;this.bd=this.V=0;this.$a=Object.create(null)}Tc.prototype.has=function(a){return!!this.$a[a]};Tc.prototype.get=function(a){var b=this.$a[a];if(b)return b.access=++this.bd,b.payload};Tc.prototype.put=function(a,b){this.has(a)||this.V++;this.$a[a]={payload:b,access:this.bd};if(!(this.V<=this.tg)){w().warn("lru-cache","Trimming LRU cache");a=this.$a;var c=this.bd+1,d;for(d in a){var e=a[d].access;if(e<c){c=e;var g=d}}void 0!==g&&(delete a[g],this.V--)}};var Uc=self.AMP_CONFIG||{},Vc={thirdParty:Uc.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:Uc.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:("string"==typeof Uc.thirdPartyFrameRegex?new RegExp(Uc.thirdPartyFrameRegex):Uc.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,cdn:Uc.cdnUrl||"https://cdn.ampproject.org",cdnProxyRegex:("string"==typeof Uc.cdnProxyRegex?new RegExp(Uc.cdnProxyRegex):Uc.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,
errorReporting:Uc.errorReportingUrl||"https://amp-error-reporting.appspot.com/r",localDev:Uc.localDev||!1},Wc={urls:Vc};var Xc=B({c:!0,v:!0,a:!0,ad:!0,action:!0}),Yc,Zc,$c=/[?&]amp_js[^&]*/,ad=/[?&]amp_gsa[^&]*/,bd=/[?&]amp_r[^&]*/,cd=/[?&]amp_kit[^&]*/,dd=/[?&]usqp[^&]*/,ed=["javascript:","data:","vbscript:"];function I(a,b){Yc||(Yc=self.document.createElement("a"),Zc=self.UrlCache||(self.UrlCache=new Tc));return fd(Yc,a,b?null:Zc)}
function fd(a,b,c){if(c&&c.has(b))return c.get(b);a.href=b;a.protocol||(a.href=a.href);var d={href:a.href,protocol:a.protocol,host:a.host,hostname:a.hostname,port:"0"==a.port?"":a.port,pathname:a.pathname,search:a.search,hash:a.hash,origin:null};"/"!==d.pathname[0]&&(d.pathname="/"+d.pathname);if("http:"==d.protocol&&80==d.port||"https:"==d.protocol&&443==d.port)d.port="",d.host=d.hostname;d.origin=a.origin&&"null"!=a.origin?a.origin:"data:"!=d.protocol&&d.host?d.protocol+"//"+d.host:d.href;var e=
d;c&&c.put(b,e);return e}function gd(a,b,c){if(!b)return a;var d=a.split("#",2),e=d[0].split("?",2),g=e[0]+(e[1]?c?"?"+b+"&"+e[1]:"?"+e[1]+"&"+b:"?"+b);return g+=d[1]?"#"+d[1]:""}function hd(a,b){return gd(a,id(b))}function id(a){var b=[],c;for(c in a){var d=a[c];if(null!=d)if(Aa(d))for(var e=0;e<d.length;e++){var g=d[e];b.push(encodeURIComponent(c)+"="+encodeURIComponent(g))}else b.push(encodeURIComponent(c)+"="+encodeURIComponent(d))}return b.join("&")}
function jd(a){"string"==typeof a&&(a=I(a));return"https:"==a.protocol||"localhost"==a.hostname||gb(a.hostname,".localhost")}function kd(a,b,c){c=void 0===c?"source":c;z(null!=a,"%s %s must be available",b,c);var d=a;z(jd(d)||/^(\/\/)/.test(d),'%s %s must start with "https://" or "//" or be relative and served from either https or from localhost. Invalid value: %s',b,c,d);return d}function ld(a){var b=a.indexOf("#");return-1==b?a:a.substring(0,b)}
function md(a){"string"==typeof a&&(a=I(a));return Vc.cdnProxyRegex.test(a.origin)}function nd(a){if(!a)return!0;"string"==typeof a&&(a=I(a));return!ed.includes(a.protocol)}function od(a){var b=I(a),c=pd(b.search);return b.origin+b.pathname+c+b.hash}function pd(a){if(!a||"?"==a)return"";var b=a.replace($c,"").replace(ad,"").replace(bd,"").replace(cd,"").replace(dd,"").replace(/^[?&]/,"");return b?"?"+b:""}
function qd(a){"string"==typeof a&&(a=I(a));if(!md(a))return a.href;var b=a.pathname.split("/");z(Xc[b[1]],"Unknown path prefix in url %s",a.href);var c=b[2],d="s"==c?"https://"+decodeURIComponent(b[3]):"http://"+decodeURIComponent(c);z(0<d.indexOf("."),"Expected a . in origin %s",d);b.splice(1,"s"==c?3:2);return d+b.join("/")+pd(a.search)+(a.hash||"")}function rd(a){return I(qd(a)).origin}
function sd(a,b){td(b);var c=rd(a.location.href);a=encodeURIComponent("__amp_source_origin")+"="+encodeURIComponent(c);return gd(b,a,void 0)}function td(a){var b=I(a),c=q(b.search);z(!("__amp_source_origin"in c),"Source origin is not allowed in %s",a)};function ud(a,b){try{var c=a.document.cookie}catch(k){c=""}var d=c;if(!d)return null;var e=d.split(";");for(a=0;a<e.length;a++){var g=e[a].trim(),h=g.indexOf("=");if(-1!=h&&pa(g.substring(0,h).trim(),void 0)==b)return b=g.substring(h+1).trim(),pa(b,b)}return null}
function vd(a,b,c,d,e){if(!e||!e.allowOnProxyOrigin){if(md(a.location.href))throw Error("Should never attempt to set cookie on proxy origin: "+b);var g=I(a.location.href).hostname.toLowerCase(),h=I(Vc.cdn).hostname.toLowerCase();if(g==h||gb(g,"."+h))throw Error("Should never attempt to set cookie on proxy origin. (in depth check): "+b);}if(e&&e.highestAvailableDomain){g=a.location.hostname.split(".");h=g[g.length-1];for(var k=g.length-2;0<=k;k--)if(h=g[k]+"."+h,wd(a,b,c,d,h),ud(a,b)==c)return}g=void 0;
e&&e.domain&&(g=e.domain);wd(a,b,c,d,g)}function wd(a,b,c,d,e){"ampproject.org"==e&&(c="delete",d=0);b=encodeURIComponent(b)+"="+encodeURIComponent(c)+"; path=/"+(e?"; domain="+e:"")+"; expires="+(new Date(d)).toUTCString();try{a.document.cookie=b}catch(g){}};function xd(a){return!(!a.AMP_CONFIG||!a.AMP_CONFIG.canary)}function L(a,b){var c=yd(a);return!!c[b]}function zd(a,b,c,d){var e=L(a,b),g=!(void 0!==c?!c:e);if(g!=e&&(yd(a)[b]=g,!d)){var h=Ad(a);h[b]=g;b=h;var k=[],l;for(l in b)k.push((!1===b[l]?"-":"")+l);vd(a,"AMP_EXP",k.join(","),Date.now()+15552E6,{domain:a.location.hostname,allowOnProxyOrigin:!0})}return g}
function yd(a){if(a.__AMP__EXPERIMENT_TOGGLES)return a.__AMP__EXPERIMENT_TOGGLES;a.__AMP__EXPERIMENT_TOGGLES=Object.create(null);var b=a.__AMP__EXPERIMENT_TOGGLES;if(a.AMP_CONFIG)for(var c in a.AMP_CONFIG){var d=a.AMP_CONFIG[c];"number"===typeof d&&0<=d&&1>=d&&(b[c]=Math.random()<d)}if(a.AMP_CONFIG&&Array.isArray(a.AMP_CONFIG["allow-doc-opt-in"])&&0<a.AMP_CONFIG["allow-doc-opt-in"].length){var e=a.AMP_CONFIG["allow-doc-opt-in"],g=a.document.head.querySelector('meta[name="amp-experiments-opt-in"]');
if(g){var h=g.getAttribute("content").split(",");for(c=0;c<h.length;c++)-1!=e.indexOf(h[c])&&(b[h[c]]=!0)}}Object.assign(b,Ad(a));if(a.AMP_CONFIG&&Array.isArray(a.AMP_CONFIG["allow-url-opt-in"])&&0<a.AMP_CONFIG["allow-url-opt-in"].length){c=a.AMP_CONFIG["allow-url-opt-in"];a=q(a.location.originalHash||a.location.hash);for(var k=0;k<c.length;k++){var l=a["e-"+c[k]];"1"==l&&(b[c[k]]=!0);"0"==l&&(b[c[k]]=!1)}}return b}
function Ad(a){var b=ud(a,"AMP_EXP"),c=b?b.split(/\s*,\s*/g):[];a=Object.create(null);for(var d=0;d<c.length;d++)0!=c[d].length&&("-"==c[d][0]?a[c[d].substr(1)]=!1:a[c[d]]=!0);return a};wa(self);(function(a){a.fetch||(Object.defineProperty(a,"fetch",{value:Xb,writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(a,"Response",{value:cc,writable:!0,enumerable:!1,configurable:!0}))})(self);(function(a){a.Math.sign||a.Object.defineProperty(a.Math,"sign",{enumerable:!1,configurable:!0,writable:!0,value:ic})})(self);(function(a){a.Object.assign||a.Object.defineProperty(a.Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:kc})})(self);
(function(a){a.Object.values||a.Object.defineProperty(a.Object,"values",{configurable:!0,writable:!0,value:lc})})(self);(function(a){a.Promise||(a.Promise=mc,mc.default&&(a.Promise=mc.default),a.Promise.resolve=tc,a.Promise.reject=uc,a.Promise.all=vc,a.Promise.race=Mc)})(self);ya(self);(function(a){a.Array.prototype.includes||a.Object.defineProperty(Array.prototype,"includes",{enumerable:!1,configurable:!0,writable:!0,value:sa})})(self);
(function(a){try{var b=0!==a.document.createElement("div").getBoundingClientRect().top}catch(c){b=!0}b&&a.Object.defineProperty(a.Element.prototype,"getBoundingClientRect",{value:hc})})(self);Sc(self);function Bd(a,b){var c,d=a.ownerDocument.defaultView,e=d!=Cd(d);if(e){if(Dd(d,b)){var g=Qd(d,b);if(g)return g}if(!c)return null}a=Rd(a);a=Sd(a);return Dd(a,b)?Qd(a,b):null}function Td(a,b,c){Cd(a);Dd(a,b);Ud(a,a,b,function(){return c});Qd(a,b)}function M(a,b,c,d){a=Cd(a);Ud(a,a,b,c);d&&Qd(a,b)}function N(a,b,c,d){var e=Rd(a),g=Sd(e);Ud(g,e,b,c);d&&Qd(g,b)}function O(a,b){a=Cd(a);return Qd(a,b)}function Vd(a){a=Cd(a);return Dd(a,"performance")?Qd(a,"performance"):null}
function P(a,b){var c=Rd(a);c=Sd(c);return Qd(c,b)}function Wd(a,b){return Xd(Sd(a),b)}function Yd(a,b){return Zd(Sd(a),b)}function $d(a,b){a.__AMP_PARENT=b;a.__AMP_TOP=Cd(b)}function Cd(a){return a.__AMP_TOP||a}function ae(a,b){var c=(a.ownerDocument||a).defaultView;if(c&&c!=b&&Cd(c)==b)try{return c.frameElement}catch(d){}return null}function Rd(a){return a.nodeType?O((a.ownerDocument||a).defaultView,"ampdoc").getAmpDoc(a):a}function Sd(a){a=Rd(a);return a.isSingleDoc()?a.win:a}
function Qd(a,b){Dd(a,b);var c=be(a);a=c[b];a.obj||(a.obj=new a.ctor(a.context),a.ctor=null,a.context=null,a.resolve&&a.resolve(a.obj));return a.obj}function Ud(a,b,c,d){var e=be(a),g=e[c];g||(g=e[c]={obj:null,promise:null,resolve:null,reject:null,context:null,ctor:null});g.ctor||g.obj||(g.ctor=d,g.context=b,g.resolve&&Qd(a,c))}function Xd(a,b){var c=Zd(a,b);if(c)return c;a=be(a);a[b]=ce();return a[b].promise}
function Zd(a,b){var c=be(a)[b];if(c){if(c.promise)return c.promise;Qd(a,b);return c.promise=Promise.resolve(c.obj)}return null}function be(a){var b=a.services;b||(b=a.services={});return b}function Dd(a,b){a=a.services&&a.services[b];return!(!a||!a.ctor&&!a.obj)}function ce(){var a=new C,b=a.promise,c=a.resolve;a=a.reject;b.catch(function(){});return{obj:null,promise:b,resolve:c,reject:a,context:null,ctor:null}};function de(a,b,c){var d=Zd(a,b);return d?d:ee(a,b,c,!0)}function fe(a,b,c){return ge(a,b,c,void 0).then(function(a){return z(a,"Service %s was requested to be provided through %s, but %s is not loaded in the current page. To fix this problem load the JavaScript file for %s in this page.",b,c,c,c)})}
function ge(a,b,c,d){var e=Yd(a,b);if(e)return e;var g=Rd(a);return g.whenBodyAvailable().then(function(){return he(g.win,c,g.win.document.head)}).then(function(){if(d)var e=Yd(a,b);else e=g.win,e=e.ampExtendedElements&&e.ampExtendedElements[c]?Wd(a,b):null;return e})}function ie(a){var b=Bd(a,"bind");if(b)return Promise.resolve(b);b=a.ownerDocument.defaultView;var c=Cd(b);return b!==c?ee(b,"bind","amp-bind"):ge(a,"bind","amp-bind")}
function je(a){if(!a)return[];for(var b=[],c=a.querySelectorAll("script[custom-element]"),d=0;d<c.length;d++)b.push(c[d].getAttribute("custom-element"));return b}function ke(a){var b="amp-form";return a.whenBodyAvailable().then(function(){var c=a.getHeadNode(),d=b;return je(c).includes(d)})}function he(a,b,c){if(!je(c).includes(b))return Promise.resolve();var d=O(a,"extensions");return d.waitForExtension(a,b)}
function ee(a,b,c,d){return eb(a.document).then(function(){return he(a,c,a.document.head)}).then(function(){return d?Zd(a,b):a.ampExtendedElements&&a.ampExtendedElements[c]?Xd(a,b):null})};function le(a){return O(a,"ampdoc")}function R(a){return P(a,"documentInfo").get()}function me(a){return O(a,"extensions")}function ne(a){return O(a,"performance")}function oe(a){return O(a,"platform")}function pe(a){return P(a,"resources")}function S(a){return O(a,"timer")}function T(a){return P(a,"viewer")}function qe(a){return O(a,"vsync")}function re(a){return P(a,"viewport")};var se=null,te=["gclid","gclsrc"],ue=[/^t.co$/];function ve(){return z(se,"E#19457 trackImpressionPromise")}
function we(){var a=self,b=new C,c=b.promise,d=b.resolve;se=S(a).timeoutPromise(8E3,c,"TrackImpressionPromise timeout").catch(function(a){w().warn("IMPRESSION",a)});var e=T(a.document.documentElement),g=e.isTrustedViewer(),h=e.getReferrerUrl().then(function(a){return xe(a)});Promise.all([g,h]).then(function(b){var c=b[0],e=b[1];if(c||e||L(a,"alp")){var g=ye(a),h=ze(a);Promise.all([g,h]).then(function(){d()},function(){})}else d()})}
function ye(a){var b=T(a.document.documentElement);return b.getParam("replaceUrl")?b.hasCapability("replaceUrl")?b.sendMessageAwaitResponse("getReplaceUrl",void 0).then(function(a){a&&"object"==typeof a?b.replaceUrl(a.replaceUrl||null):w().warn("IMPRESSION","get invalid replaceUrl response")},function(a){w().warn("IMPRESSION","Error request replaceUrl from viewer",a)}):(b.replaceUrl(b.getParam("replaceUrl")||null),Promise.resolve()):Promise.resolve()}
function xe(a){var b=I(a);return"https:"!=b.protocol?!1:ue.some(function(a){return a.test(b.hostname)})}
function ze(a){var b=T(a.document.documentElement),c=b.getParam("click");if(!c)return Promise.resolve();if(0!=c.indexOf("https://"))return u().warn("IMPRESSION","click fragment param should start with https://. Found ",c),Promise.resolve();a.location.hash&&(a.location.hash="");return b.whenFirstVisible().then(function(){return Ae(a,c)}).then(function(b){if(b){var c=b.location;(b=b.tracking_url||c)&&!md(b)&&((new Image).src=b);if(c&&a.history.replaceState){b=T(a.document.documentElement);var d=a.location.href;
c=I(c);c=q(c.search);c=hd(d,c);a.history.replaceState(null,"",c);b.maybeUpdateFragmentForCct()}}}).catch(function(a){u().warn("IMPRESSION","Error on request clickUrl: ",a)})}function Ae(a,b){return O(a,"xhr").fetchJson(b,{credentials:"include",requireAmpResponseSourceOrigin:!1}).then(function(a){return 204==a.status?null:a.json()})}function Be(a){return a.whenReady().then(function(){return!!a.getBody().querySelector("amp-analytics[type=googleanalytics]")})};function Ce(){this.C=[]}Ce.prototype.peek=function(){var a=this.C.length;return a?this.C[a-1].item:null};Ce.prototype.enqueue=function(a,b){if(isNaN(b))throw Error("Priority must not be NaN.");for(var c=b,d=-1,e=0,g=this.C.length;e<=g;){d=Math.floor((e+g)/2);if(d===this.C.length)break;if(this.C[d].priority<c)e=d+1;else if(0<d&&this.C[d-1].priority>=c)g=d-1;else break}this.C.splice(d,0,{item:a,priority:b})};Ce.prototype.forEach=function(a){for(var b=this.C.length;b--;)a(this.C[b].item)};
Ce.prototype.dequeue=function(){return this.C.length?this.C.pop().item:null};oa.Object.defineProperties(Ce.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.C.length}}});var De=["_top","_blank"];
function Ee(a,b){var c=this;this.ampdoc=a;this.ma=b||a.getRootNode();this.I=re(this.ampdoc);this.h=T(this.ampdoc);this.P=P(this.ampdoc,"history");this.sa=oe(this.ampdoc.win);this.Ng=this.sa.isIos()&&this.sa.isSafari();this.Cb=Mb(this.ampdoc.win)&&this.h.isOvertakeHistory();this.Id=this.ma!=this.ampdoc.getRootNode();this.Mg="inabox"==r(this.ampdoc.win).runtime;this.Of=this.ma.nodeType==Node.DOCUMENT_NODE?this.ma.documentElement:this.ma;this.rb=this.Gg.bind(this);this.ma.addEventListener("click",this.rb);
this.ma.addEventListener("contextmenu",this.rb);this.Ee=!1;Be(this.ampdoc).then(function(a){c.Ee=a});this.$c=null;this.De=new Ce}Ee.installInEmbedWindow=function(a,b){Td(a,"navigation",new Ee(b,a.document))};f=Ee.prototype;f.cleanup=function(){this.rb&&(this.ma.removeEventListener("click",this.rb),this.ma.removeEventListener("contextmenu",this.rb))};f.openWindow=function(a,b,c,d){var e="";!this.sa.isIos()&&this.sa.isChrome()||d||(e+="noopener");var g=Cb(a,b,c,e);g&&!d&&(g.opener=null)};
f.navigateTo=function(a,b,c,d){var e=void 0===d?{}:d;d=void 0===e.target?"_top":e.target;e=void 0===e.opener?!1:e.opener;var g=Bd(this.Of,"url");if(g.isProtocolValid(b))if(z(De.includes(d),"Target '"+d+"' not supported."),"_blank"==d)this.openWindow(a,b,d,e);else{if(c&&(this.$c||(this.$c=Fe(this)),this.$c.includes(c)&&this.navigateToAmpUrl(b,c)))return;a.top.location.href=b}else u().error("navigation","Cannot navigate to invalid protocol: "+b)};
f.navigateToAmpUrl=function(a,b){return this.h.hasCapability("a2a")?(this.h.sendMessage("a2aNavigate",B({url:a,requestedBy:b})),!0):!1};function Fe(a){return(a=a.ma.querySelector('meta[name="amp-to-amp-navigation"]'))&&a.hasAttribute("content")?a.getAttribute("content").split(",").map(function(a){return a.trim()}):[]}
f.Gg=function(a){if(!a.defaultPrevented){var b=ub(a.target,"A");if(b&&b.href)if("click"==a.type){Ge(this,b);var c=He(this,b.href),d;if(d=!Ie(this,a,b,c)){if(this.Cb){d=b.ownerDocument.defaultView;var e=b.href;c=c.protocol;"ftp:"==c?(Cb(d,e,"_blank"),a.preventDefault(),d=!0):(c=/^(https?|mailto):$/.test(c),this.Ng&&!c?(Cb(d,e,"_top"),a.preventDefault(),d=!0):d=!1)}else d=!1;d=!d}d&&(Je(this,b,a),c=He(this,b.href),Ke(this,a,b,c))}else"contextmenu"==a.type&&(Ge(this,b),Je(this,b,a))}};
function Je(a,b,c){a.De.forEach(function(a){a(b,c)})}
function Ge(a,b){var c=null;if(a.Ee&&!a.Id){a=I(a.ampdoc.win.location.href);var d=q(a.search);a=[];for(var e=0;e<te.length;e++){var g=te[e];"undefined"!==typeof d[g]&&a.push(g)}d=b.getAttribute("data-amp-addparams");e=b.href;d&&(e=hd(e,q(d)));d=I(e);d=q(d.search);for(e=a.length-1;0<=e;e--)"undefined"!==typeof d[a[e]]&&a.splice(e,1);d="";for(e=0;e<a.length;e++)g=a[e],d+=0==e?g+"=QUERY_PARAM("+g+")":"&"+g+"=QUERY_PARAM("+g+")";c=d}var h=Bd(b,"url-replace");h.maybeExpandLink(b,c)}
function Ie(a,b,c,d){if(!c.hasAttribute("rel"))return!1;var e=c.getAttribute("rel").split(" ").map(function(a){return a.trim()});return e.includes("amphtml")?a.navigateToAmpUrl(d.href,"<a rel=amphtml>")?(b.preventDefault(),!0):!1:!1}
function Ke(a,b,c,d){var e="",g=He(a,e),h=""+d.origin+d.pathname+d.search,k=""+g.origin+g.pathname+g.search;if(d.hash&&h==k){if(b.preventDefault(),!a.Id){var l=d.hash.slice(1),m=null;if(l){var n=String(l).replace(Ua,Va);m=a.ma.getElementById(l)||a.ma.querySelector('a[name="'+n+'"]')}d.hash!=g.hash?a.P.replaceStateForTarget(d.hash).then(function(){Le(a,m,l)}):Le(a,m,l)}}else if(a.Id||a.Mg){var t=(c.getAttribute("target")||"").toLowerCase();"_top"!=t&&"_blank"!=t&&c.setAttribute("target","_blank")}else if(oe(a.ampdoc.win).isIe()){var p=
d.hash.substring(1),x=a.ampdoc.getElementById(p);x&&(/^(?:a|select|input|button|textarea)$/i.test(x.tagName)||(x.tabIndex=-1),Lb(x))}}f.registerAnchorMutator=function(a,b){this.De.enqueue(a,b)};function Le(a,b,c){b?(a.I.scrollIntoView(b),S(a.ampdoc.win).delay(function(){return a.I.scrollIntoView(b)},1)):w().warn("navigation","failed to find element with id="+c+" or a[name="+c+"]")}function He(a,b){return Bd(a.Of,"url").parse(b)}
function Me(a,b){if((a=ub(b.target,"A"))&&a.href){var c=a.getAttribute("data-a4a-orig-href")||a.getAttribute("href");if(c){var d={CLICK_X:function(){return b.pageX},CLICK_Y:function(){return b.pageY}},e=Bd(a,"url-replace").expandUrlSync(c,d,void 0,{CLICK_X:!0,CLICK_Y:!0});e!=c&&(a.getAttribute("data-a4a-orig-href")||a.setAttribute("data-a4a-orig-href",c),a.setAttribute("href",e))}}};var Ne;function Oe(a){a=a.ownerDocument||a;Ne&&Ne.ownerDocument===a||(Ne=a.createElement("div"));return Pe}function Pe(a){Ne.innerHTML=a[0];var b=Ne.firstElementChild;Ne.removeChild(b);return b};var Qe,Re="Webkit webkit Moz moz ms O o".split(" ");function Se(a,b,c){if(hb(b,"--"))return b;Qe||(Qe=A());var d=Qe[b];if(!d||c){d=b;if(void 0===a[b]){var e=b.charAt(0).toUpperCase()+b.slice(1);a:{for(var g=0;g<Re.length;g++){var h=Re[g]+e;if(void 0!==a[h]){e=h;break a}}e=""}var k=e;void 0!==a[k]&&(d=k)}c||(Qe[b]=d)}return d}function U(a,b){a=a.style;for(var c in b)a.setProperty(Se(a,c),b[c].toString(),"important")}function V(a,b,c,d){(b=Se(a.style,b,void 0))&&(a.style[b]=d?c+d:c)}
function Te(a,b){if(b=Se(a.style,b,void 0))return a.style[b]}function Ue(a,b){for(var c in b)V(a,c,b[c])}function Ve(a){"display"in a&&w().error("STYLE","`display` style detected in styles. You must use toggle instead.");return a}function We(a,b){void 0===b&&(b=a.hasAttribute("hidden"));b?a.removeAttribute("hidden"):a.setAttribute("hidden","")}function Xe(a,b){return a.getComputedStyle(b)||A()};var Ye=['\n      <i-amphtml-sizer class="i-amphtml-sizer">\n        <img alt="" role="presentation" aria-hidden="true"\n             class="i-amphtml-intrinsic-sizer" />\n      </i-amphtml-sizer>'];Ye.raw=['\n      <i-amphtml-sizer class="i-amphtml-sizer">\n        <img alt="" role="presentation" aria-hidden="true"\n             class="i-amphtml-intrinsic-sizer" />\n      </i-amphtml-sizer>'];
var Ze={NODISPLAY:"nodisplay",FIXED:"fixed",FIXED_HEIGHT:"fixed-height",RESPONSIVE:"responsive",CONTAINER:"container",FILL:"fill",FLEX_ITEM:"flex-item",FLUID:"fluid",INTRINSIC:"intrinsic"},$e={"AMP-PIXEL":{width:"0px",height:"0px"},"AMP-ANALYTICS":{width:"1px",height:"1px"},"AMP-AUDIO":null,"AMP-SOCIAL-SHARE":{width:"60px",height:"44px"}},af={"AMP-AD":!0,"AMP-ANIM":!0,"AMP-BRIGHTCOVE":!0,"AMP-DAILYMOTION":!0,"AMP-EMBED":!0,"AMP-FACEBOOK":!0,"AMP-FACEBOOK-COMMENTS":!0,"AMP-FACEBOOK-LIKE":!0,"AMP-FACEBOOK-PAGE":!0,
"AMP-GOOGLE-DOCUMENT-EMBED":!0,"AMP-IFRAME":!0,"AMP-IMG":!0,"AMP-INSTAGRAM":!0,"AMP-LIST":!0,"AMP-PINTEREST":!0,"AMP-PLAYBUZZ":!0,"AMP-YOUTUBE":!0,"AMP-VIMEO":!0},bf=/^amp\-(video|.+player)/i;function cf(a){for(var b in Ze)if(Ze[b]==a)return Ze[b]}function df(a){return"fixed"==a||"fixed-height"==a||"responsive"==a||"fill"==a||"flex-item"==a||"fluid"==a||"intrinsic"==a}
function ef(a){if("number"==typeof a)return a+"px";if(a&&/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)?$/.test(a))return/^\d+(\.\d+)?$/.test(a)?a+"px":a}function ff(a){z(/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)$/.test(a),"Invalid length value: %s",a);return a}function gf(a){z(/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|%)$/.test(a),"Invalid length or percent value: %s",a);return a}
function hf(a){ff(a);var b=z(a.match(/[a-z]+/i),"Failed to read units from %s",a);return b[0]}function jf(a){a=parseFloat(a);return Ca(a)?a:void 0};var kf;function lf(a,b,c,d){var e=a,g=c;var h=function(a){try{return g(a)}catch(n){throw self.reportError(n),n;}};var k=mf(),l=!1;d&&(l=d.capture);e.addEventListener(b,h,k?d:l);return function(){e&&e.removeEventListener(b,h,k?d:l);h=e=g=null}}function mf(){if(void 0!==kf)return kf;kf=!1;try{var a={get capture(){kf=!0}};self.addEventListener("test-options",null,a);self.removeEventListener("test-options",null,a)}catch(b){}return kf};function nf(a){var b={detail:null};Object.assign(b,{bubbles:!0});if("function"==typeof a.CustomEvent)return new a.CustomEvent("amp-ini-load",b);a=a.document.createEvent("CustomEvent");a.initCustomEvent("amp-ini-load",!!b.bubbles,!!b.cancelable,null);return a}function of(a,b,c,d){return lf(a,b,c,d)}function pf(a,b,c,d){var e=c,g=lf(a,b,function(a){try{e(a)}finally{e=null,g()}},d);return g}function qf(a,b){var c,d=new Promise(function(b){c=pf(a,"click",b,void 0)});d.then(c,c);b&&b(c);return d}
function rf(a){var b,c;if(a.complete||"complete"==a.readyState||a.document&&"complete"==a.document.readyState)return Promise.resolve(a);var d=new Promise(function(d,g){var e=a.tagName;b="AUDIO"===e||"VIDEO"===e?pf(a,"loadstart",d):pf(a,"load",d);e&&(c=pf(a,"error",g))});return d.then(function(){c&&c();return a},function(){b&&b();var c=a;c&&c.src&&(c=c.src);throw u().createError("Failed to load:",c);})};var sf=['\n        <link rel="preload" referrerpolicy="origin" />'];sf.raw=['\n        <link rel="preload" referrerpolicy="origin" />'];var tf=null;
function uf(a){this.aa=a.document;this.xd=a.document.head;this.Mb={};this.Zf={};this.sa=oe(a);this.Mb[I(a.location.href).origin]=!0;a:{if(!tf){var b=a.document.createElement("link");var c=b.relList;b.as="invalid-value";if(!c||!c.supports){b={};break a}tf={preconnect:c.supports("preconnect"),preload:c.supports("preload"),onlyValidAs:"invalid-value"!=b.as}}b=tf}this.fc=b;this.T=S(a)}uf.prototype.url=function(a,b,c){var d=this;a.whenFirstVisible().then(function(){d.te(a,b,c)})};
uf.prototype.te=function(a,b,c){if(vf(b)){a=I(b).origin;var d=Date.now(),e=this.Mb[a];if(e&&d<e)c&&(this.Mb[a]=d+18E4);else{this.Mb[a]=d+(c?18E4:1E4);if(!this.fc.preconnect){var g=this.aa.createElement("link");g.setAttribute("rel","dns-prefetch");g.setAttribute("href",a);this.xd.appendChild(g)}var h=this.aa.createElement("link");h.setAttribute("rel","preconnect");h.setAttribute("href",a);h.setAttribute("referrerpolicy","origin");this.xd.appendChild(h);this.T.delay(function(){g&&g.parentNode&&g.parentNode.removeChild(g);
h.parentNode&&h.parentNode.removeChild(h)},1E4);wf(this,a)}}};uf.prototype.preload=function(a,b,c){var d=this;vf(b)&&!this.Zf[b]&&(this.Zf[b]=!0,this.url(a,b,!0),this.fc.preload&&("document"==c&&this.sa.isSafari()||a.whenFirstVisible().then(function(){var a=Oe(d.aa)(sf);a.setAttribute("href",b);a.as=d.fc.onlyValidAs?"fetch":"";d.xd.appendChild(a)})))};function vf(a){return hb(a,"https:")||hb(a,"http:")?!0:!1}
function wf(a,b){if(!a.fc.preconnect&&(a.sa.isSafari()||a.sa.isIos())){var c=Date.now();a.Mb[b]=c+18E4;var d=c-c%18E4;a=new XMLHttpRequest;a.open("HEAD",b+"/amp_preconnect_polyfill_404_or_other_error_expected._Do_not_worry_about_it?"+d,!0);a.withCredentials=!0;a.send()}}function xf(a,b){this.Af=a;this.W=b;this.h=null}function yf(a){a.h||(a.h=T(a.W));return a.h}xf.prototype.url=function(a,b){this.Af.url(yf(this),a,b)};xf.prototype.preload=function(a,b){this.Af.preload(yf(this),a,b)};function zf(a){this.element=a;this.layout_="nodisplay";this.layoutWidth_=-1;this.inViewport_=!1;this.win=a.ownerDocument.defaultView;this.defaultActionAlias_=this.actionMap_=null;a=this.element;var b=a.ownerDocument.defaultView;M(b,"preconnect",uf);b=O(b,"preconnect");this.preconnect=new xf(b,a);this.config=null;this.layoutScheduleTime=0}f=zf.prototype;f.signals=function(){return this.element.signals()};f.getDefaultActionAlias=function(){return this.defaultActionAlias_};f.getLayoutPriority=function(){return 0};
f.updateLayoutPriority=function(a){this.element.getResources().updateLayoutPriority(this.element,a)};f.getLayout=function(){return this.layout_};f.getLayoutBox=function(){return this.element.getLayoutBox()};f.getPageLayoutBox=function(){return this.element.getPageLayoutBox()};f.getWin=function(){return this.win};f.getAmpDoc=function(){return this.element.getAmpDoc()};f.getVsync=function(){return qe(this.win)};f.getLayoutWidth=function(){return this.layoutWidth_};
f.getConsentPolicy=function(){var a=null;this.element.hasAttribute("data-block-on-consent")&&(a=this.element.getAttribute("data-block-on-consent")||"default");return a};f.isLayoutSupported=function(a){return"nodisplay"==a};f.isAlwaysFixed=function(){return!1};f.isInViewport=function(){return this.inViewport_};f.upgradeCallback=function(){return null};f.createdCallback=function(){};f.firstAttachedCallback=function(){};f.buildCallback=function(){};f.preconnectCallback=function(){};
f.detachedCallback=function(){};f.setAsOwner=function(a){this.element.getResources().setOwner(a,this.element)};f.prerenderAllowed=function(){return!1};f.createPlaceholderCallback=function(){return null};f.renderOutsideViewport=function(){return"inabox"==r(this.win).runtime||3};f.idleRenderOutsideViewport=function(){return!1};f.isRelayoutNeeded=function(){return!1};f.layoutCallback=function(){return Promise.resolve()};f.firstLayoutCompleted=function(){this.togglePlaceholder(!1)};
f.viewportCallback=function(){};f.pauseCallback=function(){};f.resumeCallback=function(){};f.unlayoutCallback=function(){return!1};f.unlayoutOnPause=function(){return!1};f.reconstructWhenReparented=function(){return!0};f.activate=function(){};f.activationTrust=function(){return 100};f.loadPromise=function(a){return rf(a)};function Af(a){a.actionMap_||(a.actionMap_=a.win.Object.create(null))}f.registerAction=function(a,b,c){c=void 0===c?100:c;Af(this);this.actionMap_[a]={handler:b,minTrust:c}};
f.registerDefaultAction=function(a,b,c){b=void 0===b?"activate":b;this.registerAction(b,a,void 0===c?100:c);this.defaultActionAlias_=b};f.executeAction=function(a){var b=a.method;"activate"===b&&(b=this.defaultActionAlias_||b);Af(this);var c=this.actionMap_[b];z(c,"Method not found: "+b+" in "+this.element.tagName);b=c.handler;if(a.satisfiesTrust(c.minTrust))return b(a)};f.getMaxDpr=function(){return this.element.getResources().getMaxDpr()};f.getDpr=function(){return this.element.getResources().getDpr()};
f.propagateAttributes=function(a,b,c){a=Aa(a)?a:[a];for(var d=0;d<a.length;d++){var e=a[d];this.element.hasAttribute(e)?b.setAttribute(e,this.element.getAttribute(e)):c&&b.removeAttribute(e)}};f.forwardEvents=function(a,b){var c=this,d=(Aa(a)?a:[a]).map(function(a){return of(b,a,function(b){c.element.dispatchCustomEvent(a,b.data||{})})});return function(){return d.forEach(function(a){return a()})}};f.getPlaceholder=function(){return this.element.getPlaceholder()};f.togglePlaceholder=function(a){this.element.togglePlaceholder(a)};
f.getFallback=function(){return this.element.getFallback()};f.toggleFallback=function(a){this.element.toggleFallback(a)};f.toggleLoading=function(a,b){this.element.toggleLoading(a,{force:!!b})};f.isLoadingReused=function(){return!1};f.getOverflowElement=function(){return this.element.getOverflowElement()};f.renderStarted=function(){this.element.renderStarted()};f.getRealChildNodes=function(){return this.element.getRealChildNodes()};f.getRealChildren=function(){return this.element.getRealChildren()};
f.applyFillContent=function(a,b){a.classList.add("i-amphtml-fill-content");b&&a.classList.add("i-amphtml-replaced-content")};f.getViewport=function(){return re(this.getAmpDoc())};f.getIntersectionElementLayoutBox=function(){return this.getLayoutBox()};f.scheduleLayout=function(a){this.element.getResources().scheduleLayout(this.element,a)};f.schedulePause=function(a){this.element.getResources().schedulePause(this.element,a)};
f.scheduleResume=function(a){this.element.getResources().scheduleResume(this.element,a)};f.schedulePreload=function(a){this.element.getResources().schedulePreload(this.element,a)};f.scheduleUnlayout=function(a){this.element.getResources().scheduleUnlayout(this.element,a)};f.updateInViewport=function(a,b){this.element.getResources().updateInViewport(this.element,a,b)};f.changeHeight=function(a){this.element.getResources().changeSize(this.element,a,void 0)};f.collapse=function(){this.element.getResources().collapseElement(this.element)};
f.attemptCollapse=function(){return this.element.getResources().attemptCollapse(this.element)};f.attemptChangeHeight=function(a){return this.element.getResources().attemptChangeSize(this.element,a,void 0)};f.attemptChangeSize=function(a,b){return this.element.getResources().attemptChangeSize(this.element,a,b)};f.measureElement=function(a){return this.element.getResources().measureElement(a)};f.mutateElement=function(a,b){return this.measureMutateElement(null,a,b)};
f.measureMutateElement=function(a,b,c){return this.element.getResources().measureMutateElement(c||this.element,a,b)};f.collapsedCallback=function(){};f.expand=function(){this.element.getResources().expandElement(this.element)};f.expandedCallback=function(){};f.mutatedAttributesCallback=function(){};f.onLayoutMeasure=function(){};f.onMeasureChanged=function(){};f.user=function(){return u(this.element)};
f.declareLayer=function(a){L(this.win,"layers");a&&this.element.contains(a);return this.element.getLayers().declareLayer(a||this.element)};function Bf(a,b){this.element=a;this.win=a.ownerDocument.defaultView||b;this.h=P(this.element,"viewer");this.compileCallback()}f=Bf.prototype;f.compileCallback=function(){};f.setHtml=function(){throw Error("Not implemented");};f.render=function(){throw Error("Not implemented");};
f.unwrap=function(a){for(var b=null,c=a.firstChild;null!=c;c=c.nextSibling)if(3==c.nodeType){if(c.textContent.trim()){b=null;break}}else if(8!=c.nodeType)if(1==c.nodeType)if(b){b=null;break}else b=c;else b=null;return b||a};f.viewerCanRenderTemplates=function(){return this.h.hasCapability("viewerRenderTemplate")};function Cf(a){this.A=a;this.nb={};this.Rc={}}f=Cf.prototype;f.setHtmlForTemplate=function(a,b){return Df(this,a).then(function(a){return a.setHtml(b)})};
f.renderTemplate=function(a,b){return Df(this,a).then(function(a){return a.render(b)})};f.renderTemplateArray=function(a,b){return 0==b.length?Promise.resolve([]):Df(this,a).then(function(a){return b.map(function(b){return a.render(b)})})};f.findAndRenderTemplate=function(a,b,c){return this.renderTemplate(this.findTemplate(a,c),b)};f.findAndSetHtmlForTemplate=function(a,b,c){return this.setHtmlForTemplate(this.findTemplate(a,c),b)};
f.findAndRenderTemplateArray=function(a,b,c){return this.renderTemplateArray(this.findTemplate(a,c),b)};f.hasTemplate=function(a,b){return!!this.maybeFindTemplate(a,b)};f.findTemplate=function(a,b){b=this.maybeFindTemplate(a,b);z(b,"Template not found for %s",a);var c=b.tagName;z("TEMPLATE"==c||"SCRIPT"==c&&"text/plain"===b.getAttribute("type"),'Template must be defined in a <template> or <script type="text/plain"> tag');return b};
f.maybeFindTemplate=function(a,b){var c=a.getAttribute("template");return c?rb(a).getElementById(c):b?Ab(a,b):a.querySelector("template, script")};function Df(a,b){var c=b.__AMP_IMPL_;if(c)return Promise.resolve(c);c="";var d=b.tagName;"TEMPLATE"==d?c=b.getAttribute("type"):"SCRIPT"==d&&(c=b.getAttribute("template"));z(c,"Type must be specified: %s",b);if(d=b.__AMP_WAIT_)return d;d=Ef(a,c).then(function(c){var d=b.__AMP_IMPL_=new c(b,a.A);delete b.__AMP_WAIT_;return d});return b.__AMP_WAIT_=d}
function Ef(a,b){if(a.nb[b])return a.nb[b];var c=new C,d=c.promise;c=c.resolve;a.nb[b]=d;a.Rc[b]=c;return d}f.unregisterTemplate=function(a){delete this.nb[a];delete this.Rc[a]};var Ff={PRERENDER:"prerender",VISIBLE:"visible",HIDDEN:"hidden",PAUSED:"paused",INACTIVE:"inactive"};/*

 Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
 Use of this source code is governed by a BSD-style
 license that can be found in the LICENSE file or at
 https://developers.google.com/open-source/licenses/bsd
*/
var Gf;function Hf(){var a;if(void 0===Gf){var b=a||Element;Gf=b.prototype.attachShadow?"v1":b.prototype.createShadowRoot?"v0":"none"}return Gf};var If={"amp-dynamic-css-classes":"[custom-element=amp-dynamic-css-classes]",variant:"amp-experiment","amp-story":"amp-story[standalone]"};function Jf(a){var b=Kf(a).map(function(b){return S(a).timeoutPromise(3E3,Xd(a,b),"Render timeout waiting for service "+b+" to be ready.")});return Promise.all(b)}function Kf(a){var b=a.document;return Object.keys(If).filter(function(a){return b.querySelector(If[a])})};function Lf(a,b,c,d,e){var g=a.getHeadNode(),h=Mf(g,Nf(g,b),d||!1,e||null);if(c){var k=a.getRootNode();if(Of(k,h))c(h);else var l=setInterval(function(){Of(k,h)&&(clearInterval(l),c(h))},4)}}function Pf(a,b,c,d,e){var g=Mf(a.head,b,d||!1,e||null);if(c)if(Of(a,g))c(g);else var h=setInterval(function(){Of(a,g)&&(clearInterval(h),c(g))},4)}
function Mf(a,b,c,d){var e=a.__AMP_CSS_SM;e||(e=a.__AMP_CSS_SM=A());var g=!c&&d&&"amp-custom"!=d&&"amp-keyframes"!=d,h=c?"amp-runtime":g?"amp-extension="+d:null;if(h){var k=Qf(a,e,h);if(k)return k.textContent!==b&&(k.textContent=b),k}var l=(a.ownerDocument||a).createElement("style");l.textContent=b;var m=null;c?l.setAttribute("amp-runtime",""):g?(l.setAttribute("amp-extension",d||""),m=Qf(a,e,"amp-runtime")):(d&&l.setAttribute(d,""),m=a.lastChild);b=m;a.insertBefore(l,b?b.nextSibling:a.firstChild);
h&&(e[h]=l);return l}function Qf(a,b,c){return b[c]?b[c]:(a=a.querySelector("style["+c+"]"))?b[c]=a:null}function Nf(a,b){return(a=a.__AMP_CSS_TR)?a(b):b}var Rf=!1;function Sf(){var a=self.document,b=a.defaultView;eb(a).then(function(){return Jf(b)}).catch(function(a){Oa(a);return[]}).then(function(c){Rf=!0;Tf(a);try{pe(a.documentElement).renderStarted()}catch(g){}if(0<c.length){var d=pe(a.documentElement);d.schedulePass(1,!0)}try{var e=ne(b);e.tick("mbv");e.flush()}catch(g){}})}
function Uf(a){Rf||(Rf=!0,Tf(a))}function Tf(a){Ue(a.body,{opacity:1,visibility:"visible",animation:"none"})}function Of(a,b){var c=a.styleSheets;for(a=0;a<c.length;a++){var d=c[a];if(d.ownerNode==b)return!0}return!1};var lg={composed:!1};function mg(a){return"none"!=Hf()&&Node.prototype.getRootNode?a.getRootNode(lg):tb(a,function(a){return a?"I-AMPHTML-SHADOW-ROOT"==a.tagName?!0:11==a.nodeType&&"[object ShadowRoot]"===Object.prototype.toString.call(a):!1})};var cssText$$module$build$css="html{overflow-x:hidden!important}body,html{height:auto!important}html.i-amphtml-fie{height:100%!important;width:100%!important}body{margin:0!important;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;-ms-text-size-adjust:100%;text-size-adjust:100%}[hidden]{display:none!important}html.i-amphtml-singledoc.i-amphtml-embedded{-ms-touch-action:pan-y;touch-action:pan-y}html.i-amphtml-fie>body,html.i-amphtml-singledoc>body{overflow:visible!important}html.i-amphtml-fie:not(.i-amphtml-inabox)>body,html.i-amphtml-singledoc:not(.i-amphtml-inabox)>body{position:relative!important}html.i-amphtml-webview>body{overflow-x:hidden!important;overflow-y:visible!important;min-height:100vh!important}html.i-amphtml-ios-embed-legacy>body{overflow-x:hidden!important;overflow-y:auto!important;position:absolute!important}html.i-amphtml-ios-embed{overflow-y:auto!important;position:static}#i-amphtml-wrapper{overflow-x:hidden!important;overflow-y:auto!important;position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;margin:0!important;display:block!important}html.i-amphtml-ios-embed.i-amphtml-ios-overscroll,html.i-amphtml-ios-embed.i-amphtml-ios-overscroll>#i-amphtml-wrapper{-webkit-overflow-scrolling:touch!important}#i-amphtml-wrapper>body{position:relative!important;border-top:1px solid transparent!important}#i-amphtml-wrapper+body .i-amphtml-lightbox-element,#i-amphtml-wrapper+body[i-amphtml-lightbox]{visibility:hidden}#i-amphtml-wrapper+body[i-amphtml-lightbox] .i-amphtml-lightbox-element{visibility:visible}html.i-amphtml-ios-embed-sd{overflow:hidden!important;position:static!important}html.i-amphtml-ios-embed-sd>body,html.i-amphtml-singledoc.i-amphtml-ios-embed-sd>body{position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;overflow:hidden!important}.i-amphtml-body-minheight>body{min-height:calc(100vh + 1px)}.i-amphtml-element{display:inline-block}.i-amphtml-blurry-placeholder{-webkit-transition:opacity 0.3s cubic-bezier(0.0,0.0,0.2,1)!important;transition:opacity 0.3s cubic-bezier(0.0,0.0,0.2,1)!important}[layout=nodisplay]:not(.i-amphtml-element){display:none!important}.i-amphtml-layout-fixed,[layout=fixed][width][height]:not(.i-amphtml-layout-fixed){display:inline-block;position:relative}.i-amphtml-layout-responsive,[layout=responsive][width][height]:not(.i-amphtml-layout-responsive),[width][height][sizes]:not(.i-amphtml-layout-responsive){display:block;position:relative}.i-amphtml-layout-intrinsic{display:inline-block;position:relative;max-width:100%}.i-amphtml-intrinsic-sizer{max-width:100%;display:block!important}.i-amphtml-layout-container,.i-amphtml-layout-fixed-height,[layout=container],[layout=fixed-height][height]{display:block;position:relative}.i-amphtml-layout-fill,[layout=fill]:not(.i-amphtml-layout-fill){display:block;overflow:hidden!important;position:absolute;top:0;left:0;bottom:0;right:0}.i-amphtml-layout-flex-item,[layout=flex-item]:not(.i-amphtml-layout-flex-item){display:block;position:relative;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}.i-amphtml-layout-fluid{position:relative}.i-amphtml-layout-size-defined{overflow:hidden!important}.i-amphtml-layout-awaiting-size{position:absolute!important;top:auto!important;bottom:auto!important}i-amphtml-sizer{display:block!important}.i-amphtml-blurry-placeholder,.i-amphtml-fill-content{display:block;height:0;max-height:100%;max-width:100%;min-height:100%;min-width:100%;width:0;margin:auto}.i-amphtml-layout-size-defined .i-amphtml-fill-content{position:absolute;top:0;left:0;bottom:0;right:0}.i-amphtml-layout-intrinsic .i-amphtml-sizer{max-width:100%}.i-amphtml-replaced-content,.i-amphtml-screen-reader{padding:0!important;border:none!important}.i-amphtml-screen-reader{position:fixed!important;top:0px!important;left:0px!important;width:4px!important;height:4px!important;opacity:0!important;overflow:hidden!important;margin:0!important;display:block!important;visibility:visible!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:8px!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:12px!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:16px!important}.i-amphtml-unresolved{position:relative;overflow:hidden!important}#i-amphtml-wrapper.i-amphtml-scroll-disabled,.i-amphtml-scroll-disabled{overflow-x:hidden!important;overflow-y:hidden!important}.i-amphtml-select-disabled{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important}.i-amphtml-notbuilt,[layout]:not(.i-amphtml-element){position:relative;overflow:hidden!important;color:transparent!important}.i-amphtml-notbuilt:not(.i-amphtml-layout-container)>*,[layout]:not([layout=container]):not(.i-amphtml-element)>*{display:none}.i-amphtml-ghost{visibility:hidden!important}.i-amphtml-element>[placeholder],[layout]:not(.i-amphtml-element)>[placeholder]{display:block}.i-amphtml-element>[placeholder].amp-hidden,.i-amphtml-element>[placeholder].hidden{visibility:hidden}.i-amphtml-element:not(.amp-notsupported)>[fallback],.i-amphtml-layout-container>[placeholder].amp-hidden,.i-amphtml-layout-container>[placeholder].hidden{display:none}.i-amphtml-layout-size-defined>[fallback],.i-amphtml-layout-size-defined>[placeholder]{position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;z-index:1}.i-amphtml-notbuilt>[placeholder]{display:block!important}.i-amphtml-hidden-by-media-query{display:none!important}.i-amphtml-element-error{background:red!important;color:#fff!important;position:relative!important}.i-amphtml-element-error:before{content:attr(error-message)}i-amp-scroll-container,i-amphtml-scroll-container{position:absolute;top:0;left:0;right:0;bottom:0;display:block}i-amp-scroll-container.amp-active,i-amphtml-scroll-container.amp-active{overflow:auto;-webkit-overflow-scrolling:touch}.i-amphtml-loading-container{display:block!important;pointer-events:none;z-index:1}.i-amphtml-notbuilt>.i-amphtml-loading-container{display:block!important}.i-amphtml-loading-container.amp-hidden{visibility:hidden}.i-amphtml-loader-line{position:absolute;top:0;left:0;right:0;height:1px;overflow:hidden!important;background-color:hsla(0,0%,59.2%,0.2);display:block}.i-amphtml-loader-moving-line{display:block;position:absolute;width:100%;height:100%!important;background-color:hsla(0,0%,59.2%,0.65);z-index:2}@-webkit-keyframes i-amphtml-loader-line-moving{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}to{-webkit-transform:translateX(100%);transform:translateX(100%)}}@keyframes i-amphtml-loader-line-moving{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}to{-webkit-transform:translateX(100%);transform:translateX(100%)}}.i-amphtml-loader-line.amp-active .i-amphtml-loader-moving-line{-webkit-animation:i-amphtml-loader-line-moving 4s ease infinite;animation:i-amphtml-loader-line-moving 4s ease infinite}.i-amphtml-loader{position:absolute;display:block;height:10px;top:50%;left:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;white-space:nowrap}.i-amphtml-loader.amp-active .i-amphtml-loader-dot{-webkit-animation:i-amphtml-loader-dots 2s infinite;animation:i-amphtml-loader-dots 2s infinite}.i-amphtml-loader-dot{position:relative;display:inline-block;height:10px;width:10px;margin:2px;border-radius:100%;background-color:rgba(0,0,0,0.3);box-shadow:2px 2px 2px 1px rgba(0,0,0,0.2);will-change:transform}.i-amphtml-loader .i-amphtml-loader-dot:first-child{-webkit-animation-delay:0s;animation-delay:0s}.i-amphtml-loader .i-amphtml-loader-dot:nth-child(2){-webkit-animation-delay:.1s;animation-delay:.1s}.i-amphtml-loader .i-amphtml-loader-dot:nth-child(3){-webkit-animation-delay:.2s;animation-delay:.2s}@-webkit-keyframes i-amphtml-loader-dots{0%,to{-webkit-transform:scale(.7);transform:scale(.7);background-color:rgba(0,0,0,0.3)}50%{-webkit-transform:scale(.8);transform:scale(.8);background-color:rgba(0,0,0,0.5)}}@keyframes i-amphtml-loader-dots{0%,to{-webkit-transform:scale(.7);transform:scale(.7);background-color:rgba(0,0,0,0.3)}50%{-webkit-transform:scale(.8);transform:scale(.8);background-color:rgba(0,0,0,0.5)}}.i-amphtml-element>[overflow]{cursor:pointer;position:relative;z-index:2;visibility:hidden}.i-amphtml-element>[overflow].amp-visible{visibility:visible}template{display:none!important}.amp-border-box,.amp-border-box *,.amp-border-box :after,.amp-border-box :before{box-sizing:border-box}amp-pixel{display:none!important}amp-instagram{padding:64px 0px 0px!important;background-color:#fff}amp-analytics,amp-story-auto-ads{position:fixed!important;top:0!important;width:1px!important;height:1px!important;overflow:hidden!important;visibility:hidden}html.i-amphtml-fie>amp-analytics{position:initial!important}amp-iframe iframe{box-sizing:border-box!important}[amp-access][amp-access-hide]{display:none}[subscriptions-dialog],body:not(.i-amphtml-subs-ready) [subscriptions-action],body:not(.i-amphtml-subs-ready) [subscriptions-section]{display:none!important}[visible-when-invalid]:not(.visible),amp-experiment,amp-live-list>[update],amp-share-tracking,form [submit-error],form [submit-success],form [submitting]{display:none}.i-amphtml-jank-meter{position:fixed;background-color:rgba(232,72,95,0.5);bottom:0;right:0;color:#fff;font-size:16px;z-index:1000;padding:5px}amp-accordion{display:block!important}amp-accordion>section{float:none!important}amp-accordion>section>*{float:none!important;display:block!important;overflow:hidden!important;position:relative!important}.i-amphtml-accordion-content,.i-amphtml-accordion-header,amp-accordion,amp-accordion>section{margin:0}.i-amphtml-accordion-header{cursor:pointer;background-color:#efefef;padding-right:20px;border:1px solid #dfdfdf}amp-accordion>section>:last-child{display:none!important}amp-accordion>section[expanded]>:last-child{display:block!important}amp-list[resizable-children]>.i-amphtml-loading-container.amp-hidden{display:none!important}amp-list[load-more] [load-more-button],amp-list[load-more] [load-more-end],amp-list[load-more] [load-more-failed],amp-list[load-more] [load-more-loading]{display:none}amp-story-page,amp-story[standalone]{display:block!important;height:100%!important;margin:0!important;padding:0!important;overflow:hidden!important;width:100%!important}amp-story[standalone]{background-color:#202125!important;position:relative!important}amp-story-page{background-color:#757575}amp-story .i-amphtml-loader{display:none!important}[amp-fx^=fly-in]{visibility:hidden}@media only screen and (max-width:979px){amp-addthis[data-widget-type=floating]{position:fixed!important;width:100%!important;height:50px;bottom:0}}@media only screen and (min-width:980px){amp-addthis[data-widget-type=floating]{display:none}}\n/*# sourceURL=/css/amp.css*/";function ng(a,b){var c=100;function d(d){h=null;g=a.setTimeout(e,c);b.apply(null,d)}function e(){g=0;h&&d(h)}var g=0,h=null;return function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];g?h=b:d(b)}}function og(a,b){function c(){d=0;var h=300-(a.Date.now()-e);if(0<h)d=a.setTimeout(c,h);else{var k=g;g=null;b.apply(null,k)}}var d=0,e=0,g=null;return function(b){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];e=a.Date.now();g=h;d||(d=a.setTimeout(c,300))}};function pg(){var a=qg();return function(b){return setTimeout(b,a())}}function qg(){var a=0;return function(){var b=Math.pow(1.5,a++);var c=b*(c||.3)*Math.random();.5<Math.random()&&(c*=-1);b+=c;return 1E3*b}};function rg(a,b){ge(a,"amp-analytics-instrumentation","amp-analytics").then(function(c){c&&c.triggerEventForTarget(a,"user-error",b)})};var sg=self.AMPErrors||[];self.AMPErrors=sg;function tg(a){tg=pg();return tg(a)}function ug(a){try{return JSON.stringify(a)}catch(b){return String(a)}}var vg;
function wg(a,b){try{if(a)if(void 0!==a.message)a=Ma(a);else{var c=a;a=Error(ug(c));a.origError=c}else a=Error("Unknown error");if(a.reported)return a;a.reported=!0;var d=b||a.associatedElement;d&&d.classList&&(d.classList.add("i-amphtml-error"),r().development&&(d.classList.add("i-amphtml-element-error"),d.setAttribute("error-message",a.message)));if(self.console){var e=console.error||console.log;a.messageArray?e.apply(console,a.messageArray):d?e.call(console,a.message,d):e.call(console,a.message)}d&&
d.Na&&d.Na("amp:error",a.message);xg.call(void 0,void 0,void 0,void 0,void 0,a)}catch(g){setTimeout(function(){throw g;})}return a}function yg(a){return a?"string"==typeof a?hb(a,"BLOCK_BY_CONSENT"):"string"==typeof a.message?hb(a.message,"BLOCK_BY_CONSENT"):!1:!1}function zg(){var a=self;a.onerror=xg;a.addEventListener("unhandledrejection",function(a){!a.reason||"CANCELLED"!==a.reason.message&&"BLOCK_BY_CONSENT"!==a.reason.message?wg(a.reason||Error("rejected promise "+a)):a.preventDefault()})}
function xg(a,b,c,d,e){var g=this;this&&this.document&&Uf(this.document);if(!r().development){var h=!1;try{h=Ag()}catch(l){}if(!(h&&.01<Math.random())){var k=Bg(a,b,c,d,e,h);k&&tg(function(){return Cg(g,k)})}}}function Cg(a,b){return Dg(a,b).then(function(a){if(!a){var c=new XMLHttpRequest;c.open("POST",Vc.errorReporting,!0);c.send(JSON.stringify(b))}})}
function Dg(a,b){var c=le(a);if(!c.isSingleDoc())return Promise.resolve(!1);var d=c.getAmpDoc(),e=d.getRootNode().documentElement,g=e.hasAttribute("report-errors-to-viewer");if(!g)return Promise.resolve(!1);var h=T(d);return h.hasCapability("errorReporter")?h.isTrustedViewer().then(function(a){if(!a)return!1;h.sendMessage("error",B({m:b.m,a:b.a,s:b.s,el:b.el,v:b.v,jse:b.jse}));return!0}):Promise.resolve(!1)}
function Bg(a,b,c,d,e,g){var h=a;e&&(h=e.message?e.message:String(e));h||(h="Unknown error");a=h;var k=!(!e||!e.expected);if(!/_reported_/.test(a)&&"CANCELLED"!=a){var l=!(self&&self.window),m=Math.random();if(-1!=a.indexOf("Failed to load:")||"Script error."==a||l)if(k=!0,.001<m)return;var n=Ea(a);if(!(n&&.1<m)){h=Object.create(null);h.v=r().rtvVersion;h.noAmp=g?"1":"0";h.m=a.replace("\u200b\u200b\u200b","");h.a=n?"1":"0";h.ex=k?"1":"0";h.dw=l?"1":"0";var t="1p";self.context&&self.context.location?
(h["3p"]="1",t="3p"):r().runtime&&(t=r().runtime);r().singlePassType&&(h.spt=r().singlePassType);h.rt=t;"inabox"===t&&(h.adid=r().a4aId);h.ca=xd(self)?"1":"0";g=self;h.bt=g.AMP_CONFIG&&g.AMP_CONFIG.type?g.AMP_CONFIG.type:"unknown";self.location.ancestorOrigins&&self.location.ancestorOrigins[0]&&(h.or=self.location.ancestorOrigins[0]);self.viewerState&&(h.vs=self.viewerState);self.parent&&self.parent!=self&&(h.iem="1");if(self.AMP&&self.AMP.viewer){var p=self.AMP.viewer.getResolvedViewerUrl(),x=self.AMP.viewer.maybeGetMessagingOrigin();
p&&(h.rvu=p);x&&(h.mso=x)}vg||(vg=Eg());h.jse=vg;var v=[];g=self.__AMP__EXPERIMENT_TOGGLES||null;for(var F in g)v.push(F+"="+(g[F]?"1":"0"));h.exps=v.join(",");e?(h.el=e.associatedElement?e.associatedElement.tagName:"u",e.args&&(h.args=JSON.stringify(e.args)),n||e.ignoreStack||!e.stack||(h.s=e.stack),e.message&&(e.message+=" _reported_")):(h.f=b||"",h.l=c||"",h.c=d||"");h.r=self.document.referrer;h.ae=sg.join(",");h.fr=self.location.originalHash||self.location.hash;b=a;25<=sg.length&&sg.splice(0,
sg.length-25+1);sg.push(b);return h}}}function Ag(){for(var a=self.document.querySelectorAll("script[src]"),b=0;b<a.length;b++)if(!md(a[b].src.toLowerCase()))return!0;return!1}function Eg(){function a(){}a.prototype.t=function(){throw Error("message");};var b=new a;try{b.t()}catch(d){b=d.stack;if(hb(b,"t@"))return"Safari";if(-1<b.indexOf(".prototype.t@"))return"Firefox";var c=b.split("\n").pop();if(/\bat .* \(/i.test(c))return"IE";if(hb(b,"Error: message"))return"Chrome"}return"unknown"};var Fg="__AMP_ACTION_MAP__"+Math.random(),Gg={form:["submit","clear"]},Hg={button:!0,checkbox:!0,link:!0,listbox:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,option:!0,radio:!0,scrollbar:!0,slider:!0,spinbutton:!0,"switch":!0,tab:!0,treeitem:!0};
function Ig(a,b,c,d,e,g,h,k,l,m){k=void 0===k?"?":k;l=void 0===l?null:l;m=void 0===m?Math.random():m;this.node=a;this.method=b;this.args=c;this.source=d;this.caller=e;this.event=g;this.trust=h;this.actionEventType=k;this.tagOrTarget=l||a.tagName;this.sequenceId=m}
Ig.prototype.satisfiesTrust=function(a){return Ca(this.trust)?this.trust<a?(u().error("Action",'"'+this.actionEventType+'" is not allowed to invoke '+('"'+this.tagOrTarget+"."+this.method+'".')),!1):!0:(w().error("Action","Invalid trust for '"+this.method+"': "+this.trust),!1)};
function Jg(a,b){this.ampdoc=a;this.na=b||a.getRootNode();this.Xa=Kg(this);this.jc=A();this.df=A();this.addEvent("tap");this.addEvent("submit");this.addEvent("change");this.addEvent("input-debounced");this.addEvent("input-throttled");this.addEvent("valid");this.addEvent("invalid")}Jg.installInEmbedWindow=function(a,b){Td(a,"action",new Jg(b,a.document))};f=Jg.prototype;
f.addEvent=function(a){var b=this;if("tap"==a)this.na.addEventListener("click",function(c){c.defaultPrevented||b.trigger(c.target,a,c,100)}),this.na.addEventListener("keydown",function(c){var d=c.target,e=c.key;if("Enter"==e||" "==e){var k=d.getAttribute("role"),l=k&&Sa.call(Hg,k.toLowerCase());!c.defaultPrevented&&l&&(c.preventDefault(),b.trigger(d,a,c,100))}});else if("submit"==a)this.na.addEventListener(a,function(c){b.trigger(c.target,a,c,100)});else if("change"==a)this.na.addEventListener(a,
function(c){var d=c.target;Lg(c);b.trigger(d,a,c,100)});else if("input-debounced"==a){var c=og(this.ampdoc.win,function(c){b.trigger(c.target,a,c,100)});this.na.addEventListener("input",function(a){var b=new Mg(a);Lg(b);c(b)})}else if("input-throttled"==a){var d=ng(this.ampdoc.win,function(c){b.trigger(c.target,a,c,100)});this.na.addEventListener("input",function(a){a=new Mg(a);Lg(a);d(a)})}else"valid"!=a&&"invalid"!=a||this.na.addEventListener(a,function(c){b.trigger(c.target,a,c,100)})};
f.addGlobalTarget=function(a,b){this.jc[a]=b};f.addGlobalMethodHandler=function(a,b,c){this.df[a]={handler:b,minTrust:void 0===c?100:c}};f.trigger=function(a,b,c,d,e){Ng(this,a,b,c,d,e)};f.execute=function(a,b,c,d,e,g,h){a=new Ig(a,b,c,d,e,g,h);Og(this,a)};
f.installActionHandler=function(a,b,c){c=void 0===c?100:c;a.getAttribute("id");if(a.__AMP_ACTION_HANDLER__)w().error("Action","Action handler already installed for "+a);else{var d=a.__AMP_ACTION_QUEUE__;a.__AMP_ACTION_HANDLER__={handler:b,minTrust:c};Aa(d)&&S(a.ownerDocument.defaultView).delay(function(){d.forEach(function(a){try{a.satisfiesTrust(c)&&b(a)}catch(g){w().error("Action","Action execution failed:",a,g)}});a.__AMP_ACTION_QUEUE__.length=0},1)}};
f.hasAction=function(a,b,c){return!!Pg(a,b,c)};f.hasResolvableAction=function(a,b,c){var d=this;return(a=Pg(a,b,c))?a.actionInfos.some(function(a){a=a.target;return!(d.jc[a]?!d.na:!d.na.getElementById(a))}):!1};f.setWhitelist=function(a){this.Xa=a};f.addToWhitelist=function(a,b){this.Xa||(this.Xa=[]);this.Xa.push({tagOrTarget:a,method:b})};
function Ng(a,b,c,d,e,g){var h=Pg(b,c);if(h){var k=Math.random(),l=null;h.actionInfos.forEach(function(m){function n(){var g=a.jc[t]?a.na:a.na.getElementById(t);if(g)return g=new Ig(g,p,v,b,h.node,d,e,c,g.tagName||t,k),Og(a,g);a.Da('Target "'+t+'" not found for action ['+x+"].")}var t=m.target,p=m.method,x=m.str,v=Qg(m.args,d,g);l=l?l.then(n):n()})}}f.Da=function(a,b){if(b)throw a=u().createError("[Action] "+a),wg(a,b),a;u().error("Action",a)};
function Og(a,b){var c=b.method,d=b.tagOrTarget;if(a.Xa&&!Rg(b,a.Xa))return a.Da('"'+d+"."+c+'" is not whitelisted '+JSON.stringify(a.Xa)+"."),null;var e=a.jc[d];if(e)return e(b);var g=b.node,h=a.df[c];if(h&&b.satisfiesTrust(h.minTrust))return h.handler(b);var k=g.tagName.toLowerCase();if("amp-"==k.substring(0,4))return g.enqueAction?g.enqueAction(b):a.Da('Unrecognized AMP element "'+k+'".',g),null;var l=Gg[k],m=g.getAttribute("id")||"";if(m&&"amp-"==m.substring(0,4)||l&&-1<l.indexOf(c))return(a=
g.__AMP_ACTION_HANDLER__)?(g=a.handler,b.satisfiesTrust(a.minTrust)&&g(b)):(g.__AMP_ACTION_QUEUE__=g.__AMP_ACTION_QUEUE__||[],g.__AMP_ACTION_QUEUE__.push(b)),null;a.Da("Target ("+d+") doesn't support \""+c+'" action.',b.caller);return null}
function Pg(a,b,c){for(;a&&(!c||a!=c);){var d=b;var e=a;var g=d,h=e[Fg];void 0===h&&(h=null,e.hasAttribute("on")?(g=e.getAttribute("on"),h=Sg(g,e),e[Fg]=h):e.hasAttribute("execute")&&(h=e.getAttribute("execute"),h=Sg(g+":"+h,e),e[Fg]=h));var k=(e=h)?e[d]||null:null;if(k&&!a.disabled&&!vb(a,":disabled"))return{node:a,actionInfos:k};a=a.parentElement}return null}f.setActions=function(a,b){a.setAttribute("on",b);delete a[Fg]};
function Kg(a){var b=a.ampdoc.getRootNode().head;return b?(b=b.querySelector('meta[name="amp-action-whitelist"]'))?b.getAttribute("content").split(",").filter(function(a){return a}).map(function(b){var c=b.split(".");if(2>c.length)a.Da("Invalid action whitelist entry: "+b+".");else return{tagOrTarget:c[0].trim(),method:c[1].trim()}}).filter(function(a){return a}):null:null}
function Lg(a){var b=A(),c=a.target;void 0!==c.value&&(b.value=c.value);"INPUT"==c.tagName&&(b.valueAsNumber=Number(c.value));void 0!==c.checked&&(b.checked=c.checked);if(void 0!==c.min||void 0!==c.max)b.min=c.min,b.max=c.max;0<Object.keys(b).length&&(a.detail=b)}
function Rg(a,b){var c=a.method,d=a.node;a=a.tagOrTarget;"activate"===c&&"function"==typeof d.getDefaultActionAlias&&(c=d.getDefaultActionAlias());var e=c.toLowerCase(),g=a.toLowerCase();return b.some(function(a){return a.tagOrTarget.toLowerCase()!==g&&"*"!==a.tagOrTarget||a.method.toLowerCase()!==e?!1:!0})}function Mg(a){this.detail=null;var b=this||A(),c;for(c in a)b[c]="function"===typeof a[c]?Tg:a[c]}function Tg(){}
function Sg(a,b){var c=Ug.bind(null,a,b),d=Vg.bind(null,a,b);b=null;var e=new Wg(a);do{var g=e.next();if(g.type!=Xg&&(g.type!=Yg||";"!=g.value))if(g.type==Zg||g.type==$g){var h=g.value;d(e.next(),[Yg],":");var k=[];do{var l=d(e.next(),[Zg,$g]).value,m="activate",n=null;var t=e.peek();if(t.type==Yg&&"."==t.value&&(e.next(),m=d(e.next(),[Zg,$g]).value||m,t=e.peek(),t.type==Yg&&"("==t.value)){e.next();n=e;var p=d,x=c,v=n.peek(),F=null;if(v.type==ah){F=A();var J=n.next().value;F.__AMP_OBJECT_STRING__=
J;p(n.next(),[Yg],")")}else{do{var G=J=n.next();v=G.type;G=G.value;if(v!=Yg||","!=G&&")"!=G)if(v==Zg||v==$g){p(n.next(),[Yg],"=");J=p(n.next(!0),[Zg,$g]);var Y=[J];if(J.type==$g)for(v=n.peek();v.type==Yg&&"."==v.value;v=n.peek())n.next(),J=p(n.next(!1),[$g]),Y.push(J);v=bh(Y);F||(F=A());F[G]=v;v=n.peek();x(v.type==Yg&&(","==v.value||")"==v.value),"Expected either [,] or [)]")}else x(!1,"; unexpected token ["+(J.value||"")+"]")}while(J.type!=Yg||")"!=J.value)}n=F}k.push({event:h,target:l,method:m,
args:n,str:a});t=e.peek()}while(t.type==Yg&&","==t.value&&e.next());b||(b=A());b[h]=k}else c(!1,"; unexpected token ["+(g.value||"")+"]")}while(g.type!=Xg);return b}function bh(a){return 0==a.length?null:1==a.length?a[0].value:{expression:a.map(function(a){return a.value}).join(".")}}
function Qg(a,b,c){if(!a)return a;var d=c||B({});b&&(b=b.detail)&&(d.event=b);var e=A();Object.keys(a).forEach(function(b){var c=a[b];if("object"==typeof c&&c.expression){c=c.expression;if("."==c)c=d;else{c=c.split(".");for(var g=d,l=0;l<c.length;l++){var m=c[l];if(m&&g&&void 0!==g[m]&&Pb(g,m))g=g[m];else{g=void 0;break}}c=g}var n=c;c=void 0===n?null:n}e[b]=d[c]?d[c]:c});return e}function Ug(a,b,c,d){return z(c,"Invalid action definition in %s: [%s] %s",b,a,d||"")}
function Vg(a,b,c,d,e){void 0!==e?Ug(a,b,d.includes(c.type)&&c.value==e,"; expected ["+e+"]"):Ug(a,b,d.includes(c.type));return c}var Xg=1,Yg=2,Zg=3,$g=4,ah=5;function Wg(a){this.K=a;this.Bd=-1}Wg.prototype.next=function(a){var b=ch(this,a||!1);this.Bd=b.index;return b};Wg.prototype.peek=function(a){return ch(this,a||!1)};
function ch(a,b){var c=a.Bd+1;if(c>=a.K.length)return{type:Xg,index:a.Bd};var d=a.K.charAt(c);if(-1!=" \t\n\r\f\v\u00a0\u2028\u2029".indexOf(d)){for(c++;c<a.K.length&&-1!=" \t\n\r\f\v\u00a0\u2028\u2029".indexOf(a.K.charAt(c));c++);if(c>=a.K.length)return{type:Xg,index:c};d=a.K.charAt(c)}if(b&&(dh(d)||"."==d&&c+1<a.K.length&&dh(a.K[c+1]))){for(var e="."==d,g=c+1;g<a.K.length;g++){var h=a.K.charAt(g);if("."==h)e=!0;else if(!dh(h))break}a=a.K.substring(c,g);a=e?parseFloat(a):parseInt(a,10);c=g-1;return{type:Zg,
value:a,index:c}}if(-1!=";:.()=,|!".indexOf(d))return{type:Yg,value:d,index:c};if(-1!="\"'".indexOf(d)){g=-1;for(var k=c+1;k<a.K.length;k++)if(a.K.charAt(k)==d){g=k;break}if(-1==g)return{type:0,index:c};a=a.K.substring(c+1,g);c=g;return{type:Zg,value:a,index:c}}if("{"==d){var l=1;g=-1;for(d=c+1;d<a.K.length;d++){var m=a.K[d];"{"==m?l++:"}"==m&&l--;if(0>=l){g=d;break}}if(-1==g)return{type:0,index:c};a=a.K.substring(c,g+1);c=g;return{type:ah,value:a,index:c}}for(g=c+1;g<a.K.length&&-1==" \t\n\r\f\x0B\u00a0\u2028\u2029;:.()=,|!\"'{}".indexOf(a.K.charAt(g));g++);
a=a.K.substring(c,g);c=g-1;return!b||"true"!=a&&"false"!=a?dh(a.charAt(0))?{type:Zg,value:a,index:c}:{type:$g,value:a,index:c}:{type:Zg,value:"true"==a,index:c}}function dh(a){return"0"<=a&&"9">=a};function eh(a,b){for(var c=[],d=0,e=0;e<a.length;e++){var g=a[e];b(g,e,a)?c.push(g):(d<e&&(a[d]=g),d++)}d<a.length&&(a.length=d);return c}function fh(a,b){for(var c=0;c<a.length;c++)if(b(a[c],c,a))return c;return-1};function gh(a){return!!a&&"function"==typeof a.getFormData};var hh=["GET","POST"],ih=[Aa,Ba];function jh(a,b){var c=Object.assign({},b);if(gh(b.body)){var d=b.body;c.headers["Content-Type"]="multipart/form-data;charset=utf-8";b=d.entries();for(var e=[],g=b.next();!g.done;g=b.next())e.push(g.value);c.body=e}return{input:a,init:c}}
function kh(a,b){z(Ba(a),"Object expected: %s",a);var c="document"==b;if(!c)return new Response(a.body,a.init);var d=A(),e={status:200,statusText:"OK",getResponseHeader:function(a){return d[String(a).toLowerCase()]||null}};if(a.init){var g=a.init;Aa(g.headers)&&g.headers.forEach(function(a){d[String(a[0]).toLowerCase()]=String(a[1])});g.status&&(e.status=parseInt(g.status,10));g.statusText&&(e.statusText=String(g.statusText))}return new Response(a.body?String(a.body):"",e)}
function lh(a,b,c,d){if(!b)return Promise.resolve();var e=T(b),g=e.whenFirstVisible();return!md(c)&&e.hasCapability("xhrInterceptor")&&b.getRootNode().documentElement.hasAttribute("allow-xhr-interception")?g.then(function(){return e.isTrustedViewer()}).then(function(b){var g=r(a).development;if(b||g){var h=B({originalRequest:jh(c,d)});return e.sendMessageAwaitResponse("xhr",h).then(function(a){return kh(a,d.responseType)})}}):g}function mh(a,b,c){!1!==c.ampCors&&(b=sd(a,b));return b}
function nh(a,b){a=a||{};var c=a.method;void 0===c?c="GET":(c=c.toUpperCase(),hh.includes(c));a.method=c;a.headers=a.headers||B({});b&&(a.headers.Accept=b);return a}
function oh(a,b,c){!1===c.ampCors&&(c.requireAmpResponseSourceOrigin=!1);!0===c.requireAmpResponseSourceOrigin&&w().error("XHR","requireAmpResponseSourceOrigin is deprecated, use ampCors instead");void 0===c.requireAmpResponseSourceOrigin&&(c.requireAmpResponseSourceOrigin=!0);var d=a.origin||I(a.location.href).origin,e=I(b).origin;d==e&&(c.headers=c.headers||{},c.headers["AMP-Same-Origin"]="true");return c}
function ph(a){var b=nh(a,"application/json");if("POST"==b.method&&!gh(b.body)){ih.some(function(a){return a(b.body)});b.headers["Content-Type"]=b.headers["Content-Type"]||"text/plain;charset=utf-8";var c=b.headers["Content-Type"];b.body="application/x-www-form-urlencoded"===c?id(b.body):JSON.stringify(b.body)}return b}function qh(a){return new Promise(function(b){if(a.ok)return b(a);b=a.status;var c=u().createError("HTTP error "+b);c.retriable=415==b||500<=b&&600>b;c.response=a;throw c;})};function rh(a){this.win=a;a=le(a);this.fg=a.isSingleDoc()?a.getAmpDoc():null}f=rh.prototype;f.Cg=function(a,b){var c=this,d=arguments;return lh(this.win,this.fg,a,b).then(function(a){if(a)return a;if(gh(b.body)){var e=b.body;b.body=e.getFormData()}return c.win.fetch.apply(null,d)})};
function sh(a,b,c){c=void 0===c?{}:c;b=mh(a.win,b,c);c=oh(a.win,b,c);return a.Cg(b,c).then(function(b){var d=a.win,g=c,h=b.headers.get("AMP-Access-Control-Allow-Source-Origin");h?(d=rd(d.location.href),z(h==d,"Returned AMP-Access-Control-Allow-Source-Origin is not equal to the current: "+h+(" vs "+d))):g.requireAmpResponseSourceOrigin&&z(!1,"Response must contain the AMP-Access-Control-Allow-Source-Origin header");return b},function(a){var c=I(b).origin;throw u().createExpectedError("XHR","Failed fetching"+
(" ("+c+"/...):"),a&&a.message);})}f.fetchJson=function(a,b){return this.fetch(a,ph(b))};f.fetchText=function(a,b){return this.fetch(a,nh(b,"text/plain"))};f.fetch=function(a,b){b=nh(b);return sh(this,a,b).then(function(a){return qh(a)})};f.sendSignal=function(a,b){return sh(this,a,b).then(function(a){return qh(a)})};f.getCorsUrl=function(a,b){return sd(a,b)};function th(a){rh.call(this,a);this.xb=A()}na(th,rh);th.prototype.fetch=function(a,b){var c=this,d=b&&b.headers&&b.headers.Accept||"",e=!b||!b.method||"GET"===b.method,g=ld(a)+d,h=!!this.xb[g];if(e&&h)return this.xb[g].then(function(a){return a.clone()});var k=rh.prototype.fetch.call(this,a,b);e&&(this.xb[g]=k.then(function(a){delete c.xb[g];return a.clone()},function(a){delete c.xb[g];throw a;}));return k};var uh=[];function vh(a){zf.call(this,a);uh.push(this)}na(vh,zf);vh.prototype.getLayoutPriority=function(){return 0};vh.prototype.isLayoutSupported=function(){return!0};vh.prototype.reconstructWhenReparented=function(){return!1};var wh={0:"cld",2:"adld"};function xh(a,b){this.A=a;this.Hc=Vd(a);this.hc=this.gc=null;this.Ve=!1;this.Pd=wh[b]}xh.prototype.enterViewport=function(){this.Pd&&!this.gc&&(this.gc=this.A.Date.now(),yh(this))};xh.prototype.startLayout=function(){this.Pd&&!this.hc&&(this.hc=this.A.Date.now(),yh(this))};function yh(a){if(a.Hc&&a.Hc.isPerformanceTrackingOn()&&!a.Ve&&a.gc&&a.hc){var b=a.A.Math.max(a.hc-a.gc,0);a.Hc.tickDelta(a.Pd,b);a.Hc.throttledFlush();a.Ve=!0}};function zh(a,b,c){b.__AMP__RESOURCE=this;this.Ad=a;this.element=b;this.debugid=b.tagName.toLowerCase()+"#"+a;this.hostWin=b.ownerDocument.defaultView;this.w=c;this.Pg=b.hasAttribute("placeholder");this.Ab=!1;this.jb=void 0;this.H=b.isBuilt()?1:0;this.ge=-1;this.ja=0;this.nf=null;this.oc=!1;this.da=E(-1E4,-1E4,0,0);this.Ed=null;this.Ld=!1;this.fb=this.pa=null;this.fe=void 0;this.qf=!1;a=new C;this.Ug=a.promise;this.Sd=a.resolve;this.F=L(this.hostWin,"layers")}
function W(a){return a.__AMP__RESOURCE}f=zh.prototype;f.getId=function(){return this.Ad};f.updateOwner=function(a){this.jb=a};f.getOwner=function(){if(void 0===this.jb){for(var a=this.element;a;a=a.parentElement)if(a.__AMP__OWNER){this.jb=a.__AMP__OWNER;break}void 0===this.jb&&(this.jb=null)}return this.jb};f.hasOwner=function(){return!!this.getOwner()};f.getLayoutPriority=function(){return-1!=this.ge?this.ge:this.element.getLayoutPriority()};f.updateLayoutPriority=function(a){this.ge=a};
f.getState=function(){return this.H};f.isBuilt=function(){return this.element.isBuilt()};f.isBuilding=function(){return this.Ab};f.whenBuilt=function(){return this.element.signals().whenSignal("res-built")};
f.build=function(){var a=this;if(this.Ab||!this.element.isUpgraded()||!this.w.grantBuildPermission())return null;this.Ab=!0;return this.element.build().then(function(){a.Ab=!1;a.hasBeenMeasured()?(a.H=2,a.element.updateLayoutBox(a.getLayoutBox(),!0)):a.H=1;a.element.signals().signal("res-built");a.element.dispatchCustomEvent("amp:built")},function(b){a.maybeReportErrorOnBuildFailure(b);a.Ab=!1;a.element.signals().rejectSignal("res-built",b);throw b;})};
f.maybeReportErrorOnBuildFailure=function(a){yg(a)||w().error("Resource","failed to build:",this.debugid,a)};f.applySizesAndMediaQuery=function(){this.element.applySizesAndMediaQuery()};f.changeSize=function(a,b,c){this.element.changeSize(a,b,c);this.requestMeasure()};f.overflowCallback=function(a,b,c,d){a&&(this.fe={height:b,width:c,margins:d});this.element.overflowCallback(a,b,c,d)};f.resetPendingChangeSize=function(){this.fe=void 0};f.getPendingChangeSize=function(){return this.fe};
f.getUpgradeDelayMs=function(){return this.element.getUpgradeDelayMs()};
f.measure=function(){if(!(this.Pg&&this.element.parentElement&&hb(this.element.parentElement.tagName,"AMP-"))||"__AMP__RESOURCE"in this.element.parentElement){this.Ld=!1;var a=this.da;if(this.F){var b=this.element;b.getLayers().remeasure(b,!0);this.da=this.getPageLayoutBox()}else{b=this.w.getViewport();var c=this.w.getViewport().getLayoutRect(this.element);this.da=c;var d=!1;if(b.supportsPositionFixed()&&this.isDisplayed())for(var e=this.w.win,g=e.document.body,h=this.element;h&&h!=g;h=h.offsetParent){if(h.isAlwaysFixed&&
h.isAlwaysFixed()){d=!0;break}if(b.isDeclaredFixed(h)&&"fixed"==Xe(e,h).position){d=!0;break}}if(this.oc=d)this.da=fc(c,-b.getScrollLeft(),-b.getScrollTop())}var k=this.da;b=a;c=k;var l=!(b.width==c.width&&b.height===c.height);1!=this.H&&a.top==k.top&&!l||!this.element.isUpgraded()||0==this.H||1!=this.H&&!this.element.isRelayoutNeeded()||(this.H=2);this.hasBeenMeasured()||(this.Ed=k);this.element.updateLayoutBox(k,l)}};
f.completeCollapse=function(){We(this.element,!1);this.da=this.F?E(0,0,0,0):E(this.da.left,this.da.top,0,0);this.oc=!1;this.element.updateLayoutBox(this.getLayoutBox());var a=this.getOwner();a&&a.collapsedCallback(this.element)};f.completeExpand=function(){We(this.element,!0);this.requestMeasure()};f.isMeasureRequested=function(){return this.Ld};f.hasBeenMeasured=function(){return!!this.Ed};f.requestMeasure=function(){this.Ld=!0};
f.getLayoutBox=function(){if(this.F){var a=this.element,b=a.getLayers(),c=b.getScrolledPosition(a);a=b.getSize(a);return E(c.left,c.top,a.width,a.height)}if(!this.oc)return this.da;c=this.w.getViewport();return fc(this.da,c.getScrollLeft(),c.getScrollTop())};f.getPageLayoutBox=function(){if(this.F){var a=this.element,b=a.getLayers(),c=b.getOffsetPosition(a);a=b.getSize(a);return E(c.left,c.top,a.width,a.height)}return this.da};f.getInitialLayoutBox=function(){return this.Ed||this.da};
f.isDisplayed=function(){var a="fluid"==this.element.getLayout(),b=this.getLayoutBox(),c=0<b.height&&0<b.width;return(a||c)&&!!this.element.ownerDocument&&!!this.element.ownerDocument.defaultView};f.isFixed=function(){return this.oc};f.overlaps=function(a){var b=this.getLayoutBox();return b.top<=a.bottom&&a.top<=b.bottom&&b.left<=a.right&&a.left<=b.right};f.prerenderAllowed=function(){return this.element.prerenderAllowed()};
f.whenWithinViewport=function(a){if(!this.isLayoutPending()||!0===a)return Promise.resolve();var b=a;a=String(b);if(this.pa&&this.pa[a])return this.pa[a].promise;if(this.isWithinViewportRatio(b))return Promise.resolve();this.pa=this.pa||{};this.pa[a]=new C;return this.pa[a].promise};function Ah(a){if(a.pa){var b=a.getDistanceViewportRatio(),c;for(c in a.pa)a.isWithinViewportRatio(parseFloat(c),b)&&(a.pa[c].resolve(),delete a.pa[c])}}
f.getDistanceViewportRatio=function(){if(this.F){var a=this.element;return{distance:a.getLayers().iterateAncestry(a,this.Rg)}}var b=this.w.getViewport().getRect(),c=this.getLayoutBox(),d=this.w.getScrollDirection(),e=1,g=0;if(b.right<c.left||b.left>c.right)return{distance:!1};if(b.bottom<c.top)g=c.top-b.bottom,-1==d&&(e=2);else if(b.top>c.bottom)g=b.top-c.bottom,1==d&&(e=2);else return{distance:!0};return{distance:g,scrollPenalty:e,viewportHeight:b.height}};
f.isWithinViewportRatio=function(a,b){if("boolean"===typeof a)return a;var c=b||this.getDistanceViewportRatio(),d=c.distance,e=c.viewportHeight;return this.F?d<a:"boolean"==typeof d?d:d<e*a/c.scrollPenalty};f.Rg=function(a,b,c){a=a||0;var d=1+c/10,e=b.isActiveUnsafe()?1:2;b=b.getHorizontalViewportsFromParent()+b.getVerticalViewportsFromParent();return a+e*d*b};f.renderOutsideViewport=function(){Ah(this);return this.hasOwner()||this.isWithinViewportRatio(this.element.renderOutsideViewport())};
f.idleRenderOutsideViewport=function(){return this.isWithinViewportRatio(this.element.idleRenderOutsideViewport())};f.layoutScheduled=function(a){this.H=3;this.element.layoutScheduleTime=a};f.layoutCanceled=function(){this.H=this.hasBeenMeasured()?2:1};
f.startLayout=function(){var a=this;if(this.fb)return this.fb;if(4==this.H)return Promise.resolve();if(5==this.H)return Promise.reject(this.nf);this.isDisplayed();if(0<this.ja&&!this.element.isRelayoutNeeded())return this.H=4,Promise.resolve();this.ja++;this.H=3;return this.fb=(new Promise(function(b,c){qe(a.hostWin).mutate(function(){try{b(a.element.layoutCallback())}catch(d){c(d)}})})).then(function(){return Bh(a,!0)},function(b){return Bh(a,!1,b)})};
function Bh(a,b,c){a.Sd&&(a.Sd(),a.Sd=null);a.fb=null;a.qf=!0;a.H=b?4:5;a.nf=c;if(!b)return Promise.reject(c)}f.isLayoutPending=function(){return 4!=this.H&&5!=this.H};f.loadedOnce=function(){return this.Ug};f.hasLoadedOnce=function(){return this.qf};f.isInViewport=function(){var a=this.element.isInViewport();a&&Ah(this);return a};f.setInViewport=function(a){this.element.viewportCallback(a)};
f.unlayout=function(){0!=this.H&&1!=this.H&&(this.setInViewport(!1),this.element.unlayoutCallback()&&(this.element.togglePlaceholder(!0),this.H=1,this.ja=0,this.fb=null))};f.getTaskId=function(a){return this.debugid+"#"+a};f.pause=function(){this.element.pauseCallback();this.element.unlayoutOnPause()&&this.unlayout()};f.pauseOnRemove=function(){this.element.pauseCallback()};f.resume=function(){this.element.resumeCallback()};f.unload=function(){this.pause();this.unlayout()};
f.disconnect=function(){delete this.element.__AMP__RESOURCE;this.element.disconnect(!0)};function Ch(){this.Fa=A();this.fa=null}f=Ch.prototype;f.get=function(a){return this.Fa[a]||null};f.whenSignal=function(a){var b=this.fa&&this.fa[a];if(!b){var c=this.Fa[a];null!=c?b={promise:"number"==typeof c?Promise.resolve(c):Promise.reject(c)}:(c=new C,b={promise:c.promise,resolve:c.resolve,reject:c.reject});this.fa||(this.fa=A());this.fa[a]=b}return b.promise};
f.signal=function(a,b){if(null==this.Fa[a]){var c=b||Date.now();this.Fa[a]=c;(a=this.fa&&this.fa[a])&&a.resolve&&(a.resolve(c),a.resolve=void 0,a.reject=void 0)}};f.rejectSignal=function(a,b){null==this.Fa[a]&&(this.Fa[a]=b,(a=this.fa&&this.fa[a])&&a.reject&&(a.reject(b),a.resolve=void 0,a.reject=void 0))};f.reset=function(a){this.Fa[a]&&delete this.Fa[a];var b=this.fa&&this.fa[a];b&&!b.resolve&&delete this.fa[a]};var Dh=['<div class="i-amphtml-loader">\n        <div class="i-amphtml-loader-dot"></div>\n        <div class="i-amphtml-loader-dot"></div>\n        <div class="i-amphtml-loader-dot"></div>\n      </div>'];Dh.raw=['<div class="i-amphtml-loader">\n        <div class="i-amphtml-loader-dot"></div>\n        <div class="i-amphtml-loader-dot"></div>\n        <div class="i-amphtml-loader-dot"></div>\n      </div>'];var Eh=['<div class="i-amphtml-loader-line">\n          <div class="i-amphtml-loader-moving-line"></div>\n        </div>'];
Eh.raw=['<div class="i-amphtml-loader-line">\n          <div class="i-amphtml-loader-moving-line"></div>\n        </div>'];var Fh={"AMP-AD":!0};function Gh(a,b,c){var d=this;this.T=S(a);this.Hg=b;this.xg=c||0;this.ta=-1;this.$d=0;this.Sa=!1;this.ng=function(){return d.Gc()}}Gh.prototype.isPending=function(){return-1!=this.ta};Gh.prototype.schedule=function(a){a=a||this.xg;this.Sa&&10>a&&(a=10);var b=Date.now()+a;return!this.isPending()||-10>b-this.$d?(this.cancel(),this.$d=b,this.ta=this.T.delay(this.ng,a),!0):!1};Gh.prototype.Gc=function(){this.ta=-1;this.$d=0;this.Sa=!0;this.Hg();this.Sa=!1};
Gh.prototype.cancel=function(){this.isPending()&&(this.T.cancel(this.ta),this.ta=-1)};function Hh(a,b){lf(a,"message",b,void 0)}function Ih(a,b,c,d){c=void 0===c?{}:c;d=void 0===d?null:d;c.type=a;c.sentinel=b;return"amp-"+(d||"")+JSON.stringify(c)};var Jh=Date.now();function Kh(a,b){var c=a.split(",");z(0<c.length,"sizes has to have at least one size");var d=[];c.forEach(function(a){a=a.replace(/\s+/g," ").trim();if(0!=a.length){var c=a.charAt(a.length-1),e,k=!1;if(")"==c){k=!0;var l=1;for(e=a.length-2;0<=e;e--){var m=a.charAt(e);"("==m?l--:")"==m&&l++;if(0==l)break}var n=e-1;if(0<e)for(e--;0<=e&&(m=a.charAt(e),"%"==m||"-"==m||"_"==m||"a"<=m&&"z">=m||"A"<=m&&"Z">=m||"0"<=m&&"9">=m);e--);z(e<n,'Invalid CSS function in "%s"',a)}else for(e=a.length-2;0<=e&&(m=a.charAt(e),
"%"==m||"."==m||"a"<=m&&"z">=m||"A"<=m&&"Z">=m||"0"<=m&&"9">=m);e--);if(0<=e){var t=a.substring(0,e+1).trim();var p=a.substring(e+1).trim()}else p=a,t=void 0;d.push({mediaQuery:t,size:k?p:b?gf(p):ff(p)})}});return new Lh(d)}
function Lh(a){z(0<a.length,"SizeList must have at least one option");this.sh=a;for(var b=0;b<a.length;b++){var c=a[b];b<a.length-1?z(c.mediaQuery,"All options except for the last must have a media condition"):z(!c.mediaQuery,"The last option must not have a media condition")}}Lh.prototype.select=function(a){for(var b=this.sh,c=b.length-1,d=0;d<c;d++){var e=b[d];if(a.matchMedia(e.mediaQuery).matches)return e.size}return b[c].size};var Mh=['\n            <div class="i-amphtml-loading-container i-amphtml-fill-content\n              amp-hidden"></div>'];Mh.raw=['\n            <div class="i-amphtml-loading-container i-amphtml-fill-content\n              amp-hidden"></div>'];var Nh;function Oh(a,b){function c(a){return d.call(this,a)||this}var d=Ph(a);na(c,d);c.prototype.elementName=function(){return b};return c}
function Ph(a){function b(a){a=c.call(this,a)||this;a.createdCallback();return a}if(a.BaseCustomElementClass)return a.BaseCustomElementClass;var c=a.HTMLElement;na(b,c);b.prototype.createdCallback=function(){this.nc=this.Ne=!1;this.md=null;this.readyState="loading";this.everAttached=!1;this.eb=this.w=this.D=null;this.layout_="nodisplay";this.layoutWidth_=-1;this.ja=0;this.Ob=this.bb=this.Jd=!1;this.kc=this.Nc=this.vc=void 0;this.warnOnMissingOverflow=!0;this.Vd=this.Td=this.sizerElement=void 0;this.Ud=
this.Qa=null;this.ka=void 0;var b=a.ampExtendedElements&&a.ampExtendedElements[this.elementName()];this.implementation_=new b(this);this.pb=1;this.Yf=0;this.Db=this.Ka=void 0;this.S=new Ch;var c=Vd(a);this.yf=c&&c.isPerformanceTrackingOn();this.Rd=null;this.__AMP_UPG_RES&&(this.__AMP_UPG_RES(this),delete this.__AMP_UPG_RES,delete this.__AMP_UPG_PRM)};b.prototype.elementName=function(){};b.prototype.signals=function(){return this.S};b.prototype.getAmpDoc=function(){return this.D};b.prototype.getResources=
function(){return this.w};b.prototype.getLayers=function(){return this.eb};b.prototype.isUpgraded=function(){return 2==this.pb};b.prototype.upgrade=function(a){this.Db||1!=this.pb||(this.implementation_=new a(this),this.everAttached&&this.Vf())};b.prototype.getUpgradeDelayMs=function(){return this.Yf};b.prototype.qd=function(b,c){this.Yf=a.Date.now()-c;this.pb=2;this.implementation_=b;this.classList.remove("amp-unresolved");this.classList.remove("i-amphtml-unresolved");this.implementation_.createdCallback();
this.hg();this.implementation_.layout_=this.layout_;this.implementation_.layoutWidth_=this.layoutWidth_;this.implementation_.firstAttachedCallback();this.Na("amp:attached");this.getResources().upgraded(this)};b.prototype.hg=function(){if("nodisplay"!=this.layout_&&!this.implementation_.isLayoutSupported(this.layout_)){var a="Layout not supported: "+this.layout_;this.getAttribute("layout")||(a+=". The element did not specify a layout attribute. Check https://www.ampproject.org/docs/guides/responsive/control_layout and the respective element documentation for details.");
throw u().createError(a);}};b.prototype.isBuilt=function(){return this.Ne};b.prototype.whenBuilt=function(){return this.S.whenSignal("built")};b.prototype.getLayoutPriority=function(){this.isUpgraded();return this.implementation_.getLayoutPriority()};b.prototype.getDefaultActionAlias=function(){this.isUpgraded();return this.implementation_.getDefaultActionAlias()};b.prototype.build=function(){var a=this;this.isUpgraded();return this.md?this.md:this.md=(new Promise(function(b,c){var d=a.Eg();d?ge(a,
"consentPolicyManager","amp-consent").then(function(a){return a?a.whenPolicyUnblock(d):!0}).then(function(d){d?b(a.implementation_.buildCallback()):c(Error("BLOCK_BY_CONSENT"))}):b(a.implementation_.buildCallback())})).then(function(){a.preconnect(!1);a.Ne=!0;a.classList.remove("i-amphtml-notbuilt");a.classList.remove("amp-notbuilt");a.S.signal("built");a.bb&&a.Wf(!0);a.Ka&&S(a.ownerDocument.defaultView).delay(a.yg.bind(a),1);if(!a.getPlaceholder()){var b=a.createPlaceholder();b&&a.appendChild(b)}},
function(b){a.S.rejectSignal("built",b);yg(b)||wg(b,a);throw b;})};b.prototype.preconnect=function(a){var b=this;a?this.implementation_.preconnectCallback(a):S(this.ownerDocument.defaultView).delay(function(){var c=b.tagName;b.ownerDocument?b.ownerDocument.defaultView?b.implementation_.preconnectCallback(a):w().error(c,"preconnect without defaultView"):w().error(c,"preconnect without ownerDocument")},1)};b.prototype.isAlwaysFixed=function(){return this.implementation_.isAlwaysFixed()};b.prototype.updateLayoutBox=
function(a,b){var c=this;this.layoutWidth_=a.width;this.isUpgraded()&&(this.implementation_.layoutWidth_=this.layoutWidth_);if(this.isBuilt())try{if(this.implementation_.onLayoutMeasure(),b)this.implementation_.onMeasureChanged()}catch(h){wg(h,this)}this.pc()&&(this.bb?this.toggleLoading(!0):1E3>a.top&&0<=a.top&&this.yc(function(){return c.Bf()}))};b.prototype.cf=function(){void 0===this.sizerElement&&"responsive"===this.layout_&&(this.sizerElement=this.querySelector("i-amphtml-sizer"));return this.sizerElement||
null};b.prototype.applySizesAndMediaQuery=function(){void 0===this.vc&&(this.vc=this.getAttribute("media")||null);if(this.vc){var a=this.ownerDocument.defaultView;this.classList.toggle("i-amphtml-hidden-by-media-query",!a.matchMedia(this.vc).matches)}if(void 0===this.Nc){var b=this.getAttribute("sizes");this.Nc=b?Kh(b):null}this.Nc&&V(this,"width",this.Nc.select(this.ownerDocument.defaultView));void 0===this.kc&&"responsive"===this.layout_&&(this.kc=(b=this.getAttribute("heights"))?Kh(b,!0):null);
this.kc&&(b=this.cf())&&V(b,"paddingTop",this.kc.select(this.ownerDocument.defaultView))};b.prototype.changeSize=function(a,b,c){var d=this.cf();d&&(this.sizerElement=null,V(d,"paddingTop","0"),this.yc(function(){d.parentElement&&d.parentElement.removeChild(d)}));void 0!==a&&V(this,"height",a,"px");void 0!==b&&V(this,"width",b,"px");c&&(null!=c.top&&V(this,"marginTop",c.top,"px"),null!=c.right&&V(this,"marginRight",c.right,"px"),null!=c.bottom&&V(this,"marginBottom",c.bottom,"px"),null!=c.left&&V(this,
"marginLeft",c.left,"px"));this.Jg()&&this.rh();this.dispatchCustomEvent("amp:size-changed")};b.prototype.connectedCallback=function(){void 0===Nh&&(Nh="content"in self.document.createElement("template"));Nh||void 0!==this.Db||(this.Db=!!ub(this,"template"));if(!this.Db&&!this.nc&&qb(this)){this.nc=!0;this.everAttached||(this.classList.add("i-amphtml-element"),this.classList.add("i-amphtml-notbuilt"),this.classList.add("amp-notbuilt"));if(!this.D){var a=this.ownerDocument.defaultView,b=le(a).getAmpDoc(this);
this.D=b;var c=this.tagName.toLowerCase();this.implementation_ instanceof vh&&!b.declaresExtension(c)&&me(a).installExtensionForDoc(b,c)}this.w||(this.w=pe(this.D));L(this.D.win,"layers")&&(this.eb||(this.eb=P(this.D,"layers")),this.getLayers().add(this));this.getResources().add(this);if(this.everAttached){var h=this.reconstructWhenReparented();h&&this.If();this.isUpgraded()&&(h&&this.getResources().upgraded(this),this.Na("amp:attached"))}else{this.everAttached=!0;try{var k=this.getAttribute("i-amphtml-layout");
if(k){var l=cf(k);"responsive"!=l&&"intrinsic"!=l||!this.firstElementChild?"nodisplay"==l&&(We(this,!1),this.style.display=""):this.sizerElement=this.querySelector("i-amphtml-sizer")||void 0;var m=l}else{var n=this.getAttribute("layout"),t=this.getAttribute("width"),p=this.getAttribute("height"),x=this.getAttribute("sizes"),v=this.getAttribute("heights"),F=n?cf(n):null;z(void 0!==F,"Unknown layout: %s",n);var J=t&&"auto"!=t?ef(t):t;z(void 0!==J,"Invalid width value: %s",t);var G=p&&"fluid"!=p?ef(p):
p;z(void 0!==G,"Invalid height value: %s",p);var Y;if(!(Y=F&&"fixed"!=F&&"fixed-height"!=F||J&&G)){var aa=this.tagName;aa=aa.toUpperCase();Y=void 0===$e[aa]}if(Y){var y=J;var K=G}else{var Z=this.tagName.toUpperCase();if(!$e[Z]){var ha=this.ownerDocument,H=Z.replace(/^AMP\-/,""),Q=ha.createElement(H);Q.controls=!0;Ue(Q,{position:"absolute",visibility:"hidden"});ha.body.appendChild(Q);$e[Z]={width:(Q.offsetWidth||1)+"px",height:(Q.offsetHeight||1)+"px"};ha.body.removeChild(Q)}var Ic=$e[Z];y=J||"fixed-height"==
F?J:Ic.width;K=G||Ic.height}var D=F?F:y||K?"fluid"==K?"fluid":!K||y&&"auto"!=y?K&&y&&(x||v)?"responsive":"fixed":"fixed-height":"container";"fixed"!=D&&"fixed-height"!=D&&"responsive"!=D&&"intrinsic"!=D||z(K,"Expected height to be available: %s",p);"fixed-height"==D&&z(!y||"auto"==y,'Expected width to be either absent or equal "auto" for fixed-height layout: %s',t);"fixed"!=D&&"responsive"!=D&&"intrinsic"!=D||z(y&&"auto"!=y,'Expected width to be available and not equal to "auto": %s',t);"responsive"==
D||"intrinsic"==D?z(hf(y)==hf(K),"Length units should be the same for width and height: %s, %s",t,p):z(null===v,'Unexpected "heights" attribute for none-responsive layout');this.classList.add("i-amphtml-layout-"+D);df(D)&&this.classList.add("i-amphtml-layout-size-defined");if("nodisplay"==D)We(this,!1),this.style.display="";else if("fixed"==D)Ue(this,{width:y,height:K});else if("fixed-height"==D)V(this,"height",K);else if("responsive"==D){var fa=this.ownerDocument.createElement("i-amphtml-sizer");
Ue(fa,{paddingTop:jf(K)/jf(y)*100+"%"});this.insertBefore(fa,this.firstChild);this.sizerElement=fa}else if("intrinsic"==D){var ga=Oe(this)(Ye);ga.firstElementChild.setAttribute("src",'data:image/svg+xml;charset=utf-8,<svg height="'+K+'" width="'+y+'" xmlns="http://www.w3.org/2000/svg" version="1.1"/>');this.insertBefore(ga,this.firstChild);this.sizerElement=ga}else"fill"!=D&&"container"!=D&&("flex-item"==D?(y&&V(this,"width",y),K&&V(this,"height",K)):"fluid"==D&&(this.classList.add("i-amphtml-layout-awaiting-size"),
y&&V(this,"width",y),V(this,"height",0)));this.setAttribute("i-amphtml-layout",D);m=D}this.layout_=m}catch(la){wg(la,this)}this.implementation_ instanceof vh||this.Vf();this.isUpgraded()||(this.classList.add("amp-unresolved"),this.classList.add("i-amphtml-unresolved"),this.Na("amp:stubbed"))}}};b.prototype.Jg=function(){return this.classList.contains("i-amphtml-layout-awaiting-size")};b.prototype.rh=function(){this.classList.remove("i-amphtml-layout-awaiting-size")};b.prototype.attachedCallback=function(){this.connectedCallback()};
b.prototype.Vf=function(){var b=this,c=this.implementation_;if(1==this.pb){this.pb=4;var g=a.Date.now(),h=c.upgradeCallback();h?"function"==typeof h.then?h.then(function(a){b.qd(a||c,g)}).catch(function(a){b.pb=3;Oa(a)}):this.qd(h,g):this.qd(c,g)}};b.prototype.disconnectedCallback=function(){this.disconnect(!1)};b.prototype.detachedCallback=function(){this.disconnectedCallback()};b.prototype.disconnect=function(a){this.Db||!this.nc||!a&&qb(this)||(a&&this.classList.remove("i-amphtml-element"),this.nc=
!1,this.getResources().remove(this),L(this.D.win,"layers")&&this.getLayers().remove(this),this.implementation_.detachedCallback())};b.prototype.dispatchCustomEvent=function(a,b){b=b||{};var c=this.ownerDocument.createEvent("Event");c.data=b;c.initEvent(a,!0,!0);this.dispatchEvent(c)};b.prototype.Na=function(){};b.prototype.prerenderAllowed=function(){return this.implementation_.prerenderAllowed()};b.prototype.createPlaceholder=function(){return this.implementation_.createPlaceholderCallback()};b.prototype.renderOutsideViewport=
function(){return this.implementation_.renderOutsideViewport()};b.prototype.idleRenderOutsideViewport=function(){return this.implementation_.idleRenderOutsideViewport()};b.prototype.getLayoutBox=function(){return this.getResources().getResourceForElement(this).getLayoutBox()};b.prototype.getPageLayoutBox=function(){return this.getResources().getResourceForElement(this).getPageLayoutBox()};b.prototype.getOwner=function(){return this.getResources().getResourceForElement(this).getOwner()};b.prototype.getIntersectionChangeEntry=
function(){var a=this.implementation_.getIntersectionElementLayoutBox(),b=this.getResources().getResourceForElement(this).getOwner(),c=this.implementation_.getViewport().getRect(),h=b&&b.getLayoutBox(),k=dc(a,h,c)||E(0,0,0,0);b=k.width*k.height;var l=a.width*a.height;b=0===l?0:b/l;if(l=c)k=fc(k,-c.left,-c.top),a=fc(a,-c.left,-c.top),l=fc(l,-c.left,-c.top);return{time:"undefined"!==typeof performance&&performance.now?performance.now():Date.now()-Jh,rootBounds:l,boundingClientRect:a,intersectionRect:k,
intersectionRatio:b}};b.prototype.getResourceId=function(){return this.getResources().getResourceForElement(this).getId()};b.prototype.Fg=function(){return this.getResources().getResourceForElement(this).getState()};b.prototype.isRelayoutNeeded=function(){return this.implementation_.isRelayoutNeeded()};b.prototype.getImpl=function(){var a=this;return this.whenBuilt().then(function(){return a.implementation_})};b.prototype.getLayout=function(){return this.layout_};b.prototype.layoutCallback=function(){var a=
this;this.isBuilt();this.Na("amp:load:start");var b=0==this.ja;this.S.reset("unload");b&&this.S.signal("load-start");this.yf&&this.bf().startLayout();var c=Ta(function(){return a.implementation_.layoutCallback()});this.preconnect(!0);this.classList.add("i-amphtml-layout");return c.then(function(){b&&a.S.signal("load-end");a.readyState="complete";a.ja++;a.toggleLoading(!1,{cleanup:!0});a.Jd||(a.implementation_.firstLayoutCompleted(),a.Jd=!0,a.Na("amp:load:end"))},function(c){b&&a.S.rejectSignal("load-end",
c);a.ja++;a.toggleLoading(!1,{cleanup:!0});throw c;})};b.prototype.isInViewport=function(){return this.bb};b.prototype.viewportCallback=function(a){var b=this;a!=this.bb&&this.ownerDocument&&this.ownerDocument.defaultView&&(this.bb=a,0==this.ja&&(a?S(this.ownerDocument.defaultView).delay(function(){b.bb&&b.ownerDocument&&b.ownerDocument.defaultView&&b.toggleLoading(!0)},100):this.toggleLoading(!1)),this.isBuilt()&&this.Wf(a))};b.prototype.Wf=function(a){this.implementation_.inViewport_=a;this.implementation_.viewportCallback(a);
a&&this.yf&&this.bf().enterViewport()};b.prototype.isPaused=function(){return this.Ob};b.prototype.pauseCallback=function(){this.Ob||(this.Ob=!0,this.viewportCallback(!1),this.isBuilt()&&this.implementation_.pauseCallback())};b.prototype.resumeCallback=function(){this.Ob&&(this.Ob=!1,this.isBuilt()&&this.implementation_.resumeCallback())};b.prototype.unlayoutCallback=function(){if(!this.isBuilt())return!1;this.S.signal("unload");var a=this.implementation_.unlayoutCallback();a&&this.If();return a};
b.prototype.If=function(){this.ja=0;this.Jd=!1;this.S.reset("render-start");this.S.reset("load-start");this.S.reset("load-end");this.S.reset("ini-load")};b.prototype.unlayoutOnPause=function(){return this.implementation_.unlayoutOnPause()};b.prototype.reconstructWhenReparented=function(){return this.implementation_.reconstructWhenReparented()};b.prototype.collapse=function(){this.implementation_.collapse()};b.prototype.collapsedCallback=function(a){this.implementation_.collapsedCallback(a)};b.prototype.expand=
function(){this.implementation_.expand()};b.prototype.expandedCallback=function(a){this.implementation_.expandedCallback(a)};b.prototype.mutatedAttributesCallback=function(a){this.implementation_.mutatedAttributesCallback(a)};b.prototype.enqueAction=function(a){this.isBuilt()?this.Ye(a,!1):(void 0===this.Ka&&(this.Ka=[]),this.Ka.push(a))};b.prototype.yg=function(){var a=this;if(this.Ka){var b=this.Ka;this.Ka=null;b.forEach(function(b){a.Ye(b,!0)})}};b.prototype.Ye=function(a,b){try{this.implementation_.executeAction(a,
b)}catch(g){Oa("Action execution failed:",g,a.node.tagName,a.method)}};b.prototype.Eg=function(){var a=this.getAttribute("data-block-on-consent");if(null===a)if(a=this.getAmpDoc(),(a=R(a).metaTags["amp-consent-blocking"])?"string"!==typeof a?(u().error("CONSENT","Invalid amp-consent-blocking value, ignore meta tag"),a=!1):(a=a.toUpperCase().replace(/\s/g,"").split(","),a=a.includes(this.tagName)?!0:!1):a=!1,a)a="default",this.setAttribute("data-block-on-consent",a);else return null;return""==a||"default"==
a?this.implementation_.getConsentPolicy():a};b.prototype.getRealChildNodes=function(){return yb(this,function(a){return!Qh(a)})};b.prototype.getRealChildren=function(){return wb(this,function(a){return!Qh(a)})};b.prototype.getPlaceholder=function(){return xb(this,function(a){return a.hasAttribute("placeholder")&&!("placeholder"in a)})};b.prototype.togglePlaceholder=function(a){if(a){var b=this.getPlaceholder();b&&b.classList.remove("amp-hidden")}else{/^[\w-]+$/.test("placeholder");var c=(void 0!==
Wa?Wa:Wa=$a(this))?this.querySelectorAll("> [placeholder]".replace(/^|,/g,"$&:scope ")):Bb(this,"> [placeholder]");for(b=0;b<c.length;b++)"placeholder"in c[b]||c[b].classList.add("amp-hidden")}};b.prototype.getFallback=function(){return zb(this,"fallback")};b.prototype.toggleFallback=function(a){var b=this.Fg();if(!a||0!=b&&1!=b&&2!=b)if(this.classList.toggle("amp-notsupported",a),1==a){var c=this.getFallback();c&&this.getResources().scheduleLayout(this,c)}};b.prototype.renderStarted=function(){this.S.signal("render-start");
this.togglePlaceholder(!1);this.toggleLoading(!1)};b.prototype.pc=function(){if(this.Lg())return!1;void 0===this.Td&&(this.Td=this.hasAttribute("noloading"));var a;(a=this.Td)||(a=this.tagName.toUpperCase(),a=!(af[a]||bf.test(a)));return a||100>this.layoutWidth_||0<this.ja||Qh(this)||!df(this.layout_)?!1:!0};b.prototype.Lg=function(){return this.D&&this.D.win!=this.ownerDocument.defaultView||"inabox"==r().runtime};b.prototype.Bf=function(){if(this.pc()&&!this.Qa){var a=this.ownerDocument,b=Oe(a)(Mh),
c=this.elementName();a=Fh[c.toUpperCase()]?Oe(a)(Eh):Oe(a)(Dh);b.appendChild(a);this.appendChild(b);this.Qa=b;this.Ud=a}};b.prototype.toggleLoading=function(a,b){var c=this,d=b&&b.cleanup,e=b&&b.force;if(!a||this.implementation_.isLoadingReused()||!(0<this.ja||this.S.get("render-start")))if((this.Vd=a)||this.Qa)!a||e||this.pc()?this.yc(function(){var a=c.Vd;!a||e||c.pc()||(a=!1);a&&c.Bf();if(c.Qa&&(c.Qa.classList.toggle("amp-hidden",!a),c.Ud.classList.toggle("amp-active",a),!a&&d&&!c.implementation_.isLoadingReused())){var b=
c.Qa;c.Qa=null;c.Ud=null;c.yc(function(){var a=b;a.parentElement&&a.parentElement.removeChild(a)})}}):this.Vd=!1};b.prototype.bf=function(){this.Rd||(this.Rd=new xh(this.ownerDocument.defaultView,this.getLayoutPriority()));return this.Rd};b.prototype.getOverflowElement=function(){void 0===this.ka&&(this.ka=zb(this,"overflow"))&&(this.ka.hasAttribute("tabindex")||this.ka.setAttribute("tabindex","0"),this.ka.hasAttribute("role")||this.ka.setAttribute("role","button"));return this.ka};b.prototype.overflowCallback=
function(a,b,c){var d=this;this.getOverflowElement();this.ka?(this.ka.classList.toggle("amp-visible",a),this.ka.onclick=a?function(){var a=d.getResources();a.changeSize(d,b,c);a.mutateElement(d,function(){d.overflowCallback(!1,b,c)})}:null):a&&this.warnOnMissingOverflow&&u().warn("CustomElement","Cannot resize element and overflow is not available",this)};b.prototype.yc=function(a){this.w?this.getResources().mutateElement(this,a):a()};a.BaseCustomElementClass=b;return a.BaseCustomElementClass}
function Qh(a){var b="string"==typeof a?a:a.tagName;return b&&hb(b.toLowerCase(),"i-")||a.tagName&&(a.hasAttribute("placeholder")||a.hasAttribute("fallback")||a.hasAttribute("overflow"))?!0:!1};function Rh(a){a.ampExtendedElements||(a.ampExtendedElements={});return a.ampExtendedElements}function Sh(a,b,c){var d=Rh(a);if(!d[b])Th(a,b,c);else if(d[b]!=c){z(d[b]==vh,"%s is already registered. The script tag for %s is likely included twice in the page.",b,b);d[b]=c;for(var e=0;e<uh.length;e++){var g=uh[e],h=g.element;if(h.tagName.toLowerCase()==b&&h.ownerDocument.defaultView==a){try{h.upgrade(c)}catch(k){wg(k,h)}uh.splice(e--,1)}}}}
function Uh(a){je(a.getHeadNode()).forEach(function(b){a.declareExtension(b);Vh(a.win,b)})}function Vh(a,b){Rh(a)[b]||Th(a,b,vh)}function Th(a,b,c){Rh(a)[b]=c;var d=Oh(a,b),e="customElements"in a;e?a.customElements.define(b,d):a.document.registerElement(b,{prototype:d.prototype})};function Wh(a){if(!a.hasAttribute("src")&&0=="srcset"in a){var b=a.getAttribute("srcset"),c=/\S+/.exec(b);if(null!=c){var d=c[0];a.setAttribute("src",d)}}};var Xh="alt title referrerpolicy aria-label aria-describedby aria-labelledby srcset src sizes".split(" ");function Yh(a){zf.call(this,a);this.Cf=this.Zb=!0;this.Tc=this.Uc=this.R=null}na(Yh,zf);f=Yh.prototype;f.mutatedAttributesCallback=function(a){if(this.R){var b=Xh.filter(function(b){return void 0!==a[b]});this.propagateAttributes(b,this.R,!0);Wh(this.R)}};
f.preconnectCallback=function(a){var b=this.element.getAttribute("src");b?this.preconnect.url(b,a):(b=this.element.getAttribute("srcset"))&&(b=/\S+/.exec(b))&&this.preconnect.url(b[0],a)};f.firstAttachedCallback=function(){this.element.hasAttribute("noprerender")&&(this.Cf=!1)};f.isLayoutSupported=function(a){return df(a)};
f.mc=function(){this.R||(this.Zb=!this.element.hasAttribute("fallback"),this.element.hasAttribute("i-amphtml-ssr")&&(this.R=this.element.querySelector("img")),this.R=this.R||new Image,this.R.setAttribute("decoding","async"),this.element.id&&this.R.setAttribute("amp-img-id",this.element.id),"img"==this.element.getAttribute("role")&&(this.element.removeAttribute("role"),this.user().error("AMP-IMG","Setting role=img on amp-img elements breaks screen readers please just set alt or ARIA attributes, they will be correctly propagated for the underlying <img> element.")),
this.propagateAttributes(Xh,this.R),Wh(this.R),this.applyFillContent(this.R,!0),this.element.appendChild(this.R))};f.prerenderAllowed=function(){return this.Cf};f.reconstructWhenReparented=function(){return!1};f.layoutCallback=function(){var a=this;this.mc();var b=this.R;this.Uc=of(b,"load",function(){return Zh(a)});this.Tc=of(b,"error",function(){return $h(a)});return 0>=this.getLayoutWidth()?Promise.resolve():this.loadPromise(b)};
f.unlayoutCallback=function(){this.Tc&&(this.Tc(),this.Tc=null);this.Uc&&(this.Uc(),this.Uc=null);return!0};f.firstLayoutCompleted=function(){var a=this.getPlaceholder();a&&a.classList.contains("i-amphtml-blurry-placeholder")&&L(this.win,"blurry-placeholder")?U(a,{opacity:0}):this.togglePlaceholder(!1)};function Zh(a){!a.Zb&&a.R.classList.contains("i-amphtml-ghost")&&a.getVsync().mutate(function(){a.R.classList.remove("i-amphtml-ghost");a.toggleFallback(!1)})}
function $h(a){a.Zb&&(a.getVsync().mutate(function(){a.R.classList.add("i-amphtml-ghost");a.toggleFallback(!0);a.togglePlaceholder(!1)}),a.Zb=!1)};function ai(a){zf.apply(this,arguments)}na(ai,zf);ai.prototype.isLayoutSupported=function(a){return"container"==a||df(a)};ai.prototype.buildCallback=function(){if("container"!=this.getLayout()){var a=this.win.document.createElement("div");this.applyFillContent(a);this.getRealChildNodes().forEach(function(b){a.appendChild(b)});this.element.appendChild(a)}};ai.prototype.prerenderAllowed=function(){return!0};function bi(a,b,c){c=void 0===c?!1:c;a=new a.Image;c&&(a.referrerPolicy="no-referrer");a.src=b;return a};function ci(a){zf.call(this,a);this.qe=null}na(ci,zf);ci.prototype.isLayoutSupported=function(){return!0};ci.prototype.buildCallback=function(){this.element.setAttribute("aria-hidden","true");(this.Jc=this.element.getAttribute("referrerpolicy"))&&z("no-referrer"==this.Jc,'amp-pixel: invalid "referrerpolicy" value "'+this.Jc+'". Only "no-referrer" is supported');this.element.hasAttribute("i-amphtml-ssr")&&this.element.querySelector("img")?w().info("amp-pixel","inabox img already present"):T(this.getAmpDoc()).whenFirstVisible().then(this.yh.bind(this))};
ci.prototype.yh=function(){var a=this;if(this.qe)return w().error("amp-pixel","duplicate pixel"),this.qe;this.qe=S(this.win).promise(1).then(function(){var b=a.element.getAttribute("src");if(b)return Bd(a.element,"url-replace").expandUrlAsync(di(b)).then(function(b){var c=a.win,e=a.Jc;e&&"no-referrer"!==e&&u().error("pixel","Unsupported referrerPolicy: %s",e);if("no-referrer"===e)if("referrerPolicy"in Image.prototype)c=bi(c,b,!0);else{var g=c.document;e=B({src:"about:blank",style:"display:none"});
g=g.createElement("iframe");for(var h in e)g.setAttribute(h,e[h]);c.document.body.appendChild(g);bi(g.contentWindow,b);c=g}else c=bi(c,b);var k=c;w().info("amp-pixel","pixel triggered: ",b);return k})})};function di(a){z(/^(https:\/\/|\/\/)/i.test(a),'The <amp-pixel> src attribute must start with "https://" or "//". Invalid value: '+a);return a};var ei=["amp-ad","amp-embed","amp-video"],fi=["amp-mustache"];function gi(a){this.win=a;this.La=le(a);this.ec={};this.ab=null}f=gi.prototype;f.registerExtension=function(a,b,c){var d=hi(this,a,!0);try{this.ab=a,b(c,c._),d.loaded=!0,d.resolve&&d.resolve(d.extension)}catch(e){throw d.error=e,d.reject&&d.reject(e),e;}finally{this.ab=null}};f.waitForExtension=function(a,b,c){return S(a).timeoutPromise(c||8E3,ii(hi(this,b,!1)),"Render timeout waiting for extension "+b+" to be load.")};
f.preloadExtension=function(a,b){"amp-embed"==a&&(a="amp-ad");var c=hi(this,a,!1);if(c.loaded||c.error)var d=!1;else void 0===c.scriptPresent&&(c.scriptPresent=!!this.win.document.head.querySelector('[custom-element="'+a+'"]')),d=!c.scriptPresent;if(d){d=b;b=this.win.document.createElement("script");b.async=!0;hb(a,"_")?d="":b.setAttribute(0<=fi.indexOf(a)?"custom-template":"custom-element",a);b.setAttribute("data-script",a);b.setAttribute("i-amphtml-inserted","");var e=d;d=Vc.cdn;var g=r().rtvVersion;
null==e&&(e="0.1");e=e?"-"+e:"";var h=r().singlePassType?r().singlePassType+"/":"";b.src=d+"/rtv/"+g+"/"+h+"v0/"+a+e+".js";this.win.document.head.appendChild(b);c.scriptPresent=!0}return ii(c)};f.installExtensionForDoc=function(a,b,c){var d=this,e=a.getRootNode(),g=e.__AMP_EXT_LDR;g||(g=e.__AMP_EXT_LDR=A());if(g[b])return g[b];Vh(a.win,b);return g[b]=this.preloadExtension(b,c).then(function(){return ji(d,a,b)})};
f.reloadExtension=function(a,b){this.ec[a]&&delete this.ec[a];b.removeAttribute("custom-element");b.setAttribute("i-amphtml-loaded-new-version",a);var c=b.src.match(/^(.*)\/(.*)-([0-9.]+)\.js$/i),d={extensionId:c?c[2]:void 0,extensionVersion:c?c[3]:void 0};return this.preloadExtension(a,d.extensionVersion)};f.loadElementClass=function(a){return this.preloadExtension(a).then(function(b){return b.elements[a].implementationClass})};
f.addElement=function(a,b,c){ki(this,a).extension.elements[a]={implementationClass:b,css:c};this.addDocFactory(function(d){li(d,a,b,c)})};function li(a,b,c,d){d?Lf(a,d,function(){mi(a.win,b,c)},!1,b):mi(a.win,b,c)}function mi(a,b,c){Sh(a,b,c);M(a,b,ni)}f.addService=function(a,b){ki(this).extension.services.push({serviceName:a,serviceClass:b});this.addDocFactory(function(c){N(c,a,b,!0)})};
f.addDocFactory=function(a,b){var c=ki(this,b);c.docFactories.push(a);if(this.ab&&(this.La.isSingleDoc()||this.La.hasAmpDocShell())){var d=this.La.getAmpDoc(this.win.document);(d.declaresExtension(this.ab)||c.auto)&&a(d)}};f.installExtensionsInDoc=function(a,b){var c=this,d=[];b.forEach(function(b){d.push(ji(c,a,b))});return Promise.all(d)};
function ji(a,b,c){var d=hi(a,c,!1);return ii(d).then(function(){b.declareExtension(c);d.docFactories.forEach(function(a){try{a(b)}catch(g){Oa("Doc factory failed: ",g,c)}})})}
f.installExtensionsInChildWindow=function(a,b,c){var d=this,e=this.win,g=a.frameElement.ownerDocument.defaultView;$d(a,g);oi(a);Pf(a.document,cssText$$module$build$css,null,!0,"amp-runtime");c&&c(a);pi(a,g);qi(e,a);ri(a);var h=[];b.forEach(function(b){ei.includes(b)||Vh(a,b);var c=d.preloadExtension(b).then(function(c){c.services.forEach(function(b){b=b.serviceClass;if("function"===typeof b.installInEmbedWindow){var c=Rd(a.frameElement);b.installInEmbedWindow(a,c)}});var d=null,e={},g;for(g in c.elements){e.elementName=
g;e.elementDef=c.elements[e.elementName];var h=(new Promise(function(c){return function(d){c.elementDef.css?Pf(a.document,c.elementDef.css,d,!1,b):d()}}(e))).then(function(b){return function(){Sh(a,b.elementName,b.elementDef.implementationClass)}}(e));d?d.push(h):d=[h];e={elementDef:e.elementDef,elementName:e.elementName}}return d?Promise.all(d).then(function(){return c}):c});h.push(c)});return Promise.all(h)};
function hi(a,b,c){var d=a.ec[b];d||(d={extension:{elements:{},services:[]},auto:c,docFactories:[],promise:void 0,resolve:void 0,reject:void 0,loaded:void 0,error:void 0,scriptPresent:void 0},a.ec[b]=d);return d}function ki(a,b){a.ab||w().error("extensions","unknown extension for ",b);return hi(a,a.ab||"_UNKNOWN_",!0)}
function ii(a){if(!a.promise)if(a.loaded)a.promise=Promise.resolve(a.extension);else if(a.error)a.promise=Promise.reject(a.error);else{var b=new C;a.promise=b.promise;a.resolve=b.resolve;a.reject=b.reject}return a.promise}function qi(a,b){var c=Rh(a)["amp-img"];Th(b,"amp-img",c||vh);a=Rh(a)["amp-pixel"];Th(b,"amp-pixel",a||vh)}function ri(a){ei.forEach(function(b){Vh(a,b)})}function oi(a){ya(a);wa(a);Sc(a)}
function pi(a,b){var c=a.frameElement,d=[Bd(c,"url"),Bd(c,"action"),Bd(c,"standard-actions"),P(c,"navigation"),S(b)],e=Rd(c);d.forEach(function(b){b.constructor.installInEmbedWindow(a,e)})}function ni(){return{}};function si(a){this.D=a;this.h=T(this.D);this.he=null;this.T=S(this.D.win)}si.prototype.isSupported=function(){return this.h.isCctEmbedded()&&this.h.isProxyOrigin()};si.prototype.getScopedCid=function(a){var b=this;if(!this.h.isCctEmbedded())return Promise.resolve(null);this.he||(this.he=this.wb("https://ampcid.google.com/v1/cache:getClientId?key=AIzaSyDKtqGxnoeIqVM33Uf7hRSa3GJxuzR7mLc"));return this.he.then(function(c){return c?ti(b,c,a):null})};
si.prototype.wb=function(a,b){var c=this;b=void 0===b?!0:b;var d=B({publisherOrigin:rd(this.D.win.location)});return this.T.timeoutPromise(3E4,O(this.D.win,"xhr").fetchJson(a,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:d})).then(function(a){return a.json().then(function(a){if(a.optOut)return null;var d=a.publisherClientId;if(!d&&b&&a.alternateUrl){var e=a.alternateUrl+"?key=AIzaSyDKtqGxnoeIqVM33Uf7hRSa3GJxuzR7mLc";return c.wb(e,!1)}return d})}).catch(function(a){a&&a.response?
a.response.json().then(function(a){w().error("CacheCidApi",JSON.stringify(a))}):w().error("CacheCidApi",a);return null})};function ti(a,b,c){b=b+";"+c;return O(a.D.win,"crypto").sha384Base64(b).then(function(a){return"amp-"+a})};function ui(a){this.A=a.win;this.T=S(this.A);this.pd={};var b=R(a).canonicalUrl;this.od=b?I(b).origin:null}
ui.prototype.getScopedCid=function(a,b){var c=this;if(this.pd[b])return this.pd[b];var d;return this.pd[b]=this.T.poll(200,function(){d=ud(c.A,"AMP_TOKEN");return"$RETRIEVING"!==d}).then(function(){if("$OPT_OUT"===d)return"$OPT_OUT";var e="$NOT_FOUND"===d&&md(c.A.document.referrer);if(!e&&d&&"$"===d[0])return null;d&&(!d||"$"!==d[0])||vi(c,"$RETRIEVING",3E4);return c.wb("https://ampcid.google.com/v1/publisher:getClientId?key="+a,b,d).then(function(e){var g=c.ef(e);if(!g&&e.alternateUrl){var k=e.alternateUrl+
"?key="+a;return c.wb(k,b,d).then(c.ef.bind(c))}return g}).catch(function(a){vi(c,"$ERROR",3E4);a&&a.response?a.response.json().then(function(a){w().error("GoogleCidApi",JSON.stringify(a))}):w().error("GoogleCidApi",a);return null})})};ui.prototype.wb=function(a,b,c){b=B({originScope:b,canonicalOrigin:this.od});c&&(b.securityToken=c);return this.T.timeoutPromise(3E4,O(this.A,"xhr").fetchJson(a,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:b}).then(function(a){return a.json()}))};
ui.prototype.ef=function(a){if(a.optOut)return vi(this,"$OPT_OUT",31536E6),"$OPT_OUT";if(a.clientId)return vi(this,a.securityToken,31536E6),a.clientId;if(a.alternateUrl)return null;vi(this,"$NOT_FOUND",36E5);return null};function vi(a,b,c){b&&vd(a.A,"AMP_TOKEN",b,a.A.Date.now()+c,{highestAvailableDomain:!0})};function wi(a){this.D=a;this.h=T(this.D);this.od=(a=R(this.D).canonicalUrl)?I(a).origin:null}wi.prototype.isSupported=function(){return this.h.hasCapability("cid")?this.h.isTrustedViewer():Promise.resolve(!1)};wi.prototype.getScopedCid=function(a,b){b=B({scope:b,clientIdApi:!!a,canonicalOrigin:this.od});a&&(b.apiKey=a);return this.h.sendMessageAwaitResponse("cid",b)};var xi={"+":"-","/":"_","=":"."};function yi(a){a=Ub(a);return btoa(a).replace(/[+/=]/g,function(a){return xi[a]})};var zi=/^[a-zA-Z0-9-_.]+$/,Ai={googleanalytics:"AMP_ECID_GOOGLE"},Bi={googleanalytics:"AIzaSyA65lEHUEizIsNtlbNo-l2K18dT680nsaM"};function Ci(a){this.ampdoc=a;this.ed=null;this.rd=Object.create(null);this.Oe=new si(a);this.ag=new wi(a);this.ug=new ui(a);this.cd=null}
Ci.prototype.get=function(a,b,c){var d=this;z(zi.test(a.scope)&&zi.test(a.cookieName),"The CID scope and cookie name must only use the characters [a-zA-Z0-9-_.]+\nInstead found: %s",a.scope);return b.then(function(){return T(d.ampdoc).whenFirstVisible()}).then(function(){return Di(d.ampdoc)}).then(function(e){if(e)return"";var g=Ei(d,a,c||b);return S(d.ampdoc.win).timeoutPromise(1E4,g,'Getting cid for "'+a.scope+'" timed out').catch(function(a){Oa(a)})})};Ci.prototype.optOut=function(){return Fi(this.ampdoc)};
function Ei(a,b,c){var d=b.scope,e=I(a.ampdoc.win.location.href);if(!md(e)){var g=Gi(a,d);return g?a.ug.getScopedCid(g,d).then(function(e){if("$OPT_OUT"==e)return null;if(e){var g=b.cookieName||d;Hi(a.ampdoc.win,g,e);return e}return Ii(a,b,c)}):Ii(a,b,c)}return a.ag.isSupported().then(function(b){if(b){var g=Gi(a,d);return a.ag.getScopedCid(g,d)}return a.Oe.isSupported()&&Gi(a,d)?a.Oe.getScopedCid(d).then(function(b){return b?b:Ji(a,c,d,e)}):Ji(a,c,d,e)})}
function Ji(a,b,c,d){return Ki(a,b).then(function(b){return O(a.ampdoc.win,"crypto").sha384Base64(b+Li(d)+c)})}function Gi(a,b){a.cd||(a.cd=Mi(a));return a.cd[b]}
function Mi(a){var b={},c=a.ampdoc.win.document.head.querySelector("meta[name=amp-google-client-id-api]");c&&c.hasAttribute("content")&&c.getAttribute("content").split(",").forEach(function(a){a=a.trim();if(0<a.indexOf("=")){var c=a.split("=");b[c[0].trim()]=c[1].trim()}else{var d=a;(a=Ai[d])?b[a]=Bi[d]:u().error("CID","Unsupported client for Google CID API: "+d)}});return b}
function Fi(a){T(a).sendMessage("cidOptOut",{});return Wd(a,"storage").then(function(a){return a.set("amp-cid-optout",!0)})}function Di(a){return Wd(a,"storage").then(function(a){return a.get("amp-cid-optout").then(function(a){return!!a})}).catch(function(){return!1})}function Hi(a,b,c){var d=Date.now()+31536E6;vd(a,b,c,d,{highestAvailableDomain:!0})}
function Ii(a,b,c){var d=a.ampdoc.win,e=b.scope,g=b.cookieName||e,h=ud(d,g);if(!h&&!b.createCookieIfNotPresent)return Promise.resolve(null);if(a.rd[e])return a.rd[e];if(h)return/^amp-/.test(h)&&Hi(d,g,h),Promise.resolve(h);var k=Ni(d).then(function(a){return"amp-"+a});Promise.all([k,c]).then(function(a){var b=a[0],c=ud(d,g);c||Hi(d,g,b)});return a.rd[e]=k}function Li(a){z(md(a),"Expected proxy origin %s",a.origin);return rd(a)}
function Ki(a,b){if(a.ed)return a.ed;var c=a.ampdoc.win;return a.ed=Oi(a.ampdoc).then(function(d){var e=!1;if(d&&!Pi(d)){var g=Promise.resolve(d.cid);d.time+864E5<Date.now()&&(e=!0)}else g=O(c,"crypto").sha384Base64(Qi(c)),e=!0;e&&g.then(function(c){Ri(a.ampdoc,b,c)});return g})}function Ri(a,b,c){var d=a.win;Mb(d)?Si(a,JSON.stringify(B({time:Date.now(),cid:c}))):b.then(function(){try{d.localStorage.setItem("amp-cid",JSON.stringify(B({time:Date.now(),cid:c})))}catch(e){}})}
function Si(a,b){var c=T(a);return c.isTrustedViewer().then(function(a){if(a)return w().expectedError("CID","Viewer does not provide cap=cid"),c.sendMessageAwaitResponse("cid",b).then(function(a){return a&&!Rb(a)?(w().expectedError("CID","invalid cid format"),JSON.stringify(B({time:Date.now(),cid:a}))):a})})}
function Oi(a){var b=a.win;try{var c=b.localStorage.getItem("amp-cid")}catch(e){}var d=Promise.resolve(c);!c&&Mb(b)&&(d=Si(a));return d.then(function(a){if(!a)return null;a=Qb(a);return{time:a.time,cid:a.cid}})}function Pi(a){var b=a.time;return b+31536E6<Date.now()}function Qi(a){if(a.crypto&&a.crypto.getRandomValues){var b=new Uint8Array(16);a.crypto.getRandomValues(b)}else b=null;return b?b:String(a.location.href+Date.now()+a.Math.random()+a.screen.width+a.screen.height)}
function Ni(a){var b=Qi(a);if("string"==typeof b)return O(a,"crypto").sha384Base64(b);var c=b;return Ta(function(){return yi(c).replace(/\.+$/,"")})};function Ti(a){this.A=a;var b=null,c=!1;a.crypto&&(a.crypto.subtle?b=a.crypto.subtle:a.crypto.webkitSubtle&&(b=a.crypto.webkitSubtle,c=!0));this.pkcsAlgo={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};this.subtle=b;this.Og=c;this.Pb=null}f=Ti.prototype;
f.sha384=function(a){var b=this;"string"===typeof a&&(a=Tb(a));if(!this.subtle||this.Pb)return(this.Pb||Ui(this)).then(function(b){return b(a)});try{return this.subtle.digest({name:"SHA-384"},a).then(function(a){return new Uint8Array(a)},function(c){c.message&&0>c.message.indexOf("secure origin")&&u().error("Crypto","SubtleCrypto failed, fallback to closure lib.",c);return Ui(b).then(function(){return b.sha384(a)})})}catch(c){return w().error("Crypto","SubtleCrypto failed, fallback to closure lib.",
c),Ui(this).then(function(){return b.sha384(a)})}};f.sha384Base64=function(a){return this.sha384(a).then(function(a){return yi(a)})};f.uniform=function(a){return this.sha384(a).then(function(a){for(var b=0,d=2;0<=d;d--)b=(b+a[d])/256;return b})};function Ui(a){return a.Pb?a.Pb:a.Pb=me(a.A).preloadExtension("amp-crypto-polyfill").then(function(){return O(a.A,"crypto-polyfill")})}f.isPkcsAvailable=function(){return!!this.subtle&&!1!==this.A.isSecureContext};
f.importPkcsKey=function(a){this.isPkcsAvailable();var b=this.Og?Sb(JSON.stringify(a)):a;return this.subtle.importKey("jwk",b,this.pkcsAlgo,!0,["verify"])};f.verifyPkcs=function(a,b,c){this.isPkcsAvailable();return this.subtle.verify(this.pkcsAlgo,a,b,c)};var Vi=["prefetch","preload","preconnect","dns-prefetch"];function Wi(a){this.D=a;this.Cd=null}
Wi.prototype.get=function(){if(this.Cd)return this.Cd;var a=this.D,b=a.getUrl(),c=qd(b),d=(b=a.getRootNode())&&b.AMP&&b.AMP.canonicalUrl;if(!d){var e=b.querySelector("link[rel=canonical]");d=e?I(e.href).href:c}var g=String(Math.floor(1E4*a.win.Math.random())),h=Xi(a.win.document),k=Yi(a.win.document),l=Zi(a);return this.Cd={get sourceUrl(){return qd(a.getUrl())},canonicalUrl:d,pageViewId:g,linkRels:h,metaTags:k,replaceParams:l}};
function Xi(a){var b=A();if(a.head){var c=a.head.querySelectorAll("link[rel]");a={};for(var d=0;d<c.length;a={href:a.href},d++){var e=c[d];a.href=e.href;var g=e.getAttribute("rel");g&&a.href&&g.split(/\s+/).forEach(function(a){return function(c){if(-1==Vi.indexOf(c)){var d=b[c];d?(Aa(d)||(d=b[c]=[d]),d.push(a.href)):b[c]=a.href}}}(a))}}return b}
function Yi(a){var b=A();if(a.head){var c=a.head.querySelectorAll("meta[name]");for(a=0;a<c.length;a++){var d=c[a],e=d.getAttribute("content");if((d=d.getAttribute("name"))&&e){var g=b[d];g?(Aa(g)||(g=b[d]=[g]),g.push(e)):b[d]=e}}}return b}function Zi(a){var b;(b=!a.isSingleDoc())||(b=a.win.location.href,"string"==typeof b&&(b=I(b)),b="a"!=(md(b)?b.pathname.split("/",2)[1]:null));if(b)return null;a=I(a.win.location.href);var c=q(a.search).amp_r;return void 0===c?null:q(c)};function X(){this.ba=null}f=X.prototype;f.add=function(a){var b=this;this.ba||(this.ba=[]);this.ba.push(a);return function(){b.remove(a)}};f.remove=function(a){this.ba&&(a=this.ba.indexOf(a),-1<a&&this.ba.splice(a,1))};f.removeAll=function(){this.ba&&(this.ba.length=0)};f.fire=function(a){if(this.ba)for(var b=this.ba,c=0;c<b.length;c++)(0,b[c])(a)};f.getHandlerCount=function(){return this.ba?this.ba.length:0};function $i(a){this.win=a;this.aa=a.document;this.Pa=Se(this.aa,"hidden",!0);void 0===this.aa[this.Pa]&&(this.Pa=null);this.Xc=Se(this.aa,"visibilityState",!0);void 0===this.aa[this.Xc]&&(this.Xc=null);this.Yb=new X;this.Wc=null;if(this.Pa){this.Wc="visibilitychange";var b=this.Pa.indexOf("Hidden");-1!=b&&(this.Wc=this.Pa.substring(0,b)+"Visibilitychange")}this.mg=this.ce.bind(this);this.Wc&&this.aa.addEventListener(this.Wc,this.mg);this.Za=null}f=$i.prototype;
f.isHidden=function(){return this.Pa?this.aa[this.Pa]:!1};f.getVisibilityState=function(){return this.Xc?this.aa[this.Xc]:this.isHidden()?"hidden":"visible"};f.onVisibilityChanged=function(a){return this.Yb.add(a)};f.ce=function(){this.Yb.fire()};f.onBodyAvailable=function(a){var b=this.aa;if(b.body)return a(),null;this.Za||(this.Za=new X,ib(b.documentElement,function(){return!!b.body},this.Zg.bind(this)));return this.Za.add(a)};f.Zg=function(){this.Za.fire();this.Za.removeAll();this.Za=null};function aj(a){ke(a).then(function(b){b&&a.getRootNode().addEventListener("submit",bj,!0)})}
function bj(a){if(!a.defaultPrevented){var b=a.target;if(b&&"FORM"==b.tagName){var c=b.classList.contains("i-amphtml-form"),d;(d=c?!b.hasAttribute("amp-novalidate"):!b.hasAttribute("novalidate"))&&b.checkValidity&&!b.checkValidity()&&a.preventDefault();for(var e=b.elements,g=0;g<e.length;g++)z(!e[g].name||"__amp_source_origin"!=e[g].name,"Illegal input name, %s found: %s","__amp_source_origin",e[g]);g=b.getAttribute("action");var h=b.getAttribute("action-xhr"),k=(b.getAttribute("method")||"GET").toUpperCase();
h&&(kd(h,b,"action-xhr"),z(!md(h),"form action-xhr should not be on AMP CDN: %s",b),td(h));g&&(kd(g,b,"action"),z(!md(g),"form action should not be on AMP CDN: %s",b),td(g));"GET"==k?z(h||g,"form action-xhr or action attribute is required for method=GET: %s",b):"POST"==k&&(g&&u().error("form","action attribute is invalid for method=POST: %s",b),h||(a.preventDefault(),z(!1,"Only XHR based (via action-xhr attribute) submissions are support for POST requests. %s",b)));(g=b.getAttribute("target"))?z("_blank"==
g||"_top"==g,"form target=%s is invalid can only be _blank or _top: %s",g,b):b.setAttribute("target","_top");h&&(a.preventDefault(),a.stopImmediatePropagation(),Bd(b,"action").execute(b,"submit",null,b,b,a,100))}}};function cj(a){try{return a.state}catch(b){return null}};function dj(a,b){this.D=a;this.T=S(a.win);this.j=b;this.B=0;this.Va=[];this.C=[];this.j.setOnStateUpdated(this.ea.bind(this))}f=dj.prototype;f.cleanup=function(){this.j.cleanup()};f.push=function(a,b){var c=this;return ej(this,function(){return c.j.push(b).then(function(b){c.ea(b);a&&(c.Va[b.stackIndex]=a);return b.stackIndex})},"push")};f.pop=function(a){var b=this;return ej(this,function(){return b.j.pop(a).then(function(a){b.ea(a)})},"pop")};
f.replace=function(a){var b=this;return ej(this,function(){return b.j.replace(a)},"replace")};f.get=function(){var a=this;return ej(this,function(){return a.j.get()},"get")};f.goBack=function(){var a=this;return ej(this,function(){return 0>=a.B?Promise.resolve():a.j.pop(a.B).then(function(b){a.ea(b)})},"goBack")};f.replaceStateForTarget=function(a){var b=this,c=this.D.win.location.hash;return this.push(function(){b.D.win.location.replace(c||"#")}).then(function(){b.j.replaceStateForTarget(a)})};
f.getFragment=function(){return this.j.getFragment()};f.updateFragment=function(a){"#"==a[0]&&(a=a.substr(1));return this.j.updateFragment(a)};f.ea=function(a){this.B=a.stackIndex;fj(this,a)};function fj(a,b){if(!(a.B>=a.Va.length-1)){for(var c=[],d=a.Va.length-1;d>a.B;d--)a.Va[d]&&(c.push(a.Va[d]),a.Va[d]=void 0);a.Va.splice(a.B+1);if(0<c.length)for(d={zb:0};d.zb<c.length;d={zb:d.zb},d.zb++)a.T.delay(function(a){return function(){return c[a.zb](b)}}(d),1)}}
function ej(a,b,c){var d=new C,e=d.promise,g=Error("history trace for "+c+": ");a.C.push({callback:b,resolve:d.resolve,reject:d.reject,trace:g});1==a.C.length&&gj(a);return e}function gj(a){if(0!=a.C.length){var b=a.C[0];try{var c=b.callback()}catch(d){c=Promise.reject(d)}c.then(function(a){b.resolve(a)},function(a){w().error("History","failed to execute a task:",a);b.trace&&(b.trace.message+=a,w().error("History",b.trace));b.reject(a)}).then(function(){a.C.splice(0,1);gj(a)})}}
function hj(a){var b=this;this.win=a;this.T=S(a);a=this.win.history;this.Wa=a.length-1;var c=cj(a);c&&void 0!==c["AMP.History"]&&(this.Wa=Math.min(c["AMP.History"],this.Wa));this.B=this.Wa;this.ea=null;this.vh="state"in a;this.ob=ij(this,this.B);if(a.pushState&&a.replaceState){this.Dc=a.originalPushState||a.pushState.bind(a);this.Lb=a.originalReplaceState||a.replaceState.bind(a);var d=function(a,c,d){b.ob=a;b.Dc(a,c,d||null)};var e=function(a,c,d){b.ob=a;void 0!==d?b.Lb(a,c,d):b.Lb(a,c)};a.originalPushState||
(a.originalPushState=this.Dc);a.originalReplaceState||(a.originalReplaceState=this.Lb)}else d=function(a){b.ob=a},e=function(a){b.ob=a};this.fh=d;this.Kc=e;try{this.Kc(ij(this,this.B,!0))}catch(g){w().error("History","Initial replaceState failed: "+g.message)}a.pushState=this.ff.bind(this);a.replaceState=this.yd.bind(this);this.Ic=function(){var a=jj(b),c=a?a["AMP.History"]:void 0,d=b.B,e=b.Zc;b.Zc=void 0;d>b.win.history.length-2&&(d=b.win.history.length-2,b.za(kj(a,{stackIndex:d})));d=void 0==c?
d+1:c<b.win.history.length?c:b.win.history.length-1;a||(a={});a["AMP.History"]=d;b.Kc(a,void 0,void 0);d!=b.B&&b.za(kj(a,{stackIndex:d}));d<b.Wa&&(b.Wa=d);e&&e.resolve()};this.win.addEventListener("popstate",this.Ic)}f=hj.prototype;f.cleanup=function(){this.Dc&&(this.win.history.pushState=this.Dc);this.Lb&&(this.win.history.replaceState=this.Lb);this.win.removeEventListener("popstate",this.Ic)};function ij(a,b,c){a=A(c?jj(a):void 0);a["AMP.History"]=b;return a}
f.setOnStateUpdated=function(a){this.ea=a};f.push=function(a){var b=this;return lj(this,function(){var c=kj(jj(b),a||{});b.ff(c,void 0,c.fragment?"#"+c.fragment:void 0);return Ta(function(){return kj(c,{stackIndex:b.B})})})};f.pop=function(a){var b=this;a=Math.max(a,this.Wa);return lj(this,function(){return mj(b,b.B-a+1)}).then(function(a){return kj(jj(b),{stackIndex:a})})};
f.replace=function(a){var b=this;a=void 0===a?{}:a;return lj(this,function(){var c=kj(jj(b),a||{}),d=(c.url||"").replace(/#.*/,""),e=c.fragment?"#"+c.fragment:"";b.yd(c,c.title,d||e?d+e:void 0);return Ta(function(){return kj(c,{stackIndex:b.B})})})};f.get=function(){var a=this;return Ta(function(){return kj(jj(a),{stackIndex:a.B})})};f.backTo=function(a){var b=this;a=Math.max(a,this.Wa);return lj(this,function(){return mj(b,b.B-a)})};function jj(a){return a.vh?cj(a.win.history):a.ob}
function lj(a,b){return a.Zc?a.Zc.promise.then(b,b):b()}function nj(a){var b=new C,c=b.resolve,d=b.reject;b=a.T.timeoutPromise(500,b.promise);a.Zc={promise:b,resolve:c,reject:d};return b}function mj(a,b){if(0>=b)return Promise.resolve(a.B);a.ob=ij(a,a.B-b);var c=nj(a);a.win.history.go(-b);return c.then(function(){return Promise.resolve(a.B)})}
f.ff=function(a,b,c){a||(a={});var d=this.B+1;a["AMP.History"]=d;this.fh(a,b,c);d!=this.win.history.length-1&&(d=this.win.history.length-1,a["AMP.History"]=d,this.Kc(a));a=kj(a,{stackIndex:d});this.za(a)};f.replaceStateForTarget=function(a){var b=this;lj(this,function(){b.win.removeEventListener("popstate",b.Ic);try{b.win.location.replace(a)}finally{b.win.addEventListener("popstate",b.Ic)}b.yd();return Promise.resolve()})};
f.yd=function(a,b,c){a||(a={});var d=Math.min(this.B,this.win.history.length-1);a["AMP.History"]=d;this.Kc(a,b,c);a=kj(a,{stackIndex:d});this.za(a)};f.za=function(a){a.stackIndex=Math.min(a.stackIndex,this.win.history.length-1);this.B!=a.stackIndex&&(this.B=a.stackIndex,this.ea&&this.ea(a))};f.getFragment=function(){var a=this.win.location.hash;a=a.substr(1);return Promise.resolve(a)};f.updateFragment=function(a){return this.replace({fragment:a})};
function kj(a,b){var c=Object.assign({},a&&a.data||{},b.data||{});return Object.assign({},a||{},b,{data:c})}function oj(a,b){var c=this;this.win=a;this.h=b;this.B=0;this.ea=null;this.zh=this.h.onMessage("historyPopped",function(a){void 0!==a.newStackIndex&&(a.stackIndex=a.newStackIndex);c.za(a)})}f=oj.prototype;f.replaceStateForTarget=function(a){this.win.location.replace(a)};f.cleanup=function(){this.zh()};f.setOnStateUpdated=function(a){this.ea=a};
f.push=function(a){var b=this,c=Object.assign({stackIndex:this.B+1},a||{});return this.h.sendMessageAwaitResponse("pushHistory",c).then(function(a){a=a||c;b.za(a);return a})};f.pop=function(a){var b=this;if(a>this.B)return this.get();a=B({stackIndex:this.B});return this.h.sendMessageAwaitResponse("popHistory",a).then(function(a){a=a||B({stackIndex:b.B-1});b.za(a);return a})};
f.replace=function(a){var b=this;if(a&&a.url){if(!this.h.hasCapability("fullReplaceHistory")){var c=B({stackIndex:this.B});return Promise.resolve(c)}var d=a.url.replace(/#.*/,"");a.url=d}var e=Object.assign({stackIndex:this.B},a||{});return this.h.sendMessageAwaitResponse("replaceHistory",e,!0).then(function(a){a=a||e;b.za(a);return a})};f.get=function(){return Promise.resolve({data:void 0,fragment:"",stackIndex:this.B,title:""})};
f.za=function(a){var b=a.stackIndex;this.B!=b&&(this.B=b,this.ea&&this.ea(a))};f.getFragment=function(){return this.h.hasCapability("fragment")?this.h.sendMessageAwaitResponse("getFragment",void 0,!0).then(function(a){if(!a)return"";"#"==a[0]&&(a=a.substr(1));return a}):Promise.resolve("")};f.updateFragment=function(a){return this.h.hasCapability("fragment")?this.h.sendMessageAwaitResponse("replaceHistory",B({fragment:a}),!0):Promise.resolve()};
function pj(a){var b=T(a);b.isOvertakeHistory()||a.win.AMP_TEST_IFRAME?b=new oj(a.win,b):(M(a.win,"global-history-binding",hj),b=O(a.win,"global-history-binding"));return new dj(a,b)};function qj(a){this.win=a;this.kg=this.$g.bind(this);this.lg=this.ah.bind(this);this.jd=this.Ke=this.kd=null;this.wd="ontouchstart"in a||void 0!==a.navigator.maxTouchPoints&&0<a.navigator.maxTouchPoints||void 0!==a.DocumentTouch;this.Fb=!1;this.win.document.addEventListener("keydown",this.kg);this.win.document.addEventListener("mousedown",this.lg);this.vd=!0;this.uf=0;this.xh=new X;this.vf=new X;this.Od=new X;this.wd&&(this.vd=!this.wd,this.kd=this.bh.bind(this),pf(a.document,"mousemove",this.kd))}
f=qj.prototype;f.isTouchDetected=function(){return this.wd};f.onTouchDetected=function(a,b){b&&a(this.isTouchDetected());return this.xh.add(a)};f.isMouseDetected=function(){return this.vd};f.onMouseDetected=function(a,b){b&&a(this.isMouseDetected());return this.vf.add(a)};f.isKeyboardActive=function(){return this.Fb};f.onKeyboardStateChanged=function(a,b){b&&a(this.isKeyboardActive());return this.Od.add(a)};
f.$g=function(a){this.Fb||a.defaultPrevented||(a=a.target,a&&("INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"OPTION"==a.tagName||a.hasAttribute("contenteditable")))||(this.Fb=!0,this.Od.fire(!0))};f.ah=function(){this.Fb&&(this.Fb=!1,this.Od.fire(!1))};
f.bh=function(a){var b=this;if(a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents)this.tf();else{this.jd||(this.jd=this.Xg.bind(this),this.Ke=this.tf.bind(this));var c,d=qf(this.win.document,function(a){c=a});return S(this.win).timeoutPromise(300,d).then(this.Ke,function(){c&&c();b.jd()})}};f.Xg=function(){this.vd=!0;this.vf.fire(!0)};f.tf=function(){this.uf++;3>=this.uf&&pf(this.win.document,"mousemove",this.kd)};function rj(a){this.U=a.navigator}f=rj.prototype;f.isAndroid=function(){return/Android/i.test(this.U.userAgent)};f.isIos=function(){return/iPhone|iPad|iPod/i.test(this.U.userAgent)};f.isSafari=function(){return/Safari/i.test(this.U.userAgent)&&!this.isChrome()&&!this.isIe()&&!this.isEdge()&&!this.isFirefox()&&!this.isOpera()};f.isChrome=function(){return/Chrome|CriOS/i.test(this.U.userAgent)&&!this.isEdge()&&!this.isOpera()};f.isFirefox=function(){return/Firefox|FxiOS/i.test(this.U.userAgent)&&!this.isEdge()};
f.isOpera=function(){return/OPR\/|Opera|OPiOS/i.test(this.U.userAgent)};f.isIe=function(){return/Trident|MSIE|IEMobile/i.test(this.U.userAgent)};f.isEdge=function(){return/Edge/i.test(this.U.userAgent)};f.isWebKit=function(){return/WebKit/i.test(this.U.userAgent)&&!this.isEdge()};f.isWindows=function(){return/Windows/i.test(this.U.userAgent)};f.isStandalone=function(){return this.isIos()&&this.U.standalone};f.isBot=function(){return/bot/i.test(this.U.userAgent)};
f.getMajorVersion=function(){return this.isSafari()?this.isIos()?this.getIosMajorVersion()||0:sj(this,/\sVersion\/(\d+)/,1):this.isChrome()?sj(this,/(Chrome|CriOS)\/(\d+)/,2):this.isFirefox()?sj(this,/(Firefox|FxiOS)\/(\d+)/,2):this.isOpera()?sj(this,/(OPR|Opera|OPiOS)\/(\d+)/,2):this.isIe()?sj(this,/MSIE\s(\d+)/,1):this.isEdge()?sj(this,/Edge\/(\d+)/,1):0};function sj(a,b,c){if(!a.U.userAgent)return 0;a=a.U.userAgent.match(b);return!a||c>=a.length?0:parseInt(a[c],10)}
f.getIosVersionString=function(){if(!this.U.userAgent||!this.isIos())return"";var a=this.U.userAgent.match(/OS ([0-9]+[_.][0-9]+([_.][0-9]+)?)\b/);return a?a=a[1].replace(/_/g,"."):""};f.getIosMajorVersion=function(){var a=this.getIosVersionString();return""==a?null:Number(a.split(".")[0])};function tj(a){this.H=a;this.Uf=Object.create(null)}tj.prototype.addTransition=function(a,b,c){var d=a+"|"+b;this.Uf[d]=c};tj.prototype.setState=function(a){var b=this.H;this.H=a;(a=this.Uf[b+"|"+a])&&a()};function uj(a){var b=6E4,c=this;this.win=a;this.eh=b;this.P=[];this.wf=new X;this.Qe=function(a){a.target&&1==a.target.nodeType&&vj(c,a.target)};this.Pe=function(){S(a).delay(function(){vj(c,c.win.document.activeElement)},500)};this.win.document.addEventListener("focus",this.Qe,!0);this.win.addEventListener("blur",this.Pe)}f=uj.prototype;f.Gh=function(){this.win.document.removeEventListener("focus",this.Qe,!0);this.win.removeEventListener("blur",this.Pe)};f.onFocus=function(a){return this.wf.add(a)};
function vj(a,b){var c=Date.now();0==a.P.length||a.P[a.P.length-1].el!=b?a.P.push({el:b,time:c}):a.P[a.P.length-1].time=c;a.purgeBefore(c-a.eh);a.wf.fire(b)}f.getLast=function(){return 0==this.P.length?null:this.P[this.P.length-1].el};f.purgeBefore=function(a){for(var b=this.P.length-1,c=0;c<this.P.length;c++)if(this.P[c].time>=a){b=c-1;break}-1!=b&&this.P.splice(0,b+1)};
f.hasDescendantsOf=function(a){this.win.document.activeElement&&vj(this,this.win.document.activeElement);for(var b=0;b<this.P.length;b++)if(a.contains(this.P[b].el))return!0;return!1};function wj(){this.J=[];this.Vb={};this.lf=this.mf=0}f=wj.prototype;f.getSize=function(){return this.J.length};f.getLastEnqueueTime=function(){return this.mf};f.getLastDequeueTime=function(){return this.lf};f.getTaskById=function(a){return this.Vb[a]||null};f.enqueue=function(a){this.J.push(a);this.Vb[a.id]=a;this.mf=Date.now()};f.dequeue=function(a){var b=this.removeAtIndex(a,this.J.indexOf(this.Vb[a.id]));if(!b)return!1;this.lf=Date.now();return!0};
f.peek=function(a,b){for(var c=1E6,d=null,e=0;e<this.J.length;e++){var g=this.J[e],h=a(g,b);h<c&&(c=h,d=g)}return d};f.forEach=function(a){this.J.forEach(a)};f.removeAtIndex=function(a,b){var c=this.Vb[a.id];if(!c||this.J[b]!=c)return!1;this.J.splice(b,1);delete this.Vb[a.id];return!0};f.purge=function(a){for(var b=this.J.length;b--;)a(this.J[b])&&this.removeAtIndex(this.J[b],b)};function xj(a){var b;return!(b||oe(a)).isIe()||yj(a)?null:new Promise(function(b){var c=Date.now()+2E3,e=a.setInterval(function(){var d=Date.now(),h=yj(a);if(h||d>c)a.clearInterval(e),b(),h||w().error("ie-media-bug","IE media never resolved")},10)})}function yj(a){var b="(min-width: "+(a.innerWidth-1)+"px)"+(" AND (max-width: "+(a.innerWidth+1)+"px)");try{return a.matchMedia(b).matches}catch(c){return w().error("ie-media-bug","IE matchMedia failed: ",c),!0}};function zj(a){var b=this;this.ampdoc=a;this.win=a.win;this.h=T(a);this.qa=this.h.isRuntimeOn();this.Kg=!1;this.sf=this.win.devicePixelRatio||1;this.mh=0;this.w=[];this.pg=this.ze=0;this.oa=this.h.isVisible();this.Ga=this.h.getPrerenderSize();this.ub=!1;this.$e=!0;this.Be=!1;this.Ea=-1;this.kb=!0;this.Rb=-1;this.Qd=this.rc=0;this.Gc=new Gh(this.win,function(){return b.doPass()});this.Hf=new Gh(this.win,function(){b.kb=!0;b.schedulePass()});this.wa=new wj;this.C=new wj;this.F=L(this.win,"layers");
var c;this.Le=c=this.F?this.rg.bind(this):this.sg.bind(this);this.la=[];this.xa=[];this.Hd=!1;this.I=re(this.ampdoc);this.o=qe(this.win);this.xe=new uj(this.win);this.we=!1;this.cc=0;this.gb=!1;this.Fc=[];this.cg=new tj(this.h.getVisibilityState());Aj(this,this.cg);this.I.onChanged(function(a){b.rc=Date.now();b.Qd=a.velocity;a.relayoutAll&&(b.kb=!0,b.gb=!0);b.schedulePass()});this.I.onScroll(function(){b.rc=Date.now()});this.F&&(this.eb=a=P(this.ampdoc,"layers"),a.onScroll(function(){b.schedulePass()}),
this.jg=this.qg.bind(this));this.h.onVisibilityChanged(function(){-1==b.Ea&&b.h.isVisible()&&(b.Ea=Date.now());b.schedulePass()});this.h.onRuntimeState(function(a){b.qa=a;b.schedulePass(1)});this.xe.onFocus(function(a){Bj(b,a)});this.schedulePass();this.rebuildDomWhenReady()}f=zj.prototype;
f.rebuildDomWhenReady=function(){var a=this;this.ampdoc.whenReady().then(function(){function b(){return a.Hf.schedule()}a.ub=!0;Cj(a);a.xa=null;var c=xj(a.win);c?c.then(b):b();Dj(a);Promise.race([rf(a.win),S(a.win).promise(3100)]).then(b);a.win.document.fonts&&"loaded"!=a.win.document.fonts.status&&a.win.document.fonts.ready.then(b)})};f.get=function(){return this.w.slice(0)};f.isRuntimeOn=function(){return this.qa};f.renderStarted=function(){this.ampdoc.signals().signal("render-start")};
f.getMeasuredResources=function(a,b){var c=this;return this.ampdoc.signals().whenSignal("ready-scan").then(function(){var b=[];c.w.forEach(function(d){d.hasBeenMeasured()||d.hostWin!=a||d.hasOwner()||b.push(Ej(c,d))});return Promise.all(b)}).then(function(){return c.w.filter(function(c){return c.hostWin==a&&!c.hasOwner()&&c.hasBeenMeasured()&&b(c)})})};
f.getResourcesInRect=function(a,b,c){return this.getMeasuredResources(a,function(a){return!a.isDisplayed()||!a.overlaps(b)&&!a.isFixed()||c&&!a.prerenderAllowed()?!1:!0})};function Dj(a){var b=O(a.win,"input");b.onTouchDetected(function(b){Fj(a,"amp-mode-touch",b)},!0);b.onMouseDetected(function(b){Fj(a,"amp-mode-mouse",b)},!0);b.onKeyboardStateChanged(function(b){Fj(a,"amp-mode-keyboard-active",b)},!0)}
function Fj(a,b,c){a.ampdoc.whenBodyAvailable().then(function(d){a.o.mutate(function(){d.classList.toggle(b,c)})})}f.getMaxDpr=function(){return this.sf};f.getDpr=function(){return this.sf};f.getResourceForElement=function(a){return W(a)};f.getResourceForElementOptional=function(a){return W(a)};f.getElementLayoutBox=function(a){var b=this,c=this.getResourceForElementOptional(a);return c?Ej(this,c):this.o.measurePromise(function(){return b.getViewport().getLayoutRect(a)})};
function Ej(a,b){return b.hasBeenMeasured()?Ta(function(){return b.getPageLayoutBox()}):a.o.measurePromise(function(){b.measure();return b.getPageLayoutBox()})}f.getViewport=function(){return this.I};f.getScrollDirection=function(){return Math.sign(this.Qd)||1};f.add=function(a){this.ze++;1==this.ze&&this.I.ensureReadyForElements();var b=W(a);b&&0!=b.getState()&&!a.reconstructWhenReparented()?b.requestMeasure():b=new zh(++this.mh,a,this);this.w.push(b);this.Hf.schedule(1E3)};
f.grantBuildPermission=function(){return 20>this.pg++||this.h.hasBeenVisible()};function Gj(a,b,c){c=void 0===c?!1:c;var d=void 0===d?!0:d;var e=a.qa||a.Kg,g="prerender"!=a.h.getVisibilityState()||b.prerenderAllowed();e&&g&&(a.ub?Hj(a,b,d):b.isBuilt()||b.isBuilding()||c&&a.xa.includes(b)||(a.xa.push(b),Cj(a,d)))}
function Cj(a,b){if(!a.Hd)try{a.Hd=!0;b=void 0===b?!0:b;b=void 0===b?!0:b;for(var c=0;c<a.xa.length;c++){var d=a.xa[c],e;if(!(e=a.ub))a:{var g=a.ampdoc.getRootNode(),h=d.element;do if(h.nextSibling){e=!0;break a}while((h=h.parentNode)&&h!=g);e=!1}e&&(a.xa.splice(c--,1),Hj(a,d,b))}}finally{a.Hd=!1}}function Hj(a,b,c){var d=b.build();d&&c&&d.then(function(){return a.schedulePass()},function(c){Ij(a,b);if(!yg(c))throw c;})}f.remove=function(a){(a=W(a))&&Ij(this,a)};
function Ij(a,b,c){var d=a.w.indexOf(b);-1!=d&&a.w.splice(d,1);b.isBuilt()&&b.pauseOnRemove();c&&b.disconnect();Jj(a,b,!0)}f.removeForChildWindow=function(a){var b=this,c=this.w.filter(function(b){return b.hostWin==a});c.forEach(function(a){return Ij(b,a,!0)})};f.upgraded=function(a){a=W(a);Gj(this,a)};f.setOwner=function(a,b){b.contains(a);W(a)&&W(a).updateOwner(b);a.__AMP__OWNER=b;a=a.getElementsByClassName("i-amphtml-element");for(b=0;b<a.length;b++){var c=a[b];W(c)&&W(c).updateOwner(void 0)}};
f.requireLayout=function(a,b){var c=this,d=[];Kj(this,a,function(a){4!=a.getState()&&(3!=a.getState()?d.push(a.whenBuilt().then(function(){a.measure();if(a.isDisplayed())return Lj(c,a,!0,b,!0),a.loadedOnce()})):a.isDisplayed()&&d.push(a.loadedOnce()))});return Promise.all(d)};f.scheduleLayout=function(a,b){Mj(this,W(a),!0,Nj(b))};f.schedulePause=function(a,b){var c=W(a);b=Nj(b);Oj(this,c,b,function(a){a.pause()})};f.scheduleResume=function(a,b){a=W(a);b=Nj(b);Oj(this,a,b,function(a){a.resume()})};
f.scheduleUnlayout=function(a,b){a=W(a);b=Nj(b);Oj(this,a,b,function(a){a.unlayout()})};f.schedulePreload=function(a,b){Mj(this,W(a),!1,Nj(b))};f.updateLayoutPriority=function(a,b){var c=W(a);c.updateLayoutPriority(b);this.C.forEach(function(a){a.resource==c&&(a.priority=b)});this.schedulePass()};f.updateInViewport=function(a,b,c){Pj(this,W(a),Nj(b),c)};f.changeSize=function(a,b,c,d,e){Qj(this,W(a),b,c,e,!0,d)};
f.attemptChangeSize=function(a,b,c,d){var e=this;return new Promise(function(g,h){Qj(e,W(a),b,c,d,!1,function(a){a?g():h(Error("changeSize attempt denied"))})})};f.measureElement=function(a){return this.o.measurePromise(a)};f.mutateElement=function(a,b){return this.measureMutateElement(a,null,b)};f.measureMutateElement=function(a,b,c){return this.F?Rj(this,a,b,c):Sj(this,a,b,c)};
function Sj(a,b,c,d){function e(){var c=a.I.getLayoutRect(b);return 0!=c.width&&0!=c.height?c.top:-1}var g=-1;return a.o.runPromise({measure:function(){c&&c();g=e()},mutate:function(){d();b.classList.contains("i-amphtml-element")&&W(b).requestMeasure();for(var c=b.getElementsByClassName("i-amphtml-element"),k=0;k<c.length;k++)W(c[k]).requestMeasure();-1!=g&&Tj(a,g);a.schedulePass(70);a.o.measure(function(){var b=e();-1!=b&&b!=g&&(Tj(a,b),a.schedulePass(70));a.gb=!0})}})}
function Rj(a,b,c,d){return a.o.runPromise({measure:c||void 0,mutate:function(){d();a.dirtyElement(b)}})}f.dirtyElement=function(a){if(this.F)this.eb.dirty(a);else{var b=a.classList.contains("i-amphtml-element");b&&(a=W(a),Tj(this,a.getLayoutBox().top));this.schedulePass(70,!b)}};f.attemptCollapse=function(a){var b=this;return new Promise(function(c,d){Qj(b,W(a),0,0,void 0,!1,function(b){b?(W(a).completeCollapse(),c()):d(Error("collapse attempt denied"))})})};
f.collapseElement=function(a){var b=this.I.getLayoutRect(a);a=W(a);0!=b.width&&0!=b.height&&Tj(this,b.top);a.completeCollapse();this.schedulePass(70)};f.expandElement=function(a){var b=W(a);b.completeExpand();(b=b.getOwner())&&b.expandedCallback(a);this.schedulePass(70)};f.schedulePass=function(a,b){b&&(this.kb=!0);return this.Gc.schedule(a)};f.schedulePassVsync=function(){var a=this;this.we||(this.we=!0,this.o.mutate(function(){return a.doPass()}))};f.ampInitComplete=function(){this.Be=!0;this.schedulePass()};
f.onNextPass=function(a){this.Fc.push(a)};
f.doPass=function(){var a=this;if(this.qa){this.oa=this.h.isVisible();this.Ga=this.h.getPrerenderSize();var b=this.ub&&this.$e;if(b){this.$e=!1;var c=this.win.document,d=R(this.ampdoc);this.h.sendMessage("documentLoaded",B({title:c.title,sourceUrl:qd(this.ampdoc.getUrl()),serverLayout:c.documentElement.hasAttribute("i-amphtml-element"),linkRels:d.linkRels,metaTags:d.metaTags}),!0);this.cc=this.I.getContentHeight();this.h.sendMessage("documentHeight",B({height:this.cc}),!0)}this.I.getSize();this.Gc.cancel();
this.we=!1;this.cg.setState(this.h.getVisibilityState());this.ub&&this.Be&&!this.ampdoc.signals().get("ready-scan")&&this.ampdoc.signals().signal("ready-scan");this.gb&&(this.gb=!1,this.o.measure(function(){var b=a.I.getContentHeight();b!=a.cc&&(a.h.sendMessage("documentHeight",B({height:b}),!0),a.cc=b,a.I.contentHeightChanged())}));for(c=0;c<this.Fc.length;c++)(0,this.Fc[c])();this.Fc.length=0}};
function Uj(a){var b=Date.now(),c=a.I.getRect(),d=c.height/10,e=c.height/10,g=.01>Math.abs(a.Qd)&&500<b-a.rc||1E3<b-a.rc;if(0<a.la.length){var h=a.la;a.la=[];var k=-1,l=[],m=0;for(b=0;b<h.length;b++){var n=h[b],t=n.resource,p=t.getLayoutBox(),x=0,v=0,F=0,J=0,G=p,Y=G.top,aa=G.bottom,y=void 0;n.marginChange&&(y=n.marginChange.newMargins,G=n.marginChange.currentMargins,void 0!=y.top&&(x=y.top-G.top),void 0!=y.bottom&&(v=y.bottom-G.bottom),void 0!=y.left&&(F=y.left-G.left),void 0!=y.right&&(J=y.right-
G.right),x&&(Y=p.top-G.top),v&&(aa=p.bottom+G.bottom));var K=n.newHeight-p.height,Z=n.newWidth-p.width,ha=!1;if(0!=K||0!=x||0!=v||0!=Z||0!=F||0!=J)if(n.force||!a.oa)ha=!0;else if(a.xe.hasDescendantsOf(t.element))ha=!0;else if(Y>=c.bottom-e||0==x&&p.bottom+Math.min(K,0)>=c.bottom-e)ha=!0;else if(1<c.top&&aa<=c.top+d){if(0>K&&c.top+m<-K)continue;g?(m+=K,l.push(n)):a.la.push(n);continue}else Vj(a,t,p)?ha=!0:0>K||0>x||0>v||n.resource.overflowCallback(!0,n.newHeight,n.newWidth,y);ha&&(0<=p.top&&(k=-1==
k?p.top:Math.min(k,p.top)),n.resource.changeSize(n.newHeight,n.newWidth,y),n.resource.overflowCallback(!1,n.newHeight,n.newWidth,y),a.gb=!0);n.callback&&n.callback(ha)}-1!=k&&Tj(a,k);0<l.length&&a.o.run({measure:function(b){b.scrollHeight=a.I.getScrollHeight();b.scrollTop=a.I.getScrollTop()},mutate:function(b){var c=-1;l.forEach(function(a){var b=a.resource.getLayoutBox();c=-1==c?b.top:Math.min(c,b.top);a.resource.changeSize(a.newHeight,a.newWidth,a.marginChange?a.marginChange.newMargins:void 0);
a.callback&&a.callback(!0)});-1!=c&&Tj(a,c);var d=a.I.getScrollHeight();d!=b.scrollHeight&&a.I.setScrollTop(b.scrollTop+(d-b.scrollHeight));a.gb=!0}},{})}}function Vj(a,b,c){var d,e=a.I.getContentHeight();a=Math.max(.85*e,e-1E3);var g=c||b.getLayoutBox(),h=d||b.getInitialLayoutBox();return g.bottom>=a||h.bottom>=a}function Tj(a,b){a.F?a.kb=!0:a.Rb=-1==a.Rb?b:Math.min(b,a.Rb)}
function Bj(a,b){var c=sb(b,function(a){return!!W(a)});if(c){b=W(c);var d=b.getPendingChangeSize();void 0!==d&&Qj(a,b,d.height,d.width,d.margins,!0)}}
function Wj(a){var b=Date.now(),c=a.kb;a.kb=!1;var d=a.Rb;a.Rb=-1;for(var e=0,g=0,h=0;h<a.w.length;h++){var k=a.w[h];0!=k.getState()||k.isBuilding()||Gj(a,k,!0);if(c||!k.hasBeenMeasured()||1==k.getState())k.applySizesAndMediaQuery(),e++;k.isMeasureRequested()&&g++}var l;if(0<e||0<g||c||-1!=d)for(h=0;h<a.w.length;h++)if(k=a.w[h],!k.hasOwner()||k.isMeasureRequested())if(c||1==k.getState()||!k.hasBeenMeasured()||k.isMeasureRequested()||-1!=d&&k.getLayoutBox().bottom>=d){var m=k.isDisplayed();k.measure();
m&&!k.isDisplayed()&&(l||(l=[]),l.push(k))}l&&a.o.mutate(function(){l.forEach(function(b){b.unload();Jj(a,b)})});d=a.I.getRect();var n=a.oa?ec(d,.25,2):0<a.Ga?ec(d,0,a.Ga-1):null;var t=a.oa?ec(d,.25,.25):d;for(d=0;d<a.w.length;d++)if(h=a.w[d],0!=h.getState()&&!h.hasOwner()){var p=a.oa&&h.isDisplayed()&&h.overlaps(t);h.setInViewport(p)}if(n)for(d=0;d<a.w.length;d++)h=a.w[d],2!=h.getState()||h.hasOwner()||h.isDisplayed()&&h.overlaps(n)&&Lj(a,h,!0);if(a.oa&&0==a.wa.getSize()&&0==a.C.getSize()&&b>a.wa.getLastDequeueTime()+
5E3){var x=0;for(b=0;b<a.w.length&&4>x;b++)d=a.w[b],2==d.getState()&&!d.hasOwner()&&d.isDisplayed()&&d.idleRenderOutsideViewport()&&(Lj(a,d,!1),x++);for(b=0;b<a.w.length&&4>x;b++)d=a.w[b],2==d.getState()&&!d.hasOwner()&&d.isDisplayed()&&(Lj(a,d,!1),x++)}}f.sg=function(a){var b=this.I.getRect(),c=a.resource.getLayoutBox(),d=Math.floor((c.top-b.top)/b.height);Math.sign(d)!=this.getScrollDirection()&&(d*=2);d=Math.abs(d);return 10*a.priority+d};
f.rg=function(a,b){var c=this.eb.iterateAncestry(a.resource.element,this.jg,b);return 10*a.priority+c};f.qg=function(a,b,c,d){var e=b.getId();if(Sa.call(d,e))return d[e];a=a||0;c=1+c/10;var g=b.isActiveUnsafe()?1:2;b=b.getHorizontalDistanceFromParent()+b.getVerticalDistanceFromParent();return d[e]=a+g*c*b};
function Xj(a,b){var c=Date.now();if(0==a.wa.getSize()){if(-1===a.Ea)return 0;var d=1E3*b.priority;return Math.max(d-(c-a.Ea),0)}var e=0;a.wa.forEach(function(a){e=Math.max(e,Math.max(1E3*(b.priority-a.priority),0)-(c-a.startTime))});return e}f.jh=function(a){this.C.getTaskById(a.id)||this.C.enqueue(a)};f.Qf=function(a,b,c){this.wa.dequeue(a);this.schedulePass(1E3);if(!b)return w().info("Resources","task failed:",a.id,a.resource.debugid,c),Promise.reject(c)};
function Qj(a,b,c,d,e,g,h){b.hasBeenMeasured()&&!e?Yj(a,b,c,d,void 0,g,h):a.o.measure(function(){b.hasBeenMeasured()||b.measure();if(e){var k=Xe(a.win,b.element);k={newMargins:e,currentMargins:{top:parseInt(k.marginTop,10)||0,right:parseInt(k.marginRight,10)||0,bottom:parseInt(k.marginBottom,10)||0,left:parseInt(k.marginLeft,10)||0}}}else k=void 0;var l=k;Yj(a,b,c,d,l,g,h)})}
function Yj(a,b,c,d,e,g,h){b.resetPendingChangeSize();var k=b.getPageLayoutBox();if(!(k=void 0!==c&&c!=k.height||void 0!==d&&d!=k.width)&&(k=void 0!==e)){k=e.currentMargins;var l=e.newMargins;k=void 0!==l.top&&l.top!=k.top||void 0!==l.right&&l.right!=k.right||void 0!==l.bottom&&l.bottom!=k.bottom||void 0!==l.left&&l.left!=k.left}if(k){k=null;for(l=0;l<a.la.length;l++)if(a.la[l].resource==b){k=a.la[l];break}k?(k.newHeight=c,k.newWidth=d,k.marginChange=e,k.force=g||k.force,k.callback=h):a.la.push({resource:b,
newHeight:c,newWidth:d,marginChange:e,force:g,callback:h});a.schedulePassVsync()}else void 0===c&&void 0===d&&void 0===e&&w().error("Resources","attempting to change size with undefined dimensions",b.debugid),h&&h(!0)}function Zj(a,b,c){return 0!=b.getState()&&b.isDisplayed()&&(a.oa||"prerender"==a.h.getVisibilityState()&&b.prerenderAllowed())&&(c||b.isInViewport()||b.renderOutsideViewport()||b.idleRenderOutsideViewport())?!0:!1}
function Lj(a,b,c,d,e){0!=b.getState()&&b.isDisplayed();var g=e||!1;Zj(a,b,g)&&(c?a.Ta(b,"L",0,d||0,g,b.startLayout.bind(b)):a.Ta(b,"P",2,d||0,g,b.startLayout.bind(b)))}function Mj(a,b,c,d){Oj(a,b,d,function(d){0==d.getState()?d.whenBuilt().then(function(){ak(a,d,c,b.getLayoutPriority())}):ak(a,d,c,b.getLayoutPriority())})}function ak(a,b,c,d){b.measure();2==b.getState()&&b.isDisplayed()&&Lj(a,b,c,d)}
f.Ta=function(a,b,c,d,e,g){b=a.getTaskId(b);a={id:b,resource:a,priority:Math.max(a.getLayoutPriority(),d)+c,forceOutsideViewport:e,callback:g,scheduleTime:Date.now(),startTime:0,promise:null};var h=this.C.getTaskById(b);if(!h||a.priority<h.priority)h&&this.C.dequeue(h),this.C.enqueue(a),this.schedulePass(Xj(this,a));a.resource.layoutScheduled(a.scheduleTime)};function Pj(a,b,c,d){var e=b.isInViewport()&&d;Oj(a,b,c,function(a){a.setInViewport(e)})}
function Oj(a,b,c,d){c.forEach(function(c){b.element.contains(c);Kj(a,c,d)})}function Kj(a,b,c){if(b.classList.contains("i-amphtml-element"))c(W(b)),(b=b.getPlaceholder())&&Kj(a,b,c);else{a=b.getElementsByClassName("i-amphtml-element");b=[];for(var d=0;d<a.length;d++){for(var e=a[d],g=!1,h=0;h<b.length;h++)if(b[h].contains(e)){g=!0;break}g||(b.push(e),c(W(e)))}}}
function Aj(a,b){function c(){a.w.forEach(function(a){return a.resume()});h()}function d(){a.w.forEach(function(b){b.unload();Jj(a,b)});a.unselectText()}function e(){a.w.forEach(function(a){return a.pause()})}function g(){}function h(){var b=a.I.getSize();if(0<b.height&&0<b.width){0<a.la.length&&Uj(a);Wj(a);b=Date.now();for(var c=-1,d=Object.create(null),e=a.C.peek(a.Le,d);e;){c=Xj(a,e);if(16<c)break;a.C.dequeue(e);(c=a.wa.getTaskById(e.id))?(e=a.jh.bind(a,e),c.promise.then(e,e)):(e.resource.measure(),
Zj(a,e.resource,e.forceOutsideViewport)?(e.promise=e.callback(),e.startTime=b,a.wa.enqueue(e),e.promise.then(a.Qf.bind(a,e,!0),a.Qf.bind(a,e,!1)).catch(wg)):e.resource.layoutCanceled());e=a.C.peek(a.Le,d);c=-1}0<=c?b=c:(b=2*(b-a.wa.getLastDequeueTime()),b=Math.max(Math.min(3E4,b),5E3));0<a.la.length&&(b=Math.min(b,500));a.oa&&a.schedulePass(b)}}var k="prerender",l="visible",m="hidden",n="paused",t="inactive";b.addTransition(k,k,h);b.addTransition(k,l,h);b.addTransition(k,m,h);b.addTransition(k,t,
h);b.addTransition(k,n,h);b.addTransition(l,l,h);b.addTransition(l,m,h);b.addTransition(l,t,d);b.addTransition(l,n,e);b.addTransition(m,l,h);b.addTransition(m,m,h);b.addTransition(m,t,d);b.addTransition(m,n,e);b.addTransition(t,l,c);b.addTransition(t,m,c);b.addTransition(t,t,g);b.addTransition(t,n,h);b.addTransition(n,l,c);b.addTransition(n,m,h);b.addTransition(n,t,d);b.addTransition(n,n,g)}f.unselectText=function(){try{this.win.getSelection().removeAllRanges()}catch(a){}};
function Jj(a,b,c){1==b.getState()&&(a.C.purge(function(a){return a.resource==b}),a.wa.purge(function(a){return a.resource==b}),eh(a.la,function(a){return a.resource===b}));if(0==b.getState()&&c&&a.xa){var d=a.xa.indexOf(b);-1!=d&&a.xa.splice(d,1)}}function Nj(a){return Aa(a)?a:[a]};var bk=["top","bottom","center"];
function ck(a,b){this.ampdoc=a;b=b?b.document.documentElement:a.getHeadNode();this.eg=Bd(b,"action");this.w=pe(a);this.I=re(a);a=this.eg;a.addGlobalTarget("AMP",this.handleAmpTarget.bind(this));a.addGlobalMethodHandler("hide",this.handleHide.bind(this));a.addGlobalMethodHandler("show",this.handleShow.bind(this));a.addGlobalMethodHandler("toggleVisibility",this.handleToggle.bind(this));a.addGlobalMethodHandler("scrollTo",this.handleScrollTo.bind(this));a.addGlobalMethodHandler("focus",this.handleFocus.bind(this));
a.addGlobalMethodHandler("toggleClass",this.handleToggleClass.bind(this))}ck.installInEmbedWindow=function(a,b){Td(a,"standard-actions",new ck(b,a))};f=ck.prototype;
f.handleAmpTarget=function(a){if(!a.satisfiesTrust(100))return null;var b=a.node,c=a.method,d=a.args,e=(b.ownerDocument||b).defaultView;switch(c){case "pushState":case "setState":return ie(b.nodeType===Node.DOCUMENT_NODE?b.documentElement:b).then(function(b){z(b,"AMP-BIND is not installed.");return b.invoke(a)});case "navigateTo":return this.handleNavigateTo(a);case "closeOrNavigateTo":return this.handleCloseOrNavigateTo(a);case "scrollTo":return z(d.id,"AMP.scrollTo must provide element ID"),a.node=
Rd(b).getElementById(d.id),this.handleScrollTo(a);case "goBack":return P(this.ampdoc,"history").goBack(),null;case "print":return e.print(),null;case "optoutOfCid":return Wd(this.ampdoc,"cid").then(function(a){return a.optOut()}).catch(function(a){w().error("STANDARD-ACTIONS","Failed to opt out of CID",a)})}throw u().createError("Unknown AMP action ",c);};
f.handleNavigateTo=function(a){var b=this,c=a.node,d=a.caller,e=a.method,g=a.args,h=(c.ownerDocument||c).defaultView;a=Promise.resolve();hb(d.tagName,"AMP-")&&(a=d.getImpl().then(function(a){"function"==typeof a.throwIfCannotNavigate&&a.throwIfCannotNavigate()}));return a.then(function(){P(b.ampdoc,"navigation").navigateTo(h,g.url,"AMP."+e,{target:g.target,opener:g.opener})},function(a){u().error("STANDARD-ACTIONS",a.message)})};
f.handleCloseOrNavigateTo=function(a){var b=a.node;b=(b.ownerDocument||b).defaultView;var c=b.parent!=b,d=b.opener&&this.ampdoc.isSingleDoc()&&!c,e=!1;d&&(b.close(),e=b.closed);return e?Promise.resolve():this.handleNavigateTo(a)};
f.handleScrollTo=function(a){if(!a.satisfiesTrust(100))return null;var b=a.node,c=a.args&&a.args.duration&&0<=a.args.duration?a.args.duration:500;a=a.args&&a.args.position&&bk.includes(a.args.position)?a.args.position:"top";return this.I.animateScrollIntoView(b,c,"ease-in",a)};f.handleFocus=function(a){if(!a.satisfiesTrust(100))return null;Lb(a.node);return null};
f.handleHide=function(a){var b=a.node;this.w.mutateElement(b,function(){b.classList.contains("i-amphtml-element")?b.collapse():We(b,!1)});return null};
f.handleShow=function(a){var b=a.node,c=b.ownerDocument.defaultView;if(b.classList.contains("i-amphtml-layout-nodisplay"))return u().warn("STANDARD-ACTIONS","Elements with layout=nodisplay cannot be dynamically shown.",b),null;qe(c).measure(function(){"none"!=Xe(c,b).display||b.hasAttribute("hidden")||u().warn("STANDARD-ACTIONS",'Elements can only be dynamically shown when they have the "hidden" attribute set or when they were dynamically hidden.',b)});var d=b.hasAttribute("autofocus")?b:b.querySelector("[autofocus]");
d&&oe(c).isIos()?dk(b,d):this.w.mutateElement(b,function(){dk(b,d)});return null};function dk(a,b){a.classList.contains("i-amphtml-element")?a.expand():We(a,!0);b&&Lb(b)}f.handleToggle=function(a){return a.node.hasAttribute("hidden")?this.handleShow(a):this.handleHide(a)};
f.handleToggleClass=function(a){if(!a.satisfiesTrust(100))return null;var b=a.node,c=a.args,d=u().assertString(c["class"],"Argument 'class' must be a string.");this.w.mutateElement(b,function(){if(void 0!==c.force){var a=u().assertBoolean(c.force,"Optional argument 'force' must be a boolean.");b.classList.toggle(d,a)}else b.classList.toggle(d)});return null};function sk(a,b,c){this.ampdoc=a;this.h=b;this.j=c;this.Ec=rd(this.ampdoc.win.location);this.Pc=null}f=sk.prototype;f.get=function(a){return tk(this).then(function(b){return b.get(a)})};f.set=function(a,b,c){return this.setNonBoolean(a,b,c)};f.setNonBoolean=function(a,b,c){return uk(this,function(d){return d.set(a,b,c)})};f.remove=function(a){return uk(this,function(b){return b.remove(a)})};
function tk(a){a.Pc||(a.Pc=a.j.loadBlob(a.Ec).then(function(a){return a?Qb(atob(a)):{}}).catch(function(a){w().expectedError("Storage","Failed to load store: ",a);return{}}).then(function(a){return new vk(a)}));return a.Pc}function uk(a,b){return tk(a).then(function(c){b(c);c=btoa(JSON.stringify(c.obj));return a.j.saveBlob(a.Ec,c)}).then(a.og.bind(a))}function wk(a){a.h.onBroadcast(function(b){"amp-storage-reset"==b.type&&b.origin==a.Ec&&(a.Pc=null)})}
f.og=function(){this.h.broadcast({type:"amp-storage-reset",origin:this.Ec})};function vk(a){var b;this.obj=Ob(a);this.Vg=b||8;this.Aa=this.obj.vv||Object.create(null);this.obj.vv||(this.obj.vv=this.Aa)}vk.prototype.get=function(a){return(a=this.Aa[a])?a.v:void 0};
vk.prototype.set=function(a,b,c){if(void 0!==this.Aa[a]){a=this.Aa[a];var d=Date.now();c&&(d=a.t);a.v=b;a.t=d}else this.Aa[a]=B({v:b,t:Date.now()});b=Object.keys(this.Aa);if(b.length>this.Vg){var e=Infinity,g=null;for(c=0;c<b.length;c++)a=this.Aa[b[c]],a.t<e&&(g=b[c],e=a.t);g&&delete this.Aa[g]}};vk.prototype.remove=function(a){delete this.Aa[a]};
function xk(a){this.win=a;try{if("localStorage"in this.win){this.win.localStorage.getItem("test");var b=!0}else b=!1}catch(c){b=!1}this.Kd=b;this.Kd||(a=Error("localStorage not supported."),w().expectedError("Storage",a))}xk.prototype.loadBlob=function(a){var b=this;return new Promise(function(c){b.Kd?c(b.win.localStorage.getItem("amp-store:"+a)):c(null)})};xk.prototype.saveBlob=function(a,b){var c=this;return new Promise(function(d){c.Kd&&c.win.localStorage.setItem("amp-store:"+a,b);d()})};
function yk(a){this.h=a}yk.prototype.loadBlob=function(a){return this.h.sendMessageAwaitResponse("loadStore",B({origin:a})).then(function(a){return a.blob})};yk.prototype.saveBlob=function(a,b){return this.h.sendMessageAwaitResponse("saveStore",B({origin:a,blob:b}))};function zk(a){N(a,"storage",function(){var b=T(a),c=parseInt(b.getParam("storage"),10),d=c?new yk(b):new xk(a.win);b=new sk(a,b,d);wk(b);return b},!0)};function Ak(a){this.win=a;this.lh=this.win.Promise.resolve();this.wh=0;this.nd={};this.oe=Date.now()}f=Ak.prototype;f.timeSinceStart=function(){return Date.now()-this.oe};f.delay=function(a,b){var c=this;if(!b){var d="p"+this.wh++;this.lh.then(function(){c.nd[d]?delete c.nd[d]:a()}).catch(wg);return d}return this.win.setTimeout(function(){try{a()}catch(e){throw wg(e),e;}},b)};f.cancel=function(a){"string"==typeof a?this.nd[a]=!0:this.win.clearTimeout(a)};
f.promise=function(a){var b=this;return new this.win.Promise(function(c){var d=b.delay(c,a);if(-1==d)throw Error("Failed to schedule timer.");})};f.timeoutPromise=function(a,b,c){function d(){e.cancel(g)}var e=this,g,h=new this.win.Promise(function(b,d){g=e.delay(function(){d(u().createError(c||"timeout"))},a);if(-1==g)throw Error("Failed to schedule timer.");});if(!b)return h;b.then(d,d);return this.win.Promise.race([h,b])};
f.poll=function(a,b){var c=this;return new this.win.Promise(function(d){var e=c.win.setInterval(function(){b()&&(c.win.clearInterval(e),d())},a)})};Ak.installInEmbedWindow=function(a){Td(a,"timer",new Ak(a))};function Bk(a,b){this.D=a;a=b||a.getRootNode();this.gg=(a.ownerDocument||a).createElement("a");this.$a=new Tc}Bk.installInEmbedWindow=function(a,b){Td(a,"url",new Bk(b,a.document))};f=Bk.prototype;f.parse=function(a,b){return fd(this.gg,a,b?null:this.$a)};f.isProtocolValid=function(a){return nd(a)};f.getSourceOrigin=function(a){return rd(a)};f.assertHttpsUrl=function(a,b,c){return kd(a,b,void 0===c?"source":c)};
f.assertAbsoluteHttpOrHttpsUrl=function(a){z(/^https?:/i.test(a),'URL must start with "http://" or "https://". Invalid value: %s',a);return I(a).href};f.isProxyOrigin=function(a){return md(a)};f.isSecure=function(a){return jd(this.parse(a))};f.getWinOrigin=function(a){return a.origin||this.parse(a.location.href).origin};function Ck(a,b,c){return rf(a).then(function(){return Dk(a,b,c)})}function Dk(a,b,c){var d=a.performance&&a.performance.timing;if(d&&0!=d.navigationStart){var e=void 0===c?d[b]:d[c]-d[b];if(Ca(e)&&!(0>e))return e}}function Ek(a,b){var c=a.performance&&a.performance.navigation;if(c&&void 0!==c[b])return c[b]}function Fk(a){this.ampdoc=a;this.Ha=Object.create(null);this.Fd=!1;Gk(this)}f=Fk.prototype;f.mc=function(){this.initialize();this.Fd=!0};f.initialize=function(){};
f.get=function(a){this.Fd||this.mc();return this.Ha[a]};f.set=function(a,b){this.Ha[a]=this.Ha[a]||{sync:void 0,async:void 0};this.Ha[a].sync=b;return this};f.setAsync=function(a,b){this.Ha[a]=this.Ha[a]||{sync:void 0,async:void 0};this.Ha[a].async=b;return this};f.setBoth=function(a,b,c){return this.set(a,b).setAsync(a,c)};f.getExpr=function(a,b){this.Fd||this.mc();var c=Object.assign({},this.Ha,a);return Hk(this,Object.keys(c),b)};
function Hk(a,b,c){Gk(a)&&(b=b.filter(function(b){return Gk(a).includes(b)}));c&&(b=b.filter(function(a){return c[a]}));if(0===b.length){var d=/_^/g;return d}b.sort(function(a,b){return b.length-a.length});var e="\\$?("+b.map(function(a){return"$"===a[0]?"\\"+a:a}).join("|")+")";return new RegExp(e,"g")}
function Gk(a){if(a.ue)return a.ue;var b=a.ampdoc.getRootNode().head;if(!b)return null;b=b.querySelector('meta[name="amp-allowed-url-macros"]');if(!b)return null;a.ue=b.getAttribute("content").split(",").map(function(a){return a.trim()});return a.ue};var Ik={ANCESTOR_ORIGIN:!0};function Jk(a,b,c,d,e,g){this.ga=a;this.qb=b;this.Se=c;this.mb=d;this.dg=e;this.Bg=!g}Jk.prototype.expand=function(a){if(!a.length)return this.mb?a:Promise.resolve(a);var b=this.ga.getExpr(this.qb,this.dg);b=Kk(a,b);return b.length?Lk(this,a,b):this.mb?a:Promise.resolve(a)};Jk.prototype.getMacroNames=function(a){var b=this.ga.getExpr(this.qb,this.dg);return(a=a.match(b))?a:[]};
function Kk(a,b){var c=[];a.replace(b,function(a,b,g){a=a.length;var d=a+g-1;c.push({start:g,stop:d,name:b,length:a})});return c}
function Lk(a,b,c){function d(t){for(var p="",x=[];g<b.length&&h<=c.length;){if(k&&g===k.start){var v=void 0;v=a.qb&&Sa.call(a.qb,k.name)?{name:k.name,prioritized:a.qb[k.name],encode:t}:Object.assign({},a.ga.get(k.name),{name:k.name,encode:t});g=k.stop+1;k=c[++h];"("===b[g]?(g++,l++,e.push(v),p.trim().length&&x.push(p),x.push(d(!1))):(p.length&&x.push(p),x.push(Mk(a,v)));p=""}else{if("`"===b[g])m?m=!1:(n=m=!0,z(""===p.trim(),'The substring "'+p+'" was lost during url-replacement. Please ensure the url syntax is correct'),
p="");else if(l&&","===b[g]&&!m){if(p.length){var F=n?p:p.trim();x.push(F);n=!1}","===b[g+1]&&(x.push(""),g++);p=""}else{if(l&&")"===b[g]&&!m)return g++,l--,v=e.pop(),x.push(n?p:p.trim()),n=!1,Mk(a,v,x);p+=b[g]}g++}g===b.length&&p.length&&x.push(p)}return a.mb?x.join(""):Promise.all(x).then(function(a){return a.join("")}).catch(function(a){Oa(a);return""})}var e=[],g=0,h=0,k=c[h],l=0,m=!1,n=!1;return d(a.Bg)}
function Mk(a,b,c){var d=b,e=d.encode;d=d.name;if(Sa.call(b,"prioritized"))var g=b.prioritized;else a.mb&&Sa.call(b,"sync")?g=b.sync:a.mb?(u().error("Expander","ignoring async replacement key: ",b.name),g=""):g=b.async||b.sync;var h=e&&!Ik[d];return a.mb?(a=Nk(a,g,d,c),h?encodeURIComponent(a):a):Ok(a,g,d,c).then(function(a){return h?encodeURIComponent(a):a})}
function Ok(a,b,c,d){try{var e="function"===typeof b?d?Promise.all(d).then(function(a){return b.apply(null,a)}):Ta(b):Promise.resolve(b);return e.then(function(b){Pk(a,c,b,d);return null==b?"":b}).catch(function(b){Oa(b);Pk(a,c,"",d);return Promise.resolve("")})}catch(g){return Oa(g),Pk(a,c,"",d),Promise.resolve("")}}
function Nk(a,b,c,d){try{var e="function"===typeof b?b.apply(null,d):b;if(e&&e.then){u().error("Expander","ignoring async macro resolution");var g=""}else"string"===typeof e||"number"===typeof e||"boolean"===typeof e?(Pk(a,c,e,d),g=e.toString()):(Pk(a,c,"",d),g="");return g}catch(h){return Oa(h),Pk(a,c,"",d),""}}function Pk(a,b,c,d){if(a.Se){var e="";if(d){var g=d.filter(function(a){return""!==a}).join(",");e="("+g+")"}a.Se[""+b+e]=c||""}};function Qk(a){return function(){return(new Date)[a]()}}function Rk(a,b){return function(){return a[b]}}function Sk(a){Fk.call(this,a);this.me=null}na(Sk,Fk);function Tk(a,b,c,d){a.setBoth(b,function(){return Dk(a.ampdoc.win,c,d)},function(){return Ck(a.ampdoc.win,c,d)})}
Sk.prototype.initialize=function(){function a(){var a=R(b.ampdoc);return ld(Uk(b,a.sourceUrl))}var b=this,c=this.ampdoc.win,d=this.ampdoc.getHeadNode(),e=re(this.ampdoc);this.set("RANDOM",function(){return Math.random()});var g=Object.create(null);this.set("COUNTER",function(a){return g[a]=(g[a]|0)+1});this.set("CANONICAL_URL",function(){return R(b.ampdoc).canonicalUrl});this.set("CANONICAL_HOST",function(){return I(R(b.ampdoc).canonicalUrl).host});this.set("CANONICAL_HOSTNAME",function(){return I(R(b.ampdoc).canonicalUrl).hostname});
this.set("CANONICAL_PATH",function(){return I(R(b.ampdoc).canonicalUrl).pathname});this.setAsync("DOCUMENT_REFERRER",function(){return T(b.ampdoc).getReferrerUrl()});this.setAsync("EXTERNAL_REFERRER",function(){return T(b.ampdoc).getReferrerUrl().then(function(a){if(!a)return null;var b=I(qd(a)).hostname,d=c.location.hostname;return b===d?null:a})});this.set("TITLE",function(){var a=c.document;return a.originalTitle||a.title});this.set("AMPDOC_URL",function(){return ld(Uk(b,c.location.href))});this.set("AMPDOC_HOST",
function(){var a=I(c.location.href);return a&&a.host});this.set("AMPDOC_HOSTNAME",function(){var a=I(c.location.href);return a&&a.hostname});this.setBoth("SOURCE_URL",function(){return a()},function(){return ve().then(function(){return a()})});this.set("SOURCE_HOST",function(){return I(R(b.ampdoc).sourceUrl).host});this.set("SOURCE_HOSTNAME",function(){return I(R(b.ampdoc).sourceUrl).hostname});this.set("SOURCE_PATH",function(){return I(R(b.ampdoc).sourceUrl).pathname});this.set("PAGE_VIEW_ID",function(){return R(b.ampdoc).pageViewId});
this.setBoth("QUERY_PARAM",function(a,c){return Vk(b,a,void 0===c?"":c)},function(a,c){c=void 0===c?"":c;return ve().then(function(){return Vk(b,a,c)})});this.setAsync("FRAGMENT_PARAM",Wk(this,"fragmentParam","FRAGMENT_PARAM"));this.setAsync("ANCESTOR_ORIGIN",Wk(this,"ancestorOrigin","ANCESTOR_ORIGIN"));var h=null;this.setBoth("CLIENT_ID",function(a){return h?h[a]:null},function(a,c,e){u().assertString(a,"The first argument to CLIENT_ID, the fallback Cookie name, is required");if("inabox"==r().runtime)return Promise.resolve(null);
var g=Promise.resolve();c&&(g=fe(d,"userNotificationManager","amp-user-notification").then(function(a){return a.get(c)}));return Wd(b.ampdoc,"cid").then(function(b){return b.get({scope:a,createCookieIfNotPresent:!0,cookieName:e},g)}).then(function(b){h||(h=Object.create(null));var c=e||a;b&&"_ga"==c&&("string"===typeof b?b=b.replace(/^(GA1|1)\.[\d-]+\./,""):w().error("UrlReplacements","non-string cid, what is it?",Object.keys(b)));return h[a]=b})});this.setAsync("VARIANT",function(a){return Xk(b,
function(b){var c=b[a];z(void 0!==c,"The value passed to VARIANT() is not a valid experiment name:"+a);return null===c?"none":c},"VARIANT")});this.setAsync("VARIANTS",function(){return Xk(b,function(a){var b=[],c;for(c in a)b.push(c+"."+(a[c]||"none"));return b.join("!")},"VARIANTS")});this.setAsync("AMP_GEO",function(a){return Yk(b,function(b){return a?(z("ISOCountry"===a,"The value passed to AMP_GEO() is not valid name:"+a),b[a]||"unknown"):b.matchedISOCountryGroups.join(",")})});this.setAsync("SHARE_TRACKING_INCOMING",
function(){return Zk(b,function(a){return a.incomingFragment},"SHARE_TRACKING_INCOMING")});this.setAsync("SHARE_TRACKING_OUTGOING",function(){return Zk(b,function(a){return a.outgoingFragment},"SHARE_TRACKING_OUTGOING")});this.set("TIMESTAMP",Qk("getTime"));this.set("TIMESTAMP_ISO",Qk("toISOString"));this.set("TIMEZONE",Qk("getTimezoneOffset"));this.set("TIMEZONE_CODE",function(){if("Intl"in c&&"DateTimeFormat"in c.Intl)var a=(new Intl.DateTimeFormat).resolvedOptions().timeZone;return a||""});this.set("SCROLL_TOP",
function(){return e.getScrollTop()});this.set("SCROLL_LEFT",function(){return e.getScrollLeft()});this.set("SCROLL_HEIGHT",function(){return e.getScrollHeight()});this.set("SCROLL_WIDTH",function(){return e.getScrollWidth()});this.set("VIEWPORT_HEIGHT",function(){return e.getHeight()});this.set("VIEWPORT_WIDTH",function(){return e.getWidth()});var k=c.screen;this.set("SCREEN_WIDTH",Rk(k,"width"));this.set("SCREEN_HEIGHT",Rk(k,"height"));this.set("AVAILABLE_SCREEN_HEIGHT",Rk(k,"availHeight"));this.set("AVAILABLE_SCREEN_WIDTH",
Rk(k,"availWidth"));this.set("SCREEN_COLOR_DEPTH",Rk(k,"colorDepth"));this.set("DOCUMENT_CHARSET",function(){var a=c.document;return a.characterSet||a.charset});this.set("BROWSER_LANGUAGE",function(){var a=c.navigator;return(a.language||a.userLanguage||a.browserLanguage||"").toLowerCase()});this.set("USER_AGENT",function(){return c.navigator.userAgent});Tk(this,"PAGE_LOAD_TIME","navigationStart","loadEventStart");Tk(this,"DOMAIN_LOOKUP_TIME","domainLookupStart","domainLookupEnd");Tk(this,"TCP_CONNECT_TIME",
"connectStart","connectEnd");Tk(this,"SERVER_RESPONSE_TIME","requestStart","responseStart");Tk(this,"PAGE_DOWNLOAD_TIME","responseStart","responseEnd");Tk(this,"REDIRECT_TIME","navigationStart","fetchStart");Tk(this,"DOM_INTERACTIVE_TIME","navigationStart","domInteractive");Tk(this,"CONTENT_LOAD_TIME","navigationStart","domContentLoadedEventStart");this.setAsync("ACCESS_READER_ID",function(){return $k(b,function(a){return a.getAccessReaderId()},"ACCESS_READER_ID")});this.setAsync("AUTHDATA",function(a){z(a,
"The first argument to AUTHDATA, the field, is required");return $k(b,function(b){return b.getAuthdataField(a)},"AUTHDATA")});this.setAsync("VIEWER",function(){return T(b.ampdoc).getViewerOrigin().then(function(a){return void 0==a?"":a})});this.setAsync("TOTAL_ENGAGED_TIME",function(){return fe(d,"activity","amp-analytics").then(function(a){return a.getTotalEngagedTime()})});this.setAsync("INCREMENTAL_ENGAGED_TIME",function(a,b){return fe(d,"activity","amp-analytics").then(function(c){return c.getIncrementalEngagedTime(a,
"false"!==b)})});this.set("NAV_TIMING",function(a,b){z(a,"The first argument to NAV_TIMING, the start attribute name, is required");return Dk(c,a,b)});this.setAsync("NAV_TIMING",function(a,b){z(a,"The first argument to NAV_TIMING, the start attribute name, is required");return Ck(c,a,b)});this.set("NAV_TYPE",function(){return Ek(c,"type")});this.set("NAV_REDIRECT_COUNT",function(){return Ek(c,"redirectCount")});this.set("AMP_VERSION",function(){return"1903070012530"});this.set("BACKGROUND_STATE",
function(){return T(b.ampdoc).isVisible()?"0":"1"});this.setAsync("VIDEO_STATE",function(a,c){var d=b.ampdoc.getRootNode(),e=u().assertElement(d.getElementById(a),'Could not find an element with id="'+a+'" for VIDEO_STATE');return P(b.ampdoc,"video-manager").getAnalyticsDetails(e).then(function(a){return a?a[c]:""})});this.setAsync("STORY_PAGE_INDEX",al(this,"pageIndex","STORY_PAGE_INDEX"));this.setAsync("STORY_PAGE_ID",al(this,"pageId","STORY_PAGE_ID"));this.setAsync("FIRST_CONTENTFUL_PAINT",function(){return Ta(function(){return ne(c).getFirstContentfulPaint()})});
this.setAsync("FIRST_VIEWPORT_READY",function(){return Ta(function(){return ne(c).getFirstViewportReady()})});this.setAsync("MAKE_BODY_VISIBLE",function(){return Ta(function(){return ne(c).getMakeBodyVisible()})});this.setAsync("AMP_STATE",function(a){return ie(c.document.documentElement).then(function(b){return b?b.getStateValue(a):""})})};
function Uk(a,b){if(a=R(a.ampdoc).replaceParams){var c=od(b),d=I(c);d=q(d.search);for(var e=B({}),g=Object.keys(a),h=0;h<g.length;h++)Sa.call(d,g[h])||(e[g[h]]=a[g[h]]);a=hd(c,e)}else a=b;return a}function $k(a,b,c){a=a.ampdoc.getHeadNode();return Promise.all([ge(a,"access","amp-access"),ge(a,"subscriptions","amp-subscriptions")]).then(function(a){a=a[0]||a[1];return a?b(a):(u().error("UrlReplacements","Access or subsciptions service is not installed to access: ",c),null)})}
function Vk(a,b,c){z(b,"The first argument to QUERY_PARAM, the query string param is required");var d=I(od(a.ampdoc.win.location.href));d=q(d.search);b=u().assertString(b);a=R(a.ampdoc).replaceParams;return"undefined"!==typeof d[b]?d[b]:a&&"undefined"!==typeof a[b]?a[b]:c}function Xk(a,b,c){return ge(a.ampdoc.getHeadNode(),"variant","amp-experiment",!0).then(function(a){z(a,"To use variable %s, amp-experiment should be configured",c);return a.getVariants()}).then(function(a){return b(a)})}
function Yk(a,b){a=a.ampdoc.getHeadNode();return ge(a,"geo","amp-geo",!0).then(function(a){z(a,"To use variable %s, amp-geo should be configured","AMP_GEO");return b(a)})}function Zk(a,b,c){a.me||(a.me=de(a.ampdoc.win,"share-tracking","amp-share-tracking"));return a.me.then(function(a){z(a,"To use variable %s, amp-share-tracking should be configured",c);return b(a)})}
function al(a,b,c){return function(){return de(a.ampdoc.win,"story-variable","amp-story").then(function(a){z(a,"To use variable %s amp-story should be configured",c);return a[b]})}}function Wk(a,b,c){return function(d,e){e=void 0===e?"":e;return de(a.ampdoc.win,"viewer-integration-variable","amp-viewer-integration").then(function(a){z(a,"To use variable %s amp-viewer-integration must be installed",c);return a[b](d,e)})}}function bl(a,b){this.ampdoc=a;this.ga=b}f=bl.prototype;
f.expandStringSync=function(a,b,c,d){return(new Jk(this.ga,b,c,!0,d,!0)).expand(a)};f.expandStringAsync=function(a,b,c){return(new Jk(this.ga,b,void 0,void 0,c,!0)).expand(a)};f.expandUrlSync=function(a,b,c,d){return cl(a,(new Jk(this.ga,b,c,!0,d)).expand(a))};f.expandUrlAsync=function(a,b,c){return(new Jk(this.ga,b,void 0,void 0,c)).expand(a).then(function(b){return cl(a,b)})};f.expandInputValueAsync=function(a){return dl(this,a,!1)};f.expandInputValueSync=function(a){return dl(this,a,!0)};
function dl(a,b,c){"INPUT"==b.tagName&&b.getAttribute("type");var d=el(b);if(!d)return c?b.value:Promise.resolve(b.value);void 0===b["amp-original-value"]&&(b["amp-original-value"]=b.value);a=(new Jk(a.ga,void 0,void 0,c,d)).expand(b["amp-original-value"]||b.value);return c?b.value=a:a.then(function(a){return b.value=a})}
function el(a,b){if(a=a.getAttribute("data-amp-replace")){var c={};a.trim().split(/\s+/).forEach(function(a){!b||Sa.call(b,a)?c[a]=!0:u().warn("URL","Ignoring unsupported replacement",a)});return c}}
f.maybeExpandLink=function(a,b){var c={CLIENT_ID:!0,QUERY_PARAM:!0,PAGE_VIEW_ID:!0,NAV_TIMING:!0},d=a.getAttribute("data-amp-addparams")||"",e=el(a,c);if(e||d||b){var g=a["amp-original-href"]||a.getAttribute("href"),h=I(g);null==a["amp-original-href"]&&(a["amp-original-href"]=g);d&&(g=hd(g,q(d)));a:{var k=R(this.ampdoc);if(h.origin==I(k.canonicalUrl).origin||h.origin==I(k.sourceUrl).origin)h=!0;else{if((k=this.ampdoc.getRootNode().querySelector("meta[name=amp-link-variable-allowed-origin]"))&&k.hasAttribute("content")){k=
k.getAttribute("content").trim().split(/\s+/);for(var l=0;l<k.length;l++)if(h.origin==I(k[l]).origin){h=!0;break a}}h=!1}}var m=h;if(!m)return e&&u().warn("URL","Ignoring link replacement",g," because the link does not go to the document's source, canonical, or whitelisted origin."),a.href=g;if(b){if(!e||!e.QUERY_PARAM){var n={QUERY_PARAM:!0};b=this.expandUrlSync(b,void 0,void 0,n)}g=hd(g,q(b))}e&&(g=this.expandUrlSync(g,void 0,void 0,e));return a.href=g}};
f.collectVars=function(a,b){var c=Object.create(null);return(new Jk(this.ga,b,c)).expand(a).then(function(){return c})};f.collectUnwhitelistedVarsSync=function(a){var b=a.getAttribute("src"),c=(new Jk(this.ga)).getMacroNames(b),d=el(a);return d?c.filter(function(a){return!d[a]}):c};function cl(a,b){var c=I(b,!0).protocol,d=I(a,!0).protocol;if(c!=d)return u().error("UrlReplacements","Illegal replacement of the protocol: ",a),a;z(nd(b),"The replacement url has invalid protocol: %s",b);return b}
f.getVariableSource=function(){return this.ga};function fl(a){N(a,"url-replace",function(a){return new bl(a,new Sk(a))})};var gl=/^(https?:\/\/)((www[0-9]*|web|ftp|wap|home|mobile|amp|m)\.)+/i,hl=[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/];
function il(a,b){var c=this;this.ampdoc=a;this.win=a.win;this.Cb=Mb(this.win);this.tb=O(this.win,"documentState");this.qa=!0;this.ee=!1;this.bg=this.Yc="visible";this.Ga=1;this.Wd=A();this.wc=A();this.Kf=new X;this.Yb=new X;this.Me=new X;this.xc=this.hb=null;this.ib=[];this.N={};this.yb={};this.pf=this.Ea=this.Cc=this.Bc=null;a=new C;this.Eh=a.promise;this.Fh=a.resolve;b?Object.assign(this.N,b):(this.win.name&&0==this.win.name.indexOf("__AMP__")&&jl(this.win.name.substring(7),this.N),this.win.location.hash&&
(jl(this.win.location.hash,this.yb),Object.assign(this.N,this.yb)));this.qa=!parseInt(this.N.off,10);this.ee=!(!parseInt(this.N.history,10)&&!this.ee);kl(this,this.N.visibilityState);this.Ga=parseInt(this.N.prerenderSize,10)||this.Ga;this.Bb=null;this.Qg=md(I(this.ampdoc.win.location.href));this.ud=this.isVisible();this.tb.onVisibilityChanged(this.Gf.bind(this));var d=new C;this.Wg=d.resolve;this.Ra=ll(this,d.promise);this.ve=this.Nd=null;this.Sc=this.isEmbedded()&&"referrer"in this.N&&!1!==ml(this)?
this.N.referrer:this.win.document.referrer;this.hh=new Promise(function(a){c.isEmbedded()&&"referrer"in c.N?c.isTrustedViewer().then(function(b){b?a(c.N.referrer):(a(c.win.document.referrer),c.Sc!=c.win.document.referrer&&(w().expectedError("Viewer","Untrusted viewer referrer override: "+c.Sc+" at "+c.xc),c.Sc=c.win.document.referrer))}):a(c.win.document.referrer)});this.Mc=ld(this.win.location.href||"");this.Dh=new Promise(function(a){var b=c.N.viewerUrl;c.isEmbedded()&&b?c.isTrustedViewer().then(function(d){d?
c.Mc=b:w().expectedError("Viewer","Untrusted viewer url override: "+b+" at "+c.xc);a(c.Mc)}):a(c.Mc)});this.N.click&&(a=ld(this.win.location.href),a!=this.win.location.href&&this.win.history.replaceState&&(this.win.location.originalHash||(this.win.location.originalHash=this.win.location.hash),this.win.history.replaceState({},"",a),delete this.yb.click));this.Gf();nl(this);this.whenFirstVisible().then(function(){c.maybeUpdateFragmentForCct()})}
function ll(a,b){var c=!(!(a.Cb&&!a.win.AMP_TEST_IFRAME&&(a.N.origin||a.N.visibilityState||-1!=a.win.location.search.indexOf("amp_js_v"))||a.isWebviewEmbedded()||a.isCctEmbedded())&&a.ampdoc.isSingleDoc());return c?S(a.win).timeoutPromise(2E4,b).catch(function(a){a=ol(a);wg(a);throw a;}):null}function nl(a){if(a.isVisible()){var b=Date.now();a.Ea||(a.Ea=b);a.pf=b;a.ud=!0;a.Fh();a.Cc&&(a.Cc(),a.Cc=null,a.Bc=null)}a.Yb.fire()}f=il.prototype;f.getParam=function(a){return this.N[a]};
f.hasCapability=function(a){var b=this.N.cap;return b?-1!=b.split(",").indexOf(a):!1};f.isEmbedded=function(){return!!this.Ra};f.isWebviewEmbedded=function(){return!this.Cb&&"1"==this.N.webview};f.isCctEmbedded=function(){if(null!=this.Bb)return this.Bb;this.Bb=!1;if(!this.Cb){var a=q(this.win.location.search);this.Bb="1"===a.amp_gsa&&hb(a.amp_js_v||"","a")}return this.Bb};f.isProxyOrigin=function(){return this.Qg};
f.maybeUpdateFragmentForCct=function(){if(this.isCctEmbedded()&&this.win.history.replaceState){var a=rd(this.win.location.href),b=R(this.ampdoc).canonicalUrl,c=rd(b);pl(a,c)&&(this.yb.ampshare=b,this.win.history.replaceState({},"","#"+id(this.yb)))}};function pl(a,b){function c(a){return 2<a.split(".").length?a.replace(gl,"$1"):a}return c(a)==c(b)}f.isRuntimeOn=function(){return this.qa};f.toggleRuntime=function(){this.qa=!this.qa;this.Kf.fire(this.qa)};f.onRuntimeState=function(a){return this.Kf.add(a)};
f.isOvertakeHistory=function(){return this.ee};f.getVisibilityState=function(){return this.Yc};f.Gf=function(){kl(this,this.bg)};function kl(a,b){if(b){var c=a.Yc;b=w().assertEnumValue(Ff,b,"VisibilityState");"hidden"===b&&(b=a.ud?"inactive":"prerender");a.bg=b;!a.tb.isHidden()||"visible"!==b&&"paused"!==b||(b="hidden");a.Yc=b;c!==b&&nl(a)}}f.isVisible=function(){return"visible"==this.getVisibilityState()};f.hasBeenVisible=function(){return this.ud};f.whenFirstVisible=function(){return this.Eh};
f.whenNextVisible=function(){if(this.isVisible())return Promise.resolve();if(this.Bc)return this.Bc;var a=new C;this.Cc=a.resolve;return this.Bc=a.promise};f.getFirstVisibleTime=function(){return this.Ea};f.getLastVisibleTime=function(){return this.pf};f.getPrerenderSize=function(){return this.Ga};f.getResolvedViewerUrl=function(){return this.Mc};f.getViewerUrl=function(){return this.Dh};f.maybeGetMessagingOrigin=function(){return this.xc};f.getUnconfirmedReferrerUrl=function(){return this.Sc};
f.getReferrerUrl=function(){return this.hh};f.isTrustedViewer=function(){if(!this.Nd){var a=ml(this);this.Nd=void 0!==a?Promise.resolve(a):this.Ra.then(function(a){return a?ql(a):!1})}return this.Nd};function ml(a){if(!a.isEmbedded())return!1;if(a.win.location.ancestorOrigins&&!a.isWebviewEmbedded()&&!a.isCctEmbedded())return 0<a.win.location.ancestorOrigins.length&&ql(a.win.location.ancestorOrigins[0])}
f.getViewerOrigin=function(){if(!this.ve){var a;this.isEmbedded()?this.win.location.ancestorOrigins&&0<this.win.location.ancestorOrigins.length&&(a=this.win.location.ancestorOrigins[0]):a="";this.ve=void 0!==a?Promise.resolve(a):S(this.win).timeoutPromise(1E3,this.Ra).catch(function(){return""})}return this.ve};function ql(a){var b=I(a);a=b.protocol;return"x-thread:"==a?!0:"https:"!=a?!1:hl.some(function(a){return a.test(b.hostname)})}f.onVisibilityChanged=function(a){return this.Yb.add(a)};
f.onMessage=function(a,b){var c=this.Wd[a];c||(c=new X,this.Wd[a]=c);return c.add(b)};f.onMessageRespond=function(a,b){var c=this;this.wc[a]=b;return function(){c.wc[a]===b&&delete c.wc[a]}};f.receiveMessage=function(a,b){if("visibilitychange"==a)return void 0!==b.prerenderSize&&(this.Ga=b.prerenderSize),kl(this,b.state),Promise.resolve();if("broadcast"==a)return this.Me.fire(b),Promise.resolve();var c=this.Wd[a];c&&c.fire(b);if(a=this.wc[a])return a(b);if(c)return Promise.resolve()};
f.setMessageDeliverer=function(a,b){var c=this;if(this.hb)throw Error("message channel can only be initialized once");if(null==b)throw Error("message channel must have an origin");this.hb=a;this.xc=b;this.Wg(b);0<this.ib.length&&(b=this.ib.slice(0),this.ib=[],b.forEach(function(a){var b=c.hb(a.eventType,a.data,a.awaitResponse);a.awaitResponse&&a.responseResolver(b)}))};f.sendMessage=function(a,b,c){c=void 0===c?!1:c;rl(this,a,b,c,!1)};
f.sendMessageAwaitResponse=function(a,b,c){return rl(this,a,b,void 0===c?!1:c,!0)};
function rl(a,b,c,d,e){if(a.hb)return Ta(function(){return a.hb(b,c,e)});if(!a.Ra)return e?Promise.reject(ol()):Promise.resolve();if(!d)return a.Ra.then(function(){return a.hb(b,c,e)});var g=fh(a.ib,function(a){return a.eventType==b});if(-1!=g)d=a.ib.splice(g,1)[0],d.data=c,d.awaitResponse=d.awaitResponse||e;else{d=new C;var h=d.resolve;d={eventType:b,data:c,awaitResponse:e,responsePromise:d.promise,responseResolver:h}}a.ib.push(d);return d.responsePromise}
f.broadcast=function(a){return this.Ra?rl(this,"broadcast",a,!1,!1).then(function(){return!0},function(){return!1}):Promise.resolve(!1)};f.onBroadcast=function(a){return this.Me.add(a)};f.whenMessagingReady=function(){return this.Ra};
f.replaceUrl=function(a){if(a&&this.ampdoc.isSingleDoc()&&this.win.history.replaceState)try{var b=I(this.win.location.href),c=I(ld(a)+this.win.location.hash);b.origin==c.origin&&rd(b)==rd(c)&&(this.win.history.replaceState({},"",c.href),this.win.location.originalHref=b.href)}catch(d){w().error("Viewer","replaceUrl failed",d)}};function jl(a,b){a=q(a);for(var c in a)b[c]=a[c]}
function ol(a){return a instanceof Error?(a=Ma(a),a.message="No messaging channel: "+a.message,a):Error("No messaging channel: "+a)}function sl(a,b){N(a,"viewer",function(){return new il(a,b)},!0)};function tl(a,b,c,d){var e=new ul(a,b,c,d);return e.solveYValueFromXValue.bind(e)}function ul(a,b,c,d){var e=1,g=1;this.y0=this.x0=0;this.x1=a;this.y1=b;this.x2=c;this.y2=d;this.x3=e;this.y3=g}f=ul.prototype;f.solveYValueFromXValue=function(a){return this.getPointY(this.solvePositionFromXValue(a))};
f.solvePositionFromXValue=function(a){var b=1E-6,c=(a-this.x0)/(this.x3-this.x0);if(0>=c)return 0;if(1<=c)return 1;for(var d=0,e=1,g=0,h=0;8>h;h++){g=this.getPointX(c);var k=(this.getPointX(c+b)-g)/b;if(Math.abs(g-a)<b)return c;if(Math.abs(k)<b)break;else g<a?d=c:e=c,c-=(g-a)/k}for(h=0;Math.abs(g-a)>b&&8>h;h++)g<a?(d=c,c=(c+e)/2):(e=c,c=(c+d)/2),g=this.getPointX(c);return c};
f.getPointX=function(a){if(0==a)return this.x0;if(1==a)return this.x3;var b=this.lerp(this.x0,this.x1,a),c=this.lerp(this.x1,this.x2,a),d=this.lerp(this.x2,this.x3,a);b=this.lerp(b,c,a);c=this.lerp(c,d,a);return this.lerp(b,c,a)};f.getPointY=function(a){if(0==a)return this.y0;if(1==a)return this.y3;var b=this.lerp(this.y0,this.y1,a),c=this.lerp(this.y1,this.y2,a),d=this.lerp(this.y2,this.y3,a);b=this.lerp(b,c,a);c=this.lerp(c,d,a);return this.lerp(b,c,a)};f.lerp=function(a,b,c){return a+c*(b-a)};
var vl=tl(.25,.1,.25,1),wl=tl(.42,0,1,1),xl=tl(0,0,.58,1),yl=tl(.42,0,.58,1),zl={linear:function(a){return a},ease:vl,"ease-in":wl,"ease-out":xl,"ease-in-out":yl};function Al(a){if(!a)return null;if("string"==typeof a){if(-1!=a.indexOf("cubic-bezier")){var b=a.match(/cubic-bezier\((.+)\)/);if(b&&(b=b[1].split(",").map(parseFloat),4==b.length)){for(var c=0;4>c;c++)if(isNaN(b[c]))return null;return tl(b[0],b[1],b[2],b[3])}return null}return zl[a]}return a};function Bl(){}function Cl(a){var b;this.sb=a;this.o=b||qe(self);this.Te=null;this.$=[]}function Dl(a,b,c,d){return(new Cl(a)).setCurve(d).add(0,b,1).start(c)}Cl.prototype.setCurve=function(a){a&&(this.Te=Al(a));return this};Cl.prototype.add=function(a,b,c,d){this.$.push({delay:a,func:b,duration:c,curve:Al(d)});return this};Cl.prototype.start=function(a){var b=new El(this.o,this.sb,this.$,this.Te,a);return b};
function El(a,b,c,d,e){this.o=a;this.sb=b;this.$=[];for(b=0;b<c.length;b++){var g=c[b];this.$.push({delay:g.delay,func:g.func,duration:g.duration,curve:g.curve||d,started:!1,completed:!1})}this.Ag=e;this.oe=Date.now();this.Sa=!0;this.H={};e=new C;this.Df=e.promise;this.kh=e.resolve;this.ih=e.reject;this.Rf=this.o.createAnimTask(this.sb,{mutate:this.uh.bind(this)});this.o.canAnimate(this.sb)?this.Rf(this.H):(w().warn("Animation","cannot animate"),Fl(this,!1,0))}
El.prototype.then=function(a,b){return a||b?this.Df.then(a,b):this.Df};El.prototype.thenAlways=function(a){a=a||Bl;return this.then(a,a)};El.prototype.halt=function(a){Fl(this,!1,a||0)};
function Fl(a,b,c){if(a.Sa){a.Sa=!1;if(0!=c){1<a.$.length&&a.$.sort(function(a,b){return a.delay+a.duration-(b.delay+b.duration)});try{if(0<c)for(c=0;c<a.$.length;c++)a.$[c].func(1,!0);else for(var d=a.$.length-1;0<=d;d--)a.$[d].func(0,!1)}catch(e){w().error("Animation","completion failed: "+e,e),b=!1}}b?a.kh():a.ih()}}
El.prototype.uh=function(){if(this.Sa){for(var a=Date.now(),b=Math.min((a-this.oe)/this.Ag,1),c=0;c<this.$.length;c++){var d=this.$[c];!d.started&&b>=d.delay&&(d.started=!0)}for(c=0;c<this.$.length;c++)if(d=this.$[c],d.started&&!d.completed)a:{var e;if(0<d.duration){var g=e=Math.min((b-d.delay)/d.duration,1);if(d.curve&&1!=g)try{g=d.curve(e)}catch(h){w().error("Animation","step curve failed: "+h,h);Fl(this,!1,0);break a}}else g=e=1;1==e&&(d.completed=!0);try{d.func(g,d.completed)}catch(h){w().error("Animation",
"step mutate failed: "+h,h),Fl(this,!1,0)}}1==b?Fl(this,!0,0):this.o.canAnimate(this.sb)?this.Rf(this.H):(w().warn("Animation","cancel animation"),Fl(this,!1,0))}};function Gl(a){return-1!==a.tagName.indexOf("LIGHTBOX")}function Hl(a,b,c,d,e){var g=this;this.ampdoc=a;this.o=b;this.ig=c;this.bc=this.G=d;this.Ja=e&&a.isSingleDoc();this.Ia=null;this.wg=0;this.L=[];this.se=new Gh(a.win,function(){g.update()});this.Hb=null;this.ic=[];this.Oc=[]}f=Hl.prototype;f.enterLightbox=function(a,b){var c=this,d=Il(this);d&&d.setLightboxMode(!0);L(this.ampdoc.win,"fixed-elements-in-lightbox")&&a&&b&&b.then(function(){c.trySetupSelectorsNoInline(a,!0);Jl(c);c.update()})};
f.leaveLightbox=function(){var a=Il(this);a&&a.setLightboxMode(!1);if(L(this.ampdoc.win,"fixed-elements-in-lightbox")){var b=eh(this.L,function(a){return!!a.lightboxed});Kl(this,b);this.L.length||Ll(this)}};
f.setup=function(){var a=this.ampdoc.getRootNode(),b=a.styleSheets;if(b){this.ic.length=0;for(var c=this.Oc.length=0;c<b.length;c++){var d=b[c];if(!d){w().error("FixedLayer","Aborting setup due to null stylesheet.");return}var e=d,g=e.disabled,h=e.ownerNode;g||!h||"STYLE"!=h.tagName||h.hasAttribute("amp-boilerplate")||h.hasAttribute("amp-runtime")||h.hasAttribute("amp-extension")||Ml(this,d.cssRules)}this.trySetupSelectorsNoInline(a,void 0);Jl(this);this.update();0<this.L.length&&this.observeHiddenMutations();
a=oe(this.ampdoc.win);0<this.L.length&&!this.Ja&&a.isIos()&&u().warn("FixedLayer","Please test this page inside of an AMP Viewer such as Google's because the fixed or sticky positioning might have slightly different layout.")}};f.observeHiddenMutations=function(){L(this.ampdoc.win,"hidden-mutation-observer")&&Nl(this).observe(this.ampdoc.getRootNode(),{attributes:!0,subtree:!0})};function Ll(a){Ol(a);(a=a.Hb)&&a.disconnect()}function Ol(a){a.se.cancel();(a=a.Hb)&&a.takeRecords()}
function Nl(a){return a.Hb?a.Hb:a.Hb=new a.ampdoc.win.MutationObserver(function(b){if(!a.se.isPending())for(var c=0;c<b.length;c++){var d=b[c];if("hidden"===d.attributeName){a.se.schedule(16);break}}})}f.updatePaddingTop=function(a,b){this.G=a;b||(this.bc=a);this.update()};
f.transformMutate=function(a){a?this.L.forEach(function(b){b.fixedNow&&b.top&&(V(b.element,"transition","none"),b.transform&&"none"!=b.transform?V(b.element,"transform",b.transform+" "+a):V(b.element,"transform",a))}):this.L.forEach(function(a){a.fixedNow&&a.top&&Ue(a.element,{transform:"",transition:""})})};f.addElement=function(a,b){Pl(this,a,"*","fixed",b);Jl(this);this.observeHiddenMutations();return this.update()};f.removeElement=function(a){a=Ql(this,a);Kl(this,a)};
function Kl(a,b){0<b.length&&a.Ia&&a.o.mutate(function(){for(var c=0;c<b.length;c++){var d=b[c];"fixed"==d.position&&a.Ia.returnFrom(d)}})}f.isDeclaredFixed=function(a){return!!a.__AMP_DECLFIXED};f.isDeclaredSticky=function(a){return!!a.__AMP_DECLSTICKY};
f.update=function(){var a=this;this.L.filter(function(b){return!a.ampdoc.contains(b.element)}).forEach(function(b){return Ql(a,b.element)});if(0==this.L.length)return Promise.resolve();Ol(this);var b=!1;return this.o.runPromise({measure:function(c){for(var d=a.L,e=[],g=a.ampdoc.win,h=0;h<d.length;h++)U(d[h].element,{top:"",bottom:"-9999vh",transition:"none"});for(h=0;h<d.length;h++)e.push(Xe(g,d[h].element).top);for(h=0;h<d.length;h++)V(d[h].element,"bottom","");for(h=0;h<d.length;h++){var k=d[h],
l=k,m=l.element,n=l.forceTransfer;l=Xe(g,m);var t=m.offsetWidth,p=m.offsetHeight,x=m.offsetTop,v=l,F=void 0===v.position?"":v.position,J=void 0===v.display?"":v.display;m=v.bottom;var G=v.zIndex,Y=parseFloat(l.opacity);v=l[Se(l,"transform")];l=l.top;var aa="fixed"===F&&(n||0<t&&0<p),y=gb(F,"sticky"),K="none"!==J;if(K&&(aa||y)){if("auto"===l||e[h]!==l)l=aa&&x===a.bc+a.ig?"0px":"";var Z=!1;aa&&(Z=!0===n?!0:!1===n?!1:0<Y&&300>p&&!(!l&&!m));Z&&(b=!0);c[k.id]={fixed:aa,sticky:y,transferrable:Z,top:l,zIndex:G,
transform:v}}else c[k.id]={fixed:!1,sticky:!1,transferrable:!1,top:"",zIndex:""}}},mutate:function(c){b&&a.Ja&&Il(a).update();for(var d=a.L,e=0;e<d.length;e++){var g=d[e],h=c[g.id];V(g.element,"transition","none");V(g.element,"transition","");if(h){var k=e,l=h,m=g.element,n=g.fixedNow;g.fixedNow=l.fixed;g.stickyNow=l.sticky;g.top=l.fixed||l.sticky?l.top:"";g.transform=l.transform;!n||l.fixed&&l.transferrable||!a.Ia||a.Ia.returnFrom(g);l.top&&(l.fixed||l.sticky)&&!g.lightboxed&&(l.fixed||!a.Ja?V(m,
"top","calc("+l.top+" + "+a.G+"px)"):a.bc===a.G?V(m,"top",l.top):V(m,"top","calc("+l.top+" - "+a.bc+"px)"));a.Ja&&l.fixed&&l.transferrable&&Il(a).transferTo(g,k,l)}}}},{}).catch(function(a){w().error("FixedLayer","Failed to mutate fixed elements:",a)})};
f.trySetupSelectorsNoInline=function(a,b){try{for(var c=0;c<this.ic.length;c++)for(var d=this.ic[c],e=a.querySelectorAll(d),g=0;g<e.length&&!(10<this.L.length);g++)Pl(this,e[g],d,"fixed",void 0,b);for(c=0;c<this.Oc.length;c++){var h=this.Oc[c],k=a.querySelectorAll(h);for(d=0;d<k.length;d++)Pl(this,k[d],h,"sticky",void 0,b)}}catch(l){w().error("FixedLayer","Failed to setup fixed elements:",l)}};
function Pl(a,b,c,d,e,g){b.hasAttribute("style")&&(Te(b,"top")||Te(b,"bottom"))&&u().error("FixedLayer","Inline styles with `top`, `bottom` and other CSS rules are not supported yet for fixed or sticky elements (#14186). Unexpected behavior may occur.",b);if(!Gl(b)){var h=sb(b,Gl);if(g||!h){g=null;for(var k=0;k<a.L.length;k++){var l=a.L[k];if(l.element==b&&l.position==d){g=l;break}}k="fixed"==d;g?g.selectors.includes(c)||g.selectors.push(c):(g="F"+a.wg++,b.setAttribute("i-amphtml-fixedid",g),k?b.__AMP_DECLFIXED=
!0:b.__AMP_DECLSTICKY=!0,g={id:g,element:b,position:d,selectors:[c],fixedNow:!1,stickyNow:!1,lightboxed:!!h},a.L.push(g));g.forceTransfer=k?e:!1}}}function Ql(a,b){for(var c=[],d=0;d<a.L.length;d++){var e=a.L[d];e.element===b&&(e.lightboxed||a.o.mutate(function(){V(b,"top","")}),a.L.splice(d,1),c.push(e))}a.L.length||Ll(a);return c}function Jl(a){a.L.sort(function(a,c){var b=a.element;var e=c.element;b=b===e?0:b.compareDocumentPosition(e)&Nb?1:-1;return b})}
function Il(a){if(!a.Ja||a.Ia)return a.Ia;var b=a.ampdoc.win.document;a.Ia=b.body.shadowRoot?new Rl(b,a.o):new Sl(b,a.o);return a.Ia}function Ml(a,b){for(var c=0;c<b.length;c++){var d=b[c];if(4==d.type||12==d.type)Ml(a,d.cssRules);else if(1==d.type){var e=d.selectorText;d=d.style.position;"*"!==e&&d&&("fixed"===d?a.ic.push(e):gb(d,"sticky")&&a.Oc.push(e))}}}
function Sl(a,b){this.dc=a;this.o=b;this.hf=L(a.defaultView,"fixed-elements-in-lightbox");this.X=a.body.cloneNode(!1);this.X.removeAttribute("style");b={position:"absolute",top:0,left:0,height:0,width:0,pointerEvents:"none",overflow:"hidden",animation:"none",background:"none",border:"none",borderImage:"none",boxSizing:"border-box",boxShadow:"none",float:"none",margin:0,opacity:1,outline:"none",padding:"none",transform:"none",transition:"none",visibility:"visible"};this.hf&&delete b.visibility;Ue(this.X,
Ve(b));this.X.style.display="block";a.documentElement.appendChild(this.X)}f=Sl.prototype;f.getRoot=function(){return this.X};f.setLightboxMode=function(a){var b=this;this.o.mutate(function(){var c=b.getRoot();b.hf?a?c.setAttribute("i-amphtml-lightbox",""):c.removeAttribute("i-amphtml-lightbox"):V(c,"visibility",a?"hidden":"visible")})};
f.update=function(){for(var a=this.dc.body,b=this.X,c=a.attributes,d=b.attributes,e=0;e<c.length;e++){var g=c[e];"style"!==g.name&&d.setNamedItem(g.cloneNode(!1))}for(e=0;e<d.length;e++)g=d[e].name,"style"===g||"i-amphtml-lightbox"===g||a.hasAttribute(g)||(b.removeAttribute(g),e--)};
f.transferTo=function(a,b,c){var d=a.element;if(d.parentElement!=this.X){u().warn("FixedLayer","In order to improve scrolling performance in Safari, we now move the element to a fixed positioning layer:",a.element);if(!a.placeholder){V(d,"pointer-events","initial");var e=a.placeholder=this.dc.createElement("i-amphtml-fpa");We(e,!1);e.setAttribute("i-amphtml-fixedid",a.id)}V(d,"zIndex","calc("+(1E4+b)+" + "+(c.zIndex||0)+")");a.lightboxed&&d.classList.add("i-amphtml-lightbox-element");d.parentElement.replaceChild(a.placeholder,
d);this.X.appendChild(d);a.selectors.some(function(a){try{var b=vb(d,a)}catch(k){w().error("FixedLayer","Failed to test query match:",k),b=!1}return b})||(u().warn("FixedLayer","Failed to move the element to the fixed position layer. This is most likely due to the compound CSS selector:",a.element),this.returnFrom(a))}};
f.returnFrom=function(a){if(a.placeholder&&this.dc.contains(a.placeholder)){var b=a.element,c=a.placeholder;a.lightboxed&&b.classList.remove("i-amphtml-lightbox-element");this.dc.contains(b)?(V(a.element,"zIndex",""),c.parentElement.replaceChild(b,c)):c.parentElement.removeChild(c)}};
function Rl(a,b){this.o=b;this.X=a.createElement("div");this.X.id="i-amphtml-fixed-layer";U(this.X,{position:"absolute",top:0,left:0,height:0,width:0,overflow:"hidden"});var c=a.createElement("slot");c.setAttribute("name","i-amphtml-fixed");this.X.appendChild(c);a.body.shadowRoot.appendChild(this.X)}f=Rl.prototype;f.getRoot=function(){return this.X};f.setLightboxMode=function(a){var b=this;this.o.mutate(function(){V(b.getRoot(),"visibility",a?"hidden":"visible")})};f.update=function(){};
f.transferTo=function(a){var b=a.element;u().warn("FixedLayer","In order to improve scrolling performance in Safari, we now move the element to a fixed positioning layer:",a.element);b.setAttribute("slot","i-amphtml-fixed")};f.returnFrom=function(a){a.element.removeAttribute("slot")};var Tl=['\n      <div id="i-amphtml-scroller">\n        <div id="i-amphtml-body-wrapper">\n          <slot></slot>\n        </div>\n      </div>'];Tl.raw=['\n      <div id="i-amphtml-scroller">\n        <div id="i-amphtml-body-wrapper">\n          <slot></slot>\n        </div>\n      </div>'];var Ul="align-content align-items align-self alignment-baseline backface-visibility box-sizing column-count column-fill column-gap column-rule column-span column-width columns display flex flex-basis flex-direction flex-flow flex-grow flex-shrink flex-wrap gap grid grid-area grid-auto-columns grid-auto-flow grid-auto-rows grid-column grid-gap grid-row grid-template justify-content justify-items justify-self margin order padding perspective perspective-origin place-content place-items place-self table-layout".split(" ");
function Vl(a){var b=this;this.win=a;this.o=qe(a);var c=this.win.document,d=c.documentElement;d.classList.add("i-amphtml-ios-embed-sd");L(a,"scroll-height-minheight")&&d.classList.add("i-amphtml-body-minheight");var e=Oe(c)(Tl);this.M=e;this.O=e.firstElementChild;this.M.style.display="block";U(this.M,{"overflow-x":"hidden","overflow-y":"auto",position:"absolute",top:"0",left:"0",right:"0",bottom:"0",margin:"0",width:"100%","box-sizing":"border-box","padding-top":"0px","border-top":"1px solid transparent"});
U(this.O,{overflow:"visible",position:"relative","will-change":"transform"});this.Z=new X;this.Y=new X;this.Ca=this.Kb.bind(this);this.Ba=this.dh.bind(this);this.F=L(this.win,"layers");this.G=0;this.Tb=this.gd=!1;pb(c,this.Ub.bind(this));eb(c).then(function(){b.M.classList.add("i-amphtml-ios-overscroll");U(b.M,{"-webkit-overflow-scrolling":"touch"})})}f=Vl.prototype;f.ensureReadyForElements=function(){this.Ub()};
f.Ub=function(){if(!this.Tb){this.Tb=!0;var a=this.win.document.body;a.attachShadow({mode:"open"}).appendChild(this.M);this.re();if(this.win.MutationObserver){var b=new this.win.MutationObserver(this.re.bind(this));b.observe(a,{attributes:!0})}this.Kb()}};f.re=function(){var a=this;if(!this.gd){var b=this.win.document.body;if(b){var c={};this.gd=!0;this.o.run({measure:function(){var d=Xe(a.win,b);Ul.forEach(function(a){c[a]=d[a]||""})},mutate:function(){a.gd=!1;U(a.O,Ve(c))}})}}};
f.dh=function(){this.Y.fire();this.re()};f.connect=function(){this.win.addEventListener("resize",this.Ba);this.M.addEventListener("scroll",this.Ca)};f.disconnect=function(){this.win.removeEventListener("resize",this.Ba);this.M.removeEventListener("scroll",this.Ca)};f.getBorderTop=function(){return 1};f.requiresFixedLayerTransfer=function(){return!L(this.win,"ios-embed-sd-notransfer")};f.supportsPositionFixed=function(){return!0};f.onScroll=function(a){this.Z.add(a)};f.onResize=function(a){this.Y.add(a)};
f.updatePaddingTop=function(a){this.G=a;U(this.M,{"padding-top":a+"px"})};f.hideViewerHeader=function(a){a||this.updatePaddingTop(0)};f.showViewerHeader=function(a,b){a||this.updatePaddingTop(b)};f.disableScroll=function(){U(this.M,{"overflow-y":"hidden",position:"fixed"})};f.resetScroll=function(){U(this.M,{"overflow-y":"auto",position:"absolute"})};f.updateLightboxMode=function(){return Promise.resolve()};f.getSize=function(){return{width:this.win.innerWidth,height:this.win.innerHeight}};
f.getScrollTop=function(){return this.M.scrollTop};f.getScrollLeft=function(){return 0};f.getScrollWidth=function(){return this.M.scrollWidth};f.getScrollHeight=function(){return this.M.scrollHeight};f.getContentHeight=function(){var a=this.O,b=a.getBoundingClientRect(),c=Xe(this.win,a);return b.height+this.G+this.getBorderTop()+parseInt(c.marginTop,10)+parseInt(c.marginBottom,10)};
f.contentHeightChanged=function(){var a=this;L(this.win,"scroll-height-bounce")&&this.o.mutate(function(){U(a.M,{"-webkit-overflow-scrolling":"auto"});a.o.mutate(function(){U(a.M,{"-webkit-overflow-scrolling":"touch"})})})};f.getLayoutRect=function(a,b,c){a=a.getBoundingClientRect();if(this.F)return E(a.left,a.top,a.width,a.height);var d=void 0!=c?c:this.getScrollTop(),e=void 0!=b?b:this.getScrollLeft();return E(Math.round(a.left+e),Math.round(a.top+d),Math.round(a.width),Math.round(a.height))};
f.getRootClientRectAsync=function(){return Promise.resolve(null)};f.setScrollTop=function(a){this.M.scrollTop=a||1};f.Kb=function(a){0==this.M.scrollTop&&(this.M.scrollTop=1,a&&a.preventDefault());a&&this.Z.fire()};f.getScrollingElement=function(){return this.M};f.getScrollingElementScrollsLikeViewport=function(){return!1};function Wl(a){var b=this;this.win=a;this.o=qe(a);var c=this.win.document,d=c.documentElement,e=d.className;d.classList.add("i-amphtml-ios-embed");var g=c.createElement("html");this.O=g;g.id="i-amphtml-wrapper";g.className=e;L(a,"scroll-height-minheight")&&g.classList.add("i-amphtml-body-minheight");this.Z=new X;this.Y=new X;this.Ca=this.Kb.bind(this);this.Ba=function(){return b.Y.fire()};this.F=L(this.win,"layers");this.G=0;this.Tb=!1;pb(c,this.Ub.bind(this));eb(c).then(function(){d.classList.add("i-amphtml-ios-overscroll")})}
f=Wl.prototype;f.ensureReadyForElements=function(){this.Ub()};f.Ub=function(){if(!this.Tb){this.Tb=!0;var a=this.win.document,b=a.body;a.documentElement.appendChild(this.O);this.O.appendChild(b);Object.defineProperty(a,"body",{get:function(){return b}});this.Kb()}};f.connect=function(){this.win.addEventListener("resize",this.Ba);this.O.addEventListener("scroll",this.Ca)};f.disconnect=function(){this.win.removeEventListener("resize",this.Ba);this.O.removeEventListener("scroll",this.Ca)};
f.getBorderTop=function(){return 1};f.requiresFixedLayerTransfer=function(){return!0};f.supportsPositionFixed=function(){return!0};f.onScroll=function(a){this.Z.add(a)};f.onResize=function(a){this.Y.add(a)};f.updatePaddingTop=function(a){this.G=a;U(this.O,{"padding-top":a+"px"})};f.hideViewerHeader=function(a){a||this.updatePaddingTop(0)};f.showViewerHeader=function(a,b){a||this.updatePaddingTop(b)};f.disableScroll=function(){this.O.classList.add("i-amphtml-scroll-disabled")};f.resetScroll=function(){this.O.classList.remove("i-amphtml-scroll-disabled")};
f.updateLightboxMode=function(){return Promise.resolve()};f.getSize=function(){return{width:this.win.innerWidth,height:this.win.innerHeight}};f.getScrollTop=function(){return this.O.scrollTop};f.getScrollLeft=function(){return 0};f.getScrollWidth=function(){return this.O.scrollWidth};f.getScrollHeight=function(){return this.O.scrollHeight};
f.getContentHeight=function(){var a=this.win.document.body,b=a.getBoundingClientRect();a=Xe(this.win,a);return b.height+this.G+parseInt(a.marginTop,10)+parseInt(a.marginBottom,10)};f.contentHeightChanged=function(){var a=this;if(L(this.win,"scroll-height-bounce")){var b=this.win.document.documentElement;this.o.mutate(function(){b.classList.remove("i-amphtml-ios-overscroll");a.o.mutate(function(){b.classList.add("i-amphtml-ios-overscroll")})})}};
f.getLayoutRect=function(a,b,c){a=a.getBoundingClientRect();if(this.F)return E(a.left,a.top,a.width,a.height);c=void 0!=c?c:this.getScrollTop();b=void 0!=b?b:this.getScrollLeft();return E(Math.round(a.left+b),Math.round(a.top+c),Math.round(a.width),Math.round(a.height))};f.getRootClientRectAsync=function(){return Promise.resolve(null)};f.setScrollTop=function(a){this.O.scrollTop=a||1};f.Kb=function(a){0==this.O.scrollTop&&(this.O.scrollTop=1,a&&a.preventDefault());a&&this.Z.fire()};
f.getScrollingElement=function(){return this.O};f.getScrollingElementScrollsLikeViewport=function(){return!1};function Xl(a){var b=this;this.ampdoc=a;this.win=a.win;this.sa=oe(this.win);this.Z=new X;this.Y=new X;this.Ca=function(){b.Z.fire()};this.Ba=function(){return b.Y.fire()};this.F=L(this.win,"layers");this.G=0}f=Xl.prototype;f.connect=function(){this.win.addEventListener("scroll",this.Ca);this.win.addEventListener("resize",this.Ba)};f.disconnect=function(){this.win.removeEventListener("scroll",this.Ca);this.win.removeEventListener("resize",this.Ba)};f.ensureReadyForElements=function(){};
f.getBorderTop=function(){return 0};f.requiresFixedLayerTransfer=function(){return!1};f.supportsPositionFixed=function(){return!0};f.onScroll=function(a){this.Z.add(a)};f.onResize=function(a){this.Y.add(a)};f.updatePaddingTop=function(a){this.G=a;U(this.win.document.documentElement,{"padding-top":a+"px"})};f.hideViewerHeader=function(a){a||this.updatePaddingTop(0)};f.showViewerHeader=function(a,b){a||this.updatePaddingTop(b)};f.disableScroll=function(){this.win.document.documentElement.classList.add("i-amphtml-scroll-disabled")};
f.resetScroll=function(){this.win.document.documentElement.classList.remove("i-amphtml-scroll-disabled")};f.updateLightboxMode=function(){return Promise.resolve()};f.getSize=function(){var a=this.win.innerWidth,b=this.win.innerHeight;if(a&&b)return{width:a,height:b};var c=this.win.document.documentElement;return{width:c.clientWidth,height:c.clientHeight}};
f.getScrollTop=function(){var a=this.getScrollingElement().scrollTop||this.win.pageYOffset,b=this.ampdoc.getRootNode().host;return b?a-b.offsetTop:a};f.getScrollLeft=function(){return 0};f.getScrollWidth=function(){return this.getScrollingElement().scrollWidth};f.getScrollHeight=function(){return this.getScrollingElement().scrollHeight};
f.getContentHeight=function(){var a=this.getScrollingElement(),b=a.getBoundingClientRect(),c=Xe(this.win,a),d=0;a!==this.win.document.documentElement&&(d=this.G);return b.height+d+parseInt(c.marginTop,10)+parseInt(c.marginBottom,10)};f.contentHeightChanged=function(){};
f.getLayoutRect=function(a,b,c){a=a.getBoundingClientRect();if(this.F)return E(a.left,a.top,a.width,a.height);c=void 0!=c?c:this.getScrollTop();b=void 0!=b?b:this.getScrollLeft();return E(Math.round(a.left+b),Math.round(a.top+c),Math.round(a.width),Math.round(a.height))};f.getRootClientRectAsync=function(){return Promise.resolve(null)};f.setScrollTop=function(a){this.getScrollingElement().scrollTop=a};
f.getScrollingElement=function(){var a=this.win.document;return a.scrollingElement?a.scrollingElement:a.body&&this.sa.isWebKit()?a.body:a.documentElement};f.getScrollingElementScrollsLikeViewport=function(){return!0};var Yl=["AMP-AD","AMP-ANALYTICS","AMP-PIXEL","AMP-AD-EXIT"];function Zl(a,b,c){return pe(a).getResourcesInRect(b,c).then(function(a){var b=[];a.forEach(function(a){Yl.includes(a.element.tagName)||b.push(a.loadedOnce())});return Promise.all(b)})};function $l(a,b){return{left:a,top:b}}var am=[],bm=0;function cm(a,b,c){var d=this;a=a.win;this.Mf=b;this.be=null;this.sc=[];this.Vc=[];dm(this,a.document);a.document.documentElement.contains(b)||dm(this,b);this.Vc.push(of(a,"resize",function(){for(var a=d.sc,b=0;b<a.length;b++){var c=a[b];c.undeclareLayer();c.forgetParentLayer()}},{capture:!0,passive:!0}));this.ye=em(this,b,!0,c)}f=cm.prototype;f.dispose=function(){this.Vc.forEach(function(a){return a()});this.Vc.length=0};
f.add=function(a){var b=fm(a);b||(b=new gm(a));this.sc.includes(b)||this.sc.push(b);return b};f.remove=function(a){if(a=fm(a)){var b=this.sc,c=b.indexOf(a);-1<c&&b.splice(c,1);if(c=a.getParentLayer())c.remove(a);else for(c=0;c<b.length;c++)b[c].remove(a);a.forgetParentLayer();a.dirtyMeasurements()}};f.getScrolledPosition=function(a,b){a=this.add(a).getScrolledPosition(b);return $l(Math.round(a.left),Math.round(a.top))};
f.getOffsetPosition=function(a,b){a=this.add(a).getOffsetPosition(b);return $l(Math.round(a.left),Math.round(a.top))};f.getSize=function(a){a=this.add(a).getSize();return{height:Math.round(a.height),width:Math.round(a.width)}};f.remeasure=function(a,b){a=this.add(a);a=a.getParentLayer()||a;b&&a.dirtyMeasurements();a.remeasure()};f.declareLayer=function(a){em(this,a,!1,!1)};f.dirty=function(a){(hm(a)||fm(this.Mf)).dirtyMeasurements()};function em(a,b,c,d){a=a.add(b);a.declareLayer(c,d);return a}
function dm(a,b){a.Vc.push(of(b,"scroll",function(b){b=b.target;b=b.nodeType==Node.ELEMENT_NODE?b:a.Mf;var c=fm(b);c&&c.isLayer()?c.dirtyScrollMeasurements():c=em(a,b,!1,!1);a.ye=c;a.be&&a.be()},{capture:!0,passive:!0}))}f.onScroll=function(a){this.be=a};f.getActiveLayer=function(){return this.ye};f.iterateAncestry=function(a,b,c){return this.add(a).iterateAncestry(b,c)};
function gm(a){a.__AMP_LAYOUT=this;this.W=a;this.Ad=a.tagName+"-"+bm++;this.Nb=void 0;this.Ib=!0;this.V={height:0,width:0};this.zf=$l(0,0);this.Gd=void 0;this.zc=this.Nf=this.jf=this.cb=!1;this.ua=this.Ua=0;this.Ma=[]}function fm(a){return a.__AMP_LAYOUT||null}
function hm(a,b){if(im(a))return null;if(!b&&(b=fm(a)))return b.getParentLayer();b=a.ownerDocument.defaultView;for(var c=a,d=a,e;c;){if((e=c===a?null:fm(c))&&e.isLayer())return e;if(c===d){if("fixed"==Xe(b,d).position){if(a=d!==a?d:jm(a.ownerDocument))return P(a,"layers").declareLayer(a),fm(a);break}d=d.offsetParent}e=c;c=c.assignedSlot||c.parentNode||c.host;!c&&(d=c=jm(e))&&(b=c.ownerDocument.defaultView)}return null}f=gm.prototype;f.getId=function(){return this.Ad};
f.contains=function(a){return a===this?!1:km(this,this.W,a.W)};function km(a,b,c){if(b.contains(c))return!0;if(b.ownerDocument!==c.ownerDocument){var d=jm(c.ownerDocument);return!!d&&km(a,b,d)}a=(a=rb(b))&&a.host;return!!a&&a.contains(c)}f.add=function(a){this.isLayer();this.contains(a);this.Ma.includes(a)||this.Ma.push(a)};f.remove=function(a){a=this.Ma.indexOf(a);-1<a&&this.Ma.splice(a,1)};f.isLayer=function(){return this.cb};
f.declareLayer=function(a,b){this.cb||(this.cb=!0,this.jf=a,this.Nf=b,this.zc=this.Ib=!0,(a=this.getParentLayer())&&a.Ja(this))};f.undeclareLayer=function(){if(this.cb&&!this.jf){var a=this.W;im(a)||"fixed"===Xe(a.ownerDocument.defaultView,a).position||(this.cb=!1,a=this.getParentLayer()||hm(a,!0),this.Ja(a))}};f.Ja=function(a){var b=a.contains(this);eh(this.Ma,function(c){return b||a.contains(c)?(c.dirtyMeasurements(),c.Nb=a,a.Ma.push(c),!0):!1})};
f.getParentLayer=function(){if(void 0===this.Nb){var a=hm(this.W,!0);(this.Nb=a)&&a.add(this)}return this.Nb};f.forgetParentLayer=function(){this.Nb=void 0};f.getSize=function(){this.remeasure();return this.V};f.getOffsetFromParent=function(){this.remeasure();return this.zf};f.isActiveUnsafe=function(){return this.Gd};
f.getHorizontalDistanceFromParent=function(){var a=this.getParentLayer();if(!a)return 0;var b=this.getOffsetFromParent().left,c=this.getSize().width,d=a.getScrollLeft(),e=a.getSize().width;return b+c<d?d-(b+c):d+e<b?b-(d+e):0};f.getHorizontalViewportsFromParent=function(){var a=this.getHorizontalDistanceFromParent();if(0===a)return 0;var b=this.getParentLayer().getSize().width;return a/b};
f.getVerticalDistanceFromParent=function(){var a=this.getParentLayer();if(!a)return 0;var b=this.getOffsetFromParent().top,c=this.getSize().height,d=a.getScrollTop(),e=a.getSize().height;return b+c<d?d-(b+c):d+e<b?b-(d+e):0};f.getVerticalViewportsFromParent=function(){var a=this.getVerticalDistanceFromParent();if(0===a)return 0;var b=this.getParentLayer().getSize().height;return a/b};f.getScrollTop=function(){lm(this);return this.ua};f.getScrollLeft=function(){lm(this);return this.Ua};
f.getScrolledPosition=function(a){var b=this.getScrollLeft(),c=this.getScrollTop(),d=a?hm(a):null;for(a=this;a&&a!==d;a=a.getParentLayer()){var e=a.getOffsetFromParent();b+=e.left-a.getScrollLeft();c+=e.top-a.getScrollTop()}return $l(b,c)};f.getOffsetPosition=function(a){var b=0,c=0;a=a?hm(a):null;for(var d=this;d&&d!==a;d=d.getParentLayer()){var e=d.getOffsetFromParent();b+=e.left;c+=e.top}return $l(b,c)};f.dirtyMeasurements=function(){this.Ib=!0};f.dirtyScrollMeasurements=function(){this.zc=!0};
f.remeasure=function(){for(var a=this,b=this.getParentLayer();b;b=b.getParentLayer())b.Ib&&(a=b);a.Ib&&mm(a)};f.iterateAncestry=function(a,b){for(var c=im(this.W)?null:P(this.W,"layers").getActiveLayer(),d=c===this||!!c&&c.contains(this),e=this;e;)am.push(e),e.Gd=d,e===c&&(d=!1),e=e.getParentLayer();var g=void 0;e=am.length;for(var h=0;h<e;h++){var k=am.pop();g=a(g,k,h,b);k.Gd=void 0}return g};
function mm(a){lm(a);a.Ib=!1;var b=a.W,c=a.getParentLayer();if(c)if(c.W.ownerDocument===a.W.ownerDocument){var d=c.getScrolledPosition(c.W.ownerDocument.documentElement);c=$l(d.left-c.getScrollLeft(),d.top-c.getScrollTop())}else c=$l(0,0);else c=$l(0,0);var e=c;a.V={height:b.clientHeight,width:b.clientWidth};c=b.getBoundingClientRect();b=c.left;c=c.top;a.Nf&&(b+=a.getScrollLeft(),c+=a.getScrollTop());a.zf=$l(b-e.left,c-e.top);a=a.Ma;if(a.length)for(b=0;b<a.length;b++)mm(a[b])}
function lm(a){a.cb&&a.zc&&(a.zc=!1,a.Ua=a.W.scrollLeft,a.ua=a.W.scrollTop)}function jm(a){try{var b=a.defaultView,c=b&&b.frameElement;return c&&c.__AMP_EMBED__?c:null}catch(d){}return null}function im(a){a=a.ownerDocument;if(!a)return!0;a=a.defaultView;return!a||!a.document}function nm(a,b,c){N(a,"layers",function(a){return new cm(a,b,c)},!0)};function om(a,b){return function(c){return a+(b-a)*c}};function pm(a,b,c){var d=this;this.ampdoc=a;this.Oa=this.ampdoc.win.document;this.j=b;this.h=c;this.ua=this.V=this.Qb=null;this.je=!1;this.Ua=null;this.G=Number(c.getParam("paddingTop")||0);this.qc=0;this.T=S(this.ampdoc.win);this.o=qe(this.ampdoc.win);this.ke=!1;this.Lf=0;this.Re=new X;this.Z=new X;this.Y=new X;this.de=this.Xb=void 0;(this.F=L(this.ampdoc.win,"layers"))&&nm(this.ampdoc,this.j.getScrollingElement(),this.j.getScrollingElementScrollsLikeViewport());this.ia=new Hl(this.ampdoc,this.o,
this.j.getBorderTop(),this.G,this.j.requiresFixedLayerTransfer());this.ampdoc.whenReady().then(function(){return d.ia.setup()});this.h.onMessage("viewport",this.Ah.bind(this));this.h.onMessage("scroll",this.Ch.bind(this));this.h.onMessage("disableScroll",this.zg.bind(this));this.j.updatePaddingTop(this.G);this.j.onScroll(this.ph.bind(this));this.j.onResize(this.Jf.bind(this));this.onScroll(this.qh.bind(this));this.oa=!1;this.h.onVisibilityChanged(this.Xf.bind(this));this.Xf();this.ampdoc.isSingleDoc()&&
this.Oa.documentElement.classList.add("i-amphtml-singledoc");c.isEmbedded()?this.Oa.documentElement.classList.add("i-amphtml-embedded"):this.Oa.documentElement.classList.add("i-amphtml-standalone");Mb(this.ampdoc.win)&&this.Oa.documentElement.classList.add("i-amphtml-iframed");"1"===c.getParam("webview")&&this.Oa.documentElement.classList.add("i-amphtml-webview");Mb(this.ampdoc.win)&&"scrollRestoration"in this.ampdoc.win.history&&(this.ampdoc.win.history.scrollRestoration="manual")}f=pm.prototype;
f.dispose=function(){this.j.disconnect()};f.ensureReadyForElements=function(){this.j.ensureReadyForElements()};f.Xf=function(){var a=this.h.isVisible();a!=this.oa&&((this.oa=a)?(this.j.connect(),this.V&&this.Jf()):this.j.disconnect())};f.getPaddingTop=function(){return this.G};f.getTop=function(){return this.getScrollTop()};f.getScrollTop=function(){null==this.ua&&(this.ua=this.j.getScrollTop());return this.ua};f.getScrollLeft=function(){null==this.Ua&&(this.Ua=this.j.getScrollLeft());return this.Ua};
f.setScrollTop=function(a){this.ua=null;this.j.setScrollTop(a)};f.updatePaddingBottom=function(a){this.ampdoc.whenBodyAvailable().then(function(b){V(b,"borderBottom",a+"px solid transparent")})};f.getSize=function(){if(this.V)return this.V;this.V=this.j.getSize();if(0==this.V.width||0==this.V.height){var a=this.h.getVisibilityState();("prerender"==a||"visible"==a)&&.01>Math.random()&&w().error("Viewport","viewport has zero dimensions")}return this.V};f.getHeight=function(){return this.getSize().height};
f.getWidth=function(){return this.getSize().width};f.getScrollWidth=function(){return this.j.getScrollWidth()};f.getScrollHeight=function(){return this.j.getScrollHeight()};f.getContentHeight=function(){return this.j.getContentHeight()};f.contentHeightChanged=function(){this.j.contentHeightChanged()};f.getRect=function(){if(null==this.Qb){var a=0,b=0;this.F||(a=this.getScrollTop(),b=this.getScrollLeft());var c=this.getSize();this.Qb=E(b,a,c.width,c.height)}return this.Qb};
f.getLayoutRect=function(a){var b=this.getScrollLeft(),c=this.getScrollTop(),d=ae(a,this.ampdoc.win);return d?(a=this.j.getLayoutRect(a,0,0),b=this.j.getLayoutRect(d,b,c),E(Math.round(a.left+b.left),Math.round(a.top+b.top),Math.round(a.width),Math.round(a.height))):this.j.getLayoutRect(a,b,c)};
f.getClientRectAsync=function(a){var b=this;if(this.F)return this.o.measurePromise(function(){return b.getLayoutRect(a)});var c=this.o.measurePromise(function(){return a.getBoundingClientRect()}),d=this.j.getRootClientRectAsync(),e=ae(a,this.ampdoc.win);e&&(d=this.o.measurePromise(function(){return e.getBoundingClientRect()}));return Promise.all([c,d]).then(function(a){var b=a[0];return(a=a[1])?fc(b,a.left,a.top):E(Number(b.left),Number(b.top),Number(b.width),Number(b.height))})};
f.supportsPositionFixed=function(){return this.j.supportsPositionFixed()};f.isDeclaredFixed=function(a){return this.ia.isDeclaredFixed(a)};f.scrollIntoView=function(a){var b=this;return qm(this,a).then(function(c){return rm(b,a,c)})};function rm(a,b,c){var d=a.j.getLayoutRect(b).top,e=a.F?sm(a,c).then(function(a){return d+a}):Ta(function(){return Math.max(0,d-a.G)});e.then(function(b){return tm(a,c,b)})}
f.animateScrollIntoView=function(a,b,c,d){var e=this;b=void 0===b?500:b;c=void 0===c?"ease-in":c;d=void 0===d?"top":d;return qm(this,a).then(function(g){return e.animateScrollWithinParent(a,g,b,c,d)})};
f.animateScrollWithinParent=function(a,b,c,d,e){var g=this,h=this.j.getLayoutRect(a);a=(b==this.j.getScrollingElement()?this.getSize():this.getLayoutRect(b)).height;switch(e){case "bottom":var k=-a+h.height;break;case "center":k=-a/2+h.height/2;break;default:k=0}return sm(this,b).then(function(a){if(g.F)var e=Math.max(0,h.top+k+a);else{var l=h.top-g.G+k;e=Math.max(0,l)}if(e!=a)return um(g,b,a,e,c,d)})};
function um(a,b,c,d,e,g){var h=om(c,d);return Dl(b,function(c){tm(a,b,h(c))},e,g).thenAlways(function(){tm(a,b,d)})}function qm(a,b){return a.o.measurePromise(function(){return ub(b,".i-amphtml-scrollable")||a.j.getScrollingElement()})}function tm(a,b,c){b==a.j.getScrollingElement()?a.j.setScrollTop(c):a.o.mutate(function(){b.scrollTop=c})}function sm(a,b){return b==a.j.getScrollingElement()?Ta(function(){return a.getScrollTop()}):a.o.measurePromise(function(){return b.scrollTop})}
f.getScrollingElement=function(){return this.j.getScrollingElement()};f.onChanged=function(a){return this.Re.add(a)};f.onScroll=function(a){return this.Z.add(a)};f.onResize=function(a){return this.Y.add(a)};f.enterLightboxMode=function(a,b){this.h.sendMessage("requestFullOverlay",{},!0);this.enterOverlayMode();this.ia.enterLightbox(a,b);a&&this.maybeEnterFieLightboxMode(a);return this.j.updateLightboxMode(!0)};
f.leaveLightboxMode=function(a){this.h.sendMessage("cancelFullOverlay",{},!0);this.ia.leaveLightbox();this.leaveOverlayMode();a&&this.maybeLeaveFieLightboxMode(a);return this.j.updateLightboxMode(!1)};f.isLightboxExperimentOn=function(){return L(this.ampdoc.win,"amp-lightbox-a4a-proto")};f.maybeEnterFieLightboxMode=function(a){var b=vm(this,a);b&&(this.isLightboxExperimentOn(),b.enterFullOverlayMode())};f.maybeLeaveFieLightboxMode=function(a){(a=vm(this,a))&&a.leaveFullOverlayMode()};
function vm(a,b){var c=ae(b,a.ampdoc.win);return c&&c.__AMP_EMBED__}f.enterOverlayMode=function(){this.disableTouchZoom();this.disableScroll()};f.leaveOverlayMode=function(){this.resetScroll();this.restoreOriginalTouchZoom()};f.disableScroll=function(){var a=this;this.o.mutate(function(){a.j.disableScroll()})};f.resetScroll=function(){var a=this;this.o.mutate(function(){a.j.resetScroll()})};
f.resetTouchZoom=function(){var a=this,b=this.ampdoc.win.innerHeight,c=this.Oa.documentElement.clientHeight;b&&c&&b===c||this.disableTouchZoom()&&this.T.delay(function(){a.restoreOriginalTouchZoom()},50)};
f.disableTouchZoom=function(){var a=wm(this);if(!a)return!1;var b=a.content,c={"maximum-scale":"1","user-scalable":"no"};var d=Object.create(null);if(b)for(var e=b.split(/,|;/),g=0;g<e.length;g++){var h=e[g].split("="),k=h[0].trim();h=h[1];h=(h||"").trim();k&&(d[k]=h)}e=!1;for(var l in c)d[l]!==c[l]&&(e=!0,void 0!==c[l]?d[l]=c[l]:delete d[l]);if(e){b="";for(var m in d)0<b.length&&(b+=","),b=d[m]?b+(m+"="+d[m]):b+m}d=b;return xm(this,d)};
f.restoreOriginalTouchZoom=function(){return void 0!==this.de?xm(this,this.de):!1};f.hasScrolled=function(){return 0<this.Lf};f.updateFixedLayer=function(){this.ia.update()};f.addToFixedLayer=function(a,b){return this.ia.addElement(a,b)};f.removeFromFixedLayer=function(a){this.ia.removeElement(a)};function xm(a,b){return(a=wm(a))&&a.content!=b?(a.content=b,!0):!1}
function wm(a){if(Mb(a.ampdoc.win))return null;void 0===a.Xb&&(a.Xb=a.Oa.querySelector("meta[name=viewport]"),a.Xb&&(a.de=a.Xb.content));return a.Xb}f.Ch=function(a){var b=a.scrollTop;this.setScrollTop(b)};f.Ah=function(a){var b=this,c=a.paddingTop,d=a.duration||0,e=a.curve,g=a["transient"];void 0!=c&&c!=this.G&&(this.qc=this.G,this.G=c,this.G<this.qc?(this.j.hideViewerHeader(g,this.qc),ym(this,d,e,g)):ym(this,d,e,g).then(function(){b.j.showViewerHeader(g,b.G)}))};
f.zg=function(a){a?this.disableScroll():this.resetScroll()};function ym(a,b,c,d){a.ia.updatePaddingTop(a.G,d);if(0>=b)return Promise.resolve();var e=om(a.qc-a.G,0);return Dl(a.ampdoc.getRootNode(),function(b){b=e(b);a.ia.transformMutate("translateY("+b+"px)")},b,c).thenAlways(function(){a.ia.transformMutate(null)})}function zm(a,b,c){var d=a.getSize(),e=a.getScrollTop(),g=a.getScrollLeft();a.Re.fire({relayoutAll:b,top:e,left:g,width:d.width,height:d.height,velocity:c})}
f.ph=function(){var a=this;this.Qb=null;this.Lf++;this.Ua=this.j.getScrollLeft();var b=this.j.getScrollTop();if(!(0>b)){this.ua=b;if(!this.ke){this.ke=!0;var c=Date.now();this.T.delay(function(){a.o.measure(function(){a.Tf(c,b)})},36)}this.Z.fire()}};f.Tf=function(a,b){var c=this,d=this.ua=this.j.getScrollTop(),e=Date.now(),g=0;e!=a&&(g=(d-b)/(e-a));.03>Math.abs(g)?(zm(this,!1,g),this.ke=!1):this.T.delay(function(){return c.o.measure(c.Tf.bind(c,e,d))},20)};
f.qh=function(){var a=this;this.je||(this.je=!0,this.o.measure(function(){a.je=!1;a.h.sendMessage("scroll",B({scrollTop:a.getScrollTop()}),!0)}))};f.Jf=function(){var a=this;this.Qb=null;var b=this.V;this.V=null;var c=this.getSize();this.ia.update().then(function(){var d=!b||b.width!=c.width;zm(a,d,0);var e=d||b.height!=c.height;e&&a.Y.fire({relayoutAll:d,width:c.width,height:c.height})})};
function Am(a){var b=T(a),c;if(c=a.isSingleDoc()){c=a.win;var d=b.getParam("viewportType")||Bm;oe(c).isIos()&&d==Bm?!Mb(c)&&r(c).development?c=Cm:(Mb(c),c=Mb(c)&&b.isEmbedded()?Cm:d):c=d;c=c==Cm}c=c?L(a.win,"ios-embed-sd")&&a.win.Element.prototype.attachShadow&&11<=oe(a.win).getMajorVersion()?new Vl(a.win):new Wl(a.win):new Xl(a);return new pm(a,c,b)}var Bm="natural",Cm="natural-ios-embed";var Dm=['\n      <div class="i-amphtml-jank-meter"></div>'];Dm.raw=['\n      <div class="i-amphtml-jank-meter"></div>'];function Em(a){this.A=a;this.uc=this.tc=this.Wb=this.$b=0;this.Sb=null;this.ya=Vd(a);this.Gb=this.Ge=this.He=null;Fm(this)}Em.prototype.onScheduled=function(){Gm(this)&&null==this.Sb&&(this.Sb=this.A.Date.now())};
Em.prototype.onRun=function(){if(Gm(this)&&null!=this.Sb){var a=this.A.Date.now()-this.Sb;this.Sb=null;this.Wb++;16<a&&(this.$b++,w().info("JANK","Paint latency: "+a+"ms"));if(this.ya&&200==this.Wb){var b=this.A.Math.floor((this.Wb-this.$b)/this.Wb*100);this.ya.tickDelta("gfp",b);this.ya.tickDelta("bf",this.$b);this.Gb&&(this.ya.tickDelta("lts",this.uc),this.ya.tickDelta("ltc",this.tc),this.Gb.disconnect(),this.Gb=null);var c=0;this.He&&null!=this.Ge&&(c=this.A.Math.max(0,this.A.Math.floor(100*this.He.level-
this.Ge)),this.ya.tickDelta("bd",c));this.ya.flush();if(L(this.A,"jank-meter")){var d=c,e=this.A.document,g=Oe(e)(Dm);g.textContent="bf:"+this.$b+", lts: "+this.uc+", "+("ltc:"+this.tc+", bd:"+d);e.body.appendChild(g)}}}};function Gm(a){return L(a.A,"jank-meter")||a.ya&&a.ya.isPerformanceTrackingOn()&&200>a.Wb}
function Fm(a){Gm(a)&&Hm(a.A)&&(a.Gb=new a.A.PerformanceObserver(function(b){for(var c=b.getEntries(),d=0;d<c.length;d++)if("longtask"==c[d].entryType){var e=a.A.Math.floor(c[d].duration/50);"cross-origin-descendant"==c[d].name?(a.tc+=e,u().info("LONGTASK","from child frame "+c[d].duration+"ms")):(a.uc+=e,w().info("LONGTASK","from self frame "+c[d].duration+"ms"))}}),a.Gb.observe({entryTypes:["longtask"]}))}
function Hm(a){return!!a.PerformanceObserver&&!!a.TaskAttributionTiming&&"containerName"in a.TaskAttributionTiming.prototype};function Im(a){var b=this;this.win=a;this.La=le(this.win);this.tb=O(this.win,"documentState");this.gh=Jm(this);this.J=[];this.Zd=[];this.pe=[];this.Yd=[];this.ta=!1;this.Xd=this.Ac=null;this.ld=this.oh.bind(this);this.Ig=new Gh(this.win,this.ld,16);this.Fe=new Gh(this.win,this.ld,40);this.ne=null;var c=this.ce.bind(this);if(this.La.isSingleDoc())Wd(this.La.getAmpDoc(),"viewer").then(function(a){b.ne=a;a.onVisibilityChanged(c)});else this.tb.onVisibilityChanged(c);this.kf=new Em(this.win)}f=Im.prototype;
f.ce=function(){this.ta&&Km(this)};f.run=function(a,b){this.J.push(a);this.pe.push(b||void 0);this.Ta()};f.runPromise=function(a,b){this.run(a,b);if(this.Ac)return this.Ac;a=new C;this.Xd=a.resolve;return this.Ac=a.promise};f.createTask=function(a){var b=this;return function(c){b.run(a,c)}};f.mutate=function(a){this.run({measure:void 0,mutate:a})};f.mutatePromise=function(a){return this.runPromise({measure:void 0,mutate:a})};f.measure=function(a){this.run({measure:a,mutate:void 0})};
f.measurePromise=function(a){var b=this;return new Promise(function(c){b.measure(function(){c(a())})})};f.canAnimate=function(a){return Lm(this,a)};function Lm(a,b){return a.tb.isHidden()?!1:a.ne?a.ne.isVisible():b?(a=a.La.getAmpDocIfAvailable(b),!a||T(a).isVisible()):!0}f.runAnim=function(a,b,c){if(!Lm(this,a))return w().warn("VSYNC","Did not schedule a vsync request, because document was invisible"),!1;this.run(b,c);return!0};
f.createAnimTask=function(a,b){var c=this;return function(d){return c.runAnim(a,b,d)}};f.runAnimMutateSeries=function(a,b,c){var d=this;return Lm(this,a)?new Promise(function(e,g){var h=Date.now(),k=0,l=d.createAnimTask(a,{mutate:function(a){var d=Date.now()-h;b(d,d-k,a)?c&&d>c?g(Error("timeout")):(k=d,l(a)):e()}});l({})}):Promise.reject(Error("CANCELLED"))};f.Ta=function(){this.ta||(this.ta=!0,this.kf.onScheduled(),Km(this))};function Km(a){Lm(a)?(a.gh(a.ld),a.Fe.schedule()):a.Ig.schedule()}
f.oh=function(){this.Fe.cancel();this.ta=!1;this.kf.onRun();var a=this.J,b=this.pe,c=this.Xd;this.Ac=this.Xd=null;this.J=this.Zd;this.pe=this.Yd;for(var d=0;d<a.length;d++)a[d].measure&&!Mm(a[d].measure,b[d])&&(a[d].mutate=void 0);for(d=0;d<a.length;d++)a[d].mutate&&Mm(a[d].mutate,b[d]);this.Zd=a;this.Yd=b;this.Zd.length=0;this.Yd.length=0;c&&c()};
function Jm(a){var b=a.win.requestAnimationFrame||a.win.webkitRequestAnimationFrame;if(b)return b.bind(a.win);var c=0;return function(b){var d=Date.now(),g=Math.max(0,16-(d-c));c=d+g;a.win.setTimeout(b,g)}}function Mm(a,b){try{var c=a(b);void 0!==c&&w().error("VSYNC","callback returned a value but vsync cannot propogate it: %s",a.toString())}catch(d){return Oa(d),!1}return!0};var Nm=/nochunking=1/.test(self.location.hash),Om=Promise.resolve();function Pm(a,b){Nm?Om.then(b):(a=a.documentElement,N(a,"chunk",Qm),P(a,"chunk").runForStartup(b))}function Rm(a){this.state="not_run";this.sd=a}function Sm(a,b){if("run"!=a.state){a.state="run";try{a.sd(b)}catch(c){throw a.xf(),c;}}}Rm.prototype.Hh=function(){return this.sd.displayName||this.sd.name};Rm.prototype.xf=function(){};Rm.prototype.gf=function(){return!1};Rm.prototype.$f=function(){return!0};
function Tm(a,b,c){Rm.call(this,a);var d=this;this.A=b;this.h=null;c.then(function(a){d.h=a;d.h.isVisible()&&Sm(d,null);d.h.onVisibilityChanged(function(){d.h.isVisible()&&Sm(d,null)})})}na(Tm,Rm);Tm.prototype.xf=function(){Uf(self.document)};Tm.prototype.gf=function(){return this.h?this.h.isVisible():this.A.document.hidden?!1:!/visibilityState=(hidden|prerender)/.test(this.A.location.hash)};Tm.prototype.$f=function(){return!!this.h};
function Qm(a){var b=this;this.A=a.win;this.J=new Ce;this.Je=this.Xe.bind(this);this.Bh=Wd(a,"viewer");this.A.addEventListener("message",function(a){"amp-macro-task"==a.data&&b.Xe(null)})}Qm.prototype.run=function(a,b){a=new Rm(a);Um(this,a,b)};Qm.prototype.runForStartup=function(a){a=new Tm(a,this.A,this.Bh);Um(this,a,Number.POSITIVE_INFINITY)};function Um(a,b,c){a.J.enqueue(b,c);Om.then(function(){a.Ta()})}
function Vm(a,b){for(var c=a.J.peek();c&&"not_run"!==c.state;)a.J.dequeue(),c=a.J.peek();c&&b&&a.J.dequeue();return c}Qm.prototype.Xe=function(a){var b=this,c=Vm(this,!0);if(!c)return!1;Sm(c,a);Om.then(function(){b.Ta()});return!0};function Wm(a){Om.then(function(){a.Je(null)})}Qm.prototype.Ta=function(){var a=Vm(this);a&&(a.gf()?Wm(this):a.$f()&&this.A.requestIdleCallback?Xm(this.A,this.Je):this.A.postMessage("amp-macro-task","*"))};
function Xm(a,b){var c=15;function d(g){if(g.timeRemaining()<c){var h=2E3-(Date.now()-e);0>=h||g.didTimeout?b(g):a.requestIdleCallback(d,{timeout:h})}else b(g)}var e=Date.now();a.requestIdleCallback(d,{timeout:2E3})};(function(){Qa=Ha;w();u()})();(function(a){self.reportError=a})(function(a,b,c){wg(b,c);b&&a&&Ea(b.message)&&!(0<=b.message.indexOf("\u200b\u200b\u200b\u200b"))&&le(a).isSingleDoc()&&(b=B({errorName:b.name,errorMessage:b.message}),a=le(a).getAmpDoc().getRootNode(),rg(a.documentElement||a.body||a,b))}.bind(null,self));
function Ym(a){M(a,"crypto",Ti);M(a,"batched-xhr",th);M(a,"documentState",$i);M(a,"platform",rj);M(a,"templates",Cf);M(a,"timer",Ak);M(a,"timer",Ak);M(a,"vsync",Im);M(a,"xhr",rh);M(a,"input",qj)}
function Zm(a){var b=self;function c(a){function c(){g.then(function(){"function"==typeof a?a(b.AMP,b.AMP._):e.registerExtension(a.n,a.f,b.AMP)})}"function"!=typeof a&&a.i?$m(e,a).then(function(){return an(b,a,c)}):an(b,a,c)}if(b.AMP_TAG)Promise.resolve();else{b.AMP_TAG=!0;var d=b.AMP||[];M(b,"extensions",gi);var e=me(b);Ym(b);ri(b);b.AMP={win:b,_:b.AMP?b.AMP._:void 0};b.AMP.config=Wc;b.AMP.BaseElement=zf;b.AMP.BaseTemplate=Bf;b.AMP.registerElement=e.addElement.bind(e);b.AMP.registerTemplate=function(a,
c){var d=O(b,"templates");if(d.nb[a]){var e=d.Rc[a];z(e,"Duplicate template type: %s",a);delete d.Rc[a];e(c)}else d.nb[a]=Promise.resolve(c)};b.AMP.registerServiceForDoc=e.addService.bind(e);b.AMP.isExperimentOn=L.bind(null,b);b.AMP.toggleExperiment=zd.bind(null,b);b.AMP.setLogLevel=Ga.bind(null);b.AMP.setTickFunction=function(){};var g=a(b,e);for(a=0;a<d.length;a++){var h=d[a];if(bn(b,h))d.splice(a--,1);else if("function"==typeof h||"high"==h.p){try{c(h)}catch(k){w().error("runtime","Extension failed: ",
k,h.n)}d.splice(a--,1)}}cn(b,function(){b.AMP.push=function(a){bn(b,a)||c(a)};for(var a=0;a<d.length;a++){var e=d[a];if(!bn(b,e))try{c(e)}catch(m){w().error("runtime","Extension failed: ",m,e.n)}}d.length=0});b.AMP.push||(b.AMP.push=d.push.bind(d));oe(b).isIos()&&V(b.document.documentElement,"cursor","pointer")}}
function $m(a,b){if(Array.isArray(b.i))return b=b.i.map(function(b){return a.preloadExtension(b)}),Promise.all(b);if("string"==typeof b.i)return a.preloadExtension(b.i);w().error("RUNTIME","dependency is neither an array or a string",b.i);return Promise.resolve()}function an(a,b,c){"function"==typeof b||"high"==b.p?Promise.resolve().then(c):(c.displayName=b.n,Pm(a.document,c))}
function dn(){Zm(function(a){var b=a.document.documentElement,c=le(a).getAmpDoc();a.AMP.ampdoc=c;var d=T(b);a.AMP.viewer=d;r().development&&(a.AMP.toggleRuntime=d.toggleRuntime.bind(d),a.AMP.resources=pe(b));b=re(b);a.AMP.viewport={};a.AMP.viewport.getScrollLeft=b.getScrollLeft.bind(b);a.AMP.viewport.getScrollWidth=b.getScrollWidth.bind(b);a.AMP.viewport.getWidth=b.getWidth.bind(b);return eb(a.document).then(function(){Uh(c)})})}
function bn(a,b){if(!L(a,"version-locking")||"function"==typeof b||"1903070012530"==b.v)return!1;var c=a.document.head.querySelector('[custom-element="'+b.n+'"]:not([i-amphtml-inserted])');if(!c)return!1;me(a).reloadExtension(b.n,c);return!0}function cn(a,b){L(a,"pump-early-frame")?a.document.body?0<Kf(a).length?b():S(a).delay(b,1):b():b()};function en(){var a=self;cb(a.document,function(){return fn(a)})}
function fn(a){var b=0,c=a.performance;c&&c.timing&&c.timing.responseStart&&(b=Date.now()-c.timing.responseStart);var d=Math.max(1,250-b);a.setTimeout(function(){gn(a);var b=a.document.styleSheets;if(b){for(var c=a.document.querySelectorAll('link[rel~="stylesheet"]:not([href^="'+String(Vc.cdn).replace(Ua,Va)+'"])'),h=[],k=0;k<c.length;k++){for(var l=c[k],m=!1,n=0;n<b.length;n++)if(b[n].ownerNode==l){m=!0;break}m||h.push(l)}k={};for(l=0;l<h.length;k={ra:k.ra,media:k.media},l++)k.ra=h[l],k.media=k.ra.media||
"all",k.ra.media="not-matching",k.ra.onload=function(b){return function(){b.ra.media=b.media;gn(a)}}(k),k.ra.setAttribute("i-amphtml-timeout",d),k.ra.parentNode.insertBefore(k.ra,k.ra.nextSibling)}},d)}function gn(a){if(L(a,"font-display-swap")&&(a=a.document,a.fonts&&a.fonts.values))for(var b=a.fonts.values();a=b.next();){var c=a.value;if(!c)break;"loading"==c.status&&"display"in c&&"auto"==c.display&&(c.display="swap")}};function hn(a){var b=a.win,c=a.getRootNode();Zl(a,b,re(a).getLayoutRect(c.documentElement||c.body||c)).then(function(){b.dispatchEvent(nf(b));b.parent&&b.parent.postMessage("amp-ini-load","*")})};function jn(a){var b=!0;this.win=a;this.lb=null;b&&(this.lb=new kn(a));this.Ae=L(a,"ampdoc-closest");this.va=null}f=jn.prototype;f.isSingleDoc=function(){return!!this.lb};f.hasAmpDocShell=function(){return!!this.va};
f.getAmpDocIfAvailable=function(a,b){b=void 0===b?{}:b;var c=void 0===b.closestAmpDoc?!1:b.closestAmpDoc;if(this.lb&&!c&&!this.Ae)return this.lb;if(L(this.win,"ampdoc-shell")&&a===this.win.document){if(this.va)return this.va;throw w().createError("Ampdoc for shell has not been installed");}for(b=a;b;){if(b.D&&(this.Ae||!c))return b.D;var d=ae(b,this.win);if(d)b=d;else{b=mg(b);if(!b){if(this.va)return this.va;break}if(d=b.__AMPDOC)return d;b=b.host}}return this.lb?this.lb:null};
f.getAmpDoc=function(a,b){b=this.getAmpDocIfAvailable(a,b);if(!b)throw w().createError("No ampdoc found for",a);return b};f.installShadowDoc=function(a,b){a=new ln(this.win,a,b);return b.__AMPDOC=a};f.installShellShadowDoc=function(){var a=this;this.va=new mn(this.win);this.win.document.__AMPDOC=this.va;eb(this.win.document).then(function(b){a.va.setBody(b.body);a.va.setReady()});return this.va};function nn(a){this.win=a;this.S=new Ch;this.Ue=[]}f=nn.prototype;f.isSingleDoc=function(){return null};
f.getWin=function(){return this.win};f.signals=function(){return this.S};f.declaresExtension=function(a){return-1!=this.Ue.indexOf(a)};f.declareExtension=function(a){this.declaresExtension(a)||this.Ue.push(a)};f.getRootNode=function(){return null};f.getHeadNode=function(){};f.isBodyAvailable=function(){return!1};f.getBody=function(){return null};f.whenBodyAvailable=function(){return null};f.isReady=function(){return null};f.whenReady=function(){return null};f.getUrl=function(){return null};
f.getElementById=function(a){return this.getRootNode().getElementById(a)};f.contains=function(a){return this.getRootNode().contains(a)};function kn(a){nn.call(this,a);var b=this;this.fd=this.win.document.body?Promise.resolve(this.win.document.body):eb(this.win.document).then(function(){return b.getBody()});this.ie=eb(this.win.document)}na(kn,nn);f=kn.prototype;f.isSingleDoc=function(){return!0};f.getRootNode=function(){return this.win.document};f.getUrl=function(){return this.win.location.href};
f.getHeadNode=function(){return this.win.document.head};f.isBodyAvailable=function(){return!!this.win.document.body};f.getBody=function(){return this.win.document.body};f.whenBodyAvailable=function(){return this.fd};f.isReady=function(){return ab(this.win.document)};f.whenReady=function(){return this.ie};function ln(a,b,c){nn.call(this,a);this.te=b;this.Pf=c;this.hd=null;var d=new C;this.fd=d.promise;this.Ie=d.resolve;this.Ff=!1;var e=new C;this.ie=e.promise;this.Ef=e.resolve}na(ln,nn);f=ln.prototype;
f.isSingleDoc=function(){return!1};f.getRootNode=function(){return this.Pf};f.getUrl=function(){return this.te};f.getHeadNode=function(){return this.Pf};f.isBodyAvailable=function(){return!!this.hd};f.getBody=function(){return this.hd};f.setBody=function(a){this.hd=a;this.Ie(a);this.Ie=void 0};f.whenBodyAvailable=function(){return this.fd};f.isReady=function(){return this.Ff};f.setReady=function(){this.Ff=!0;this.Ef();this.Ef=void 0};f.whenReady=function(){return this.ie};
function mn(a){ln.call(this,a,a.location.href,a.document)}na(mn,ln);mn.prototype.getHeadNode=function(){return this.win.document.head};function on(){var a=self;M(a,"ampdoc",function(){return new jn(a)})};function pn(a){this.A=a;this.nh=r().rtvVersion||null;this.zd=a.parent;this.le=null;this.Yg=1;this.Jb=A();qn(this)}f=pn.prototype;f.getData=function(a,b,c){var d=this.Yg++,e=this.registerCallback(a+"-result",function(a){a.messageId===d&&(e(),c(a.content))}),g={};g.payload=b;g.messageId=d;this.sendMessage(a,g)};f.makeRequest=function(a,b,c){b=this.registerCallback(b,c);this.sendMessage(a);return b};
f.requestOnce=function(a,b,c){var d=this.registerCallback(b,function(a){d();c(a)});this.sendMessage(a);return d};f.registerCallback=function(a,b){var c=a;c in this.Jb||(this.Jb[c]=new X);return this.Jb[c].add(b)};f.sendMessage=function(a,b){this.zd.postMessage(Ih(a,this.le,b,this.nh),"*")};
function qn(a){Hh(a.A,function(b){if(b.source==a.zd){var c=b.data;if("string"==typeof c&&0==c.indexOf("amp-")&&-1!=c.indexOf("{")){var d=c.indexOf("{");try{var e=Qb(c.substr(d))}catch(g){w().error("MESSAGING","Failed to parse message: "+c,g),e=null}}else e=null;e&&e.sentinel==a.le&&(e.origin=b.origin,b=e.type,b in a.Jb&&a.Jb[b].fire(e))}})}f.setHostWindow=function(a){this.zd=a};f.setSentinel=function(a){this.le=a};function rn(a){var b=new pn(a),c=Rb(a.name),d=null;c&&c._context&&(d=c._context.sentinel);b.setSentinel(d||String(a.Math.random()).substr(2));b.setHostWindow(a.top);return b};function sn(a,b){return qe(a).runPromise({measure:function(b){b.width=a.innerWidth;b.height=a.innerHeight},mutate:function(a){U(b,{background:"transparent",left:"50%",top:"50%",right:"auto",bottom:"auto",position:"absolute",height:a.height+"px",width:a.width+"px","margin-top":-a.height/2+"px","margin-left":-a.width/2+"px"})}},{})}
function tn(a,b){return qe(a).mutatePromise(function(){for(var a="position left top right bottom width height margin-left margin-top".split(" "),d=0;d<a.length;d++)V(b,a[d],null)})}function un(a){var b=this;this.win=a;this.Z=new X;this.Y=new X;var c=a.innerWidth,d=a.innerHeight;this.ha=E(0,0,c,d);this.ac=E(0,d+1,c,d);this.lc=O(a,"iframeMessagingClient");this.Lc=null;this.Dg=ng(this.win,function(){b.Z.fire()});this.F=L(this.win,"layers")}f=un.prototype;f.connect=function(){vn(this)};
function vn(a){a.lc.makeRequest("send-positions","position",function(b){var c=a.ha;a.ha=b.viewportRect;wn(a,b.targetRect);b=a.ha;var d=c;b.width==d.width&&b.height==d.height||a.Y.fire();b=a.ha;d=c;b.left==d.left&&b.top==d.top||a.Dg()})}f.getLayoutRect=function(a){a=a.getBoundingClientRect();var b=a.left,c=a.top;this.F&&(b-=this.ha.left,c-=this.ha.top);return E(Math.round(b+this.ac.left),Math.round(c+this.ac.top),Math.round(a.width),Math.round(a.height))};f.onScroll=function(a){this.Z.add(a)};
f.onResize=function(a){this.Y.add(a)};f.getSize=function(){return{width:this.ha.width,height:this.ha.height}};f.getScrollTop=function(){return this.ha.top};f.getScrollLeft=function(){return this.ha.left};f.getScrollingElement=function(){return this.getBodyElement()};f.getScrollingElementScrollsLikeViewport=function(){return!0};f.supportsPositionFixed=function(){return!1};
function wn(a,b){if(b){var c=fc(b,a.ha.left,a.ha.top),d=c,e=a.ac;if(d.left!=e.left||d.top!=e.top||d.width!=e.width||d.height!=e.height)a.ac=c,xn(a)}}f.getChildResources=function(){return pe(this.win.document.documentElement).get()};function xn(a){a.getChildResources().forEach(function(a){return a.measure()})}f.updateLightboxMode=function(a){return a?yn(this):zn(this)};
f.getRootClientRectAsync=function(){var a=this;this.Lc||(this.Lc=new Promise(function(b){a.lc.requestOnce("send-positions","position",function(c){a.Lc=null;b(c.targetRect)})}));return this.Lc};function yn(a){return sn(a.win,a.getBodyElement()).then(function(){return An(a)})}function zn(a){return Bn(a).then(function(){return tn(a.win,a.getBodyElement())})}
function An(a){return new Promise(function(b,c){var d=a.lc.makeRequest("full-overlay-frame","full-overlay-frame-response",function(e){d();e.success?(wn(a,e.boxRect),b()):c("Request to open lightbox rejected by host document")})})}function Bn(a){return new Promise(function(b){var c=a.lc.makeRequest("cancel-full-overlay-frame","cancel-full-overlay-frame-response",function(d){c();wn(a,d.boxRect);b()})})}f.getBodyElement=function(){return this.win.document.body};f.disconnect=function(){};
f.updatePaddingTop=function(){};f.hideViewerHeader=function(){};f.showViewerHeader=function(){};f.disableScroll=function(){};f.resetScroll=function(){};f.ensureReadyForElements=function(){};f.setScrollTop=function(){};f.getScrollWidth=function(){return 0};f.getScrollHeight=function(){return 0};f.getContentHeight=function(){return 0};f.contentHeightChanged=function(){};f.getBorderTop=function(){return 0};f.requiresFixedLayerTransfer=function(){return!1};
function Cn(a){var b=new un(a.win),c=T(a);N(a,"viewport",function(){return new pm(a,b,c)},!0)};function Dn(a){var b=this;this.win=a;this.Dd=this.win.Date.now();this.vb=[];this.w=this.h=null;this.Eb=this.Md=!1;this.We=A();this.Ce="";this.af=this.Ze=this.rf=null;this.addEnabledExperiment("rtv-"+r(this.win).rtvVersion);xd(this.win)&&this.addEnabledExperiment("canary");fb(a.document).then(function(){b.tick("ol");if(!b.win.PerformancePaintTiming&&b.win.chrome&&"function"==typeof b.win.chrome.loadTimes){var a=1E3*b.win.chrome.loadTimes().firstPaintTime-b.win.performance.timing.navigationStart;1>=
a||b.tickDelta("fp",a)}b.flush()});En(this)}f=Dn.prototype;f.coreServicesAvailable=function(){var a=this,b=this.win.document.documentElement;this.h=T(b);this.w=pe(b);this.Eb=this.h.isEmbedded()&&"1"===this.h.getParam("csi");this.h.onVisibilityChanged(this.flush.bind(this));Fn(this);var c=this.h.whenMessagingReady();this.h.whenFirstVisible().then(function(){a.tick("ofv");a.flush()});return c?c.then(function(){a.Md=!0;a.tickDelta("msr",a.win.Date.now()-a.Dd);Gn(a);a.flush()}):Promise.resolve()};
function En(a){function b(b){"first-paint"!=b.name||c?"first-contentful-paint"!=b.name||d?"firstInput"!==b.entryType||e||(a.tickDelta("fid",b.processingStart-b.startTime),e=!0):(a.tickDelta("fcp",b.startTime+b.duration),d=!0):(a.tickDelta("fp",b.startTime+b.duration),c=!0)}var c=!1,d=!1,e=!1,g=[];a.win.PerformancePaintTiming&&(a.win.performance.getEntriesByType("paint").forEach(b),g.push("paint"));a.win.PerformanceEventTiming&&(a.win.performance.getEntriesByType("firstInput").forEach(b),g.push("firstInput"));
0!==g.length&&(new a.win.PerformanceObserver(function(c){c.getEntries().forEach(b);a.flush()})).observe({entryTypes:g})}function Fn(a){var b=!a.h.hasBeenVisible(),c=b?-1:a.Dd;b&&a.h.whenFirstVisible().then(function(){c=a.win.Date.now();a.mark("visible")});Hn(a).then(function(){if(b){var d=-1<c?a.win.Date.now()-c:0;a.h.whenFirstVisible().then(function(){a.tickDelta("pc",d)});In(a,d);a.mark("pc")}else a.tick("pc"),In(a,a.win.Date.now()-c);a.flush()})}
function Hn(a){var b=re(a.win.document.documentElement).getSize();b=E(0,0,b.width,b.height);return a.w.getResourcesInRect(a.win,b,!0).then(function(a){return Promise.all(a.map(function(a){return a.loadedOnce()}))})}
f.tick=function(a,b){var c=void 0==b?this.win.Date.now():void 0,d=B({label:a,value:c,delta:null!=b?Math.max(b,0):void 0});this.Md&&this.Eb?this.h.sendMessage("tick",d):(50<=this.vb.length&&this.vb.shift(),this.vb.push(d));1==arguments.length&&this.mark(a);var e=Math.round(null!=b?Math.max(b,0):c-this.Dd);switch(a){case "fcp":this.Ze=e;break;case "pc":this.af=e;break;case "mbv":this.rf=e}};f.mark=function(a){this.win.performance&&this.win.performance.mark&&1==arguments.length&&this.win.performance.mark(a)};
f.tickDelta=function(a,b){this.tick(a,b)};f.tickSinceVisible=function(a){var b=this.win.Date.now(),c=this.h?this.h.getFirstVisibleTime():0;this.tickDelta(a,c?Math.max(b-c,0):0)};f.flush=function(){this.Md&&this.Eb&&this.h.sendMessage("sendCsi",B({ampexp:this.Ce}),!0)};f.throttledFlush=function(){this.Sf||(this.Sf=ng(this.win,this.flush.bind(this)));this.Sf()};f.addEnabledExperiment=function(a){this.We[a]=!0;this.Ce=Object.keys(this.We).join(",")};
function Gn(a){a.h&&(a.Eb&&a.vb.forEach(function(b){a.h.sendMessage("tick",b)}),a.vb.length=0)}function In(a,b){a.h&&a.h.sendMessage("prerenderComplete",B({value:b}),!0)}f.isPerformanceTrackingOn=function(){return this.Eb};f.getFirstContentfulPaint=function(){return this.Ze};f.getMakeBodyVisible=function(){return this.rf};f.getFirstViewportReady=function(){return this.af};function Jn(){var a=self,b=a.location.href;if(!hb(b,"about:")){var c=!1;r().development&&(c="0"!==q(a.location.originalHash||a.location.hash).validate);c?Kn(a.document,Vc.cdn+"/v0/validator.js").then(function(){amp.validator.validateUrlAndLog(b,a.document,r().filter)}):r().examiner&&Kn(a.document,Vc.cdn+"/examiner.js")}}function Kn(a,b){var c=a.createElement("script");c.src=b;b=rf(c).then(function(){a.head.removeChild(c)},function(){});a.head.appendChild(c);return b};r(self).runtime="inabox";r(self).a4aId=function(a){var b=a.document.head.querySelector('meta[name="amp4ads-id"]');return b?b.getAttribute("content"):null}(self);var Ln;try{zg(),on(),Ln=le(self)}catch(a){throw Uf(self.document),a;}
Pm(self.document,function(){var a=Ln.getAmpDoc(self.document);M(self,"performance",Dn);var b=ne(self);b.tick("is");self.document.documentElement.classList.add("i-amphtml-inabox");var c=cssText$$module$build$css+"html.i-amphtml-inabox{width:100%!important;height:100%!important}";Lf(a,c,function(){Pm(self.document,function(){Ym(self);en();var c=self;M(c,"iframeMessagingClient",rn.bind(null,c),!0);sl(a);Cn(a);N(a,"url",Bk,!0);N(a,"cid",Ci);N(a,"documentInfo",Wi);sl(a,void 0);N(a,"viewport",Am,!0);N(a,
"history",pj);N(a,"resources",zj);fl(a);N(a,"action",Jg,!0);N(a,"standard-actions",ck,!0);zk(a);N(a,"navigation",Ee,!0);aj(a);b.coreServicesAvailable();we();hn(a)});Pm(self.document,function(){var a=self;Th(a,"amp-img",Yh);Th(a,"amp-pixel",ci);Th(a,"amp-layout",ai)});Pm(self.document,function(){dn()});Pm(self.document,function(){Uh(a)});Pm(self.document,function(){self.document.documentElement.addEventListener("click",Me.bind(null,a),!0);Jn();Sf()});Pm(self.document,function(){b.tick("e_is");pe(a).ampInitComplete();
b.flush()})},!0,"amp-runtime")});self.console&&(console.info||console.log).call(console,"Powered by AMP \u26a1 HTML \u2013 Version 1903070012530",self.location.href);self.document.documentElement.setAttribute("amp-version","1903070012530");})();
//# sourceMappingURL=amp4ads-v0.js.map
