@google-psat/cli 1.0.0-1 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see amp-story-1.0.js.LICENSE.txt */
2
- (self.AMP=self.AMP||[]).push({m:0,v:"2410292120000",n:"amp-story",ev:"1.0",l:!0,f:function(t,i){!function(){function i(t,i){(null==i||i>t.length)&&(i=t.length);for(var e=0,n=new Array(i);e<i;e++)n[e]=t[e];return n}function e(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}function n(t,i){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=e(t))||i&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r;function o(){return r||(r=Promise.resolve(void 0))}var a=function(){var t=this;this.promise=new Promise((function(i,e){t.resolve=i,t.reject=e}))};function s(t){return new Promise((function(i){i(t())}))}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t,i){return(h=Object.setPrototypeOf||function(t,i){return t.__proto__=i,t})(t,i)}function u(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),i&&h(t,i)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t){var i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,n=c(t);if(i){var r=c(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return function(t,i){if(i&&("object"===m(i)||"function"==typeof i))return i;if(void 0!==i)throw new TypeError("Derived constructors may only return object or undefined");return l(t)}(this,e)}}function f(t,i,e){return i in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e,t}function d(t){return t?Array.prototype.slice.call(t):[]}var g=Array.isArray;function v(t,i){for(var e=0;e<t.length;e++)if(i(t[e],e,t))return e;return-1}var y=Object.prototype,b=y.hasOwnProperty;function A(t){var i=Object.create(null);return t&&Object.assign(i,t),i}function E(t,i){return b.call(t,i)}function S(t,i,e,n,r,o,a,s,l,h,u){return t}y.toString;var w,x,T=/(\0)|^(-)$|([\x01-\x1f\x7f]|^-?[0-9])|([\x80-\uffff0-9a-zA-Z_-]+)|[^]/g;function _(t,i,e,n,r){return r||(i?"�":n?t.slice(0,-1)+"\\"+t.slice(-1).charCodeAt(0).toString(16)+" ":"\\"+t)}function P(t){return void 0!==w?w:w=function(t){try{var i=t.ownerDocument,e=i.createElement("div"),n=i.createElement("div");return e.appendChild(n),e.querySelector(":scope div")===n}catch(t){return!1}}(t)}function k(t,i){return t.replace(/^|,/g,"$&".concat(i," "))}function O(t){return String(t).replace(T,_)}function L(t){S(/^[\w-]+$/.test(t))}function I(t,i){var e=t.classList,n="i-amphtml-scoped";e.add(n);var r=k(i,".".concat(n)),o=t.querySelectorAll(r);return e.remove(n),o}function N(t,i){if(P(t))return t.querySelector(k(i,":scope"));var e=I(t,i)[0];return void 0===e?null:e}function C(t,i){return P(t)?t.querySelectorAll(k(i,":scope")):I(t,i)}function M(t,i){var e=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector;return!!e&&e.call(t,i)}function R(t,i,e){var n;for(n=t;n&&n!==e;n=n.parentElement)if(i(n))return n;return null}function D(t,i){return t.closest?t.closest(i):R(t,(function(t){return M(t,i)}))}function U(t,i){for(var e=t.lastElementChild;e;e=e.previousElementSibling)if(i(e))return e;return null}function G(t,i){return L(i),N(t,"> ".concat(i))}function z(t){var i=Object.getOwnPropertyDescriptor(t,"message");if(null!=i&&i.writable)return t;var e=t.message,n=t.stack,r=new Error(e);for(var o in t)r[o]=t[o];return r.stack=n,r}function B(t){for(var i,e=null,r="",o=n(arguments,!0);!(i=o()).done;){var a=i.value;a instanceof Error&&!e?e=z(a):(r&&(r+=" "),r+=a)}return e?r&&(e.message=r+": "+e.message):e=new Error(r),e}function H(t){var i,e;null===(i=(e=self).__AMP_REPORT_ERROR)||void 0===i||i.call(e,t)}function W(t){var i=B.apply(null,arguments);return i.expected=!0,i}function V(t){for(var i=arguments.length,e=new Array(i>1?i-1:0),n=1;n<i;n++)e[n-1]=arguments[n];var r=B.apply(null,e);r.name=t||r.name,H(r)}var F=["Webkit","webkit","Moz","moz","ms","O","o"],j={getPropertyPriority:function(){return""},getPropertyValue:function(){return""}};function q(t){var i=t.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}));return F.some((function(t){return i.startsWith(t+"-")}))?"-".concat(i):i}function Y(t,i,e){if(ot(i))return i;x||(x=A());var n=x[i];if(!n||e){if(n=i,void 0===t[i]){var r=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(i),o=function(t,i){for(var e=0;e<F.length;e++){var n=F[e]+i;if(void 0!==t[n])return n}return""}(t,r);void 0!==t[o]&&(n=o)}e||(x[i]=n)}return n}function X(t,i){var e=t.style;for(var n in i)e.setProperty(q(Y(e,n)),String(i[n]),"important")}function K(t,i,e,n,r){var o=Y(t.style,i,r);if(o){var a=n?e+n:e;t.style.setProperty(q(o),a)}}function Z(t,i){for(var e in i)K(t,e,i[e])}function $(t,i){void 0===i&&(i=t.hasAttribute("hidden")),i?t.removeAttribute("hidden"):t.setAttribute("hidden","")}function J(t){return"".concat(t,"px")}function Q(t){return"".concat(t,"deg")}function tt(t,i){return"number"==typeof t?i(t):t}function it(t,i){return null==i?"translate(".concat(tt(t,J),")"):"translate(".concat(tt(t,J),", ").concat(tt(i,J),")")}function et(t){return"scale(".concat(t,")")}function nt(t){return"rotate(".concat(tt(t,Q),")")}function rt(t,i){return t.getComputedStyle(i)||j}function ot(t){return t.startsWith("--")}function at(t){return"display"in t&&V("STYLE","`display` style detected. You must use toggle instead."),t}var st="nodisplay",lt="container",ht=function(t){u(e,t);var i=p(e);function e(t){return i.call(this,t)}var n=e.prototype;return n.isLayoutSupported=function(t){return t==lt},n.buildCallback=function(){this.element.classList.add("i-amphtml-story-layer")},e}(t.BaseElement),ut=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function ct(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{return decodeURIComponent(t)}catch(t){return i}}function mt(t){var i,e=A();if(!t)return e;for(;i=ut.exec(t);){var n=ct(i[1],i[1]),r=i[2]?ct(i[2].replace(/\+/g," "),i[2]):"";e[n]=r}return e}function pt(t){var i=(t||self).location;return mt(i.originalHash||i.hash)}function ft(t){return(t.ownerDocument||t).defaultView}function dt(t){var i=ft(t),e=mt(i.location.href).page,n="amp-story-page:first-of-type";e&&(n+=", amp-story-page#".concat(O(e)));var r=i.document.querySelectorAll(n);return r[r.length-1]===t}var gt={"align-content":"alignContent","align-items":"alignItems","align-self":"alignSelf","grid-area":"gridArea","justify-content":"justifyContent","justify-items":"justifyItems","justify-self":"justifySelf"},vt=Object.keys(gt).map((function(t){return"[".concat(t,"]")})).join(","),yt=function(t){u(e,t);var i=p(e);function e(t){return i.call(this,t)}e.prerenderAllowed=function(t){return dt(t.parentElement)},e.previewAllowed=function(){return!0};var n=e.prototype;return n.buildCallback=function(){t.prototype.buildCallback.call(this),this.kg(),this.Tg(),this._g()},n.kg=function(){this.element.hasAttribute("aspect-ratio")&&X(this.element,{"--aspect-ratio":this.element.getAttribute("aspect-ratio").replace(":","/")})},n._g=function(){var t=this;C(this.element,vt).forEach((function(i){t.Ng(i)}))},n.Tg=function(){this.Ng(this.element)},n.Ng=function(t){for(var i={},e=t.attributes.length-1;e>=0;e--){var n=t.attributes[e],r=n.name.toLowerCase(),o=gt[r];o&&(i[o]=n.value,t.removeAttribute(r))}Z(t,at(i))},e}(ht),bt="load-end",At="preview";function Et(t){return JSON.parse(t)}function St(t,i){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;if(!isFinite(e)||e<0)throw new Error("Invalid depth: "+e);if(t===i)return!0;for(var n=[{a:t,b:i,depth:e}];n.length>0;){var r=n.shift(),o=r.a,a=r.b,s=r.depth;if(s>0){if(m(o)!==m(a))return!1;if(g(o)&&g(a)){if(o.length!==a.length)return!1;for(var l=0;l<o.length;l++)n.push({a:o[l],b:a[l],depth:s-1});continue}if(o&&a&&"object"===m(o)&&"object"===m(a)){var h=Object.keys(o),u=Object.keys(a);if(h.length!==u.length)return!1;for(var c=0,p=h;c<p.length;c++){var f=p[c];n.push({a:o[f],b:a[f],depth:s-1})}continue}}if(o!==a)return!1}return!0}function wt(t){var i;null===(i=t.parentElement)||void 0===i||i.removeChild(t)}function xt(t){var i=t.isConnected;if(void 0!==i)return i;for(var e=t;(e=Tt(e)).host;)e=e.host;return e.nodeType===Node.DOCUMENT_NODE}function Tt(t){if(Node.prototype.getRootNode)return t.getRootNode();var i,e;for(i=t;i.parentNode&&(!(e=i)||"I-AMPHTML-SHADOW-ROOT"!=e.tagName&&(11!=e.nodeType||"[object ShadowRoot]"!==Object.prototype.toString.call(e)));i=i.parentNode);return i}function _t(t){var i;return"SCRIPT"==t.tagName&&"APPLICATION/JSON"==(null===(i=t.getAttribute("type"))||void 0===i?void 0:i.toUpperCase())}function Pt(t,i,e){var n=t.hasAttribute(i),r=void 0!==e?e:!n;return r!==n&&(r?t.setAttribute(i,""):t.removeAttribute(i)),r}function kt(t){var i,e=(i=t,L("script"),C(i,"> ".concat("script"))),n=e.length;if(1!==n)throw new Error("Found ".concat(n," <script> children. Expected 1."));var r=e[0];if(!_t(r))throw new Error('<script> child must have type="application/json"');try{var o;return Et(null!==(o=r.textContent)&&void 0!==o?o:"")}catch(t){throw new Error("Failed to parse <script> contents. Is it valid JSON?")}}function Ot(t){if(S(function(t){var i=t.tagName;return i.startsWith("AMP-")&&!("AMP-STICKY-AD-TOP-PADDING"==i||"AMP-BODY"==i)}(t)),t.createdCallback)return Promise.resolve(t);if(!t.__AMP_UPG_PRM){var i=new a;t.__AMP_UPG_PRM=i.promise,t.__AMP_UPG_RES=i.resolve}var e=t.__AMP_UPG_PRM;return S(e),e}function Lt(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),e.push.apply(e,n)}return e}function It(t){for(var i=1;i<arguments.length;i++){var e=null!=arguments[i]?arguments[i]:{};i%2?Lt(Object(e),!0).forEach((function(i){f(t,i,e[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Lt(Object(e)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}))}return t}function Nt(t,i){if(!!i!==i&&null!=i)if(Array.isArray(i))i.forEach((function(i){Nt(t,i)}));else{var e=i;t.appendChild(e.nodeType?e:self.document.createTextNode(String(i)))}}function Ct(t,i){for(var e=arguments.length,n=new Array(e>2?e-2:0),r=2;r<e;r++)n[r-2]=arguments[r];if("string"!=typeof t)return t(It(It({},i),{},{children:n}));var o=null==i?void 0:i.xmlns;o&&delete i.xmlns;var a=o?self.document.createElementNS(o,t):self.document.createElement(t);return Nt(a,n),i&&Object.keys(i).forEach((function(t){!function(t,i,e){if(!1!==e&&null!=e)if("function"!=typeof e||"o"!==i[0]||"n"!==i[1])t.setAttribute(i,!0===e?"":String(e));else{var n=i.toLowerCase().substring(2);t.addEventListener(n,e)}}(a,t,i[t])})),a}function Mt(t,i){var e=s((function(){return t.play(!!i)}));return e.catch((function(t){!function(t){for(var i=arguments.length,e=new Array(i>1?i-1:0),n=1;n<i;n++)e[n-1]=arguments[n];H(W.apply(null,e))}("TRYPLAY",t)})),e}function Rt(t,i,e){var n=0,r=0,o=null;function a(){n=0;var s,l=e-(t.Date.now()-r);l>0?n=t.setTimeout(a,l):(s=o,o=null,i.apply(null,s))}return function(){r=t.Date.now();for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];o=s,n||(n=t.setTimeout(a,e))}}var Dt="";function Ut(t){var i=t||self;return i.__AMP_MODE?i.__AMP_MODE:i.__AMP_MODE=function(t){return{localDev:!1,development:zt(t,pt(t)),esm:!1,test:!1,rtvVersion:Gt(t),ssrReady:!1}}(i)}function Gt(t){var i;return Dt||(Dt=(null===(i=t.AMP_CONFIG)||void 0===i?void 0:i.v)||"01".concat("2410292120000")),Dt}function zt(t,i){var e=i||pt(t);return["1","actions","amp","amp4ads","amp4email"].includes(e.development)||!!t.AMP_DEV_MODE}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var Bt=self.__AMP_LOG;function Ht(t,i){throw new Error("failed to call initLogConstructor")}function Wt(t){return Bt.user||(Bt.user=Vt()),function(t,i){return i&&i.ownerDocument.defaultView!=t}(Bt.user.win,t)?Bt.userForEmbed||(Bt.userForEmbed=Vt()):Bt.user}function Vt(t){return Ht()}function Ft(){return Bt.dev||(Bt.dev=Ht())}function jt(t,i,e,n,r,o,a,s,l,h,u){return t}function qt(t,i,e,n,r,o,a,s,l,h,u){return Wt().assert(t,i,e,n,r,o,a,s,l,h,u)}function Yt(t,i,e,n){ni(t=Qt(t),t,i,e),n&&ei(t,i)}function Xt(t,i){return ei(t=Qt(t),i)}function Kt(t,i){return ai(t=Qt(t),i)?ei(t,i):null}function Zt(t,i){return ei(ii(ti(t)),i)}function $t(t,i){var e=ii(ti(t));return ai(e,i)?ei(e,i):null}function Jt(t,i){return ri(ii(t),i)}function Qt(t){return t.__AMP_TOP||(t.__AMP_TOP=t)}function ti(t){return t.nodeType?(i=ft(t),Xt(i,"ampdoc")).getAmpDoc(t):t;var i}function ii(t){var i=ti(t);return i.isSingleDoc()?i.win:i}function ei(t,i){jt(ai(t,i));var e=oi(t)[i];return e.obj||(jt(e.ctor),jt(e.context),e.obj=new e.ctor(e.context),jt(e.obj),e.context=null,e.resolve&&e.resolve(e.obj)),e.obj}function ni(t,i,e,n,r,o){var a=oi(t),s=a[e];s||(s=a[e]={obj:null,promise:null,resolve:null,reject:null,context:null,ctor:null,sharedInstance:o||!1}),!r&&s.ctor||(s.ctor=n,s.context=i,s.sharedInstance=o||!1,s.resolve&&ei(t,e))}function ri(t,i){var e=oi(t)[i];return e?e.promise?e.promise:(ei(t,i),e.promise=Promise.resolve(e.obj)):null}function oi(t){var i=t.__AMP_SERVICES;return i||(i=t.__AMP_SERVICES={}),i}function ai(t,i){var e=t.__AMP_SERVICES&&t.__AMP_SERVICES[i];return!(!e||!e.ctor)}var si="__AMP__EXPERIMENT_TOGGLES";function li(t,i){var e=function(t){var i,e,r,o,a;if(t[si])return t[si];t[si]=A();var s=t[si];S(s);var l=It(It({},null!==(i=t.AMP_CONFIG)&&void 0!==i?i:{}),null!==(e=t.AMP_EXP)&&void 0!==e?e:Et((null===(r=t.__AMP_EXP)||void 0===r?void 0:r.textContent)||"{}"));for(var h in l){var u=l[h];"number"==typeof u&&u>=0&&u<=1&&(s[h]=Math.random()<u)}var c=null===(o=t.AMP_CONFIG)||void 0===o?void 0:o["allow-doc-opt-in"];if(g(c)&&c.length){var m=t.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(m)for(var p,f,d=n((null===(p=m.getAttribute("content"))||void 0===p?void 0:p.split(","))||[],!0);!(f=d()).done;){var v=f.value;c.includes(v)&&(s[v]=!0)}}Object.assign(s,function(t){var i,e="";try{var r;"localStorage"in t&&(e=null!==(r=t.localStorage.getItem("amp-experiment-toggles"))&&void 0!==r?r:"")}catch(t){Ft().warn("EXPERIMENTS","Failed to retrieve experiments from localStorage.")}for(var o,a=(null===(i=e)||void 0===i?void 0:i.split(/\s*,\s*/g))||[],s=A(),l=n(a,!0);!(o=l()).done;){var h=o.value;h&&("-"==h[0]?s[h.substr(1)]=!1:s[h]=!0)}return s}(t));var y=null===(a=t.AMP_CONFIG)||void 0===a?void 0:a["allow-url-opt-in"];if(g(y)&&y.length)for(var b,E=mt(t.location.originalHash||t.location.hash),w=n(y,!0);!(b=w()).done;){var x=b.value,T=E["e-".concat(x)];"1"==T&&(s[x]=!0),"0"==T&&(s[x]=!1)}return s}(t);return!!e[i]}function hi(t,i){return t.__AMP_EXPERIMENT_BRANCHES?t.__AMP_EXPERIMENT_BRANCHES[i]:null}var ui="story-ad-auto-advance",ci="31067116",mi=self.AMP.config.urls;function pi(t,i,e,n){var r=Jt(t,i);if(r)return r;var o=ti(t);return o.whenExtensionsKnown().then((function(){var t=o.getExtensionVersion(e);return t?Xt(o.win,"extensions").waitForExtension(e,t):null})).then((function(e){return e?n?Jt(t,i):function(t,i){return function(t,i){var e=ri(t,i);if(e)return e;var n,r,o,s,l=oi(t);return l[i]=(r=(n=new a).promise,o=n.reject,s=n.resolve,r.catch((function(){})),{obj:null,promise:r,resolve:s,reject:o,context:null,ctor:null}),l[i].promise}(ii(t),i)}(t,i):null}))}var fi,di,gi=function(t){return $t(t,"action")},vi=function(t){return Zt(t,"documentInfo").get()},yi=function(t){return Xt(t,"extensions")},bi=function(t){return Zt(t,"mutator")},Ai=function(t){return Xt(t,"performance")},Ei=function(t){return Xt(t,"platform")},Si=function(t){return $t(t,"localization")},wi=function(t){return ei(t,"timer")},xi=function(t){return $t(t,"url")},Ti=function(t){return Zt(t,"viewer")},_i=function(t){return Xt(t,"vsync")},Pi=function(t){return Xt(t,"xhr")};function ki(t,i,e,n){var r=t,o=e,a=function(t){try{return o(t)}catch(t){var i,e;throw null===(i=(e=self).__AMP_REPORT_ERROR)||void 0===i||i.call(e,t),t}},s=function(){if(void 0!==fi)return fi;fi=!1;try{var t={get capture(){return fi=!0,!1}};self.addEventListener("test-options",null,t),self.removeEventListener("test-options",null,t)}catch(t){}return fi}(),l=!(null==n||!n.capture);return r.addEventListener(i,a,s?n:l),function(){null==r||r.removeEventListener(i,a,s?n:l),o=null,r=null,a=null}}function Oi(t,i,e,n){return ki(t,i,e,n)}function Li(t){return t.detail}function Ii(t,i,e,n){var r=e,o=ki(t,i,(function(t){try{r(t)}finally{r=null,o()}}),n);return o}var Ni,Ci=function(){function t(){this.vt=null}var i=t.prototype;return i.add=function(t){var i=this;return this.vt||(this.vt=[]),this.vt.push(t),function(){i.remove(t)}},i.remove=function(t){var i,e,n;this.vt&&(e=t,-1!=(n=(i=this.vt).indexOf(e))&&i.splice(n,1))},i.removeAll=function(){this.vt&&(this.vt.length=0)},i.fire=function(t){if(this.vt)for(var i,e=n(this.vt.slice(),!0);!(i=e()).done;)(0,i.value)(t)},i.getHandlerCount=function(){var t,i;return null!==(t=null===(i=this.vt)||void 0===i?void 0:i.length)&&void 0!==t?t:0},t}();function Mi(t){var i,e=mt(t).embedMode,n=parseInt(e,10);return 0===(i=n)||1===i||2===i||3===i||4===i?n:0}function Ri(t){return 3===Mi(t.location.hash)}var Di="amp-story",Ui=function(t){var i=function(t){return Kt(t,"story-store")}(t);return i||(i=new Wi(t),Yt(t,"story-store",(function(){return i}))),i},Gi={CAN_INSERT_AUTOMATIC_AD:1,CAN_SHOW_AUDIO_UI:2,CAN_SHOW_NAVIGATION_OVERLAY_HINT:3,CAN_SHOW_PAGINATION_BUTTONS:4,CAN_SHOW_PREVIOUS_PAGE_HELP:5,CAN_SHOW_SHARING_UIS:6,CAN_SHOW_STORY_URL_INFO:7,CAN_SHOW_SYSTEM_LAYER_BUTTONS:8,VIEWER_CUSTOM_CONTROLS:9,AD_STATE:10,PAGE_ATTACHMENT_STATE:11,EDUCATION_STATE:12,GYROSCOPE_PERMISSION_STATE:13,INFO_DIALOG_STATE:14,INTERACTIVE_COMPONENT_STATE:15,INTERACTIVE_REACT_STATE:16,KEYBOARD_ACTIVE_STATE:17,MUTED_STATE:18,PAGE_HAS_AUDIO_STATE:19,PAGE_HAS_CAPTION_STATE:20,CAPTIONS_STATE:21,PAGE_HAS_ELEMENTS_WITH_PLAYBACK_STATE:22,PANNING_MEDIA_STATE:23,PAUSED_STATE:24,PREVIEW_STATE:25,RTL_STATE:26,SHARE_MENU_STATE:27,SHOPPING_DATA:28,STORY_HAS_BACKGROUND_AUDIO_STATE:29,STORY_HAS_PLAYBACK_UI_STATE:30,SYSTEM_UI_IS_VISIBLE_STATE:31,UI_STATE:32,DESKTOP_ASPECT_RATIO:33,ACTIONS_ALLOWLIST:34,CONSENT_ID:35,CURRENT_PAGE_ID:36,CURRENT_PAGE_INDEX:37,ADVANCEMENT_MODE:38,NAVIGATION_PATH:39,NEW_PAGE_AVAILABLE_ID:40,PAGE_IDS:41,PAGE_SIZE:42,SUBSCRIPTIONS_DIALOG_UI_STATE:43,SUBSCRIPTIONS_STATE:44,SUBSCRIPTIONS_PAGE_INDEX:45},zi=27,Bi=34,Hi=(f(Ni={},Gi.ACTIONS_ALLOWLIST,(function(t,i){return t.length!==i.length})),f(Ni,Gi.INTERACTIVE_COMPONENT_STATE,(function(t,i){return t.element!==i.element||t.state!==i.state})),f(Ni,Gi.NAVIGATION_PATH,(function(t,i){return t.length!==i.length})),f(Ni,Gi.PAGE_IDS,(function(t,i){return t.length!==i.length})),f(Ni,Gi.PAGE_SIZE,(function(t,i){return null===t||null===i||t.width!==i.width||t.height!==i.height})),f(Ni,Gi.PANNING_MEDIA_STATE,(function(t,i){return null===t||null===i||!St(t,i,2)})),f(Ni,Gi.SHOPPING_DATA,(function(t,i){return null===t||null===i||!St(t,i,2)})),f(Ni,Gi.INTERACTIVE_REACT_STATE,(function(t,i){return!St(t,i,3)})),Ni),Wi=function(){function t(t){this.t=t,this.rn={},this.Ke=It(It({},this.zg()),this.Cg())}var i=t.prototype;return i.get=function(t){if(E(this.Ke,t))return this.Ke[t];Ft().error(Di,"Unknown state %s.",t)},i.subscribe=function(t,i){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];E(this.Ke,t)?(this.rn[t]||(this.rn[t]=new Ci),this.rn[t].add(i),e&&i(this.get(t))):Ft().error(Di,"Can't subscribe to unknown state %s.",t)},i.dispatch=function(t,i){var e,n=this,r=It({},this.Ke);this.Ke=function(t,i,e){var n,r,o,a,s;switch(i){case 1:return It(It({},t),{},f({},Gi.INTERACTIVE_REACT_STATE,It(It({},t[Gi.INTERACTIVE_REACT_STATE]),{},f({},e.interactiveId,e))));case 2:return It(It({},t),{},f({},Gi.NEW_PAGE_AVAILABLE_ID,e));case 3:var l=It(It({},t[Gi.PANNING_MEDIA_STATE]),e);return It(It({},t),{},f({},Gi.PANNING_MEDIA_STATE,l));case 4:var h=It(It({},t[Gi.SHOPPING_DATA]),e);return It(It({},t),{},f({},Gi.SHOPPING_DATA,h));case 5:var u=[].concat(t[Gi.ACTIONS_ALLOWLIST],e);return It(It({},t),{},f({},Gi.ACTIONS_ALLOWLIST,u));case 22:return It(It({},t),{},f({},Gi.PAGE_ATTACHMENT_STATE,!!e));case 16:return It(It({},t),{},f({},Gi.AD_STATE,!!e));case 17:return It(It({},t),{},f({},Gi.EDUCATION_STATE,!!e));case 19:return It(It({},t),{},(f(n={},Gi.PAUSED_STATE,1===e.state),f(n,Gi.SYSTEM_UI_IS_VISIBLE_STATE,!0),f(n,Gi.INTERACTIVE_COMPONENT_STATE,e),n));case 18:return It(It({},t),{},(f(r={},Gi.INFO_DIALOG_STATE,!!e),f(r,Gi.PAUSED_STATE,!!e),r));case 31:return It(It({},t),{},f({},Gi.STORY_HAS_PLAYBACK_UI_STATE,!!e));case 30:return It(It({},t),{},f({},Gi.STORY_HAS_BACKGROUND_AUDIO_STATE,!!e));case 21:return It(It({},t),{},f({},Gi.MUTED_STATE,!!e));case 23:return It(It({},t),{},f({},Gi.PAGE_HAS_AUDIO_STATE,!!e));case 24:return It(It({},t),{},f({},Gi.PAGE_HAS_CAPTIONS_STATE,!!e));case 25:return It(It({},t),{},f({},Gi.CAPTIONS_STATE,!!e));case 26:return It(It({},t),{},f({},Gi.PAGE_HAS_ELEMENTS_WITH_PLAYBACK_STATE,!!e));case zi:return It(It({},t),{},f({},Gi.PAUSED_STATE,!!e));case 28:return It(It({},t),{},f({},Gi.RTL_STATE,!!e));case 20:return It(It({},t),{},f({},Gi.KEYBOARD_ACTIVE_STATE,!!e));case 29:return It(It({},t),{},(f(o={},Gi.PAUSED_STATE,!!e),f(o,Gi.SHARE_MENU_STATE,!!e),o));case Bi:return It(It({},t),{},f({},Gi.SYSTEM_UI_IS_VISIBLE_STATE,!!e));case 35:return 3===t[Gi.UI_STATE]&&3!==e?(Ft().error(Di,"Cannot switch away from UIType_Enum.VERTICAL"),t):It(It({},t),{},f({},Gi.UI_STATE,e));case 9:return It(It({},t),{},f({},Gi.GYROSCOPE_PERMISSION_STATE,e));case 8:return It(It({},t),{},f({},Gi.CONSENT_ID,e));case 6:return It(It({},t),{},(f(a={},Gi.CURRENT_PAGE_ID,e.id),f(a,Gi.CURRENT_PAGE_INDEX,e.index),a));case 7:return It(It({},t),{},f({},Gi.ADVANCEMENT_MODE,e));case 10:return It(It({},t),{},f({},Gi.NAVIGATION_PATH,e));case 11:return It(It({},t),{},f({},Gi.PAGE_IDS,e));case 12:return It(It({},t),{},f({},Gi.PAGE_SIZE,e));case 13:return It(It({},t),{},f({},Gi.VIEWER_CUSTOM_CONTROLS,e));case 14:return It(It({},t),{},f({},Gi.SUBSCRIPTIONS_PAGE_INDEX,e));case 32:return It(It({},t),{},(f(s={},Gi.SUBSCRIPTIONS_DIALOG_UI_STATE,!!e),f(s,Gi.PAUSED_STATE,!!e),s));case 33:return It(It({},t),{},f({},Gi.SUBSCRIPTIONS_STATE,e));case 15:return It(It({},t),{},f({},Gi.DESKTOP_ASPECT_RATIO,e));default:return Ft().error(Di,"Unknown action %s.",i),t}}(this.Ke,t,i),Object.keys(this.rn).forEach((function(t){((e=Hi[t])?e(r[t],n.Ke[t]):r[t]!==n.Ke[t])&&n.rn[t].fire(n.Ke[t])}))},i.zg=function(){var t;return f(t={},Gi.CAN_INSERT_AUTOMATIC_AD,!0),f(t,Gi.CAN_SHOW_AUDIO_UI,!0),f(t,Gi.CAN_SHOW_NAVIGATION_OVERLAY_HINT,!0),f(t,Gi.CAN_SHOW_PREVIOUS_PAGE_HELP,!0),f(t,Gi.CAN_SHOW_PAGINATION_BUTTONS,!0),f(t,Gi.CAN_SHOW_SHARING_UIS,!0),f(t,Gi.CAN_SHOW_STORY_URL_INFO,!0),f(t,Gi.CAN_SHOW_SYSTEM_LAYER_BUTTONS,!0),f(t,Gi.VIEWER_CUSTOM_CONTROLS,[]),f(t,Gi.AD_STATE,!1),f(t,Gi.EDUCATION_STATE,!1),f(t,Gi.GYROSCOPE_PERMISSION_STATE,""),f(t,Gi.INFO_DIALOG_STATE,!1),f(t,Gi.INTERACTIVE_COMPONENT_STATE,{state:0}),f(t,Gi.INTERACTIVE_REACT_STATE,{}),f(t,Gi.KEYBOARD_ACTIVE_STATE,!1),f(t,Gi.MUTED_STATE,!0),f(t,Gi.PAGE_ATTACHMENT_STATE,!1),f(t,Gi.PAGE_HAS_AUDIO_STATE,!1),f(t,Gi.PAGE_HAS_CAPTIONS_STATE,!1),f(t,Gi.CAPTIONS_STATE,!0),f(t,Gi.PAGE_HAS_ELEMENTS_WITH_PLAYBACK_STATE,!1),f(t,Gi.PANNING_MEDIA_STATE,{}),f(t,Gi.PAUSED_STATE,!1),f(t,Gi.RTL_STATE,!1),f(t,Gi.SHARE_MENU_STATE,!1),f(t,Gi.SHOPPING_DATA,{}),f(t,Gi.STORY_HAS_BACKGROUND_AUDIO_STATE,!1),f(t,Gi.STORY_HAS_PLAYBACK_UI_STATE,!1),f(t,Gi.SYSTEM_UI_IS_VISIBLE_STATE,!0),f(t,Gi.UI_STATE,0),f(t,Gi.ACTIONS_ALLOWLIST,[]),f(t,Gi.CONSENT_ID,null),f(t,Gi.CURRENT_PAGE_ID,""),f(t,Gi.CURRENT_PAGE_INDEX,0),f(t,Gi.ADVANCEMENT_MODE,""),f(t,Gi.NEW_PAGE_AVAILABLE_ID,""),f(t,Gi.NAVIGATION_PATH,[]),f(t,Gi.PAGE_IDS,[]),f(t,Gi.PAGE_SIZE,null),f(t,Gi.PREVIEW_STATE,!1),f(t,Gi.SUBSCRIPTIONS_DIALOG_UI_STATE,!1),f(t,Gi.SUBSCRIPTIONS_STATE,0),f(t,Gi.SUBSCRIPTIONS_PAGE_INDEX,-1),f(t,Gi.DESKTOP_ASPECT_RATIO,0),t},i.Cg=function(){var t,i,e;switch(Mi(this.t.location.hash)){case 1:return f(t={},Gi.CAN_INSERT_AUTOMATIC_AD,!1),f(t,Gi.CAN_SHOW_NAVIGATION_OVERLAY_HINT,!1),f(t,Gi.CAN_SHOW_PAGINATION_BUTTONS,!1),f(t,Gi.CAN_SHOW_PREVIOUS_PAGE_HELP,!0),f(t,Gi.CAN_SHOW_SYSTEM_LAYER_BUTTONS,!1),f(t,Gi.MUTED_STATE,!1),t;case 2:return f({},Gi.CAN_SHOW_SHARING_UIS,!1);case 3:return f(i={},Gi.PREVIEW_STATE,!0),f(i,Gi.CAN_INSERT_AUTOMATIC_AD,!1),f(i,Gi.CAN_SHOW_NAVIGATION_OVERLAY_HINT,!1),f(i,Gi.CAN_SHOW_PAGINATION_BUTTONS,!1),f(i,Gi.CAN_SHOW_PREVIOUS_PAGE_HELP,!1),f(i,Gi.CAN_SHOW_SYSTEM_LAYER_BUTTONS,!1),i;case 4:return f(e={},Gi.CAN_SHOW_AUDIO_UI,!1),f(e,Gi.CAN_SHOW_SHARING_UIS,!1),f(e,Gi.CAN_SHOW_STORY_URL_INFO,!1),e;default:return{}}},t}(),Vi="ampstory:switchpage",Fi="ampstory:previouspage",ji="ampstory:nextpage",qi="ampstory:pageprogress",Yi="ampstory:replay",Xi="ampstory:nonextpage",Ki="ampstory:nopreviouspage";function Zi(t,i,e){var n=function(t,i,e,n){var r={detail:e};if(Object.assign(r,n),"function"==typeof t.CustomEvent)return new t.CustomEvent(i,r);var o=t.document.createEvent("CustomEvent");return o.initCustomEvent(i,!!r.bubbles,!!r.cancelable,e),o}(t,e,arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0);i.dispatchEvent(n)}var $i,Ji,Qi="storyPageCount",te="storyIsMuted",ie="storyProgress",ee="storyAdvancementMode",ne=function(t){var i=function(t){return Kt(t,"story-variable")}(t);return i||(i=new re(t),Yt(t,"story-variable",(function(){return i}))),i},re=function(){function t(t){var i;this.Dg=(f(i={},"storyInteractiveId",null),f(i,"storyInteractiveResponse",null),f(i,"storyInteractiveType",null),f(i,"storyPageIndex",null),f(i,"storyPageId",null),f(i,Qi,null),f(i,ie,null),f(i,te,null),f(i,"storyPreviousPageId",null),f(i,"storyPreviousPageIndex",null),f(i,ee,null),f(i,"storyShoppingProductId",null),i),this.Lg=Ui(t),this.Ug()}var i=t.prototype;return i.Ug=function(){var t=this;this.Lg.subscribe(Gi.PAGE_IDS,(function(){return t.Yg()})),this.Lg.subscribe(Gi.CURRENT_PAGE_ID,(function(){return t.Yg()}),!0)},i.Yg=function(){var t=this.Lg.get(Gi.PAGE_IDS),i=t.filter((function(t){return!t.startsWith("i-amphtml-ad-")})).length;this.Dg.storyPageCount=i;var e=this.Lg.get(Gi.CURRENT_PAGE_ID);if(e){this.Dg.storyPreviousPageId=this.Dg.storyPageId,this.Dg.storyPageId=e;var n=this.Lg.get(Gi.CURRENT_PAGE_INDEX),r=t.slice(0,n).filter((function(t){return t.startsWith("i-amphtml-ad-")})).length;this.Dg.storyPreviousPageIndex=this.Dg.storyPageIndex,this.Dg.storyPageIndex=n-r,1===i?this.Dg.storyProgress=0:i>1&&(this.Dg.storyProgress=(n-r)/(i-1))}},i.onVariableUpdate=function(t,i){this.Dg[t]=i},i.get=function(){return this.Dg},t}(),oe="__AMP_ANALYTICS_TAG_NAME__",ae="story-open",se="story-close",le="manualAdvance",he=function(t,i){var e=function(t){return Kt(t,"story-analytics")}(t);return e||(e=new ue(t,i),Yt(t,"story-analytics",(function(){return e}))),e},ue=function(){function t(t,i){this.t=t,this.ri=i,this.Hg=ne(t),this.Vg=A(),this.Lg=Ui(t),this.Ug()}var i=t.prototype;return i.Ug=function(){var t=this;this.Lg.subscribe(Gi.CURRENT_PAGE_ID,(function(i){var e=t.Lg.get(Gi.AD_STATE);if(i&&!e){t.triggerEvent("story-page-visible");var n=t.Lg.get(Gi.PAGE_IDS);t.Lg.get(Gi.CURRENT_PAGE_INDEX)===n.length-1&&t.triggerEvent("story-last-page-visible")}}),!0)},i.triggerEvent=function(t){var i=this,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.Gg(t),ti(this.ri).whenNextVisible().then((function(){return function(t,i){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];(function(t){return pi(t,"amp-analytics-instrumentation","amp-analytics")})(t).then((function(r){r&&r.triggerEventForTarget(t,i,e,n)}))}(i.ri,t,i.updateDetails(t,e))}))},i.updateDetails=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e={},n=this.Hg.get(),r=n.storyPageId;return this.Vg[r][t]>1&&(e.repeated=!0),i&&(e.tagName=i[oe]||i.tagName.toLowerCase(),Object.assign(n,function(t){var i=function(t){return t},e=t.dataset,n={},r=/^vars(.+)/||/^param(.+)/;for(var o in e){var a=o.match(r);a&&(n[i(a[1][0].toLowerCase()+a[1].substr(1))]=e[o])}return n}(i))),It({eventDetails:e},n)},i.Gg=function(t){var i=this.Hg.get().storyPageId;this.Vg[i]=this.Vg[i]||{},this.Vg[i][t]=this.Vg[i][t]||0,this.Vg[i][t]++},t}(),ce="none",me="v0";function pe(t){return void 0===$i&&(i=t||Element,$i=i.prototype.attachShadow?"v1":i.prototype.createShadowRoot?me:ce),$i;var i}function fe(t,i,e){var n="";return t&&Array.prototype.forEach.call(t,(function(t){if(t.selectorText&&t.style&&void 0!==t.style.cssText)n+=function(t,i,e){var n=[];return t.split(",").forEach((function(t){t=t.trim(),e&&(t=e(t)),function(t,i){var e=function(t){return t=t.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+t+")"+ve,"m")}(i);return!t.match(e)}(t,i)&&(t=function(t,i){return function(t,i){return t.match(be)?(t=t.replace(ye,i)).replace(be,i+" "):i+" "+t}(t,i)}(t,i)),n.push(t)})),n.join(", ")}(t.selectorText,i,e)+" {\n\t",n+=function(t){var i=t.style.cssText;t.style.content&&!t.style.content.match(/['"]+|attr/)&&(i=i.replace(/content:[^;]*;/g,"content: '"+t.style.content+"';"));var e=t.style;for(var n in e)"initial"===e[n]&&(i+=n+": initial; ");return i}(t)+"\n}\n\n";else if(t.type===CSSRule.MEDIA_RULE)n+="@media "+t.media.mediaText+" {\n",n+=fe(t.cssRules,i),n+="\n}\n\n";else try{t.cssText&&(n+=t.cssText+"\n\n")}catch(t){}})),n}var de="-shadowcsshost",ge=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",ve=(new RegExp("("+de+ge,"gim"),new RegExp("(-shadowcsscontext"+ge,"gim"),"([>\\s~+[.,{:][\\s\\S]*)?$"),ye=de+"-no-combinator",be=new RegExp(de,"gim"),Ae=(new RegExp("-shadowcsscontext","gim"),"vcs"),Ee="verr",Se=/[^\.\-\_0-9a-zA-Z]/,we=/[^\-\_0-9a-zA-Z]/;function xe(t){var i,e=ft(t),n=t.shadowRoot||t.__AMP_SHADOW_ROOT;if(n){if(self.trustedTypes&&self.trustedTypes.createPolicy){var r=self.trustedTypes.createPolicy("shadow-embed#createShadowRoot",{createHTML:function(t){return""}});n.innerHTML=r.createHTML("")}else n.innerHTML="";return n}var o,a=pe();if("v1"==a?(i=t.attachShadow({mode:"open"})).styleSheets||Object.defineProperty(i,"styleSheets",{get:function(){var t=[];return i.childNodes.forEach((function(i){"STYLE"===i.tagName&&t.push(i.sheet)})),t}}):i=a==me?t.createShadowRoot():function(t){var i=t.ownerDocument;t.classList.add("i-amphtml-shadow-host-polyfill");var e=i.createElement("style");e.textContent=".i-amphtml-shadow-host-polyfill>:not(i-amphtml-shadow-root){display:none!important}",t.appendChild(e);var n=i.createElement("i-amphtml-shadow-root");return t.appendChild(n),t.__AMP_SHADOW_ROOT=n,Object.defineProperty(t,"shadowRoot",{enumerable:!0,configurable:!0,value:n}),n.host=t,n.getElementById=function(t){var i=O(t);return n.querySelector("#".concat(i))},Object.defineProperty(n,"styleSheets",{get:function(){return i.styleSheets?d(i.styleSheets).filter((function(t){return n.contains(t.ownerNode)})):[]}}),n}(t),!function(){if(void 0!==Ji)return Ji;if(pe()==ce)Ji=!1;else{var t=pe()===me?self.document.createElement("div").createShadowRoot():self.document.createElement("div").attachShadow({mode:"open"});i=ShadowRoot,Ji=!!i&&-1!=i.toString().indexOf("[native code]")&&t instanceof ShadowRoot}var i;return Ji}()){var s="i-amphtml-sd-".concat(e.Math.floor(1e4*e.Math.random()));i.id=s,i.host.classList.add(s),o=function(t){return function(t,i){return function(t,i){var e=jt(t.id),n=t.ownerDocument,r=null;try{r=Pe(n.implementation.createHTMLDocument(""),i)}catch(t){}if(!r)try{r=Pe(n,i)}catch(t){}return r?fe(r,".".concat(e),Te):i}(t,i)}(i,t)},i.__AMP_CSS_TR=o}return i}function Te(t){return t.replace(/(html|body)/g,_e)}function _e(t,i,e,n){var r=n.charAt(e-1),o=n.charAt(e+t.length);return r&&!Se.test(r)||o&&!we.test(o)?t:"amp-"+t}function Pe(t,i){var e=t.createElement("style");e.textContent=i;try{return(t.head||t.documentElement).appendChild(e),e.sheet?e.sheet.cssRules:null}finally{e.parentNode&&e.parentNode.removeChild(e)}}function ke(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN,e=t.toLowerCase().match(/^([0-9\.]+)\s*(s|ms)$/),n=e?e[1]:void 0,r=e?e[2]:void 0;return!e||3!==e.length||"s"!==r&&"ms"!==r?i:Math.round(("s"==r?1e3:1)*parseFloat(n))}function Oe(t){var i=t.getBoundingClientRect(),e=i.height,n=i.left,r=i.top,o=i.width,a=0==o?1:o/t.offsetWidth,s=0==e?1:e/t.offsetHeight;return{left:n/a,top:r/s,width:o/a,height:e/s}}function Le(t){return D(t,"amp-video, amp-audio")}function Ie(t,i,e){var n=self.document.createElement("style");n.textContent=e;var r=xe(t);return r.appendChild(n),r.appendChild(i),t}function Ne(t,i,e){var n=e||"";t.mutateElement((function(){t.element.setAttribute(i,n)}))}function Ce(t,i){t.mutateElement((function(){t.element.removeAttribute(i)}))}function Me(t,i){if(!i.get(Gi.CAN_SHOW_STORY_URL_INFO))return!1;var e=t.getParam("showStoryUrlInfo");return e?"0"!==e:t.isEmbedded()}function Re(t,i,e){var n=D(t,"AMP-STORY"),r=n.getAttribute(i);return r?xi(n).assertHttpsUrl(r,n,i):(e&&Wt().warn("AMP-STORY","Expected ".concat(i," attribute on <amp-story>")),null)}var De="data-text-background-color",Ue="[".concat(De,"]");function Ge(t,i){var e=t.cloneNode();$(e,!1),i.appendChild(e),e.click(),e.remove()}function ze(t){return t.getRootNode().documentElement.hasAttribute("transformed")}var Be="i-amphtml-tooltip-action-icon-launch",He="i-amphtml-story-tooltip-theme-dark",We={"amp-twitter":{customIconClassName:"amp-social-share-twitter-no-background",actionIcon:Be,selector:"amp-twitter[interactive]"}},Ve=It({a:{actionIcon:Be,selector:"a[href]"}},We);function Fe(){return Object.values((t=Ve,i={},Object.keys(t).forEach((function(e){i[e]=t[e].selector})),i)).join(",");var t,i}var je="amp-story-embedded-component",qe=function(){function t(t,i){var e=this;this.t=t,this.Bg=i,this.Fg=xi(i),this.De=null,this.Wg=null,this.Zg=null,this.Xg=null,this.Lg=Ui(this.t),this.oa=bi(ti(this.t.document)),this.qg=he(this.t,i),this.Xo=wi(this.t),this.$g=null,this.Kg=null,this.Lg.subscribe(Gi.INTERACTIVE_COMPONENT_STATE,(function(t){e.Jg(t)})),this.Ke=0,this.Qg=null,this.tx=null}var i=t.prototype;return i.Jg=function(t){switch(t.state){case 0:this.ix(0,null);break;case 1:this.ix(1,t)}},i.ix=function(t,i){switch(t){case 1:this.Ke=t,this.nx(i),this.qg.triggerEvent("story-focus",this.$g);break;case 0:this.Ke=t,this.nx(null);break;default:Ft().warn(je,"EmbeddedComponentState ".concat(this.Ke," does not exist"))}},i.ox=function(){var t=this;return this.Wg=this.sx(),this.De=Ie(Ct("div",null),this.Wg,'.i-amphtml-story-focused-state-layer{top:0!important;left:0!important;width:100%!important;height:100%!important;z-index:100001!important;position:absolute!important}.i-amphtml-story-focused-state-layer.i-amphtml-hidden{opacity:0!important;pointer-events:none!important;transition:opacity 0.1s cubic-bezier(0.4,0.0,1,1)!important}.i-amphtml-story-focused-state-layer-nav-button-container{height:100%!important;width:160px!important;position:absolute!important;display:-ms-flexbox!important;display:flex!important;-ms-flex-direction:column!important;flex-direction:column!important;-ms-flex-pack:center!important;justify-content:center!important}.i-amphtml-story-focused-state-layer-nav-button-container.i-amphtml-story-tooltip-nav-button-left{background-image:linear-gradient(90deg,rgba(33,33,33,.15) 2%,rgba(33,33,33,0))!important;left:0!important}.i-amphtml-story-focused-state-layer-nav-button-container.i-amphtml-story-tooltip-nav-button-right{background-image:linear-gradient(90deg,rgba(33,33,33,0) 2%,rgba(33,33,33,.15))!important;right:0!important}.i-amphtml-story-focused-state-layer-nav-button{position:absolute!important;top:0!important;bottom:0!important;margin:auto!important;width:48px!important;height:48px!important;padding:0!important;border:0!important;background-color:transparent!important;filter:drop-shadow(0px 0px 16px rgba(0,0,0,0.5))!important;transition:transform 0.2s cubic-bezier(0.0,0.0,0.2,1)!important}.i-amphtml-story-focused-state-layer-nav-button.i-amphtml-story-tooltip-nav-button-left{left:-8px!important;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="%23FFF"><path d="M30.8 14.8 28 12 16 24l12 12 2.8-2.8-9.1-9.2z"/><path fill="none" d="M0 0h48v48H0z"/></svg>\')!important}.i-amphtml-hidden .i-amphtml-story-focused-state-layer-nav-button.i-amphtml-story-tooltip-nav-button-left{transform:translate3d(8px,0,0);transition:transform 0s linear .1s!important}.i-amphtml-story-focused-state-layer-nav-button.i-amphtml-story-tooltip-nav-button-right{right:-8px!important;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="%23FFF"><path d="m20 12-2.8 2.8 9.1 9.2-9.1 9.2L20 36l12-12z"/><path fill="none" d="M0 0h48v48H0z"/></svg>\')!important}.i-amphtml-hidden .i-amphtml-story-focused-state-layer-nav-button.i-amphtml-story-tooltip-nav-button-right{transform:translate3d(-8px,0,0);transition:transform 0s linear .1s!important}[desktop] .i-amphtml-story-focused-state-layer-nav-button-container{display:none!important}.i-amphtml-hidden>.i-amphtml-story-tooltip,.i-amphtml-hidden>.i-amphtml-story-tooltip.i-amphtml-tooltip-arrow-on-top{transform:translateZ(0)!important;transition:transform 0s linear 0.1s!important}.i-amphtml-story-tooltip{max-width:248px!important;height:40px!important;border-radius:6px!important;padding:8px!important;position:absolute!important;box-sizing:border-box!important;text-decoration:none!important;text-shadow:none!important;font-weight:500!important;display:-ms-flexbox!important;display:flex!important;-ms-flex-align:center!important;align-items:center!important;background:#fff!important;box-shadow:0px 6px 16px rgba(0,0,0,.16)!important;transform:translate3d(0,-16px,0)!important;transition:transform 0.2s cubic-bezier(0.0,0.0,0.2,1)!important}.i-amphtml-story-tooltip-theme-dark{background:#202125!important}.i-amphtml-story-tooltip.i-amphtml-tooltip-arrow-on-top{transform:translate3d(0,16px,0)!important}.i-amphtml-tooltip-text{text-overflow:ellipsis!important;overflow:hidden!important;white-space:nowrap!important;margin:0px 5px!important;font-family:Roboto,sans-serif!important;font-size:14px!important;color:#3c4043!important;letter-spacing:0!important;line-height:20px!important}.i-amphtml-story-tooltip-theme-dark .i-amphtml-tooltip-text{color:#9aa0a6!important}.i-amphtml-story-tooltip-custom-icon{width:24px!important;height:24px!important;margin:0px 5px!important;background-size:cover!important;background-position:50%!important;background-repeat:no-repeat!important;filter:drop-shadow(0px 0px 8px rgba(0,0,0,0.08))!important;-ms-flex-negative:0;flex-shrink:0;border-radius:50%!important}.i-amphtml-story-tooltip-custom-icon.i-amphtml-hidden{display:none!important}.i-amphtml-tooltip-action-icon{width:16px!important;height:16px!important;margin:0px 5px!important;padding-bottom:2px!important;-ms-flex-negative:0;flex-shrink:0}.i-amphtml-tooltip-action-icon-launch{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="%23757575" viewBox="0 0 48 48"><path fill="none" d="M0 0h48v48H0z"/><path d="M38 38H10V10h14V6H10a4 4 0 0 0-4 4v28a4 4 0 0 0 4 4h28a4 4 0 0 0 4-4V24h-4zM28 6v4h7.2L15.5 29.7l2.8 2.8L38 12.8V20h4V6z"/></svg>\')!important}.i-amphtml-story-tooltip-theme-dark .i-amphtml-tooltip-action-icon-launch{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="rgba(255, 255, 255, 0.54)" viewBox="0 0 48 48"><path fill="none" d="M0 0h48v48H0z"/><path d="M38 38H10V10h14V6H10a4 4 0 0 0-4 4v28a4 4 0 0 0 4 4h28a4 4 0 0 0 4-4V24h-4zM28 6v4h7.2L15.5 29.7l2.8 2.8L38 12.8V20h4V6z"/></svg>\')!important}.i-amphtml-story-tooltip-arrow{border-right:8px solid transparent!important;border-left:8px solid transparent!important;border-top:10px solid #fff!important;position:absolute!important;bottom:-8px!important}.i-amphtml-story-tooltip-theme-dark .i-amphtml-story-tooltip-arrow{border-top:10px solid #202125!important}.i-amphtml-tooltip-arrow-on-top .i-amphtml-story-tooltip-arrow{bottom:auto!important;top:-8px!important;border-top:0px!important;border-bottom:10px solid #fff!important}.i-amphtml-story-tooltip-theme-dark .i-amphtml-tooltip-arrow-on-top .i-amphtml-story-tooltip-arrow{border-bottom:10px solid #202125!important}.amp-social-share-twitter-no-background{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="1227" fill="none"><path fill="%23000" d="M714.163 519.284 1160.89 0h-105.86L667.137 450.887 357.328 0H0l468.492 681.821L0 1226.37h105.866l409.625-476.152 327.181 476.152H1200L714.137 519.284zM569.165 687.828l-47.468-67.894-377.686-540.24h162.604l304.797 435.991 47.468 67.894 396.2 566.721H892.476L569.165 687.854z"/></svg>\')}.i-amphtml-story-tooltip-custom-icon.amp-social-share-twitter-no-background{background-size:70%!important}\n/*# sourceURL=/extensions/amp-story/1.0/amp-story-tooltip.css*/'),this.Zg.addEventListener("click",(function(i){i.stopPropagation(),t.qg.triggerEvent("story-click-through",t.$g),t.Zg.href&&t.ux(i)}),!0),this.De},i.hx=function(){var t=this;this.Xo.delay((function(){t.lx()}),100),this.Lg.dispatch(19,{state:0})},i.nx=function(t){var i=this;t?(this.$g=t.element,this.Wg||(this.Bg.appendChild(this.ox()),this.Ug()),this.Xo.delay((function(){i.mx(t)}),100)):this.oa.mutateElement(this.Wg,(function(){i.Wg.classList.toggle("i-amphtml-hidden",!0)}))},i.mx=function(t){var i=this;this.vx(t.element),this.yx(t),this.Kg=jt(this.Bg.querySelector("amp-story-page[active]")),this.oa.mutateElement(this.Wg,(function(){i.Wg.classList.toggle("i-amphtml-hidden",!1),function(t){try{t.focus()}catch(t){}}(i.Wg.querySelector("a.i-amphtml-story-tooltip"))}))},i.Ug=function(){var t=this;this.Lg.subscribe(Gi.UI_STATE,(function(i){t.gx(i)}),!0),this.Lg.subscribe(Gi.CURRENT_PAGE_ID,(function(){1===t.Ke&&t.hx()}))},i.gx=function(t){var i=this;this.oa.mutateElement(this.Wg,(function(){var e=2===t||4===t;Pt(i.Wg,"desktop",e)}))},i.yx=function(t){var i=qt(this.bx(t.element),"Invalid embed config for target",t.element),e=this.$g.getAttribute("theme");e&&"dark"===e.toLowerCase()&&this.Zg.classList.add(He),this.xx(t.element),this.wx(t.element,i),this.kx(i),this.Ax(),this.Tx(t)},i.vx=function(t){M(t,Fe())&&this.Zg.setAttribute("href",this.Sx(t))},i.Sx=function(t){if("amp-twitter"==t.tagName.toLowerCase())return"https://twitter.com/_/status/"+t.getAttribute("data-tweetid");var i=t.getAttribute("href");return this.Fg.isProtocolValid(i)?this.Fg.parse(i).href:(Wt().error(je,"The tooltip url is invalid"),"")},i.bx=function(t){var i=Ve[t.tagName.toLowerCase()];return i&&M(t,i.selector)?i:(Wt().error(je,"No config matching provided target."),null)},i.xx=function(t){var i=t.getAttribute("data-tooltip-text")||function(t,i){var e,n=xi(t);try{e=n.parse(n.getSourceOrigin(i))}catch(t){e=n.parse(i)}return e.hostname}(t,this.Sx(t));this.Zg.querySelector(".i-amphtml-tooltip-text").textContent=i},i.kx=function(t){var i=this.Zg.querySelector(".i-amphtml-tooltip-action-icon");this.oa.mutateElement(i,(function(){i.classList.toggle(t.actionIcon,!0)}))},i.wx=function(t,i){var e=this,n=t.getAttribute("data-tooltip-icon");if(this.Fg.isProtocolValid(n)){var r=this.Zg.querySelector(".i-amphtml-story-tooltip-custom-icon");n||i.customIconClassName?n?this.oa.mutateElement(r,(function(){var t=e.Fg.parse(n).href;X(r,{"background-image":"url(".concat(t,")")})})):this.oa.mutateElement(r,(function(){r.classList.add(i.customIconClassName)})):r.classList.toggle("i-amphtml-hidden",!0)}else Wt().error(je,"The tooltip icon url is invalid")},i.Ax=function(){this.Ex()?this.Lg.get(Gi.RTL_STATE)?this.Qg.setAttribute("hidden",!0):this.tx.setAttribute("hidden",!0):(this.Qg.removeAttribute("hidden"),this.tx.removeAttribute("hidden"))},i.Ex=function(){return this.Lg.get(Gi.CURRENT_PAGE_INDEX)+1===this.Lg.get(Gi.PAGE_IDS).length},i.Tx=function(t){var i=this,e={arrowOnTop:!1};this.oa.measureMutateElement(this.Bg,(function(){var n=i.Kg.getBoundingClientRect();i.Px(t,n,e),i.Ox(t,n,e)}),(function(){i.Zg.classList.toggle("i-amphtml-tooltip-arrow-on-top",e.arrowOnTop),X(i.Xg,{left:"".concat(e.arrowLeftOffset,"px")}),X(jt(i.Zg),{top:"".concat(e.tooltipTop,"px"),left:"".concat(e.tooltipLeft,"px")})}))},i.Ox=function(t,i,e){var n=this.Zg.offsetHeight;e.tooltipTop=t.clientY-n-24,e.tooltipTop<i.top+48&&(e.arrowOnTop=!0,e.tooltipTop=t.clientY+24)},i.Px=function(t,i,e){var n=this.Zg.offsetWidth;e.tooltipLeft=t.clientX-n/2;var r=i.left+i.width-32-n,o=i.left+32;e.tooltipLeft=Math.min(e.tooltipLeft,r),e.tooltipLeft=Math.max(e.tooltipLeft,o),e.arrowLeftOffset=Math.abs(t.clientX-e.tooltipLeft-this.Xg.offsetWidth/2),e.arrowLeftOffset=Math.min(e.arrowLeftOffset,n-24),e.arrowLeftOffset=Math.max(e.arrowLeftOffset,0)},i._x=function(t){var i=this;R(t.target,(function(t){return t==i.Zg}))||(t.stopPropagation(),this.hx())},i.lx=function(){var t=this;this.oa.mutateElement(this.Zg,(function(){t.Zg.querySelector(".i-amphtml-tooltip-action-icon").className="i-amphtml-tooltip-action-icon";var i=t.Zg.querySelector(".i-amphtml-story-tooltip-custom-icon");i.className="i-amphtml-story-tooltip-custom-icon",function(t,i){for(var e=0;e<i.length;e++)K(t,i[e],null)}(i,["background-image"]),t.Zg.classList.remove(He),t.Zg.removeAttribute("href")}))},i.sx=function(){var t=this,i=this.Lg.get(Gi.RTL_STATE);return this.Xg=Ct("div",{class:"i-amphtml-story-tooltip-arrow"}),this.Zg=Ct("a",{class:"i-amphtml-story-tooltip",target:"_blank",role:"tooltip"},Ct("div",{class:"i-amphtml-story-tooltip-custom-icon"}),Ct("p",{class:"i-amphtml-tooltip-text",ref:"text"}),Ct("div",{class:"i-amphtml-tooltip-action-icon"}),this.Xg),this.Qg=Ct("button",{class:"i-amphtml-story-focused-state-layer-nav-button i-amphtml-story-tooltip-nav-button-left",onClick:function(e){return t.Mx(e,i?ji:Fi)}}),this.tx=Ct("button",{class:"i-amphtml-story-focused-state-layer-nav-button i-amphtml-story-tooltip-nav-button-right",onClick:function(e){return t.Mx(e,i?Fi:ji)}}),Ct("section",{onClick:function(i){return t._x(i)},class:"i-amphtml-story-focused-state-layer i-amphtml-story-system-reset i-amphtml-hidden"},Ct("div",{class:"i-amphtml-story-focused-state-layer-nav-button-container i-amphtml-story-tooltip-nav-button-left"},this.Qg),Ct("div",{class:"i-amphtml-story-focused-state-layer-nav-button-container i-amphtml-story-tooltip-nav-button-right"},this.tx),this.Zg)},i.Mx=function(t,i){t.preventDefault(),this.Lg.dispatch(7,le),Zi(this.t,this.De,i,void 0,{bubbles:!0})},i.ux=function(t){t.preventDefault(),Ge(this.Zg,this.Bg)},i.getShadowRootForTesting=function(){return this.De},t}(),Ye="default",Xe=/\w+/gi;function Ke(t,i,e){for(var r,o=n(i,!0);!(r=o()).done;){var a,s=null===(a=t[r.value])||void 0===a?void 0:a[e];if(null!=s)return s.string||s}return null}var Ze=function(){function t(t){this.ri=t,this.Ix=Ti(t).getParam("lang"),this.Nx={},this.zx=new Ci}var i=t.prototype;return i.getLanguageCodesForElement=function(t){var i=R(t,(function(t){return t.hasAttribute("lang")})),e=function(t){if(!t)return["en",Ye];var i=t.match(Xe)||[];return i.reduce((function(t,e,n){var r=i.slice(0,n+1).join("-").toLowerCase();return t.unshift(r),t}),[Ye])}((i?i.getAttribute("lang"):null)||"");return this.Ix&&e.unshift(this.Ix),e},i.registerLocalizedStringBundles=function(t){var i=this;Object.keys(t).forEach((function(e){var n=e.toLowerCase();i.Nx[n]||(i.Nx[n]={}),Object.assign(i.Nx[n],t[e])})),this.zx.fire()},i.getLocalizedString=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.ri,e=this.getLanguageCodesForElement(i);return Ke(this.Nx,e,t)},i.getLocalizedStringAsync=function(t){var i=this,e=this.getLanguageCodesForElement(this.ri),n=Ke(this.Nx,e,t);return null!==n?Promise.resolve(n):new Promise((function(n){var r=i.zx.add((function(){var o=Ke(i.Nx,e,t);o&&(r(),n(o))}))}))},t}(),$e=["af","am","ar","bg","bn","bs","ca","cs","da","de","el","en-GB","en","es-419","es","et","eu","fa","fi","fil","fr","gl","gu","hi","hr","hu","id","is","it","iw","ja","ka","km","kn","ko","lo","lt","lv","mk","ml","mn","mr","ms","my","ne","nl","no","pa","pl","pt-BR","pt-PT","ro","ru","si","sk","sl","sq","sr","sv","sw","ta","te","th","tr","uk","ur","vi","zh-CN","zh-TW","zu"];function Je(t){var i,e,n=Si(t);return n||(n=new Ze(t),i=function(){return n},ni(ii(e=ti(t)),e,"localization",i)),n}function Qe(t,i){var e=Si(i),n=_i(ft(i)),r=[];return t.querySelectorAll("[i-amphtml-i18n-aria-label]").forEach((function(t){r.push(e.getLocalizedStringAsync(t.getAttribute("i-amphtml-i18n-aria-label")).then((function(i){return t.setAttribute("aria-label",i)}))),t.removeAttribute("i-amphtml-i18n-aria-label")})),t.querySelectorAll("[i-amphtml-i18n-text-content]").forEach((function(i){r.push(e.getLocalizedStringAsync(i.getAttribute("i-amphtml-i18n-text-content")).then((function(e){return t.isConnected?n.mutatePromise((function(){i.textContent=e})):i.textContent=e}))),i.removeAttribute("i-amphtml-i18n-text-content")})),Promise.all(r)}function tn(t){var i;return!(null===(i=t.matchMedia("(prefers-reduced-motion: reduce)"))||void 0===i||!i.matches)}function en(t,i,e,n){return[{transform:it(t,i)},{transform:it(e,n)}]}function nn(t,i,e,n,r){return[{transform:it(t,i)+" "+nt(120*r)},{transform:it(e,n)+" "+nt(0)}]}function rn(t,i,e,n){return[{opacity:0,transform:it(t,i)+" "+et(.15)},{opacity:1,transform:it(e,n)+" "+et(1)}]}function on(t){if(function(t){return t.targetWidth<=t.pageWidth||t.targetHeight<=t.pageHeight}(t)){var i=t.pageWidth>t.targetWidth?t.pageWidth/t.targetWidth:1,e=t.pageHeight>t.targetHeight?t.pageHeight/t.targetHeight:1;return 1.25*Math.max(i,e)}return 1}function an(t,i,e,n,r){return 1===r?en(t,i,e,n):function(t,i){return t.forEach((function(t){t.transform+=" "+et(i),t["transform-origin"]="left top"})),t}(en(t,i,e,n),r)}var sn="0.4, 0.4, 0.0, 1",ln=["scale-start","scale-end","pan-scaling-factor","translate-x","translate-y"],hn=["pan-up","pan-down","pan-right","pan-left","zoom-in","zoom-out"],un=f({},"full-bleed","i-amphtml-story-grid-template-with-full-bleed-animation"),cn={pulse:{duration:600,easing:"cubic-bezier(0.3, 0.0, 0.0, 1)",keyframes:[{offset:0,transform:"scale(1)"},{offset:.25,transform:"scale(0.95)"},{offset:.75,transform:"scale(1.05)"},{offset:1,transform:"scale(1)"}]},"fly-in-left":{duration:600,easing:"cubic-bezier(0.2, 0.6, 0.0, 1)",keyframes:function(t){return en(-(t.targetX+t.targetWidth),0,0,0)}},"fly-in-right":{duration:600,easing:"cubic-bezier(0.2, 0.6, 0.0, 1)",keyframes:function(t){return en(t.pageWidth-t.targetX,0,0,0)}},"fly-in-top":{duration:600,easing:"cubic-bezier(0.2, 0.6, 0.0, 1)",keyframes:function(t){return en(0,-(t.targetY+t.targetHeight),0,0)}},"fly-in-bottom":{duration:600,easing:"cubic-bezier(0.2, 0.6, 0.0, 1)",keyframes:function(t){return en(0,t.pageHeight-t.targetY,0,0)}},"rotate-in-left":{duration:1e3,easing:"cubic-bezier(".concat(sn,")"),keyframes:function(t){return nn(-(t.targetX+t.targetWidth),0,0,0,-1)}},"rotate-in-right":{duration:1e3,easing:"cubic-bezier(".concat(sn,")"),keyframes:function(t){return nn(t.pageWidth-t.targetX,0,0,0,1)}},"fade-in":{duration:600,easing:"cubic-bezier(".concat(sn,")"),keyframes:[{opacity:0},{opacity:1}]},"scale-fade-up":{duration:600,easing:"cubic-bezier(".concat(sn,")"),keyframes:[{opacity:0,transform:"scale(0.8)"},{opacity:1,transform:"scale(1)"}]},"scale-fade-down":{duration:600,easing:"cubic-bezier(".concat(sn,")"),keyframes:[{opacity:0,transform:"scale(1.4)"},{opacity:1,transform:"scale(1)"}]},drop:{duration:1600,easing:"linear",keyframes:function(t){var i=Math.max(160,t.targetY+t.targetHeight);return[{offset:0,transform:"translateY(".concat(J(Number(-i)),")"),easing:"cubic-bezier(.5, 0, 1, 1)"},{offset:.29,transform:"translateY(0)",easing:"cubic-bezier(0, 0, .5, 1)"},{offset:.45,transform:"translateY(".concat(J(.2812*-i),")"),easing:"cubic-bezier(.5, 0, 1, 1)"},{offset:.61,transform:"translateY(0)",easing:"cubic-bezier(0, 0, .5, 1)"},{offset:.71,transform:"translateY(".concat(J(.0956*-i),")"),easing:"cubic-bezier(.5, 0, 1, 1)"},{offset:.8,transform:"translateY(0)",easing:"cubic-bezier(0, 0, .5, 1)"},{offset:.85,transform:"translateY(".concat(J(.0359*-i),")"),easing:"cubic-bezier(.5, 0, 1, 1)"},{offset:.92,transform:"translateY(0)",easing:"cubic-bezier(0, 0, .5, 1)"},{offset:.96,transform:"translateY(".concat(J(.0156*-i),")"),easing:"cubic-bezier(.5, 0, 1, 1)"},{offset:1,transform:"translateY(0)",easing:"cubic-bezier(0, 0, .5, 1)"}]}},"twirl-in":{duration:1e3,easing:"cubic-bezier(".concat(sn,")"),keyframes:[{transform:"rotate(-540deg) scale(0.1)",opacity:0},{transform:"none",opacity:1}]},"whoosh-in-left":{duration:600,easing:"cubic-bezier(".concat(sn,")"),keyframes:function(t){return rn(-(t.targetX+t.targetWidth),0,0,0)}},"whoosh-in-right":{duration:600,easing:"cubic-bezier(".concat(sn,")"),keyframes:function(t){return rn(t.pageWidth-t.targetX,0,0,0)}},"pan-left":{duration:1e3,easing:"linear",keyframes:function(t,i){var e,n=i["translate-x"],r=null!==(e=i["pan-scaling-factor"])&&void 0!==e?e:on(t);t.targetWidth*=r,t.targetHeight*=r;var o=t.pageWidth-t.targetWidth,a=(t.pageHeight-t.targetHeight)/2;return an(o,a,n?o+n:0,a,r)}},"pan-right":{duration:1e3,easing:"linear",keyframes:function(t,i){var e,n=i["translate-x"],r=null!==(e=i["pan-scaling-factor"])&&void 0!==e?e:on(t);t.targetWidth*=r,t.targetHeight*=r;var o=t.pageWidth-t.targetWidth,a=(t.pageHeight-t.targetHeight)/2;return an(0,a,-n||o,a,r)}},"pan-down":{duration:1e3,easing:"linear",keyframes:function(t,i){var e,n=i["translate-y"],r=null!==(e=i["pan-scaling-factor"])&&void 0!==e?e:on(t);t.targetWidth*=r,t.targetHeight*=r;var o=.5*(t.pageWidth-t.targetWidth),a=t.pageHeight-t.targetHeight;return an(o,0,o,-n||a,r)}},"pan-up":{duration:1e3,easing:"linear",keyframes:function(t,i){var e,n=i["translate-y"],r=null!==(e=i["pan-scaling-factor"])&&void 0!==e?e:on(t);t.targetWidth*=r,t.targetHeight*=r;var o=.5*(t.pageWidth-t.targetWidth),a=t.pageHeight-t.targetHeight;return an(o,a,o,n?a+n:0,r)}},"zoom-in":{duration:1e3,easing:"linear",keyframes:function(t,i){var e=i["scale-start"],n=i["scale-end"];return e&&qt(n>e,'"scale-end" value must be greater than "scale-start" value when using "zoom-in" animation.'),[{transform:"scale(".concat(e||1,")")},{transform:"scale(".concat(n||3,")")}]}},"zoom-out":{duration:1e3,easing:"linear",keyframes:function(t,i){var e=i["scale-start"],n=i["scale-end"];return e&&qt(e>n,'"scale-start" value must be higher than "scale-end" value when using "zoom-out" animation.'),[{transform:"scale(".concat(e||3,")")},{transform:"scale(".concat(n||1,")")}]}}},mn="AMP-STORY",pn="animate-in",fn="animate-in-duration",dn="animate-in-delay",gn="animate-in-after",vn="animate-in-timing-function",yn="[".concat(pn,"]");function bn(t,i){if(!i.hasAttribute(gn))return null;var e=i.getAttribute(gn);return t.querySelector("#".concat(O(e)))?e:(Wt().warn(mn,"The attribute '".concat(gn,"' in tag ")+"'".concat(i.tagName,"' is set to the invalid value ")+"'".concat(e,"'. No children of parenting 'amp-story-page' ")+"exist with id ".concat(e,".")),null)}var An=function(){function t(t,i,e,n,r){var o=this,a=i.preset,s=i.source,l=i.spec,h=i.startAfterId;this.Rx=t,this.jx=s,this.Gc=n,this.Cx=a?l.target:null,this.Dx=r,this.Lx=h,this.Ux=this.Yx(i),this.Hx=this.Ux.then((function(t){return e.then((function(i){return i.createRunner(t)}))})),this.Vx=this.Ux.then((function(t){var i,e,n=t.keyframes;return o.Cx?(jt(!n[0].offset),i=n[0],e=["offset"],Object.keys(i).reduce((function(t,n){return e.includes(n)||(t[n]=i[n]),t}),{})):null})),this.Gx=null,this.Bx=null,this.Fx=null,this.Cx&&qt(l.delay>=0,'Negative delays are not allowed in amp-story "animate-in" animations.'),this.Hx.then((function(t){return o.Wx(t)}))}t.create=function(i,e,n,r,o){return new t(i,e,n,r,o)};var i=t.prototype;return i.getDims=function(){var t=this;return this.Gc.measurePromise((function(){var i=Oe(t.Cx),e=Oe(t.Rx);return{pageWidth:e.width,pageHeight:e.height,targetWidth:i.width,targetHeight:i.height,targetX:i.left-e.left,targetY:i.top-e.top}}))},i.Zx=function(t,i){return"function"==typeof t?this.getDims().then((function(e){return t(e,i||{})})):Promise.resolve(t)},i.Yx=function(t){var i=t.keyframeOptions,e=t.preset,n=t.spec;if(!e)return Promise.resolve(n);var r=n,o=r.delay,a=r.duration,s=r.easing,l=n.target;return this.Zx(e.keyframes,i).then((function(t){return{keyframes:t,target:l,delay:o,duration:a,easing:s,fill:"forwards"}}))},i.applyFirstFrame=function(){var t=this;return this.hasStarted()?o():(this.Gx&&this.Gx.cancel(),this.Vx.then((function(i){if(i)return t.Gc.mutatePromise((function(){Z(t.Cx,at(jt(i)))}))})))},i.applyLastFrame=function(){if(this.Cx)return o();this.Hx.then((function(t){t.init(),t.finish(!0)}))},i.start=function(){this.hasStarted()||this.Xx(0,this.qx())},i.qx=function(){return this.Lx?this.Dx.waitFor(this.Lx):o()},i.$x=function(t){t.start()},i.hasStarted=function(){return this.Kx(0)||!!this.Gx&&"running"==jt(this.Gx).getPlayState()},i.finish=function(){this.Gx||this.Jx(),this.Xx(1)},i.pause=function(){if(null===this.Fx&&this.Gx)try{this.Gx.pause()}catch(t){}},i.resume=function(){if(null===this.Fx&&this.Gx)try{this.Gx.resume()}catch(t){}},i.Qx=function(t){this.Gx&&(t.start(),t.finish())},i.cancel=function(){this.Bx=null,this.Fx=null,this.Gx&&jt(this.Gx).cancel()},i.Xx=function(t,i){var e=i||null;this.Bx=t,this.Fx=e,this.Gx&&this.Dw(t,e)},i.Dw=function(t,i){var e=this,n=jt(this.Gx);(i||o()).then((function(){if(e.Kx(t))switch(e.Bx=null,e.Fx=null,t){case 0:return e.$x(n);case 1:return e.Qx(n)}}))},i.Wx=function(t){var i=this;this.Gx=t,t.onPlayStateChanged((function(t){"finished"==t&&i.Jx()})),this.Kx()&&this.Dw(this.Bx,this.Fx)},i.Kx=function(t){return t?this.Bx===t:null!==this.Bx},i.Jx=function(){this.jx.id&&this.Dx.notifyFinish(this.jx.id)},t}(),En=function(){function t(t,i){this.Rx=t,this.vu=i,this.Gc=_i(this.vu.win),this.Hw=this.Vw();var e=li(i.win,"story-disable-animations-first-page")||Ri(i.win)||ze(i);this.Gw=tn(i.win)||e&&M(t,"amp-story-page:first-of-type"),this.Zw=null,this.Dx=Sn.create()}t.create=function(i,e,n){return new t(i,e)};var i=t.prototype;return i.applyFirstFrameOrFinish=function(){var t=this;return Promise.all(this.Xw().map((function(i){return t.Gw?i.applyLastFrame():i.applyFirstFrame()})))},i.applyLastFrame=function(){return Promise.all(this.Xw().map((function(t){return t.applyLastFrame()})))},i.animateIn=function(){this.Gw||this.$w().forEach((function(t){return t.start()}))},i.finishAll=function(){this.$w().forEach((function(t){return t.finish()}))},i.cancelAll=function(){this.Zw&&this.$w().forEach((function(t){return t.cancel()}))},i.pauseAll=function(){this.Zw&&!this.Gw&&this.$w().forEach((function(t){return t.pause()}))},i.resumeAll=function(){this.Zw&&!this.Gw&&this.$w().forEach((function(t){return t.resume()}))},i.hasAnimationStarted=function(){return this.$w().some((function(t){return t.hasStarted()}))},i.$w=function(){return jt(this.Zw)},i.Xw=function(){var t=this;return this.Zw||(this.Zw=Array.prototype.map.call(C(this.Rx,yn),(function(i){var e=t.Kw(i);return e?t.Qw({preset:e,source:i,startAfterId:bn(t.Rx,i),keyframeOptions:t.tk(i),spec:t.ik(i,e)}):null})).concat(Array.prototype.map.call(this.Rx.querySelectorAll("amp-story-animation[trigger=visibility]"),(function(i){return t.Qw({source:i,startAfterId:bn(t.Rx,i),spec:kt(i)})}))).concat(Array.prototype.map.call(this.Rx.querySelectorAll("amp-bodymovin-animation"),(function(t){return new wn(t)}))).filter(Boolean)),jt(this.Zw)},i.Qw=function(t){return An.create(this.Rx,t,jt(this.Hw),this.Gc,this.Dx)},i.ik=function(t,i){var e={target:t,delay:i.delay||0,duration:i.duration||0,easing:i.easing||"cubic-bezier(0.4, 0.0, 0.2, 1)",keyframes:[]};return t.hasAttribute(fn)&&(e.duration=ke(t.getAttribute(fn),e.duration)),t.hasAttribute(dn)&&(e.delay=ke(t.getAttribute(dn),e.delay)),t.hasAttribute(vn)&&(e.easing=t.getAttribute(vn)),e},i.Vw=function(){var t=this;return yi(this.vu.win).installExtensionForDoc(this.vu,"amp-animation").then((function(){return function(t,i,e){return pi(t,"web-animation",e,void 0).then((function(t){return function(t,i,e){return qt(t,"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.","web-animation",e,e,e)}(t,0,e)}))}(t.Rx,0,"amp-animation")})).then((function(i){return i.createBuilder({scope:t.Rx,scaleByScope:!0})}))},i.Kw=function(t){var i=t.getAttribute(pn);return cn[i]?(function(t,i){hn.indexOf(i)>=0&&t.parentElement.classList.add(un["full-bleed"])}(t,i),cn[i]):(Wt().warn(mn,"Invalid",pn,"preset",i,"for element",t),null)},i.tk=function(t){var i={};return ln.forEach((function(e){if(t.hasAttribute(e)){var n=parseFloat(t.getAttribute(e));isNaN(n)||n<=0?Wt().warn(mn,e,"attribute must be a positive number. Found negative or zero in element",t):i[e]=n}})),i},t}(),Sn=function(){function t(){this.nk=A(),this.rk=A()}t.create=function(){return new t};var i=t.prototype;return i.notifyFinish=function(t){t in this.nk&&(jt(this.rk[t])(),delete this.nk[t])},i.waitFor=function(t){if(!(t in this.nk)){var i=new a;this.nk[t]=i.promise,this.rk[t]=i.resolve}return this.nk[t]},t}(),wn=function(){function t(t){this.ak=t,this.pause()}var i=t.prototype;return i.pause=function(){this.sk("pause")},i.resume=function(){this.sk("play")},i.start=function(){this.applyFirstFrame(),this.resume()},i.applyFirstFrame=function(){this.sk("seekTo",{percent:0})},i.applyLastFrame=function(){this.sk("seekTo",{percent:1})},i.cancel=function(){this.pause()},i.sk=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.ak.getImpl().then((function(e){e.executeAction({method:t,args:i,satisfiesTrust:function(){return!0}})}))},t}();function xn(t){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t.hasAttribute("background-audio"))return null;var e=t.ownerDocument.createElement("audio"),n=xi(t).assertHttpsUrl(t.getAttribute("background-audio"),t);return e.setAttribute("src",n),e.setAttribute("preload","auto"),i&&e.setAttribute("loop",""),e.setAttribute("autoplay",""),e.setAttribute("muted",""),e.muted=!0,e.classList.add("i-amphtml-story-background-audio"),t.appendChild(e),e}var Tn=function(){function t(t){this.ek=new WeakMap,this.uk=Ai(t)}var i=t.prototype;return i.isPerformanceTrackingOn=function(){return this.uk.isPerformanceTrackingOn()},i.startMeasuring=function(t){if(t.paused){var i=this.hk(t),e=this.ck(t,i);this.ek.set(t,e),(t.error||t.__AMP_MEDIA_LOAD_FAILURE_SRC===t.currentSrc)&&(e.metrics.error=t.error?t.error.code:0,e.status=0)}else Ft().expectedError("media-performance-metrics","media must start paused")},i.stopMeasuring=function(t){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=this.ek.get(t);if(e){switch(e.unlisteners.forEach((function(t){return t()})),this.ek.delete(t),e.status){case 2:this.lk(e);break;case 3:this.mk(e)}i&&this.pk(e)}},i.pk=function(t){var i=t.media,e=t.metrics;if(this.uk.tickDelta(Ae,this.fk(i)),this.uk.tickDelta("vofp",M(i,"amp-story-page:first-of-type ".concat(i.tagName))?1:0),null!==e.error)return this.uk.tickDelta(Ee,e.error||0),void this.uk.flush();if(e.jointLatency||!(Date.now()-t.timeStamps.start<1e3)){if(!e.jointLatency)return this.uk.tickDelta(Ee,5),void this.uk.flush();var n=Math.round(e.rebufferTime/(e.rebufferTime+e.watchTime)*100);this.uk.tickDelta("vjl",e.jointLatency),this.uk.tickDelta("vwt",e.watchTime),this.uk.tickDelta("vrb",e.rebuffers),this.uk.tickDelta("vrbr",n),e.rebuffers&&this.uk.tickDelta("vmtbrb",Math.round(e.watchTime/e.rebuffers)),this.uk.flush()}},i.ck=function(t,i){return{media:t,status:1,unlisteners:i,timeStamps:{start:Date.now(),playing:0,waiting:0},metrics:{error:null,jointLatency:0,meanTimeBetweenRebuffers:0,rebuffers:0,rebufferTime:0,watchTime:0}}},i.lk=function(t){t.metrics.watchTime+=Date.now()-t.timeStamps.playing},i.mk=function(t){var i=Date.now()-t.timeStamps.waiting;i>250&&(t.metrics.rebuffers++,t.metrics.rebufferTime+=i)},i.hk=function(t){var i=[Oi(t,"ended",this.dk.bind(this)),Oi(t,"pause",this.dk.bind(this)),Oi(t,"playing",this.vk.bind(this)),Oi(t,"waiting",this.yk.bind(this))],e=t;return t.hasAttribute("src")||(e=U(t,(function(t){return"SOURCE"===t.tagName}))),i.push(Oi(e||t,"error",this.gk.bind(this))),i},i.gk=function(t){var i="SOURCE"===t.target.tagName?t.target.parent:t.target,e=this.ek.get(i);e.metrics.error=i.error?i.error.code:0,e.status=0},i.dk=function(t){var i=this.ek.get(t.target);2===i.status&&this.lk(i),i.status=1},i.vk=function(t){var i=this.ek.get(t.target),e=i.metrics,n=i.timeStamps;e.jointLatency||(e.jointLatency=Date.now()-n.start),3===i.status&&this.mk(i),n.playing=Date.now(),i.status=2},i.yk=function(t){var i=this.ek.get(t.target),e=i.timeStamps;2===i.status&&this.lk(i),e.waiting=Date.now(),i.status=3},i.fk=function(t){for(var i,e=!1,r=n(d(t.querySelectorAll("source")),!0);!(i=r()).done;){var o=i.value,a=o.hasAttribute("i-amphtml-video-cached-source");if(a&&t.currentSrc===o.src)return 2;a&&(e=!0)}return e?1:0},t}();function _n(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||e(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Pn=function(){function t(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];this.bk=t,this.xk=i,this.wk=e}var i=t.prototype;return i.kk=function(t){this.wk.forEach((function(i){var e=document.createElement("track");e.id=i.id,e.kind=i.kind,e.label=i.label,e.srclang=i.srclang,e.default=i.default,e.src=i.src,e.addEventListener("load",(function(){e.mode="showing",t.textTracks[0].mode="showing"})),t.appendChild(e)}))},i.applyToElement=function(i,e){var n=this;t.removeFrom(i,e),this.bk?e.setAttribute("src",this.bk):e.removeAttribute("src"),this.xk.forEach((function(t){return e.appendChild(t)})),e.changedSources&&e.changedSources(),this.wk.length>0&&(e.readyState>=1?this.kk(e):e.addEventListener("loadedmetadata",(function t(){e.removeEventListener("loadedmetadata",t),n.kk(e)})))},t.removeFrom=function(i,e){var n,r=null;(n="VIDEO"===e.tagName?e:Le(e)||e).hasAttribute("src")&&(r=t.createSourceElement(i,n),n.removeAttribute("src"));var o=d(n.querySelectorAll("source"));o.forEach((function(t){return wt(t)}));var a=d(n.querySelectorAll("track"));return a.forEach((function(t){return wt(t)})),new t(null,r?[r]:o,a)},t.createSourceElement=function(t,i){var e=t.document.createElement("source"),n=i.getAttribute("src");e.setAttribute("src",n);var r=i.getAttribute("amp-orig-src");r&&e.setAttribute("amp-orig-src",r);var o=i.getAttribute("type");return o&&e.setAttribute("type",o),e},t}(),kn=["i-amphtml-pool-media","i-amphtml-pool-audio","i-amphtml-pool-video"],On=["id","src","class","autoplay"];function Ln(t){return kn.indexOf(t)>=0}function In(t){return On.indexOf(t)>=0}function Nn(t,i){for(var e=i.classList.length-1;e>=0;e--){var n=i.classList.item(e);Ln(n)||i.classList.remove(n)}for(var r=0;r<t.classList.length;r++){var o=t.classList.item(r);Ln(o)||i.classList.add(o)}}function Cn(t,i){for(var e=t.attributes,n=i.attributes,r=n.length-1;r>=0;r--){var o=n[r].name;In(o)||i.removeAttribute(o)}for(var a=0;a<e.length;a++){var s=e[a],l=s.name,h=s.value;In(l)||i.setAttribute(l,h)}}var Mn=function(){function t(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.Ak=t;var e=new a;this.Tk=e.promise,this.options=i,this.Fe=e.resolve,this.hm=e.reject}var i=t.prototype;return i.getName=function(){return this.Ak},i.whenComplete=function(){return this.Tk},i.execute=function(t){return this.executeInternal(t).then(this.Fe,this.hm)},i.executeInternal=function(t){return o()},i.requiresSynchronousExecution=function(){return!1},i.failTask=function(t){this.hm(t)},t}(),Rn=function(t){u(e,t);var i=p(e);function e(){return i.call(this,"play")}return e.prototype.executeInternal=function(t){return t.paused?Mt(t):o()},e}(Mn),Dn=function(t){u(e,t);var i=p(e);function e(){return i.call(this,"pause")}return e.prototype.executeInternal=function(t){return t.pause(),o()},e}(Mn),Un=function(t){u(e,t);var i=p(e);function e(){return i.call(this,"unmute")}return e.prototype.executeInternal=function(t){return t.muted=!1,t.removeAttribute("muted"),o()},e}(Mn),Gn=function(t){u(e,t);var i=p(e);function e(){return i.call(this,"mute")}return e.prototype.executeInternal=function(t){return t.muted=!0,t.setAttribute("muted",""),o()},e}(Mn),zn=function(t){u(e,t);var i=p(e);function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{currentTime:0};return i.call(this,"setCurrentTime",t)}return e.prototype.executeInternal=function(t){return t.currentTime=this.options.currentTime,o()},e}(Mn),Bn=function(t){u(e,t);var i=p(e);function e(){return i.call(this,"load")}var n=e.prototype;return n.executeInternal=function(t){return t.load(),o()},n.requiresSynchronousExecution=function(){return!0},e}(Mn),Hn=function(t){u(e,t);var i=p(e);function e(){return i.call(this,"bless")}var n=e.prototype;return n.requiresSynchronousExecution=function(){return!0},n.executeInternal=function(t){var i=t.muted;return t.muted=!1,i&&(t.muted=!0),o()},e}(Mn),Wn=function(t){u(e,t);var i=p(e);function e(t,e){var n;return(n=i.call(this,"update-src")).t=t,n.Sk=e,n}var n=e.prototype;return n.executeInternal=function(t){return Pn.removeFrom(this.t,t),this.Sk.applyToElement(this.t,t),o()},n.requiresSynchronousExecution=function(){return!0},e}(Mn),Vn=function(t){u(e,t);var i=p(e);function e(t){var e;return(e=i.call(this,"swap-into-dom")).Ek=t,e}var n=e.prototype;return n.executeInternal=function(t){return xt(this.Ek)?(Nn(this.Ek,t),Cn(this.Ek,t),this.Ek.parentElement.replaceChild(t,this.Ek),o()):(this.failTask("Cannot swap media for element that is not in DOM."),o())},n.requiresSynchronousExecution=function(){return!0},e}(Mn),Fn=function(t){u(e,t);var i=p(e);function e(t){var e;return(e=i.call(this,"swap-out-of-dom")).Ek=t,e}var n=e.prototype;return n.executeInternal=function(t){return Nn(t,this.Ek),Cn(t,this.Ek),t.parentElement.replaceChild(this.Ek,t),o()},n.requiresSynchronousExecution=function(){return!0},e}(Mn);function jn(t){var i;Ot((i=t,i)).then((function(t){t.signals().signal("playback-delegated")}))}function qn(t){t.signals().signal("user-interacted")}var Yn="audio",Xn="video",Kn="pool",Zn={},$n=0,Jn=function(){function t(t,i,e){var n,r=this;this.t=t,this.Xo=wi(t),this.Pk=e,this.allocated={},this.unallocated={},this.Ok={},this._k=null,this.Mk={},this.Ik={},this.Nk=0,this.zk=!1,this.Rk=null,this.jk=(f(n={},Yn,(function(){var t=r.t.document.createElement("audio");return t.setAttribute("muted",""),t.muted=!0,t.classList.add("i-amphtml-pool-media"),t.classList.add("i-amphtml-pool-audio"),t})),f(n,Xn,(function(){var t=r.t.document.createElement("video");return t.setAttribute("muted",""),t.muted=!0,t.setAttribute("playsinline",""),t.classList.add("i-amphtml-pool-media"),t.classList.add("i-amphtml-pool-video"),t})),n),this.Ck(i)}var i=t.prototype;return i.Ck=function(t){var i=0;for(var e in t){var n=t[e],r=jt(this.jk[e])();this.allocated[e]=[],this.unallocated[e]=[];for(var o=n;o>0;o--){var a=1==o?r:r.cloneNode(!0);a.addEventListener("error",this.Dk,{capture:!0}),a.id="i-amphtml-pool-media-"+i++,a.muted=!0,a.__AMP_MEDIA_ELEMENT_ORIGIN__=Kn,this.unallocated[e].push(a)}}},i.Dk=function(t){var i=t.target;if(M(i,"source:last-of-type, video[src]")){var e="SOURCE"===i.tagName?i.parentElement:i;e.__AMP_MEDIA_LOAD_FAILURE_SRC=e.currentSrc||!0}},i.Lk=function(){return new Pn},i.Uk=function(t,i){return this.Pk(t)<this.Pk(i)?-1:1},i.Yk=function(){return"i-amphtml-placeholder-media-"+this.Nk++},i.Hk=function(t){return t.__AMP_MEDIA_ELEMENT_ORIGIN__===Kn},i.Vk=function(t){switch(t.tagName.toLowerCase()){case"audio":return Yn;case"video":return Xn;default:return 0}},i.Gk=function(t){return this.unallocated[t].pop()},i.Bk=function(t,i){if(this.Fk(t,i))return i;var e=this.allocated[t];return e[v(e,(function(t){return t["replaced-media"]===i.id}))]},i.Wk=function(t,i){this.allocated[t].push(i);var e=this.unallocated[t],n=e.indexOf(i);n>=0&&e.splice(n,1)},i.Zk=function(t,i){var e=this,n=this.allocated[t];if(n.sort((function(t,i){return e.Uk(t,i)})),i){var r=n[n.length-1];if(!r||this.Pk(r)<this.Pk(i))return null}var o=n.pop();return this.unallocated[t].push(o),o},i.Xk=function(t){var i=this,e=this.Vk(t),n=this.allocated[e];return(xt(t)?this.qk(t):o()).then((function(){var r=n.indexOf(t);jt(r>=0),n.splice(r,1),i.unallocated[e].push(t)}))},i.$k=function(t,i){var e=this.Zk(t,i);return e?(this.qk(e),e):null},i.Fk=function(t,i){var e=i;return this.allocated[t].indexOf(e)>=0},i.Kk=function(t,i,e){var n=this,r=Le(i),o=Le(t);return i["replaced-media"]=t.id,this.Jk(i,new Vn(t)).then((function(){return Promise.all([n.Qk(r),n.Qk(o)])})).then((function(){return n.Jk(i,new Wn(n.t,e))})).then((function(){return n.Jk(i,new Bn)})).catch((function(){n.Xk(i)}))},i.Qk=function(t){return t?"amp-audio"==t.tagName.toLowerCase()?o():(this.Mk[t.id]&&this.tA(t,1),t.getImpl().then((function(t){t.resetOnDomChange&&t.resetOnDomChange()}))):o()},i.iA=function(t){var i=this,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.Lk();return this.Jk(t,new Wn(this.t,e)).then((function(){return i.Jk(t,new Bn)}))},i.qk=function(t){var i=t["replaced-media"],e=this.Ik[i];t["replaced-media"]=null;var n=this.Jk(t,new Fn(e));return this.iA(t),n},i.nA=function(t){if(!xt(t))return o();var i=this.Vk(t),e=this.Bk(i,t);if(e)return Promise.resolve(e);var n=t,r=this.Ok[n.id];jt(r instanceof Pn);var a=this.Gk(i)||this.$k(i,n);return a?(this.Wk(i,a),this.Kk(n,a,r).then((function(){return a}))):o()},i.rA=function(t){return t.__AMP_MEDIA_IS_BLESSED__?o():this.Jk(t,new Hn)},i.reregister=function(t){return this.register(t,!0)},i.register=function(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=t.parentNode;if(e&&e.signals&&this.oA(e),this.Hk(t)){if(i){var n=Pn.removeFrom(this.t,t);return this.Ok[t.id]=n,this.iA(t,n)}return o()}var r=t;r.__AMP_MEDIA_ELEMENT_ORIGIN__="placeholder";var a=r.id||this.Yk();if(this.Ok[a]&&this.Ik[a])return o();r.id=a;var s=Pn.removeFrom(this.t,r);return this.Ok[a]=s,this.Ik[a]=r,r instanceof HTMLMediaElement&&(r.muted=!0,r.setAttribute("muted",""),r.pause()),o()},i.oA=function(t){this.Rk=this.Rk||[],this.Rk.push(t)},i.preload=function(t){return this.nA(t).then()},i.play=function(t){var i=this;return this.nA(t).then((function(t){return t?i.Jk(t,new Rn):o()}))},i.pause=function(t){var i=this,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.Vk(t),r=this.Bk(n,t);return r?this.Jk(r,new Dn).then((function(){e&&i.Xo.delay((function(){i.Jk(r,new zn({currentTime:0}))}),100)})):o()},i.rewindToBeginning=function(t){return this.setCurrentTime(t,0)},i.setCurrentTime=function(t,i){var e=this.Vk(t),n=this.Bk(e,t);return n?this.Jk(n,new zn({currentTime:i})):o()},i.mute=function(t){var i=this.Vk(t),e=this.Bk(i,t);if(!e)return o();var n=this.Mk[t.id];return n&&(n.gain.value=0),this.Jk(e,new Gn)},i.unmute=function(t){var i=this.Vk(t),e=this.Bk(i,t);if(!e)return o();if(i==Xn){var n=t.parentElement;if(n){var r=parseFloat(n.getAttribute("volume"));if(r<=0||n.hasAttribute("noaudio"))return o();r<1&&this.tA(t,r)}}return this.Jk(e,new Un)},i.tA=function(t,i){if("function"==typeof AudioContext?this._k=this._k||new AudioContext:"function"==typeof webkitAudioContext&&(this._k=this._k||new global.webkitAudioContext),this._k){if(!this.Mk[t.id]){var e=this._k.createMediaElementSource(t),n=this._k.createGain();this.Mk[t.id]=n,e.connect(n).connect(this._k.destination)}this.Mk[t.id].gain.value=i}},i.blessAll=function(){var t=this;if(this.zk)return o();(this.Rk||[]).forEach(qn),this.Rk=null;var i=[].concat(_n(this.allocated.audio),_n(this.unallocated.video),_n(this.allocated.audio),_n(this.unallocated.video)).map((function(i){return t.rA(i)}));return Promise.all(i).then((function(){t.zk=!0}),(function(t){Ft().expectedError("AMP-STORY","Blessing all media failed: ",t)}))},i.aA=function(t){var i=this,e=t.__AMP_MEDIA_ELEMENT_TASKS__;if(0!==e.length){var n=e[0],r=function(){n.execute(t).catch((function(t){return Ft().error("AMP-STORY",t)})).then((function(){e.shift(),i.aA(t)}))};n.requiresSynchronousExecution()?r():this.Xo.delay(r,0)}},i.Jk=function(t,i){t.__AMP_MEDIA_ELEMENT_TASKS__||(t.__AMP_MEDIA_ELEMENT_TASKS__=[]);var e=t.__AMP_MEDIA_ELEMENT_TASKS__,n=0!==e.length;return e.push(i),n||this.aA(t),i.whenComplete()},t.for=function(i){var e=i.getElement(),n=e.__AMP_MEDIA_POOL_ID__;if(n&&Zn[n])return Zn[n];var r=String($n++);return e.__AMP_MEDIA_POOL_ID__=r,Zn[r]=new t(ft(i.getElement()),i.getMaxMediaElementCounts(),(function(t){return i.getElementDistance(t)})),Zn[r]},t}(),Qn=self.__AMP_ERRORS||[];self.__AMP_ERRORS=Qn,Math.random();var tr={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},ir=300,er=function(){function t(){this.sA=[],this.eA=[],this.uA=[],this.hA=[],this.mp=!1}var i=t.prototype;return i.getType=function(){return 0},i.addProgressListener=function(t){this.sA.push(t)},i.addAdvanceListener=function(t){this.eA.push(t)},i.addPreviousListener=function(t){this.uA.push(t)},i.addOnTapNavigationListener=function(t){this.hA.push(t)},i.removeAllAddedListeners=function(){this.sA=[],this.eA=[],this.uA=[],this.hA=[]},i.start=function(){this.mp=!0},i.stop=function(t){this.mp=!1},i.isAutoAdvance=function(){return!1},i.isRunning=function(){return this.mp},i.getProgress=function(){return 1},i.onProgressUpdate=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,i=null!=t?t:this.getProgress();this.sA.forEach((function(t){t(i)}))},i.onAdvance=function(){this.eA.forEach((function(t){t()}))},i.onPrevious=function(){this.uA.forEach((function(t){t()}))},i.onTapNavigation=function(t){this.hA.forEach((function(i){i(t)}))},t.forElement=function(i,e){var n=nr.fromElement(i,e);if(n)return n;var r=e.getAttribute("auto-advance-after");if(r){var o=rr.fromAutoAdvanceString(r,i,e);if(o)return o;var a=or.fromAutoAdvanceString(r,i,e);if(a)return a}return new t},t}(),nr=function(t){u(e,t);var i=p(e);function e(t,e){var n;(n=i.call(this)).ri=e,n.cA=null,n.Xo=wi(t),n.lA=null,n.mA=!1,n.vu=ti(t.document),n.pA(),e.ownerDocument.defaultView&&(n.Lg=Ui(e.ownerDocument.defaultView));var r=n.Lg.get(Gi.RTL_STATE);return n.fA={left:{widthRatio:r?.75:.25,direction:r?1:2},right:{widthRatio:r?.25:.75,direction:r?2:1}},n}var n=e.prototype;return n.getType=function(){return 1},n.getProgress=function(){return 1},n.pA=function(){var t=this;this.ri.addEventListener("touchstart",this.dA.bind(this),!0),this.ri.addEventListener("touchend",this.vA.bind(this),!0),this.ri.addEventListener("click",this.yA.bind(this),!0),this.vu.onVisibilityChanged((function(){t.vu.isVisible()&&t.gA()}))},n.isAutoAdvance=function(){return!1},n.dA=function(t){var i=this;!this.lA&&this.bA(t)&&(this.lA=Date.now(),this.mA=this.Lg.get(Gi.PAUSED_STATE),this.Lg.dispatch(zi,!0),this.cA=this.Xo.delay((function(){i.Lg.dispatch(Bi,!1)}),500))},n.vA=function(t){var i=(t.touches||[]).length;!this.lA||i>0||(Date.now()-this.lA>500&&t.preventDefault(),this.gA())},n.gA=function(){this.lA&&(this.Lg.dispatch(zi,this.mA),this.lA=null,this.Xo.cancel(this.cA),this.cA=null,this.Lg.get(Gi.SYSTEM_UI_IS_VISIBLE_STATE)||this.Lg.dispatch(Bi,!0))},n.xA=function(t){return!R(t.target,(function(t){return function(t){return t.hasAttribute("on")&&!!t.getAttribute("on").match(/(^|;)\s*tap\s*:/)}(t)}),this.ri)},n.wA=function(t){return!!R(t.target,(function(t){var i=t.getAttribute("role");return!!i&&!!tr[i.toLowerCase()]}),this.ri)},n.bA=function(t){var i,e=this,n=!1;return R(t.target,(function(r){return i=r.tagName.toLowerCase(),r.classList.contains("amp-story-draggable-drawer-root")?(n=!1,!0):!i.startsWith("amp-story-interactive-")||e.kA(t,e.AA())&&!t.path[0].classList.contains("i-amphtml-story-interactive-disclaimer-icon")?r.classList.contains("i-amphtml-story-interactive-disclaimer-dialog-container")||"amp-story-audio-sticker"===i?(n=!1,!0):("amp-story-page"===i||"amp-story-subscriptions"===i)&&(n=!0,!0):(n=!1,!0)}),this.ri),n},n.TA=function(t,i){var e,n=!0,r=t.target,o=!!R(r,(function(t){return"amp-story-page-attachment"===(e=t.tagName.toLowerCase())||"amp-story-page-outlink"===e?(n=!1,!1):"amp-story-page"===e&&n}),this.ri);return o&&(this.kA(t,i)||this.SA(t,i))?(t.preventDefault(),!1):"auto"===r.getAttribute("show-tooltip")&&this.EA(r,i)?(r.setAttribute("target","_blank"),r.setAttribute("role","link"),!1):o},n.EA=function(t,i){return t.getBoundingClientRect().top-i.top>=.8*i.height},n.kA=function(t,i){if(0===t.clientX&&0===t.clientY)return!1;var e=.12*i.width,n=Math.max(e,48);return t.clientX<=i.x+n||t.clientX>=i.x+i.width-n},n.SA=function(t,i){if(0===t.clientX&&0===t.clientY)return!1;var e=t.target.getBoundingClientRect();return e.height*e.width/(i.width*i.height)>=.8&&(Wt().error("AMP-STORY-PAGE","Link was too large; skipped for navigation. For more information, see https://github.com/ampproject/amphtml/issues/31108"),!0)},n.PA=function(t,i){return M(t.target,Fe())&&this.TA(t,i)},n.yA=function(t){var i=t.target,e=this.AA();if(this.PA(t,e)){t.stopPropagation(),t.preventDefault();var n=this.Lg.get(Gi.INTERACTIVE_COMPONENT_STATE);this.Lg.dispatch(19,{element:i,state:n.state||1,clientX:t.clientX,clientY:t.clientY})}else if(this.isRunning()&&this.xA(t)&&!this.wA(t)&&this.bA(t)){t.stopPropagation(),this.Lg.dispatch(7,le);var r={offset:"x"in e?e.x:e.left,width:e.width,clickEventX:t.pageX};this.onTapNavigation(this.OA(r))}},n.AA=function(){return 4!==this.Lg.get(Gi.UI_STATE)?this.ri.getLayoutBox():this.ri.querySelector("amp-story-page[active]").getBoundingClientRect()},n.OA=function(t){var i=this.fA,e=i.left,n=i.right;return t.clickEventX<=t.offset+e.widthRatio*t.width?e.direction:n.direction},e.fromElement=function(t,i){return"amp-story"!==i.tagName.toLowerCase()?null:new e(t,i)},e}(er),rr=function(t){u(e,t);var i=p(e);function e(t,e,n){var r;return(r=i.call(this)).Xo=wi(t),e<500&&(Wt().warn("AMP-STORY-PAGE","".concat(n.id," has an auto advance duration that is too short. ")+"".concat(500,"ms is used instead.")),e=500),r._A=e,r.MA=null,r.IA=null,r.cA=null,n.ownerDocument.defaultView&&(r.Lg=Ui(n.ownerDocument.defaultView)),r}var n=e.prototype;return n.getType=function(){return 2},n.NA=function(){return Date.now()},n.start=function(){var i=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(t.prototype.start.call(this),e){var n=1-e;this.MA=this._A*n}this.MA?this.IA=this.NA()-(this._A-this.MA):this.IA=this.NA(),this.cA=this.Xo.delay((function(){return i.onAdvance()}),this.MA||this._A),this.onProgressUpdate(),this.Xo.poll(ir,(function(){return i.onProgressUpdate(),!i.isRunning()}))},n.stop=function(){var i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t.prototype.stop.call(this),null!==this.cA&&this.Xo.cancel(this.cA),this.MA=i?this.IA+this._A-this.NA():null},n.isAutoAdvance=function(){return!0},n.getProgress=function(){if(null===this.IA)return 0;var t=this.getProgressMs()/this._A;return Math.min(Math.max(t,0),1)},n.onAdvance=function(){this.Lg.dispatch(7,"autoAdvanceTime"),t.prototype.onAdvance.call(this)},n.updateTimeDelay=function(t){var i=ke(t);void 0===i||isNaN(i)||(this.MA&&(this.MA+=i-this._A),this._A=i)},n.getProgressMs=function(){return null===this.IA?0:this.NA()-this.IA},n.getDelayMs=function(){return this._A},e.fromAutoAdvanceString=function(t,i,n){if(!t)return null;var r=ke(t);return void 0===r||isNaN(r)?null:new e(i,Number(r),n)},e}(er),or=function(t){u(e,t);var i=p(e);function e(t,e){var n;return(n=i.call(this)).Xo=wi(t),n.ri=e,n.zA=null,n.RA=[],n.jA=null,n.CA=null,n.DA=null,n.Lg=Ui(t),n}var n=e.prototype;return n.getType=function(){return 3},n.LA=function(){return this.ri.classList.contains("i-amphtml-video-interface")},n.UA=function(){var t=this.ri.tagName.toLowerCase();return this.ri instanceof HTMLMediaElement?this.ri:this.ri.hasAttribute("background-audio")&&"amp-story-page"===t?this.ri.querySelector(".i-amphtml-story-background-audio"):"amp-audio"===t?this.ri.querySelector("audio"):null},n.start=function(){var i=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;t.prototype.start.call(this),(this.ri.build?this.ri.build():o()).then((function(){return i.YA(e)}))},n.YA=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.LA()?this.HA(t):(this.zA||(this.zA=this.UA()),this.zA?this.VA(t):Wt().error("AMP-STORY-PAGE","Element with ID ".concat(this.ri.id," is not a media element ")+"supported for automatic advancement."))},n.VA=function(){var t=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=this.zA;this.zA.removeAttribute("loop"),this.RA.push(Ii(e,"ended",(function(){return t.onAdvance()}))),this.onProgressUpdate(i),this.Xo.poll(ir,(function(){return t.onProgressUpdate(),!t.isRunning()}))},n.HA=function(){var t=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.ri.getImpl().then((function(i){t.DA=i})),this.ri.querySelector("video").removeAttribute("loop"),this.RA.push(Ii(this.ri,"ended",(function(){return t.onAdvance()}),{capture:!0})),this.onProgressUpdate(i),this.Xo.poll(ir,(function(){return t.onProgressUpdate(),!t.isRunning()}))},n.stop=function(){t.prototype.stop.call(this),this.RA.forEach((function(t){return t()}))},n.isAutoAdvance=function(){return!0},n.getProgress=function(){return this.LA()?this.DA&&this.DA.getDuration()?this.DA.getCurrentTime()/this.DA.getDuration():0:this.zA&&this.zA.duration?this.zA.currentTime/this.zA.duration:t.prototype.getProgress.call(this)},n.onAdvance=function(){this.Lg.dispatch(7,"autoAdvanceMedia"),t.prototype.onAdvance.call(this)},e.fromAutoAdvanceString=function(t,i,n){try{var r=n.querySelector("amp-video[data-id=".concat(O(t),"], amp-video#").concat(O(t),", amp-audio[data-id=").concat(O(t),"], amp-audio#").concat(O(t)));return M(n,"amp-story-page[background-audio]#".concat(O(t)))&&(r=n),r?new e(i,r):(t&&Wt().warn("AMP-STORY-PAGE","Element with ID ".concat(n.id," has no media element ")+"supported for automatic advancement."),null)}catch(t){return null}},e}(er);function ar(t){return(t=t.trim()).startsWith("WEBVTT")?function(t){var i=/^\d\d\:\d\d/,e=!1;t=t.split(/[\n\r]+/).filter((function(t){var n=i.test(t);return!(!(e=e||n)||n||/^NOTE\s+/.test(t))})).map((function(t){return t.replace(/^- /,"")})).join(" ");var n=Ct("template",null);if(self.trustedTypes&&self.trustedTypes.createPolicy){var r=self.trustedTypes.createPolicy("semantic-render#extractTextContentWebVtt",{createHTML:function(i){return t}});n.innerHTML=r.createHTML("ignored")}else n.innerHTML=t;return n.content.textContent}(t):("number"!=typeof e&&(e=0),e+25>(i=t).length||-1===i.indexOf("http://www.w3.org/ns/ttml",e)?"":function(t){try{return(new DOMParser).parseFromString(t,"text/xml").querySelector("body").textContent.replace(/[\s\n\r]+/g," ").trim()}catch(t){Ft().error("TTML",t.message)}return""}(t));var i,e}var sr="a, amp-twitter > iframe",lr="amp-story-page",hr="next",ur="previous",cr=function(t){u(e,t);var i=p(e);function e(t){var e,n,r,o;(e=i.call(this,t)).yh=Ti(e.element),e.GA=null,e.BA=null,e.FA=Rt(e.win,(function(t){return e.WA(!!t)}),100),e.ZA=(n=!1,r=null,o=function(){return e.XA()},function(){if(!n){for(var t=arguments.length,i=new Array(t),e=0;e<t;e++)i[e]=arguments[e];r=o.apply(self,i),n=!0,o=null}return r}),e.qA=null,e.$A=null;var s,l,h=new a;return e.KA=M(e.element,"amp-story-page:first-of-type"),e.JA=(s=e.win,(l=function(t){return Kt(t,"media-performance-metrics")}(s))||(l=new Tn(s),Yt(s,"media-performance-metrics",(function(){return l}))),l),e.QA=[],e.tT=null,e.iT=h.promise,e.nT=h.resolve,e.rT=h.reject,e.Ke=0,e.Lg=Ui(e.win),e.tb=[],e.oT=new a,e.aT=Ei(e.win).isBot(),e.sT=null,e.eT=e.element.getAttribute("auto-advance-after"),e.J=e.getAmpDoc().getVisibilityState(),e.getAmpDoc().onVisibilityChanged((function(){return e.Rf()})),e}e.prerenderAllowed=function(t){return dt(t)},e.previewAllowed=function(){return!0};var r=e.prototype;return r.uT=function(){this.GA||N(this.element,"".concat(yn,",>amp-story-animation,amp-bodymovin-animation"))&&(this.GA=En.create(this.element,this.getAmpDoc(),this.getAmpDoc().getUrl()))},r.hT=function(){var t=this.element.querySelector("amp-story-cta-layer");if(t){var i=t.querySelectorAll("a");1===i.length&&i[0].getAttribute("href")&&(wt(t),this.element.appendChild(Ct("amp-story-page-outlink",{layout:"nodisplay"},Ct("a",{href:i[0].getAttribute("href")},i[0].textContent))))}},r.buildCallback=function(){var t=this;this.delegateVideoAutoplay(),this.cT(),this.Ck(),this.uT(),this.lT(),this.mT(),this.Lg.subscribe(Gi.UI_STATE,(function(i){return t.gx(i)}),!0),this.pT(),this.element.setAttribute("role","region"),this.fT(),this.dT(),this.maybeApplyFirstAnimationFrameOrFinish(),this.hT()},r.Rf=function(){var t=this.getAmpDoc(),i=this.J===At&&t.isVisible();this.J=t.getVisibilityState(),(t.isPreview()||t.isVisible())&&this.lT(i)},r.lT=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.getAmpDoc().isPreview()?(this.vT(),this.yT()):this.getAmpDoc().isVisible()&&(this.gT(),this.bT(),this.isActive()&&t?this.xT():this.yT())},r.vT=function(){var t=this,i=this.wT(),e=this.kT();if(e){var n=this.AT();n>0&&(i=Math.min(n,i)),this.element.setAttribute("auto-advance-after",i+"s"),Ot(e).then((function(){return e.getImpl()})).then((function(n){t.loadPromise(e).then((function(){var t=n.getDuration()<i,r=e.querySelector("video");r.loop||(r.loop=t)}))}))}else this.element.setAttribute("auto-advance-after",i+"s")},r.wT=function(){var t=this.yh.getParam("previewSecondsPerPage"),i=parseInt(t,10);return isNaN(i)||i<=0?5:i},r.AT=function(){var t=this.getAmpDoc().getMetaByName("robots"),i=null==t?void 0:t.match(/max-video-preview[^,]*/)[0];return parseInt(null==i?void 0:i.split(":")[1],10)},r.gT=function(){this.eT?this.element.setAttribute("auto-advance-after",this.eT):this.element.removeAttribute("auto-advance-after")},r.xT=function(){var t;S(2===(null===(t=this.BA)||void 0===t?void 0:t.getType()));var i=this.BA.getProgress(),e=this.BA.getProgressMs();switch(this.yT(),this.BA.getType()){case 0:this.TT(1),this.BA.start();break;case 3:this.BA.start(i);break;case 2:this.BA.start(e/this.BA.getDelayMs())}},r.yT=function(){var t,i=this;null===(t=this.BA)||void 0===t||t.removeAllAddedListeners(),this.BA=er.forElement(this.win,this.element),this.BA.addPreviousListener((function(){return i.previous()})),this.BA.addAdvanceListener((function(){return i.next(!0)})),this.BA.addProgressListener((function(t){return i.TT(t)}))},r.bT=function(){var t=this.element.getAttribute("auto-advance-after"),i=Ti(this.element).getParam("storyNextUp");null===t&&null!==i&&(this.element.setAttribute("auto-advance-after",i),this.ST())},r.ST=function(){var t=this,i=this.kT();null!==i&&Ot(i).then((function(){return i.getImpl()})).then((function(e){var n=e.getDuration();isNaN(n)?Ii(i,"loadedmetadata",(function(){t.ET(e.getDuration())})):t.ET(n)}))},r.ET=function(t){t<2||!this.BA||!this.BA.updateTimeDelay||(this.BA.updateTimeDelay(t+"s"),this.element.setAttribute("auto-advance-after",t+"s"))},r.kT=function(){var t=this.PT();return 0===t.length?null:t[0]},r.delegateVideoAutoplay=function(){this.element.querySelectorAll("amp-video").forEach(jn)},r.Ck=function(){var t=this,i=D(this.element,"amp-story");Ot(i).then((function(){return i.getImpl()})).then((function(i){return t.nT(Jn.for(i))}),(function(i){return t.rT(i)}))},r.cT=function(){this.element.querySelectorAll("amp-audio, amp-video").forEach((function(t){t.setAttribute("preload","auto")}))},r.isLayoutSupported=function(t){return t==lt},r.setState=function(t){var i;switch(t){case 0:this.element.removeAttribute("active"),this.Qp(),this.Ke=t;break;case 1:var e;0===this.Ke&&(this.element.setAttribute("active",""),this.OT()),2===this.Ke&&(this.BA.start(),this._T(),null===(e=this.GA)||void 0===e||e.resumeAll()),this.Ke=t;break;case 2:this.BA.stop(!0),this.MT(!1),null===(i=this.GA)||void 0===i||i.pauseAll(),this.Ke=t;break;default:Ft().warn(lr,"PageState ".concat(t," does not exist"))}},r.Qp=function(){var t;this.BA.stop(!1),this.IT(),this.NT(),this.zT(!1),this.RT(!1),this.sT=null,this.MT(!0),this.Lg.get(Gi.MUTED_STATE)||this.muteAllMedia(),null===(t=this.GA)||void 0===t||t.cancelAll()},r.OT=function(){var t=this,i=this.jT();this.isActive()&&(i.then((function(){0!==t.Ke&&(t.signals().whenSignal(bt).then((function(){1==t.Ke&&t.BA.start()})),t.CT().then((function(){0!==t.Ke&&(t.DT(),t.LT(),t._T().then((function(){t.Lg.get(Gi.MUTED_STATE)||0===t.Ke||t.unmuteAllMedia()})),t.UT(t.Lg.get(Gi.CAPTIONS_STATE)))})))})).then((function(){if(t.getAmpDoc().isPreview())return t.YT().then((function(){return t.HT()}))})),this.VT(),this.GT(),this.BT(),this.FT(),this.WT())},r.HT=function(){var t=this,i=this.ZT().filter((function(t){return t.readyState<2}));return this.iT.then((function(e){var n=i.map((function(i){return t.XT(e,i).then((function(){return t.zT(!1),t.qT(e,i)}))}));return Promise.all(n)}))},r.layoutCallback=function(){var t=this,i=this.element.getAttribute("id")!==this.element.getAttribute("auto-advance-after");return xn(this.element,i),this.oT.resolve(),this.muteAllMedia(),this.$T(),this.KT(),Promise.all([this.JT().then((function(){return t.QT()})),this.iT])},r.onLayoutMeasure=function(){var t=this.getLayoutSize(),i=t.height,e=t.width;this.KA&&0!==i&&0!==e&&this.Lg.dispatch(12,{height:i,width:e})},r.gx=function(t){3===t&&this.tS()},r.JT=function(){var t=d(this.iS("amp-story-grid-layer amp-audio, amp-story-grid-layer amp-video, amp-story-grid-layer amp-img, amp-story-grid-layer amp-anim")).map((function(t){return new Promise((function(i){switch(t.tagName.toLowerCase()){case"amp-anim":case"amp-img":case"amp-story-360":if(t.hasAttribute("fallback"))return void i();Ot(t).then((function(t){return t.signals().whenSignal(bt)})).then(i,i);break;case"amp-audio":case"amp-video":var e=t.querySelector("audio, video");if(e&&e.readyState>=2)return void i();t.addEventListener("canplay",i,!0);break;default:i()}t.addEventListener("error",i,!0)}))}));return Promise.all(t)},r.nS=function(){return this.rS(!0)},r.YT=function(){return this.rS(!1)},r.rS=function(t){var i=d(this.iS("amp-story-grid-layer amp-audio, amp-story-grid-layer amp-video")).map((function(i){return new Promise((function(e){switch(i.tagName.toLowerCase()){case"amp-audio":case"amp-video":var n=t?"load-start":bt,r=i.getAttribute("layout")===st?"built":n;Ot(i).then((function(t){return t.signals().whenSignal(r)})).then(e,e);break;default:e()}}))}));return this.element.hasAttribute("background-audio")&&i.push(this.oT.promise),Promise.all(i)},r.oS=function(){var t=this.PT().map((function(t){return Ot(t).then((function(t){return t.whenBuilt()}))}));return Promise.all(t)},r.WT=function(){this.aS()},r.aS=function(){var t=d(C(this.element,Object.keys(We).join(",")));t.length<=0||this.mutateElement((function(){t.forEach((function(t){t.classList.add("i-amphtml-embedded-component")}))}))},r.QT=function(){var t=this;Zi(this.win,this.element,"ampstory:pageload",void 0,{bubbles:!0}),this.mutateElement((function(){t.element.classList.add("i-amphtml-story-page-loaded")}))},r.sS=function(){return this.iS("> audio, amp-story-grid-layer audio, amp-story-grid-layer video")},r.ZT=function(){return this.iS("amp-story-grid-layer video")},r.PT=function(){return this.iS("amp-story-grid-layer amp-video")},r.iS=function(t){var i=this.element.querySelector("iframe"),e=i&&function(t){return t.__AMP_EMBED__}(i),n=[];return C(this.element,t).forEach((function(t){return n.push(t)})),e&&C(e.win.document.body,t.replace(/amp-story-grid-layer/g,"")).forEach((function(t){return n.push(t)})),n},r.eS=function(){return null==(t=this.win).__AMP_AUTOPLAY&&(t.__AMP_AUTOPLAY=function(t){var i,e=t.document.createElement("video");return e.setAttribute("muted",""),e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("height","0"),e.setAttribute("width","0"),e.muted=!0,e.playsInline=!0,e.playsinline=!0,e.webkitPlaysinline=!0,Z(e,{position:"fixed",top:"0",width:"0",height:"0",opacity:"0"}),i=e,s((function(){return i.play()})).catch((function(){})),Promise.resolve(!e.paused)}(t)),t.__AMP_AUTOPLAY;var t},r.uS=function(t){var i=d(this.sS());return this.iT.then((function(e){var n=i.map((function(i){return t(e,i)}));return Promise.all(n)}))},r.MT=function(){var t=this,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.uS((function(e,n){return t.hS(e,n,i)}))},r.hS=function(t,i,e){return this.aT?(i.pause(),o()):t.pause(i,e)},r._T=function(){var t=this;return this.uS((function(i,e){return t.qT(i,e)}))},r.qT=function(t,i){var e=this;return this.aT?(Mt(i),o()):this.loadPromise(i).then((function(){return t.play(i).catch((function(t){"VIDEO"===i.tagName&&(e.FA(!1),e.eS().then((function(t){t?e.zT(!0):(e.IT(!1),e.RT(!0))}))),"AUDIO"===i.tagName&&(e.sT=Date.now())}))}),(function(){e.FA(!1),e.zT(!0)}))},r.CT=function(){var t=this;return this.uS((function(i,e){return t.cS(i,e)}))},r.cS=function(t,i){return this.aT?o():t.preload(i)},r.muteAllMedia=function(){var t=this;return this.uS((function(i,e){t.lS(i,e)}))},r.lS=function(t,i){return this.aT?(i.muted=!0,i.setAttribute("muted",""),o()):t.mute(i)},r.unmuteAllMedia=function(){var t=this;return this.uS((function(i,e){t.mS(i,e)}))},r.mS=function(t,i){if(this.aT)return i.muted=!1,i.removeAttribute("muted"),"AUDIO"===i.tagName&&i.paused&&Mt(i),o();var e=[t.unmute(i)];if("AUDIO"===i.tagName&&i.paused&&this.sT){var n=(Date.now()-this.sT)/1e3;(i.hasAttribute("loop")||n<i.duration)&&(e.push(t.setCurrentTime(i,n%i.duration)),e.push(t.play(i))),this.sT=null}return Promise.all(e)},r.jT=function(){var t=this;if(!this.tT){var i=this.getAmpDoc().isPreview()?this.nS():this.YT();this.tT=i.then((function(){return t.uS((function(i,e){return t.pS(i,e)}))}))}return this.tT},r.pS=function(t,i){return this.aT?o():t.register(i)},r.XT=function(t,i){return this.aT?o():t.reregister(i)},r.VT=function(){this.GA&&this.GA.animateIn()},r.tS=function(){var t=this;this.GA&&this.signals().whenSignal(bt).then((function(){return t.GA.applyLastFrame()}))},r.maybeApplyFirstAnimationFrameOrFinish=function(){var t;return Promise.resolve(null===(t=this.GA)||void 0===t?void 0:t.applyFirstFrameOrFinish())},r.getDistance=function(){return parseInt(this.element.getAttribute("distance"),10)},r.setDistance=function(t){var i=this;if(this.isAd()&&(t=Math.min(t,2)),t!=this.getDistance()){this.element.setAttribute("distance",t),this.element.setAttribute("aria-hidden",0!=t);var e=this.jT();t>0&&t<=2&&(this.WT(),e.then((function(){return i.CT()}))),this.fS(0==t)}},r.isActive=function(){return this.element.hasAttribute("active")},r.TT=function(t){var i=hi(this.win,ui);if((i&&i!=ci||!this.isAd())&&0!==this.Ke){var e={pageId:this.element.id,progress:t};Zi(this.win,this.element,qi,e,{bubbles:!0})}},r.getAdjacentPageIds=function(){var t=li(this.win,"amp-story-branching")?this.yy():[],i=this.getNextPageId(!0),e=this.getNextPageId(!1),n=this.getPreviousPageId();return i&&t.push(i),e&&e!=i&&t.push(e),n&&t.push(n),t},r.getPreviousPageId=function(){if(this.element.hasAttribute("i-amphtml-return-to"))return this.element.getAttribute("i-amphtml-return-to");var t=this.Lg.get(Gi.NAVIGATION_PATH),i=t.lastIndexOf(this.element.id),e=t[i-1];if(e)return e;var n=this.element.previousElementSibling;return n&&n.tagName.toLowerCase()===lr?n.id:null},r.getNextPageId=function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.element.hasAttribute("auto-advance-to"))return this.element.getAttribute("auto-advance-to");var t=li(this.win,"amp-story-branching")?"advance-to":"i-amphtml-advance-to";if(this.element.hasAttribute(t))return this.element.getAttribute(t);var i=this.element.nextElementSibling;return i&&i.tagName.toLowerCase()===lr?i.id:null},r.yy=function(){return Array.prototype.slice.call(this.element.querySelectorAll("[on*=goToPage]")).map((function(t){return t.getAttribute("on")})).reduce((function(t,i){return i.split(/[;,]+/).forEach((function(i){i.indexOf("goToPage")>=0&&t.push(i.slice(i.search("=(.*)")+1,-1))})),t}),[])},r.previous=function(){var t=this.getPreviousPageId();null!==t?(this.Lg.dispatch(zi,!1),this.dS(t,ur)):Zi(this.win,this.element,Ki,void 0,{bubbles:!0})},r.next=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this.getNextPageId(t);i?(this.Lg.dispatch(zi,!1),this.dS(i,hr)):Zi(this.win,this.element,Xi,void 0,{bubbles:!0})},r.dS=function(t,i){var e={targetPageId:t,direction:i};Zi(this.win,this.element,Vi,e,{bubbles:!0})},r.GT=function(){var t=this;(this.element.hasAttribute("background-audio")||this.element.querySelector("amp-audio")?Promise.resolve(!0):this.vS()).then((function(i){return t.Lg.dispatch(23,i)}))},r.vS=function(){var t=this;return this.oS().then((function(){return Array.prototype.some.call(t.PT(),(function(t){return!t.hasAttribute("noaudio")&&0!==parseFloat(t.getAttribute("volume"))}))}))},r.yS=function(){var t=this;return this.oS().then((function(){return Array.prototype.some.call(t.PT(),(function(t){return t.querySelector("track")}))}))},r.FT=function(){var t=this.isAutoAdvance()||this.element.hasAttribute("background-audio")||this.sS().length>0;this.Lg.dispatch(26,t)},r.BT=function(){var t=this;this.yS().then((function(i){t.Lg.dispatch(24,i)}))},r.DT=function(){if(this.JA.isPerformanceTrackingOn())for(var t=this.ZT(),i=0;i<t.length;i++)this.gS(t[i])},r.gS=function(t){this.JA.isPerformanceTrackingOn()&&(this.QA.push(t),this.JA.startMeasuring(t))},r.IT=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.JA.isPerformanceTrackingOn())for(var i=0;i<this.QA.length;i++)this.JA.stopMeasuring(this.QA[i],t)},r.LT=function(){var t=this,i=this.ZT();i.length&&(i.some((function(t){return 0!=t.currentTime}))||this.FA(!0)),i.forEach((function(i){t.tb.push(Oi(i,"playing",(function(){return t.FA(!1)}))),t.tb.push(Oi(i,"waiting",(function(){return t.FA(!0)})))}))},r.NT=function(){this.FA(!1),this.tb.forEach((function(t){return t()})),this.tb=[]},r.XA=function(){var t=Ct("div",{class:"i-amphtml-story-spinner","aria-hidden":"true"},Ct("div",{class:"i-amphtml-story-spinner-container"},Ct("div",{class:"i-amphtml-story-spinner-layer"},Ct("div",{class:"i-amphtml-story-spinner-circle-clipper left"}),Ct("div",{class:"i-amphtml-story-spinner-circle-clipper right"}))));return t.setAttribute("aria-label","Loading video"),this.element.appendChild(t)},r.WA=function(t){var i=this;this.mutateElement((function(){!function(t,i){i!==t.hasAttribute("active")&&(t.setAttribute("aria-hidden",String(!i)),i?t.setAttribute("active",""):t.removeAttribute("active"))}(i.ZA(),t)}))},r.bS=function(){var t=this;this.qA=Ct("button",{role:"button",class:"i-amphtml-story-page-play-button i-amphtml-story-system-reset",onClick:function(){t.RT(!1),t.DT(),t.iT.then((function(t){return t.blessAll()})).then((function(){return t._T()}))}},Ct("span",{class:"i-amphtml-story-page-play-label","i-amphtml-i18n-text-content":"34"}),Ct("span",{class:"i-amphtml-story-page-play-icon"})),Qe(this.qA,this.element).then((function(){return t.mutateElement((function(){return t.element.appendChild(t.qA)}))}))},r.RT=function(t){var i=this;t?(this.qA||this.bS(),this.mutateElement((function(){return $(i.qA,!0)}))):this.qA&&this.mutateElement((function(){return $(i.qA,!1)}))},r.xS=function(){var t=this;this.$A=Ct("div",{class:"i-amphtml-story-page-error i-amphtml-story-system-reset"},Ct("span",{class:"i-amphtml-story-page-error-label","i-amphtml-i18n-text-content":"65"}),Ct("span",{class:"i-amphtml-story-page-error-icon"})),Qe(this.$A,this.element).then((function(){return t.mutateElement((function(){return t.element.appendChild(t.$A)}))}))},r.zT=function(t){var i=this;t?(this.$A||this.xS(),this.mutateElement((function(){return $(i.$A,!0)}))):this.$A&&this.mutateElement((function(){return $(i.$A,!1)}))},r.$T=function(){this.element.querySelector("amp-story-page-attachment, amp-story-page-outlink, amp-story-shopping-attachment")&&yi(this.win).installExtensionForDoc(this.getAmpDoc(),"amp-story-page-attachment","0.1")},r.isAd=function(){return this.element.hasAttribute("ad")},r.mT=function(){C(this.element,Ue).forEach((function(t){var i=t.getAttribute(De);K(t,"background-color",i)}))},r.pT=function(){var t,i,e,n,r;this.aT&&(t=this,i=this.PT(),e="i-amphtml-story-".concat(t.element.id,"-description"),n=Ct("div",{class:"i-amphtml-story-page-description",id:e}),(r=function(i,r){if(r){var o=t.win.document.createElement(i);o.textContent=r,function(i){t.mutateElement((function(){n.appendChild(i),n.parentNode||(t.element.parentElement.insertBefore(n,t.element.nextElementSibling),t.element.getAttribute("aria-labelledby")||t.element.setAttribute("aria-labelledby",e))}))}(o)}})("h2",t.element.getAttribute("title")),i.forEach((function(i){r("p",i.getAttribute("alt")),r("p",i.getAttribute("title")),r("p",i.getAttribute("aria-label")),function(t,i){var e=i.querySelector("track[default]")||i.querySelector("track");return e&&e.src?Pi(t.win).fetchText(e.src,{mode:"cors"}).then((function(t){if(t.ok)return t.text().then(ar)})):o()}(t,i).then((function(t){r("p",t)}))}))),!this.aT&&this.element.hasAttribute("title")&&(this.element.getAttribute("aria-label")||this.element.setAttribute("aria-label",this.element.getAttribute("title")),this.element.removeAttribute("title"))},r.fT=function(){d(this.element.querySelectorAll("amp-img")).forEach((function(t){if(!t.getAttribute("alt")){t.setAttribute("alt","");var i=t.querySelector("img");i&&t.getImpl().then((function(t){return function(t,i,e){for(var r,o=n(g("alt")?"alt":["alt"],!0);!(r=o()).done;){var a=r.value,s=i.getAttribute(a);null!==s&&e.setAttribute(a,s)}}(0,t.element,i)}))}}))},r.isAutoAdvance=function(){return this.BA.isAutoAdvance()},r.dT=function(){d(C(this.element,sr)).forEach((function(t){t.setAttribute("i-amphtml-orig-tabindex",t.getAttribute("tabindex")||0)}))},r.fS=function(t){d(C(this.element,sr)).forEach((function(i){i.setAttribute("tabindex",t?i.getAttribute("i-amphtml-orig-tabindex"):-1)}))},r.KT=function(){var t=this;this.yS().then((function(i){i&&t.Lg.subscribe(Gi.CAPTIONS_STATE,(function(i){t.isActive()&&t.UT(i)}),!0)}))},r.UT=function(t){return this.PT().map((function(i){return i.getImpl().then((function(i){i.toggleCaptions&&i.toggleCaptions(t)}))}))},e}(t.BaseElement);function mr(t,i,e){return S(i<=e),Math.min(Math.max(t,i),e)}function pr(t){try{return t.state}catch(t){return null}}function fr(t,i,e){if(null==i||""===i)return"";var n=e&&"number"==typeof i?"".concat(i,"px"):i;return"".concat(t,":").concat(n,";")}var dr,gr="amp-story-consent",vr={externalLink:{},onlyAccept:!1},yr=function(t){u(e,t);var i=p(e);function e(t){var e;return(e=i.call(this,t)).yy=null,e.wS=null,e.Lg=Ui(e.win),e.kS=null,e.AS=null,e}var n=e.prototype;return n.buildCallback=function(){var t=this;this.yy=gi(this.element),this.TS();var i=D(this.element,"AMP-CONSENT").id;this.SS(i);var e=Re(this.element,"publisher-logo-src",!0);if(this.kS)return this.AS=function(t,i,e){var n;return Ct("div",{class:"i-amphtml-story-consent i-amphtml-story-system-reset"},Ct("div",{class:"i-amphtml-story-consent-overflow"},Ct("div",{class:"i-amphtml-story-consent-container"},Ct("div",{class:"i-amphtml-story-consent-header"},Ct("div",{class:"i-amphtml-story-consent-logo",style:e&&fr("background-image","url('".concat(e,"') !important"),!0)})),Ct("div",{class:"i-amphtml-story-consent-content"},Ct("h3",null,t.title),Ct("p",null,t.message),Ct("ul",{class:"i-amphtml-story-consent-vendors"},null===(n=t.vendors)||void 0===n?void 0:n.map((function(t){return Ct("li",{class:"i-amphtml-story-consent-vendor"},t)}))),Ct("a",{class:"i-amphtml-story-consent-external-link"+(t.externalLink.title&&t.externalLink.href?"":" i-amphtml-hidden"),href:t.externalLink.href,target:"_top",title:t.externalLink.title},t.externalLink.title))),Ct("div",{class:"i-amphtml-story-consent-actions"},Ct("button",{class:"i-amphtml-story-consent-action i-amphtml-story-consent-action-reject"+(!0===t.onlyAccept?" i-amphtml-hidden":""),on:"tap:".concat(i,".reject"),"i-amphtml-i18n-text-content":"23"}),Ct("button",{class:"i-amphtml-story-consent-action i-amphtml-story-consent-action-accept",on:"tap:".concat(i,".accept"),"i-amphtml-i18n-text-content":"22"}))))}(this.kS,i,e),this.Lg.dispatch(5,[{tagOrTarget:"AMP-CONSENT",method:"accept"},{tagOrTarget:"AMP-CONSENT",method:"prompt"},{tagOrTarget:"AMP-CONSENT",method:"reject"}]),Qe(this.AS,this.element).then((function(){Ie(t.element,t.AS,':host{all:initial!important;color:initial!important}.i-amphtml-story-consent{display:-ms-flexbox!important;display:flex!important;-ms-flex-direction:column!important;flex-direction:column!important;z-index:100005!important}.i-amphtml-story-consent,.i-amphtml-story-consent:before{position:absolute!important;top:0!important;left:0!important;height:100%!important;width:100%!important}.i-amphtml-story-consent:before{content:""!important;background:#000!important;opacity:0.55!important}.i-amphtml-story-consent-overflow{margin-top:auto!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important}.i-amphtml-story-consent-container{position:relative!important;margin:88px 0 72px!important;background:#fff!important;border-radius:8px 8px 0 0!important;color:rgba(0,0,0,.87)!important;font-family:Roboto,sans-serif!important;text-align:start!important;overflow:hidden!important}.i-amphtml-story-consent-header{position:relative!important;height:80px!important;min-height:80px!important;background:var(--primary-color,#f0f0f0)!important;z-index:2!important}.i-amphtml-story-consent-logo{position:absolute!important;bottom:-32px!important;margin-left:-32px!important;left:50%!important;height:64px!important;width:64px!important;background:#f0f0f0!important;background-position:50%!important;background-repeat:no-repeat!important;background-size:contain!important;border-radius:5px!important}.i-amphtml-story-consent-logo:before{content:""!important;position:absolute!important;top:-6px!important;bottom:-6px!important;left:-6px!important;right:-6px!important;background:#fff!important;border-radius:6px!important;box-shadow:0 2px 3px rgba(0,0,0,.12)!important;z-index:-1!important}.i-amphtml-story-consent-content{padding:42px 16px 16px!important;font-size:14px!important;z-index:0!important}.i-amphtml-story-consent-vendors{margin:0!important;padding:0!important;list-style:none!important}.i-amphtml-story-consent-vendor{height:40px!important;border-bottom:1px solid #f0f0f0!important;line-height:40px!important;text-overflow:ellipsis!important;overflow:hidden!important}.i-amphtml-story-consent-external-link{position:relative!important;display:inline-block!important;margin:24px 0!important;color:rgba(0,0,0,.87)!important;font-size:15px!important;font-weight:700!important;text-decoration:none!important}.i-amphtml-story-consent-external-link:hover{text-decoration:underline!important}.i-amphtml-story-consent-external-link:after{content:""!important;position:absolute!important;display:block!important;height:16px!important;width:16px!important;top:3px!important;right:-20px!important;background:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="rgba(0, 0, 0, 0.87)"><path d="M10 6 8.6 7.4l4.6 4.6-4.6 4.6L10 18l6-6z"/><path fill="none" d="M0 0h24v24H0z"/></svg>\') 50% no-repeat!important}.i-amphtml-story-consent-external-link.i-amphtml-hidden{display:none!important}.i-amphtml-story-consent-actions{position:absolute!important;display:-ms-flexbox!important;display:flex!important;-ms-flex-pack:center!important;justify-content:center!important;-ms-flex-align:center!important;align-items:center!important;bottom:0!important;left:0!important;right:0!important;height:72px!important;min-height:72px!important;background:#fff!important;box-shadow:0 -2px 3px rgba(0,0,0,.12)!important;z-index:1!important}.i-amphtml-story-consent-action{position:relative!important;padding:0 24px!important;margin:0 12px!important;height:40px!important;width:40vw!important;background:#fff!important;border:none!important;border-radius:40px!important;box-sizing:border-box!important;cursor:pointer!important;font-size:13px!important;font-weight:700!important;line-height:40px!important;text-align:center!important;text-transform:uppercase!important}.i-amphtml-story-consent-action.i-amphtml-hidden{display:none!important}.i-amphtml-story-consent-action-accept{background:var(--primary-color,#000)!important;color:#fff!important}.i-amphtml-story-consent-action-reject{border:1px solid #000!important}@media (min-width:420px){.i-amphtml-story-consent{-ms-flex-align:center!important;align-items:center!important;-ms-flex-pack:center!important;justify-content:center!important}.i-amphtml-story-consent-overflow{margin-top:0!important}.i-amphtml-story-consent-container{display:-ms-flexbox!important;display:flex!important;-ms-flex-direction:column!important;flex-direction:column!important;margin:0!important;max-height:60vh!important;min-height:40vh!important;width:calc(100vw - 80px)!important;max-width:800px!important}.i-amphtml-story-consent-content{margin:0 auto!important;max-width:424px!important;-ms-flex-positive:1!important;flex-grow:1!important;overflow-y:auto!important}.i-amphtml-story-consent-content::-webkit-scrollbar{width:0px!important;background:transparent!important}.i-amphtml-story-consent-actions{position:relative!important;left:0px!important;right:0px!important}.i-amphtml-story-consent-action{width:33vw!important;max-width:200px!important}}\n/*# sourceURL=/extensions/amp-story/1.0/amp-story-consent.css*/'),t.ES(),t.Ug()}))},n.isLayoutSupported=function(t){return t==st},n.Ug=function(){var t=this;this.AS.addEventListener("click",(function(i){return t.PS(i)}),!0),this.Lg.subscribe(Gi.RTL_STATE,(function(i){t.OS(i)}),!0)},n.PS=function(t){if(t.target){if(t.target.hasAttribute("on")){var i=t.target;this.yy.trigger(i,"tap",t,3)}var e=R(t.target,(function(t){return M(t,"a[href]")}));e&&(Ge(e,this.element),t.preventDefault())}},n.OS=function(t){var i=this;this.mutateElement((function(){t?i.AS.setAttribute("dir","rtl"):i.AS.removeAttribute("dir")}),this.AS)},n.TS=function(){var t=G(this.element.parentElement,"script");if(this.wS=t&&Et(t.textContent),this._S(),this.wS){var i=G(this.element,"script");qt(i&&_t(i),"".concat(gr," config should be put in a <script> tag with ")+'type="application/json"'),this.kS=It(It({},vr),Et(i.textContent)),Wt().assertString(this.kS.title,"".concat(gr,": config requires a title")),Wt().assertString(this.kS.message,"".concat(gr,": config requires a message")),qt(this.kS.vendors&&g(this.kS.vendors),"".concat(gr,": config requires an array of vendors")),Wt().assertBoolean(this.kS.onlyAccept,"".concat(gr,': config requires "onlyAccept" to be a boolean')),(this.kS.externalLink.href||this.kS.externalLink.title)&&(Wt().assertString(this.kS.externalLink.title,"".concat(gr,': config requires "externalLink.title" to be a string')),Wt().assertString(this.kS.externalLink.href,"".concat(gr,': config requires "externalLink.href" to be an absolute URL')),xi(this.element).assertAbsoluteHttpOrHttpsUrl(this.kS.externalLink.href))}},n._S=function(){var t=this.wS.consents;if(t){var i=Object.keys(t)[0],e=t[i];this.wS.consentInstanceId=i,this.wS.checkConsentHref=e.checkConsentHref,this.wS.promptIfUnknownForGeoGroup=e.promptIfUnknownForGeoGroup,delete this.wS.consents}},n.SS=function(t){var i,e=this;if(this.wS.checkConsentHref)this.Lg.dispatch(8,t);else{var n=this.wS.promptIfUnknownForGeoGroup;n&&(i=this.element,pi(i,"geo","amp-geo",!0)).then((function(i){var r=i.matchedISOCountryGroups;i&&!r.includes(n)||e.Lg.dispatch(8,t)}))}},n.ES=function(){var t,i,e,n,r=this.AS.querySelector(".i-amphtml-story-consent-action-accept");X(r,{color:(t=function(t){var i=/rgba?\((\d{1,3}), (\d{1,3}), (\d{1,3})/;if(!t.match(i))return Wt().error("UTILS","getRGBFromCssColorValue expects a parameter in "+"the form of 'rgba(0, 0, 0, 1)' or 'rgb(0, 0, 0)' but got ".concat(t)),{r:0,g:0,b:0};var e=i.exec(t);return{r:Number(e[1]),g:Number(e[2]),b:Number(e[3])}}(rt(this.win,r)["background-color"]),i=t.b,e=t.g,.2126*(n=function(t){return(t/=255)<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})(t.r)+.7152*n(e)+.0722*n(i)>.179?"#000":"#FFF")})},e}(t.BaseElement),br="show-navigation-overlay",Ar="show-first-page-overlay",Er=function(){function t(t,i){this.t=t,this.Gc=_i(this.t),this.Xo=wi(this.t),this.MS=null,this.IS=null,this.Lg=Ui(this.t),this.NS=i}var i=t.prototype;return i.build=function(){var t=this;this.MS||(this.MS=Ct("aside",{class:"i-amphtml-story-hint-container i-amphtml-story-system-reset i-amphtml-hidden"},Ct("div",{class:"i-amphtml-story-navigation-help-overlay"},Ct("div",{class:"i-amphtml-story-navigation-help-section prev-page"},Ct("div",{class:"i-amphtml-story-hint-placeholder"},Ct("div",{class:"i-amphtml-story-hint-tap-button"},Ct("div",{class:"i-amphtml-story-hint-tap-button-icon"})),Ct("div",{class:"i-amphtml-story-hint-tap-button-text","i-amphtml-i18n-text-content":"3"}))),Ct("div",{class:"i-amphtml-story-navigation-help-section next-page"},Ct("div",{class:"i-amphtml-story-hint-placeholder"},Ct("div",{class:"i-amphtml-story-hint-tap-button"},Ct("div",{class:"i-amphtml-story-hint-tap-button-icon"})),Ct("div",{class:"i-amphtml-story-hint-tap-button-text","i-amphtml-i18n-text-content":"2"}))))),Qe(this.MS,this.NS).then((function(){var i=Ie(Ct("div",null),t.MS,'.i-amphtml-story-hint-container{transition-property:opacity!important;transition-duration:200ms!important;contain:strict!important;pointer-events:none!important;position:absolute!important;left:0!important;top:0!important;right:0!important;bottom:0!important;z-index:2!important}.i-amphtml-story-hint-container.i-amphtml-hidden{opacity:0!important}.i-amphtml-story-hint-container .i-amphtml-story-navigation-help-overlay{position:absolute!important;left:0!important;top:0!important;right:0!important;bottom:0!important;background:rgba(0,0,0,.7)!important;-ms-flex-direction:row!important;flex-direction:row!important;color:#fff!important;font-size:20px!important;padding:16px 0!important}.i-amphtml-story-navigation-help-section{position:relative!important;display:-ms-flexbox!important;display:flex!important;-ms-flex-align:center!important;align-items:center!important;-ms-flex-pack:center!important;justify-content:center!important}.prev-page,[dir=rtl].prev-page{-ms-flex:1!important;flex:1!important}.show-first-page-overlay .i-amphtml-story-navigation-help-overlay{background:transparent!important}.show-first-page-overlay .prev-page{background:linear-gradient(90deg,rgba(0,0,0,.5),transparent)!important}[dir=rtl].show-first-page-overlay .prev-page{background:linear-gradient(270deg,rgba(0,0,0,.5),transparent)!important}.show-first-page-overlay .next-page{opacity:0!important}.show-first-page-overlay .i-amphtml-story-hint-placeholder{display:none!important}.show-first-page-overlay .i-amphtml-story-navigation-help-overlay{padding:0px!important}.i-amphtml-story-hint-container .next-page{-ms-flex:3!important;flex:3!important;background-image:linear-gradient(#e0d5d5 60%,hsla(0,0%,100%,0) 0)!important;background-position:0!important;background-size:1px 15px!important;background-repeat:repeat-y!important}[dir=rtl].i-amphtml-story-hint-container .next-page{border-left:none!important;background-position:100%!important}.show-first-page-overlay .i-amphtml-story-navigation-help-overlay,.show-navigation-overlay .i-amphtml-story-navigation-help-overlay{display:-ms-flexbox!important;display:flex!important}.show-first-page-overlay .prev-page .i-amphtml-story-hint-tap-button{visibility:hidden}.show-navigation-overlay .prev-page .i-amphtml-story-hint-tap-button-icon:before{content:""!important;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 24 24"><path d="M15.4 7.4 14 6l-6 6 6 6 1.4-1.4-4.6-4.6z"/><path fill="none" d="M0 0h24v24H0z"/></svg>\')!important;width:30px!important;height:30px!important;display:inline-block!important}[dir=rtl].show-navigation-overlay .prev-page .i-amphtml-story-hint-tap-button-icon:before{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 24 24"><path d="M10 6 8.6 7.4l4.6 4.6-4.6 4.6L10 18l6-6z"/><path fill="none" d="M0 0h24v24H0z"/></svg>\')!important}.i-amphtml-story-hint-container .i-amphtml-story-hint-tap-button{position:relative!important;width:44px!important;height:44px!important}.i-amphtml-story-hint-tap-button:after,.i-amphtml-story-hint-tap-button:before{position:absolute!important;content:""!important;width:44px!important;height:44px!important;border-radius:50%!important;background-color:hsla(0,0%,100%,.5)!important;left:0!important;right:0!important}.i-amphtml-story-hint-tap-button:before{animation:expandingBubble 1000ms cubic-bezier(0.4,0,0.2,1) infinite!important}.i-amphtml-story-hint-tap-button:after{background-color:#fff!important}.i-amphtml-story-hint-container .i-amphtml-story-hint-tap-button-icon{position:absolute!important;z-index:1!important;height:44px!important;width:44px!important;display:-ms-flexbox!important;display:flex!important;-ms-flex-pack:center!important;justify-content:center!important;-ms-flex-align:center!important;align-items:center!important}.i-amphtml-story-hint-tap-button-icon:after,.i-amphtml-story-hint-tap-button-icon:before{vertical-align:middle!important;margin:0 2px!important;background-position:50%}.next-page .i-amphtml-story-hint-tap-button-icon:after{content:""!important;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 24 24"><path d="M10 6 8.6 7.4l4.6 4.6-4.6 4.6L10 18l6-6z"/><path fill="none" d="M0 0h24v24H0z"/></svg>\')!important;width:24px!important;height:24px!important;display:inline-block!important}[dir=rtl] .next-page .i-amphtml-story-hint-tap-button-icon:after{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 24 24"><path d="M15.4 7.4 14 6l-6 6 6 6 1.4-1.4-4.6-4.6z"/><path fill="none" d="M0 0h24v24H0z"/></svg>\')!important}.i-amphtml-story-hint-placeholder{top:50%!important;position:absolute!important;display:-ms-flexbox!important;display:flex!important;-ms-flex-direction:column!important;flex-direction:column!important;-ms-flex-align:center!important;align-items:center!important}.i-amphtml-story-hint-container .i-amphtml-story-hint-tap-button-text{color:#fff!important;font-size:16px!important;font-family:Roboto-Medium,sans-serif!important;margin-top:24px!important;text-align:center!important;word-break:break-word!important;padding:0 6px!important}@keyframes expandingBubble{0%{transform:scale(1);opacity:0}50%{transform:scale(1.5);opacity:1}to{transform:scale(1);opacity:0}}\n/*# sourceURL=/extensions/amp-story/1.0/amp-story-hint.css*/');t.Gc.mutate((function(){t.NS.appendChild(i)}))})),this.Lg.subscribe(Gi.RTL_STATE,(function(i){t.OS(i)}),!0),this.Lg.subscribe(Gi.SYSTEM_UI_IS_VISIBLE_STATE,(function(i){t.zS(i)})),this.Lg.subscribe(Gi.INTERACTIVE_COMPONENT_STATE,(function(i){t.RS(1===i.state)})))},i.jS=function(t){var i=this;0===this.Lg.get(Gi.UI_STATE)&&(this.build(),this.Gc.mutate((function(){i.MS.classList.toggle(br,t==br),i.MS.classList.toggle(Ar,t==Ar),i.MS.classList.remove("i-amphtml-hidden");var e=t==br?3e3:275;i.hideAfterTimeout(e)})))},i.showNavigationOverlay=function(){this.Lg.get(Gi.SHARE_MENU_STATE)||this.jS(br)},i.showFirstPageHintOverlay=function(){this.jS(Ar)},i.hideAfterTimeout=function(t){var i=this;this.IS=this.Xo.delay((function(){return i.CS()}),t)},i.hideAllNavigationHint=function(){this.CS(),null!==this.IS&&(this.Xo.cancel(this.IS),this.IS=null)},i.CS=function(){var t=this;this.MS&&this.Gc.mutate((function(){t.MS.classList.add("i-amphtml-hidden")}))},i.OS=function(t){var i=this;this.Gc.mutate((function(){t?i.MS.setAttribute("dir","rtl"):i.MS.removeAttribute("dir")}))},i.zS=function(t){t||this.hideAllNavigationHint()},i.RS=function(t){t&&this.hideAllNavigationHint()},t}(),Sr=function(){function t(t,i){this.t=t,this.ri=null,this.Lg=Ui(this.t),this.qg=he(this.t,i),this.NS=i,this.oa=bi(i),this.yh=Ti(i)}var i=t.prototype;return i.build=function(){var t=this;if(this.ri)return o();var i=vi(this.NS).canonicalUrl,e=Ct("a",{class:"i-amphtml-story-info-moreinfo",target:"_blank","i-amphtml-i18n-text-content":"26"});return this.ri=Ct("div",{class:"i-amphtml-story-info-dialog i-amphtml-story-system-reset",onClick:function(i){i.target===i.currentTarget&&t.hx()}},Ct("div",{class:"i-amphtml-story-info-dialog-container",onClick:function(i){t.PS(i)}},Ct("h1",{class:"i-amphtml-story-info-heading","i-amphtml-i18n-text-content":"25"}),Ct("a",{class:"i-amphtml-story-info-link",href:i},i.replace(/([/.]+)/gi,"$1​")),e)),this.Ug(),Promise.all([Qe(this.ri,this.NS),this.oa.mutateElement(this.NS,(function(){var i=Ie(Ct("div",null),t.ri,':host{all:initial!important;color:initial!important}.i-amphtml-story-info-dialog{position:absolute!important;top:0!important;left:0!important;height:100%!important;width:100%!important;z-index:100001!important;transform:translate3d(0,-100%,0)!important;transition-delay:0.15s!important}.i-amphtml-story-info-dialog-visible{transform:translateZ(0)!important;transition-delay:0s!important}.i-amphtml-story-info-dialog:before{content:""!important;position:absolute!important;top:0!important;left:0!important;height:100%!important;width:100%!important;background:#000!important;opacity:0!important;transition:opacity 0.15s cubic-bezier(0.4,0.0,1,1)!important}.i-amphtml-story-info-dialog.i-amphtml-story-info-dialog-visible:before{opacity:0.55!important;transition:opacity 0.2s cubic-bezier(0.0,0.0,0.2,1)!important}.i-amphtml-story-info-dialog-container{position:absolute!important;top:0!important;left:0!important;right:0!important;height:auto!important;background:#fff!important;border-radius:0 0 8px 8px!important;transform:translate3d(0,-100%,0)!important;transition:transform 0.15s cubic-bezier(0.4,0.0,1,1)!important;padding:20px!important;font-family:Roboto,sans-serif!important}.i-amphtml-story-info-dialog-visible .i-amphtml-story-info-dialog-container{transform:translateZ(0)!important;transition:transform 0.2s cubic-bezier(0.0,0.0,0.2,1)!important}.i-amphtml-story-info-heading{display:block!important;font-size:14px!important;font-weight:700!important;margin:0 0 8px!important}.i-amphtml-story-info-link{color:#000!important;display:block!important;margin:0!important;opacity:0.64!important;font-size:12px!important;text-decoration:none!important}.i-amphtml-story-info-moreinfo{color:#4285f4!important;display:none!important;font-family:Roboto-Medium,sans-serif!important;font-size:12px!important;letter-spacing:0.5px!important;margin:16px 0 0;text-decoration:none!important}.i-amphtml-story-info-moreinfo.i-amphtml-story-info-moreinfo-visible{display:block!important}\n/*# sourceURL=/extensions/amp-story/1.0/amp-story-info-dialog.css*/');t.NS.appendChild(i)})),this.DS().then((function(i){if(i)return t.oa.mutateElement(t.NS,(function(){e.classList.add("i-amphtml-story-info-moreinfo-visible"),e.setAttribute("href",i)}))}))])},i.Ug=function(){var t=this;this.Lg.subscribe(Gi.INFO_DIALOG_STATE,(function(i){t.LS(i)}))},i.LS=function(t){var i=this;this.oa.mutateElement(this.ri,(function(){i.ri.classList.toggle("i-amphtml-story-info-dialog-visible",t)})),this.ri[oe]="amp-story-info-dialog",this.qg.triggerEvent(t?ae:se,this.ri)},i.PS=function(t){var i=R(t.target,(function(t){return M(t,"a[href]")}));i&&(Ge(i,this.ri),t.preventDefault())},i.hx=function(){this.Lg.dispatch(18,!1)},i.DS=function(){var t=this;return this.yh.isEmbedded()?this.yh.sendMessageAwaitResponse("moreInfoLinkUrl",void 0).then((function(i){return i?xi(t.NS).assertAbsoluteHttpOrHttpsUrl(i):null})):Promise.resolve(null)},t}(),wr=function(){function t(t,i){this.t=t,this.Bg=i,this.qg=he(t,i),this.Lg=Ui(t),this.US=Ct("amp-story-share-menu",null),i.appendChild(this.US),this.YS=!1,this.Ug()}var i=t.prototype;return i.Ug=function(){var t=this;this.Lg.subscribe(Gi.SHARE_MENU_STATE,(function(i){i&&(t.HS()?(t.VS(),t.hx()):t.GS()),t.qg.triggerEvent(i?ae:se,t.US)}))},i.HS=function(){var t=Ti(this.Bg),i=Ei(this.t),e=t.isWebviewEmbedded()&&i.isChrome();return"share"in navigator&&!e},i.VS=function(){var t=this.t.navigator,i={url:vi(ti(this.Bg)).canonicalUrl,text:this.t.document.title};t.share(i).catch((function(t){Wt().warn("amp-story-share",t.message,i)}))},i.GS=function(){this.YS||(this.YS=!0,yi(this.t).installExtensionForDoc(ti(this.Bg),"amp-story-share-menu","0.1"))},i.hx=function(){this.Lg.dispatch(29,!1)},t}(),xr="amp-story-viewer-messaging-handler",Tr={CAPTIONS_STATE:{dataSource:0,property:Gi.CAPTIONS_STATE},CURRENT_PAGE_ID:{dataSource:0,property:Gi.CURRENT_PAGE_ID},EDUCATION_STATE:{dataSource:0,property:Gi.EDUCATION_STATE},MUTED_STATE:{dataSource:0,property:Gi.MUTED_STATE},PAGE_ATTACHMENT_STATE:{dataSource:0,property:Gi.PAGE_ATTACHMENT_STATE},UI_STATE:{dataSource:0,property:Gi.UI_STATE},DESKTOP_ASPECT_RATIO:{dataSource:0,property:Gi.DESKTOP_ASPECT_RATIO},STORY_PROGRESS:{dataSource:2,property:ie},STORY_PAGE_COUNT:{dataSource:2,property:Qi}},_r={CAPTIONS_STATE:{action:25,isValueValid:function(t){return"boolean"==typeof t}},MUTED_STATE:{action:21,isValueValid:function(t){return"boolean"==typeof t}}},Pr=function(){function t(t,i){this.Lg=Ui(t),this.Hg=ne(t),this.yh=i}var i=t.prototype;return i.startListening=function(){var t=this;this.yh.onMessageRespond("getDocumentState",(function(i){return t.BS(i)})),this.yh.onMessage("onDocumentState",(function(i){return t.FS(i)})),this.yh.onMessageRespond("setDocumentState",(function(i){return t.WS(i)})),this.yh.onMessageRespond("customDocumentUI",(function(i){return t.ZS(i)}))},i.send=function(t,i){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.yh.sendMessage(t,i,e)},i.onMessage=function(t,i){this.yh.onMessage(t,i)},i.BS=function(){var t,i=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).state,e=Tr[i];if(!e)return Promise.reject("Invalid 'state' parameter");switch(e.dataSource){case 0:t=this.Lg.get(e.property);break;case 2:t=this.Hg.get()[e.property];break;default:Ft().error(xr,"Unknown data source %s.",e.dataSource)}return Promise.resolve({state:i,value:t})},i.FS=function(){var t=this,i=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).state,e=Tr[i];e?this.Lg.subscribe(e.property,(function(e){t.yh.sendMessage("documentStateUpdate",{state:i,value:e})})):Wt().error(xr,"Invalid 'state' parameter")},i.WS=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.state,e=t.value,n=_r[i];return n?n.isValueValid(e)?(this.Lg.dispatch(n.action,e),Promise.resolve({state:i,value:e})):Promise.reject("Invalid 'value' parameter"):Promise.reject("Invalid 'state' parameter")},i.ZS=function(t){this.Lg.dispatch(13,t.controls)},t}(),kr="transform ".concat(ir,"ms linear"),Or=2,Lr=20,Ir=function(){function t(t,i){this.t=t,this.gs=null,this.XS=0,this.qS=0,this.$S=1,this.vu=function(t){return Xt(t,"ampdoc")}(this.t).getSingleDoc(),this.oa=bi(this.vu),this.KS=A(),this.Lg=Ui(this.t),this.JS="",this.sm=[],this.QS=o(),this.tE=0,this.Bg=i}t.create=function(i,e){return new t(i,e)};var i=t.prototype;return i.build=function(t){var i=this;if(this.gs)return this.gs;var e,n=Ct("ol",{"aria-hidden":"true",class:"i-amphtml-story-progress-bar"+(this.iE()?"":" i-amphtml-story-progress-bar-exp-disabled")});return this.gs=n,this.Bg.addEventListener(Yi,(function(){i.nE()})),this.Lg.subscribe(Gi.PAGE_IDS,(function(t){var e=!!n.parentElement;i.QS=i.oa.mutateElement(n,(function(){e&&i.rE(),t.forEach((function(t){i.oE(t)&&!i.iE()||t in i.KS||i.aE(t)})),i.XS>Lr&&(i.sE(i.qS),i.Di(!1)),n.classList.toggle("i-amphtml-progress-bar-overflow",i.XS>Lr)})),e&&i.updateProgress(i.JS,i.$S,!0)}),!0),this.Lg.subscribe(Gi.RTL_STATE,(function(t){i.OS(t)}),!0),this.Lg.subscribe(Gi.UI_STATE,(function(t){i.gx(t)}),!0),(e=this.vu,Zt(e,"viewport")).onResize(Rt(this.t,(function(){return i.eE()}),300)),n},i.iE=function(){var t=hi(this.t,ui);return t&&t!=ci},i.oE=function(t){return t.startsWith("i-amphtml-ad-")},i.nE=function(){this.XS>Lr&&(this.tE=0,this.Di(!1))},i.Di=function(){var t=this,i=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.uE().then((function(e){var n=-(t.tE-t.hE())*(Or+4);t.oa.mutateElement(t.cE(),(function(){t.cE().classList.toggle("i-amphtml-animate-progress",i);for(var r=0;r<t.XS;r++){var o=r>=t.tE&&r<t.tE+Lr?e:Or;t.lE(t.sm[r],n,o),n+=o+4}}))}))},i.lE=function(t,i,e){this.Lg.get(Gi.RTL_STATE)&&(i*=-1),t.setAttribute("style","transform: translate3d(".concat(i,"px, 0px, 0.00001px) scaleX(").concat(e/Or,");"))},i.uE=function(){var t=this,i=(this.mE()+this.hE())*(Or+4);return this.pE().then((function(e){return(e-i)/Math.min(t.XS,Lr)-4}))},i.pE=function(){var t=this;return this.oa.measureElement((function(){return t.cE().getBoundingClientRect().width}))},i.mE=function(){var t=this.XS-(this.tE+Lr);return t>3?3:Math.max(t,0)},i.hE=function(){return Math.min(3,this.tE)},i.fE=function(){if(this.qS>=this.tE+Lr){var t=this.tE+Lr+5-1;this.tE+=t<this.XS?5:this.XS-(this.tE+Lr),this.Di()}else this.qS<this.tE&&(this.tE-=this.tE-5<0?this.tE:5,this.Di())},i.OS=function(t){var i=this;this.oa.mutateElement(this.cE(),(function(){t?i.cE().setAttribute("dir","rtl"):i.cE().removeAttribute("dir")}))},i.eE=function(){(this.cE().classList.contains("i-amphtml-progress-bar-overflow")||this.XS>Lr)&&(this.sE(this.qS),this.Di(!1))},i.gx=function(t){switch(t){case 2:Lr=70,Or=3;break;case 0:Lr=20,Or=2;break;default:Lr=20}},i.dE=function(t){var i=Ct("li",{class:"i-amphtml-story-page-progress-bar"},Ct("div",{class:"i-amphtml-story-page-progress-value"+(t?" i-amphtml-story-ad-progress-value":"")}));this.cE().appendChild(i),this.sm.push(i)},i.rE=function(){!function(t){for(;t.firstChild;)t.removeChild(t.firstChild)}(jt(this.gs)),this.KS=A(),this.XS=0,this.sm=[]},i.aE=function(t){this.KS[t]=this.XS++,this.dE(this.oE(t))},i.cE=function(){return this.gs},i.vE=function(t){jt(E(this.KS,t))},i.updateProgress=function(t,i){var e=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.QS.then((function(){e.vE(t);var r=e.KS[t];e.yE(r,i),(e.qS!==r||n)&&e.gE(r,i,e.qS,e.$S),e.$S=i,e.qS=r,e.JS=t,e.XS>Lr&&e.fE()}))},i.sE=function(t){t>Lr&&t+Lr<this.XS?this.tE=t-t%Lr:this.tE=t>Lr?this.XS-Lr:0},i.gE=function(t,i,e,n){var r=!1;1===n&&1===i&&(r=!0),t>e&&1!==i&&(r=!0),e>t&&1===i&&(r=!0);for(var o=0;o<this.XS;o++)if(o!==t){var a=o<t?1:0,s=!!r&&o===e;this.yE(o,a,s)}},i.yE=function(t,i){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=t+1,r=N(this.cE(),".i-amphtml-story-page-progress-bar:nth-child(".concat(function(t){var i=String(t);return S(-1===i.indexOf(")")),i}(n),") .i-amphtml-story-page-progress-value"));this.oa.mutateElement(jt(r),(function(){var t="none";e&&(t=1===i||0===i?"transform 200ms ease":kr),X(jt(r),{transform:et("".concat(i,",1")),transition:t})}))},t}(),Nr="ad-showing",Cr="muted",Mr="paused",Rr="info",Dr="i-amphtml-story-captions-control",Ur="i-amphtml-story-nocaptions-control",Gr="i-amphtml-story-mute-audio-control",zr="i-amphtml-story-close-control",Br="i-amphtml-story-skip-to-next",Hr="i-amphtml-story-viewer-custom-control",Wr="i-amphtml-story-unmute-audio-control",Vr="i-amphtml-story-pause-control",Fr="i-amphtml-story-play-control",jr="i-amphtml-current-page-has-audio",qr="i-amphtml-story-share-control",Yr="i-amphtml-story-info-control",Xr="i-amphtml-story-has-new-page",Kr="i-amphtml-story-attribution",Zr="__AMP_VIEWER_CONTROL_EVENT_NAME__",$r=(f(dr={},"share",{selector:".".concat(qr)}),f(dr,"close",{selector:".".concat(zr)}),f(dr,"skip-next",{selector:".".concat(Br)}),f(dr,"skip-to-next",{selector:".".concat(Br)}),dr),Jr=function(){function t(t,i){this.t=t,this.NS=i,this.gs=null,this.bE=null,this.xE=null,this.wE=Ir.create(t,this.NS),this.Lg=Ui(this.t),this.Gc=_i(this.t),this.Xo=wi(this.t),this.cA=null,this.yh=null,this.kE=null}var i=t.prototype;return i.build=function(t){var i=this,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.gs||(this.bE=function(t,i,e){var n=Ct("aside",{class:"i-amphtml-story-system-layer i-amphtml-story-system-reset"},i,Ct("a",{class:String(Kr),target:"_blank"},Ct("div",{class:"i-amphtml-story-attribution-logo-container"},Ct("img",{alt:"",class:"i-amphtml-story-attribution-logo"})),Ct("div",{class:"i-amphtml-story-attribution-text"})),Ct("div",{class:"i-amphtml-story-has-new-page-notification-container"},Ct("div",{class:"i-amphtml-story-has-new-page-text-wrapper"},Ct("span",{class:"i-amphtml-story-has-new-page-circle-icon"}),Ct("div",{class:"i-amphtml-story-has-new-page-text","i-amphtml-i18n-text-content":"64"}))),Ct("div",{class:"i-amphtml-story-system-layer-buttons"},Ct("div",{role:"button",class:Yr+" i-amphtml-story-button","i-amphtml-i18n-aria-label":"68"}),Ct("div",{class:"i-amphtml-story-captions-display"},Ct("button",{class:Dr+" i-amphtml-story-button","i-amphtml-i18n-aria-label":"111"}),Ct("button",{class:Ur+" i-amphtml-story-button","i-amphtml-i18n-aria-label":"112"})),Ct("div",{class:"i-amphtml-story-sound-display"},Ct("button",{class:Wr+" i-amphtml-story-button","i-amphtml-i18n-aria-label":"67"}),Ct("button",{class:Gr+" i-amphtml-story-button","i-amphtml-i18n-aria-label":"66"})),Ct("div",{class:"i-amphtml-paused-display"},Ct("button",{class:Vr+" i-amphtml-story-button","i-amphtml-i18n-aria-label":"85"}),Ct("button",{class:Fr+" i-amphtml-story-button","i-amphtml-i18n-aria-label":"86"})),Ct("button",{class:Br+" i-amphtml-story-ui-hide-button i-amphtml-story-button","i-amphtml-i18n-aria-label":"88"}),Ct("button",{class:qr+" i-amphtml-story-button","i-amphtml-i18n-aria-label":"69"}),Ct("button",{class:zr+" i-amphtml-story-ui-hide-button i-amphtml-story-button","i-amphtml-i18n-aria-label":"87"})),Ct("div",{class:"i-amphtml-story-system-layer-buttons-start-position"}));return e||n.classList.add("i-amphtml-story-hidden"),n}(this.NS,this.wE.build(t),e),Qe(this.bE,this.NS),this.bE.querySelector(".i-amphtml-story-share-control").href=vi(this.NS).canonicalUrl,this.gs=Ie(Ct("div",{class:"i-amphtml-system-layer-host"}),this.bE,'.i-amphtml-story-system-layer{background:linear-gradient(180deg,#0004,#0002 33%,#0001 67%,#0000)!important;position:absolute!important;display:-ms-flexbox!important;display:flex!important;-ms-flex-pack:justify!important;justify-content:space-between!important;top:0!important;left:0!important;right:0!important;height:140px!important;z-index:100000!important;transition:opacity 0.3s cubic-bezier(0,0,0.2,1)!important;pointer-events:none!important;font-family:Roboto,sans-serif!important}.i-amphtml-story-hidden.i-amphtml-story-system-layer{opacity:0!important;transition:opacity 0.15s cubic-bezier(0.4,0,1,1)!important}.i-amphtml-story-hidden.i-amphtml-story-system-layer *{pointer-events:none!important}.i-amphtml-story-attribution{top:0!important;border:none!important;pointer-events:auto!important;cursor:pointer!important;padding:6px 8px 0!important;height:48px!important;place-items:center!important;display:-ms-flexbox!important;display:flex!important;text-decoration:none!important;overflow:hidden!important;visibility:hidden!important}.i-amphtml-story-attribution-visible{visibility:visible!important}[desktop] .i-amphtml-story-attribution{padding:6px 6px 0!important;left:0!important;right:0!important}.i-amphtml-story-attribution>*{margin:0px 4px!important}.i-amphtml-story-attribution-logo-container{display:grid!important;place-items:center!important}.i-amphtml-story-attribution-logo{border-radius:100%!important;border:1px solid #d4d4d4!important;width:28px!important;height:28px!important;-o-object-fit:cover!important;object-fit:cover!important;box-shadow:0px 0px 6px rgba(0,0,0,.12)!important}.i-amphtml-story-attribution-text{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:13px!important;font-weight:500!important;text-shadow:0px 0px 6px rgba(0,0,0,.16)!important;color:#fff!important}.i-amphtml-story-system-layer-buttons,.i-amphtml-story-system-layer-buttons-start-position{display:-ms-flexbox!important;display:flex!important;-ms-flex-direction:row!important;flex-direction:row!important;-ms-flex-pack:end!important;justify-content:flex-end!important;padding:8px 4px!important;box-sizing:border-box!important;-ms-flex:1!important;flex:1!important}.i-amphtml-story-system-layer-buttons-start-position{position:absolute!important;top:0!important;-ms-flex-pack:start!important;justify-content:flex-start!important}[desktop] .i-amphtml-story-system-layer-buttons{padding:8px 4px 0!important}.i-amphtml-story-system-layer-buttons .i-amphtml-story-ui-hide-button.i-amphtml-story-button{display:none!important}.i-amphtml-story-button{height:48px!important;width:48px!important;cursor:pointer!important;border:none!important;pointer-events:auto!important;background:none!important}[desktop] .i-amphtml-story-button{margin:0 4px!important}.i-amphtml-story-button:active{background-color:rgba(0,0,0,.2)!important}.i-amphtml-story-progress-bar{border:0!important;display:-ms-flexbox!important;display:flex!important;height:2px!important;left:0!important;right:0!important;top:0!important;margin:6px 10px 0!important;padding:0 2px!important;position:absolute!important;visibility:visible!important;z-index:100001!important;overflow:hidden!important}[ad-showing] .i-amphtml-story-progress-bar-exp-disabled.i-amphtml-story-progress-bar{display:none!important}[ad-showing] .i-amphtml-story-attribution{visibility:hidden!important}[ad-showing] .i-amphtml-story-share-control{display:none!important}[ad-showing]:not([i-amphtml-current-page-has-audio]) .i-amphtml-story-mute-audio-control,[ad-showing]:not([i-amphtml-current-page-has-audio]) .i-amphtml-story-unmute-audio-control{visibility:hidden!important}.i-amphtml-story-page-progress-bar{background:hsla(0,0%,100%,.4)!important;border-radius:1px!important;height:100%!important;list-style-type:none!important;margin:0 2px!important;overflow:hidden!important;width:100%!important}.i-amphtml-story-page-progress-value{background:#fff!important;height:100%!important;width:100%!important;transform:translateZ(0) scaleX(0)!important;transform-origin:left!important}.i-amphtml-story-ad-progress-value{background-color:#fbc02d!important}[dir=rtl] .i-amphtml-story-page-progress-value{transform-origin:right!important}[i-amphtml-story-has-new-page=noshow] .i-amphtml-story-has-new-page-notification-container{transition:opacity 1.5s,visibility 1.5s!important;opacity:0!important;visibility:hidden!important}.i-amphtml-last-page-active[i-amphtml-story-has-new-page=show] .i-amphtml-story-has-new-page-notification-container{transition:opacity 1.5s,visibility 1.5s!important;opacity:1!important;visibility:visible!important}.i-amphtml-story-mute-text,.i-amphtml-story-unmute-no-sound-text,.i-amphtml-story-unmute-sound-text{width:max-content!important;color:#fff!important}.i-amphtml-story-sound-display{display:inline-block!important;height:46px!important;position:relative!important}.i-amphtml-story-captions-control,.i-amphtml-story-mute-audio-control,.i-amphtml-story-mute-text,.i-amphtml-story-no-audio-ui .i-amphtml-story-sound-display,.i-amphtml-story-nocaptions-control,.i-amphtml-story-pause-control,.i-amphtml-story-play-control,.i-amphtml-story-skip-to-next,.i-amphtml-story-unmute-audio-control,.i-amphtml-story-unmute-no-sound-text,.i-amphtml-story-unmute-sound-text{display:none!important}.i-amphtml-story-system-layer:not([desktop]):not(.i-amphtml-story-desktop-one-panel):not(.amp-mode-keyboard-active) .i-amphtml-paused-display button:not(:focus){margin:0!important;padding:0!important;width:0px!important;opacity:0!important;pointer-events:none!important}[i-amphtml-current-page-has-audio]:not([muted]) .i-amphtml-story-mute-audio-control,[i-amphtml-current-page-has-audio][muted] .i-amphtml-story-unmute-audio-control,[i-amphtml-current-page-has-captions]:not([captions-on]) .i-amphtml-story-nocaptions-control,[i-amphtml-current-page-has-captions][captions-on] .i-amphtml-story-captions-control{display:block!important}.i-amphtml-story-system-layer-buttons button[disabled][disabled]{display:none!important}.i-amphtml-story-has-playback-ui:not([paused]) .i-amphtml-story-pause-control,.i-amphtml-story-has-playback-ui[paused] .i-amphtml-story-play-control{display:block!important}.i-amphtml-story-ui-no-buttons .i-amphtml-story-button,.i-amphtml-story-ui-no-buttons .i-amphtml-story-system-layer-buttons{visibility:hidden!important}.i-amphtml-story-unmute-audio-control{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none"><path fill="%23fff" fill-rule="evenodd" d="M27.53 16.97a.95.95 0 0 1 1.1-.76c.75.13 2.28.7 3.63 1.9a7.71 7.71 0 0 1 2.62 5.95c0 1.86-.55 3.32-1.33 4.45l-1.38-1.37c.48-.8.8-1.81.8-3.08 0-2.16-.92-3.59-1.97-4.53a6.4 6.4 0 0 0-2.7-1.45.95.95 0 0 1-.77-1.1Z" clip-rule="evenodd"/><path fill="%23fff" fill-rule="evenodd" d="M27.54 21.03a.95.95 0 0 1 1.14-.72c.7.16 2.5 1.19 2.5 3.71 0 .7-.15 1.28-.36 1.76l-1.56-1.52c.05-.6-.07-1.25-.48-1.71-.23-.26-.47-.36-.51-.38 0 0-.01 0 0 0a.95.95 0 0 1-.73-1.14" clip-rule="evenodd"/><path fill="%23fff" d="M23.4 16.79v1.56l1.9 1.9v-4.27c0-.3-.12-.6-.29-.84a1.6 1.6 0 0 0-.7-.57c-.29-.11-.61-.16-.9-.1-.3.06-.61.21-.82.42l-1.31 1.34 1.33 1.34.8-.78Z"/><path stroke="%23fff" stroke-linecap="round" stroke-width="1.9" d="m20.12 18.73-1.76 1.81h-2.59c-.94 0-1.7.76-1.7 1.7v3.45c0 .93.75 1.68 1.67 1.7l2.6.04 4.9 4.9a.65.65 0 0 0 1.1-.46v-9.1"/><path stroke="%23fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m17.13 15.36 17.2 17.19"/><path stroke="%23fff" stroke-linecap="round" stroke-width="1.9" d="M28.47 30.84A7.2 7.2 0 0 0 31 29.67"/></svg>\')!important}.i-amphtml-story-mute-audio-control{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none"><path stroke="%23fff" stroke-linecap="round" stroke-width="1.9" d="M28.47 17.14c1.15.2 5.46 1.98 5.46 6.92 0 4.95-4.39 6.63-5.46 6.83"/><path stroke="%23fff" stroke-linecap="round" stroke-width="1.8" d="M28.47 21.24c.37.08 1.75.79 1.75 2.78s-1.4 2.67-1.75 2.74"/><path stroke="%23fff" stroke-linecap="round" stroke-width="1.9" d="m18.36 27.48 4.88 4.9a.65.65 0 0 0 1.1-.46V16.09c0-.58-.7-.87-1.1-.45l-4.88 4.94h-2.59c-.94 0-1.7.77-1.7 1.7v3.45c0 .93.75 1.69 1.67 1.7z"/></svg>\')!important}:host(.i-amphtml-story-highlight-mute-audio-control) .i-amphtml-story-mute-audio-control:before{content:""!important;position:absolute!important;width:42px!important;height:42px!important;border-radius:50%!important;background-color:#b1b1b1!important;inset:0!important;margin:auto!important;opacity:0;animation:expand-fade 10s ease-in-out!important}@keyframes expand-fade{0%,40%{transform:scale(0)}50%,90%{transform:scale(1);opacity:0.5}to{opacity:0}}.i-amphtml-story-captions-control{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none"><path fill="%23fff" d="M28.9 15.4h-9.8a5.4 5.4 0 0 0-5.4 5.3v6.6a5.4 5.4 0 0 0 5.4 5.3h9.8a5.4 5.4 0 0 0 5.4-5.3v-6.6a5.4 5.4 0 0 0-5.4-5.3m1 6h-1.7a1.1 1.1 0 0 0-1.1 1.2v2.8a1.1 1.1 0 0 0 1.1 1.1h1.6c.6 0 1 .5 1 1 0 .7-.4 1.2-1 1.2h-1.6a3.3 3.3 0 0 1-3.3-3.3v-2.8a3.3 3.3 0 0 1 3.3-3.3h1.6c.6.1 1 .6 1 1.1 0 .6-.4 1-1 1Zm-8.1 0H20a1.1 1.1 0 0 0-1 1.2v2.8a1.1 1.1 0 0 0 1 1.1h1.6c.6 0 1.1.5 1.1 1 0 .7-.5 1.2-1 1.2h-1.6a3.3 3.3 0 0 1-3.3-3.3v-2.8a3.3 3.3 0 0 1 3.3-3.3h1.6c.5.1 1 .6 1 1.1a1.1 1.1 0 0 1-1 1Z"/></svg>\')!important;width:52px!important}.i-amphtml-story-nocaptions-control{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none"><rect width="18.74" height="15.43" x="14.63" y="16.29" stroke="%23fff" stroke-width="1.85" rx="4.42"/><path stroke="%23fff" stroke-linecap="round" stroke-width="1.85" d="M22.4 20.38h-1.63a2.2 2.2 0 0 0-2.2 2.2v2.84c0 1.21.98 2.2 2.2 2.2h1.63m7.07-7.24h-1.63a2.2 2.2 0 0 0-2.2 2.2v2.84c0 1.21.98 2.2 2.2 2.2h1.63"/></svg>\')!important;width:52px!important}.i-amphtml-story-pause-control{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none"><path stroke="%23fff" stroke-linecap="round" stroke-width="2.1" d="M20.33 16.86v15.4m7.34-15.4v15.4"/></svg>\')!important}.i-amphtml-story-play-control{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none"><path stroke="%23fff" stroke-linecap="round" stroke-width="1.9" d="M17.74 30.34V18.53a1.8 1.8 0 0 1 2.77-1.52l9.23 5.92a1.8 1.8 0 0 1 0 3.03l-9.23 5.9a1.8 1.8 0 0 1-2.77-1.52Z"/></svg>\')!important}.i-amphtml-story-share-control{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none"><path fill="%23fff" d="m21.1 25.4 9.87-9.86 1.42 1.42-9.86 9.87z"/><path stroke="%23fff" stroke-linecap="round" stroke-width="1.9" d="m16.85 19.82 15.33-4.14c.04 0 .07.03.06.06l-4.02 15.34a1.6 1.6 0 0 1-2.97.33l-2.93-5.73-5.77-2.88a1.6 1.6 0 0 1 .3-2.98Z"/></svg>\')!important}.i-amphtml-story-info-control{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none"><rect width="2.2" height="6.7" x="22.9" y="22.6" fill="%23fff" rx="1.1"/><path stroke="%23fff" stroke-width="1.9" d="M31.7 24a7.7 7.7 0 1 1-15.4 0 7.7 7.7 0 0 1 15.4 0Z"/><circle cx="24" cy="20.2" r="1.2" fill="%23fff"/></svg>\')!important;display:none!important;background-size:auto!important}.i-amphtml-story-close-control{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none"><rect width="1.84" height="18.84" x="16.68" y="18" fill="%23fff" rx=".92" transform="rotate(-45 16.68 18)"/><rect width="1.84" height="18.84" x="30" y="16.7" fill="%23fff" rx=".92" transform="rotate(45 30 16.7)"/></svg>\')!important}.i-amphtml-story-skip-to-next{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none"><path stroke="%23fff" stroke-linecap="round" stroke-width="1.9" d="M17 29.2V18.8c0-1.2 1.4-2 2.5-1.3l7.5 5.2c1 .6 1 2 0 2.6l-7.5 5.2c-1 .7-2.5 0-2.5-1.3Z"/><rect width="1.8" height="15.6" x="30.2" y="16.2" fill="%23fff" rx=".9"/></svg>\')!important}[desktop] .i-amphtml-story-skip-to-next{display:block!important}.i-amphtml-story-has-new-page-notification-container{position:absolute!important;z-index:100002!important;top:32px!important;right:0!important;left:0!important;opacity:0!important}.i-amphtml-story-has-new-page-notification-container,.i-amphtml-story-has-new-page-text-wrapper{display:-ms-flexbox!important;display:flex!important;-ms-flex-pack:center!important;justify-content:center!important}.i-amphtml-story-has-new-page-text-wrapper{background-color:rgba(32,33,37,.8)!important;-ms-flex-align:center!important;align-items:center!important;padding:4px 10px 4px 0!important;border-radius:5px!important}[dir=rtl] .i-amphtml-story-has-new-page-text-wrapper{padding-right:0!important;padding-left:10px!important}.i-amphtml-story-has-new-page-text{color:#fff!important;font-size:16px!important;text-shadow:0px 0px 6px rgba(0,0,0,.36)!important;font-weight:700!important}.i-amphtml-story-has-new-page-circle-icon{background:#03ffa0!important;border-radius:50%!important;height:6px!important;width:6px!important;position:relative!important;box-shadow:0 0 0 2px rgba(3,255,160,.5)!important;margin:0px 10px!important}.i-amphtml-embedded.i-amphtml-first-page-active .i-amphtml-story-info-control{display:block!important}.i-amphtml-story-no-sharing .i-amphtml-story-info-control,.i-amphtml-story-no-sharing .i-amphtml-story-share-control{display:none!important}.i-amphtml-animate-progress li{transition:transform 0.8s cubic-bezier(0.4,0,0.2,1)!important}.i-amphtml-story-desktop-fullbleed .i-amphtml-story-progress-bar{height:3px!important}.i-amphtml-progress-bar-overflow .i-amphtml-story-page-progress-bar{border-radius:0px!important;list-style:none!important;margin:0 2px!important;width:2px!important;position:absolute!important;transform-origin:left!important}[dir=rtl].i-amphtml-progress-bar-overflow .i-amphtml-story-page-progress-bar{transform-origin:right!important}[desktop] .i-amphtml-progress-bar-overflow .i-amphtml-story-page-progress-bar{width:3px!important}.i-amphtml-story-desktop-one-panel.i-amphtml-story-system-layer{width:var(--i-amphtml-story-desktop-one-panel-width)!important;margin:auto!important;margin-top:var(\n --i-amphtml-story-desktop-one-panel-responsive-margin\n )!important;border-radius:var(\n --i-amphtml-story-desktop-one-panel-border-radius\n )!important}\n/*# sourceURL=/extensions/amp-story/1.0/amp-story-system-layer.css*/'),this.xE=this.bE.querySelector(".i-amphtml-story-system-layer-buttons"),this.Ug(),this.Lg.subscribe(Gi.CAN_SHOW_SYSTEM_LAYER_BUTTONS,(function(t){i.bE.classList.toggle("i-amphtml-story-ui-no-buttons",!t)}),!0),Ei(this.t).isIos()&&this.bE.setAttribute("ios",""),this.yh=Ti(this.t.document.documentElement),this.kE=this.yh.isEmbedded()?new Pr(this.t,this.yh):null,Me(this.yh,this.Lg)?(this.bE.classList.add("i-amphtml-embedded"),this.getShadowRoot().setAttribute(Rr,"")):this.getShadowRoot().removeAttribute(Rr),this.AE(),this.getShadowRoot().setAttribute(Xr,"noshow")),this.gs},i.AE=function(){if(this.yh&&"auto"===this.yh.getParam("attribution")){this.bE.querySelector(".i-amphtml-story-attribution-logo").src=Re(this.NS,"entity-logo-src")||Re(this.NS,"publisher-logo-src");var t=this.bE.querySelector(".".concat(O(Kr)));t.href=Re(this.NS,"entity-url")||xi(this.NS).getSourceOrigin(vi(this.NS).sourceUrl),this.bE.querySelector(".i-amphtml-story-attribution-text").textContent=this.NS.getAttribute("entity")||this.NS.getAttribute("publisher"),t.classList.add("i-amphtml-story-attribution-visible")}},i.Ug=function(){var t=this;this.getShadowRoot().addEventListener("click",(function(i){var e=i.target;M(e,".".concat(Gr,", .").concat(Gr," *"))?t.TE(!0):M(e,".".concat(Wr,", .").concat(Wr," *"))?t.TE(!1):M(e,".".concat(Vr,", .").concat(Vr," *"))?t.SE(!0):M(e,".".concat(Fr,", .").concat(Fr," *"))?t.SE(!1):M(e,".".concat(Dr,", .").concat(Dr," *"))?t.EE(!1):M(e,".".concat(Ur,", .").concat(Ur," *"))?t.EE(!0):M(e,".".concat(qr,", .").concat(qr," *"))?t.PE(i):M(e,".".concat(Yr,", .").concat(Yr," *"))?t.OE():M(e,".".concat(Hr,", .").concat(Hr," *"))?t._E(i.target):M(e,".".concat(Kr,", .").concat(Kr," *"))&&Ge(R(e,(function(t){return M(t,"a[href]")})),t.NS)})),this.Lg.subscribe(Gi.AD_STATE,(function(i){t.ME(i)})),this.Lg.subscribe(Gi.CAN_SHOW_AUDIO_UI,(function(i){t.IE(i)}),!0),this.Lg.subscribe(Gi.CAN_SHOW_SHARING_UIS,(function(i){t.NE(i)}),!0),this.Lg.subscribe(Gi.STORY_HAS_PLAYBACK_UI_STATE,(function(i){t.zE(i)}),!0),this.Lg.subscribe(Gi.MUTED_STATE,(function(i){t.Hr(i)}),!0),this.Lg.subscribe(Gi.UI_STATE,(function(i){t.Gc.mutate((function(){return t.gx(i)}))})),this.gx(this.Lg.get(Gi.UI_STATE)),this.Lg.subscribe(Gi.PAUSED_STATE,(function(i){t.RE(i)}),!0),this.Lg.subscribe(Gi.CURRENT_PAGE_INDEX,(function(i){t.jE(i)}),!0),this.Lg.subscribe(Gi.RTL_STATE,(function(i){t.OS(i)}),!0),this.Lg.subscribe(Gi.KEYBOARD_ACTIVE_STATE,(function(i){t.CE(i)}),!0),this.Lg.subscribe(Gi.PAGE_HAS_CAPTIONS_STATE,(function(i){return t.DE(i)}),!0),this.Lg.subscribe(Gi.CAPTIONS_STATE,(function(i){return t.LE(i)}),!0),this.Lg.subscribe(Gi.PAGE_HAS_AUDIO_STATE,(function(i){t.UE(i)}),!0),this.Lg.subscribe(Gi.PAGE_HAS_ELEMENTS_WITH_PLAYBACK_STATE,(function(i){t.YE(i)}),!0),this.Lg.subscribe(Gi.SYSTEM_UI_IS_VISIBLE_STATE,(function(i){t.zS(i)})),this.Lg.subscribe(Gi.NEW_PAGE_AVAILABLE_ID,(function(){t.HE()})),this.Lg.subscribe(Gi.VIEWER_CUSTOM_CONTROLS,(function(i){return t.VE(i)}),!0)},i.getShadowRoot=function(){return this.bE},i.ME=function(t){t?this.getShadowRoot().setAttribute(Nr,""):this.getShadowRoot().removeAttribute(Nr)},i.IE=function(t){var i=this;this.Gc.mutate((function(){i.getShadowRoot().classList.toggle("i-amphtml-story-no-audio-ui",!t)}))},i.NE=function(t){var i=this;this.Gc.mutate((function(){i.getShadowRoot().classList.toggle("i-amphtml-story-no-sharing",!t)}))},i.zE=function(t){var i=this;this.Gc.mutate((function(){i.getShadowRoot().classList.toggle("i-amphtml-story-has-playback-ui",t)}))},i.EE=function(t){this.Lg.dispatch(25,t)},i.UE=function(t){var i=this;t=t||!!this.Lg.get(Gi.STORY_HAS_BACKGROUND_AUDIO_STATE),this.Gc.mutate((function(){t?i.getShadowRoot().setAttribute(jr,""):i.getShadowRoot().removeAttribute(jr)}))},i.DE=function(t){Pt(this.bE,"i-amphtml-current-page-has-captions",t)},i.LE=function(t){Pt(this.bE,"captions-on",t)},i.YE=function(t){var i=this;this.Gc.mutate((function(){d(i.getShadowRoot().querySelectorAll(".i-amphtml-paused-display button")).forEach((function(i){i.disabled=!t}))}))},i.Hr=function(t){var i=this;this.Gc.mutate((function(){t?i.getShadowRoot().setAttribute(Cr,""):i.getShadowRoot().removeAttribute(Cr)}))},i.RE=function(t){var i=this;this.Gc.mutate((function(){t?i.getShadowRoot().setAttribute(Mr,""):i.getShadowRoot().removeAttribute(Mr)}))},i.GE=function(t){var i=this;this.cA&&this.Xo.cancel(this.cA),this.cA=this.Xo.delay((function(){return i.BE(t)}),1500)},i.BE=function(t){var i=this;this.gs&&this.Gc.mutate((function(){i.getShadowRoot().setAttribute(t,"noshow")}))},i.gx=function(t){var i=this.getShadowRoot();switch(i.classList.remove("i-amphtml-story-desktop-fullbleed"),i.classList.remove("i-amphtml-story-desktop-one-panel"),i.removeAttribute("desktop"),t){case 2:i.setAttribute("desktop",""),i.classList.add("i-amphtml-story-desktop-fullbleed");break;case 4:i.classList.add("i-amphtml-story-desktop-one-panel")}},i.zS=function(t){var i=this;this.Gc.mutate((function(){var e=i.getShadowRoot();e.classList.toggle("i-amphtml-story-hidden",!t),d(e.querySelectorAll("button")).forEach((function(i){return function(t,i){i?(t.removeAttribute("tab-index"),t.removeAttribute("aria-hidden")):(t.setAttribute("tab-index","-1"),t.setAttribute("aria-hidden","true"))}(i,t)}))}))},i.jE=function(t){var i=this;this.Gc.mutate((function(){var e=i.Lg.get(Gi.PAGE_IDS).length-1;i.getShadowRoot().classList.toggle("i-amphtml-first-page-active",0===t),i.getShadowRoot().classList.toggle("i-amphtml-last-page-active",t===e)}))},i.OS=function(t){var i=this;this.Gc.mutate((function(){t?i.getShadowRoot().setAttribute("dir","rtl"):i.getShadowRoot().removeAttribute("dir")}))},i.CE=function(t){var i=this;this.Gc.mutate((function(){i.getShadowRoot().classList.toggle("amp-mode-keyboard-active",t)}))},i.TE=function(t){this.Lg.dispatch(21,t)},i.SE=function(t){this.Lg.dispatch(zi,t)},i.PE=function(t){if(t.preventDefault(),t.target[Zr])this._E(t.target);else{var i=this.Lg.get(Gi.SHARE_MENU_STATE);this.Lg.dispatch(29,!i)}},i._E=function(t){var i=t[Zr];this.kE&&this.kE.send("documentStateUpdate",{state:"AMP_STORY_PLAYER_EVENT",value:i})},i.OE=function(){var t=this.Lg.get(Gi.INFO_DIALOG_STATE);this.Lg.dispatch(18,!t)},i.HE=function(){var t=this;this.Gc.mutate((function(){t.getShadowRoot().setAttribute(Xr,"show"),t.GE(Xr)}))},i.VE=function(t){var i=this;t.length<=0||t.forEach((function(t){if(t.name){var e,n=$r[t.name];if(n&&n.selector?e=N(i.getShadowRoot(),n.selector):(e=Ct("button",{class:"i-amphtml-story-button"}),i.Gc.mutate((function(){i.xE.appendChild(e)}))),i.Gc.mutate((function(){e.classList.add(Hr)})),"hidden"===t.visibility&&i.Gc.mutate((function(){e.classList.add("i-amphtml-story-ui-hide-button")})),t.visibility&&"visible"!==t.visibility||i.Gc.mutate((function(){e.classList.remove("i-amphtml-story-ui-hide-button")})),"disabled"===t.state&&i.Gc.mutate((function(){e.disabled=!0})),"start"===t.position){var r=i.bE.querySelector(".i-amphtml-story-system-layer-buttons-start-position");i.Gc.mutate((function(){i.xE.removeChild(e),r.appendChild(e)}))}t.backgroundImageUrl&&X(e,{"background-image":"url('".concat(t.backgroundImageUrl,"')")}),e[Zr]="amp-story-player-".concat(t.name)}}))},i.updateProgress=function(t,i){this.wE.updateProgress(t,i)},t}(),Qr="BACKGROUND-BLUR",to=function(){function t(t,i){this.t=t,this.ri=i,this.FE=null,this.WE=null,this.ZE=this.t.document.createElement("canvas"),this.ZE.width=this.ZE.height=3,this.vp=null,this.XE=!0}var i=t.prototype;return i.attach=function(){this.WE=this.t.document.createElement("canvas"),this.WE.width=this.WE.height=3,X(this.WE,{width:"100%",height:"100%",position:"absolute",left:0,top:0}),this.ri.appendChild(this.WE)},i.detach=function(){this.ri.removeChild(this.WE),cancelAnimationFrame(this.vp)},i.update=function(t){this.FE=this.qE(t),this.$E(this.FE[0])},i.$E=function(t){var i=this;if(!t)return Wt().info(Qr,"No amp-img or amp-video found."),void this.KE();this.JE(t).then((function(t){if("AMP-IMG"===t.tagName)return i.QE(t)?void i.$E(i.tP(t)):void i.KE(t.querySelector("img"));var e=t.querySelector("video");if(e.readyState>=2)i.KE(e);else{var n=t.getAttribute("poster");if(!n)return i.KE(),void Wt().info(Qr,'No "poster" attribute on amp-video.');var r=new Image;r.onload=function(){return i.KE(r)},r.src=n}}))},i.QE=function(t){if(!this.iP(t))return!1;var i=t.querySelector("img"),e=this.t.document.createElement("canvas");e.width=e.height=3;var n=e.getContext("2d");n.drawImage(i,0,0,3,3);for(var r=n.getImageData(0,0,3,3).data,o=0;o<r.length;o+=4)if(r[o+3]<255)return!0;return!1},i.iP=function(t){var i=t.getAttribute("src").toLowerCase();return i.includes(".png")||i.includes(".gif")},i.tP=function(t){var i=this.FE.indexOf(t);return this.FE[i+1]},i.JE=function(t){return new Promise((function(i){Ot(t).then((function(){return t.signals().whenSignal(bt)})).then((function(){i(t)})).catch((function(){Wt().error(Qr,"Failed to load the amp-img or amp-video.")}))}))},i.KE=function(t){var i,e=this;if(this.nP(t),this.XE)return this.rP(1),void(this.XE=!1);cancelAnimationFrame(this.vp),this.vp=requestAnimationFrame((function t(n){i||(i=n);var r=n-i;if(r<400){var o=r/400;e.rP(o),e.vp=requestAnimationFrame(t)}}))},i.rP=function(t){var i=this.WE.getContext("2d");i.globalAlpha=t,i.drawImage(this.ZE,0,0,3,3)},i.nP=function(t){var i=this.ZE.getContext("2d");i.fillStyle="black",i.fillRect(0,0,3,3),t&&(i.drawImage(t,0,0,3,3),i.fillStyle="rgba(0, 0, 0, .3)",i.fillRect(0,0,3,3))},i.qE=function(t){var i=function(t){if(!t)return!1;var i=t.getLayoutBox();return i.width*i.height};return Array.from(C(t,"amp-story-grid-layer amp-img, amp-story-grid-layer amp-video")).sort((function(t,e){return i(e)-i(t)}))},t}(),io="amp-story-state",eo="ampStoryNavigationPath";function no(t,i){var e=pr(t.history);return e&&e[i]||(e=function(t){var i=t.location.hash;if(-1==i.indexOf("page=")&&-1==i.indexOf("ignoreLocalStorageHistory")){var e=ro(t),n=e&&e[oo(t)];return n&&n.state}}(t)),e&&e[i]||null}function ro(t){var i=function(t){try{return Et(t.localStorage.getItem(io))}catch(t){return null}}(t);if(!i)return{};var e=Date.now(),n=!1;return Object.keys(i).forEach((function(t){var r=i[t];e>r.time+6e5&&(delete i[t],n=!0)})),n&&ao(t,i),i}function oo(t){return t.location.href.replace(/\#.*/,"")}function ao(t,i){try{t.localStorage.setItem(io,JSON.stringify(i))}catch(t){}}var so=function(){function t(t){this.oP=t,this.vu=this.oP.getAmpDoc(),this.Bg=t.element,this.Lg=Ui(this.oP.win)}var i=t.prototype;return i.build=function(){var t=this,i=Ct("amp-live-list",{id:"i-amphtml-"+this.Bg.id+"-dynamic-list","data-poll-interval":this.Bg.getAttribute("data-poll-interval")||15e3,sort:"ascending","disable-scrolling":!0,"disable-pagination":!0,"auto-insert":!0});i.AMP_LIVE_LIST_CUSTOM_SLOT_ID=qt(this.Bg.id,"amp-story must contain id to use the live story functionality"),this.oP.element.signals().whenSignal(bt).then((function(){yi(t.vu.win).installExtensionForDoc(t.vu,"amp-live-list"),t.Bg.insertBefore(i,t.Bg.firstElementChild)}))},i.update=function(){var t=U(this.Bg,(function(t){return t.classList.contains("amp-live-list-item-new")})),i=this.Bg.querySelectorAll("amp-story-page"),e=Array.prototype.map.call(i,(function(t){return t.id}));this.Lg.dispatch(11,e),this.Lg.dispatch(2,t.id)},t}(),lo={className:"i-amphtml-story-back-prev",triggers:Fi,label:"93"},ho={className:"i-amphtml-story-fwd-next",triggers:ji,label:"91"},uo={className:"i-amphtml-story-fwd-next",triggers:ji,label:"90"},co={className:"i-amphtml-story-fwd-replay",triggers:Yi,label:"92"},mo=function(){function t(t,i,e,n){var r=this;this.Ke=i,this.si=t,this.element=function(t){return Ct("div",{onClick:function(t){return r.PS(t)},class:"i-amphtml-story-button-container ".concat(t.className)},Ct("button",{class:"i-amphtml-story-button-move","i-amphtml-i18n-aria-label":t.label}))}(i),Qe(this.element,t),this.aP=jt(this.element.firstElementChild),this.Lg=e,this.t=n,this.oa=bi(t)}var i=t.prototype;return i.updateState=function(t){var i=this;t!==this.Ke&&(this.oa.mutateElement(this.element,(function(){i.element.classList.remove(i.Ke.className),i.element.classList.add(t.className),i.Ke=t})),Si(this.si).getLocalizedStringAsync(t.label).then((function(t){return i.aP.setAttribute("aria-label",t)})))},i.getState=function(){return this.Ke},i.setEnabled=function(t){var i=this;this.oa.mutateElement(this.element,(function(){i.element.classList.toggle("i-amphtml-story-button-hidden",!t),Pt(i.element.querySelector("button"),"disabled",!t)}))},i.PS=function(t){t.preventDefault(),this.Lg.dispatch(7,le),this.Ke.triggers?Zi(this.t,this.element,jt(this.Ke.triggers),void 0,{bubbles:!0}):this.Ke.action&&this.Lg.dispatch(this.Ke.action,this.Ke.data)},t}(),po=function(){function t(t){this.oP=t;var i=this.oP.win,e=i.document;this.Lg=Ui(i),this.sP=new mo(e,ho,this.Lg,i),this.eP=new mo(e,lo,this.Lg,i),this.eP.element.classList.add("prev-container"),this.sP.element.classList.add("next-container"),this.Ug(),this.oP.element.appendChild(this.eP.element),this.oP.element.appendChild(this.sP.element)}var i=t.prototype;return i.Ug=function(){var t=this;this.Lg.subscribe(Gi.CURRENT_PAGE_INDEX,(function(i){t.uP(i)})),this.Lg.subscribe(Gi.PAGE_IDS,(function(){var i=Number(t.Lg.get(Gi.CURRENT_PAGE_INDEX));t.uP(i)}),!0),this.Lg.subscribe(Gi.SYSTEM_UI_IS_VISIBLE_STATE,(function(i){return t.zS(i)}))},i.uP=function(t){var i=this.Lg.get(Gi.PAGE_IDS).length;this.eP.setEnabled(t>0),t<i-1?this.sP.updateState(ho):Ti(this.oP.element).hasCapability("swipe")?this.sP.updateState(uo):this.sP.updateState(co)},i.zS=function(t){this.eP.setEnabled(t),this.sP.setEnabled(t)},t}(),fo=function(){function t(t,i,e){var n=this;this.Xo=wi(t),this.Jo=i,this.Qo=e||0,this.Zo=-1,this.rs=0,this.es=!1,this.us=function(){n.os()}}var i=t.prototype;return i.isPending=function(){return-1!=this.Zo},i.schedule=function(t){var i=t||this.Qo;this.es&&i<10&&(i=10);var e=Date.now()+i;return(!this.isPending()||e-this.rs<-10)&&(this.cancel(),this.rs=e,this.Zo=this.Xo.delay(this.us,i),!0)},i.os=function(){this.Zo=-1,this.rs=0,this.es=!0,this.Jo(),this.es=!1},i.cancel=function(){this.isPending()&&(this.Xo.cancel(this.Zo),this.Zo=-1)},t}(),go="__AMP_Gestures",vo=function(t,i,e,n){this.type=t,this.data=i,this.time=e,this.event=n},yo=function(){function t(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.ri=t,this.hP=[],this.Hp=[],this.ze=[],this.cP=[],this.lP=null;var n=function(t){if(void 0!==di)return di;di=!1;try{var i={get passive(){return di=!0,!1}};t.addEventListener("test-options",null,i),t.removeEventListener("test-options",null,i)}catch(t){}return di}(t.ownerDocument.defaultView);this.mP=i||n,this.pP=e,this.fP=!1,this.os=new fo(ft(t),this.hs.bind(this)),this.dP=new Ci,this.vP=Object.create(null),this.yP=this.rr.bind(this),this.gP=this.er.bind(this),this.bP=this.sr.bind(this),this.xP=this.$p.bind(this),this.ri.addEventListener("touchstart",this.yP,!!n&&{passive:!0}),this.ri.addEventListener("touchend",this.gP),this.ri.addEventListener("touchmove",this.bP,!!n&&{passive:!0}),this.ri.addEventListener("touchcancel",this.xP),this.wP=!1}t.get=function(i){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=i[go];return r||(r=new t(i,e,n),i[go]=r),r};var i=t.prototype;return i.cleanup=function(){this.ri.removeEventListener("touchstart",this.yP),this.ri.removeEventListener("touchend",this.gP),this.ri.removeEventListener("touchmove",this.bP),this.ri.removeEventListener("touchcancel",this.xP),delete this.ri[go],this.os.cancel()},i.onGesture=function(t,i){var e=new t(this),n=e.getType(),r=this.vP[n];return r||(this.hP.push(e),r=new Ci,this.vP[n]=r),r.add(i)},i.removeGesture=function(t){var i=new t(this).getType(),e=this.vP[i];if(e){e.removeAll();var n=v(this.hP,(function(t){return t.getType()==i}));return!(n<0||(this.hP.splice(n,1),this.ze.splice(n,1),this.cP.splice(n,1),this.Hp.splice(n,1),delete this.vP[i],0))}return!1},i.onPointerDown=function(t){return this.dP.add(t)},i.rr=function(t){var i=Date.now();this.fP=!1,this.dP.fire(t);for(var e=0;e<this.hP.length;e++)this.ze[e]||(this.cP[e]&&this.cP[e]<i&&this.Wp(e),this.hP[e].onTouchStart(t)&&this.Yp(e));this.kP(t)},i.sr=function(t){for(var i=Date.now(),e=0;e<this.hP.length;e++)this.Hp[e]&&(this.cP[e]&&this.cP[e]<i?this.Wp(e):this.hP[e].onTouchMove(t)||this.Wp(e));this.kP(t)},i.er=function(t){for(var i=Date.now(),e=0;e<this.hP.length;e++)if(this.Hp[e])if(this.cP[e]&&this.cP[e]<i)this.Wp(e);else{this.hP[e].onTouchEnd(t);var n=!this.cP[e],r=this.cP[e]<i;this.lP==this.hP[e]||!n&&!r||this.Wp(e)}this.kP(t)},i.$p=function(t){for(var i=0;i<this.hP.length;i++)this.AP(i);this.kP(t)},i.Wi=function(t,i){if(this.lP)t.acceptCancel();else{for(var e=Date.now(),n=0;n<this.hP.length;n++)this.hP[n]==t&&(this.ze[n]=e+i,this.cP[n]=0);this.wP=!0}},i.TP=function(t,i){if(this.lP)t.acceptCancel();else for(var e=Date.now(),n=0;n<this.hP.length;n++)this.hP[n]==t&&(this.cP[n]=e+i)},i.SP=function(t){this.lP==t&&(this.lP=null,this.fP=!0)},i.EP=function(t,i,e){S(this.lP==t);var n=this.vP[t.getType()];n&&n.fire(new vo(t.getType(),i,Date.now(),e))},i.kP=function(t){var i=!!this.lP||this.fP;if(this.fP=!1,!i)for(var e=Date.now(),n=0;n<this.hP.length;n++)if(this.ze[n]||this.cP[n]&&this.cP[n]>=e){i=!0;break}i?(t.stopPropagation(),this.mP||t.preventDefault()):this.pP&&t.stopPropagation(),this.wP&&(this.wP=!1,this.hs())},i.hs=function(){for(var t=Date.now(),i=-1,e=0;e<this.hP.length;e++)this.ze[e]?(-1==i||this.ze[e]>this.ze[i])&&(i=e):this.cP[e]&&this.cP[e]<t&&this.Wp(e);if(-1!=i){for(var n=0,r=0;r<this.hP.length;r++)!this.ze[r]&&this.Hp[r]&&(n=Math.max(n,this.cP[r]-t));n<2?this.PP(i):this.os.schedule(n)}},i.PP=function(t){for(var i=this.hP[t],e=0;e<this.hP.length;e++)e!=t&&this.AP(e);this.ze[t]=0,this.cP[t]=0,this.lP=i,i.acceptStart()},i.Yp=function(t){this.Hp[t]=!0,this.cP[t]=0},i.Wp=function(t){this.Hp[t]=!1,this.cP[t]=0,this.ze[t]||this.hP[t].acceptCancel()},i.AP=function(t){this.ze[t]=0,this.Wp(t)},t}(),bo=function(){function t(t,i){this.OP=t,this.Py=i}var i=t.prototype;return i.getType=function(){return this.OP},i.signalReady=function(t){this.Py.Wi(this,t)},i.signalPending=function(t){this.Py.TP(this,t)},i.signalEnd=function(){this.Py.SP(this)},i.signalEmit=function(t,i){this.Py.EP(this,t,i)},i.acceptStart=function(){},i.acceptCancel=function(){},i.onTouchStart=function(t){return!1},i.onTouchMove=function(t){return!1},i.onTouchEnd=function(t){},t}();function Ao(t,i,e){i<1&&(i=1);var n=t/i,r=.5+Math.min(i/33.34,.5);return n*r+e*(1-r)}Math.round(-16.67/Math.log(.95));var Eo,So=function(t){u(e,t);var i=p(e);function e(t){return i.call(this,"swipe-xy",t,!0,!0)}return e}(function(t){u(e,t);var i=p(e);function e(t,e,n,r){var o;return(o=i.call(this,t,e))._P=n,o.MP=r,o.lP=!1,o.IP=0,o.NP=0,o.zP=0,o.RP=0,o.jP=0,o.CP=0,o.ka=0,o.DP=0,o.LP=0,o.UP=0,o.YP=0,o}var n=e.prototype;return n.onTouchStart=function(t){var i=t.touches;return!!(this.lP&&i&&i.length>1)||!(!i||1!=i.length)&&(this.ka=Date.now(),this.IP=i[0].clientX,this.NP=i[0].clientY,!0)},n.onTouchMove=function(t){var i=t.touches;if(i&&i.length>=1){var e=i[0],n=e.clientX,r=e.clientY;if(this.zP=n,this.RP=r,this.lP)this.HP(!1,!1,t);else{var o=Math.abs(n-this.IP),a=Math.abs(r-this.NP);if(this._P&&this.MP)(o>=8||a>=8)&&this.signalReady(-10);else if(this._P){if(o>=8&&o>a)this.signalReady(-10);else if(a>=8)return!1}else{if(!this.MP)return!1;if(a>=8&&a>o)this.signalReady(-10);else if(o>=8)return!1}}return!0}return!1},n.onTouchEnd=function(t){var i=t.touches;i&&0==i.length&&this.VP(t)},n.acceptStart=function(){this.lP=!0,this.jP=this.IP,this.CP=this.NP,this.LP=this.ka,this.IP=this.zP,this.NP=this.RP,this.HP(!0,!1,null)},n.acceptCancel=function(){this.lP=!1},n.HP=function(t,i,e){this.DP=Date.now();var n=this.DP-this.LP;if(!i&&n>4||i&&n>16){var r=Ao(this.zP-this.jP,n,this.UP),o=Ao(this.RP-this.CP,n,this.YP);(!i||n>32||0!=r||0!=o)&&(this.UP=Math.abs(r)>1e-4?r:0,this.YP=Math.abs(o)>1e-4?o:0),this.jP=this.zP,this.CP=this.RP,this.LP=this.DP}this.signalEmit({first:t,last:i,time:this.DP,deltaX:this.zP-this.IP,deltaY:this.RP-this.NP,startX:this.IP,startY:this.NP,lastX:this.zP,lastY:this.RP,velocityX:this.UP,velocityY:this.YP},e)},n.VP=function(t){this.lP&&(this.lP=!1,this.HP(!1,!0,t),this.signalEnd())},e}(bo)),wo="ad-showing",xo="auto-advance-to",To="muted",_o="i-amphtml-return-to",Po="i-amphtml-visited",ko=(f(Eo={},Yn,4),f(Eo,Xn,8),Eo),Oo="amp-story",Lo=function(t){u(e,t);var i=p(e);function e(t){var e,n;return(e=i.call(this,t)).Lg=Ui(e.win),"rtl"==((n=e.win.document).body.getAttribute("dir")||n.documentElement.getAttribute("dir")||"ltr")&&e.Lg.dispatch(28,!0),e.qg=he(e.win,e.element),e.BA=er.forElement(e.win,e.element),e.BA.start(),e.Gc=e.getVsync(),e.GP=new Jr(e.win,e.element),new qe(e.win,e.element),e.BP=[],e.FP=[],e.Hg=ne(e.win),e.WP=null,e.ZP=e.win.matchMedia("(min-aspect-ratio: ".concat("31 / 40",")")),e.XP=e.win.matchMedia("(min-width: ".concat(550,"px) and ")+"(min-height: ".concat(1024,"px)")),e.qP=e.win.matchMedia("(orientation: landscape)"),e.$P=null,e.KP=new Er(e.win,e.element),e.JP=Jn.for(l(e)),e.Xo=wi(e.win),e.Ih=Ei(e.win),e.yh=null,e.kE=null,e.QP=null,e.tO=null,e.iO=null,e.rO=null,e.oO=!1,e.aO=null,e.sO=new a,e.eO=null,e.uO=-1,e.hO=new a,e.cO=null,e.lO=new a,e}e.prerenderAllowed=function(){return!0};var n=e.prototype;return n.buildCallback=function(){var t,i,e=this;this.yh=Ti(this.element),!(null!==(t=this.win.CSS)&&void 0!==t&&null!==(i=t.supports)&&void 0!==i&&i.call(t,"height: 1dvh")||function(t){var i=Y(t.style,"--story-dvh",void 0);if(i)return ot(i)?t.style.getPropertyValue(i):t.style[i]}(this.win.document.documentElement))&&(this.mO(this.getViewport().getSize()),this.getViewport().onResize((function(t){return e.mO(t)}))),this.kE=this.yh.isEmbedded()?new Pr(this.win,this.yh):null,this.cO=this.pO(),this.fO(),this.dO()&&this.vO(),this.mutateElement((function(){}));var n=this.yO();n&&this.element.querySelector("amp-story-page#".concat(O(n))).setAttribute("active",""),this.Ug(),this.gO(),this.bO(),this.rO=this.xO(),this.Lg.dispatch(35,this.rO),this.wO()&&this.win.document.documentElement.setAttribute("data-story-supports-landscape",""),this.Ih.isBot()||this.element.removeAttribute("title"),function(t){for(var i=[],e=t.firstChild;e;e=e.nextSibling)e.nodeType===Node.TEXT_NODE&&i.push(e);return i}(this.element).forEach((function(t){e.element.removeChild(t)})),li(this.win,"amp-story-branching")&&this.registerAction("goToPage",(function(t){var i=t.args;i&&(e.Lg.dispatch(7,"goToPageAction"),e.dS(i.id,hr))}));var r=Ai(this.win);(li(this.win,"story-disable-animations-first-page")||Ri(this.win)||tn(this.win)||ze(this.getAmpDoc()))&&r.addEnabledExperiment("story-disable-animations-first-page");var o=this.getAmpDoc().getRootNode().documentElement,a=o.querySelector('style[amp-extension="amp-story"][i-amphtml-version]'),s=o.querySelector('link[amp-extension="amp-story"][rel=stylesheet]');a?r.addEnabledExperiment("story-inline-css"):s&&r.addEnabledExperiment("story-link-css"),li(this.win,"story-load-inactive-outside-viewport")&&(r.addEnabledExperiment("story-load-inactive-outside-viewport"),this.element.classList.add("i-amphtml-experiment-story-load-inactive-outside-viewport")),this.kO(),this.AO()},n.kO=function(){if(!this.wO()&&this.element.hasAttribute("desktop-aspect-ratio")){var t=this.element.getAttribute("desktop-aspect-ratio").split(":");if(0!=t[1]){var i=mr(t[0]/t[1],.5,.75);X(document.querySelector(":root"),{"--i-amphtml-story-desktop-one-panel-ratio":i}),this.Lg.dispatch(15,i)}}},n.Qp=function(){var t=this;if(this.TO(),this.Lg.get(Gi.MUTED_STATE)||this.SO(),"inactive"===this.getAmpDoc().getVisibilityState()){var i=function(){t.WP.setState(0),t.WP.element.setAttribute("active","")};this.WP?i():this.lO.promise.then((function(){return i()}))}},n.OT=function(){this.EO(),this.Lg.get(Gi.MUTED_STATE)||this.PO()},n.TO=function(){null===this.QP&&(this.QP=!!this.Lg.get(Gi.PAUSED_STATE)),this.Lg.dispatch(zi,!0)},n.EO=function(){this.Lg.dispatch(zi,this.QP),this.QP=null},n.vO=function(){this.OO(),this.onResizeDebounced()},n.gO=function(){for(var t=this.element.querySelectorAll("amp-story-page"),i=d(t).map((function(t){return t.id||"default-page"})),e=A(),n=0;n<i.length;n++)if(void 0!==e[i[n]]){Wt().error(Oo,"Duplicate amp-story-page ID ".concat(i[n]));var r="".concat(i[n],"__").concat(++e[i[n]]);t[n].id=r,i[n]=r}else e[i[n]]=0;this.Lg.dispatch(11,i)},n._O=function(){if(!this.oO){this.oO=!0;var t=this.win.document.querySelector("style[amp-custom]");t&&(t.textContent=t.textContent.replace(/(-?[\d.]+)v(w|h|min|max)/gim,"calc($1 * var(--story-page-v$2))"))}},n.MO=function(){if(!this.win.document.querySelector("meta[name=theme-color]")){var t=this.win.document.createElement("meta"),i=this.element.querySelector("amp-story-page");t.name="theme-color",t.content=rt(this.win,this.element).getPropertyValue("--primary-color")||rt(this.win,i).getPropertyValue("background-color")||"#202125",this.win.document.head.appendChild(t)}},n.IO=function(t,i){this.NO(),this.zO(),this.element.appendChild(this.GP.build(t,i))},n.Ug=function(){var t=this;this.element.addEventListener(ji,(function(){t.dr()})),this.element.addEventListener(Fi,(function(){t.vr()})),this.Lg.subscribe(Gi.MUTED_STATE,(function(i){t.Hr(i),t.Hg.onVariableUpdate(te,i)}),!0),this.Lg.subscribe(Gi.MUTED_STATE,(function(i){t.qg.triggerEvent(i?"story-audio-muted":"story-audio-unmuted")}),!1),this.Lg.subscribe(Gi.ADVANCEMENT_MODE,(function(i){t.Hg.onVariableUpdate(ee,i)})),this.Lg.subscribe(Gi.CAN_SHOW_AUDIO_UI,(function(i){t.element.classList.toggle("i-amphtml-story-no-audio-ui",!i)}),!0),this.element.addEventListener(Vi,(function(i){t.getAmpDoc().isPreview()&&t.RO(),t.dS(Li(i).targetPageId,Li(i).direction),t.KP.hideAllNavigationHint()})),this.element.addEventListener(qi,(function(i){var e=Li(i),n=e.pageId,r=e.progress;if(n===t.WP.element.id){var o=hi(t.win,ui);(!t.WP.isAd()||o&&o!=ci)&&t.GP.updateProgress(n,r)}})),this.element.addEventListener(Yi,(function(){t.nE()})),this.element.addEventListener(Xi,(function(){t.jO()})),this.element.addEventListener(Ki,(function(){t.CO()})),this.BA.addOnTapNavigationListener((function(i){t.DO(i)})),this.element.addEventListener("ampstory:dispatchaction",(function(t){})),this.Lg.subscribe(Gi.ACTIONS_ALLOWLIST,(function(i){gi(t.element).setAllowlist(i)}),!0),this.Lg.subscribe(Gi.AD_STATE,(function(i){t.ME(i)})),this.Lg.subscribe(Gi.PAUSED_STATE,(function(i){t.RE(i)})),this.Lg.subscribe(Gi.UI_STATE,(function(i){t.gx(i)}),!0),this.Lg.subscribe(Gi.SUBSCRIPTIONS_PAGE_INDEX,(function(i){-1!==i&&(t.hO.resolve(),t.uO=i)}),!0),this.Lg.subscribe(Gi.SUBSCRIPTIONS_STATE,(function(i){1!==i&&(t.sO.resolve(),2===i&&t.LO())})),this.Lg.subscribe(Gi.SUBSCRIPTIONS_DIALOG_UI_STATE,(function(i){i||t.UO()})),this.win.document.addEventListener("keydown",(function(i){t.kf(i)}),!0),this.win.document.addEventListener("contextmenu",(function(i){0===t.Lg.get(Gi.UI_STATE)&&(t.YO(i.target)||i.preventDefault(),i.stopPropagation())})),this.getAmpDoc().onVisibilityChanged((function(){return t.Rf()})),this.win.addEventListener("hashchange",(function(){var i=mt(t.win.location.hash).page;if(i&&t.HO(i)){t.dS(i,hr);var e,n,r=t.win.location.href.replace(new RegExp("page=".concat(i,"&?")),"");(n=(e=r).length-1)>=0&&e.indexOf("#",n)==n&&(r=r.slice(0,-1)),t.win.history.replaceState(t.win.history&&pr(t.win.history)||{},t.win.document.title,r)}})),new this.win.MutationObserver((function(i){return t.VO(i)})).observe(this.win.document.body,{attributes:!0,attributeFilter:["class"]}),this.getViewport().onResize(Rt(this.win,(function(){return t.onResizeDebounced()}),300)),this.GO(),this.yh.onMessage("selectPage",(function(i){return t.BO(i)})),this.yh.onMessage("rewind",(function(){return t.FO()})),this.kE&&this.kE.startListening(),new wr(this.win,this.element)},n.VO=function(t){var i=this;t.forEach((function(t){var e=t.target;i.Lg.dispatch(20,e.classList.contains("amp-mode-keyboard-active"))}))},n.GO=function(){var t=this;if(!this.yh.hasCapability("swipe")){var i=this.element;yo.get(i,!0).onGesture(So,(function(i){var e=i.data,n=e.deltaX,r=e.deltaY;0===t.Lg.get(Gi.INTERACTIVE_COMPONENT_STATE).state&&t.Lg.get(Gi.SYSTEM_UI_IS_VISIBLE_STATE)&&t.Lg.get(Gi.CAN_SHOW_NAVIGATION_OVERLAY_HINT)?i.event&&i.event.defaultPrevented||!t.WO(n,r)||t.KP.showNavigationOverlay():i.event&&!1!==i.event.cancelable&&i.event.preventDefault()}))}},n.WO=function(t,i){return Math.abs(t)>=50||-1*i>=50},n.OO=function(){var t=this.win.document;X(t.documentElement,{overflow:"hidden"}),X(t.body,{overflow:"hidden"}),this.getViewport().resetTouchZoom(),this.getViewport().disableTouchZoom(),this.ZO()},n.ZO=function(){var t,i=this.win.screen;if(i&&this.XP.matches){var e=function(t){return Ft().warn(Oo,"Failed to lock screen orientation:",t.message)},n=null===(t=i.orientation)||void 0===t?void 0:t.lock;if(n)n("portrait").catch(e);else{var r=i.lockOrientation||i.mozLockOrientation||i.msLockOrientation||function(t){};try{r("portrait")}catch(t){e(t)}}}},n.layoutCallback=function(){return e.isBrowserSupported(this.win)||this.Ih.isBot()?this.XO():this.qO()},n.XO=function(){var t=this,i=this.yO(),e="1"!==this.yh.getParam("hideProgressBar");e||this.Lg.dispatch(Bi,!1),this.IO(i,e),this.MO();var n=Promise.all([this.$O(),this.getAmpDoc().whenFirstPreviewedOrVisible()]).then((function(){t.KO(),t.BP.forEach((function(i,e){i.setState(0),t.JO(i,e)})),t.QO(),t.Lg.get(Gi.CAN_SHOW_PAGINATION_BUTTONS)&&new po(t)})).then((function(){return li(t.win,"amp-story-subscriptions")&&null!==t.element.querySelector("amp-story-subscriptions")&&0===t.Lg.get(Gi.SUBSCRIPTIONS_STATE)&&t.Lg.dispatch(33,1),t.dS(t.yO(),hr)})).then((function(){if(no(t.win,"ampStoryAttachmentPageId")===t.WP.element.id){var i=t.WP.element.querySelector("amp-story-page-attachment, amp-story-page-outlink");i&&Ot(i).then((function(){return i.getImpl()})).then((function(t){return t.open(!1)}));var e=no(t.win,"ampStoryShoppingData");e&&t.Lg.dispatch(4,{activeProductData:e})}Me(jt(t.yh),t.Lg)&&new Sr(t.win,t.element).build()}));this.t_(8e3).then((function(){t.i_(),t.n_()})),this.r_();var r=this.element.querySelector("amp-story-page#".concat(O(i)));return this.getAmpDoc().hasBeenVisible()?n:Ot(r).then((function(){return r.build()}))},n.n_=function(){var t=this;this.element.hasAttribute("live-story")&&(this.tO=new so(this),this.tO.build(),this.Lg.dispatch(5,[{tagOrTarget:"AMP-LIVE-LIST",method:"update"}]),this.element.addEventListener("amp:dom-update",(function(){t.tO.update(),t.$O().then((function(){return t.o_()}))})))},n.yO=function(){var t=mt(this.win.location.hash).page;if(t&&this.HO(t))return t;var i,e=(i=no(this.win,eo)||[])[i.length-1];if(e&&this.HO(e))return e;var n=this.element.querySelector("amp-story-page");return n?n.id:null},n.HO=function(t){return this.BP.length>0?this.BP.some((function(i){return i.element.id===t})):!!this.element.querySelector("#".concat(O(t)))},n.t_=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=this.element.querySelector("amp-story-page#".concat(O(this.yO()))),e=Ot(i).then((function(){return i.signals().whenSignal(bt)}));return this.Xo.timeoutPromise(t,e).catch((function(){}))},n.i_=function(){var t=this;Zi(this.win,this.element,"ampstory:load",void 0,{bubbles:!0}),this.kE&&this.kE.send("storyContentLoaded",{}),this.qg.triggerEvent("story-content-loaded"),this.signals().signal("ini-load"),this.mutateElement((function(){t.element.classList.add("i-amphtml-story-loaded")}))},n.KO=function(){var t=this.element.querySelector("amp-consent");t&&(this.a_(),this.s_(t))},n.a_=function(){var t=this,i=this.getConsentPolicy()||"default",e=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";return function(t){return pi(t,"consentPolicyManager","amp-consent")}(t).then((function(t){return t?t.whenPolicyResolved(i):null}))}(this.element,i);e&&(this.Lg.dispatch(zi,!0),e.then((function(){t.Lg.dispatch(zi,!1)})))},n.s_=function(t){G(t,"amp-story-consent")||Wt().error(Oo,"amp-consent must have an amp-story-consent child");var i=["SCRIPT","AMP-STORY-CONSENT"],e=function(t){for(var e=[],n=t.firstElementChild;n;n=n.nextElementSibling)r=n,-1===i.indexOf(r.tagName)&&e.push(n);var r;return e}(t);0!==e.length&&(Wt().error(Oo,"amp-consent only allows tags: %s",i),e.forEach((function(i){return t.removeChild(i)})))},n.isLayoutSupported=function(t){return t==lt},n.$O=function(){var t=this,i=Array.prototype.map.call(this.element.querySelectorAll("amp-story-page"),(function(t){return t.getImpl()}));return Promise.all(i).then((function(i){t.BP=i,li(t.win,"amp-story-branching")&&t.Lg.dispatch(5,[{tagOrTarget:"AMP-STORY",method:"goToPage"}])}))},n.dr=function(t){var i=this;this.WP?this.WP.next(t):this.lO.promise.then((function(){return i.WP.next(t)}))},n.bO=function(){"v0"===this.yh.getParam("storyPlayer")&&yi(this.win).installExtensionForDoc(this.getAmpDoc(),"amp-viewer-integration")},n.jO=function(){if(this.yh.hasCapability("swipe")&&this.kE){var t=this.Lg.get(Gi.ADVANCEMENT_MODE);this.kE.send("selectDocument",{next:!0,advancementMode:t})}},n.vr=function(){var t=this;this.WP?this.WP.previous():this.lO.promise.then((function(){return t.WP.previous()}))},n.CO=function(){if(this.yh.hasCapability("swipe")&&this.kE){var t=this.Lg.get(Gi.ADVANCEMENT_MODE);this.kE.send("selectDocument",{previous:!0,advancementMode:t})}else this.Lg.get(Gi.CAN_SHOW_PREVIOUS_PAGE_HELP)&&this.KP.showFirstPageHintOverlay()},n.DO=function(t){this.Lg.dispatch(7,le),1===t?this.dr():2===t&&this.vr()},n.dS=function(t,i){var e,n=this,r=this.getPageById(t),a=this.getPageIndex(r);if(this.WP&&this.WP.element.id===t)return o();var s=this.Lg.get(Gi.SUBSCRIPTIONS_STATE);if(0!==s&&-1===this.uO)return this.e_(this.hO,t,i);if(a>=this.uO&&1===s)return this.e_(this.sO,t,i);if(a>this.uO&&3===s)return this.aO=t,this.u_(),this.dS(this.BP[this.uO].element.id,i);this.h_(t,a);var l=this.WP;this.WP=r,this.lO.resolve(),r.isAd()||this.c_(t,i),null===(e=this.iO)||void 0===e||e.update(r.element);var h=[function(){l&&l.element.removeAttribute("active"),n.Lg.get(Gi.PAUSED_STATE)?r.element.setAttribute("active",""):r.setState(1),n.l_()},function(){l&&(l.setState(0),n.getPageIndex(l)<a?Ne(l,Po):Ce(l,Po),l.isAd()&&n.Lg.dispatch(7,"manualAdvanceFromAd")),n.Lg.dispatch(16,r.isAd()),r.isAd()?Ne(n,wo):(Ce(n,wo),r.isAutoAdvance()||n.GP.updateProgress(t,n.BA.getProgress())),n.Lg.dispatch(6,{id:t,index:a}),l||n.m_()},function(){n.o_(!l),n.p_()}];return new Promise((function(t){!function i(){if(h.shift().call(n),!h.length)return t();n.win.requestAnimationFrame((function(){return i()}))}()}))},n.c_=function(t,i){var e,n,r,o,a=this.Lg.get(Gi.NAVIGATION_PATH);i===ur&&a.pop(),i===hr&&a[a.length-1]!==t&&a.push(t),this.Lg.dispatch(10,a),n=a,o=It(It({},pr(r=(e=this.win).history)||{}),{},f({},"ampStoryNavigationPath",n)),r.replaceState(o,""),function(t,i){var e,n=ro(t);n[oo(t)]=(f(e={},"state",i),f(e,"time",Date.now()),e),ao(t,n)}(e,o)},n.p_=function(){gi(this.element).trigger(this.WP.element,"active",null,3)},n.l_=function(){var t=this;(this.Ih.isSafari()||this.Ih.isIos())&&this.mutateElement((function(){$(t.element,!1),t.element.offsetHeight>=0&&$(t.element,!0)}))},n.UO=function(){this.eO&&clearTimeout(this.eO),this.eO=null,this.aO&&2===this.Lg.get(Gi.SUBSCRIPTIONS_STATE)&&this.dS(this.aO,hr),this.aO=null},n.e_=function(t,i,e){var n=this;return t.promise.then((function(){return n.dS(i,e)}))},n.u_=function(){this.Lg.dispatch(32,!0)},n.LO=function(){this.Lg.dispatch(32,!1)},n.h_=function(t,i){var e=this,n=this.Lg.get(Gi.SUBSCRIPTIONS_DIALOG_UI_STATE);i!==this.uO||n||3!==this.Lg.get(Gi.SUBSCRIPTIONS_STATE)||(this.eO=setTimeout((function(){e.aO=t,e.u_(),e.eO=null}),500)),i<this.uO&&n&&this.LO()},n.kf=function(t){if(!M(t.target,"amp-story-interactive-slider")){this.Lg.dispatch(7,le);var i=this.Lg.get(Gi.RTL_STATE);switch(t.key){case"ArrowLeft":i?this.dr():this.vr();break;case"ArrowRight":i?this.vr():this.dr()}}},n.onResizeDebounced=function(){this.rO=this.xO(),this.Lg.dispatch(35,this.rO);var t=this.f_(),i=this.wO();this.d_(t,i)},n.mO=function(t){var i=t.height;0!==i&&X(this.win.document.documentElement,{"--story-dvh":J(i/100)})},n.d_=function(t,i){var e=this;this.mutateElement((function(){e.element.setAttribute("orientation",i&&t?"landscape":"portrait")}))},n.Rf=function(){var t=this.getAmpDoc().getVisibilityState(),i=t===At,e="visible"===t;i&&this.Lg.dispatch(Bi,!1),e&&this.Lg.dispatch(Bi,!0),i||e?this.OT():this.Qp()},n.ME=function(t){this.Lg.get(Gi.MUTED_STATE)||(t?this.SO():this.PO())},n.gx=function(t){var i,e=this;switch(null===(i=this.iO)||void 0===i||i.detach(),this.iO=null,t){case 0:this.Gc.mutate((function(){e.win.document.documentElement.setAttribute("i-amphtml-story-mobile",""),e.element.removeAttribute("desktop"),e.element.classList.remove("i-amphtml-story-desktop-fullbleed"),e.element.classList.remove("i-amphtml-story-desktop-one-panel")}));break;case 4:this.iO||(this.iO=new to(this.win,this.element),this.iO.attach(),this.WP&&this.iO.update(this.WP.element)),this.Gc.mutate((function(){e._O(),e.win.document.documentElement.removeAttribute("i-amphtml-story-mobile"),e.element.removeAttribute("desktop"),e.element.classList.add("i-amphtml-story-desktop-one-panel"),e.element.classList.remove("i-amphtml-story-desktop-fullbleed")}));break;case 2:this.Gc.mutate((function(){e.win.document.documentElement.removeAttribute("i-amphtml-story-mobile"),e.element.setAttribute("desktop",""),e.element.classList.add("i-amphtml-story-desktop-fullbleed"),e.element.classList.remove("i-amphtml-story-desktop-one-panel")}));break;case 3:var n=C(this.element,"amp-story-page amp-story-page-attachment");this.Gc.mutate((function(){e._O(),e.element.setAttribute("i-amphtml-vertical",""),e.win.document.documentElement.classList.add("i-amphtml-story-vertical"),X(e.win.document.body,{height:"auto"}),e.win.document.documentElement.removeAttribute("i-amphtml-story-mobile"),e.element.removeAttribute("desktop"),e.element.classList.remove("i-amphtml-story-desktop-fullbleed");for(var t=0;t<n.length;t++)e.element.insertBefore(n[t],n[t].getAttribute("href")?n[t].parentElement.nextElementSibling:null)})),this.signals().whenSignal(bt).then((function(){e.Gc.mutate((function(){e.BP.forEach((function(t){return t.element.setAttribute("active","")}))}))}))}},n.xO=function(){return 0===this.rO&&this.v_()?0:this.Ih.isBot()?3:this.y_()?this.wO()?2:4:0},n.v_=function(){var t,i=this.Ih.isAndroid(),e=["INPUT","TEXTAREA"].includes(null===(t=this.win.document.activeElement)||void 0===t?void 0:t.tagName);return i&&e},n.y_=function(){return this.ZP.matches&&!this.Ih.isBot()},n.f_=function(){return this.qP.matches},n.dO=function(){return this.element.hasAttribute("standalone")},n.wO=function(){return this.element.hasAttribute("supports-landscape")},n.RE=function(t){if(this.WP){var i=t?2:1;this.WP.setState(i)}},n.qO=function(){var t,i,e=this;if(this.TO(),!this.getFallback()){var n=(t=this.element,Qe(i=Ct("div",{class:"i-amphtml-story-unsupported-browser-overlay"},Ct("div",{class:"i-amphtml-overlay-container"},Ct("div",{class:"i-amphtml-gear-icon"}),Ct("div",{"i-amphtml-i18n-text-content":"21"}),Ct("button",{class:"i-amphtml-continue-button",onClick:function(){e.XO().then((function(){e.EO(),e.mutateElement((function(){wt(n)}))}))},"i-amphtml-i18n-text-content":"27"}))),t),Ie(Ct("div",null),i,'.i-amphtml-story-unsupported-browser-overlay{position:absolute!important;z-index:20000001!important;font-family:Roboto,sans-serif;font-weight:700!important;line-height:1.5;padding:32px;background-color:#000!important;top:0!important;left:0!important;right:0!important;bottom:0!important;-ms-flex-align:center!important;align-items:center!important;-ms-flex-pack:center!important;justify-content:center!important;text-align:center!important;display:-ms-flexbox!important;display:flex!important;color:#fff!important}.i-amphtml-gear-icon{background-repeat:no-repeat!important;background-position:50%!important;border-radius:50%!important;background-color:#fff!important;padding:16px!important;height:24px!important;width:24px!important;margin:16px auto!important;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 20 20"><path fill="none" d="M0 0h20v20H0z"/><path d="M16 10.8V9.2L17.5 8c.2-.1.2-.3.1-.5L16 4.7c0-.2-.3-.2-.5-.2l-2 .8-1.3-.7-.3-2.2c0-.2-.2-.3-.4-.3H8.4c-.2 0-.4.1-.4.3l-.3 2.2a6 6 0 0 0-1.3.7l-2-.8c-.2 0-.4 0-.5.2L2.3 7.4v.5l1.8 1.3a5 5 0 0 0 0 1.6L2.4 12c-.2.1-.2.3-.1.5l1.6 2.8c0 .2.3.2.5.2l2-.8 1.3.7.3 2.2c0 .2.2.3.4.3h3.2c.2 0 .4-.1.4-.3l.3-2.2a6 6 0 0 0 1.3-.7l2 .8c.2 0 .4 0 .5-.2l1.6-2.8V12zM10 13c-1.6 0-3-1.4-3-3s1.4-3 3-3 3 1.4 3 3-1.4 3-3 3"/></svg>\')!important}.i-amphtml-continue-button{border-radius:20px;font-family:Roboto,sans-serif;color:#000;font-weight:400!important;font-size:16px;background:#fff;padding:10px 20px;border:2px solid #aaa;text-decoration:none;display:block;margin-top:25px;margin-right:auto;margin-left:auto;-ms-flex-align:center!important;align-items:center!important;-ms-flex-pack:center!important;justify-content:center!important;text-align:center!important}\n/*# sourceURL=/extensions/amp-story/1.0/amp-story-unsupported-browser-layer.css*/'));return this.mutateElement((function(){e.element.appendChild(n)}))}this.toggleFallback(!0)},n.g_=function(){var t=this,i=this.b_(0,{},this.WP.element.id),e=[];return Object.keys(i).forEach((function(n){var r=i[n];if(n===t.BP[0].element.id&&t.WP===t.BP[t.BP.length-1]&&t.BP.length>1&&!t.yh.hasCapability("swipe")&&(r=1),e[r]||(e[r]=[]),li(t.win,"amp-story-branching")){var o=t.Lg.get(Gi.NAVIGATION_PATH),a=o.indexOf(t.WP.element.id),s=o[a-1];a>0&&n===t.WP.element.id&&(e[1]||(e[1]=[]),e[1].push(s)),n!==s&&e[r].push(n)}else e[r].push(n)})),e},n.b_=function(t,i,e){var n=this;return void 0!==i[e]&&i[e]<=t||(i[e]=t,this.getPageById(e).getAdjacentPageIds().forEach((function(e){void 0!==i[e]&&i[e]<=t||(i=n.b_(t+1,i,e))}))),i},n.o_=function(){var t=this,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.Ih.isBot())this.BP.forEach((function(t){t.setDistance(0)}));else{var e=this.g_(),n=function(){e.forEach((function(i,e){i.forEach((function(i){t.getPageById(i).setDistance(e)}))}))};this.mutateElement((function(){if(!i)return n();var r=jt(e[0][0]);new Promise((function(i,e){var n=t.getPageById(r);n.setDistance(0),n.signals().whenSignal(bt).then(i),t.Lg.subscribe(Gi.CURRENT_PAGE_ID,e)})).then((function(){return n()}),(function(){}))}))}},n.m_=function(){var t=this,i=xn(this.element);i&&this.WP.element.signals().whenSignal(bt).then((function(){return t.JP.register(i),t.JP.preload(i)})).then((function(){t.$P=function(t){for(var i=t.firstElementChild;i;i=i.nextElementSibling)if("audio"===i.tagName.toLowerCase())return i;return null}(t.element)}))},n.r_=function(){var t=this;this.yh.hasCapability("education")&&(this.mutateElement((function(){t.element.appendChild(Ct("amp-story-education",null))})),yi(this.win).installExtensionForDoc(this.getAmpDoc(),"amp-story-education"))},n.getPageIndexById=function(t){var i=v(this.BP,(function(i){return i.element.id===t}));return i<0&&Wt().error(Oo,'Story refers to page "%s", but no such page exists.',t),i},n.getPageById=function(t){var i=this.getPageIndexById(t);return jt(this.BP[i])},n.getPageIndex=function(t){return v(this.BP,(function(i){return i===t}))},n.x_=function(t){var i=t;t.ownerDocument!==this.win.document&&(i=t.ownerDocument.defaultView.frameElement);var e=v(this.BP,(function(t){return!!R(i,(function(i){return i===t.element}))}));return this.BP[e]||null},n.getElementDistance=function(t){var i=this.x_(t);return i?i.getDistance():-1},n.getMaxMediaElementCounts=function(){var t,i=this.element.querySelectorAll("amp-audio, [background-audio]").length,e=this.element.querySelectorAll("amp-video").length;return this.element.hasAttribute("background-audio")&&i++,f(t={},Yn,Math.min(i+2,ko.audio)),f(t,Xn,Math.min(e+2,ko.video)),t},n.getElement=function(){return this.element},n.Hr=function(t){t?this.w_():this.k_(),t?this.element.setAttribute(To,""):this.element.removeAttribute(To)},n.w_=function(){this.SO(),this.WP&&this.WP.muteAllMedia()},n.SO=function(){this.$P&&this.JP.pause(this.$P)},n.k_=function(){var t=this,i=function(){t.PO(),t.WP&&t.WP.unmuteAllMedia()};this.JP.blessAll().then(i,i)},n.PO=function(){this.$P&&(this.JP.unmute(this.$P),this.JP.play(this.$P))},n.NO=function(){var t=this.element.hasAttribute("background-audio");this.Lg.dispatch(30,t)},n.zO=function(){var t=!!N(this.element,"amp-story-grid-layer amp-audio, amp-story-grid-layer amp-video, amp-story-page[background-audio], amp-story-page[auto-advance-after]"),i=this.element.hasAttribute("background-audio");this.Lg.dispatch(31,t||i)},n.FO=function(){var t=this;this.signals().whenSignal(bt).then((function(){return t.nE()}))},n.BO=function(t){t&&(this.Lg.dispatch(7,"viewerSelectPage"),t.next?this.dr():t.previous?this.vr():t.delta?this.A_(t.delta):t.id&&this.dS(t.id,this.getPageIndexById(t.id)>this.getPageIndex(this.WP)?hr:ur))},n.A_=function(t){var i=this.Lg.get(Gi.CURRENT_PAGE_INDEX),e=t>0?Math.min(this.BP.length-1,i+t):Math.max(0,i+t),n=this.BP[e];if(this.HO(n&&n.element.id)&&e!==i){var r=e>i?hr:ur;this.dS(n.element.id,r)}},n.QO=function(){var t=this,i=no(this.win,eo);i&&i.every((function(i){return t.HO(i)}))||(i=[]),this.Lg.dispatch(10,i)},n.nE=function(){var t=this;this.Lg.dispatch(10,[]);var i=this.dS(this.BP[0].element.id,hr);1===this.BP.length&&(this.BP[0].setState(0),this.BP[0].setState(1)),i.then((function(){t.BP.forEach((function(t){return Ce(t,Po)}))}))},n.JO=function(t,i){this.mutateElement((function(){var e=t.element.id;C(t.element,"amp-story-cta-layer a").forEach((function(t){t.setAttribute("data-vars-story-page-id",e),t.setAttribute("data-vars-story-page-index",i)}))}))},n.addPage=function(t){this.BP.push(t),t.isAd()&&this.FP.push(t)},n.insertPage=function(t,i){var e=this.getPageById(i),n=e.element;if(e.isAd()&&!this.Lg.get(Gi.CAN_INSERT_AUTOMATIC_AD))return Ft().expectedError(Oo,"Inserting ads automatically is disallowed."),!1;var r=this.getPageById(t),o=r.element,a=this.getNextPage(r);if(!a)return!1;var s=li(this.win,"amp-story-branching")?"advance-to":"i-amphtml-advance-to";o.setAttribute(s,i),o.setAttribute(xo,i),n.setAttribute(_o,t);var l=a.element,h=l.id;h!==i&&(n.setAttribute(s,h),n.setAttribute(xo,h),l.setAttribute(_o,i));var u=this.getPageIndexById(i);return-1!=u&&this.BP.splice(u,1),this.BP.splice(this.getPageIndexById(t)+1,0,e),this.Lg.dispatch(11,this.BP.map((function(t){return t.element.id}))),!0},n.getNextPage=function(t){var i=t.getNextPageId(!0);return i?this.getPageById(i):null},e.isBrowserSupported=function(t){return Boolean(t.CSS&&t.CSS.supports&&t.CSS.supports("display","grid")&&t.CSS.supports("color","var(--test)"))},n.AO=function(){if(!zt(this.win)||"inspect"===this.element.getAttribute("mode"))return!1;this.element.setAttribute("mode","inspect");var t=Ct("amp-story-dev-tools",null);return this.win.document.body.appendChild(t),this.element.setAttribute("hide",""),yi(this.win).installExtensionForDoc(this.getAmpDoc(),"amp-story-dev-tools"),!0},n.YO=function(t){return!!R(t,(function(t){return M(t,"a.i-amphtml-story-page-open-attachment[href]")}),this.element)},n.fO=function(){var t=Je(this.element).getLanguageCodesForElement(this.element);this.T_(t[0])||this.S_(t)},n.T_=function(t){var i=this.win.document.querySelector('script[amp-localization="amp-story"]');if((null==i?void 0:i.getAttribute("i-amphtml-version"))!==Ut(this.win).rtvVersion)return!1;var e=function(t){try{return Et(t)}catch(t){return null}}(i.textContent);return!!e&&(Je(this.element).registerLocalizedStringBundles(f({},t,e)),!0)},n.S_=function(t){var i,e,n,r,o=Je(this.element),a=function(t){for(var i=0;i<t.length;i++)for(var e=t[i].toLowerCase(),n=0;n<$e.length;n++)if($e[n].toLowerCase()===e)return $e[n];return"en"}(t),s=(i=this.win,this.win.location,e="amp-story.".concat(a,".json"),n=mi.cdn,r=Ut(i).rtvVersion,"".concat(n,"/rtv/").concat(r,"/v0/").concat(e));Pi(this.win).fetchJson(s,{prerenderSafe:!0}).then((function(t){return t.json()})).then((function(t){return o.registerLocalizedStringBundles(f({},a,t))})).catch((function(t){V(Oo,t,"Bundle not found for language "+a)}))},n.pO=function(){var t,i,e=parseInt(null===(t=this.yh)||void 0===t?void 0:t.getParam("minPreviewPages"),10)||1,n=parseInt(null===(i=this.yh)||void 0===i?void 0:i.getParam("pctPagesToPreview"),10)||30,r=this.element.querySelectorAll("amp-story-page").length,o=Math.ceil(n/100*r);return(o=mr(o=Math.max(e,o),1,r))-1},n.RO=function(){var t;this.BP.indexOf(this.WP)>=this.cO&&(null===(t=this.kE)||void 0===t||t.send("storyPreviewFinished",{}))},e}(t.BaseElement);t.registerElement("amp-story",Lo,'.i-amphtml-story-background{background-color:transparent}amp-story[standalone]{background-color:#000}@media (min-aspect-ratio:31/40){:root:not([data-story-supports-landscape]):not([i-amphtml-story-mobile]){--i-amphtml-story-desktop-one-panel-ratio:69/116;--i-amphtml-story-desktop-one-panel-responsive-margin:max(74px,8.25vh);--i-amphtml-story-desktop-one-panel-height:calc(var(--story-100dvh) - var(--i-amphtml-story-desktop-one-panel-responsive-margin)*2);--i-amphtml-story-desktop-one-panel-width:calc(var(--i-amphtml-story-desktop-one-panel-height)*var(--i-amphtml-story-desktop-one-panel-ratio));--i-amphtml-story-desktop-one-panel-border-radius:20px;--story-page-vw:calc(var(--i-amphtml-story-desktop-one-panel-width)*0.01)!important;--story-page-vh:calc(var(--i-amphtml-story-desktop-one-panel-height)*0.01)!important}@media(max-height:756px){:root:not([data-story-supports-landscape]):not([i-amphtml-story-mobile]){--i-amphtml-story-desktop-one-panel-responsive-margin:0px;--i-amphtml-story-desktop-one-panel-width:calc(var(--story-100dvh)*var(--i-amphtml-story-desktop-one-panel-ratio));--i-amphtml-story-desktop-one-panel-border-radius:0}}@media(max-height:538px){:root:not([data-story-supports-landscape]):not([i-amphtml-story-mobile]){--i-amphtml-story-desktop-one-panel-ratio:36/53}}:root:not([i-amphtml-story-mobile]) amp-story:not([supports-landscape]) amp-story-page{width:var(--i-amphtml-story-desktop-one-panel-width)!important;height:var(--i-amphtml-story-desktop-one-panel-height)!important;border-radius:var(--i-amphtml-story-desktop-one-panel-border-radius)!important;margin:auto!important}}[orientation=landscape] [position=landscape-half-left]{width:50%!important;left:0!important;right:auto!important}[orientation=landscape] [position=landscape-half-right]{width:50%!important;left:auto!important;right:0!important}amp-story{font-display:optional}amp-story-grid-layer:not([aspect-ratio]):not([preset]){overflow:hidden}amp-story-grid-layer *{box-sizing:border-box;margin:0}.i-amphtml-story-grid-template-with-full-bleed-animation amp-img img,[template=fill] amp-anim img,[template=fill] amp-img img,[template=fill] amp-video video{-o-object-fit:cover;object-fit:cover}[template=vertical]{-ms-flex-line-pack:start;align-content:start;grid-gap:16px;-ms-flex-pack:stretch;justify-content:stretch;justify-items:start}[template=vertical]>*{width:100%}[template=horizontal]{-ms-flex-line-pack:stretch;align-content:stretch;-ms-flex-align:start;align-items:start;grid-gap:16px;-ms-flex-pack:start;justify-content:start}amp-story-grid-layer{padding:68px 32px 32px}amp-story-grid-layer.i-amphtml-story-has-page-attachment.i-amphtml-story-has-interactive{padding-bottom:104px}amp-story-grid-layer.i-amphtml-story-has-CTA-layer.i-amphtml-story-has-interactive{padding-bottom:20%}html.i-amphtml-story-vertical{--story-page-vh:1.78vw!important}amp-story[standalone][i-amphtml-vertical]{height:auto!important;contain:initial!important}[i-amphtml-vertical] *{transition-delay:0s!important;transition-duration:0s!important}[i-amphtml-vertical] amp-story-page{position:relative!important;height:178vw!important;contain:initial!important;overflow:visible!important}amp-story[i-amphtml-vertical].i-amphtml-element amp-story-page.i-amphtml-element{transform:none!important}[i-amphtml-vertical] .i-amphtml-story-draggable-drawer-container[hidden] .i-amphtml-story-draggable-drawer-content{opacity:1!important}[i-amphtml-vertical] .i-amphtml-story-draggable-drawer-container[hidden] .i-amphtml-story-draggable-drawer-content>*{display:block!important}[i-amphtml-vertical] amp-story-page-attachment{display:block!important;position:relative!important;transform:none!important}[i-amphtml-vertical] .i-amphtml-story-page-attachment-remote-title{overflow:visible!important}[i-amphtml-vertical] .amp-story-draggable-drawer-root{visibility:visible!important}[i-amphtml-vertical] .i-amphtml-story-page-description{background:#fff!important;display:block!important;padding:32px!important;width:auto!important;z-index:9999999!important}[i-amphtml-vertical] .i-amphtml-story-page-description>*{background:#fff!important;color:#000!important;font-size:1rem!important}[i-amphtml-vertical] .i-amphtml-story-page-description>h2{font-size:1.5rem!important}.i-amphtml-story-button-container{cursor:pointer!important;position:absolute!important;width:30px!important;top:0!important;bottom:0!important;height:calc(var(--story-100dvh) - 150px)!important;margin:auto 0!important;background:none!important;transition:opacity 150ms linear,visibility 150ms linear!important;outline:none!important;z-index:100002!important}amp-story:not([desktop]) .i-amphtml-story-button-container{pointer-events:none!important}.i-amphtml-story-button-container.next-container>.i-amphtml-story-button-move,.next-container{left:auto!important;right:0!important}[dir=rtl] .i-amphtml-story-button-container.next-container>.i-amphtml-story-button-move,[dir=rtl] .next-container{left:0!important;right:auto!important}.i-amphtml-story-desktop-fullbleed .i-amphtml-story-button-container{pointer-events:none!important}[dir=rtl] amp-story:not([desktop]) .i-amphtml-story-button-move,amp-story:not([desktop]) .i-amphtml-story-button-move{width:100%!important;height:100%!important;border:none!important;padding:0!important;pointer-events:none!important;background-repeat:no-repeat!important;background-color:transparent!important;background-position:50%!important;filter:invert(100%) drop-shadow(0 0 3px #000b)!important}body:not(.amp-mode-keyboard-active) amp-story:not([desktop]):not(.i-amphtml-story-desktop-one-panel) .i-amphtml-story-button-move{background:none!important}[desktop] .i-amphtml-story-button-move{display:-ms-flexbox!important;display:flex!important;position:fixed!important;top:0!important;bottom:0!important;margin:auto 12px!important;width:54px!important;height:54px!important;border:0!important;background-repeat:no-repeat!important;-ms-flex-pack:center!important;justify-content:center!important;-ms-flex-align:center!important;align-items:center!important;transition:opacity 150ms linear!important;cursor:pointer!important;pointer-events:all!important}amp-story.i-amphtml-story-desktop-one-panel .i-amphtml-story-button-container{height:48px!important;width:48px!important;transform:translateY(-50%)!important;top:50%!important;bottom:auto!important;pointer-events:all!important;--i-amphtml-story-desktop-one-panel-button-margin:max(10px,calc(50vw - 72px - var(--i-amphtml-story-desktop-one-panel-width)/2))}amp-story.i-amphtml-story-desktop-one-panel .i-amphtml-story-button-container.prev-container{margin-inline-start:var(--i-amphtml-story-desktop-one-panel-button-margin)!important}amp-story.i-amphtml-story-desktop-one-panel .i-amphtml-story-button-container.next-container{margin-inline-end:var(--i-amphtml-story-desktop-one-panel-button-margin)!important}[dir=rtl] amp-story.i-amphtml-story-desktop-one-panel .i-amphtml-story-button-move,amp-story.i-amphtml-story-desktop-one-panel .i-amphtml-story-button-move{filter:none!important;background-color:#fff!important;border-radius:50%!important}amp-story.i-amphtml-story-desktop-one-panel .i-amphtml-story-button-hidden{visibility:visible!important;opacity:.1!important;pointer-events:none!important}.i-amphtml-story-desktop-fullbleed .i-amphtml-story-button-move{background-size:100%!important;background-color:#fff2!important;border-radius:50%!important;filter:invert(1)!important}.i-amphtml-story-fwd-next>.i-amphtml-story-button-move,.prev-container>.i-amphtml-story-button-move,[dir=rtl] .i-amphtml-story-fwd-next>.i-amphtml-story-button-move,[dir=rtl] .prev-container>.i-amphtml-story-button-move{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none"><path stroke="%23000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.4" d="m21.52 16.22 7.75 7.75m-7.75 7.78L29.27 24"/></svg>\')!important}.prev-container>.i-amphtml-story-button-move,[dir=rtl] .i-amphtml-story-fwd-next>.i-amphtml-story-button-move{left:0!important;right:auto!important;transform:rotate(180deg)!important}[dir=rtl] .prev-container>.i-amphtml-story-button-move{transform:none!important}.i-amphtml-story-fwd-next>.i-amphtml-story-button-move,[dir=rtl] .prev-container>.i-amphtml-story-button-move{left:auto!important;right:0!important}.i-amphtml-story-fwd-replay{pointer-events:none!important}.i-amphtml-story-fwd-replay>.i-amphtml-story-button-move{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none"><path stroke="%23000" stroke-linecap="round" stroke-width="2.4" d="M16.15 19.4a9.1 9.1 0 1 1-1.29 3.95M15.6 15.1v4.61m4.4 0h-4.4"/></svg>\')!important}.i-amphtml-story-button-hidden{visibility:hidden!important;opacity:0!important;pointer-events:none!important}:root{--story-page-vw:1vw!important;--story-page-vh:var(--story-dvh,1vh)!important;--story-page-vmin:min(var(--story-page-vw),var(--story-page-vh))!important;--story-page-vmax:max(var(--story-page-vw),var(--story-page-vh))!important;--story-100dvh:calc(var(--story-dvh, 1vh)*100)!important;--story-font-size:calc(var(--story-page-vh, 8px)*2.5)!important;font-size:var(--story-font-size)}@supports (height:1dvh){:root{--story-dvh:1dvh!important}}body{animation:none!important;-webkit-animation:none!important;-moz-animation:none!important;-ms-animation:none!important}amp-story,amp-story-cta-layer,amp-story-page{contain:strict!important;overflow:hidden!important;-webkit-touch-callout:none!important}amp-story-grid-layer{contain:size layout!important;-webkit-touch-callout:none!important}amp-story amp-consent{position:absolute!important;top:0!important;left:0!important;height:100%!important;width:100%!important;background:none!important;z-index:initial!important}@media (prefers-reduced-motion:reduce){*,:after,:before{animation-duration:0s!important;transition-duration:0s!important}}amp-consent.amp-hidden{display:none!important}.i-amphtml-story-system-reset,.i-amphtml-story-system-reset *{border:none!important;box-sizing:initial!important;color:initial!important;font-family:Roboto,sans-serif!important;font-size:initial!important;font-weight:initial!important;height:auto!important;margin:0!important;padding:0!important;text-align:start!important;text-shadow:none!important;width:auto!important}amp-story{position:relative!important;text-rendering:geometricPrecision!important;-webkit-user-select:none!important;-ms-user-select:none!important;user-select:none!important;-ms-touch-action:manipulation!important;touch-action:manipulation!important}amp-story,html:root,html:root body{height:100%!important;width:100%!important}html:root,html:root body{font-size:calc(var(--story-page-vh, 8px)*2.5);margin:0!important;padding:0!important;border:0!important;cursor:auto!important;-webkit-tap-highlight-color:rgba(0,0,0,0)!important}h4,p{font-size:1rem}h1{font-size:2rem}h2{font-size:1.5rem}h3{font-size:1.17rem}h5{font-size:0.83rem}h6{font-size:0.67rem}html:root #i-amphtml-wrapper body{border-top:none!important;overflow:hidden!important}amp-story[standalone]{-ms-flex-item-align:center!important;align-self:center!important;box-shadow:2px 2px 20px rgba(0,0,0,.5)!important;height:100%!important;justify-self:center!important;max-height:initial!important;max-width:initial!important;min-height:initial!important;min-width:initial!important;visibility:visible!important}amp-story[standalone].amp-notbuilt{min-height:1px!important}amp-story[standalone]:-ms-fullscreen{height:100vh!important;max-height:none!important;max-width:none!important}amp-story[standalone]:fullscreen{height:100vh!important;max-height:none!important;max-width:none!important}amp-story .amp-video-eq,amp-story[hide]{display:none!important}amp-story-page{bottom:0!important;height:auto!important;left:0!important;position:absolute!important;right:0!important;top:0!important;opacity:1!important;-ms-touch-action:none!important;touch-action:none!important;transition:none!important;z-index:0!important}amp-story-page[active]{z-index:1!important}amp-story-page:not(:first-of-type):not([distance]):not([active]),amp-story-page[distance]:not([active]){transform:translateY(1000vh)!important}amp-story-page[active],amp-story-page[distance="0"][distance],amp-story-page[distance="1"][distance]{transform:translateY(0)!important}amp-story-page[distance="2"][distance],amp-story.i-amphtml-experiment-story-load-inactive-outside-viewport:not([desktop]) amp-story-page[distance="1"]:not(.i-amphtml-story-page-loaded):not(.i-amphtml-visited){transform:translateY(var(--story-100dvh))!important}amp-story-page [data-text-background-color]{border-radius:3px!important;line-height:1.5em!important;padding:2px 4px!important;text-indent:0!important;box-decoration-break:clone!important;-webkit-box-decoration-break:clone!important}amp-story-cta-layer{display:block!important;top:80%!important;margin:0!important;z-index:3!important}amp-story-cta-layer,amp-story-grid-layer{position:absolute!important;right:0!important;bottom:0!important;left:0!important}amp-story-grid-layer{box-sizing:border-box!important;display:grid!important;top:0!important;z-index:2!important;pointer-events:none!important}:root:not(.i-amphtml-story-vertical) amp-story{position:absolute!important;top:0;left:0}amp-story-grid-layer[anchor*=left]{margin-left:0!important}amp-story-grid-layer[anchor*=top]{margin-top:0!important}amp-story-grid-layer[anchor*=bottom]{margin-bottom:0!important}amp-story-grid-layer[anchor*=right]{margin-right:0!important;margin-left:auto!important}amp-story-grid-layer amp-video:after{content:""!important;position:absolute!important;height:100%!important;width:100%!important;top:0!important;left:0!important}[template=fill] amp-img img,[template=fill] amp-video video{position:absolute!important}amp-story-grid-layer amp-img img{pointer-events:none!important}amp-story-page[active]:not(.i-amphtml-layout) amp-video.i-amphtml-poolbound:not(.i-amphtml-layout){display:none!important}amp-story-grid-layer a,amp-story-grid-layer amp-ad,amp-story-grid-layer amp-twitter{pointer-events:auto!important}amp-story-grid-layer a *{pointer-events:none!important}amp-story-grid-layer .i-amphtml-embedded-component:after{content:""!important;position:absolute!important;height:100%!important;width:100%!important;top:0!important;left:0!important}.i-amphtml-story-grid-template-with-full-bleed-animation{position:absolute!important;display:block!important;padding:0!important}[template=fill]:not(.i-amphtml-story-grid-template-with-full-bleed-animation)>*{bottom:0!important;height:auto!important;left:0!important;position:absolute!important;right:0!important;top:0!important;width:auto!important}[template=vertical]{grid-auto-flow:row!important;grid-template-columns:100%!important}[template=horizontal]{grid-auto-flow:column!important;grid-template-rows:100%!important}[template=thirds]{height:100%!important;grid-template-rows:33% 33% 33%!important;grid-template-areas:"upper-third" "middle-third" "lower-third"!important}[aspect-ratio],[preset]{margin:auto;width:var(--i-amphtml-story-layer-width,100%);height:var(--i-amphtml-story-layer-height,100%);font-size:calc(var(--i-amphtml-story-layer-height)/10);margin-left:calc((var(--story-page-vw, 1%)*100 - var(--i-amphtml-story-layer-width, 100%))*0.5);--i-amphtml-aspect-ratio-float:calc(var(--aspect-ratio))!important;--i-amphtml-story-page-width:calc(var(--story-page-vw, 1vw)*100)!important;--i-amphtml-story-page-height:calc(var(--story-page-vh, 1vh)*100)!important;--i-amphtml-story-unscaled-width:min(var(--i-amphtml-story-page-width),calc(var(--i-amphtml-story-page-height)*var(--i-amphtml-aspect-ratio-float)))!important;--i-amphtml-story-unscaled-height:min(var(--i-amphtml-story-page-height),calc(var(--i-amphtml-story-page-width)/var(--i-amphtml-aspect-ratio-float)))!important;--i-amphtml-story-layer-width:calc(var(--i-amphtml-story-unscaled-width)*var(--scaling-factor, 1))!important;--i-amphtml-story-layer-height:calc(var(--i-amphtml-story-unscaled-height)*var(--scaling-factor, 1))!important}[preset="2021-background"],[preset="2021-foreground"]{--aspect-ratio:69/116!important}[preset="2021-background"]{--scaling-factor:1.142!important}.i-amphtml-story-toast{position:absolute!important;bottom:0!important;left:0!important;right:0!important;display:inline-block!important;padding:1.16em 1.33em!important;line-height:1.33!important;color:#fff!important;background:#212121!important;animation:toast 2.2s!important;animation-fill-mode:both!important;font-family:Roboto,sans-serif!important;font-weight:400!important;font-size:12px!important;max-width:640px!important;z-index:100004!important}@media (min-width:640px){.i-amphtml-story-toast{right:auto!important;font-size:14px!important;margin:0 auto 1.16em 1.16em!important;border-radius:6px}}@keyframes toast{0%{transform:translateY(100px);easing:cubic-bezier(0,0,0.2,1)}8%{transform:translateY(0)}92%{transform:translateY(0);easing:cubic-bezier(0.4,0,1,1)}to{transform:translateY(100px)}}.i-amphtml-story-copy-successful{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="%23fff"><path fill="none" d="M0 0h24v24H0z"/><path d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20m-2 15-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8z"/></svg>\')!important;background-repeat:no-repeat!important;background-size:16px 16px!important;padding-left:24px!important;color:#fff!important;display:-ms-flexbox!important;display:flex!important}.i-amphtml-story-copy-url{-ms-flex:1!important;flex:1!important;color:hsla(0,0%,100%,.5)!important;margin-left:40px!important;text-overflow:ellipsis!important;overflow:hidden!important;white-space:nowrap!important}.i-amphtml-story-spinner,amp-story .amp-video-eq{right:12px!important;bottom:12px!important}[dir=rtl] .i-amphtml-story-spinner,[dir=rtl] amp-story .amp-video-eq{left:12px!important;right:auto!important}.i-amphtml-story-spinner{display:inline-block!important;position:absolute!important;width:24px!important;height:24px!important;z-index:10!important}.i-amphtml-story-spinner-container{width:100%!important;height:100%!important;direction:ltr!important}.i-amphtml-story-spinner[active] .i-amphtml-story-spinner-container{animation:container-rotate 1294ms linear infinite!important}@keyframes container-rotate{to{transform:rotate(360deg)}}.i-amphtml-story-spinner-layer{position:absolute!important;width:100%!important;height:100%!important;opacity:0!important;white-space:nowrap!important;color:#fff!important}.i-amphtml-story-spinner[active] .i-amphtml-story-spinner-layer{animation-name:fill-unfill-rotate!important;animation-duration:4400ms!important;animation-timing-function:cubic-bezier(0.4,0,0.2,1)!important;animation-iteration-count:infinite!important;opacity:1!important;filter:drop-shadow(0px 1px 3px rgba(0,0,0,0.25))!important}@keyframes fill-unfill-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}to{transform:rotate(1080deg)}}.i-amphtml-story-spinner-circle-clipper{display:inline-block!important;position:relative!important;width:50%!important;height:100%!important;overflow:hidden!important}.i-amphtml-story-spinner-layer:after{left:45%!important;width:10%!important;border-top-style:solid!important}.i-amphtml-story-spinner-circle-clipper:after,.i-amphtml-story-spinner-layer:after{content:""!important;box-sizing:border-box!important;position:absolute!important;top:0!important;border-width:3px!important;border-radius:50%!important}.i-amphtml-story-spinner-circle-clipper:after{bottom:0!important;width:200%!important;border-style:solid!important;border-bottom-color:transparent!important}.i-amphtml-story-spinner-circle-clipper.left:after{left:0!important;border-right-color:transparent!important;transform:rotate(129deg)!important}.i-amphtml-story-spinner-circle-clipper.right:after{left:-100%!important;border-left-color:transparent!important;transform:rotate(-129deg)!important}.i-amphtml-story-spinner[active] .i-amphtml-story-spinner-circle-clipper:after{animation-duration:1100ms!important;animation-timing-function:cubic-bezier(0.4,0,0.2,1)!important;animation-iteration-count:infinite!important}.i-amphtml-story-spinner[active] .i-amphtml-story-spinner-circle-clipper.left:after{animation-name:left-spin!important}.i-amphtml-story-spinner[active] .i-amphtml-story-spinner-circle-clipper.right:after{animation-name:right-spin!important}@keyframes left-spin{0%{transform:rotate(130deg)}50%{transform:rotate(-5deg)}to{transform:rotate(130deg)}}@keyframes right-spin{0%{transform:rotate(-130deg)}50%{transform:rotate(5deg)}to{transform:rotate(-130deg)}}.i-amphtml-story-page-error,.i-amphtml-story-page-play-button{display:-ms-flexbox!important;display:flex!important;-ms-flex-align:center!important;align-items:center!important;position:absolute!important;bottom:0!important;right:0!important;height:40px!important;border:0!important;margin:8px 0 0 8px!important;padding:0!important;animation:play-button-fly-in 0.4s cubic-bezier(0.4,0,0.2,1)!important;background-color:transparent!important;z-index:10000!important}@keyframes play-button-fly-in{0%{opacity:0;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}.i-amphtml-story-page-error[hidden],.i-amphtml-story-page-play-button[hidden]{display:none!important}.i-amphtml-story-page-error-label,.i-amphtml-story-page-play-label{color:#fff!important;font-family:Roboto,sans-serif!important;font-size:16px!important;text-shadow:0px 0px 6px rgba(0,0,0,.36)!important}.i-amphtml-story-page-error-icon,.i-amphtml-story-page-play-icon{display:inline-block!important;height:24px!important;width:24px!important;margin:0 8px!important;border-radius:24px!important;filter:drop-shadow(0px 0px 6px rgba(0,0,0,0.36))!important}.i-amphtml-story-page-error-icon{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="%23FFF"><path fill="none" d="M0 0h24v24H0z"/><path d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20m1 15h-2v-2h2zm0-4h-2V7h2z"/></svg>\')!important}.i-amphtml-story-page-play-icon{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="%23FFF" viewBox="0 0 48 48"><path fill="none" d="M0 0h48v48H0z"/><path d="M24 4a20 20 0 1 0 0 40 20 20 0 0 0 0-40m-4 29V15l12 9z"/></svg>\')!important}amp-bodymovin-animation,amp-bodymovin-animation *{pointer-events:none!important}\n/*# sourceURL=/extensions/amp-story/1.0/amp-story.css*/'),t.registerElement("amp-story-consent",yr),t.registerElement("amp-story-grid-layer",yt),t.registerElement("amp-story-page",cr)}()}});
2
+ (self.AMP=self.AMP||[]).push({m:0,v:"2410292120000",n:"amp-story",ev:"1.0",l:!0,f:function(t,i){!function(){function i(t,i){(null==i||i>t.length)&&(i=t.length);for(var e=0,n=new Array(i);e<i;e++)n[e]=t[e];return n}function e(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}function n(t,i){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=e(t))||i&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r;function o(){return r||(r=Promise.resolve(void 0))}var a=function(){var t=this;this.promise=new Promise(function(i,e){t.resolve=i,t.reject=e})};function s(t){return new Promise(function(i){i(t())})}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t,i){return(h=Object.setPrototypeOf||function(t,i){return t.__proto__=i,t})(t,i)}function u(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),i&&h(t,i)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t){var i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var e,n=c(t);if(i){var r=c(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return function(t,i){if(i&&("object"===m(i)||"function"==typeof i))return i;if(void 0!==i)throw new TypeError("Derived constructors may only return object or undefined");return l(t)}(this,e)}}function f(t,i,e){return i in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e,t}function d(t){return t?Array.prototype.slice.call(t):[]}var g=Array.isArray;function v(t,i){for(var e=0;e<t.length;e++)if(i(t[e],e,t))return e;return-1}var y=Object.prototype,b=y.hasOwnProperty;function A(t){var i=Object.create(null);return t&&Object.assign(i,t),i}function E(t,i){return b.call(t,i)}function S(t,i,e,n,r,o,a,s,l,h,u){return t}y.toString;var w,x,T=/(\0)|^(-)$|([\x01-\x1f\x7f]|^-?[0-9])|([\x80-\uffff0-9a-zA-Z_-]+)|[^]/g;function _(t,i,e,n,r){return r||(i?"�":n?t.slice(0,-1)+"\\"+t.slice(-1).charCodeAt(0).toString(16)+" ":"\\"+t)}function P(t){return void 0!==w?w:w=function(t){try{var i=t.ownerDocument,e=i.createElement("div"),n=i.createElement("div");return e.appendChild(n),e.querySelector(":scope div")===n}catch(t){return!1}}(t)}function k(t,i){return t.replace(/^|,/g,"$&".concat(i," "))}function O(t){return String(t).replace(T,_)}function L(t){S(/^[\w-]+$/.test(t))}function I(t,i){var e=t.classList,n="i-amphtml-scoped";e.add(n);var r=k(i,".".concat(n)),o=t.querySelectorAll(r);return e.remove(n),o}function N(t,i){if(P(t))return t.querySelector(k(i,":scope"));var e=I(t,i)[0];return void 0===e?null:e}function C(t,i){return P(t)?t.querySelectorAll(k(i,":scope")):I(t,i)}function M(t,i){var e=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector;return!!e&&e.call(t,i)}function R(t,i,e){var n;for(n=t;n&&n!==e;n=n.parentElement)if(i(n))return n;return null}function D(t,i){return t.closest?t.closest(i):R(t,function(t){return M(t,i)})}function U(t,i){for(var e=t.lastElementChild;e;e=e.previousElementSibling)if(i(e))return e;return null}function G(t,i){return L(i),N(t,"> ".concat(i))}function z(t){var i=Object.getOwnPropertyDescriptor(t,"message");if(null!=i&&i.writable)return t;var e=t.message,n=t.stack,r=new Error(e);for(var o in t)r[o]=t[o];return r.stack=n,r}function B(t){for(var i,e=null,r="",o=n(arguments,!0);!(i=o()).done;){var a=i.value;a instanceof Error&&!e?e=z(a):(r&&(r+=" "),r+=a)}return e?r&&(e.message=r+": "+e.message):e=new Error(r),e}function H(t){var i,e;null===(i=(e=self).__AMP_REPORT_ERROR)||void 0===i||i.call(e,t)}function W(t){var i=B.apply(null,arguments);return i.expected=!0,i}function V(t){for(var i=arguments.length,e=new Array(i>1?i-1:0),n=1;n<i;n++)e[n-1]=arguments[n];var r=B.apply(null,e);r.name=t||r.name,H(r)}var F=["Webkit","webkit","Moz","moz","ms","O","o"],j={getPropertyPriority:function(){return""},getPropertyValue:function(){return""}};function q(t){var i=t.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()});return F.some(function(t){return i.startsWith(t+"-")})?"-".concat(i):i}function Y(t,i,e){if(ot(i))return i;x||(x=A());var n=x[i];if(!n||e){if(n=i,void 0===t[i]){var r=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(i),o=function(t,i){for(var e=0;e<F.length;e++){var n=F[e]+i;if(void 0!==t[n])return n}return""}(t,r);void 0!==t[o]&&(n=o)}e||(x[i]=n)}return n}function X(t,i){var e=t.style;for(var n in i)e.setProperty(q(Y(e,n)),String(i[n]),"important")}function K(t,i,e,n,r){var o=Y(t.style,i,r);if(o){var a=n?e+n:e;t.style.setProperty(q(o),a)}}function Z(t,i){for(var e in i)K(t,e,i[e])}function $(t,i){void 0===i&&(i=t.hasAttribute("hidden")),i?t.removeAttribute("hidden"):t.setAttribute("hidden","")}function J(t){return"".concat(t,"px")}function Q(t){return"".concat(t,"deg")}function tt(t,i){return"number"==typeof t?i(t):t}function it(t,i){return null==i?"translate(".concat(tt(t,J),")"):"translate(".concat(tt(t,J),", ").concat(tt(i,J),")")}function et(t){return"scale(".concat(t,")")}function nt(t){return"rotate(".concat(tt(t,Q),")")}function rt(t,i){return t.getComputedStyle(i)||j}function ot(t){return t.startsWith("--")}function at(t){return"display"in t&&V("STYLE","`display` style detected. You must use toggle instead."),t}var st="nodisplay",lt="container",ht=function(t){u(e,t);var i=p(e);function e(t){return i.call(this,t)}var n=e.prototype;return n.isLayoutSupported=function(t){return t==lt},n.buildCallback=function(){this.element.classList.add("i-amphtml-story-layer")},e}(t.BaseElement),ut=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function ct(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{return decodeURIComponent(t)}catch(t){return i}}function mt(t){var i,e=A();if(!t)return e;for(;i=ut.exec(t);){var n=ct(i[1],i[1]),r=i[2]?ct(i[2].replace(/\+/g," "),i[2]):"";e[n]=r}return e}function pt(t){var i=(t||self).location;return mt(i.originalHash||i.hash)}function ft(t){return(t.ownerDocument||t).defaultView}function dt(t){var i=ft(t),e=mt(i.location.href).page,n="amp-story-page:first-of-type";e&&(n+=", amp-story-page#".concat(O(e)));var r=i.document.querySelectorAll(n);return r[r.length-1]===t}var gt={"align-content":"alignContent","align-items":"alignItems","align-self":"alignSelf","grid-area":"gridArea","justify-content":"justifyContent","justify-items":"justifyItems","justify-self":"justifySelf"},vt=Object.keys(gt).map(function(t){return"[".concat(t,"]")}).join(","),yt=function(t){u(e,t);var i=p(e);function e(t){return i.call(this,t)}e.prerenderAllowed=function(t){return dt(t.parentElement)},e.previewAllowed=function(){return!0};var n=e.prototype;return n.buildCallback=function(){t.prototype.buildCallback.call(this),this.kg(),this.Tg(),this._g()},n.kg=function(){this.element.hasAttribute("aspect-ratio")&&X(this.element,{"--aspect-ratio":this.element.getAttribute("aspect-ratio").replace(":","/")})},n._g=function(){var t=this;C(this.element,vt).forEach(function(i){t.Ng(i)})},n.Tg=function(){this.Ng(this.element)},n.Ng=function(t){for(var i={},e=t.attributes.length-1;e>=0;e--){var n=t.attributes[e],r=n.name.toLowerCase(),o=gt[r];o&&(i[o]=n.value,t.removeAttribute(r))}Z(t,at(i))},e}(ht),bt="load-end",At="preview";function Et(t){return JSON.parse(t)}function St(t,i){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;if(!isFinite(e)||e<0)throw new Error("Invalid depth: "+e);if(t===i)return!0;for(var n=[{a:t,b:i,depth:e}];n.length>0;){var r=n.shift(),o=r.a,a=r.b,s=r.depth;if(s>0){if(m(o)!==m(a))return!1;if(g(o)&&g(a)){if(o.length!==a.length)return!1;for(var l=0;l<o.length;l++)n.push({a:o[l],b:a[l],depth:s-1});continue}if(o&&a&&"object"===m(o)&&"object"===m(a)){var h=Object.keys(o),u=Object.keys(a);if(h.length!==u.length)return!1;for(var c=0,p=h;c<p.length;c++){var f=p[c];n.push({a:o[f],b:a[f],depth:s-1})}continue}}if(o!==a)return!1}return!0}function wt(t){var i;null===(i=t.parentElement)||void 0===i||i.removeChild(t)}function xt(t){var i=t.isConnected;if(void 0!==i)return i;for(var e=t;(e=Tt(e)).host;)e=e.host;return e.nodeType===Node.DOCUMENT_NODE}function Tt(t){if(Node.prototype.getRootNode)return t.getRootNode();var i,e;for(i=t;i.parentNode&&(!(e=i)||"I-AMPHTML-SHADOW-ROOT"!=e.tagName&&(11!=e.nodeType||"[object ShadowRoot]"!==Object.prototype.toString.call(e)));i=i.parentNode);return i}function _t(t){var i;return"SCRIPT"==t.tagName&&"APPLICATION/JSON"==(null===(i=t.getAttribute("type"))||void 0===i?void 0:i.toUpperCase())}function Pt(t,i,e){var n=t.hasAttribute(i),r=void 0!==e?e:!n;return r!==n&&(r?t.setAttribute(i,""):t.removeAttribute(i)),r}function kt(t){var i,e=(i=t,L("script"),C(i,"> ".concat("script"))),n=e.length;if(1!==n)throw new Error("Found ".concat(n," <script> children. Expected 1."));var r=e[0];if(!_t(r))throw new Error('<script> child must have type="application/json"');try{var o;return Et(null!==(o=r.textContent)&&void 0!==o?o:"")}catch(t){throw new Error("Failed to parse <script> contents. Is it valid JSON?")}}function Ot(t){if(S(function(t){var i=t.tagName;return i.startsWith("AMP-")&&!("AMP-STICKY-AD-TOP-PADDING"==i||"AMP-BODY"==i)}(t)),t.createdCallback)return Promise.resolve(t);if(!t.__AMP_UPG_PRM){var i=new a;t.__AMP_UPG_PRM=i.promise,t.__AMP_UPG_RES=i.resolve}var e=t.__AMP_UPG_PRM;return S(e),e}function Lt(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,n)}return e}function It(t){for(var i=1;i<arguments.length;i++){var e=null!=arguments[i]?arguments[i]:{};i%2?Lt(Object(e),!0).forEach(function(i){f(t,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Lt(Object(e)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))})}return t}function Nt(t,i){if(!!i!==i&&null!=i)if(Array.isArray(i))i.forEach(function(i){Nt(t,i)});else{var e=i;t.appendChild(e.nodeType?e:self.document.createTextNode(String(i)))}}function Ct(t,i){for(var e=arguments.length,n=new Array(e>2?e-2:0),r=2;r<e;r++)n[r-2]=arguments[r];if("string"!=typeof t)return t(It(It({},i),{},{children:n}));var o=null==i?void 0:i.xmlns;o&&delete i.xmlns;var a=o?self.document.createElementNS(o,t):self.document.createElement(t);return Nt(a,n),i&&Object.keys(i).forEach(function(t){!function(t,i,e){if(!1!==e&&null!=e)if("function"!=typeof e||"o"!==i[0]||"n"!==i[1])t.setAttribute(i,!0===e?"":String(e));else{var n=i.toLowerCase().substring(2);t.addEventListener(n,e)}}(a,t,i[t])}),a}function Mt(t,i){var e=s(function(){return t.play(!!i)});return e.catch(function(t){!function(t){for(var i=arguments.length,e=new Array(i>1?i-1:0),n=1;n<i;n++)e[n-1]=arguments[n];H(W.apply(null,e))}("TRYPLAY",t)}),e}function Rt(t,i,e){var n=0,r=0,o=null;function a(){n=0;var s,l=e-(t.Date.now()-r);l>0?n=t.setTimeout(a,l):(s=o,o=null,i.apply(null,s))}return function(){r=t.Date.now();for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];o=s,n||(n=t.setTimeout(a,e))}}var Dt="";function Ut(t){var i=t||self;return i.__AMP_MODE?i.__AMP_MODE:i.__AMP_MODE=function(t){return{localDev:!1,development:zt(t,pt(t)),esm:!1,test:!1,rtvVersion:Gt(t),ssrReady:!1}}(i)}function Gt(t){var i;return Dt||(Dt=(null===(i=t.AMP_CONFIG)||void 0===i?void 0:i.v)||"01".concat("2410292120000")),Dt}function zt(t,i){var e=i||pt(t);return["1","actions","amp","amp4ads","amp4email"].includes(e.development)||!!t.AMP_DEV_MODE}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var Bt=self.__AMP_LOG;function Ht(t,i){throw new Error("failed to call initLogConstructor")}function Wt(t){return Bt.user||(Bt.user=Vt()),function(t,i){return i&&i.ownerDocument.defaultView!=t}(Bt.user.win,t)?Bt.userForEmbed||(Bt.userForEmbed=Vt()):Bt.user}function Vt(t){return Ht()}function Ft(){return Bt.dev||(Bt.dev=Ht())}function jt(t,i,e,n,r,o,a,s,l,h,u){return t}function qt(t,i,e,n,r,o,a,s,l,h,u){return Wt().assert(t,i,e,n,r,o,a,s,l,h,u)}function Yt(t,i,e,n){ni(t=Qt(t),t,i,e),n&&ei(t,i)}function Xt(t,i){return ei(t=Qt(t),i)}function Kt(t,i){return ai(t=Qt(t),i)?ei(t,i):null}function Zt(t,i){return ei(ii(ti(t)),i)}function $t(t,i){var e=ii(ti(t));return ai(e,i)?ei(e,i):null}function Jt(t,i){return ri(ii(t),i)}function Qt(t){return t.__AMP_TOP||(t.__AMP_TOP=t)}function ti(t){return t.nodeType?(i=ft(t),Xt(i,"ampdoc")).getAmpDoc(t):t;var i}function ii(t){var i=ti(t);return i.isSingleDoc()?i.win:i}function ei(t,i){jt(ai(t,i));var e=oi(t)[i];return e.obj||(jt(e.ctor),jt(e.context),e.obj=new e.ctor(e.context),jt(e.obj),e.context=null,e.resolve&&e.resolve(e.obj)),e.obj}function ni(t,i,e,n,r,o){var a=oi(t),s=a[e];s||(s=a[e]={obj:null,promise:null,resolve:null,reject:null,context:null,ctor:null,sharedInstance:o||!1}),!r&&s.ctor||(s.ctor=n,s.context=i,s.sharedInstance=o||!1,s.resolve&&ei(t,e))}function ri(t,i){var e=oi(t)[i];return e?e.promise?e.promise:(ei(t,i),e.promise=Promise.resolve(e.obj)):null}function oi(t){var i=t.__AMP_SERVICES;return i||(i=t.__AMP_SERVICES={}),i}function ai(t,i){var e=t.__AMP_SERVICES&&t.__AMP_SERVICES[i];return!(!e||!e.ctor)}var si="__AMP__EXPERIMENT_TOGGLES";function li(t,i){var e=function(t){var i,e,r,o,a;if(t[si])return t[si];t[si]=A();var s=t[si];S(s);var l=It(It({},null!==(i=t.AMP_CONFIG)&&void 0!==i?i:{}),null!==(e=t.AMP_EXP)&&void 0!==e?e:Et((null===(r=t.__AMP_EXP)||void 0===r?void 0:r.textContent)||"{}"));for(var h in l){var u=l[h];"number"==typeof u&&u>=0&&u<=1&&(s[h]=Math.random()<u)}var c=null===(o=t.AMP_CONFIG)||void 0===o?void 0:o["allow-doc-opt-in"];if(g(c)&&c.length){var m=t.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(m)for(var p,f,d=n((null===(p=m.getAttribute("content"))||void 0===p?void 0:p.split(","))||[],!0);!(f=d()).done;){var v=f.value;c.includes(v)&&(s[v]=!0)}}Object.assign(s,function(t){var i,e="";try{var r;"localStorage"in t&&(e=null!==(r=t.localStorage.getItem("amp-experiment-toggles"))&&void 0!==r?r:"")}catch(t){Ft().warn("EXPERIMENTS","Failed to retrieve experiments from localStorage.")}for(var o,a=(null===(i=e)||void 0===i?void 0:i.split(/\s*,\s*/g))||[],s=A(),l=n(a,!0);!(o=l()).done;){var h=o.value;h&&("-"==h[0]?s[h.substr(1)]=!1:s[h]=!0)}return s}(t));var y=null===(a=t.AMP_CONFIG)||void 0===a?void 0:a["allow-url-opt-in"];if(g(y)&&y.length)for(var b,E=mt(t.location.originalHash||t.location.hash),w=n(y,!0);!(b=w()).done;){var x=b.value,T=E["e-".concat(x)];"1"==T&&(s[x]=!0),"0"==T&&(s[x]=!1)}return s}(t);return!!e[i]}function hi(t,i){return t.__AMP_EXPERIMENT_BRANCHES?t.__AMP_EXPERIMENT_BRANCHES[i]:null}var ui="story-ad-auto-advance",ci="31067116",mi=self.AMP.config.urls;function pi(t,i,e,n){var r=Jt(t,i);if(r)return r;var o=ti(t);return o.whenExtensionsKnown().then(function(){var t=o.getExtensionVersion(e);return t?Xt(o.win,"extensions").waitForExtension(e,t):null}).then(function(e){return e?n?Jt(t,i):function(t,i){return function(t,i){var e=ri(t,i);if(e)return e;var n,r,o,s,l=oi(t);return l[i]=(r=(n=new a).promise,o=n.reject,s=n.resolve,r.catch(function(){}),{obj:null,promise:r,resolve:s,reject:o,context:null,ctor:null}),l[i].promise}(ii(t),i)}(t,i):null})}var fi,di,gi=function(t){return $t(t,"action")},vi=function(t){return Zt(t,"documentInfo").get()},yi=function(t){return Xt(t,"extensions")},bi=function(t){return Zt(t,"mutator")},Ai=function(t){return Xt(t,"performance")},Ei=function(t){return Xt(t,"platform")},Si=function(t){return $t(t,"localization")},wi=function(t){return ei(t,"timer")},xi=function(t){return $t(t,"url")},Ti=function(t){return Zt(t,"viewer")},_i=function(t){return Xt(t,"vsync")},Pi=function(t){return Xt(t,"xhr")};function ki(t,i,e,n){var r=t,o=e,a=function(t){try{return o(t)}catch(t){var i,e;throw null===(i=(e=self).__AMP_REPORT_ERROR)||void 0===i||i.call(e,t),t}},s=function(){if(void 0!==fi)return fi;fi=!1;try{var t={get capture(){return fi=!0,!1}};self.addEventListener("test-options",null,t),self.removeEventListener("test-options",null,t)}catch(t){}return fi}(),l=!(null==n||!n.capture);return r.addEventListener(i,a,s?n:l),function(){null==r||r.removeEventListener(i,a,s?n:l),o=null,r=null,a=null}}function Oi(t,i,e,n){return ki(t,i,e,n)}function Li(t){return t.detail}function Ii(t,i,e,n){var r=e,o=ki(t,i,function(t){try{r(t)}finally{r=null,o()}},n);return o}var Ni,Ci=function(){function t(){this.vt=null}var i=t.prototype;return i.add=function(t){var i=this;return this.vt||(this.vt=[]),this.vt.push(t),function(){i.remove(t)}},i.remove=function(t){var i,e,n;this.vt&&(e=t,-1!=(n=(i=this.vt).indexOf(e))&&i.splice(n,1))},i.removeAll=function(){this.vt&&(this.vt.length=0)},i.fire=function(t){if(this.vt)for(var i,e=n(this.vt.slice(),!0);!(i=e()).done;)(0,i.value)(t)},i.getHandlerCount=function(){var t,i;return null!==(t=null===(i=this.vt)||void 0===i?void 0:i.length)&&void 0!==t?t:0},t}();function Mi(t){var i,e=mt(t).embedMode,n=parseInt(e,10);return 0===(i=n)||1===i||2===i||3===i||4===i?n:0}function Ri(t){return 3===Mi(t.location.hash)}var Di="amp-story",Ui=function(t){var i=function(t){return Kt(t,"story-store")}(t);return i||(i=new Wi(t),Yt(t,"story-store",function(){return i})),i},Gi={CAN_INSERT_AUTOMATIC_AD:1,CAN_SHOW_AUDIO_UI:2,CAN_SHOW_NAVIGATION_OVERLAY_HINT:3,CAN_SHOW_PAGINATION_BUTTONS:4,CAN_SHOW_PREVIOUS_PAGE_HELP:5,CAN_SHOW_SHARING_UIS:6,CAN_SHOW_STORY_URL_INFO:7,CAN_SHOW_SYSTEM_LAYER_BUTTONS:8,VIEWER_CUSTOM_CONTROLS:9,AD_STATE:10,PAGE_ATTACHMENT_STATE:11,EDUCATION_STATE:12,GYROSCOPE_PERMISSION_STATE:13,INFO_DIALOG_STATE:14,INTERACTIVE_COMPONENT_STATE:15,INTERACTIVE_REACT_STATE:16,KEYBOARD_ACTIVE_STATE:17,MUTED_STATE:18,PAGE_HAS_AUDIO_STATE:19,PAGE_HAS_CAPTION_STATE:20,CAPTIONS_STATE:21,PAGE_HAS_ELEMENTS_WITH_PLAYBACK_STATE:22,PANNING_MEDIA_STATE:23,PAUSED_STATE:24,PREVIEW_STATE:25,RTL_STATE:26,SHARE_MENU_STATE:27,SHOPPING_DATA:28,STORY_HAS_BACKGROUND_AUDIO_STATE:29,STORY_HAS_PLAYBACK_UI_STATE:30,SYSTEM_UI_IS_VISIBLE_STATE:31,UI_STATE:32,DESKTOP_ASPECT_RATIO:33,ACTIONS_ALLOWLIST:34,CONSENT_ID:35,CURRENT_PAGE_ID:36,CURRENT_PAGE_INDEX:37,ADVANCEMENT_MODE:38,NAVIGATION_PATH:39,NEW_PAGE_AVAILABLE_ID:40,PAGE_IDS:41,PAGE_SIZE:42,SUBSCRIPTIONS_DIALOG_UI_STATE:43,SUBSCRIPTIONS_STATE:44,SUBSCRIPTIONS_PAGE_INDEX:45},zi=27,Bi=34,Hi=(f(Ni={},Gi.ACTIONS_ALLOWLIST,function(t,i){return t.length!==i.length}),f(Ni,Gi.INTERACTIVE_COMPONENT_STATE,function(t,i){return t.element!==i.element||t.state!==i.state}),f(Ni,Gi.NAVIGATION_PATH,function(t,i){return t.length!==i.length}),f(Ni,Gi.PAGE_IDS,function(t,i){return t.length!==i.length}),f(Ni,Gi.PAGE_SIZE,function(t,i){return null===t||null===i||t.width!==i.width||t.height!==i.height}),f(Ni,Gi.PANNING_MEDIA_STATE,function(t,i){return null===t||null===i||!St(t,i,2)}),f(Ni,Gi.SHOPPING_DATA,function(t,i){return null===t||null===i||!St(t,i,2)}),f(Ni,Gi.INTERACTIVE_REACT_STATE,function(t,i){return!St(t,i,3)}),Ni),Wi=function(){function t(t){this.t=t,this.rn={},this.Ke=It(It({},this.zg()),this.Cg())}var i=t.prototype;return i.get=function(t){if(E(this.Ke,t))return this.Ke[t];Ft().error(Di,"Unknown state %s.",t)},i.subscribe=function(t,i){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];E(this.Ke,t)?(this.rn[t]||(this.rn[t]=new Ci),this.rn[t].add(i),e&&i(this.get(t))):Ft().error(Di,"Can't subscribe to unknown state %s.",t)},i.dispatch=function(t,i){var e,n=this,r=It({},this.Ke);this.Ke=function(t,i,e){var n,r,o,a,s;switch(i){case 1:return It(It({},t),{},f({},Gi.INTERACTIVE_REACT_STATE,It(It({},t[Gi.INTERACTIVE_REACT_STATE]),{},f({},e.interactiveId,e))));case 2:return It(It({},t),{},f({},Gi.NEW_PAGE_AVAILABLE_ID,e));case 3:var l=It(It({},t[Gi.PANNING_MEDIA_STATE]),e);return It(It({},t),{},f({},Gi.PANNING_MEDIA_STATE,l));case 4:var h=It(It({},t[Gi.SHOPPING_DATA]),e);return It(It({},t),{},f({},Gi.SHOPPING_DATA,h));case 5:var u=[].concat(t[Gi.ACTIONS_ALLOWLIST],e);return It(It({},t),{},f({},Gi.ACTIONS_ALLOWLIST,u));case 22:return It(It({},t),{},f({},Gi.PAGE_ATTACHMENT_STATE,!!e));case 16:return It(It({},t),{},f({},Gi.AD_STATE,!!e));case 17:return It(It({},t),{},f({},Gi.EDUCATION_STATE,!!e));case 19:return It(It({},t),{},(f(n={},Gi.PAUSED_STATE,1===e.state),f(n,Gi.SYSTEM_UI_IS_VISIBLE_STATE,!0),f(n,Gi.INTERACTIVE_COMPONENT_STATE,e),n));case 18:return It(It({},t),{},(f(r={},Gi.INFO_DIALOG_STATE,!!e),f(r,Gi.PAUSED_STATE,!!e),r));case 31:return It(It({},t),{},f({},Gi.STORY_HAS_PLAYBACK_UI_STATE,!!e));case 30:return It(It({},t),{},f({},Gi.STORY_HAS_BACKGROUND_AUDIO_STATE,!!e));case 21:return It(It({},t),{},f({},Gi.MUTED_STATE,!!e));case 23:return It(It({},t),{},f({},Gi.PAGE_HAS_AUDIO_STATE,!!e));case 24:return It(It({},t),{},f({},Gi.PAGE_HAS_CAPTIONS_STATE,!!e));case 25:return It(It({},t),{},f({},Gi.CAPTIONS_STATE,!!e));case 26:return It(It({},t),{},f({},Gi.PAGE_HAS_ELEMENTS_WITH_PLAYBACK_STATE,!!e));case zi:return It(It({},t),{},f({},Gi.PAUSED_STATE,!!e));case 28:return It(It({},t),{},f({},Gi.RTL_STATE,!!e));case 20:return It(It({},t),{},f({},Gi.KEYBOARD_ACTIVE_STATE,!!e));case 29:return It(It({},t),{},(f(o={},Gi.PAUSED_STATE,!!e),f(o,Gi.SHARE_MENU_STATE,!!e),o));case Bi:return It(It({},t),{},f({},Gi.SYSTEM_UI_IS_VISIBLE_STATE,!!e));case 35:return 3===t[Gi.UI_STATE]&&3!==e?(Ft().error(Di,"Cannot switch away from UIType_Enum.VERTICAL"),t):It(It({},t),{},f({},Gi.UI_STATE,e));case 9:return It(It({},t),{},f({},Gi.GYROSCOPE_PERMISSION_STATE,e));case 8:return It(It({},t),{},f({},Gi.CONSENT_ID,e));case 6:return It(It({},t),{},(f(a={},Gi.CURRENT_PAGE_ID,e.id),f(a,Gi.CURRENT_PAGE_INDEX,e.index),a));case 7:return It(It({},t),{},f({},Gi.ADVANCEMENT_MODE,e));case 10:return It(It({},t),{},f({},Gi.NAVIGATION_PATH,e));case 11:return It(It({},t),{},f({},Gi.PAGE_IDS,e));case 12:return It(It({},t),{},f({},Gi.PAGE_SIZE,e));case 13:return It(It({},t),{},f({},Gi.VIEWER_CUSTOM_CONTROLS,e));case 14:return It(It({},t),{},f({},Gi.SUBSCRIPTIONS_PAGE_INDEX,e));case 32:return It(It({},t),{},(f(s={},Gi.SUBSCRIPTIONS_DIALOG_UI_STATE,!!e),f(s,Gi.PAUSED_STATE,!!e),s));case 33:return It(It({},t),{},f({},Gi.SUBSCRIPTIONS_STATE,e));case 15:return It(It({},t),{},f({},Gi.DESKTOP_ASPECT_RATIO,e));default:return Ft().error(Di,"Unknown action %s.",i),t}}(this.Ke,t,i),Object.keys(this.rn).forEach(function(t){((e=Hi[t])?e(r[t],n.Ke[t]):r[t]!==n.Ke[t])&&n.rn[t].fire(n.Ke[t])})},i.zg=function(){var t;return f(t={},Gi.CAN_INSERT_AUTOMATIC_AD,!0),f(t,Gi.CAN_SHOW_AUDIO_UI,!0),f(t,Gi.CAN_SHOW_NAVIGATION_OVERLAY_HINT,!0),f(t,Gi.CAN_SHOW_PREVIOUS_PAGE_HELP,!0),f(t,Gi.CAN_SHOW_PAGINATION_BUTTONS,!0),f(t,Gi.CAN_SHOW_SHARING_UIS,!0),f(t,Gi.CAN_SHOW_STORY_URL_INFO,!0),f(t,Gi.CAN_SHOW_SYSTEM_LAYER_BUTTONS,!0),f(t,Gi.VIEWER_CUSTOM_CONTROLS,[]),f(t,Gi.AD_STATE,!1),f(t,Gi.EDUCATION_STATE,!1),f(t,Gi.GYROSCOPE_PERMISSION_STATE,""),f(t,Gi.INFO_DIALOG_STATE,!1),f(t,Gi.INTERACTIVE_COMPONENT_STATE,{state:0}),f(t,Gi.INTERACTIVE_REACT_STATE,{}),f(t,Gi.KEYBOARD_ACTIVE_STATE,!1),f(t,Gi.MUTED_STATE,!0),f(t,Gi.PAGE_ATTACHMENT_STATE,!1),f(t,Gi.PAGE_HAS_AUDIO_STATE,!1),f(t,Gi.PAGE_HAS_CAPTIONS_STATE,!1),f(t,Gi.CAPTIONS_STATE,!0),f(t,Gi.PAGE_HAS_ELEMENTS_WITH_PLAYBACK_STATE,!1),f(t,Gi.PANNING_MEDIA_STATE,{}),f(t,Gi.PAUSED_STATE,!1),f(t,Gi.RTL_STATE,!1),f(t,Gi.SHARE_MENU_STATE,!1),f(t,Gi.SHOPPING_DATA,{}),f(t,Gi.STORY_HAS_BACKGROUND_AUDIO_STATE,!1),f(t,Gi.STORY_HAS_PLAYBACK_UI_STATE,!1),f(t,Gi.SYSTEM_UI_IS_VISIBLE_STATE,!0),f(t,Gi.UI_STATE,0),f(t,Gi.ACTIONS_ALLOWLIST,[]),f(t,Gi.CONSENT_ID,null),f(t,Gi.CURRENT_PAGE_ID,""),f(t,Gi.CURRENT_PAGE_INDEX,0),f(t,Gi.ADVANCEMENT_MODE,""),f(t,Gi.NEW_PAGE_AVAILABLE_ID,""),f(t,Gi.NAVIGATION_PATH,[]),f(t,Gi.PAGE_IDS,[]),f(t,Gi.PAGE_SIZE,null),f(t,Gi.PREVIEW_STATE,!1),f(t,Gi.SUBSCRIPTIONS_DIALOG_UI_STATE,!1),f(t,Gi.SUBSCRIPTIONS_STATE,0),f(t,Gi.SUBSCRIPTIONS_PAGE_INDEX,-1),f(t,Gi.DESKTOP_ASPECT_RATIO,0),t},i.Cg=function(){var t,i,e;switch(Mi(this.t.location.hash)){case 1:return f(t={},Gi.CAN_INSERT_AUTOMATIC_AD,!1),f(t,Gi.CAN_SHOW_NAVIGATION_OVERLAY_HINT,!1),f(t,Gi.CAN_SHOW_PAGINATION_BUTTONS,!1),f(t,Gi.CAN_SHOW_PREVIOUS_PAGE_HELP,!0),f(t,Gi.CAN_SHOW_SYSTEM_LAYER_BUTTONS,!1),f(t,Gi.MUTED_STATE,!1),t;case 2:return f({},Gi.CAN_SHOW_SHARING_UIS,!1);case 3:return f(i={},Gi.PREVIEW_STATE,!0),f(i,Gi.CAN_INSERT_AUTOMATIC_AD,!1),f(i,Gi.CAN_SHOW_NAVIGATION_OVERLAY_HINT,!1),f(i,Gi.CAN_SHOW_PAGINATION_BUTTONS,!1),f(i,Gi.CAN_SHOW_PREVIOUS_PAGE_HELP,!1),f(i,Gi.CAN_SHOW_SYSTEM_LAYER_BUTTONS,!1),i;case 4:return f(e={},Gi.CAN_SHOW_AUDIO_UI,!1),f(e,Gi.CAN_SHOW_SHARING_UIS,!1),f(e,Gi.CAN_SHOW_STORY_URL_INFO,!1),e;default:return{}}},t}(),Vi="ampstory:switchpage",Fi="ampstory:previouspage",ji="ampstory:nextpage",qi="ampstory:pageprogress",Yi="ampstory:replay",Xi="ampstory:nonextpage",Ki="ampstory:nopreviouspage";function Zi(t,i,e){var n=function(t,i,e,n){var r={detail:e};if(Object.assign(r,n),"function"==typeof t.CustomEvent)return new t.CustomEvent(i,r);var o=t.document.createEvent("CustomEvent");return o.initCustomEvent(i,!!r.bubbles,!!r.cancelable,e),o}(t,e,arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0);i.dispatchEvent(n)}var $i,Ji,Qi="storyPageCount",te="storyIsMuted",ie="storyProgress",ee="storyAdvancementMode",ne=function(t){var i=function(t){return Kt(t,"story-variable")}(t);return i||(i=new re(t),Yt(t,"story-variable",function(){return i})),i},re=function(){function t(t){var i;this.Dg=(f(i={},"storyInteractiveId",null),f(i,"storyInteractiveResponse",null),f(i,"storyInteractiveType",null),f(i,"storyPageIndex",null),f(i,"storyPageId",null),f(i,Qi,null),f(i,ie,null),f(i,te,null),f(i,"storyPreviousPageId",null),f(i,"storyPreviousPageIndex",null),f(i,ee,null),f(i,"storyShoppingProductId",null),i),this.Lg=Ui(t),this.Ug()}var i=t.prototype;return i.Ug=function(){var t=this;this.Lg.subscribe(Gi.PAGE_IDS,function(){return t.Yg()}),this.Lg.subscribe(Gi.CURRENT_PAGE_ID,function(){return t.Yg()},!0)},i.Yg=function(){var t=this.Lg.get(Gi.PAGE_IDS),i=t.filter(function(t){return!t.startsWith("i-amphtml-ad-")}).length;this.Dg.storyPageCount=i;var e=this.Lg.get(Gi.CURRENT_PAGE_ID);if(e){this.Dg.storyPreviousPageId=this.Dg.storyPageId,this.Dg.storyPageId=e;var n=this.Lg.get(Gi.CURRENT_PAGE_INDEX),r=t.slice(0,n).filter(function(t){return t.startsWith("i-amphtml-ad-")}).length;this.Dg.storyPreviousPageIndex=this.Dg.storyPageIndex,this.Dg.storyPageIndex=n-r,1===i?this.Dg.storyProgress=0:i>1&&(this.Dg.storyProgress=(n-r)/(i-1))}},i.onVariableUpdate=function(t,i){this.Dg[t]=i},i.get=function(){return this.Dg},t}(),oe="__AMP_ANALYTICS_TAG_NAME__",ae="story-open",se="story-close",le="manualAdvance",he=function(t,i){var e=function(t){return Kt(t,"story-analytics")}(t);return e||(e=new ue(t,i),Yt(t,"story-analytics",function(){return e})),e},ue=function(){function t(t,i){this.t=t,this.ri=i,this.Hg=ne(t),this.Vg=A(),this.Lg=Ui(t),this.Ug()}var i=t.prototype;return i.Ug=function(){var t=this;this.Lg.subscribe(Gi.CURRENT_PAGE_ID,function(i){var e=t.Lg.get(Gi.AD_STATE);if(i&&!e){t.triggerEvent("story-page-visible");var n=t.Lg.get(Gi.PAGE_IDS);t.Lg.get(Gi.CURRENT_PAGE_INDEX)===n.length-1&&t.triggerEvent("story-last-page-visible")}},!0)},i.triggerEvent=function(t){var i=this,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.Gg(t),ti(this.ri).whenNextVisible().then(function(){return function(t,i){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];(function(t){return pi(t,"amp-analytics-instrumentation","amp-analytics")})(t).then(function(r){r&&r.triggerEventForTarget(t,i,e,n)})}(i.ri,t,i.updateDetails(t,e))})},i.updateDetails=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e={},n=this.Hg.get(),r=n.storyPageId;return this.Vg[r][t]>1&&(e.repeated=!0),i&&(e.tagName=i[oe]||i.tagName.toLowerCase(),Object.assign(n,function(t){var i=function(t){return t},e=t.dataset,n={},r=/^vars(.+)/||/^param(.+)/;for(var o in e){var a=o.match(r);a&&(n[i(a[1][0].toLowerCase()+a[1].substr(1))]=e[o])}return n}(i))),It({eventDetails:e},n)},i.Gg=function(t){var i=this.Hg.get().storyPageId;this.Vg[i]=this.Vg[i]||{},this.Vg[i][t]=this.Vg[i][t]||0,this.Vg[i][t]++},t}(),ce="none",me="v0";function pe(t){return void 0===$i&&(i=t||Element,$i=i.prototype.attachShadow?"v1":i.prototype.createShadowRoot?me:ce),$i;var i}function fe(t,i,e){var n="";return t&&Array.prototype.forEach.call(t,function(t){if(t.selectorText&&t.style&&void 0!==t.style.cssText)n+=function(t,i,e){var n=[];return t.split(",").forEach(function(t){t=t.trim(),e&&(t=e(t)),function(t,i){var e=function(t){return t=t.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+t+")"+ve,"m")}(i);return!t.match(e)}(t,i)&&(t=function(t,i){return function(t,i){return t.match(be)?(t=t.replace(ye,i)).replace(be,i+" "):i+" "+t}(t,i)}(t,i)),n.push(t)}),n.join(", ")}(t.selectorText,i,e)+" {\n\t",n+=function(t){var i=t.style.cssText;t.style.content&&!t.style.content.match(/['"]+|attr/)&&(i=i.replace(/content:[^;]*;/g,"content: '"+t.style.content+"';"));var e=t.style;for(var n in e)"initial"===e[n]&&(i+=n+": initial; ");return i}(t)+"\n}\n\n";else if(t.type===CSSRule.MEDIA_RULE)n+="@media "+t.media.mediaText+" {\n",n+=fe(t.cssRules,i),n+="\n}\n\n";else try{t.cssText&&(n+=t.cssText+"\n\n")}catch(t){}}),n}var de="-shadowcsshost",ge=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",ve=(new RegExp("("+de+ge,"gim"),new RegExp("(-shadowcsscontext"+ge,"gim"),"([>\\s~+[.,{:][\\s\\S]*)?$"),ye=de+"-no-combinator",be=new RegExp(de,"gim"),Ae=(new RegExp("-shadowcsscontext","gim"),"vcs"),Ee="verr",Se=/[^\.\-\_0-9a-zA-Z]/,we=/[^\-\_0-9a-zA-Z]/;function xe(t){var i,e=ft(t),n=t.shadowRoot||t.__AMP_SHADOW_ROOT;if(n){if(self.trustedTypes&&self.trustedTypes.createPolicy){var r=self.trustedTypes.createPolicy("shadow-embed#createShadowRoot",{createHTML:function(t){return""}});n.innerHTML=r.createHTML("")}else n.innerHTML="";return n}var o,a=pe();if("v1"==a?(i=t.attachShadow({mode:"open"})).styleSheets||Object.defineProperty(i,"styleSheets",{get:function(){var t=[];return i.childNodes.forEach(function(i){"STYLE"===i.tagName&&t.push(i.sheet)}),t}}):i=a==me?t.createShadowRoot():function(t){var i=t.ownerDocument;t.classList.add("i-amphtml-shadow-host-polyfill");var e=i.createElement("style");e.textContent=".i-amphtml-shadow-host-polyfill>:not(i-amphtml-shadow-root){display:none!important}",t.appendChild(e);var n=i.createElement("i-amphtml-shadow-root");return t.appendChild(n),t.__AMP_SHADOW_ROOT=n,Object.defineProperty(t,"shadowRoot",{enumerable:!0,configurable:!0,value:n}),n.host=t,n.getElementById=function(t){var i=O(t);return n.querySelector("#".concat(i))},Object.defineProperty(n,"styleSheets",{get:function(){return i.styleSheets?d(i.styleSheets).filter(function(t){return n.contains(t.ownerNode)}):[]}}),n}(t),!function(){if(void 0!==Ji)return Ji;if(pe()==ce)Ji=!1;else{var t=pe()===me?self.document.createElement("div").createShadowRoot():self.document.createElement("div").attachShadow({mode:"open"});i=ShadowRoot,Ji=!!i&&-1!=i.toString().indexOf("[native code]")&&t instanceof ShadowRoot}var i;return Ji}()){var s="i-amphtml-sd-".concat(e.Math.floor(1e4*e.Math.random()));i.id=s,i.host.classList.add(s),o=function(t){return function(t,i){return function(t,i){var e=jt(t.id),n=t.ownerDocument,r=null;try{r=Pe(n.implementation.createHTMLDocument(""),i)}catch(t){}if(!r)try{r=Pe(n,i)}catch(t){}return r?fe(r,".".concat(e),Te):i}(t,i)}(i,t)},i.__AMP_CSS_TR=o}return i}function Te(t){return t.replace(/(html|body)/g,_e)}function _e(t,i,e,n){var r=n.charAt(e-1),o=n.charAt(e+t.length);return r&&!Se.test(r)||o&&!we.test(o)?t:"amp-"+t}function Pe(t,i){var e=t.createElement("style");e.textContent=i;try{return(t.head||t.documentElement).appendChild(e),e.sheet?e.sheet.cssRules:null}finally{e.parentNode&&e.parentNode.removeChild(e)}}function ke(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN,e=t.toLowerCase().match(/^([0-9\.]+)\s*(s|ms)$/),n=e?e[1]:void 0,r=e?e[2]:void 0;return!e||3!==e.length||"s"!==r&&"ms"!==r?i:Math.round(("s"==r?1e3:1)*parseFloat(n))}function Oe(t){var i=t.getBoundingClientRect(),e=i.height,n=i.left,r=i.top,o=i.width,a=0==o?1:o/t.offsetWidth,s=0==e?1:e/t.offsetHeight;return{left:n/a,top:r/s,width:o/a,height:e/s}}function Le(t){return D(t,"amp-video, amp-audio")}function Ie(t,i,e){var n=self.document.createElement("style");n.textContent=e;var r=xe(t);return r.appendChild(n),r.appendChild(i),t}function Ne(t,i,e){var n=e||"";t.mutateElement(function(){t.element.setAttribute(i,n)})}function Ce(t,i){t.mutateElement(function(){t.element.removeAttribute(i)})}function Me(t,i){if(!i.get(Gi.CAN_SHOW_STORY_URL_INFO))return!1;var e=t.getParam("showStoryUrlInfo");return e?"0"!==e:t.isEmbedded()}function Re(t,i,e){var n=D(t,"AMP-STORY"),r=n.getAttribute(i);return r?xi(n).assertHttpsUrl(r,n,i):(e&&Wt().warn("AMP-STORY","Expected ".concat(i," attribute on <amp-story>")),null)}var De="data-text-background-color",Ue="[".concat(De,"]");function Ge(t,i){var e=t.cloneNode();$(e,!1),i.appendChild(e),e.click(),e.remove()}function ze(t){return t.getRootNode().documentElement.hasAttribute("transformed")}var Be="i-amphtml-tooltip-action-icon-launch",He="i-amphtml-story-tooltip-theme-dark",We={"amp-twitter":{customIconClassName:"amp-social-share-twitter-no-background",actionIcon:Be,selector:"amp-twitter[interactive]"}},Ve=It({a:{actionIcon:Be,selector:"a[href]"}},We);function Fe(){return Object.values((t=Ve,i={},Object.keys(t).forEach(function(e){i[e]=t[e].selector}),i)).join(",");var t,i}var je="amp-story-embedded-component",qe=function(){function t(t,i){var e=this;this.t=t,this.Bg=i,this.Fg=xi(i),this.De=null,this.Wg=null,this.Zg=null,this.Xg=null,this.Lg=Ui(this.t),this.oa=bi(ti(this.t.document)),this.qg=he(this.t,i),this.Xo=wi(this.t),this.$g=null,this.Kg=null,this.Lg.subscribe(Gi.INTERACTIVE_COMPONENT_STATE,function(t){e.Jg(t)}),this.Ke=0,this.Qg=null,this.tx=null}var i=t.prototype;return i.Jg=function(t){switch(t.state){case 0:this.ix(0,null);break;case 1:this.ix(1,t)}},i.ix=function(t,i){switch(t){case 1:this.Ke=t,this.nx(i),this.qg.triggerEvent("story-focus",this.$g);break;case 0:this.Ke=t,this.nx(null);break;default:Ft().warn(je,"EmbeddedComponentState ".concat(this.Ke," does not exist"))}},i.ox=function(){var t=this;return this.Wg=this.sx(),this.De=Ie(Ct("div",null),this.Wg,'.i-amphtml-story-focused-state-layer{top:0!important;left:0!important;width:100%!important;height:100%!important;z-index:100001!important;position:absolute!important}.i-amphtml-story-focused-state-layer.i-amphtml-hidden{opacity:0!important;pointer-events:none!important;transition:opacity 0.1s cubic-bezier(0.4,0.0,1,1)!important}.i-amphtml-story-focused-state-layer-nav-button-container{height:100%!important;width:160px!important;position:absolute!important;display:-ms-flexbox!important;display:flex!important;-ms-flex-direction:column!important;flex-direction:column!important;-ms-flex-pack:center!important;justify-content:center!important}.i-amphtml-story-focused-state-layer-nav-button-container.i-amphtml-story-tooltip-nav-button-left{background-image:linear-gradient(90deg,rgba(33,33,33,.15) 2%,rgba(33,33,33,0))!important;left:0!important}.i-amphtml-story-focused-state-layer-nav-button-container.i-amphtml-story-tooltip-nav-button-right{background-image:linear-gradient(90deg,rgba(33,33,33,0) 2%,rgba(33,33,33,.15))!important;right:0!important}.i-amphtml-story-focused-state-layer-nav-button{position:absolute!important;top:0!important;bottom:0!important;margin:auto!important;width:48px!important;height:48px!important;padding:0!important;border:0!important;background-color:transparent!important;filter:drop-shadow(0px 0px 16px rgba(0,0,0,0.5))!important;transition:transform 0.2s cubic-bezier(0.0,0.0,0.2,1)!important}.i-amphtml-story-focused-state-layer-nav-button.i-amphtml-story-tooltip-nav-button-left{left:-8px!important;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="%23FFF"><path d="M30.8 14.8 28 12 16 24l12 12 2.8-2.8-9.1-9.2z"/><path fill="none" d="M0 0h48v48H0z"/></svg>\')!important}.i-amphtml-hidden .i-amphtml-story-focused-state-layer-nav-button.i-amphtml-story-tooltip-nav-button-left{transform:translate3d(8px,0,0);transition:transform 0s linear .1s!important}.i-amphtml-story-focused-state-layer-nav-button.i-amphtml-story-tooltip-nav-button-right{right:-8px!important;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="%23FFF"><path d="m20 12-2.8 2.8 9.1 9.2-9.1 9.2L20 36l12-12z"/><path fill="none" d="M0 0h48v48H0z"/></svg>\')!important}.i-amphtml-hidden .i-amphtml-story-focused-state-layer-nav-button.i-amphtml-story-tooltip-nav-button-right{transform:translate3d(-8px,0,0);transition:transform 0s linear .1s!important}[desktop] .i-amphtml-story-focused-state-layer-nav-button-container{display:none!important}.i-amphtml-hidden>.i-amphtml-story-tooltip,.i-amphtml-hidden>.i-amphtml-story-tooltip.i-amphtml-tooltip-arrow-on-top{transform:translateZ(0)!important;transition:transform 0s linear 0.1s!important}.i-amphtml-story-tooltip{max-width:248px!important;height:40px!important;border-radius:6px!important;padding:8px!important;position:absolute!important;box-sizing:border-box!important;text-decoration:none!important;text-shadow:none!important;font-weight:500!important;display:-ms-flexbox!important;display:flex!important;-ms-flex-align:center!important;align-items:center!important;background:#fff!important;box-shadow:0px 6px 16px rgba(0,0,0,.16)!important;transform:translate3d(0,-16px,0)!important;transition:transform 0.2s cubic-bezier(0.0,0.0,0.2,1)!important}.i-amphtml-story-tooltip-theme-dark{background:#202125!important}.i-amphtml-story-tooltip.i-amphtml-tooltip-arrow-on-top{transform:translate3d(0,16px,0)!important}.i-amphtml-tooltip-text{text-overflow:ellipsis!important;overflow:hidden!important;white-space:nowrap!important;margin:0px 5px!important;font-family:Roboto,sans-serif!important;font-size:14px!important;color:#3c4043!important;letter-spacing:0!important;line-height:20px!important}.i-amphtml-story-tooltip-theme-dark .i-amphtml-tooltip-text{color:#9aa0a6!important}.i-amphtml-story-tooltip-custom-icon{width:24px!important;height:24px!important;margin:0px 5px!important;background-size:cover!important;background-position:50%!important;background-repeat:no-repeat!important;filter:drop-shadow(0px 0px 8px rgba(0,0,0,0.08))!important;-ms-flex-negative:0;flex-shrink:0;border-radius:50%!important}.i-amphtml-story-tooltip-custom-icon.i-amphtml-hidden{display:none!important}.i-amphtml-tooltip-action-icon{width:16px!important;height:16px!important;margin:0px 5px!important;padding-bottom:2px!important;-ms-flex-negative:0;flex-shrink:0}.i-amphtml-tooltip-action-icon-launch{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="%23757575" viewBox="0 0 48 48"><path fill="none" d="M0 0h48v48H0z"/><path d="M38 38H10V10h14V6H10a4 4 0 0 0-4 4v28a4 4 0 0 0 4 4h28a4 4 0 0 0 4-4V24h-4zM28 6v4h7.2L15.5 29.7l2.8 2.8L38 12.8V20h4V6z"/></svg>\')!important}.i-amphtml-story-tooltip-theme-dark .i-amphtml-tooltip-action-icon-launch{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="rgba(255, 255, 255, 0.54)" viewBox="0 0 48 48"><path fill="none" d="M0 0h48v48H0z"/><path d="M38 38H10V10h14V6H10a4 4 0 0 0-4 4v28a4 4 0 0 0 4 4h28a4 4 0 0 0 4-4V24h-4zM28 6v4h7.2L15.5 29.7l2.8 2.8L38 12.8V20h4V6z"/></svg>\')!important}.i-amphtml-story-tooltip-arrow{border-right:8px solid transparent!important;border-left:8px solid transparent!important;border-top:10px solid #fff!important;position:absolute!important;bottom:-8px!important}.i-amphtml-story-tooltip-theme-dark .i-amphtml-story-tooltip-arrow{border-top:10px solid #202125!important}.i-amphtml-tooltip-arrow-on-top .i-amphtml-story-tooltip-arrow{bottom:auto!important;top:-8px!important;border-top:0px!important;border-bottom:10px solid #fff!important}.i-amphtml-story-tooltip-theme-dark .i-amphtml-tooltip-arrow-on-top .i-amphtml-story-tooltip-arrow{border-bottom:10px solid #202125!important}.amp-social-share-twitter-no-background{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="1227" fill="none"><path fill="%23000" d="M714.163 519.284 1160.89 0h-105.86L667.137 450.887 357.328 0H0l468.492 681.821L0 1226.37h105.866l409.625-476.152 327.181 476.152H1200L714.137 519.284zM569.165 687.828l-47.468-67.894-377.686-540.24h162.604l304.797 435.991 47.468 67.894 396.2 566.721H892.476L569.165 687.854z"/></svg>\')}.i-amphtml-story-tooltip-custom-icon.amp-social-share-twitter-no-background{background-size:70%!important}\n/*# sourceURL=/extensions/amp-story/1.0/amp-story-tooltip.css*/'),this.Zg.addEventListener("click",function(i){i.stopPropagation(),t.qg.triggerEvent("story-click-through",t.$g),t.Zg.href&&t.ux(i)},!0),this.De},i.hx=function(){var t=this;this.Xo.delay(function(){t.lx()},100),this.Lg.dispatch(19,{state:0})},i.nx=function(t){var i=this;t?(this.$g=t.element,this.Wg||(this.Bg.appendChild(this.ox()),this.Ug()),this.Xo.delay(function(){i.mx(t)},100)):this.oa.mutateElement(this.Wg,function(){i.Wg.classList.toggle("i-amphtml-hidden",!0)})},i.mx=function(t){var i=this;this.vx(t.element),this.yx(t),this.Kg=jt(this.Bg.querySelector("amp-story-page[active]")),this.oa.mutateElement(this.Wg,function(){i.Wg.classList.toggle("i-amphtml-hidden",!1),function(t){try{t.focus()}catch(t){}}(i.Wg.querySelector("a.i-amphtml-story-tooltip"))})},i.Ug=function(){var t=this;this.Lg.subscribe(Gi.UI_STATE,function(i){t.gx(i)},!0),this.Lg.subscribe(Gi.CURRENT_PAGE_ID,function(){1===t.Ke&&t.hx()})},i.gx=function(t){var i=this;this.oa.mutateElement(this.Wg,function(){var e=2===t||4===t;Pt(i.Wg,"desktop",e)})},i.yx=function(t){var i=qt(this.bx(t.element),"Invalid embed config for target",t.element),e=this.$g.getAttribute("theme");e&&"dark"===e.toLowerCase()&&this.Zg.classList.add(He),this.xx(t.element),this.wx(t.element,i),this.kx(i),this.Ax(),this.Tx(t)},i.vx=function(t){M(t,Fe())&&this.Zg.setAttribute("href",this.Sx(t))},i.Sx=function(t){if("amp-twitter"==t.tagName.toLowerCase())return"https://twitter.com/_/status/"+t.getAttribute("data-tweetid");var i=t.getAttribute("href");return this.Fg.isProtocolValid(i)?this.Fg.parse(i).href:(Wt().error(je,"The tooltip url is invalid"),"")},i.bx=function(t){var i=Ve[t.tagName.toLowerCase()];return i&&M(t,i.selector)?i:(Wt().error(je,"No config matching provided target."),null)},i.xx=function(t){var i=t.getAttribute("data-tooltip-text")||function(t,i){var e,n=xi(t);try{e=n.parse(n.getSourceOrigin(i))}catch(t){e=n.parse(i)}return e.hostname}(t,this.Sx(t));this.Zg.querySelector(".i-amphtml-tooltip-text").textContent=i},i.kx=function(t){var i=this.Zg.querySelector(".i-amphtml-tooltip-action-icon");this.oa.mutateElement(i,function(){i.classList.toggle(t.actionIcon,!0)})},i.wx=function(t,i){var e=this,n=t.getAttribute("data-tooltip-icon");if(this.Fg.isProtocolValid(n)){var r=this.Zg.querySelector(".i-amphtml-story-tooltip-custom-icon");n||i.customIconClassName?n?this.oa.mutateElement(r,function(){var t=e.Fg.parse(n).href;X(r,{"background-image":"url(".concat(t,")")})}):this.oa.mutateElement(r,function(){r.classList.add(i.customIconClassName)}):r.classList.toggle("i-amphtml-hidden",!0)}else Wt().error(je,"The tooltip icon url is invalid")},i.Ax=function(){this.Ex()?this.Lg.get(Gi.RTL_STATE)?this.Qg.setAttribute("hidden",!0):this.tx.setAttribute("hidden",!0):(this.Qg.removeAttribute("hidden"),this.tx.removeAttribute("hidden"))},i.Ex=function(){return this.Lg.get(Gi.CURRENT_PAGE_INDEX)+1===this.Lg.get(Gi.PAGE_IDS).length},i.Tx=function(t){var i=this,e={arrowOnTop:!1};this.oa.measureMutateElement(this.Bg,function(){var n=i.Kg.getBoundingClientRect();i.Px(t,n,e),i.Ox(t,n,e)},function(){i.Zg.classList.toggle("i-amphtml-tooltip-arrow-on-top",e.arrowOnTop),X(i.Xg,{left:"".concat(e.arrowLeftOffset,"px")}),X(jt(i.Zg),{top:"".concat(e.tooltipTop,"px"),left:"".concat(e.tooltipLeft,"px")})})},i.Ox=function(t,i,e){var n=this.Zg.offsetHeight;e.tooltipTop=t.clientY-n-24,e.tooltipTop<i.top+48&&(e.arrowOnTop=!0,e.tooltipTop=t.clientY+24)},i.Px=function(t,i,e){var n=this.Zg.offsetWidth;e.tooltipLeft=t.clientX-n/2;var r=i.left+i.width-32-n,o=i.left+32;e.tooltipLeft=Math.min(e.tooltipLeft,r),e.tooltipLeft=Math.max(e.tooltipLeft,o),e.arrowLeftOffset=Math.abs(t.clientX-e.tooltipLeft-this.Xg.offsetWidth/2),e.arrowLeftOffset=Math.min(e.arrowLeftOffset,n-24),e.arrowLeftOffset=Math.max(e.arrowLeftOffset,0)},i._x=function(t){var i=this;R(t.target,function(t){return t==i.Zg})||(t.stopPropagation(),this.hx())},i.lx=function(){var t=this;this.oa.mutateElement(this.Zg,function(){t.Zg.querySelector(".i-amphtml-tooltip-action-icon").className="i-amphtml-tooltip-action-icon";var i=t.Zg.querySelector(".i-amphtml-story-tooltip-custom-icon");i.className="i-amphtml-story-tooltip-custom-icon",function(t,i){for(var e=0;e<i.length;e++)K(t,i[e],null)}(i,["background-image"]),t.Zg.classList.remove(He),t.Zg.removeAttribute("href")})},i.sx=function(){var t=this,i=this.Lg.get(Gi.RTL_STATE);return this.Xg=Ct("div",{class:"i-amphtml-story-tooltip-arrow"}),this.Zg=Ct("a",{class:"i-amphtml-story-tooltip",target:"_blank",role:"tooltip"},Ct("div",{class:"i-amphtml-story-tooltip-custom-icon"}),Ct("p",{class:"i-amphtml-tooltip-text",ref:"text"}),Ct("div",{class:"i-amphtml-tooltip-action-icon"}),this.Xg),this.Qg=Ct("button",{class:"i-amphtml-story-focused-state-layer-nav-button i-amphtml-story-tooltip-nav-button-left",onClick:function(e){return t.Mx(e,i?ji:Fi)}}),this.tx=Ct("button",{class:"i-amphtml-story-focused-state-layer-nav-button i-amphtml-story-tooltip-nav-button-right",onClick:function(e){return t.Mx(e,i?Fi:ji)}}),Ct("section",{onClick:function(i){return t._x(i)},class:"i-amphtml-story-focused-state-layer i-amphtml-story-system-reset i-amphtml-hidden"},Ct("div",{class:"i-amphtml-story-focused-state-layer-nav-button-container i-amphtml-story-tooltip-nav-button-left"},this.Qg),Ct("div",{class:"i-amphtml-story-focused-state-layer-nav-button-container i-amphtml-story-tooltip-nav-button-right"},this.tx),this.Zg)},i.Mx=function(t,i){t.preventDefault(),this.Lg.dispatch(7,le),Zi(this.t,this.De,i,void 0,{bubbles:!0})},i.ux=function(t){t.preventDefault(),Ge(this.Zg,this.Bg)},i.getShadowRootForTesting=function(){return this.De},t}(),Ye="default",Xe=/\w+/gi;function Ke(t,i,e){for(var r,o=n(i,!0);!(r=o()).done;){var a,s=null===(a=t[r.value])||void 0===a?void 0:a[e];if(null!=s)return s.string||s}return null}var Ze=function(){function t(t){this.ri=t,this.Ix=Ti(t).getParam("lang"),this.Nx={},this.zx=new Ci}var i=t.prototype;return i.getLanguageCodesForElement=function(t){var i=R(t,function(t){return t.hasAttribute("lang")}),e=function(t){if(!t)return["en",Ye];var i=t.match(Xe)||[];return i.reduce(function(t,e,n){var r=i.slice(0,n+1).join("-").toLowerCase();return t.unshift(r),t},[Ye])}((i?i.getAttribute("lang"):null)||"");return this.Ix&&e.unshift(this.Ix),e},i.registerLocalizedStringBundles=function(t){var i=this;Object.keys(t).forEach(function(e){var n=e.toLowerCase();i.Nx[n]||(i.Nx[n]={}),Object.assign(i.Nx[n],t[e])}),this.zx.fire()},i.getLocalizedString=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.ri,e=this.getLanguageCodesForElement(i);return Ke(this.Nx,e,t)},i.getLocalizedStringAsync=function(t){var i=this,e=this.getLanguageCodesForElement(this.ri),n=Ke(this.Nx,e,t);return null!==n?Promise.resolve(n):new Promise(function(n){var r=i.zx.add(function(){var o=Ke(i.Nx,e,t);o&&(r(),n(o))})})},t}(),$e=["af","am","ar","bg","bn","bs","ca","cs","da","de","el","en-GB","en","es-419","es","et","eu","fa","fi","fil","fr","gl","gu","hi","hr","hu","id","is","it","iw","ja","ka","km","kn","ko","lo","lt","lv","mk","ml","mn","mr","ms","my","ne","nl","no","pa","pl","pt-BR","pt-PT","ro","ru","si","sk","sl","sq","sr","sv","sw","ta","te","th","tr","uk","ur","vi","zh-CN","zh-TW","zu"];function Je(t){var i,e,n=Si(t);return n||(n=new Ze(t),i=function(){return n},ni(ii(e=ti(t)),e,"localization",i)),n}function Qe(t,i){var e=Si(i),n=_i(ft(i)),r=[];return t.querySelectorAll("[i-amphtml-i18n-aria-label]").forEach(function(t){r.push(e.getLocalizedStringAsync(t.getAttribute("i-amphtml-i18n-aria-label")).then(function(i){return t.setAttribute("aria-label",i)})),t.removeAttribute("i-amphtml-i18n-aria-label")}),t.querySelectorAll("[i-amphtml-i18n-text-content]").forEach(function(i){r.push(e.getLocalizedStringAsync(i.getAttribute("i-amphtml-i18n-text-content")).then(function(e){return t.isConnected?n.mutatePromise(function(){i.textContent=e}):i.textContent=e})),i.removeAttribute("i-amphtml-i18n-text-content")}),Promise.all(r)}function tn(t){var i;return!(null===(i=t.matchMedia("(prefers-reduced-motion: reduce)"))||void 0===i||!i.matches)}function en(t,i,e,n){return[{transform:it(t,i)},{transform:it(e,n)}]}function nn(t,i,e,n,r){return[{transform:it(t,i)+" "+nt(120*r)},{transform:it(e,n)+" "+nt(0)}]}function rn(t,i,e,n){return[{opacity:0,transform:it(t,i)+" "+et(.15)},{opacity:1,transform:it(e,n)+" "+et(1)}]}function on(t){if(function(t){return t.targetWidth<=t.pageWidth||t.targetHeight<=t.pageHeight}(t)){var i=t.pageWidth>t.targetWidth?t.pageWidth/t.targetWidth:1,e=t.pageHeight>t.targetHeight?t.pageHeight/t.targetHeight:1;return 1.25*Math.max(i,e)}return 1}function an(t,i,e,n,r){return 1===r?en(t,i,e,n):function(t,i){return t.forEach(function(t){t.transform+=" "+et(i),t["transform-origin"]="left top"}),t}(en(t,i,e,n),r)}var sn="0.4, 0.4, 0.0, 1",ln=["scale-start","scale-end","pan-scaling-factor","translate-x","translate-y"],hn=["pan-up","pan-down","pan-right","pan-left","zoom-in","zoom-out"],un=f({},"full-bleed","i-amphtml-story-grid-template-with-full-bleed-animation"),cn={pulse:{duration:600,easing:"cubic-bezier(0.3, 0.0, 0.0, 1)",keyframes:[{offset:0,transform:"scale(1)"},{offset:.25,transform:"scale(0.95)"},{offset:.75,transform:"scale(1.05)"},{offset:1,transform:"scale(1)"}]},"fly-in-left":{duration:600,easing:"cubic-bezier(0.2, 0.6, 0.0, 1)",keyframes:function(t){return en(-(t.targetX+t.targetWidth),0,0,0)}},"fly-in-right":{duration:600,easing:"cubic-bezier(0.2, 0.6, 0.0, 1)",keyframes:function(t){return en(t.pageWidth-t.targetX,0,0,0)}},"fly-in-top":{duration:600,easing:"cubic-bezier(0.2, 0.6, 0.0, 1)",keyframes:function(t){return en(0,-(t.targetY+t.targetHeight),0,0)}},"fly-in-bottom":{duration:600,easing:"cubic-bezier(0.2, 0.6, 0.0, 1)",keyframes:function(t){return en(0,t.pageHeight-t.targetY,0,0)}},"rotate-in-left":{duration:1e3,easing:"cubic-bezier(".concat(sn,")"),keyframes:function(t){return nn(-(t.targetX+t.targetWidth),0,0,0,-1)}},"rotate-in-right":{duration:1e3,easing:"cubic-bezier(".concat(sn,")"),keyframes:function(t){return nn(t.pageWidth-t.targetX,0,0,0,1)}},"fade-in":{duration:600,easing:"cubic-bezier(".concat(sn,")"),keyframes:[{opacity:0},{opacity:1}]},"scale-fade-up":{duration:600,easing:"cubic-bezier(".concat(sn,")"),keyframes:[{opacity:0,transform:"scale(0.8)"},{opacity:1,transform:"scale(1)"}]},"scale-fade-down":{duration:600,easing:"cubic-bezier(".concat(sn,")"),keyframes:[{opacity:0,transform:"scale(1.4)"},{opacity:1,transform:"scale(1)"}]},drop:{duration:1600,easing:"linear",keyframes:function(t){var i=Math.max(160,t.targetY+t.targetHeight);return[{offset:0,transform:"translateY(".concat(J(Number(-i)),")"),easing:"cubic-bezier(.5, 0, 1, 1)"},{offset:.29,transform:"translateY(0)",easing:"cubic-bezier(0, 0, .5, 1)"},{offset:.45,transform:"translateY(".concat(J(.2812*-i),")"),easing:"cubic-bezier(.5, 0, 1, 1)"},{offset:.61,transform:"translateY(0)",easing:"cubic-bezier(0, 0, .5, 1)"},{offset:.71,transform:"translateY(".concat(J(.0956*-i),")"),easing:"cubic-bezier(.5, 0, 1, 1)"},{offset:.8,transform:"translateY(0)",easing:"cubic-bezier(0, 0, .5, 1)"},{offset:.85,transform:"translateY(".concat(J(.0359*-i),")"),easing:"cubic-bezier(.5, 0, 1, 1)"},{offset:.92,transform:"translateY(0)",easing:"cubic-bezier(0, 0, .5, 1)"},{offset:.96,transform:"translateY(".concat(J(.0156*-i),")"),easing:"cubic-bezier(.5, 0, 1, 1)"},{offset:1,transform:"translateY(0)",easing:"cubic-bezier(0, 0, .5, 1)"}]}},"twirl-in":{duration:1e3,easing:"cubic-bezier(".concat(sn,")"),keyframes:[{transform:"rotate(-540deg) scale(0.1)",opacity:0},{transform:"none",opacity:1}]},"whoosh-in-left":{duration:600,easing:"cubic-bezier(".concat(sn,")"),keyframes:function(t){return rn(-(t.targetX+t.targetWidth),0,0,0)}},"whoosh-in-right":{duration:600,easing:"cubic-bezier(".concat(sn,")"),keyframes:function(t){return rn(t.pageWidth-t.targetX,0,0,0)}},"pan-left":{duration:1e3,easing:"linear",keyframes:function(t,i){var e,n=i["translate-x"],r=null!==(e=i["pan-scaling-factor"])&&void 0!==e?e:on(t);t.targetWidth*=r,t.targetHeight*=r;var o=t.pageWidth-t.targetWidth,a=(t.pageHeight-t.targetHeight)/2;return an(o,a,n?o+n:0,a,r)}},"pan-right":{duration:1e3,easing:"linear",keyframes:function(t,i){var e,n=i["translate-x"],r=null!==(e=i["pan-scaling-factor"])&&void 0!==e?e:on(t);t.targetWidth*=r,t.targetHeight*=r;var o=t.pageWidth-t.targetWidth,a=(t.pageHeight-t.targetHeight)/2;return an(0,a,-n||o,a,r)}},"pan-down":{duration:1e3,easing:"linear",keyframes:function(t,i){var e,n=i["translate-y"],r=null!==(e=i["pan-scaling-factor"])&&void 0!==e?e:on(t);t.targetWidth*=r,t.targetHeight*=r;var o=.5*(t.pageWidth-t.targetWidth),a=t.pageHeight-t.targetHeight;return an(o,0,o,-n||a,r)}},"pan-up":{duration:1e3,easing:"linear",keyframes:function(t,i){var e,n=i["translate-y"],r=null!==(e=i["pan-scaling-factor"])&&void 0!==e?e:on(t);t.targetWidth*=r,t.targetHeight*=r;var o=.5*(t.pageWidth-t.targetWidth),a=t.pageHeight-t.targetHeight;return an(o,a,o,n?a+n:0,r)}},"zoom-in":{duration:1e3,easing:"linear",keyframes:function(t,i){var e=i["scale-start"],n=i["scale-end"];return e&&qt(n>e,'"scale-end" value must be greater than "scale-start" value when using "zoom-in" animation.'),[{transform:"scale(".concat(e||1,")")},{transform:"scale(".concat(n||3,")")}]}},"zoom-out":{duration:1e3,easing:"linear",keyframes:function(t,i){var e=i["scale-start"],n=i["scale-end"];return e&&qt(e>n,'"scale-start" value must be higher than "scale-end" value when using "zoom-out" animation.'),[{transform:"scale(".concat(e||3,")")},{transform:"scale(".concat(n||1,")")}]}}},mn="AMP-STORY",pn="animate-in",fn="animate-in-duration",dn="animate-in-delay",gn="animate-in-after",vn="animate-in-timing-function",yn="[".concat(pn,"]");function bn(t,i){if(!i.hasAttribute(gn))return null;var e=i.getAttribute(gn);return t.querySelector("#".concat(O(e)))?e:(Wt().warn(mn,"The attribute '".concat(gn,"' in tag ")+"'".concat(i.tagName,"' is set to the invalid value ")+"'".concat(e,"'. No children of parenting 'amp-story-page' ")+"exist with id ".concat(e,".")),null)}var An=function(){function t(t,i,e,n,r){var o=this,a=i.preset,s=i.source,l=i.spec,h=i.startAfterId;this.Rx=t,this.jx=s,this.Gc=n,this.Cx=a?l.target:null,this.Dx=r,this.Lx=h,this.Ux=this.Yx(i),this.Hx=this.Ux.then(function(t){return e.then(function(i){return i.createRunner(t)})}),this.Vx=this.Ux.then(function(t){var i,e,n=t.keyframes;return o.Cx?(jt(!n[0].offset),i=n[0],e=["offset"],Object.keys(i).reduce(function(t,n){return e.includes(n)||(t[n]=i[n]),t},{})):null}),this.Gx=null,this.Bx=null,this.Fx=null,this.Cx&&qt(l.delay>=0,'Negative delays are not allowed in amp-story "animate-in" animations.'),this.Hx.then(function(t){return o.Wx(t)})}t.create=function(i,e,n,r,o){return new t(i,e,n,r,o)};var i=t.prototype;return i.getDims=function(){var t=this;return this.Gc.measurePromise(function(){var i=Oe(t.Cx),e=Oe(t.Rx);return{pageWidth:e.width,pageHeight:e.height,targetWidth:i.width,targetHeight:i.height,targetX:i.left-e.left,targetY:i.top-e.top}})},i.Zx=function(t,i){return"function"==typeof t?this.getDims().then(function(e){return t(e,i||{})}):Promise.resolve(t)},i.Yx=function(t){var i=t.keyframeOptions,e=t.preset,n=t.spec;if(!e)return Promise.resolve(n);var r=n,o=r.delay,a=r.duration,s=r.easing,l=n.target;return this.Zx(e.keyframes,i).then(function(t){return{keyframes:t,target:l,delay:o,duration:a,easing:s,fill:"forwards"}})},i.applyFirstFrame=function(){var t=this;return this.hasStarted()?o():(this.Gx&&this.Gx.cancel(),this.Vx.then(function(i){if(i)return t.Gc.mutatePromise(function(){Z(t.Cx,at(jt(i)))})}))},i.applyLastFrame=function(){if(this.Cx)return o();this.Hx.then(function(t){t.init(),t.finish(!0)})},i.start=function(){this.hasStarted()||this.Xx(0,this.qx())},i.qx=function(){return this.Lx?this.Dx.waitFor(this.Lx):o()},i.$x=function(t){t.start()},i.hasStarted=function(){return this.Kx(0)||!!this.Gx&&"running"==jt(this.Gx).getPlayState()},i.finish=function(){this.Gx||this.Jx(),this.Xx(1)},i.pause=function(){if(null===this.Fx&&this.Gx)try{this.Gx.pause()}catch(t){}},i.resume=function(){if(null===this.Fx&&this.Gx)try{this.Gx.resume()}catch(t){}},i.Qx=function(t){this.Gx&&(t.start(),t.finish())},i.cancel=function(){this.Bx=null,this.Fx=null,this.Gx&&jt(this.Gx).cancel()},i.Xx=function(t,i){var e=i||null;this.Bx=t,this.Fx=e,this.Gx&&this.Dw(t,e)},i.Dw=function(t,i){var e=this,n=jt(this.Gx);(i||o()).then(function(){if(e.Kx(t))switch(e.Bx=null,e.Fx=null,t){case 0:return e.$x(n);case 1:return e.Qx(n)}})},i.Wx=function(t){var i=this;this.Gx=t,t.onPlayStateChanged(function(t){"finished"==t&&i.Jx()}),this.Kx()&&this.Dw(this.Bx,this.Fx)},i.Kx=function(t){return t?this.Bx===t:null!==this.Bx},i.Jx=function(){this.jx.id&&this.Dx.notifyFinish(this.jx.id)},t}(),En=function(){function t(t,i){this.Rx=t,this.vu=i,this.Gc=_i(this.vu.win),this.Hw=this.Vw();var e=li(i.win,"story-disable-animations-first-page")||Ri(i.win)||ze(i);this.Gw=tn(i.win)||e&&M(t,"amp-story-page:first-of-type"),this.Zw=null,this.Dx=Sn.create()}t.create=function(i,e,n){return new t(i,e)};var i=t.prototype;return i.applyFirstFrameOrFinish=function(){var t=this;return Promise.all(this.Xw().map(function(i){return t.Gw?i.applyLastFrame():i.applyFirstFrame()}))},i.applyLastFrame=function(){return Promise.all(this.Xw().map(function(t){return t.applyLastFrame()}))},i.animateIn=function(){this.Gw||this.$w().forEach(function(t){return t.start()})},i.finishAll=function(){this.$w().forEach(function(t){return t.finish()})},i.cancelAll=function(){this.Zw&&this.$w().forEach(function(t){return t.cancel()})},i.pauseAll=function(){this.Zw&&!this.Gw&&this.$w().forEach(function(t){return t.pause()})},i.resumeAll=function(){this.Zw&&!this.Gw&&this.$w().forEach(function(t){return t.resume()})},i.hasAnimationStarted=function(){return this.$w().some(function(t){return t.hasStarted()})},i.$w=function(){return jt(this.Zw)},i.Xw=function(){var t=this;return this.Zw||(this.Zw=Array.prototype.map.call(C(this.Rx,yn),function(i){var e=t.Kw(i);return e?t.Qw({preset:e,source:i,startAfterId:bn(t.Rx,i),keyframeOptions:t.tk(i),spec:t.ik(i,e)}):null}).concat(Array.prototype.map.call(this.Rx.querySelectorAll("amp-story-animation[trigger=visibility]"),function(i){return t.Qw({source:i,startAfterId:bn(t.Rx,i),spec:kt(i)})})).concat(Array.prototype.map.call(this.Rx.querySelectorAll("amp-bodymovin-animation"),function(t){return new wn(t)})).filter(Boolean)),jt(this.Zw)},i.Qw=function(t){return An.create(this.Rx,t,jt(this.Hw),this.Gc,this.Dx)},i.ik=function(t,i){var e={target:t,delay:i.delay||0,duration:i.duration||0,easing:i.easing||"cubic-bezier(0.4, 0.0, 0.2, 1)",keyframes:[]};return t.hasAttribute(fn)&&(e.duration=ke(t.getAttribute(fn),e.duration)),t.hasAttribute(dn)&&(e.delay=ke(t.getAttribute(dn),e.delay)),t.hasAttribute(vn)&&(e.easing=t.getAttribute(vn)),e},i.Vw=function(){var t=this;return yi(this.vu.win).installExtensionForDoc(this.vu,"amp-animation").then(function(){return function(t,i,e){return pi(t,"web-animation",e,void 0).then(function(t){return function(t,i,e){return qt(t,"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.","web-animation",e,e,e)}(t,0,e)})}(t.Rx,0,"amp-animation")}).then(function(i){return i.createBuilder({scope:t.Rx,scaleByScope:!0})})},i.Kw=function(t){var i=t.getAttribute(pn);return cn[i]?(function(t,i){hn.indexOf(i)>=0&&t.parentElement.classList.add(un["full-bleed"])}(t,i),cn[i]):(Wt().warn(mn,"Invalid",pn,"preset",i,"for element",t),null)},i.tk=function(t){var i={};return ln.forEach(function(e){if(t.hasAttribute(e)){var n=parseFloat(t.getAttribute(e));isNaN(n)||n<=0?Wt().warn(mn,e,"attribute must be a positive number. Found negative or zero in element",t):i[e]=n}}),i},t}(),Sn=function(){function t(){this.nk=A(),this.rk=A()}t.create=function(){return new t};var i=t.prototype;return i.notifyFinish=function(t){t in this.nk&&(jt(this.rk[t])(),delete this.nk[t])},i.waitFor=function(t){if(!(t in this.nk)){var i=new a;this.nk[t]=i.promise,this.rk[t]=i.resolve}return this.nk[t]},t}(),wn=function(){function t(t){this.ak=t,this.pause()}var i=t.prototype;return i.pause=function(){this.sk("pause")},i.resume=function(){this.sk("play")},i.start=function(){this.applyFirstFrame(),this.resume()},i.applyFirstFrame=function(){this.sk("seekTo",{percent:0})},i.applyLastFrame=function(){this.sk("seekTo",{percent:1})},i.cancel=function(){this.pause()},i.sk=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.ak.getImpl().then(function(e){e.executeAction({method:t,args:i,satisfiesTrust:function(){return!0}})})},t}();function xn(t){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t.hasAttribute("background-audio"))return null;var e=t.ownerDocument.createElement("audio"),n=xi(t).assertHttpsUrl(t.getAttribute("background-audio"),t);return e.setAttribute("src",n),e.setAttribute("preload","auto"),i&&e.setAttribute("loop",""),e.setAttribute("autoplay",""),e.setAttribute("muted",""),e.muted=!0,e.classList.add("i-amphtml-story-background-audio"),t.appendChild(e),e}var Tn=function(){function t(t){this.ek=new WeakMap,this.uk=Ai(t)}var i=t.prototype;return i.isPerformanceTrackingOn=function(){return this.uk.isPerformanceTrackingOn()},i.startMeasuring=function(t){if(t.paused){var i=this.hk(t),e=this.ck(t,i);this.ek.set(t,e),(t.error||t.__AMP_MEDIA_LOAD_FAILURE_SRC===t.currentSrc)&&(e.metrics.error=t.error?t.error.code:0,e.status=0)}else Ft().expectedError("media-performance-metrics","media must start paused")},i.stopMeasuring=function(t){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=this.ek.get(t);if(e){switch(e.unlisteners.forEach(function(t){return t()}),this.ek.delete(t),e.status){case 2:this.lk(e);break;case 3:this.mk(e)}i&&this.pk(e)}},i.pk=function(t){var i=t.media,e=t.metrics;if(this.uk.tickDelta(Ae,this.fk(i)),this.uk.tickDelta("vofp",M(i,"amp-story-page:first-of-type ".concat(i.tagName))?1:0),null!==e.error)return this.uk.tickDelta(Ee,e.error||0),void this.uk.flush();if(e.jointLatency||!(Date.now()-t.timeStamps.start<1e3)){if(!e.jointLatency)return this.uk.tickDelta(Ee,5),void this.uk.flush();var n=Math.round(e.rebufferTime/(e.rebufferTime+e.watchTime)*100);this.uk.tickDelta("vjl",e.jointLatency),this.uk.tickDelta("vwt",e.watchTime),this.uk.tickDelta("vrb",e.rebuffers),this.uk.tickDelta("vrbr",n),e.rebuffers&&this.uk.tickDelta("vmtbrb",Math.round(e.watchTime/e.rebuffers)),this.uk.flush()}},i.ck=function(t,i){return{media:t,status:1,unlisteners:i,timeStamps:{start:Date.now(),playing:0,waiting:0},metrics:{error:null,jointLatency:0,meanTimeBetweenRebuffers:0,rebuffers:0,rebufferTime:0,watchTime:0}}},i.lk=function(t){t.metrics.watchTime+=Date.now()-t.timeStamps.playing},i.mk=function(t){var i=Date.now()-t.timeStamps.waiting;i>250&&(t.metrics.rebuffers++,t.metrics.rebufferTime+=i)},i.hk=function(t){var i=[Oi(t,"ended",this.dk.bind(this)),Oi(t,"pause",this.dk.bind(this)),Oi(t,"playing",this.vk.bind(this)),Oi(t,"waiting",this.yk.bind(this))],e=t;return t.hasAttribute("src")||(e=U(t,function(t){return"SOURCE"===t.tagName})),i.push(Oi(e||t,"error",this.gk.bind(this))),i},i.gk=function(t){var i="SOURCE"===t.target.tagName?t.target.parent:t.target,e=this.ek.get(i);e.metrics.error=i.error?i.error.code:0,e.status=0},i.dk=function(t){var i=this.ek.get(t.target);2===i.status&&this.lk(i),i.status=1},i.vk=function(t){var i=this.ek.get(t.target),e=i.metrics,n=i.timeStamps;e.jointLatency||(e.jointLatency=Date.now()-n.start),3===i.status&&this.mk(i),n.playing=Date.now(),i.status=2},i.yk=function(t){var i=this.ek.get(t.target),e=i.timeStamps;2===i.status&&this.lk(i),e.waiting=Date.now(),i.status=3},i.fk=function(t){for(var i,e=!1,r=n(d(t.querySelectorAll("source")),!0);!(i=r()).done;){var o=i.value,a=o.hasAttribute("i-amphtml-video-cached-source");if(a&&t.currentSrc===o.src)return 2;a&&(e=!0)}return e?1:0},t}();function _n(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||e(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Pn=function(){function t(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];this.bk=t,this.xk=i,this.wk=e}var i=t.prototype;return i.kk=function(t){this.wk.forEach(function(i){var e=document.createElement("track");e.id=i.id,e.kind=i.kind,e.label=i.label,e.srclang=i.srclang,e.default=i.default,e.src=i.src,e.addEventListener("load",function(){e.mode="showing",t.textTracks[0].mode="showing"}),t.appendChild(e)})},i.applyToElement=function(i,e){var n=this;t.removeFrom(i,e),this.bk?e.setAttribute("src",this.bk):e.removeAttribute("src"),this.xk.forEach(function(t){return e.appendChild(t)}),e.changedSources&&e.changedSources(),this.wk.length>0&&(e.readyState>=1?this.kk(e):e.addEventListener("loadedmetadata",function t(){e.removeEventListener("loadedmetadata",t),n.kk(e)}))},t.removeFrom=function(i,e){var n,r=null;(n="VIDEO"===e.tagName?e:Le(e)||e).hasAttribute("src")&&(r=t.createSourceElement(i,n),n.removeAttribute("src"));var o=d(n.querySelectorAll("source"));o.forEach(function(t){return wt(t)});var a=d(n.querySelectorAll("track"));return a.forEach(function(t){return wt(t)}),new t(null,r?[r]:o,a)},t.createSourceElement=function(t,i){var e=t.document.createElement("source"),n=i.getAttribute("src");e.setAttribute("src",n);var r=i.getAttribute("amp-orig-src");r&&e.setAttribute("amp-orig-src",r);var o=i.getAttribute("type");return o&&e.setAttribute("type",o),e},t}(),kn=["i-amphtml-pool-media","i-amphtml-pool-audio","i-amphtml-pool-video"],On=["id","src","class","autoplay"];function Ln(t){return kn.indexOf(t)>=0}function In(t){return On.indexOf(t)>=0}function Nn(t,i){for(var e=i.classList.length-1;e>=0;e--){var n=i.classList.item(e);Ln(n)||i.classList.remove(n)}for(var r=0;r<t.classList.length;r++){var o=t.classList.item(r);Ln(o)||i.classList.add(o)}}function Cn(t,i){for(var e=t.attributes,n=i.attributes,r=n.length-1;r>=0;r--){var o=n[r].name;In(o)||i.removeAttribute(o)}for(var a=0;a<e.length;a++){var s=e[a],l=s.name,h=s.value;In(l)||i.setAttribute(l,h)}}var Mn=function(){function t(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.Ak=t;var e=new a;this.Tk=e.promise,this.options=i,this.Fe=e.resolve,this.hm=e.reject}var i=t.prototype;return i.getName=function(){return this.Ak},i.whenComplete=function(){return this.Tk},i.execute=function(t){return this.executeInternal(t).then(this.Fe,this.hm)},i.executeInternal=function(t){return o()},i.requiresSynchronousExecution=function(){return!1},i.failTask=function(t){this.hm(t)},t}(),Rn=function(t){u(e,t);var i=p(e);function e(){return i.call(this,"play")}return e.prototype.executeInternal=function(t){return t.paused?Mt(t):o()},e}(Mn),Dn=function(t){u(e,t);var i=p(e);function e(){return i.call(this,"pause")}return e.prototype.executeInternal=function(t){return t.pause(),o()},e}(Mn),Un=function(t){u(e,t);var i=p(e);function e(){return i.call(this,"unmute")}return e.prototype.executeInternal=function(t){return t.muted=!1,t.removeAttribute("muted"),o()},e}(Mn),Gn=function(t){u(e,t);var i=p(e);function e(){return i.call(this,"mute")}return e.prototype.executeInternal=function(t){return t.muted=!0,t.setAttribute("muted",""),o()},e}(Mn),zn=function(t){u(e,t);var i=p(e);function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{currentTime:0};return i.call(this,"setCurrentTime",t)}return e.prototype.executeInternal=function(t){return t.currentTime=this.options.currentTime,o()},e}(Mn),Bn=function(t){u(e,t);var i=p(e);function e(){return i.call(this,"load")}var n=e.prototype;return n.executeInternal=function(t){return t.load(),o()},n.requiresSynchronousExecution=function(){return!0},e}(Mn),Hn=function(t){u(e,t);var i=p(e);function e(){return i.call(this,"bless")}var n=e.prototype;return n.requiresSynchronousExecution=function(){return!0},n.executeInternal=function(t){var i=t.muted;return t.muted=!1,i&&(t.muted=!0),o()},e}(Mn),Wn=function(t){u(e,t);var i=p(e);function e(t,e){var n;return(n=i.call(this,"update-src")).t=t,n.Sk=e,n}var n=e.prototype;return n.executeInternal=function(t){return Pn.removeFrom(this.t,t),this.Sk.applyToElement(this.t,t),o()},n.requiresSynchronousExecution=function(){return!0},e}(Mn),Vn=function(t){u(e,t);var i=p(e);function e(t){var e;return(e=i.call(this,"swap-into-dom")).Ek=t,e}var n=e.prototype;return n.executeInternal=function(t){return xt(this.Ek)?(Nn(this.Ek,t),Cn(this.Ek,t),this.Ek.parentElement.replaceChild(t,this.Ek),o()):(this.failTask("Cannot swap media for element that is not in DOM."),o())},n.requiresSynchronousExecution=function(){return!0},e}(Mn),Fn=function(t){u(e,t);var i=p(e);function e(t){var e;return(e=i.call(this,"swap-out-of-dom")).Ek=t,e}var n=e.prototype;return n.executeInternal=function(t){return Nn(t,this.Ek),Cn(t,this.Ek),t.parentElement.replaceChild(this.Ek,t),o()},n.requiresSynchronousExecution=function(){return!0},e}(Mn);function jn(t){var i;Ot((i=t,i)).then(function(t){t.signals().signal("playback-delegated")})}function qn(t){t.signals().signal("user-interacted")}var Yn="audio",Xn="video",Kn="pool",Zn={},$n=0,Jn=function(){function t(t,i,e){var n,r=this;this.t=t,this.Xo=wi(t),this.Pk=e,this.allocated={},this.unallocated={},this.Ok={},this._k=null,this.Mk={},this.Ik={},this.Nk=0,this.zk=!1,this.Rk=null,this.jk=(f(n={},Yn,function(){var t=r.t.document.createElement("audio");return t.setAttribute("muted",""),t.muted=!0,t.classList.add("i-amphtml-pool-media"),t.classList.add("i-amphtml-pool-audio"),t}),f(n,Xn,function(){var t=r.t.document.createElement("video");return t.setAttribute("muted",""),t.muted=!0,t.setAttribute("playsinline",""),t.classList.add("i-amphtml-pool-media"),t.classList.add("i-amphtml-pool-video"),t}),n),this.Ck(i)}var i=t.prototype;return i.Ck=function(t){var i=0;for(var e in t){var n=t[e],r=jt(this.jk[e])();this.allocated[e]=[],this.unallocated[e]=[];for(var o=n;o>0;o--){var a=1==o?r:r.cloneNode(!0);a.addEventListener("error",this.Dk,{capture:!0}),a.id="i-amphtml-pool-media-"+i++,a.muted=!0,a.__AMP_MEDIA_ELEMENT_ORIGIN__=Kn,this.unallocated[e].push(a)}}},i.Dk=function(t){var i=t.target;if(M(i,"source:last-of-type, video[src]")){var e="SOURCE"===i.tagName?i.parentElement:i;e.__AMP_MEDIA_LOAD_FAILURE_SRC=e.currentSrc||!0}},i.Lk=function(){return new Pn},i.Uk=function(t,i){return this.Pk(t)<this.Pk(i)?-1:1},i.Yk=function(){return"i-amphtml-placeholder-media-"+this.Nk++},i.Hk=function(t){return t.__AMP_MEDIA_ELEMENT_ORIGIN__===Kn},i.Vk=function(t){switch(t.tagName.toLowerCase()){case"audio":return Yn;case"video":return Xn;default:return 0}},i.Gk=function(t){return this.unallocated[t].pop()},i.Bk=function(t,i){if(this.Fk(t,i))return i;var e=this.allocated[t];return e[v(e,function(t){return t["replaced-media"]===i.id})]},i.Wk=function(t,i){this.allocated[t].push(i);var e=this.unallocated[t],n=e.indexOf(i);n>=0&&e.splice(n,1)},i.Zk=function(t,i){var e=this,n=this.allocated[t];if(n.sort(function(t,i){return e.Uk(t,i)}),i){var r=n[n.length-1];if(!r||this.Pk(r)<this.Pk(i))return null}var o=n.pop();return this.unallocated[t].push(o),o},i.Xk=function(t){var i=this,e=this.Vk(t),n=this.allocated[e];return(xt(t)?this.qk(t):o()).then(function(){var r=n.indexOf(t);jt(r>=0),n.splice(r,1),i.unallocated[e].push(t)})},i.$k=function(t,i){var e=this.Zk(t,i);return e?(this.qk(e),e):null},i.Fk=function(t,i){var e=i;return this.allocated[t].indexOf(e)>=0},i.Kk=function(t,i,e){var n=this,r=Le(i),o=Le(t);return i["replaced-media"]=t.id,this.Jk(i,new Vn(t)).then(function(){return Promise.all([n.Qk(r),n.Qk(o)])}).then(function(){return n.Jk(i,new Wn(n.t,e))}).then(function(){return n.Jk(i,new Bn)}).catch(function(){n.Xk(i)})},i.Qk=function(t){return t?"amp-audio"==t.tagName.toLowerCase()?o():(this.Mk[t.id]&&this.tA(t,1),t.getImpl().then(function(t){t.resetOnDomChange&&t.resetOnDomChange()})):o()},i.iA=function(t){var i=this,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.Lk();return this.Jk(t,new Wn(this.t,e)).then(function(){return i.Jk(t,new Bn)})},i.qk=function(t){var i=t["replaced-media"],e=this.Ik[i];t["replaced-media"]=null;var n=this.Jk(t,new Fn(e));return this.iA(t),n},i.nA=function(t){if(!xt(t))return o();var i=this.Vk(t),e=this.Bk(i,t);if(e)return Promise.resolve(e);var n=t,r=this.Ok[n.id];jt(r instanceof Pn);var a=this.Gk(i)||this.$k(i,n);return a?(this.Wk(i,a),this.Kk(n,a,r).then(function(){return a})):o()},i.rA=function(t){return t.__AMP_MEDIA_IS_BLESSED__?o():this.Jk(t,new Hn)},i.reregister=function(t){return this.register(t,!0)},i.register=function(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=t.parentNode;if(e&&e.signals&&this.oA(e),this.Hk(t)){if(i){var n=Pn.removeFrom(this.t,t);return this.Ok[t.id]=n,this.iA(t,n)}return o()}var r=t;r.__AMP_MEDIA_ELEMENT_ORIGIN__="placeholder";var a=r.id||this.Yk();if(this.Ok[a]&&this.Ik[a])return o();r.id=a;var s=Pn.removeFrom(this.t,r);return this.Ok[a]=s,this.Ik[a]=r,r instanceof HTMLMediaElement&&(r.muted=!0,r.setAttribute("muted",""),r.pause()),o()},i.oA=function(t){this.Rk=this.Rk||[],this.Rk.push(t)},i.preload=function(t){return this.nA(t).then()},i.play=function(t){var i=this;return this.nA(t).then(function(t){return t?i.Jk(t,new Rn):o()})},i.pause=function(t){var i=this,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.Vk(t),r=this.Bk(n,t);return r?this.Jk(r,new Dn).then(function(){e&&i.Xo.delay(function(){i.Jk(r,new zn({currentTime:0}))},100)}):o()},i.rewindToBeginning=function(t){return this.setCurrentTime(t,0)},i.setCurrentTime=function(t,i){var e=this.Vk(t),n=this.Bk(e,t);return n?this.Jk(n,new zn({currentTime:i})):o()},i.mute=function(t){var i=this.Vk(t),e=this.Bk(i,t);if(!e)return o();var n=this.Mk[t.id];return n&&(n.gain.value=0),this.Jk(e,new Gn)},i.unmute=function(t){var i=this.Vk(t),e=this.Bk(i,t);if(!e)return o();if(i==Xn){var n=t.parentElement;if(n){var r=parseFloat(n.getAttribute("volume"));if(r<=0||n.hasAttribute("noaudio"))return o();r<1&&this.tA(t,r)}}return this.Jk(e,new Un)},i.tA=function(t,i){if("function"==typeof AudioContext?this._k=this._k||new AudioContext:"function"==typeof webkitAudioContext&&(this._k=this._k||new global.webkitAudioContext),this._k){if(!this.Mk[t.id]){var e=this._k.createMediaElementSource(t),n=this._k.createGain();this.Mk[t.id]=n,e.connect(n).connect(this._k.destination)}this.Mk[t.id].gain.value=i}},i.blessAll=function(){var t=this;if(this.zk)return o();(this.Rk||[]).forEach(qn),this.Rk=null;var i=[].concat(_n(this.allocated.audio),_n(this.unallocated.video),_n(this.allocated.audio),_n(this.unallocated.video)).map(function(i){return t.rA(i)});return Promise.all(i).then(function(){t.zk=!0},function(t){Ft().expectedError("AMP-STORY","Blessing all media failed: ",t)})},i.aA=function(t){var i=this,e=t.__AMP_MEDIA_ELEMENT_TASKS__;if(0!==e.length){var n=e[0],r=function(){n.execute(t).catch(function(t){return Ft().error("AMP-STORY",t)}).then(function(){e.shift(),i.aA(t)})};n.requiresSynchronousExecution()?r():this.Xo.delay(r,0)}},i.Jk=function(t,i){t.__AMP_MEDIA_ELEMENT_TASKS__||(t.__AMP_MEDIA_ELEMENT_TASKS__=[]);var e=t.__AMP_MEDIA_ELEMENT_TASKS__,n=0!==e.length;return e.push(i),n||this.aA(t),i.whenComplete()},t.for=function(i){var e=i.getElement(),n=e.__AMP_MEDIA_POOL_ID__;if(n&&Zn[n])return Zn[n];var r=String($n++);return e.__AMP_MEDIA_POOL_ID__=r,Zn[r]=new t(ft(i.getElement()),i.getMaxMediaElementCounts(),function(t){return i.getElementDistance(t)}),Zn[r]},t}(),Qn=self.__AMP_ERRORS||[];self.__AMP_ERRORS=Qn,Math.random();var tr={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},ir=300,er=function(){function t(){this.sA=[],this.eA=[],this.uA=[],this.hA=[],this.mp=!1}var i=t.prototype;return i.getType=function(){return 0},i.addProgressListener=function(t){this.sA.push(t)},i.addAdvanceListener=function(t){this.eA.push(t)},i.addPreviousListener=function(t){this.uA.push(t)},i.addOnTapNavigationListener=function(t){this.hA.push(t)},i.removeAllAddedListeners=function(){this.sA=[],this.eA=[],this.uA=[],this.hA=[]},i.start=function(){this.mp=!0},i.stop=function(t){this.mp=!1},i.isAutoAdvance=function(){return!1},i.isRunning=function(){return this.mp},i.getProgress=function(){return 1},i.onProgressUpdate=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,i=null!=t?t:this.getProgress();this.sA.forEach(function(t){t(i)})},i.onAdvance=function(){this.eA.forEach(function(t){t()})},i.onPrevious=function(){this.uA.forEach(function(t){t()})},i.onTapNavigation=function(t){this.hA.forEach(function(i){i(t)})},t.forElement=function(i,e){var n=nr.fromElement(i,e);if(n)return n;var r=e.getAttribute("auto-advance-after");if(r){var o=rr.fromAutoAdvanceString(r,i,e);if(o)return o;var a=or.fromAutoAdvanceString(r,i,e);if(a)return a}return new t},t}(),nr=function(t){u(e,t);var i=p(e);function e(t,e){var n;(n=i.call(this)).ri=e,n.cA=null,n.Xo=wi(t),n.lA=null,n.mA=!1,n.vu=ti(t.document),n.pA(),e.ownerDocument.defaultView&&(n.Lg=Ui(e.ownerDocument.defaultView));var r=n.Lg.get(Gi.RTL_STATE);return n.fA={left:{widthRatio:r?.75:.25,direction:r?1:2},right:{widthRatio:r?.25:.75,direction:r?2:1}},n}var n=e.prototype;return n.getType=function(){return 1},n.getProgress=function(){return 1},n.pA=function(){var t=this;this.ri.addEventListener("touchstart",this.dA.bind(this),!0),this.ri.addEventListener("touchend",this.vA.bind(this),!0),this.ri.addEventListener("click",this.yA.bind(this),!0),this.vu.onVisibilityChanged(function(){t.vu.isVisible()&&t.gA()})},n.isAutoAdvance=function(){return!1},n.dA=function(t){var i=this;!this.lA&&this.bA(t)&&(this.lA=Date.now(),this.mA=this.Lg.get(Gi.PAUSED_STATE),this.Lg.dispatch(zi,!0),this.cA=this.Xo.delay(function(){i.Lg.dispatch(Bi,!1)},500))},n.vA=function(t){var i=(t.touches||[]).length;!this.lA||i>0||(Date.now()-this.lA>500&&t.preventDefault(),this.gA())},n.gA=function(){this.lA&&(this.Lg.dispatch(zi,this.mA),this.lA=null,this.Xo.cancel(this.cA),this.cA=null,this.Lg.get(Gi.SYSTEM_UI_IS_VISIBLE_STATE)||this.Lg.dispatch(Bi,!0))},n.xA=function(t){return!R(t.target,function(t){return function(t){return t.hasAttribute("on")&&!!t.getAttribute("on").match(/(^|;)\s*tap\s*:/)}(t)},this.ri)},n.wA=function(t){return!!R(t.target,function(t){var i=t.getAttribute("role");return!!i&&!!tr[i.toLowerCase()]},this.ri)},n.bA=function(t){var i,e=this,n=!1;return R(t.target,function(r){return i=r.tagName.toLowerCase(),r.classList.contains("amp-story-draggable-drawer-root")?(n=!1,!0):!i.startsWith("amp-story-interactive-")||e.kA(t,e.AA())&&!t.path[0].classList.contains("i-amphtml-story-interactive-disclaimer-icon")?r.classList.contains("i-amphtml-story-interactive-disclaimer-dialog-container")||"amp-story-audio-sticker"===i?(n=!1,!0):("amp-story-page"===i||"amp-story-subscriptions"===i)&&(n=!0,!0):(n=!1,!0)},this.ri),n},n.TA=function(t,i){var e,n=!0,r=t.target,o=!!R(r,function(t){return"amp-story-page-attachment"===(e=t.tagName.toLowerCase())||"amp-story-page-outlink"===e?(n=!1,!1):"amp-story-page"===e&&n},this.ri);return o&&(this.kA(t,i)||this.SA(t,i))?(t.preventDefault(),!1):"auto"===r.getAttribute("show-tooltip")&&this.EA(r,i)?(r.setAttribute("target","_blank"),r.setAttribute("role","link"),!1):o},n.EA=function(t,i){return t.getBoundingClientRect().top-i.top>=.8*i.height},n.kA=function(t,i){if(0===t.clientX&&0===t.clientY)return!1;var e=.12*i.width,n=Math.max(e,48);return t.clientX<=i.x+n||t.clientX>=i.x+i.width-n},n.SA=function(t,i){if(0===t.clientX&&0===t.clientY)return!1;var e=t.target.getBoundingClientRect();return e.height*e.width/(i.width*i.height)>=.8&&(Wt().error("AMP-STORY-PAGE","Link was too large; skipped for navigation. For more information, see https://github.com/ampproject/amphtml/issues/31108"),!0)},n.PA=function(t,i){return M(t.target,Fe())&&this.TA(t,i)},n.yA=function(t){var i=t.target,e=this.AA();if(this.PA(t,e)){t.stopPropagation(),t.preventDefault();var n=this.Lg.get(Gi.INTERACTIVE_COMPONENT_STATE);this.Lg.dispatch(19,{element:i,state:n.state||1,clientX:t.clientX,clientY:t.clientY})}else if(this.isRunning()&&this.xA(t)&&!this.wA(t)&&this.bA(t)){t.stopPropagation(),this.Lg.dispatch(7,le);var r={offset:"x"in e?e.x:e.left,width:e.width,clickEventX:t.pageX};this.onTapNavigation(this.OA(r))}},n.AA=function(){return 4!==this.Lg.get(Gi.UI_STATE)?this.ri.getLayoutBox():this.ri.querySelector("amp-story-page[active]").getBoundingClientRect()},n.OA=function(t){var i=this.fA,e=i.left,n=i.right;return t.clickEventX<=t.offset+e.widthRatio*t.width?e.direction:n.direction},e.fromElement=function(t,i){return"amp-story"!==i.tagName.toLowerCase()?null:new e(t,i)},e}(er),rr=function(t){u(e,t);var i=p(e);function e(t,e,n){var r;return(r=i.call(this)).Xo=wi(t),e<500&&(Wt().warn("AMP-STORY-PAGE","".concat(n.id," has an auto advance duration that is too short. ")+"".concat(500,"ms is used instead.")),e=500),r._A=e,r.MA=null,r.IA=null,r.cA=null,n.ownerDocument.defaultView&&(r.Lg=Ui(n.ownerDocument.defaultView)),r}var n=e.prototype;return n.getType=function(){return 2},n.NA=function(){return Date.now()},n.start=function(){var i=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(t.prototype.start.call(this),e){var n=1-e;this.MA=this._A*n}this.MA?this.IA=this.NA()-(this._A-this.MA):this.IA=this.NA(),this.cA=this.Xo.delay(function(){return i.onAdvance()},this.MA||this._A),this.onProgressUpdate(),this.Xo.poll(ir,function(){return i.onProgressUpdate(),!i.isRunning()})},n.stop=function(){var i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t.prototype.stop.call(this),null!==this.cA&&this.Xo.cancel(this.cA),this.MA=i?this.IA+this._A-this.NA():null},n.isAutoAdvance=function(){return!0},n.getProgress=function(){if(null===this.IA)return 0;var t=this.getProgressMs()/this._A;return Math.min(Math.max(t,0),1)},n.onAdvance=function(){this.Lg.dispatch(7,"autoAdvanceTime"),t.prototype.onAdvance.call(this)},n.updateTimeDelay=function(t){var i=ke(t);void 0===i||isNaN(i)||(this.MA&&(this.MA+=i-this._A),this._A=i)},n.getProgressMs=function(){return null===this.IA?0:this.NA()-this.IA},n.getDelayMs=function(){return this._A},e.fromAutoAdvanceString=function(t,i,n){if(!t)return null;var r=ke(t);return void 0===r||isNaN(r)?null:new e(i,Number(r),n)},e}(er),or=function(t){u(e,t);var i=p(e);function e(t,e){var n;return(n=i.call(this)).Xo=wi(t),n.ri=e,n.zA=null,n.RA=[],n.jA=null,n.CA=null,n.DA=null,n.Lg=Ui(t),n}var n=e.prototype;return n.getType=function(){return 3},n.LA=function(){return this.ri.classList.contains("i-amphtml-video-interface")},n.UA=function(){var t=this.ri.tagName.toLowerCase();return this.ri instanceof HTMLMediaElement?this.ri:this.ri.hasAttribute("background-audio")&&"amp-story-page"===t?this.ri.querySelector(".i-amphtml-story-background-audio"):"amp-audio"===t?this.ri.querySelector("audio"):null},n.start=function(){var i=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;t.prototype.start.call(this),(this.ri.build?this.ri.build():o()).then(function(){return i.YA(e)})},n.YA=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.LA()?this.HA(t):(this.zA||(this.zA=this.UA()),this.zA?this.VA(t):Wt().error("AMP-STORY-PAGE","Element with ID ".concat(this.ri.id," is not a media element ")+"supported for automatic advancement."))},n.VA=function(){var t=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=this.zA;this.zA.removeAttribute("loop"),this.RA.push(Ii(e,"ended",function(){return t.onAdvance()})),this.onProgressUpdate(i),this.Xo.poll(ir,function(){return t.onProgressUpdate(),!t.isRunning()})},n.HA=function(){var t=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.ri.getImpl().then(function(i){t.DA=i}),this.ri.querySelector("video").removeAttribute("loop"),this.RA.push(Ii(this.ri,"ended",function(){return t.onAdvance()},{capture:!0})),this.onProgressUpdate(i),this.Xo.poll(ir,function(){return t.onProgressUpdate(),!t.isRunning()})},n.stop=function(){t.prototype.stop.call(this),this.RA.forEach(function(t){return t()})},n.isAutoAdvance=function(){return!0},n.getProgress=function(){return this.LA()?this.DA&&this.DA.getDuration()?this.DA.getCurrentTime()/this.DA.getDuration():0:this.zA&&this.zA.duration?this.zA.currentTime/this.zA.duration:t.prototype.getProgress.call(this)},n.onAdvance=function(){this.Lg.dispatch(7,"autoAdvanceMedia"),t.prototype.onAdvance.call(this)},e.fromAutoAdvanceString=function(t,i,n){try{var r=n.querySelector("amp-video[data-id=".concat(O(t),"], amp-video#").concat(O(t),", amp-audio[data-id=").concat(O(t),"], amp-audio#").concat(O(t)));return M(n,"amp-story-page[background-audio]#".concat(O(t)))&&(r=n),r?new e(i,r):(t&&Wt().warn("AMP-STORY-PAGE","Element with ID ".concat(n.id," has no media element ")+"supported for automatic advancement."),null)}catch(t){return null}},e}(er);function ar(t){return(t=t.trim()).startsWith("WEBVTT")?function(t){var i=/^\d\d\:\d\d/,e=!1;t=t.split(/[\n\r]+/).filter(function(t){var n=i.test(t);return!(!(e=e||n)||n||/^NOTE\s+/.test(t))}).map(function(t){return t.replace(/^- /,"")}).join(" ");var n=Ct("template",null);if(self.trustedTypes&&self.trustedTypes.createPolicy){var r=self.trustedTypes.createPolicy("semantic-render#extractTextContentWebVtt",{createHTML:function(i){return t}});n.innerHTML=r.createHTML("ignored")}else n.innerHTML=t;return n.content.textContent}(t):("number"!=typeof e&&(e=0),e+25>(i=t).length||-1===i.indexOf("http://www.w3.org/ns/ttml",e)?"":function(t){try{return(new DOMParser).parseFromString(t,"text/xml").querySelector("body").textContent.replace(/[\s\n\r]+/g," ").trim()}catch(t){Ft().error("TTML",t.message)}return""}(t));var i,e}var sr="a, amp-twitter > iframe",lr="amp-story-page",hr="next",ur="previous",cr=function(t){u(e,t);var i=p(e);function e(t){var e,n,r,o;(e=i.call(this,t)).yh=Ti(e.element),e.GA=null,e.BA=null,e.FA=Rt(e.win,function(t){return e.WA(!!t)},100),e.ZA=(n=!1,r=null,o=function(){return e.XA()},function(){if(!n){for(var t=arguments.length,i=new Array(t),e=0;e<t;e++)i[e]=arguments[e];r=o.apply(self,i),n=!0,o=null}return r}),e.qA=null,e.$A=null;var s,l,h=new a;return e.KA=M(e.element,"amp-story-page:first-of-type"),e.JA=(s=e.win,(l=function(t){return Kt(t,"media-performance-metrics")}(s))||(l=new Tn(s),Yt(s,"media-performance-metrics",function(){return l})),l),e.QA=[],e.tT=null,e.iT=h.promise,e.nT=h.resolve,e.rT=h.reject,e.Ke=0,e.Lg=Ui(e.win),e.tb=[],e.oT=new a,e.aT=Ei(e.win).isBot(),e.sT=null,e.eT=e.element.getAttribute("auto-advance-after"),e.J=e.getAmpDoc().getVisibilityState(),e.getAmpDoc().onVisibilityChanged(function(){return e.Rf()}),e}e.prerenderAllowed=function(t){return dt(t)},e.previewAllowed=function(){return!0};var r=e.prototype;return r.uT=function(){this.GA||N(this.element,"".concat(yn,",>amp-story-animation,amp-bodymovin-animation"))&&(this.GA=En.create(this.element,this.getAmpDoc(),this.getAmpDoc().getUrl()))},r.hT=function(){var t=this.element.querySelector("amp-story-cta-layer");if(t){var i=t.querySelectorAll("a");1===i.length&&i[0].getAttribute("href")&&(wt(t),this.element.appendChild(Ct("amp-story-page-outlink",{layout:"nodisplay"},Ct("a",{href:i[0].getAttribute("href")},i[0].textContent))))}},r.buildCallback=function(){var t=this;this.delegateVideoAutoplay(),this.cT(),this.Ck(),this.uT(),this.lT(),this.mT(),this.Lg.subscribe(Gi.UI_STATE,function(i){return t.gx(i)},!0),this.pT(),this.element.setAttribute("role","region"),this.fT(),this.dT(),this.maybeApplyFirstAnimationFrameOrFinish(),this.hT()},r.Rf=function(){var t=this.getAmpDoc(),i=this.J===At&&t.isVisible();this.J=t.getVisibilityState(),(t.isPreview()||t.isVisible())&&this.lT(i)},r.lT=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.getAmpDoc().isPreview()?(this.vT(),this.yT()):this.getAmpDoc().isVisible()&&(this.gT(),this.bT(),this.isActive()&&t?this.xT():this.yT())},r.vT=function(){var t=this,i=this.wT(),e=this.kT();if(e){var n=this.AT();n>0&&(i=Math.min(n,i)),this.element.setAttribute("auto-advance-after",i+"s"),Ot(e).then(function(){return e.getImpl()}).then(function(n){t.loadPromise(e).then(function(){var t=n.getDuration()<i,r=e.querySelector("video");r.loop||(r.loop=t)})})}else this.element.setAttribute("auto-advance-after",i+"s")},r.wT=function(){var t=this.yh.getParam("previewSecondsPerPage"),i=parseInt(t,10);return isNaN(i)||i<=0?5:i},r.AT=function(){var t=this.getAmpDoc().getMetaByName("robots"),i=null==t?void 0:t.match(/max-video-preview[^,]*/)[0];return parseInt(null==i?void 0:i.split(":")[1],10)},r.gT=function(){this.eT?this.element.setAttribute("auto-advance-after",this.eT):this.element.removeAttribute("auto-advance-after")},r.xT=function(){var t;S(2===(null===(t=this.BA)||void 0===t?void 0:t.getType()));var i=this.BA.getProgress(),e=this.BA.getProgressMs();switch(this.yT(),this.BA.getType()){case 0:this.TT(1),this.BA.start();break;case 3:this.BA.start(i);break;case 2:this.BA.start(e/this.BA.getDelayMs())}},r.yT=function(){var t,i=this;null===(t=this.BA)||void 0===t||t.removeAllAddedListeners(),this.BA=er.forElement(this.win,this.element),this.BA.addPreviousListener(function(){return i.previous()}),this.BA.addAdvanceListener(function(){return i.next(!0)}),this.BA.addProgressListener(function(t){return i.TT(t)})},r.bT=function(){var t=this.element.getAttribute("auto-advance-after"),i=Ti(this.element).getParam("storyNextUp");null===t&&null!==i&&(this.element.setAttribute("auto-advance-after",i),this.ST())},r.ST=function(){var t=this,i=this.kT();null!==i&&Ot(i).then(function(){return i.getImpl()}).then(function(e){var n=e.getDuration();isNaN(n)?Ii(i,"loadedmetadata",function(){t.ET(e.getDuration())}):t.ET(n)})},r.ET=function(t){t<2||!this.BA||!this.BA.updateTimeDelay||(this.BA.updateTimeDelay(t+"s"),this.element.setAttribute("auto-advance-after",t+"s"))},r.kT=function(){var t=this.PT();return 0===t.length?null:t[0]},r.delegateVideoAutoplay=function(){this.element.querySelectorAll("amp-video").forEach(jn)},r.Ck=function(){var t=this,i=D(this.element,"amp-story");Ot(i).then(function(){return i.getImpl()}).then(function(i){return t.nT(Jn.for(i))},function(i){return t.rT(i)})},r.cT=function(){this.element.querySelectorAll("amp-audio, amp-video").forEach(function(t){t.setAttribute("preload","auto")})},r.isLayoutSupported=function(t){return t==lt},r.setState=function(t){var i;switch(t){case 0:this.element.removeAttribute("active"),this.Qp(),this.Ke=t;break;case 1:var e;0===this.Ke&&(this.element.setAttribute("active",""),this.OT()),2===this.Ke&&(this.BA.start(),this._T(),null===(e=this.GA)||void 0===e||e.resumeAll()),this.Ke=t;break;case 2:this.BA.stop(!0),this.MT(!1),null===(i=this.GA)||void 0===i||i.pauseAll(),this.Ke=t;break;default:Ft().warn(lr,"PageState ".concat(t," does not exist"))}},r.Qp=function(){var t;this.BA.stop(!1),this.IT(),this.NT(),this.zT(!1),this.RT(!1),this.sT=null,this.MT(!0),this.Lg.get(Gi.MUTED_STATE)||this.muteAllMedia(),null===(t=this.GA)||void 0===t||t.cancelAll()},r.OT=function(){var t=this,i=this.jT();this.isActive()&&(i.then(function(){0!==t.Ke&&(t.signals().whenSignal(bt).then(function(){1==t.Ke&&t.BA.start()}),t.CT().then(function(){0!==t.Ke&&(t.DT(),t.LT(),t._T().then(function(){t.Lg.get(Gi.MUTED_STATE)||0===t.Ke||t.unmuteAllMedia()}),t.UT(t.Lg.get(Gi.CAPTIONS_STATE)))}))}).then(function(){if(t.getAmpDoc().isPreview())return t.YT().then(function(){return t.HT()})}),this.VT(),this.GT(),this.BT(),this.FT(),this.WT())},r.HT=function(){var t=this,i=this.ZT().filter(function(t){return t.readyState<2});return this.iT.then(function(e){var n=i.map(function(i){return t.XT(e,i).then(function(){return t.zT(!1),t.qT(e,i)})});return Promise.all(n)})},r.layoutCallback=function(){var t=this,i=this.element.getAttribute("id")!==this.element.getAttribute("auto-advance-after");return xn(this.element,i),this.oT.resolve(),this.muteAllMedia(),this.$T(),this.KT(),Promise.all([this.JT().then(function(){return t.QT()}),this.iT])},r.onLayoutMeasure=function(){var t=this.getLayoutSize(),i=t.height,e=t.width;this.KA&&0!==i&&0!==e&&this.Lg.dispatch(12,{height:i,width:e})},r.gx=function(t){3===t&&this.tS()},r.JT=function(){var t=d(this.iS("amp-story-grid-layer amp-audio, amp-story-grid-layer amp-video, amp-story-grid-layer amp-img, amp-story-grid-layer amp-anim")).map(function(t){return new Promise(function(i){switch(t.tagName.toLowerCase()){case"amp-anim":case"amp-img":case"amp-story-360":if(t.hasAttribute("fallback"))return void i();Ot(t).then(function(t){return t.signals().whenSignal(bt)}).then(i,i);break;case"amp-audio":case"amp-video":var e=t.querySelector("audio, video");if(e&&e.readyState>=2)return void i();t.addEventListener("canplay",i,!0);break;default:i()}t.addEventListener("error",i,!0)})});return Promise.all(t)},r.nS=function(){return this.rS(!0)},r.YT=function(){return this.rS(!1)},r.rS=function(t){var i=d(this.iS("amp-story-grid-layer amp-audio, amp-story-grid-layer amp-video")).map(function(i){return new Promise(function(e){switch(i.tagName.toLowerCase()){case"amp-audio":case"amp-video":var n=t?"load-start":bt,r=i.getAttribute("layout")===st?"built":n;Ot(i).then(function(t){return t.signals().whenSignal(r)}).then(e,e);break;default:e()}})});return this.element.hasAttribute("background-audio")&&i.push(this.oT.promise),Promise.all(i)},r.oS=function(){var t=this.PT().map(function(t){return Ot(t).then(function(t){return t.whenBuilt()})});return Promise.all(t)},r.WT=function(){this.aS()},r.aS=function(){var t=d(C(this.element,Object.keys(We).join(",")));t.length<=0||this.mutateElement(function(){t.forEach(function(t){t.classList.add("i-amphtml-embedded-component")})})},r.QT=function(){var t=this;Zi(this.win,this.element,"ampstory:pageload",void 0,{bubbles:!0}),this.mutateElement(function(){t.element.classList.add("i-amphtml-story-page-loaded")})},r.sS=function(){return this.iS("> audio, amp-story-grid-layer audio, amp-story-grid-layer video")},r.ZT=function(){return this.iS("amp-story-grid-layer video")},r.PT=function(){return this.iS("amp-story-grid-layer amp-video")},r.iS=function(t){var i=this.element.querySelector("iframe"),e=i&&function(t){return t.__AMP_EMBED__}(i),n=[];return C(this.element,t).forEach(function(t){return n.push(t)}),e&&C(e.win.document.body,t.replace(/amp-story-grid-layer/g,"")).forEach(function(t){return n.push(t)}),n},r.eS=function(){return null==(t=this.win).__AMP_AUTOPLAY&&(t.__AMP_AUTOPLAY=function(t){var i,e=t.document.createElement("video");return e.setAttribute("muted",""),e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("height","0"),e.setAttribute("width","0"),e.muted=!0,e.playsInline=!0,e.playsinline=!0,e.webkitPlaysinline=!0,Z(e,{position:"fixed",top:"0",width:"0",height:"0",opacity:"0"}),i=e,s(function(){return i.play()}).catch(function(){}),Promise.resolve(!e.paused)}(t)),t.__AMP_AUTOPLAY;var t},r.uS=function(t){var i=d(this.sS());return this.iT.then(function(e){var n=i.map(function(i){return t(e,i)});return Promise.all(n)})},r.MT=function(){var t=this,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.uS(function(e,n){return t.hS(e,n,i)})},r.hS=function(t,i,e){return this.aT?(i.pause(),o()):t.pause(i,e)},r._T=function(){var t=this;return this.uS(function(i,e){return t.qT(i,e)})},r.qT=function(t,i){var e=this;return this.aT?(Mt(i),o()):this.loadPromise(i).then(function(){return t.play(i).catch(function(t){"VIDEO"===i.tagName&&(e.FA(!1),e.eS().then(function(t){t?e.zT(!0):(e.IT(!1),e.RT(!0))})),"AUDIO"===i.tagName&&(e.sT=Date.now())})},function(){e.FA(!1),e.zT(!0)})},r.CT=function(){var t=this;return this.uS(function(i,e){return t.cS(i,e)})},r.cS=function(t,i){return this.aT?o():t.preload(i)},r.muteAllMedia=function(){var t=this;return this.uS(function(i,e){t.lS(i,e)})},r.lS=function(t,i){return this.aT?(i.muted=!0,i.setAttribute("muted",""),o()):t.mute(i)},r.unmuteAllMedia=function(){var t=this;return this.uS(function(i,e){t.mS(i,e)})},r.mS=function(t,i){if(this.aT)return i.muted=!1,i.removeAttribute("muted"),"AUDIO"===i.tagName&&i.paused&&Mt(i),o();var e=[t.unmute(i)];if("AUDIO"===i.tagName&&i.paused&&this.sT){var n=(Date.now()-this.sT)/1e3;(i.hasAttribute("loop")||n<i.duration)&&(e.push(t.setCurrentTime(i,n%i.duration)),e.push(t.play(i))),this.sT=null}return Promise.all(e)},r.jT=function(){var t=this;if(!this.tT){var i=this.getAmpDoc().isPreview()?this.nS():this.YT();this.tT=i.then(function(){return t.uS(function(i,e){return t.pS(i,e)})})}return this.tT},r.pS=function(t,i){return this.aT?o():t.register(i)},r.XT=function(t,i){return this.aT?o():t.reregister(i)},r.VT=function(){this.GA&&this.GA.animateIn()},r.tS=function(){var t=this;this.GA&&this.signals().whenSignal(bt).then(function(){return t.GA.applyLastFrame()})},r.maybeApplyFirstAnimationFrameOrFinish=function(){var t;return Promise.resolve(null===(t=this.GA)||void 0===t?void 0:t.applyFirstFrameOrFinish())},r.getDistance=function(){return parseInt(this.element.getAttribute("distance"),10)},r.setDistance=function(t){var i=this;if(this.isAd()&&(t=Math.min(t,2)),t!=this.getDistance()){this.element.setAttribute("distance",t),this.element.setAttribute("aria-hidden",0!=t);var e=this.jT();t>0&&t<=2&&(this.WT(),e.then(function(){return i.CT()})),this.fS(0==t)}},r.isActive=function(){return this.element.hasAttribute("active")},r.TT=function(t){var i=hi(this.win,ui);if((i&&i!=ci||!this.isAd())&&0!==this.Ke){var e={pageId:this.element.id,progress:t};Zi(this.win,this.element,qi,e,{bubbles:!0})}},r.getAdjacentPageIds=function(){var t=li(this.win,"amp-story-branching")?this.yy():[],i=this.getNextPageId(!0),e=this.getNextPageId(!1),n=this.getPreviousPageId();return i&&t.push(i),e&&e!=i&&t.push(e),n&&t.push(n),t},r.getPreviousPageId=function(){if(this.element.hasAttribute("i-amphtml-return-to"))return this.element.getAttribute("i-amphtml-return-to");var t=this.Lg.get(Gi.NAVIGATION_PATH),i=t.lastIndexOf(this.element.id),e=t[i-1];if(e)return e;var n=this.element.previousElementSibling;return n&&n.tagName.toLowerCase()===lr?n.id:null},r.getNextPageId=function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.element.hasAttribute("auto-advance-to"))return this.element.getAttribute("auto-advance-to");var t=li(this.win,"amp-story-branching")?"advance-to":"i-amphtml-advance-to";if(this.element.hasAttribute(t))return this.element.getAttribute(t);var i=this.element.nextElementSibling;return i&&i.tagName.toLowerCase()===lr?i.id:null},r.yy=function(){return Array.prototype.slice.call(this.element.querySelectorAll("[on*=goToPage]")).map(function(t){return t.getAttribute("on")}).reduce(function(t,i){return i.split(/[;,]+/).forEach(function(i){i.indexOf("goToPage")>=0&&t.push(i.slice(i.search("=(.*)")+1,-1))}),t},[])},r.previous=function(){var t=this.getPreviousPageId();null!==t?(this.Lg.dispatch(zi,!1),this.dS(t,ur)):Zi(this.win,this.element,Ki,void 0,{bubbles:!0})},r.next=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this.getNextPageId(t);i?(this.Lg.dispatch(zi,!1),this.dS(i,hr)):Zi(this.win,this.element,Xi,void 0,{bubbles:!0})},r.dS=function(t,i){var e={targetPageId:t,direction:i};Zi(this.win,this.element,Vi,e,{bubbles:!0})},r.GT=function(){var t=this;(this.element.hasAttribute("background-audio")||this.element.querySelector("amp-audio")?Promise.resolve(!0):this.vS()).then(function(i){return t.Lg.dispatch(23,i)})},r.vS=function(){var t=this;return this.oS().then(function(){return Array.prototype.some.call(t.PT(),function(t){return!t.hasAttribute("noaudio")&&0!==parseFloat(t.getAttribute("volume"))})})},r.yS=function(){var t=this;return this.oS().then(function(){return Array.prototype.some.call(t.PT(),function(t){return t.querySelector("track")})})},r.FT=function(){var t=this.isAutoAdvance()||this.element.hasAttribute("background-audio")||this.sS().length>0;this.Lg.dispatch(26,t)},r.BT=function(){var t=this;this.yS().then(function(i){t.Lg.dispatch(24,i)})},r.DT=function(){if(this.JA.isPerformanceTrackingOn())for(var t=this.ZT(),i=0;i<t.length;i++)this.gS(t[i])},r.gS=function(t){this.JA.isPerformanceTrackingOn()&&(this.QA.push(t),this.JA.startMeasuring(t))},r.IT=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.JA.isPerformanceTrackingOn())for(var i=0;i<this.QA.length;i++)this.JA.stopMeasuring(this.QA[i],t)},r.LT=function(){var t=this,i=this.ZT();i.length&&(i.some(function(t){return 0!=t.currentTime})||this.FA(!0)),i.forEach(function(i){t.tb.push(Oi(i,"playing",function(){return t.FA(!1)})),t.tb.push(Oi(i,"waiting",function(){return t.FA(!0)}))})},r.NT=function(){this.FA(!1),this.tb.forEach(function(t){return t()}),this.tb=[]},r.XA=function(){var t=Ct("div",{class:"i-amphtml-story-spinner","aria-hidden":"true"},Ct("div",{class:"i-amphtml-story-spinner-container"},Ct("div",{class:"i-amphtml-story-spinner-layer"},Ct("div",{class:"i-amphtml-story-spinner-circle-clipper left"}),Ct("div",{class:"i-amphtml-story-spinner-circle-clipper right"}))));return t.setAttribute("aria-label","Loading video"),this.element.appendChild(t)},r.WA=function(t){var i=this;this.mutateElement(function(){!function(t,i){i!==t.hasAttribute("active")&&(t.setAttribute("aria-hidden",String(!i)),i?t.setAttribute("active",""):t.removeAttribute("active"))}(i.ZA(),t)})},r.bS=function(){var t=this;this.qA=Ct("button",{role:"button",class:"i-amphtml-story-page-play-button i-amphtml-story-system-reset",onClick:function(){t.RT(!1),t.DT(),t.iT.then(function(t){return t.blessAll()}).then(function(){return t._T()})}},Ct("span",{class:"i-amphtml-story-page-play-label","i-amphtml-i18n-text-content":"34"}),Ct("span",{class:"i-amphtml-story-page-play-icon"})),Qe(this.qA,this.element).then(function(){return t.mutateElement(function(){return t.element.appendChild(t.qA)})})},r.RT=function(t){var i=this;t?(this.qA||this.bS(),this.mutateElement(function(){return $(i.qA,!0)})):this.qA&&this.mutateElement(function(){return $(i.qA,!1)})},r.xS=function(){var t=this;this.$A=Ct("div",{class:"i-amphtml-story-page-error i-amphtml-story-system-reset"},Ct("span",{class:"i-amphtml-story-page-error-label","i-amphtml-i18n-text-content":"65"}),Ct("span",{class:"i-amphtml-story-page-error-icon"})),Qe(this.$A,this.element).then(function(){return t.mutateElement(function(){return t.element.appendChild(t.$A)})})},r.zT=function(t){var i=this;t?(this.$A||this.xS(),this.mutateElement(function(){return $(i.$A,!0)})):this.$A&&this.mutateElement(function(){return $(i.$A,!1)})},r.$T=function(){this.element.querySelector("amp-story-page-attachment, amp-story-page-outlink, amp-story-shopping-attachment")&&yi(this.win).installExtensionForDoc(this.getAmpDoc(),"amp-story-page-attachment","0.1")},r.isAd=function(){return this.element.hasAttribute("ad")},r.mT=function(){C(this.element,Ue).forEach(function(t){var i=t.getAttribute(De);K(t,"background-color",i)})},r.pT=function(){var t,i,e,n,r;this.aT&&(t=this,i=this.PT(),e="i-amphtml-story-".concat(t.element.id,"-description"),n=Ct("div",{class:"i-amphtml-story-page-description",id:e}),(r=function(i,r){if(r){var o=t.win.document.createElement(i);o.textContent=r,function(i){t.mutateElement(function(){n.appendChild(i),n.parentNode||(t.element.parentElement.insertBefore(n,t.element.nextElementSibling),t.element.getAttribute("aria-labelledby")||t.element.setAttribute("aria-labelledby",e))})}(o)}})("h2",t.element.getAttribute("title")),i.forEach(function(i){r("p",i.getAttribute("alt")),r("p",i.getAttribute("title")),r("p",i.getAttribute("aria-label")),function(t,i){var e=i.querySelector("track[default]")||i.querySelector("track");return e&&e.src?Pi(t.win).fetchText(e.src,{mode:"cors"}).then(function(t){if(t.ok)return t.text().then(ar)}):o()}(t,i).then(function(t){r("p",t)})})),!this.aT&&this.element.hasAttribute("title")&&(this.element.getAttribute("aria-label")||this.element.setAttribute("aria-label",this.element.getAttribute("title")),this.element.removeAttribute("title"))},r.fT=function(){d(this.element.querySelectorAll("amp-img")).forEach(function(t){if(!t.getAttribute("alt")){t.setAttribute("alt","");var i=t.querySelector("img");i&&t.getImpl().then(function(t){return function(t,i,e){for(var r,o=n(g("alt")?"alt":["alt"],!0);!(r=o()).done;){var a=r.value,s=i.getAttribute(a);null!==s&&e.setAttribute(a,s)}}(0,t.element,i)})}})},r.isAutoAdvance=function(){return this.BA.isAutoAdvance()},r.dT=function(){d(C(this.element,sr)).forEach(function(t){t.setAttribute("i-amphtml-orig-tabindex",t.getAttribute("tabindex")||0)})},r.fS=function(t){d(C(this.element,sr)).forEach(function(i){i.setAttribute("tabindex",t?i.getAttribute("i-amphtml-orig-tabindex"):-1)})},r.KT=function(){var t=this;this.yS().then(function(i){i&&t.Lg.subscribe(Gi.CAPTIONS_STATE,function(i){t.isActive()&&t.UT(i)},!0)})},r.UT=function(t){return this.PT().map(function(i){return i.getImpl().then(function(i){i.toggleCaptions&&i.toggleCaptions(t)})})},e}(t.BaseElement);function mr(t,i,e){return S(i<=e),Math.min(Math.max(t,i),e)}function pr(t){try{return t.state}catch(t){return null}}function fr(t,i,e){if(null==i||""===i)return"";var n=e&&"number"==typeof i?"".concat(i,"px"):i;return"".concat(t,":").concat(n,";")}var dr,gr="amp-story-consent",vr={externalLink:{},onlyAccept:!1},yr=function(t){u(e,t);var i=p(e);function e(t){var e;return(e=i.call(this,t)).yy=null,e.wS=null,e.Lg=Ui(e.win),e.kS=null,e.AS=null,e}var n=e.prototype;return n.buildCallback=function(){var t=this;this.yy=gi(this.element),this.TS();var i=D(this.element,"AMP-CONSENT").id;this.SS(i);var e=Re(this.element,"publisher-logo-src",!0);if(this.kS)return this.AS=function(t,i,e){var n;return Ct("div",{class:"i-amphtml-story-consent i-amphtml-story-system-reset"},Ct("div",{class:"i-amphtml-story-consent-overflow"},Ct("div",{class:"i-amphtml-story-consent-container"},Ct("div",{class:"i-amphtml-story-consent-header"},Ct("div",{class:"i-amphtml-story-consent-logo",style:e&&fr("background-image","url('".concat(e,"') !important"),!0)})),Ct("div",{class:"i-amphtml-story-consent-content"},Ct("h3",null,t.title),Ct("p",null,t.message),Ct("ul",{class:"i-amphtml-story-consent-vendors"},null===(n=t.vendors)||void 0===n?void 0:n.map(function(t){return Ct("li",{class:"i-amphtml-story-consent-vendor"},t)})),Ct("a",{class:"i-amphtml-story-consent-external-link"+(t.externalLink.title&&t.externalLink.href?"":" i-amphtml-hidden"),href:t.externalLink.href,target:"_top",title:t.externalLink.title},t.externalLink.title))),Ct("div",{class:"i-amphtml-story-consent-actions"},Ct("button",{class:"i-amphtml-story-consent-action i-amphtml-story-consent-action-reject"+(!0===t.onlyAccept?" i-amphtml-hidden":""),on:"tap:".concat(i,".reject"),"i-amphtml-i18n-text-content":"23"}),Ct("button",{class:"i-amphtml-story-consent-action i-amphtml-story-consent-action-accept",on:"tap:".concat(i,".accept"),"i-amphtml-i18n-text-content":"22"}))))}(this.kS,i,e),this.Lg.dispatch(5,[{tagOrTarget:"AMP-CONSENT",method:"accept"},{tagOrTarget:"AMP-CONSENT",method:"prompt"},{tagOrTarget:"AMP-CONSENT",method:"reject"}]),Qe(this.AS,this.element).then(function(){Ie(t.element,t.AS,':host{all:initial!important;color:initial!important}.i-amphtml-story-consent{display:-ms-flexbox!important;display:flex!important;-ms-flex-direction:column!important;flex-direction:column!important;z-index:100005!important}.i-amphtml-story-consent,.i-amphtml-story-consent:before{position:absolute!important;top:0!important;left:0!important;height:100%!important;width:100%!important}.i-amphtml-story-consent:before{content:""!important;background:#000!important;opacity:0.55!important}.i-amphtml-story-consent-overflow{margin-top:auto!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important}.i-amphtml-story-consent-container{position:relative!important;margin:88px 0 72px!important;background:#fff!important;border-radius:8px 8px 0 0!important;color:rgba(0,0,0,.87)!important;font-family:Roboto,sans-serif!important;text-align:start!important;overflow:hidden!important}.i-amphtml-story-consent-header{position:relative!important;height:80px!important;min-height:80px!important;background:var(--primary-color,#f0f0f0)!important;z-index:2!important}.i-amphtml-story-consent-logo{position:absolute!important;bottom:-32px!important;margin-left:-32px!important;left:50%!important;height:64px!important;width:64px!important;background:#f0f0f0!important;background-position:50%!important;background-repeat:no-repeat!important;background-size:contain!important;border-radius:5px!important}.i-amphtml-story-consent-logo:before{content:""!important;position:absolute!important;top:-6px!important;bottom:-6px!important;left:-6px!important;right:-6px!important;background:#fff!important;border-radius:6px!important;box-shadow:0 2px 3px rgba(0,0,0,.12)!important;z-index:-1!important}.i-amphtml-story-consent-content{padding:42px 16px 16px!important;font-size:14px!important;z-index:0!important}.i-amphtml-story-consent-vendors{margin:0!important;padding:0!important;list-style:none!important}.i-amphtml-story-consent-vendor{height:40px!important;border-bottom:1px solid #f0f0f0!important;line-height:40px!important;text-overflow:ellipsis!important;overflow:hidden!important}.i-amphtml-story-consent-external-link{position:relative!important;display:inline-block!important;margin:24px 0!important;color:rgba(0,0,0,.87)!important;font-size:15px!important;font-weight:700!important;text-decoration:none!important}.i-amphtml-story-consent-external-link:hover{text-decoration:underline!important}.i-amphtml-story-consent-external-link:after{content:""!important;position:absolute!important;display:block!important;height:16px!important;width:16px!important;top:3px!important;right:-20px!important;background:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="rgba(0, 0, 0, 0.87)"><path d="M10 6 8.6 7.4l4.6 4.6-4.6 4.6L10 18l6-6z"/><path fill="none" d="M0 0h24v24H0z"/></svg>\') 50% no-repeat!important}.i-amphtml-story-consent-external-link.i-amphtml-hidden{display:none!important}.i-amphtml-story-consent-actions{position:absolute!important;display:-ms-flexbox!important;display:flex!important;-ms-flex-pack:center!important;justify-content:center!important;-ms-flex-align:center!important;align-items:center!important;bottom:0!important;left:0!important;right:0!important;height:72px!important;min-height:72px!important;background:#fff!important;box-shadow:0 -2px 3px rgba(0,0,0,.12)!important;z-index:1!important}.i-amphtml-story-consent-action{position:relative!important;padding:0 24px!important;margin:0 12px!important;height:40px!important;width:40vw!important;background:#fff!important;border:none!important;border-radius:40px!important;box-sizing:border-box!important;cursor:pointer!important;font-size:13px!important;font-weight:700!important;line-height:40px!important;text-align:center!important;text-transform:uppercase!important}.i-amphtml-story-consent-action.i-amphtml-hidden{display:none!important}.i-amphtml-story-consent-action-accept{background:var(--primary-color,#000)!important;color:#fff!important}.i-amphtml-story-consent-action-reject{border:1px solid #000!important}@media (min-width:420px){.i-amphtml-story-consent{-ms-flex-align:center!important;align-items:center!important;-ms-flex-pack:center!important;justify-content:center!important}.i-amphtml-story-consent-overflow{margin-top:0!important}.i-amphtml-story-consent-container{display:-ms-flexbox!important;display:flex!important;-ms-flex-direction:column!important;flex-direction:column!important;margin:0!important;max-height:60vh!important;min-height:40vh!important;width:calc(100vw - 80px)!important;max-width:800px!important}.i-amphtml-story-consent-content{margin:0 auto!important;max-width:424px!important;-ms-flex-positive:1!important;flex-grow:1!important;overflow-y:auto!important}.i-amphtml-story-consent-content::-webkit-scrollbar{width:0px!important;background:transparent!important}.i-amphtml-story-consent-actions{position:relative!important;left:0px!important;right:0px!important}.i-amphtml-story-consent-action{width:33vw!important;max-width:200px!important}}\n/*# sourceURL=/extensions/amp-story/1.0/amp-story-consent.css*/'),t.ES(),t.Ug()})},n.isLayoutSupported=function(t){return t==st},n.Ug=function(){var t=this;this.AS.addEventListener("click",function(i){return t.PS(i)},!0),this.Lg.subscribe(Gi.RTL_STATE,function(i){t.OS(i)},!0)},n.PS=function(t){if(t.target){if(t.target.hasAttribute("on")){var i=t.target;this.yy.trigger(i,"tap",t,3)}var e=R(t.target,function(t){return M(t,"a[href]")});e&&(Ge(e,this.element),t.preventDefault())}},n.OS=function(t){var i=this;this.mutateElement(function(){t?i.AS.setAttribute("dir","rtl"):i.AS.removeAttribute("dir")},this.AS)},n.TS=function(){var t=G(this.element.parentElement,"script");if(this.wS=t&&Et(t.textContent),this._S(),this.wS){var i=G(this.element,"script");qt(i&&_t(i),"".concat(gr," config should be put in a <script> tag with ")+'type="application/json"'),this.kS=It(It({},vr),Et(i.textContent)),Wt().assertString(this.kS.title,"".concat(gr,": config requires a title")),Wt().assertString(this.kS.message,"".concat(gr,": config requires a message")),qt(this.kS.vendors&&g(this.kS.vendors),"".concat(gr,": config requires an array of vendors")),Wt().assertBoolean(this.kS.onlyAccept,"".concat(gr,': config requires "onlyAccept" to be a boolean')),(this.kS.externalLink.href||this.kS.externalLink.title)&&(Wt().assertString(this.kS.externalLink.title,"".concat(gr,': config requires "externalLink.title" to be a string')),Wt().assertString(this.kS.externalLink.href,"".concat(gr,': config requires "externalLink.href" to be an absolute URL')),xi(this.element).assertAbsoluteHttpOrHttpsUrl(this.kS.externalLink.href))}},n._S=function(){var t=this.wS.consents;if(t){var i=Object.keys(t)[0],e=t[i];this.wS.consentInstanceId=i,this.wS.checkConsentHref=e.checkConsentHref,this.wS.promptIfUnknownForGeoGroup=e.promptIfUnknownForGeoGroup,delete this.wS.consents}},n.SS=function(t){var i,e=this;if(this.wS.checkConsentHref)this.Lg.dispatch(8,t);else{var n=this.wS.promptIfUnknownForGeoGroup;n&&(i=this.element,pi(i,"geo","amp-geo",!0)).then(function(i){var r=i.matchedISOCountryGroups;i&&!r.includes(n)||e.Lg.dispatch(8,t)})}},n.ES=function(){var t,i,e,n,r=this.AS.querySelector(".i-amphtml-story-consent-action-accept");X(r,{color:(t=function(t){var i=/rgba?\((\d{1,3}), (\d{1,3}), (\d{1,3})/;if(!t.match(i))return Wt().error("UTILS","getRGBFromCssColorValue expects a parameter in "+"the form of 'rgba(0, 0, 0, 1)' or 'rgb(0, 0, 0)' but got ".concat(t)),{r:0,g:0,b:0};var e=i.exec(t);return{r:Number(e[1]),g:Number(e[2]),b:Number(e[3])}}(rt(this.win,r)["background-color"]),i=t.b,e=t.g,.2126*(n=function(t){return(t/=255)<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})(t.r)+.7152*n(e)+.0722*n(i)>.179?"#000":"#FFF")})},e}(t.BaseElement),br="show-navigation-overlay",Ar="show-first-page-overlay",Er=function(){function t(t,i){this.t=t,this.Gc=_i(this.t),this.Xo=wi(this.t),this.MS=null,this.IS=null,this.Lg=Ui(this.t),this.NS=i}var i=t.prototype;return i.build=function(){var t=this;this.MS||(this.MS=Ct("aside",{class:"i-amphtml-story-hint-container i-amphtml-story-system-reset i-amphtml-hidden"},Ct("div",{class:"i-amphtml-story-navigation-help-overlay"},Ct("div",{class:"i-amphtml-story-navigation-help-section prev-page"},Ct("div",{class:"i-amphtml-story-hint-placeholder"},Ct("div",{class:"i-amphtml-story-hint-tap-button"},Ct("div",{class:"i-amphtml-story-hint-tap-button-icon"})),Ct("div",{class:"i-amphtml-story-hint-tap-button-text","i-amphtml-i18n-text-content":"3"}))),Ct("div",{class:"i-amphtml-story-navigation-help-section next-page"},Ct("div",{class:"i-amphtml-story-hint-placeholder"},Ct("div",{class:"i-amphtml-story-hint-tap-button"},Ct("div",{class:"i-amphtml-story-hint-tap-button-icon"})),Ct("div",{class:"i-amphtml-story-hint-tap-button-text","i-amphtml-i18n-text-content":"2"}))))),Qe(this.MS,this.NS).then(function(){var i=Ie(Ct("div",null),t.MS,'.i-amphtml-story-hint-container{transition-property:opacity!important;transition-duration:200ms!important;contain:strict!important;pointer-events:none!important;position:absolute!important;left:0!important;top:0!important;right:0!important;bottom:0!important;z-index:2!important}.i-amphtml-story-hint-container.i-amphtml-hidden{opacity:0!important}.i-amphtml-story-hint-container .i-amphtml-story-navigation-help-overlay{position:absolute!important;left:0!important;top:0!important;right:0!important;bottom:0!important;background:rgba(0,0,0,.7)!important;-ms-flex-direction:row!important;flex-direction:row!important;color:#fff!important;font-size:20px!important;padding:16px 0!important}.i-amphtml-story-navigation-help-section{position:relative!important;display:-ms-flexbox!important;display:flex!important;-ms-flex-align:center!important;align-items:center!important;-ms-flex-pack:center!important;justify-content:center!important}.prev-page,[dir=rtl].prev-page{-ms-flex:1!important;flex:1!important}.show-first-page-overlay .i-amphtml-story-navigation-help-overlay{background:transparent!important}.show-first-page-overlay .prev-page{background:linear-gradient(90deg,rgba(0,0,0,.5),transparent)!important}[dir=rtl].show-first-page-overlay .prev-page{background:linear-gradient(270deg,rgba(0,0,0,.5),transparent)!important}.show-first-page-overlay .next-page{opacity:0!important}.show-first-page-overlay .i-amphtml-story-hint-placeholder{display:none!important}.show-first-page-overlay .i-amphtml-story-navigation-help-overlay{padding:0px!important}.i-amphtml-story-hint-container .next-page{-ms-flex:3!important;flex:3!important;background-image:linear-gradient(#e0d5d5 60%,hsla(0,0%,100%,0) 0)!important;background-position:0!important;background-size:1px 15px!important;background-repeat:repeat-y!important}[dir=rtl].i-amphtml-story-hint-container .next-page{border-left:none!important;background-position:100%!important}.show-first-page-overlay .i-amphtml-story-navigation-help-overlay,.show-navigation-overlay .i-amphtml-story-navigation-help-overlay{display:-ms-flexbox!important;display:flex!important}.show-first-page-overlay .prev-page .i-amphtml-story-hint-tap-button{visibility:hidden}.show-navigation-overlay .prev-page .i-amphtml-story-hint-tap-button-icon:before{content:""!important;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 24 24"><path d="M15.4 7.4 14 6l-6 6 6 6 1.4-1.4-4.6-4.6z"/><path fill="none" d="M0 0h24v24H0z"/></svg>\')!important;width:30px!important;height:30px!important;display:inline-block!important}[dir=rtl].show-navigation-overlay .prev-page .i-amphtml-story-hint-tap-button-icon:before{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 24 24"><path d="M10 6 8.6 7.4l4.6 4.6-4.6 4.6L10 18l6-6z"/><path fill="none" d="M0 0h24v24H0z"/></svg>\')!important}.i-amphtml-story-hint-container .i-amphtml-story-hint-tap-button{position:relative!important;width:44px!important;height:44px!important}.i-amphtml-story-hint-tap-button:after,.i-amphtml-story-hint-tap-button:before{position:absolute!important;content:""!important;width:44px!important;height:44px!important;border-radius:50%!important;background-color:hsla(0,0%,100%,.5)!important;left:0!important;right:0!important}.i-amphtml-story-hint-tap-button:before{animation:expandingBubble 1000ms cubic-bezier(0.4,0,0.2,1) infinite!important}.i-amphtml-story-hint-tap-button:after{background-color:#fff!important}.i-amphtml-story-hint-container .i-amphtml-story-hint-tap-button-icon{position:absolute!important;z-index:1!important;height:44px!important;width:44px!important;display:-ms-flexbox!important;display:flex!important;-ms-flex-pack:center!important;justify-content:center!important;-ms-flex-align:center!important;align-items:center!important}.i-amphtml-story-hint-tap-button-icon:after,.i-amphtml-story-hint-tap-button-icon:before{vertical-align:middle!important;margin:0 2px!important;background-position:50%}.next-page .i-amphtml-story-hint-tap-button-icon:after{content:""!important;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 24 24"><path d="M10 6 8.6 7.4l4.6 4.6-4.6 4.6L10 18l6-6z"/><path fill="none" d="M0 0h24v24H0z"/></svg>\')!important;width:24px!important;height:24px!important;display:inline-block!important}[dir=rtl] .next-page .i-amphtml-story-hint-tap-button-icon:after{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 24 24"><path d="M15.4 7.4 14 6l-6 6 6 6 1.4-1.4-4.6-4.6z"/><path fill="none" d="M0 0h24v24H0z"/></svg>\')!important}.i-amphtml-story-hint-placeholder{top:50%!important;position:absolute!important;display:-ms-flexbox!important;display:flex!important;-ms-flex-direction:column!important;flex-direction:column!important;-ms-flex-align:center!important;align-items:center!important}.i-amphtml-story-hint-container .i-amphtml-story-hint-tap-button-text{color:#fff!important;font-size:16px!important;font-family:Roboto-Medium,sans-serif!important;margin-top:24px!important;text-align:center!important;word-break:break-word!important;padding:0 6px!important}@keyframes expandingBubble{0%{transform:scale(1);opacity:0}50%{transform:scale(1.5);opacity:1}to{transform:scale(1);opacity:0}}\n/*# sourceURL=/extensions/amp-story/1.0/amp-story-hint.css*/');t.Gc.mutate(function(){t.NS.appendChild(i)})}),this.Lg.subscribe(Gi.RTL_STATE,function(i){t.OS(i)},!0),this.Lg.subscribe(Gi.SYSTEM_UI_IS_VISIBLE_STATE,function(i){t.zS(i)}),this.Lg.subscribe(Gi.INTERACTIVE_COMPONENT_STATE,function(i){t.RS(1===i.state)}))},i.jS=function(t){var i=this;0===this.Lg.get(Gi.UI_STATE)&&(this.build(),this.Gc.mutate(function(){i.MS.classList.toggle(br,t==br),i.MS.classList.toggle(Ar,t==Ar),i.MS.classList.remove("i-amphtml-hidden");var e=t==br?3e3:275;i.hideAfterTimeout(e)}))},i.showNavigationOverlay=function(){this.Lg.get(Gi.SHARE_MENU_STATE)||this.jS(br)},i.showFirstPageHintOverlay=function(){this.jS(Ar)},i.hideAfterTimeout=function(t){var i=this;this.IS=this.Xo.delay(function(){return i.CS()},t)},i.hideAllNavigationHint=function(){this.CS(),null!==this.IS&&(this.Xo.cancel(this.IS),this.IS=null)},i.CS=function(){var t=this;this.MS&&this.Gc.mutate(function(){t.MS.classList.add("i-amphtml-hidden")})},i.OS=function(t){var i=this;this.Gc.mutate(function(){t?i.MS.setAttribute("dir","rtl"):i.MS.removeAttribute("dir")})},i.zS=function(t){t||this.hideAllNavigationHint()},i.RS=function(t){t&&this.hideAllNavigationHint()},t}(),Sr=function(){function t(t,i){this.t=t,this.ri=null,this.Lg=Ui(this.t),this.qg=he(this.t,i),this.NS=i,this.oa=bi(i),this.yh=Ti(i)}var i=t.prototype;return i.build=function(){var t=this;if(this.ri)return o();var i=vi(this.NS).canonicalUrl,e=Ct("a",{class:"i-amphtml-story-info-moreinfo",target:"_blank","i-amphtml-i18n-text-content":"26"});return this.ri=Ct("div",{class:"i-amphtml-story-info-dialog i-amphtml-story-system-reset",onClick:function(i){i.target===i.currentTarget&&t.hx()}},Ct("div",{class:"i-amphtml-story-info-dialog-container",onClick:function(i){t.PS(i)}},Ct("h1",{class:"i-amphtml-story-info-heading","i-amphtml-i18n-text-content":"25"}),Ct("a",{class:"i-amphtml-story-info-link",href:i},i.replace(/([/.]+)/gi,"$1​")),e)),this.Ug(),Promise.all([Qe(this.ri,this.NS),this.oa.mutateElement(this.NS,function(){var i=Ie(Ct("div",null),t.ri,':host{all:initial!important;color:initial!important}.i-amphtml-story-info-dialog{position:absolute!important;top:0!important;left:0!important;height:100%!important;width:100%!important;z-index:100001!important;transform:translate3d(0,-100%,0)!important;transition-delay:0.15s!important}.i-amphtml-story-info-dialog-visible{transform:translateZ(0)!important;transition-delay:0s!important}.i-amphtml-story-info-dialog:before{content:""!important;position:absolute!important;top:0!important;left:0!important;height:100%!important;width:100%!important;background:#000!important;opacity:0!important;transition:opacity 0.15s cubic-bezier(0.4,0.0,1,1)!important}.i-amphtml-story-info-dialog.i-amphtml-story-info-dialog-visible:before{opacity:0.55!important;transition:opacity 0.2s cubic-bezier(0.0,0.0,0.2,1)!important}.i-amphtml-story-info-dialog-container{position:absolute!important;top:0!important;left:0!important;right:0!important;height:auto!important;background:#fff!important;border-radius:0 0 8px 8px!important;transform:translate3d(0,-100%,0)!important;transition:transform 0.15s cubic-bezier(0.4,0.0,1,1)!important;padding:20px!important;font-family:Roboto,sans-serif!important}.i-amphtml-story-info-dialog-visible .i-amphtml-story-info-dialog-container{transform:translateZ(0)!important;transition:transform 0.2s cubic-bezier(0.0,0.0,0.2,1)!important}.i-amphtml-story-info-heading{display:block!important;font-size:14px!important;font-weight:700!important;margin:0 0 8px!important}.i-amphtml-story-info-link{color:#000!important;display:block!important;margin:0!important;opacity:0.64!important;font-size:12px!important;text-decoration:none!important}.i-amphtml-story-info-moreinfo{color:#4285f4!important;display:none!important;font-family:Roboto-Medium,sans-serif!important;font-size:12px!important;letter-spacing:0.5px!important;margin:16px 0 0;text-decoration:none!important}.i-amphtml-story-info-moreinfo.i-amphtml-story-info-moreinfo-visible{display:block!important}\n/*# sourceURL=/extensions/amp-story/1.0/amp-story-info-dialog.css*/');t.NS.appendChild(i)}),this.DS().then(function(i){if(i)return t.oa.mutateElement(t.NS,function(){e.classList.add("i-amphtml-story-info-moreinfo-visible"),e.setAttribute("href",i)})})])},i.Ug=function(){var t=this;this.Lg.subscribe(Gi.INFO_DIALOG_STATE,function(i){t.LS(i)})},i.LS=function(t){var i=this;this.oa.mutateElement(this.ri,function(){i.ri.classList.toggle("i-amphtml-story-info-dialog-visible",t)}),this.ri[oe]="amp-story-info-dialog",this.qg.triggerEvent(t?ae:se,this.ri)},i.PS=function(t){var i=R(t.target,function(t){return M(t,"a[href]")});i&&(Ge(i,this.ri),t.preventDefault())},i.hx=function(){this.Lg.dispatch(18,!1)},i.DS=function(){var t=this;return this.yh.isEmbedded()?this.yh.sendMessageAwaitResponse("moreInfoLinkUrl",void 0).then(function(i){return i?xi(t.NS).assertAbsoluteHttpOrHttpsUrl(i):null}):Promise.resolve(null)},t}(),wr=function(){function t(t,i){this.t=t,this.Bg=i,this.qg=he(t,i),this.Lg=Ui(t),this.US=Ct("amp-story-share-menu",null),i.appendChild(this.US),this.YS=!1,this.Ug()}var i=t.prototype;return i.Ug=function(){var t=this;this.Lg.subscribe(Gi.SHARE_MENU_STATE,function(i){i&&(t.HS()?(t.VS(),t.hx()):t.GS()),t.qg.triggerEvent(i?ae:se,t.US)})},i.HS=function(){var t=Ti(this.Bg),i=Ei(this.t),e=t.isWebviewEmbedded()&&i.isChrome();return"share"in navigator&&!e},i.VS=function(){var t=this.t.navigator,i={url:vi(ti(this.Bg)).canonicalUrl,text:this.t.document.title};t.share(i).catch(function(t){Wt().warn("amp-story-share",t.message,i)})},i.GS=function(){this.YS||(this.YS=!0,yi(this.t).installExtensionForDoc(ti(this.Bg),"amp-story-share-menu","0.1"))},i.hx=function(){this.Lg.dispatch(29,!1)},t}(),xr="amp-story-viewer-messaging-handler",Tr={CAPTIONS_STATE:{dataSource:0,property:Gi.CAPTIONS_STATE},CURRENT_PAGE_ID:{dataSource:0,property:Gi.CURRENT_PAGE_ID},EDUCATION_STATE:{dataSource:0,property:Gi.EDUCATION_STATE},MUTED_STATE:{dataSource:0,property:Gi.MUTED_STATE},PAGE_ATTACHMENT_STATE:{dataSource:0,property:Gi.PAGE_ATTACHMENT_STATE},UI_STATE:{dataSource:0,property:Gi.UI_STATE},DESKTOP_ASPECT_RATIO:{dataSource:0,property:Gi.DESKTOP_ASPECT_RATIO},STORY_PROGRESS:{dataSource:2,property:ie},STORY_PAGE_COUNT:{dataSource:2,property:Qi}},_r={CAPTIONS_STATE:{action:25,isValueValid:function(t){return"boolean"==typeof t}},MUTED_STATE:{action:21,isValueValid:function(t){return"boolean"==typeof t}}},Pr=function(){function t(t,i){this.Lg=Ui(t),this.Hg=ne(t),this.yh=i}var i=t.prototype;return i.startListening=function(){var t=this;this.yh.onMessageRespond("getDocumentState",function(i){return t.BS(i)}),this.yh.onMessage("onDocumentState",function(i){return t.FS(i)}),this.yh.onMessageRespond("setDocumentState",function(i){return t.WS(i)}),this.yh.onMessageRespond("customDocumentUI",function(i){return t.ZS(i)})},i.send=function(t,i){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.yh.sendMessage(t,i,e)},i.onMessage=function(t,i){this.yh.onMessage(t,i)},i.BS=function(){var t,i=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).state,e=Tr[i];if(!e)return Promise.reject("Invalid 'state' parameter");switch(e.dataSource){case 0:t=this.Lg.get(e.property);break;case 2:t=this.Hg.get()[e.property];break;default:Ft().error(xr,"Unknown data source %s.",e.dataSource)}return Promise.resolve({state:i,value:t})},i.FS=function(){var t=this,i=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).state,e=Tr[i];e?this.Lg.subscribe(e.property,function(e){t.yh.sendMessage("documentStateUpdate",{state:i,value:e})}):Wt().error(xr,"Invalid 'state' parameter")},i.WS=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.state,e=t.value,n=_r[i];return n?n.isValueValid(e)?(this.Lg.dispatch(n.action,e),Promise.resolve({state:i,value:e})):Promise.reject("Invalid 'value' parameter"):Promise.reject("Invalid 'state' parameter")},i.ZS=function(t){this.Lg.dispatch(13,t.controls)},t}(),kr="transform ".concat(ir,"ms linear"),Or=2,Lr=20,Ir=function(){function t(t,i){this.t=t,this.gs=null,this.XS=0,this.qS=0,this.$S=1,this.vu=function(t){return Xt(t,"ampdoc")}(this.t).getSingleDoc(),this.oa=bi(this.vu),this.KS=A(),this.Lg=Ui(this.t),this.JS="",this.sm=[],this.QS=o(),this.tE=0,this.Bg=i}t.create=function(i,e){return new t(i,e)};var i=t.prototype;return i.build=function(t){var i=this;if(this.gs)return this.gs;var e,n=Ct("ol",{"aria-hidden":"true",class:"i-amphtml-story-progress-bar"+(this.iE()?"":" i-amphtml-story-progress-bar-exp-disabled")});return this.gs=n,this.Bg.addEventListener(Yi,function(){i.nE()}),this.Lg.subscribe(Gi.PAGE_IDS,function(t){var e=!!n.parentElement;i.QS=i.oa.mutateElement(n,function(){e&&i.rE(),t.forEach(function(t){i.oE(t)&&!i.iE()||t in i.KS||i.aE(t)}),i.XS>Lr&&(i.sE(i.qS),i.Di(!1)),n.classList.toggle("i-amphtml-progress-bar-overflow",i.XS>Lr)}),e&&i.updateProgress(i.JS,i.$S,!0)},!0),this.Lg.subscribe(Gi.RTL_STATE,function(t){i.OS(t)},!0),this.Lg.subscribe(Gi.UI_STATE,function(t){i.gx(t)},!0),(e=this.vu,Zt(e,"viewport")).onResize(Rt(this.t,function(){return i.eE()},300)),n},i.iE=function(){var t=hi(this.t,ui);return t&&t!=ci},i.oE=function(t){return t.startsWith("i-amphtml-ad-")},i.nE=function(){this.XS>Lr&&(this.tE=0,this.Di(!1))},i.Di=function(){var t=this,i=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.uE().then(function(e){var n=-(t.tE-t.hE())*(Or+4);t.oa.mutateElement(t.cE(),function(){t.cE().classList.toggle("i-amphtml-animate-progress",i);for(var r=0;r<t.XS;r++){var o=r>=t.tE&&r<t.tE+Lr?e:Or;t.lE(t.sm[r],n,o),n+=o+4}})})},i.lE=function(t,i,e){this.Lg.get(Gi.RTL_STATE)&&(i*=-1),t.setAttribute("style","transform: translate3d(".concat(i,"px, 0px, 0.00001px) scaleX(").concat(e/Or,");"))},i.uE=function(){var t=this,i=(this.mE()+this.hE())*(Or+4);return this.pE().then(function(e){return(e-i)/Math.min(t.XS,Lr)-4})},i.pE=function(){var t=this;return this.oa.measureElement(function(){return t.cE().getBoundingClientRect().width})},i.mE=function(){var t=this.XS-(this.tE+Lr);return t>3?3:Math.max(t,0)},i.hE=function(){return Math.min(3,this.tE)},i.fE=function(){if(this.qS>=this.tE+Lr){var t=this.tE+Lr+5-1;this.tE+=t<this.XS?5:this.XS-(this.tE+Lr),this.Di()}else this.qS<this.tE&&(this.tE-=this.tE-5<0?this.tE:5,this.Di())},i.OS=function(t){var i=this;this.oa.mutateElement(this.cE(),function(){t?i.cE().setAttribute("dir","rtl"):i.cE().removeAttribute("dir")})},i.eE=function(){(this.cE().classList.contains("i-amphtml-progress-bar-overflow")||this.XS>Lr)&&(this.sE(this.qS),this.Di(!1))},i.gx=function(t){switch(t){case 2:Lr=70,Or=3;break;case 0:Lr=20,Or=2;break;default:Lr=20}},i.dE=function(t){var i=Ct("li",{class:"i-amphtml-story-page-progress-bar"},Ct("div",{class:"i-amphtml-story-page-progress-value"+(t?" i-amphtml-story-ad-progress-value":"")}));this.cE().appendChild(i),this.sm.push(i)},i.rE=function(){!function(t){for(;t.firstChild;)t.removeChild(t.firstChild)}(jt(this.gs)),this.KS=A(),this.XS=0,this.sm=[]},i.aE=function(t){this.KS[t]=this.XS++,this.dE(this.oE(t))},i.cE=function(){return this.gs},i.vE=function(t){jt(E(this.KS,t))},i.updateProgress=function(t,i){var e=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.QS.then(function(){e.vE(t);var r=e.KS[t];e.yE(r,i),(e.qS!==r||n)&&e.gE(r,i,e.qS,e.$S),e.$S=i,e.qS=r,e.JS=t,e.XS>Lr&&e.fE()})},i.sE=function(t){t>Lr&&t+Lr<this.XS?this.tE=t-t%Lr:this.tE=t>Lr?this.XS-Lr:0},i.gE=function(t,i,e,n){var r=!1;1===n&&1===i&&(r=!0),t>e&&1!==i&&(r=!0),e>t&&1===i&&(r=!0);for(var o=0;o<this.XS;o++)if(o!==t){var a=o<t?1:0,s=!!r&&o===e;this.yE(o,a,s)}},i.yE=function(t,i){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=t+1,r=N(this.cE(),".i-amphtml-story-page-progress-bar:nth-child(".concat(function(t){var i=String(t);return S(-1===i.indexOf(")")),i}(n),") .i-amphtml-story-page-progress-value"));this.oa.mutateElement(jt(r),function(){var t="none";e&&(t=1===i||0===i?"transform 200ms ease":kr),X(jt(r),{transform:et("".concat(i,",1")),transition:t})})},t}(),Nr="ad-showing",Cr="muted",Mr="paused",Rr="info",Dr="i-amphtml-story-captions-control",Ur="i-amphtml-story-nocaptions-control",Gr="i-amphtml-story-mute-audio-control",zr="i-amphtml-story-close-control",Br="i-amphtml-story-skip-to-next",Hr="i-amphtml-story-viewer-custom-control",Wr="i-amphtml-story-unmute-audio-control",Vr="i-amphtml-story-pause-control",Fr="i-amphtml-story-play-control",jr="i-amphtml-current-page-has-audio",qr="i-amphtml-story-share-control",Yr="i-amphtml-story-info-control",Xr="i-amphtml-story-has-new-page",Kr="i-amphtml-story-attribution",Zr="__AMP_VIEWER_CONTROL_EVENT_NAME__",$r=(f(dr={},"share",{selector:".".concat(qr)}),f(dr,"close",{selector:".".concat(zr)}),f(dr,"skip-next",{selector:".".concat(Br)}),f(dr,"skip-to-next",{selector:".".concat(Br)}),dr),Jr=function(){function t(t,i){this.t=t,this.NS=i,this.gs=null,this.bE=null,this.xE=null,this.wE=Ir.create(t,this.NS),this.Lg=Ui(this.t),this.Gc=_i(this.t),this.Xo=wi(this.t),this.cA=null,this.yh=null,this.kE=null}var i=t.prototype;return i.build=function(t){var i=this,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.gs||(this.bE=function(t,i,e){var n=Ct("aside",{class:"i-amphtml-story-system-layer i-amphtml-story-system-reset"},i,Ct("a",{class:String(Kr),target:"_blank"},Ct("div",{class:"i-amphtml-story-attribution-logo-container"},Ct("img",{alt:"",class:"i-amphtml-story-attribution-logo"})),Ct("div",{class:"i-amphtml-story-attribution-text"})),Ct("div",{class:"i-amphtml-story-has-new-page-notification-container"},Ct("div",{class:"i-amphtml-story-has-new-page-text-wrapper"},Ct("span",{class:"i-amphtml-story-has-new-page-circle-icon"}),Ct("div",{class:"i-amphtml-story-has-new-page-text","i-amphtml-i18n-text-content":"64"}))),Ct("div",{class:"i-amphtml-story-system-layer-buttons"},Ct("div",{role:"button",class:Yr+" i-amphtml-story-button","i-amphtml-i18n-aria-label":"68"}),Ct("div",{class:"i-amphtml-story-captions-display"},Ct("button",{class:Dr+" i-amphtml-story-button","i-amphtml-i18n-aria-label":"111"}),Ct("button",{class:Ur+" i-amphtml-story-button","i-amphtml-i18n-aria-label":"112"})),Ct("div",{class:"i-amphtml-story-sound-display"},Ct("button",{class:Wr+" i-amphtml-story-button","i-amphtml-i18n-aria-label":"67"}),Ct("button",{class:Gr+" i-amphtml-story-button","i-amphtml-i18n-aria-label":"66"})),Ct("div",{class:"i-amphtml-paused-display"},Ct("button",{class:Vr+" i-amphtml-story-button","i-amphtml-i18n-aria-label":"85"}),Ct("button",{class:Fr+" i-amphtml-story-button","i-amphtml-i18n-aria-label":"86"})),Ct("button",{class:Br+" i-amphtml-story-ui-hide-button i-amphtml-story-button","i-amphtml-i18n-aria-label":"88"}),Ct("button",{class:qr+" i-amphtml-story-button","i-amphtml-i18n-aria-label":"69"}),Ct("button",{class:zr+" i-amphtml-story-ui-hide-button i-amphtml-story-button","i-amphtml-i18n-aria-label":"87"})),Ct("div",{class:"i-amphtml-story-system-layer-buttons-start-position"}));return e||n.classList.add("i-amphtml-story-hidden"),n}(this.NS,this.wE.build(t),e),Qe(this.bE,this.NS),this.bE.querySelector(".i-amphtml-story-share-control").href=vi(this.NS).canonicalUrl,this.gs=Ie(Ct("div",{class:"i-amphtml-system-layer-host"}),this.bE,'.i-amphtml-story-system-layer{background:linear-gradient(180deg,#0004,#0002 33%,#0001 67%,#0000)!important;position:absolute!important;display:-ms-flexbox!important;display:flex!important;-ms-flex-pack:justify!important;justify-content:space-between!important;top:0!important;left:0!important;right:0!important;height:140px!important;z-index:100000!important;transition:opacity 0.3s cubic-bezier(0,0,0.2,1)!important;pointer-events:none!important;font-family:Roboto,sans-serif!important}.i-amphtml-story-hidden.i-amphtml-story-system-layer{opacity:0!important;transition:opacity 0.15s cubic-bezier(0.4,0,1,1)!important}.i-amphtml-story-hidden.i-amphtml-story-system-layer *{pointer-events:none!important}.i-amphtml-story-attribution{top:0!important;border:none!important;pointer-events:auto!important;cursor:pointer!important;padding:6px 8px 0!important;height:48px!important;place-items:center!important;display:-ms-flexbox!important;display:flex!important;text-decoration:none!important;overflow:hidden!important;visibility:hidden!important}.i-amphtml-story-attribution-visible{visibility:visible!important}[desktop] .i-amphtml-story-attribution{padding:6px 6px 0!important;left:0!important;right:0!important}.i-amphtml-story-attribution>*{margin:0px 4px!important}.i-amphtml-story-attribution-logo-container{display:grid!important;place-items:center!important}.i-amphtml-story-attribution-logo{border-radius:100%!important;border:1px solid #d4d4d4!important;width:28px!important;height:28px!important;-o-object-fit:cover!important;object-fit:cover!important;box-shadow:0px 0px 6px rgba(0,0,0,.12)!important}.i-amphtml-story-attribution-text{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:13px!important;font-weight:500!important;text-shadow:0px 0px 6px rgba(0,0,0,.16)!important;color:#fff!important}.i-amphtml-story-system-layer-buttons,.i-amphtml-story-system-layer-buttons-start-position{display:-ms-flexbox!important;display:flex!important;-ms-flex-direction:row!important;flex-direction:row!important;-ms-flex-pack:end!important;justify-content:flex-end!important;padding:8px 4px!important;box-sizing:border-box!important;-ms-flex:1!important;flex:1!important}.i-amphtml-story-system-layer-buttons-start-position{position:absolute!important;top:0!important;-ms-flex-pack:start!important;justify-content:flex-start!important}[desktop] .i-amphtml-story-system-layer-buttons{padding:8px 4px 0!important}.i-amphtml-story-system-layer-buttons .i-amphtml-story-ui-hide-button.i-amphtml-story-button{display:none!important}.i-amphtml-story-button{height:48px!important;width:48px!important;cursor:pointer!important;border:none!important;pointer-events:auto!important;background:none!important}[desktop] .i-amphtml-story-button{margin:0 4px!important}.i-amphtml-story-button:active{background-color:rgba(0,0,0,.2)!important}.i-amphtml-story-progress-bar{border:0!important;display:-ms-flexbox!important;display:flex!important;height:2px!important;left:0!important;right:0!important;top:0!important;margin:6px 10px 0!important;padding:0 2px!important;position:absolute!important;visibility:visible!important;z-index:100001!important;overflow:hidden!important}[ad-showing] .i-amphtml-story-progress-bar-exp-disabled.i-amphtml-story-progress-bar{display:none!important}[ad-showing] .i-amphtml-story-attribution{visibility:hidden!important}[ad-showing] .i-amphtml-story-share-control{display:none!important}[ad-showing]:not([i-amphtml-current-page-has-audio]) .i-amphtml-story-mute-audio-control,[ad-showing]:not([i-amphtml-current-page-has-audio]) .i-amphtml-story-unmute-audio-control{visibility:hidden!important}.i-amphtml-story-page-progress-bar{background:hsla(0,0%,100%,.4)!important;border-radius:1px!important;height:100%!important;list-style-type:none!important;margin:0 2px!important;overflow:hidden!important;width:100%!important}.i-amphtml-story-page-progress-value{background:#fff!important;height:100%!important;width:100%!important;transform:translateZ(0) scaleX(0)!important;transform-origin:left!important}.i-amphtml-story-ad-progress-value{background-color:#fbc02d!important}[dir=rtl] .i-amphtml-story-page-progress-value{transform-origin:right!important}[i-amphtml-story-has-new-page=noshow] .i-amphtml-story-has-new-page-notification-container{transition:opacity 1.5s,visibility 1.5s!important;opacity:0!important;visibility:hidden!important}.i-amphtml-last-page-active[i-amphtml-story-has-new-page=show] .i-amphtml-story-has-new-page-notification-container{transition:opacity 1.5s,visibility 1.5s!important;opacity:1!important;visibility:visible!important}.i-amphtml-story-mute-text,.i-amphtml-story-unmute-no-sound-text,.i-amphtml-story-unmute-sound-text{width:max-content!important;color:#fff!important}.i-amphtml-story-sound-display{display:inline-block!important;height:46px!important;position:relative!important}.i-amphtml-story-captions-control,.i-amphtml-story-mute-audio-control,.i-amphtml-story-mute-text,.i-amphtml-story-no-audio-ui .i-amphtml-story-sound-display,.i-amphtml-story-nocaptions-control,.i-amphtml-story-pause-control,.i-amphtml-story-play-control,.i-amphtml-story-skip-to-next,.i-amphtml-story-unmute-audio-control,.i-amphtml-story-unmute-no-sound-text,.i-amphtml-story-unmute-sound-text{display:none!important}.i-amphtml-story-system-layer:not([desktop]):not(.i-amphtml-story-desktop-one-panel):not(.amp-mode-keyboard-active) .i-amphtml-paused-display button:not(:focus){margin:0!important;padding:0!important;width:0px!important;opacity:0!important;pointer-events:none!important}[i-amphtml-current-page-has-audio]:not([muted]) .i-amphtml-story-mute-audio-control,[i-amphtml-current-page-has-audio][muted] .i-amphtml-story-unmute-audio-control,[i-amphtml-current-page-has-captions]:not([captions-on]) .i-amphtml-story-nocaptions-control,[i-amphtml-current-page-has-captions][captions-on] .i-amphtml-story-captions-control{display:block!important}.i-amphtml-story-system-layer-buttons button[disabled][disabled]{display:none!important}.i-amphtml-story-has-playback-ui:not([paused]) .i-amphtml-story-pause-control,.i-amphtml-story-has-playback-ui[paused] .i-amphtml-story-play-control{display:block!important}.i-amphtml-story-ui-no-buttons .i-amphtml-story-button,.i-amphtml-story-ui-no-buttons .i-amphtml-story-system-layer-buttons{visibility:hidden!important}.i-amphtml-story-unmute-audio-control{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none"><path fill="%23fff" fill-rule="evenodd" d="M27.53 16.97a.95.95 0 0 1 1.1-.76c.75.13 2.28.7 3.63 1.9a7.71 7.71 0 0 1 2.62 5.95c0 1.86-.55 3.32-1.33 4.45l-1.38-1.37c.48-.8.8-1.81.8-3.08 0-2.16-.92-3.59-1.97-4.53a6.4 6.4 0 0 0-2.7-1.45.95.95 0 0 1-.77-1.1Z" clip-rule="evenodd"/><path fill="%23fff" fill-rule="evenodd" d="M27.54 21.03a.95.95 0 0 1 1.14-.72c.7.16 2.5 1.19 2.5 3.71 0 .7-.15 1.28-.36 1.76l-1.56-1.52c.05-.6-.07-1.25-.48-1.71-.23-.26-.47-.36-.51-.38 0 0-.01 0 0 0a.95.95 0 0 1-.73-1.14" clip-rule="evenodd"/><path fill="%23fff" d="M23.4 16.79v1.56l1.9 1.9v-4.27c0-.3-.12-.6-.29-.84a1.6 1.6 0 0 0-.7-.57c-.29-.11-.61-.16-.9-.1-.3.06-.61.21-.82.42l-1.31 1.34 1.33 1.34.8-.78Z"/><path stroke="%23fff" stroke-linecap="round" stroke-width="1.9" d="m20.12 18.73-1.76 1.81h-2.59c-.94 0-1.7.76-1.7 1.7v3.45c0 .93.75 1.68 1.67 1.7l2.6.04 4.9 4.9a.65.65 0 0 0 1.1-.46v-9.1"/><path stroke="%23fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m17.13 15.36 17.2 17.19"/><path stroke="%23fff" stroke-linecap="round" stroke-width="1.9" d="M28.47 30.84A7.2 7.2 0 0 0 31 29.67"/></svg>\')!important}.i-amphtml-story-mute-audio-control{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none"><path stroke="%23fff" stroke-linecap="round" stroke-width="1.9" d="M28.47 17.14c1.15.2 5.46 1.98 5.46 6.92 0 4.95-4.39 6.63-5.46 6.83"/><path stroke="%23fff" stroke-linecap="round" stroke-width="1.8" d="M28.47 21.24c.37.08 1.75.79 1.75 2.78s-1.4 2.67-1.75 2.74"/><path stroke="%23fff" stroke-linecap="round" stroke-width="1.9" d="m18.36 27.48 4.88 4.9a.65.65 0 0 0 1.1-.46V16.09c0-.58-.7-.87-1.1-.45l-4.88 4.94h-2.59c-.94 0-1.7.77-1.7 1.7v3.45c0 .93.75 1.69 1.67 1.7z"/></svg>\')!important}:host(.i-amphtml-story-highlight-mute-audio-control) .i-amphtml-story-mute-audio-control:before{content:""!important;position:absolute!important;width:42px!important;height:42px!important;border-radius:50%!important;background-color:#b1b1b1!important;inset:0!important;margin:auto!important;opacity:0;animation:expand-fade 10s ease-in-out!important}@keyframes expand-fade{0%,40%{transform:scale(0)}50%,90%{transform:scale(1);opacity:0.5}to{opacity:0}}.i-amphtml-story-captions-control{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none"><path fill="%23fff" d="M28.9 15.4h-9.8a5.4 5.4 0 0 0-5.4 5.3v6.6a5.4 5.4 0 0 0 5.4 5.3h9.8a5.4 5.4 0 0 0 5.4-5.3v-6.6a5.4 5.4 0 0 0-5.4-5.3m1 6h-1.7a1.1 1.1 0 0 0-1.1 1.2v2.8a1.1 1.1 0 0 0 1.1 1.1h1.6c.6 0 1 .5 1 1 0 .7-.4 1.2-1 1.2h-1.6a3.3 3.3 0 0 1-3.3-3.3v-2.8a3.3 3.3 0 0 1 3.3-3.3h1.6c.6.1 1 .6 1 1.1 0 .6-.4 1-1 1Zm-8.1 0H20a1.1 1.1 0 0 0-1 1.2v2.8a1.1 1.1 0 0 0 1 1.1h1.6c.6 0 1.1.5 1.1 1 0 .7-.5 1.2-1 1.2h-1.6a3.3 3.3 0 0 1-3.3-3.3v-2.8a3.3 3.3 0 0 1 3.3-3.3h1.6c.5.1 1 .6 1 1.1a1.1 1.1 0 0 1-1 1Z"/></svg>\')!important;width:52px!important}.i-amphtml-story-nocaptions-control{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none"><rect width="18.74" height="15.43" x="14.63" y="16.29" stroke="%23fff" stroke-width="1.85" rx="4.42"/><path stroke="%23fff" stroke-linecap="round" stroke-width="1.85" d="M22.4 20.38h-1.63a2.2 2.2 0 0 0-2.2 2.2v2.84c0 1.21.98 2.2 2.2 2.2h1.63m7.07-7.24h-1.63a2.2 2.2 0 0 0-2.2 2.2v2.84c0 1.21.98 2.2 2.2 2.2h1.63"/></svg>\')!important;width:52px!important}.i-amphtml-story-pause-control{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none"><path stroke="%23fff" stroke-linecap="round" stroke-width="2.1" d="M20.33 16.86v15.4m7.34-15.4v15.4"/></svg>\')!important}.i-amphtml-story-play-control{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none"><path stroke="%23fff" stroke-linecap="round" stroke-width="1.9" d="M17.74 30.34V18.53a1.8 1.8 0 0 1 2.77-1.52l9.23 5.92a1.8 1.8 0 0 1 0 3.03l-9.23 5.9a1.8 1.8 0 0 1-2.77-1.52Z"/></svg>\')!important}.i-amphtml-story-share-control{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none"><path fill="%23fff" d="m21.1 25.4 9.87-9.86 1.42 1.42-9.86 9.87z"/><path stroke="%23fff" stroke-linecap="round" stroke-width="1.9" d="m16.85 19.82 15.33-4.14c.04 0 .07.03.06.06l-4.02 15.34a1.6 1.6 0 0 1-2.97.33l-2.93-5.73-5.77-2.88a1.6 1.6 0 0 1 .3-2.98Z"/></svg>\')!important}.i-amphtml-story-info-control{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none"><rect width="2.2" height="6.7" x="22.9" y="22.6" fill="%23fff" rx="1.1"/><path stroke="%23fff" stroke-width="1.9" d="M31.7 24a7.7 7.7 0 1 1-15.4 0 7.7 7.7 0 0 1 15.4 0Z"/><circle cx="24" cy="20.2" r="1.2" fill="%23fff"/></svg>\')!important;display:none!important;background-size:auto!important}.i-amphtml-story-close-control{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none"><rect width="1.84" height="18.84" x="16.68" y="18" fill="%23fff" rx=".92" transform="rotate(-45 16.68 18)"/><rect width="1.84" height="18.84" x="30" y="16.7" fill="%23fff" rx=".92" transform="rotate(45 30 16.7)"/></svg>\')!important}.i-amphtml-story-skip-to-next{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none"><path stroke="%23fff" stroke-linecap="round" stroke-width="1.9" d="M17 29.2V18.8c0-1.2 1.4-2 2.5-1.3l7.5 5.2c1 .6 1 2 0 2.6l-7.5 5.2c-1 .7-2.5 0-2.5-1.3Z"/><rect width="1.8" height="15.6" x="30.2" y="16.2" fill="%23fff" rx=".9"/></svg>\')!important}[desktop] .i-amphtml-story-skip-to-next{display:block!important}.i-amphtml-story-has-new-page-notification-container{position:absolute!important;z-index:100002!important;top:32px!important;right:0!important;left:0!important;opacity:0!important}.i-amphtml-story-has-new-page-notification-container,.i-amphtml-story-has-new-page-text-wrapper{display:-ms-flexbox!important;display:flex!important;-ms-flex-pack:center!important;justify-content:center!important}.i-amphtml-story-has-new-page-text-wrapper{background-color:rgba(32,33,37,.8)!important;-ms-flex-align:center!important;align-items:center!important;padding:4px 10px 4px 0!important;border-radius:5px!important}[dir=rtl] .i-amphtml-story-has-new-page-text-wrapper{padding-right:0!important;padding-left:10px!important}.i-amphtml-story-has-new-page-text{color:#fff!important;font-size:16px!important;text-shadow:0px 0px 6px rgba(0,0,0,.36)!important;font-weight:700!important}.i-amphtml-story-has-new-page-circle-icon{background:#03ffa0!important;border-radius:50%!important;height:6px!important;width:6px!important;position:relative!important;box-shadow:0 0 0 2px rgba(3,255,160,.5)!important;margin:0px 10px!important}.i-amphtml-embedded.i-amphtml-first-page-active .i-amphtml-story-info-control{display:block!important}.i-amphtml-story-no-sharing .i-amphtml-story-info-control,.i-amphtml-story-no-sharing .i-amphtml-story-share-control{display:none!important}.i-amphtml-animate-progress li{transition:transform 0.8s cubic-bezier(0.4,0,0.2,1)!important}.i-amphtml-story-desktop-fullbleed .i-amphtml-story-progress-bar{height:3px!important}.i-amphtml-progress-bar-overflow .i-amphtml-story-page-progress-bar{border-radius:0px!important;list-style:none!important;margin:0 2px!important;width:2px!important;position:absolute!important;transform-origin:left!important}[dir=rtl].i-amphtml-progress-bar-overflow .i-amphtml-story-page-progress-bar{transform-origin:right!important}[desktop] .i-amphtml-progress-bar-overflow .i-amphtml-story-page-progress-bar{width:3px!important}.i-amphtml-story-desktop-one-panel.i-amphtml-story-system-layer{width:var(--i-amphtml-story-desktop-one-panel-width)!important;margin:auto!important;margin-top:var(\n --i-amphtml-story-desktop-one-panel-responsive-margin\n )!important;border-radius:var(\n --i-amphtml-story-desktop-one-panel-border-radius\n )!important}\n/*# sourceURL=/extensions/amp-story/1.0/amp-story-system-layer.css*/'),this.xE=this.bE.querySelector(".i-amphtml-story-system-layer-buttons"),this.Ug(),this.Lg.subscribe(Gi.CAN_SHOW_SYSTEM_LAYER_BUTTONS,function(t){i.bE.classList.toggle("i-amphtml-story-ui-no-buttons",!t)},!0),Ei(this.t).isIos()&&this.bE.setAttribute("ios",""),this.yh=Ti(this.t.document.documentElement),this.kE=this.yh.isEmbedded()?new Pr(this.t,this.yh):null,Me(this.yh,this.Lg)?(this.bE.classList.add("i-amphtml-embedded"),this.getShadowRoot().setAttribute(Rr,"")):this.getShadowRoot().removeAttribute(Rr),this.AE(),this.getShadowRoot().setAttribute(Xr,"noshow")),this.gs},i.AE=function(){if(this.yh&&"auto"===this.yh.getParam("attribution")){this.bE.querySelector(".i-amphtml-story-attribution-logo").src=Re(this.NS,"entity-logo-src")||Re(this.NS,"publisher-logo-src");var t=this.bE.querySelector(".".concat(O(Kr)));t.href=Re(this.NS,"entity-url")||xi(this.NS).getSourceOrigin(vi(this.NS).sourceUrl),this.bE.querySelector(".i-amphtml-story-attribution-text").textContent=this.NS.getAttribute("entity")||this.NS.getAttribute("publisher"),t.classList.add("i-amphtml-story-attribution-visible")}},i.Ug=function(){var t=this;this.getShadowRoot().addEventListener("click",function(i){var e=i.target;M(e,".".concat(Gr,", .").concat(Gr," *"))?t.TE(!0):M(e,".".concat(Wr,", .").concat(Wr," *"))?t.TE(!1):M(e,".".concat(Vr,", .").concat(Vr," *"))?t.SE(!0):M(e,".".concat(Fr,", .").concat(Fr," *"))?t.SE(!1):M(e,".".concat(Dr,", .").concat(Dr," *"))?t.EE(!1):M(e,".".concat(Ur,", .").concat(Ur," *"))?t.EE(!0):M(e,".".concat(qr,", .").concat(qr," *"))?t.PE(i):M(e,".".concat(Yr,", .").concat(Yr," *"))?t.OE():M(e,".".concat(Hr,", .").concat(Hr," *"))?t._E(i.target):M(e,".".concat(Kr,", .").concat(Kr," *"))&&Ge(R(e,function(t){return M(t,"a[href]")}),t.NS)}),this.Lg.subscribe(Gi.AD_STATE,function(i){t.ME(i)}),this.Lg.subscribe(Gi.CAN_SHOW_AUDIO_UI,function(i){t.IE(i)},!0),this.Lg.subscribe(Gi.CAN_SHOW_SHARING_UIS,function(i){t.NE(i)},!0),this.Lg.subscribe(Gi.STORY_HAS_PLAYBACK_UI_STATE,function(i){t.zE(i)},!0),this.Lg.subscribe(Gi.MUTED_STATE,function(i){t.Hr(i)},!0),this.Lg.subscribe(Gi.UI_STATE,function(i){t.Gc.mutate(function(){return t.gx(i)})}),this.gx(this.Lg.get(Gi.UI_STATE)),this.Lg.subscribe(Gi.PAUSED_STATE,function(i){t.RE(i)},!0),this.Lg.subscribe(Gi.CURRENT_PAGE_INDEX,function(i){t.jE(i)},!0),this.Lg.subscribe(Gi.RTL_STATE,function(i){t.OS(i)},!0),this.Lg.subscribe(Gi.KEYBOARD_ACTIVE_STATE,function(i){t.CE(i)},!0),this.Lg.subscribe(Gi.PAGE_HAS_CAPTIONS_STATE,function(i){return t.DE(i)},!0),this.Lg.subscribe(Gi.CAPTIONS_STATE,function(i){return t.LE(i)},!0),this.Lg.subscribe(Gi.PAGE_HAS_AUDIO_STATE,function(i){t.UE(i)},!0),this.Lg.subscribe(Gi.PAGE_HAS_ELEMENTS_WITH_PLAYBACK_STATE,function(i){t.YE(i)},!0),this.Lg.subscribe(Gi.SYSTEM_UI_IS_VISIBLE_STATE,function(i){t.zS(i)}),this.Lg.subscribe(Gi.NEW_PAGE_AVAILABLE_ID,function(){t.HE()}),this.Lg.subscribe(Gi.VIEWER_CUSTOM_CONTROLS,function(i){return t.VE(i)},!0)},i.getShadowRoot=function(){return this.bE},i.ME=function(t){t?this.getShadowRoot().setAttribute(Nr,""):this.getShadowRoot().removeAttribute(Nr)},i.IE=function(t){var i=this;this.Gc.mutate(function(){i.getShadowRoot().classList.toggle("i-amphtml-story-no-audio-ui",!t)})},i.NE=function(t){var i=this;this.Gc.mutate(function(){i.getShadowRoot().classList.toggle("i-amphtml-story-no-sharing",!t)})},i.zE=function(t){var i=this;this.Gc.mutate(function(){i.getShadowRoot().classList.toggle("i-amphtml-story-has-playback-ui",t)})},i.EE=function(t){this.Lg.dispatch(25,t)},i.UE=function(t){var i=this;t=t||!!this.Lg.get(Gi.STORY_HAS_BACKGROUND_AUDIO_STATE),this.Gc.mutate(function(){t?i.getShadowRoot().setAttribute(jr,""):i.getShadowRoot().removeAttribute(jr)})},i.DE=function(t){Pt(this.bE,"i-amphtml-current-page-has-captions",t)},i.LE=function(t){Pt(this.bE,"captions-on",t)},i.YE=function(t){var i=this;this.Gc.mutate(function(){d(i.getShadowRoot().querySelectorAll(".i-amphtml-paused-display button")).forEach(function(i){i.disabled=!t})})},i.Hr=function(t){var i=this;this.Gc.mutate(function(){t?i.getShadowRoot().setAttribute(Cr,""):i.getShadowRoot().removeAttribute(Cr)})},i.RE=function(t){var i=this;this.Gc.mutate(function(){t?i.getShadowRoot().setAttribute(Mr,""):i.getShadowRoot().removeAttribute(Mr)})},i.GE=function(t){var i=this;this.cA&&this.Xo.cancel(this.cA),this.cA=this.Xo.delay(function(){return i.BE(t)},1500)},i.BE=function(t){var i=this;this.gs&&this.Gc.mutate(function(){i.getShadowRoot().setAttribute(t,"noshow")})},i.gx=function(t){var i=this.getShadowRoot();switch(i.classList.remove("i-amphtml-story-desktop-fullbleed"),i.classList.remove("i-amphtml-story-desktop-one-panel"),i.removeAttribute("desktop"),t){case 2:i.setAttribute("desktop",""),i.classList.add("i-amphtml-story-desktop-fullbleed");break;case 4:i.classList.add("i-amphtml-story-desktop-one-panel")}},i.zS=function(t){var i=this;this.Gc.mutate(function(){var e=i.getShadowRoot();e.classList.toggle("i-amphtml-story-hidden",!t),d(e.querySelectorAll("button")).forEach(function(i){return function(t,i){i?(t.removeAttribute("tab-index"),t.removeAttribute("aria-hidden")):(t.setAttribute("tab-index","-1"),t.setAttribute("aria-hidden","true"))}(i,t)})})},i.jE=function(t){var i=this;this.Gc.mutate(function(){var e=i.Lg.get(Gi.PAGE_IDS).length-1;i.getShadowRoot().classList.toggle("i-amphtml-first-page-active",0===t),i.getShadowRoot().classList.toggle("i-amphtml-last-page-active",t===e)})},i.OS=function(t){var i=this;this.Gc.mutate(function(){t?i.getShadowRoot().setAttribute("dir","rtl"):i.getShadowRoot().removeAttribute("dir")})},i.CE=function(t){var i=this;this.Gc.mutate(function(){i.getShadowRoot().classList.toggle("amp-mode-keyboard-active",t)})},i.TE=function(t){this.Lg.dispatch(21,t)},i.SE=function(t){this.Lg.dispatch(zi,t)},i.PE=function(t){if(t.preventDefault(),t.target[Zr])this._E(t.target);else{var i=this.Lg.get(Gi.SHARE_MENU_STATE);this.Lg.dispatch(29,!i)}},i._E=function(t){var i=t[Zr];this.kE&&this.kE.send("documentStateUpdate",{state:"AMP_STORY_PLAYER_EVENT",value:i})},i.OE=function(){var t=this.Lg.get(Gi.INFO_DIALOG_STATE);this.Lg.dispatch(18,!t)},i.HE=function(){var t=this;this.Gc.mutate(function(){t.getShadowRoot().setAttribute(Xr,"show"),t.GE(Xr)})},i.VE=function(t){var i=this;t.length<=0||t.forEach(function(t){if(t.name){var e,n=$r[t.name];if(n&&n.selector?e=N(i.getShadowRoot(),n.selector):(e=Ct("button",{class:"i-amphtml-story-button"}),i.Gc.mutate(function(){i.xE.appendChild(e)})),i.Gc.mutate(function(){e.classList.add(Hr)}),"hidden"===t.visibility&&i.Gc.mutate(function(){e.classList.add("i-amphtml-story-ui-hide-button")}),t.visibility&&"visible"!==t.visibility||i.Gc.mutate(function(){e.classList.remove("i-amphtml-story-ui-hide-button")}),"disabled"===t.state&&i.Gc.mutate(function(){e.disabled=!0}),"start"===t.position){var r=i.bE.querySelector(".i-amphtml-story-system-layer-buttons-start-position");i.Gc.mutate(function(){i.xE.removeChild(e),r.appendChild(e)})}t.backgroundImageUrl&&X(e,{"background-image":"url('".concat(t.backgroundImageUrl,"')")}),e[Zr]="amp-story-player-".concat(t.name)}})},i.updateProgress=function(t,i){this.wE.updateProgress(t,i)},t}(),Qr="BACKGROUND-BLUR",to=function(){function t(t,i){this.t=t,this.ri=i,this.FE=null,this.WE=null,this.ZE=this.t.document.createElement("canvas"),this.ZE.width=this.ZE.height=3,this.vp=null,this.XE=!0}var i=t.prototype;return i.attach=function(){this.WE=this.t.document.createElement("canvas"),this.WE.width=this.WE.height=3,X(this.WE,{width:"100%",height:"100%",position:"absolute",left:0,top:0}),this.ri.appendChild(this.WE)},i.detach=function(){this.ri.removeChild(this.WE),cancelAnimationFrame(this.vp)},i.update=function(t){this.FE=this.qE(t),this.$E(this.FE[0])},i.$E=function(t){var i=this;if(!t)return Wt().info(Qr,"No amp-img or amp-video found."),void this.KE();this.JE(t).then(function(t){if("AMP-IMG"===t.tagName)return i.QE(t)?void i.$E(i.tP(t)):void i.KE(t.querySelector("img"));var e=t.querySelector("video");if(e.readyState>=2)i.KE(e);else{var n=t.getAttribute("poster");if(!n)return i.KE(),void Wt().info(Qr,'No "poster" attribute on amp-video.');var r=new Image;r.onload=function(){return i.KE(r)},r.src=n}})},i.QE=function(t){if(!this.iP(t))return!1;var i=t.querySelector("img"),e=this.t.document.createElement("canvas");e.width=e.height=3;var n=e.getContext("2d");n.drawImage(i,0,0,3,3);for(var r=n.getImageData(0,0,3,3).data,o=0;o<r.length;o+=4)if(r[o+3]<255)return!0;return!1},i.iP=function(t){var i=t.getAttribute("src").toLowerCase();return i.includes(".png")||i.includes(".gif")},i.tP=function(t){var i=this.FE.indexOf(t);return this.FE[i+1]},i.JE=function(t){return new Promise(function(i){Ot(t).then(function(){return t.signals().whenSignal(bt)}).then(function(){i(t)}).catch(function(){Wt().error(Qr,"Failed to load the amp-img or amp-video.")})})},i.KE=function(t){var i,e=this;if(this.nP(t),this.XE)return this.rP(1),void(this.XE=!1);cancelAnimationFrame(this.vp),this.vp=requestAnimationFrame(function t(n){i||(i=n);var r=n-i;if(r<400){var o=r/400;e.rP(o),e.vp=requestAnimationFrame(t)}})},i.rP=function(t){var i=this.WE.getContext("2d");i.globalAlpha=t,i.drawImage(this.ZE,0,0,3,3)},i.nP=function(t){var i=this.ZE.getContext("2d");i.fillStyle="black",i.fillRect(0,0,3,3),t&&(i.drawImage(t,0,0,3,3),i.fillStyle="rgba(0, 0, 0, .3)",i.fillRect(0,0,3,3))},i.qE=function(t){var i=function(t){if(!t)return!1;var i=t.getLayoutBox();return i.width*i.height};return Array.from(C(t,"amp-story-grid-layer amp-img, amp-story-grid-layer amp-video")).sort(function(t,e){return i(e)-i(t)})},t}(),io="amp-story-state",eo="ampStoryNavigationPath";function no(t,i){var e=pr(t.history);return e&&e[i]||(e=function(t){var i=t.location.hash;if(-1==i.indexOf("page=")&&-1==i.indexOf("ignoreLocalStorageHistory")){var e=ro(t),n=e&&e[oo(t)];return n&&n.state}}(t)),e&&e[i]||null}function ro(t){var i=function(t){try{return Et(t.localStorage.getItem(io))}catch(t){return null}}(t);if(!i)return{};var e=Date.now(),n=!1;return Object.keys(i).forEach(function(t){var r=i[t];e>r.time+6e5&&(delete i[t],n=!0)}),n&&ao(t,i),i}function oo(t){return t.location.href.replace(/\#.*/,"")}function ao(t,i){try{t.localStorage.setItem(io,JSON.stringify(i))}catch(t){}}var so=function(){function t(t){this.oP=t,this.vu=this.oP.getAmpDoc(),this.Bg=t.element,this.Lg=Ui(this.oP.win)}var i=t.prototype;return i.build=function(){var t=this,i=Ct("amp-live-list",{id:"i-amphtml-"+this.Bg.id+"-dynamic-list","data-poll-interval":this.Bg.getAttribute("data-poll-interval")||15e3,sort:"ascending","disable-scrolling":!0,"disable-pagination":!0,"auto-insert":!0});i.AMP_LIVE_LIST_CUSTOM_SLOT_ID=qt(this.Bg.id,"amp-story must contain id to use the live story functionality"),this.oP.element.signals().whenSignal(bt).then(function(){yi(t.vu.win).installExtensionForDoc(t.vu,"amp-live-list"),t.Bg.insertBefore(i,t.Bg.firstElementChild)})},i.update=function(){var t=U(this.Bg,function(t){return t.classList.contains("amp-live-list-item-new")}),i=this.Bg.querySelectorAll("amp-story-page"),e=Array.prototype.map.call(i,function(t){return t.id});this.Lg.dispatch(11,e),this.Lg.dispatch(2,t.id)},t}(),lo={className:"i-amphtml-story-back-prev",triggers:Fi,label:"93"},ho={className:"i-amphtml-story-fwd-next",triggers:ji,label:"91"},uo={className:"i-amphtml-story-fwd-next",triggers:ji,label:"90"},co={className:"i-amphtml-story-fwd-replay",triggers:Yi,label:"92"},mo=function(){function t(t,i,e,n){var r=this;this.Ke=i,this.si=t,this.element=function(t){return Ct("div",{onClick:function(t){return r.PS(t)},class:"i-amphtml-story-button-container ".concat(t.className)},Ct("button",{class:"i-amphtml-story-button-move","i-amphtml-i18n-aria-label":t.label}))}(i),Qe(this.element,t),this.aP=jt(this.element.firstElementChild),this.Lg=e,this.t=n,this.oa=bi(t)}var i=t.prototype;return i.updateState=function(t){var i=this;t!==this.Ke&&(this.oa.mutateElement(this.element,function(){i.element.classList.remove(i.Ke.className),i.element.classList.add(t.className),i.Ke=t}),Si(this.si).getLocalizedStringAsync(t.label).then(function(t){return i.aP.setAttribute("aria-label",t)}))},i.getState=function(){return this.Ke},i.setEnabled=function(t){var i=this;this.oa.mutateElement(this.element,function(){i.element.classList.toggle("i-amphtml-story-button-hidden",!t),Pt(i.element.querySelector("button"),"disabled",!t)})},i.PS=function(t){t.preventDefault(),this.Lg.dispatch(7,le),this.Ke.triggers?Zi(this.t,this.element,jt(this.Ke.triggers),void 0,{bubbles:!0}):this.Ke.action&&this.Lg.dispatch(this.Ke.action,this.Ke.data)},t}(),po=function(){function t(t){this.oP=t;var i=this.oP.win,e=i.document;this.Lg=Ui(i),this.sP=new mo(e,ho,this.Lg,i),this.eP=new mo(e,lo,this.Lg,i),this.eP.element.classList.add("prev-container"),this.sP.element.classList.add("next-container"),this.Ug(),this.oP.element.appendChild(this.eP.element),this.oP.element.appendChild(this.sP.element)}var i=t.prototype;return i.Ug=function(){var t=this;this.Lg.subscribe(Gi.CURRENT_PAGE_INDEX,function(i){t.uP(i)}),this.Lg.subscribe(Gi.PAGE_IDS,function(){var i=Number(t.Lg.get(Gi.CURRENT_PAGE_INDEX));t.uP(i)},!0),this.Lg.subscribe(Gi.SYSTEM_UI_IS_VISIBLE_STATE,function(i){return t.zS(i)})},i.uP=function(t){var i=this.Lg.get(Gi.PAGE_IDS).length;this.eP.setEnabled(t>0),t<i-1?this.sP.updateState(ho):Ti(this.oP.element).hasCapability("swipe")?this.sP.updateState(uo):this.sP.updateState(co)},i.zS=function(t){this.eP.setEnabled(t),this.sP.setEnabled(t)},t}(),fo=function(){function t(t,i,e){var n=this;this.Xo=wi(t),this.Jo=i,this.Qo=e||0,this.Zo=-1,this.rs=0,this.es=!1,this.us=function(){n.os()}}var i=t.prototype;return i.isPending=function(){return-1!=this.Zo},i.schedule=function(t){var i=t||this.Qo;this.es&&i<10&&(i=10);var e=Date.now()+i;return(!this.isPending()||e-this.rs<-10)&&(this.cancel(),this.rs=e,this.Zo=this.Xo.delay(this.us,i),!0)},i.os=function(){this.Zo=-1,this.rs=0,this.es=!0,this.Jo(),this.es=!1},i.cancel=function(){this.isPending()&&(this.Xo.cancel(this.Zo),this.Zo=-1)},t}(),go="__AMP_Gestures",vo=function(t,i,e,n){this.type=t,this.data=i,this.time=e,this.event=n},yo=function(){function t(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.ri=t,this.hP=[],this.Hp=[],this.ze=[],this.cP=[],this.lP=null;var n=function(t){if(void 0!==di)return di;di=!1;try{var i={get passive(){return di=!0,!1}};t.addEventListener("test-options",null,i),t.removeEventListener("test-options",null,i)}catch(t){}return di}(t.ownerDocument.defaultView);this.mP=i||n,this.pP=e,this.fP=!1,this.os=new fo(ft(t),this.hs.bind(this)),this.dP=new Ci,this.vP=Object.create(null),this.yP=this.rr.bind(this),this.gP=this.er.bind(this),this.bP=this.sr.bind(this),this.xP=this.$p.bind(this),this.ri.addEventListener("touchstart",this.yP,!!n&&{passive:!0}),this.ri.addEventListener("touchend",this.gP),this.ri.addEventListener("touchmove",this.bP,!!n&&{passive:!0}),this.ri.addEventListener("touchcancel",this.xP),this.wP=!1}t.get=function(i){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=i[go];return r||(r=new t(i,e,n),i[go]=r),r};var i=t.prototype;return i.cleanup=function(){this.ri.removeEventListener("touchstart",this.yP),this.ri.removeEventListener("touchend",this.gP),this.ri.removeEventListener("touchmove",this.bP),this.ri.removeEventListener("touchcancel",this.xP),delete this.ri[go],this.os.cancel()},i.onGesture=function(t,i){var e=new t(this),n=e.getType(),r=this.vP[n];return r||(this.hP.push(e),r=new Ci,this.vP[n]=r),r.add(i)},i.removeGesture=function(t){var i=new t(this).getType(),e=this.vP[i];if(e){e.removeAll();var n=v(this.hP,function(t){return t.getType()==i});return!(n<0||(this.hP.splice(n,1),this.ze.splice(n,1),this.cP.splice(n,1),this.Hp.splice(n,1),delete this.vP[i],0))}return!1},i.onPointerDown=function(t){return this.dP.add(t)},i.rr=function(t){var i=Date.now();this.fP=!1,this.dP.fire(t);for(var e=0;e<this.hP.length;e++)this.ze[e]||(this.cP[e]&&this.cP[e]<i&&this.Wp(e),this.hP[e].onTouchStart(t)&&this.Yp(e));this.kP(t)},i.sr=function(t){for(var i=Date.now(),e=0;e<this.hP.length;e++)this.Hp[e]&&(this.cP[e]&&this.cP[e]<i?this.Wp(e):this.hP[e].onTouchMove(t)||this.Wp(e));this.kP(t)},i.er=function(t){for(var i=Date.now(),e=0;e<this.hP.length;e++)if(this.Hp[e])if(this.cP[e]&&this.cP[e]<i)this.Wp(e);else{this.hP[e].onTouchEnd(t);var n=!this.cP[e],r=this.cP[e]<i;this.lP==this.hP[e]||!n&&!r||this.Wp(e)}this.kP(t)},i.$p=function(t){for(var i=0;i<this.hP.length;i++)this.AP(i);this.kP(t)},i.Wi=function(t,i){if(this.lP)t.acceptCancel();else{for(var e=Date.now(),n=0;n<this.hP.length;n++)this.hP[n]==t&&(this.ze[n]=e+i,this.cP[n]=0);this.wP=!0}},i.TP=function(t,i){if(this.lP)t.acceptCancel();else for(var e=Date.now(),n=0;n<this.hP.length;n++)this.hP[n]==t&&(this.cP[n]=e+i)},i.SP=function(t){this.lP==t&&(this.lP=null,this.fP=!0)},i.EP=function(t,i,e){S(this.lP==t);var n=this.vP[t.getType()];n&&n.fire(new vo(t.getType(),i,Date.now(),e))},i.kP=function(t){var i=!!this.lP||this.fP;if(this.fP=!1,!i)for(var e=Date.now(),n=0;n<this.hP.length;n++)if(this.ze[n]||this.cP[n]&&this.cP[n]>=e){i=!0;break}i?(t.stopPropagation(),this.mP||t.preventDefault()):this.pP&&t.stopPropagation(),this.wP&&(this.wP=!1,this.hs())},i.hs=function(){for(var t=Date.now(),i=-1,e=0;e<this.hP.length;e++)this.ze[e]?(-1==i||this.ze[e]>this.ze[i])&&(i=e):this.cP[e]&&this.cP[e]<t&&this.Wp(e);if(-1!=i){for(var n=0,r=0;r<this.hP.length;r++)!this.ze[r]&&this.Hp[r]&&(n=Math.max(n,this.cP[r]-t));n<2?this.PP(i):this.os.schedule(n)}},i.PP=function(t){for(var i=this.hP[t],e=0;e<this.hP.length;e++)e!=t&&this.AP(e);this.ze[t]=0,this.cP[t]=0,this.lP=i,i.acceptStart()},i.Yp=function(t){this.Hp[t]=!0,this.cP[t]=0},i.Wp=function(t){this.Hp[t]=!1,this.cP[t]=0,this.ze[t]||this.hP[t].acceptCancel()},i.AP=function(t){this.ze[t]=0,this.Wp(t)},t}(),bo=function(){function t(t,i){this.OP=t,this.Py=i}var i=t.prototype;return i.getType=function(){return this.OP},i.signalReady=function(t){this.Py.Wi(this,t)},i.signalPending=function(t){this.Py.TP(this,t)},i.signalEnd=function(){this.Py.SP(this)},i.signalEmit=function(t,i){this.Py.EP(this,t,i)},i.acceptStart=function(){},i.acceptCancel=function(){},i.onTouchStart=function(t){return!1},i.onTouchMove=function(t){return!1},i.onTouchEnd=function(t){},t}();function Ao(t,i,e){i<1&&(i=1);var n=t/i,r=.5+Math.min(i/33.34,.5);return n*r+e*(1-r)}Math.round(-16.67/Math.log(.95));var Eo,So=function(t){u(e,t);var i=p(e);function e(t){return i.call(this,"swipe-xy",t,!0,!0)}return e}(function(t){u(e,t);var i=p(e);function e(t,e,n,r){var o;return(o=i.call(this,t,e))._P=n,o.MP=r,o.lP=!1,o.IP=0,o.NP=0,o.zP=0,o.RP=0,o.jP=0,o.CP=0,o.ka=0,o.DP=0,o.LP=0,o.UP=0,o.YP=0,o}var n=e.prototype;return n.onTouchStart=function(t){var i=t.touches;return!!(this.lP&&i&&i.length>1)||!(!i||1!=i.length)&&(this.ka=Date.now(),this.IP=i[0].clientX,this.NP=i[0].clientY,!0)},n.onTouchMove=function(t){var i=t.touches;if(i&&i.length>=1){var e=i[0],n=e.clientX,r=e.clientY;if(this.zP=n,this.RP=r,this.lP)this.HP(!1,!1,t);else{var o=Math.abs(n-this.IP),a=Math.abs(r-this.NP);if(this._P&&this.MP)(o>=8||a>=8)&&this.signalReady(-10);else if(this._P){if(o>=8&&o>a)this.signalReady(-10);else if(a>=8)return!1}else{if(!this.MP)return!1;if(a>=8&&a>o)this.signalReady(-10);else if(o>=8)return!1}}return!0}return!1},n.onTouchEnd=function(t){var i=t.touches;i&&0==i.length&&this.VP(t)},n.acceptStart=function(){this.lP=!0,this.jP=this.IP,this.CP=this.NP,this.LP=this.ka,this.IP=this.zP,this.NP=this.RP,this.HP(!0,!1,null)},n.acceptCancel=function(){this.lP=!1},n.HP=function(t,i,e){this.DP=Date.now();var n=this.DP-this.LP;if(!i&&n>4||i&&n>16){var r=Ao(this.zP-this.jP,n,this.UP),o=Ao(this.RP-this.CP,n,this.YP);(!i||n>32||0!=r||0!=o)&&(this.UP=Math.abs(r)>1e-4?r:0,this.YP=Math.abs(o)>1e-4?o:0),this.jP=this.zP,this.CP=this.RP,this.LP=this.DP}this.signalEmit({first:t,last:i,time:this.DP,deltaX:this.zP-this.IP,deltaY:this.RP-this.NP,startX:this.IP,startY:this.NP,lastX:this.zP,lastY:this.RP,velocityX:this.UP,velocityY:this.YP},e)},n.VP=function(t){this.lP&&(this.lP=!1,this.HP(!1,!0,t),this.signalEnd())},e}(bo)),wo="ad-showing",xo="auto-advance-to",To="muted",_o="i-amphtml-return-to",Po="i-amphtml-visited",ko=(f(Eo={},Yn,4),f(Eo,Xn,8),Eo),Oo="amp-story",Lo=function(t){u(e,t);var i=p(e);function e(t){var e,n;return(e=i.call(this,t)).Lg=Ui(e.win),"rtl"==((n=e.win.document).body.getAttribute("dir")||n.documentElement.getAttribute("dir")||"ltr")&&e.Lg.dispatch(28,!0),e.qg=he(e.win,e.element),e.BA=er.forElement(e.win,e.element),e.BA.start(),e.Gc=e.getVsync(),e.GP=new Jr(e.win,e.element),new qe(e.win,e.element),e.BP=[],e.FP=[],e.Hg=ne(e.win),e.WP=null,e.ZP=e.win.matchMedia("(min-aspect-ratio: ".concat("31 / 40",")")),e.XP=e.win.matchMedia("(min-width: ".concat(550,"px) and ")+"(min-height: ".concat(1024,"px)")),e.qP=e.win.matchMedia("(orientation: landscape)"),e.$P=null,e.KP=new Er(e.win,e.element),e.JP=Jn.for(l(e)),e.Xo=wi(e.win),e.Ih=Ei(e.win),e.yh=null,e.kE=null,e.QP=null,e.tO=null,e.iO=null,e.rO=null,e.oO=!1,e.aO=null,e.sO=new a,e.eO=null,e.uO=-1,e.hO=new a,e.cO=null,e.lO=new a,e}e.prerenderAllowed=function(){return!0};var n=e.prototype;return n.buildCallback=function(){var t,i,e=this;this.yh=Ti(this.element),!(null!==(t=this.win.CSS)&&void 0!==t&&null!==(i=t.supports)&&void 0!==i&&i.call(t,"height: 1dvh")||function(t){var i=Y(t.style,"--story-dvh",void 0);if(i)return ot(i)?t.style.getPropertyValue(i):t.style[i]}(this.win.document.documentElement))&&(this.mO(this.getViewport().getSize()),this.getViewport().onResize(function(t){return e.mO(t)})),this.kE=this.yh.isEmbedded()?new Pr(this.win,this.yh):null,this.cO=this.pO(),this.fO(),this.dO()&&this.vO(),this.mutateElement(function(){});var n=this.yO();n&&this.element.querySelector("amp-story-page#".concat(O(n))).setAttribute("active",""),this.Ug(),this.gO(),this.bO(),this.rO=this.xO(),this.Lg.dispatch(35,this.rO),this.wO()&&this.win.document.documentElement.setAttribute("data-story-supports-landscape",""),this.Ih.isBot()||this.element.removeAttribute("title"),function(t){for(var i=[],e=t.firstChild;e;e=e.nextSibling)e.nodeType===Node.TEXT_NODE&&i.push(e);return i}(this.element).forEach(function(t){e.element.removeChild(t)}),li(this.win,"amp-story-branching")&&this.registerAction("goToPage",function(t){var i=t.args;i&&(e.Lg.dispatch(7,"goToPageAction"),e.dS(i.id,hr))});var r=Ai(this.win);(li(this.win,"story-disable-animations-first-page")||Ri(this.win)||tn(this.win)||ze(this.getAmpDoc()))&&r.addEnabledExperiment("story-disable-animations-first-page");var o=this.getAmpDoc().getRootNode().documentElement,a=o.querySelector('style[amp-extension="amp-story"][i-amphtml-version]'),s=o.querySelector('link[amp-extension="amp-story"][rel=stylesheet]');a?r.addEnabledExperiment("story-inline-css"):s&&r.addEnabledExperiment("story-link-css"),li(this.win,"story-load-inactive-outside-viewport")&&(r.addEnabledExperiment("story-load-inactive-outside-viewport"),this.element.classList.add("i-amphtml-experiment-story-load-inactive-outside-viewport")),this.kO(),this.AO()},n.kO=function(){if(!this.wO()&&this.element.hasAttribute("desktop-aspect-ratio")){var t=this.element.getAttribute("desktop-aspect-ratio").split(":");if(0!=t[1]){var i=mr(t[0]/t[1],.5,.75);X(document.querySelector(":root"),{"--i-amphtml-story-desktop-one-panel-ratio":i}),this.Lg.dispatch(15,i)}}},n.Qp=function(){var t=this;if(this.TO(),this.Lg.get(Gi.MUTED_STATE)||this.SO(),"inactive"===this.getAmpDoc().getVisibilityState()){var i=function(){t.WP.setState(0),t.WP.element.setAttribute("active","")};this.WP?i():this.lO.promise.then(function(){return i()})}},n.OT=function(){this.EO(),this.Lg.get(Gi.MUTED_STATE)||this.PO()},n.TO=function(){null===this.QP&&(this.QP=!!this.Lg.get(Gi.PAUSED_STATE)),this.Lg.dispatch(zi,!0)},n.EO=function(){this.Lg.dispatch(zi,this.QP),this.QP=null},n.vO=function(){this.OO(),this.onResizeDebounced()},n.gO=function(){for(var t=this.element.querySelectorAll("amp-story-page"),i=d(t).map(function(t){return t.id||"default-page"}),e=A(),n=0;n<i.length;n++)if(void 0!==e[i[n]]){Wt().error(Oo,"Duplicate amp-story-page ID ".concat(i[n]));var r="".concat(i[n],"__").concat(++e[i[n]]);t[n].id=r,i[n]=r}else e[i[n]]=0;this.Lg.dispatch(11,i)},n._O=function(){if(!this.oO){this.oO=!0;var t=this.win.document.querySelector("style[amp-custom]");t&&(t.textContent=t.textContent.replace(/(-?[\d.]+)v(w|h|min|max)/gim,"calc($1 * var(--story-page-v$2))"))}},n.MO=function(){if(!this.win.document.querySelector("meta[name=theme-color]")){var t=this.win.document.createElement("meta"),i=this.element.querySelector("amp-story-page");t.name="theme-color",t.content=rt(this.win,this.element).getPropertyValue("--primary-color")||rt(this.win,i).getPropertyValue("background-color")||"#202125",this.win.document.head.appendChild(t)}},n.IO=function(t,i){this.NO(),this.zO(),this.element.appendChild(this.GP.build(t,i))},n.Ug=function(){var t=this;this.element.addEventListener(ji,function(){t.dr()}),this.element.addEventListener(Fi,function(){t.vr()}),this.Lg.subscribe(Gi.MUTED_STATE,function(i){t.Hr(i),t.Hg.onVariableUpdate(te,i)},!0),this.Lg.subscribe(Gi.MUTED_STATE,function(i){t.qg.triggerEvent(i?"story-audio-muted":"story-audio-unmuted")},!1),this.Lg.subscribe(Gi.ADVANCEMENT_MODE,function(i){t.Hg.onVariableUpdate(ee,i)}),this.Lg.subscribe(Gi.CAN_SHOW_AUDIO_UI,function(i){t.element.classList.toggle("i-amphtml-story-no-audio-ui",!i)},!0),this.element.addEventListener(Vi,function(i){t.getAmpDoc().isPreview()&&t.RO(),t.dS(Li(i).targetPageId,Li(i).direction),t.KP.hideAllNavigationHint()}),this.element.addEventListener(qi,function(i){var e=Li(i),n=e.pageId,r=e.progress;if(n===t.WP.element.id){var o=hi(t.win,ui);(!t.WP.isAd()||o&&o!=ci)&&t.GP.updateProgress(n,r)}}),this.element.addEventListener(Yi,function(){t.nE()}),this.element.addEventListener(Xi,function(){t.jO()}),this.element.addEventListener(Ki,function(){t.CO()}),this.BA.addOnTapNavigationListener(function(i){t.DO(i)}),this.element.addEventListener("ampstory:dispatchaction",function(t){}),this.Lg.subscribe(Gi.ACTIONS_ALLOWLIST,function(i){gi(t.element).setAllowlist(i)},!0),this.Lg.subscribe(Gi.AD_STATE,function(i){t.ME(i)}),this.Lg.subscribe(Gi.PAUSED_STATE,function(i){t.RE(i)}),this.Lg.subscribe(Gi.UI_STATE,function(i){t.gx(i)},!0),this.Lg.subscribe(Gi.SUBSCRIPTIONS_PAGE_INDEX,function(i){-1!==i&&(t.hO.resolve(),t.uO=i)},!0),this.Lg.subscribe(Gi.SUBSCRIPTIONS_STATE,function(i){1!==i&&(t.sO.resolve(),2===i&&t.LO())}),this.Lg.subscribe(Gi.SUBSCRIPTIONS_DIALOG_UI_STATE,function(i){i||t.UO()}),this.win.document.addEventListener("keydown",function(i){t.kf(i)},!0),this.win.document.addEventListener("contextmenu",function(i){0===t.Lg.get(Gi.UI_STATE)&&(t.YO(i.target)||i.preventDefault(),i.stopPropagation())}),this.getAmpDoc().onVisibilityChanged(function(){return t.Rf()}),this.win.addEventListener("hashchange",function(){var i=mt(t.win.location.hash).page;if(i&&t.HO(i)){t.dS(i,hr);var e,n,r=t.win.location.href.replace(new RegExp("page=".concat(i,"&?")),"");(n=(e=r).length-1)>=0&&e.indexOf("#",n)==n&&(r=r.slice(0,-1)),t.win.history.replaceState(t.win.history&&pr(t.win.history)||{},t.win.document.title,r)}}),new this.win.MutationObserver(function(i){return t.VO(i)}).observe(this.win.document.body,{attributes:!0,attributeFilter:["class"]}),this.getViewport().onResize(Rt(this.win,function(){return t.onResizeDebounced()},300)),this.GO(),this.yh.onMessage("selectPage",function(i){return t.BO(i)}),this.yh.onMessage("rewind",function(){return t.FO()}),this.kE&&this.kE.startListening(),new wr(this.win,this.element)},n.VO=function(t){var i=this;t.forEach(function(t){var e=t.target;i.Lg.dispatch(20,e.classList.contains("amp-mode-keyboard-active"))})},n.GO=function(){var t=this;if(!this.yh.hasCapability("swipe")){var i=this.element;yo.get(i,!0).onGesture(So,function(i){var e=i.data,n=e.deltaX,r=e.deltaY;0===t.Lg.get(Gi.INTERACTIVE_COMPONENT_STATE).state&&t.Lg.get(Gi.SYSTEM_UI_IS_VISIBLE_STATE)&&t.Lg.get(Gi.CAN_SHOW_NAVIGATION_OVERLAY_HINT)?i.event&&i.event.defaultPrevented||!t.WO(n,r)||t.KP.showNavigationOverlay():i.event&&!1!==i.event.cancelable&&i.event.preventDefault()})}},n.WO=function(t,i){return Math.abs(t)>=50||-1*i>=50},n.OO=function(){var t=this.win.document;X(t.documentElement,{overflow:"hidden"}),X(t.body,{overflow:"hidden"}),this.getViewport().resetTouchZoom(),this.getViewport().disableTouchZoom(),this.ZO()},n.ZO=function(){var t,i=this.win.screen;if(i&&this.XP.matches){var e=function(t){return Ft().warn(Oo,"Failed to lock screen orientation:",t.message)},n=null===(t=i.orientation)||void 0===t?void 0:t.lock;if(n)n("portrait").catch(e);else{var r=i.lockOrientation||i.mozLockOrientation||i.msLockOrientation||function(t){};try{r("portrait")}catch(t){e(t)}}}},n.layoutCallback=function(){return e.isBrowserSupported(this.win)||this.Ih.isBot()?this.XO():this.qO()},n.XO=function(){var t=this,i=this.yO(),e="1"!==this.yh.getParam("hideProgressBar");e||this.Lg.dispatch(Bi,!1),this.IO(i,e),this.MO();var n=Promise.all([this.$O(),this.getAmpDoc().whenFirstPreviewedOrVisible()]).then(function(){t.KO(),t.BP.forEach(function(i,e){i.setState(0),t.JO(i,e)}),t.QO(),t.Lg.get(Gi.CAN_SHOW_PAGINATION_BUTTONS)&&new po(t)}).then(function(){return li(t.win,"amp-story-subscriptions")&&null!==t.element.querySelector("amp-story-subscriptions")&&0===t.Lg.get(Gi.SUBSCRIPTIONS_STATE)&&t.Lg.dispatch(33,1),t.dS(t.yO(),hr)}).then(function(){if(no(t.win,"ampStoryAttachmentPageId")===t.WP.element.id){var i=t.WP.element.querySelector("amp-story-page-attachment, amp-story-page-outlink");i&&Ot(i).then(function(){return i.getImpl()}).then(function(t){return t.open(!1)});var e=no(t.win,"ampStoryShoppingData");e&&t.Lg.dispatch(4,{activeProductData:e})}Me(jt(t.yh),t.Lg)&&new Sr(t.win,t.element).build()});this.t_(8e3).then(function(){t.i_(),t.n_()}),this.r_();var r=this.element.querySelector("amp-story-page#".concat(O(i)));return this.getAmpDoc().hasBeenVisible()?n:Ot(r).then(function(){return r.build()})},n.n_=function(){var t=this;this.element.hasAttribute("live-story")&&(this.tO=new so(this),this.tO.build(),this.Lg.dispatch(5,[{tagOrTarget:"AMP-LIVE-LIST",method:"update"}]),this.element.addEventListener("amp:dom-update",function(){t.tO.update(),t.$O().then(function(){return t.o_()})}))},n.yO=function(){var t=mt(this.win.location.hash).page;if(t&&this.HO(t))return t;var i,e=(i=no(this.win,eo)||[])[i.length-1];if(e&&this.HO(e))return e;var n=this.element.querySelector("amp-story-page");return n?n.id:null},n.HO=function(t){return this.BP.length>0?this.BP.some(function(i){return i.element.id===t}):!!this.element.querySelector("#".concat(O(t)))},n.t_=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=this.element.querySelector("amp-story-page#".concat(O(this.yO()))),e=Ot(i).then(function(){return i.signals().whenSignal(bt)});return this.Xo.timeoutPromise(t,e).catch(function(){})},n.i_=function(){var t=this;Zi(this.win,this.element,"ampstory:load",void 0,{bubbles:!0}),this.kE&&this.kE.send("storyContentLoaded",{}),this.qg.triggerEvent("story-content-loaded"),this.signals().signal("ini-load"),this.mutateElement(function(){t.element.classList.add("i-amphtml-story-loaded")})},n.KO=function(){var t=this.element.querySelector("amp-consent");t&&(this.a_(),this.s_(t))},n.a_=function(){var t=this,i=this.getConsentPolicy()||"default",e=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";return function(t){return pi(t,"consentPolicyManager","amp-consent")}(t).then(function(t){return t?t.whenPolicyResolved(i):null})}(this.element,i);e&&(this.Lg.dispatch(zi,!0),e.then(function(){t.Lg.dispatch(zi,!1)}))},n.s_=function(t){G(t,"amp-story-consent")||Wt().error(Oo,"amp-consent must have an amp-story-consent child");var i=["SCRIPT","AMP-STORY-CONSENT"],e=function(t){for(var e=[],n=t.firstElementChild;n;n=n.nextElementSibling)r=n,-1===i.indexOf(r.tagName)&&e.push(n);var r;return e}(t);0!==e.length&&(Wt().error(Oo,"amp-consent only allows tags: %s",i),e.forEach(function(i){return t.removeChild(i)}))},n.isLayoutSupported=function(t){return t==lt},n.$O=function(){var t=this,i=Array.prototype.map.call(this.element.querySelectorAll("amp-story-page"),function(t){return t.getImpl()});return Promise.all(i).then(function(i){t.BP=i,li(t.win,"amp-story-branching")&&t.Lg.dispatch(5,[{tagOrTarget:"AMP-STORY",method:"goToPage"}])})},n.dr=function(t){var i=this;this.WP?this.WP.next(t):this.lO.promise.then(function(){return i.WP.next(t)})},n.bO=function(){"v0"===this.yh.getParam("storyPlayer")&&yi(this.win).installExtensionForDoc(this.getAmpDoc(),"amp-viewer-integration")},n.jO=function(){if(this.yh.hasCapability("swipe")&&this.kE){var t=this.Lg.get(Gi.ADVANCEMENT_MODE);this.kE.send("selectDocument",{next:!0,advancementMode:t})}},n.vr=function(){var t=this;this.WP?this.WP.previous():this.lO.promise.then(function(){return t.WP.previous()})},n.CO=function(){if(this.yh.hasCapability("swipe")&&this.kE){var t=this.Lg.get(Gi.ADVANCEMENT_MODE);this.kE.send("selectDocument",{previous:!0,advancementMode:t})}else this.Lg.get(Gi.CAN_SHOW_PREVIOUS_PAGE_HELP)&&this.KP.showFirstPageHintOverlay()},n.DO=function(t){this.Lg.dispatch(7,le),1===t?this.dr():2===t&&this.vr()},n.dS=function(t,i){var e,n=this,r=this.getPageById(t),a=this.getPageIndex(r);if(this.WP&&this.WP.element.id===t)return o();var s=this.Lg.get(Gi.SUBSCRIPTIONS_STATE);if(0!==s&&-1===this.uO)return this.e_(this.hO,t,i);if(a>=this.uO&&1===s)return this.e_(this.sO,t,i);if(a>this.uO&&3===s)return this.aO=t,this.u_(),this.dS(this.BP[this.uO].element.id,i);this.h_(t,a);var l=this.WP;this.WP=r,this.lO.resolve(),r.isAd()||this.c_(t,i),null===(e=this.iO)||void 0===e||e.update(r.element);var h=[function(){l&&l.element.removeAttribute("active"),n.Lg.get(Gi.PAUSED_STATE)?r.element.setAttribute("active",""):r.setState(1),n.l_()},function(){l&&(l.setState(0),n.getPageIndex(l)<a?Ne(l,Po):Ce(l,Po),l.isAd()&&n.Lg.dispatch(7,"manualAdvanceFromAd")),n.Lg.dispatch(16,r.isAd()),r.isAd()?Ne(n,wo):(Ce(n,wo),r.isAutoAdvance()||n.GP.updateProgress(t,n.BA.getProgress())),n.Lg.dispatch(6,{id:t,index:a}),l||n.m_()},function(){n.o_(!l),n.p_()}];return new Promise(function(t){!function i(){if(h.shift().call(n),!h.length)return t();n.win.requestAnimationFrame(function(){return i()})}()})},n.c_=function(t,i){var e,n,r,o,a=this.Lg.get(Gi.NAVIGATION_PATH);i===ur&&a.pop(),i===hr&&a[a.length-1]!==t&&a.push(t),this.Lg.dispatch(10,a),n=a,o=It(It({},pr(r=(e=this.win).history)||{}),{},f({},"ampStoryNavigationPath",n)),r.replaceState(o,""),function(t,i){var e,n=ro(t);n[oo(t)]=(f(e={},"state",i),f(e,"time",Date.now()),e),ao(t,n)}(e,o)},n.p_=function(){gi(this.element).trigger(this.WP.element,"active",null,3)},n.l_=function(){var t=this;(this.Ih.isSafari()||this.Ih.isIos())&&this.mutateElement(function(){$(t.element,!1),t.element.offsetHeight>=0&&$(t.element,!0)})},n.UO=function(){this.eO&&clearTimeout(this.eO),this.eO=null,this.aO&&2===this.Lg.get(Gi.SUBSCRIPTIONS_STATE)&&this.dS(this.aO,hr),this.aO=null},n.e_=function(t,i,e){var n=this;return t.promise.then(function(){return n.dS(i,e)})},n.u_=function(){this.Lg.dispatch(32,!0)},n.LO=function(){this.Lg.dispatch(32,!1)},n.h_=function(t,i){var e=this,n=this.Lg.get(Gi.SUBSCRIPTIONS_DIALOG_UI_STATE);i!==this.uO||n||3!==this.Lg.get(Gi.SUBSCRIPTIONS_STATE)||(this.eO=setTimeout(function(){e.aO=t,e.u_(),e.eO=null},500)),i<this.uO&&n&&this.LO()},n.kf=function(t){if(!M(t.target,"amp-story-interactive-slider")){this.Lg.dispatch(7,le);var i=this.Lg.get(Gi.RTL_STATE);switch(t.key){case"ArrowLeft":i?this.dr():this.vr();break;case"ArrowRight":i?this.vr():this.dr()}}},n.onResizeDebounced=function(){this.rO=this.xO(),this.Lg.dispatch(35,this.rO);var t=this.f_(),i=this.wO();this.d_(t,i)},n.mO=function(t){var i=t.height;0!==i&&X(this.win.document.documentElement,{"--story-dvh":J(i/100)})},n.d_=function(t,i){var e=this;this.mutateElement(function(){e.element.setAttribute("orientation",i&&t?"landscape":"portrait")})},n.Rf=function(){var t=this.getAmpDoc().getVisibilityState(),i=t===At,e="visible"===t;i&&this.Lg.dispatch(Bi,!1),e&&this.Lg.dispatch(Bi,!0),i||e?this.OT():this.Qp()},n.ME=function(t){this.Lg.get(Gi.MUTED_STATE)||(t?this.SO():this.PO())},n.gx=function(t){var i,e=this;switch(null===(i=this.iO)||void 0===i||i.detach(),this.iO=null,t){case 0:this.Gc.mutate(function(){e.win.document.documentElement.setAttribute("i-amphtml-story-mobile",""),e.element.removeAttribute("desktop"),e.element.classList.remove("i-amphtml-story-desktop-fullbleed"),e.element.classList.remove("i-amphtml-story-desktop-one-panel")});break;case 4:this.iO||(this.iO=new to(this.win,this.element),this.iO.attach(),this.WP&&this.iO.update(this.WP.element)),this.Gc.mutate(function(){e._O(),e.win.document.documentElement.removeAttribute("i-amphtml-story-mobile"),e.element.removeAttribute("desktop"),e.element.classList.add("i-amphtml-story-desktop-one-panel"),e.element.classList.remove("i-amphtml-story-desktop-fullbleed")});break;case 2:this.Gc.mutate(function(){e.win.document.documentElement.removeAttribute("i-amphtml-story-mobile"),e.element.setAttribute("desktop",""),e.element.classList.add("i-amphtml-story-desktop-fullbleed"),e.element.classList.remove("i-amphtml-story-desktop-one-panel")});break;case 3:var n=C(this.element,"amp-story-page amp-story-page-attachment");this.Gc.mutate(function(){e._O(),e.element.setAttribute("i-amphtml-vertical",""),e.win.document.documentElement.classList.add("i-amphtml-story-vertical"),X(e.win.document.body,{height:"auto"}),e.win.document.documentElement.removeAttribute("i-amphtml-story-mobile"),e.element.removeAttribute("desktop"),e.element.classList.remove("i-amphtml-story-desktop-fullbleed");for(var t=0;t<n.length;t++)e.element.insertBefore(n[t],n[t].getAttribute("href")?n[t].parentElement.nextElementSibling:null)}),this.signals().whenSignal(bt).then(function(){e.Gc.mutate(function(){e.BP.forEach(function(t){return t.element.setAttribute("active","")})})})}},n.xO=function(){return 0===this.rO&&this.v_()?0:this.Ih.isBot()?3:this.y_()?this.wO()?2:4:0},n.v_=function(){var t,i=this.Ih.isAndroid(),e=["INPUT","TEXTAREA"].includes(null===(t=this.win.document.activeElement)||void 0===t?void 0:t.tagName);return i&&e},n.y_=function(){return this.ZP.matches&&!this.Ih.isBot()},n.f_=function(){return this.qP.matches},n.dO=function(){return this.element.hasAttribute("standalone")},n.wO=function(){return this.element.hasAttribute("supports-landscape")},n.RE=function(t){if(this.WP){var i=t?2:1;this.WP.setState(i)}},n.qO=function(){var t,i,e=this;if(this.TO(),!this.getFallback()){var n=(t=this.element,Qe(i=Ct("div",{class:"i-amphtml-story-unsupported-browser-overlay"},Ct("div",{class:"i-amphtml-overlay-container"},Ct("div",{class:"i-amphtml-gear-icon"}),Ct("div",{"i-amphtml-i18n-text-content":"21"}),Ct("button",{class:"i-amphtml-continue-button",onClick:function(){e.XO().then(function(){e.EO(),e.mutateElement(function(){wt(n)})})},"i-amphtml-i18n-text-content":"27"}))),t),Ie(Ct("div",null),i,'.i-amphtml-story-unsupported-browser-overlay{position:absolute!important;z-index:20000001!important;font-family:Roboto,sans-serif;font-weight:700!important;line-height:1.5;padding:32px;background-color:#000!important;top:0!important;left:0!important;right:0!important;bottom:0!important;-ms-flex-align:center!important;align-items:center!important;-ms-flex-pack:center!important;justify-content:center!important;text-align:center!important;display:-ms-flexbox!important;display:flex!important;color:#fff!important}.i-amphtml-gear-icon{background-repeat:no-repeat!important;background-position:50%!important;border-radius:50%!important;background-color:#fff!important;padding:16px!important;height:24px!important;width:24px!important;margin:16px auto!important;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 20 20"><path fill="none" d="M0 0h20v20H0z"/><path d="M16 10.8V9.2L17.5 8c.2-.1.2-.3.1-.5L16 4.7c0-.2-.3-.2-.5-.2l-2 .8-1.3-.7-.3-2.2c0-.2-.2-.3-.4-.3H8.4c-.2 0-.4.1-.4.3l-.3 2.2a6 6 0 0 0-1.3.7l-2-.8c-.2 0-.4 0-.5.2L2.3 7.4v.5l1.8 1.3a5 5 0 0 0 0 1.6L2.4 12c-.2.1-.2.3-.1.5l1.6 2.8c0 .2.3.2.5.2l2-.8 1.3.7.3 2.2c0 .2.2.3.4.3h3.2c.2 0 .4-.1.4-.3l.3-2.2a6 6 0 0 0 1.3-.7l2 .8c.2 0 .4 0 .5-.2l1.6-2.8V12zM10 13c-1.6 0-3-1.4-3-3s1.4-3 3-3 3 1.4 3 3-1.4 3-3 3"/></svg>\')!important}.i-amphtml-continue-button{border-radius:20px;font-family:Roboto,sans-serif;color:#000;font-weight:400!important;font-size:16px;background:#fff;padding:10px 20px;border:2px solid #aaa;text-decoration:none;display:block;margin-top:25px;margin-right:auto;margin-left:auto;-ms-flex-align:center!important;align-items:center!important;-ms-flex-pack:center!important;justify-content:center!important;text-align:center!important}\n/*# sourceURL=/extensions/amp-story/1.0/amp-story-unsupported-browser-layer.css*/'));return this.mutateElement(function(){e.element.appendChild(n)})}this.toggleFallback(!0)},n.g_=function(){var t=this,i=this.b_(0,{},this.WP.element.id),e=[];return Object.keys(i).forEach(function(n){var r=i[n];if(n===t.BP[0].element.id&&t.WP===t.BP[t.BP.length-1]&&t.BP.length>1&&!t.yh.hasCapability("swipe")&&(r=1),e[r]||(e[r]=[]),li(t.win,"amp-story-branching")){var o=t.Lg.get(Gi.NAVIGATION_PATH),a=o.indexOf(t.WP.element.id),s=o[a-1];a>0&&n===t.WP.element.id&&(e[1]||(e[1]=[]),e[1].push(s)),n!==s&&e[r].push(n)}else e[r].push(n)}),e},n.b_=function(t,i,e){var n=this;return void 0!==i[e]&&i[e]<=t||(i[e]=t,this.getPageById(e).getAdjacentPageIds().forEach(function(e){void 0!==i[e]&&i[e]<=t||(i=n.b_(t+1,i,e))})),i},n.o_=function(){var t=this,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.Ih.isBot())this.BP.forEach(function(t){t.setDistance(0)});else{var e=this.g_(),n=function(){e.forEach(function(i,e){i.forEach(function(i){t.getPageById(i).setDistance(e)})})};this.mutateElement(function(){if(!i)return n();var r=jt(e[0][0]);new Promise(function(i,e){var n=t.getPageById(r);n.setDistance(0),n.signals().whenSignal(bt).then(i),t.Lg.subscribe(Gi.CURRENT_PAGE_ID,e)}).then(function(){return n()},function(){})})}},n.m_=function(){var t=this,i=xn(this.element);i&&this.WP.element.signals().whenSignal(bt).then(function(){return t.JP.register(i),t.JP.preload(i)}).then(function(){t.$P=function(t){for(var i=t.firstElementChild;i;i=i.nextElementSibling)if("audio"===i.tagName.toLowerCase())return i;return null}(t.element)})},n.r_=function(){var t=this;this.yh.hasCapability("education")&&(this.mutateElement(function(){t.element.appendChild(Ct("amp-story-education",null))}),yi(this.win).installExtensionForDoc(this.getAmpDoc(),"amp-story-education"))},n.getPageIndexById=function(t){var i=v(this.BP,function(i){return i.element.id===t});return i<0&&Wt().error(Oo,'Story refers to page "%s", but no such page exists.',t),i},n.getPageById=function(t){var i=this.getPageIndexById(t);return jt(this.BP[i])},n.getPageIndex=function(t){return v(this.BP,function(i){return i===t})},n.x_=function(t){var i=t;t.ownerDocument!==this.win.document&&(i=t.ownerDocument.defaultView.frameElement);var e=v(this.BP,function(t){return!!R(i,function(i){return i===t.element})});return this.BP[e]||null},n.getElementDistance=function(t){var i=this.x_(t);return i?i.getDistance():-1},n.getMaxMediaElementCounts=function(){var t,i=this.element.querySelectorAll("amp-audio, [background-audio]").length,e=this.element.querySelectorAll("amp-video").length;return this.element.hasAttribute("background-audio")&&i++,f(t={},Yn,Math.min(i+2,ko.audio)),f(t,Xn,Math.min(e+2,ko.video)),t},n.getElement=function(){return this.element},n.Hr=function(t){t?this.w_():this.k_(),t?this.element.setAttribute(To,""):this.element.removeAttribute(To)},n.w_=function(){this.SO(),this.WP&&this.WP.muteAllMedia()},n.SO=function(){this.$P&&this.JP.pause(this.$P)},n.k_=function(){var t=this,i=function(){t.PO(),t.WP&&t.WP.unmuteAllMedia()};this.JP.blessAll().then(i,i)},n.PO=function(){this.$P&&(this.JP.unmute(this.$P),this.JP.play(this.$P))},n.NO=function(){var t=this.element.hasAttribute("background-audio");this.Lg.dispatch(30,t)},n.zO=function(){var t=!!N(this.element,"amp-story-grid-layer amp-audio, amp-story-grid-layer amp-video, amp-story-page[background-audio], amp-story-page[auto-advance-after]"),i=this.element.hasAttribute("background-audio");this.Lg.dispatch(31,t||i)},n.FO=function(){var t=this;this.signals().whenSignal(bt).then(function(){return t.nE()})},n.BO=function(t){t&&(this.Lg.dispatch(7,"viewerSelectPage"),t.next?this.dr():t.previous?this.vr():t.delta?this.A_(t.delta):t.id&&this.dS(t.id,this.getPageIndexById(t.id)>this.getPageIndex(this.WP)?hr:ur))},n.A_=function(t){var i=this.Lg.get(Gi.CURRENT_PAGE_INDEX),e=t>0?Math.min(this.BP.length-1,i+t):Math.max(0,i+t),n=this.BP[e];if(this.HO(n&&n.element.id)&&e!==i){var r=e>i?hr:ur;this.dS(n.element.id,r)}},n.QO=function(){var t=this,i=no(this.win,eo);i&&i.every(function(i){return t.HO(i)})||(i=[]),this.Lg.dispatch(10,i)},n.nE=function(){var t=this;this.Lg.dispatch(10,[]);var i=this.dS(this.BP[0].element.id,hr);1===this.BP.length&&(this.BP[0].setState(0),this.BP[0].setState(1)),i.then(function(){t.BP.forEach(function(t){return Ce(t,Po)})})},n.JO=function(t,i){this.mutateElement(function(){var e=t.element.id;C(t.element,"amp-story-cta-layer a").forEach(function(t){t.setAttribute("data-vars-story-page-id",e),t.setAttribute("data-vars-story-page-index",i)})})},n.addPage=function(t){this.BP.push(t),t.isAd()&&this.FP.push(t)},n.insertPage=function(t,i){var e=this.getPageById(i),n=e.element;if(e.isAd()&&!this.Lg.get(Gi.CAN_INSERT_AUTOMATIC_AD))return Ft().expectedError(Oo,"Inserting ads automatically is disallowed."),!1;var r=this.getPageById(t),o=r.element,a=this.getNextPage(r);if(!a)return!1;var s=li(this.win,"amp-story-branching")?"advance-to":"i-amphtml-advance-to";o.setAttribute(s,i),o.setAttribute(xo,i),n.setAttribute(_o,t);var l=a.element,h=l.id;h!==i&&(n.setAttribute(s,h),n.setAttribute(xo,h),l.setAttribute(_o,i));var u=this.getPageIndexById(i);return-1!=u&&this.BP.splice(u,1),this.BP.splice(this.getPageIndexById(t)+1,0,e),this.Lg.dispatch(11,this.BP.map(function(t){return t.element.id})),!0},n.getNextPage=function(t){var i=t.getNextPageId(!0);return i?this.getPageById(i):null},e.isBrowserSupported=function(t){return Boolean(t.CSS&&t.CSS.supports&&t.CSS.supports("display","grid")&&t.CSS.supports("color","var(--test)"))},n.AO=function(){if(!zt(this.win)||"inspect"===this.element.getAttribute("mode"))return!1;this.element.setAttribute("mode","inspect");var t=Ct("amp-story-dev-tools",null);return this.win.document.body.appendChild(t),this.element.setAttribute("hide",""),yi(this.win).installExtensionForDoc(this.getAmpDoc(),"amp-story-dev-tools"),!0},n.YO=function(t){return!!R(t,function(t){return M(t,"a.i-amphtml-story-page-open-attachment[href]")},this.element)},n.fO=function(){var t=Je(this.element).getLanguageCodesForElement(this.element);this.T_(t[0])||this.S_(t)},n.T_=function(t){var i=this.win.document.querySelector('script[amp-localization="amp-story"]');if((null==i?void 0:i.getAttribute("i-amphtml-version"))!==Ut(this.win).rtvVersion)return!1;var e=function(t){try{return Et(t)}catch(t){return null}}(i.textContent);return!!e&&(Je(this.element).registerLocalizedStringBundles(f({},t,e)),!0)},n.S_=function(t){var i,e,n,r,o=Je(this.element),a=function(t){for(var i=0;i<t.length;i++)for(var e=t[i].toLowerCase(),n=0;n<$e.length;n++)if($e[n].toLowerCase()===e)return $e[n];return"en"}(t),s=(i=this.win,this.win.location,e="amp-story.".concat(a,".json"),n=mi.cdn,r=Ut(i).rtvVersion,"".concat(n,"/rtv/").concat(r,"/v0/").concat(e));Pi(this.win).fetchJson(s,{prerenderSafe:!0}).then(function(t){return t.json()}).then(function(t){return o.registerLocalizedStringBundles(f({},a,t))}).catch(function(t){V(Oo,t,"Bundle not found for language "+a)})},n.pO=function(){var t,i,e=parseInt(null===(t=this.yh)||void 0===t?void 0:t.getParam("minPreviewPages"),10)||1,n=parseInt(null===(i=this.yh)||void 0===i?void 0:i.getParam("pctPagesToPreview"),10)||30,r=this.element.querySelectorAll("amp-story-page").length,o=Math.ceil(n/100*r);return(o=mr(o=Math.max(e,o),1,r))-1},n.RO=function(){var t;this.BP.indexOf(this.WP)>=this.cO&&(null===(t=this.kE)||void 0===t||t.send("storyPreviewFinished",{}))},e}(t.BaseElement);t.registerElement("amp-story",Lo,'.i-amphtml-story-background{background-color:transparent}amp-story[standalone]{background-color:#000}@media (min-aspect-ratio:31/40){:root:not([data-story-supports-landscape]):not([i-amphtml-story-mobile]){--i-amphtml-story-desktop-one-panel-ratio:69/116;--i-amphtml-story-desktop-one-panel-responsive-margin:max(74px,8.25vh);--i-amphtml-story-desktop-one-panel-height:calc(var(--story-100dvh) - var(--i-amphtml-story-desktop-one-panel-responsive-margin)*2);--i-amphtml-story-desktop-one-panel-width:calc(var(--i-amphtml-story-desktop-one-panel-height)*var(--i-amphtml-story-desktop-one-panel-ratio));--i-amphtml-story-desktop-one-panel-border-radius:20px;--story-page-vw:calc(var(--i-amphtml-story-desktop-one-panel-width)*0.01)!important;--story-page-vh:calc(var(--i-amphtml-story-desktop-one-panel-height)*0.01)!important}@media(max-height:756px){:root:not([data-story-supports-landscape]):not([i-amphtml-story-mobile]){--i-amphtml-story-desktop-one-panel-responsive-margin:0px;--i-amphtml-story-desktop-one-panel-width:calc(var(--story-100dvh)*var(--i-amphtml-story-desktop-one-panel-ratio));--i-amphtml-story-desktop-one-panel-border-radius:0}}@media(max-height:538px){:root:not([data-story-supports-landscape]):not([i-amphtml-story-mobile]){--i-amphtml-story-desktop-one-panel-ratio:36/53}}:root:not([i-amphtml-story-mobile]) amp-story:not([supports-landscape]) amp-story-page{width:var(--i-amphtml-story-desktop-one-panel-width)!important;height:var(--i-amphtml-story-desktop-one-panel-height)!important;border-radius:var(--i-amphtml-story-desktop-one-panel-border-radius)!important;margin:auto!important}}[orientation=landscape] [position=landscape-half-left]{width:50%!important;left:0!important;right:auto!important}[orientation=landscape] [position=landscape-half-right]{width:50%!important;left:auto!important;right:0!important}amp-story{font-display:optional}amp-story-grid-layer:not([aspect-ratio]):not([preset]){overflow:hidden}amp-story-grid-layer *{box-sizing:border-box;margin:0}.i-amphtml-story-grid-template-with-full-bleed-animation amp-img img,[template=fill] amp-anim img,[template=fill] amp-img img,[template=fill] amp-video video{-o-object-fit:cover;object-fit:cover}[template=vertical]{-ms-flex-line-pack:start;align-content:start;grid-gap:16px;-ms-flex-pack:stretch;justify-content:stretch;justify-items:start}[template=vertical]>*{width:100%}[template=horizontal]{-ms-flex-line-pack:stretch;align-content:stretch;-ms-flex-align:start;align-items:start;grid-gap:16px;-ms-flex-pack:start;justify-content:start}amp-story-grid-layer{padding:68px 32px 32px}amp-story-grid-layer.i-amphtml-story-has-page-attachment.i-amphtml-story-has-interactive{padding-bottom:104px}amp-story-grid-layer.i-amphtml-story-has-CTA-layer.i-amphtml-story-has-interactive{padding-bottom:20%}html.i-amphtml-story-vertical{--story-page-vh:1.78vw!important}amp-story[standalone][i-amphtml-vertical]{height:auto!important;contain:initial!important}[i-amphtml-vertical] *{transition-delay:0s!important;transition-duration:0s!important}[i-amphtml-vertical] amp-story-page{position:relative!important;height:178vw!important;contain:initial!important;overflow:visible!important}amp-story[i-amphtml-vertical].i-amphtml-element amp-story-page.i-amphtml-element{transform:none!important}[i-amphtml-vertical] .i-amphtml-story-draggable-drawer-container[hidden] .i-amphtml-story-draggable-drawer-content{opacity:1!important}[i-amphtml-vertical] .i-amphtml-story-draggable-drawer-container[hidden] .i-amphtml-story-draggable-drawer-content>*{display:block!important}[i-amphtml-vertical] amp-story-page-attachment{display:block!important;position:relative!important;transform:none!important}[i-amphtml-vertical] .i-amphtml-story-page-attachment-remote-title{overflow:visible!important}[i-amphtml-vertical] .amp-story-draggable-drawer-root{visibility:visible!important}[i-amphtml-vertical] .i-amphtml-story-page-description{background:#fff!important;display:block!important;padding:32px!important;width:auto!important;z-index:9999999!important}[i-amphtml-vertical] .i-amphtml-story-page-description>*{background:#fff!important;color:#000!important;font-size:1rem!important}[i-amphtml-vertical] .i-amphtml-story-page-description>h2{font-size:1.5rem!important}.i-amphtml-story-button-container{cursor:pointer!important;position:absolute!important;width:30px!important;top:0!important;bottom:0!important;height:calc(var(--story-100dvh) - 150px)!important;margin:auto 0!important;background:none!important;transition:opacity 150ms linear,visibility 150ms linear!important;outline:none!important;z-index:100002!important}amp-story:not([desktop]) .i-amphtml-story-button-container{pointer-events:none!important}.i-amphtml-story-button-container.next-container>.i-amphtml-story-button-move,.next-container{left:auto!important;right:0!important}[dir=rtl] .i-amphtml-story-button-container.next-container>.i-amphtml-story-button-move,[dir=rtl] .next-container{left:0!important;right:auto!important}.i-amphtml-story-desktop-fullbleed .i-amphtml-story-button-container{pointer-events:none!important}[dir=rtl] amp-story:not([desktop]) .i-amphtml-story-button-move,amp-story:not([desktop]) .i-amphtml-story-button-move{width:100%!important;height:100%!important;border:none!important;padding:0!important;pointer-events:none!important;background-repeat:no-repeat!important;background-color:transparent!important;background-position:50%!important;filter:invert(100%) drop-shadow(0 0 3px #000b)!important}body:not(.amp-mode-keyboard-active) amp-story:not([desktop]):not(.i-amphtml-story-desktop-one-panel) .i-amphtml-story-button-move{background:none!important}[desktop] .i-amphtml-story-button-move{display:-ms-flexbox!important;display:flex!important;position:fixed!important;top:0!important;bottom:0!important;margin:auto 12px!important;width:54px!important;height:54px!important;border:0!important;background-repeat:no-repeat!important;-ms-flex-pack:center!important;justify-content:center!important;-ms-flex-align:center!important;align-items:center!important;transition:opacity 150ms linear!important;cursor:pointer!important;pointer-events:all!important}amp-story.i-amphtml-story-desktop-one-panel .i-amphtml-story-button-container{height:48px!important;width:48px!important;transform:translateY(-50%)!important;top:50%!important;bottom:auto!important;pointer-events:all!important;--i-amphtml-story-desktop-one-panel-button-margin:max(10px,calc(50vw - 72px - var(--i-amphtml-story-desktop-one-panel-width)/2))}amp-story.i-amphtml-story-desktop-one-panel .i-amphtml-story-button-container.prev-container{margin-inline-start:var(--i-amphtml-story-desktop-one-panel-button-margin)!important}amp-story.i-amphtml-story-desktop-one-panel .i-amphtml-story-button-container.next-container{margin-inline-end:var(--i-amphtml-story-desktop-one-panel-button-margin)!important}[dir=rtl] amp-story.i-amphtml-story-desktop-one-panel .i-amphtml-story-button-move,amp-story.i-amphtml-story-desktop-one-panel .i-amphtml-story-button-move{filter:none!important;background-color:#fff!important;border-radius:50%!important}amp-story.i-amphtml-story-desktop-one-panel .i-amphtml-story-button-hidden{visibility:visible!important;opacity:.1!important;pointer-events:none!important}.i-amphtml-story-desktop-fullbleed .i-amphtml-story-button-move{background-size:100%!important;background-color:#fff2!important;border-radius:50%!important;filter:invert(1)!important}.i-amphtml-story-fwd-next>.i-amphtml-story-button-move,.prev-container>.i-amphtml-story-button-move,[dir=rtl] .i-amphtml-story-fwd-next>.i-amphtml-story-button-move,[dir=rtl] .prev-container>.i-amphtml-story-button-move{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none"><path stroke="%23000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.4" d="m21.52 16.22 7.75 7.75m-7.75 7.78L29.27 24"/></svg>\')!important}.prev-container>.i-amphtml-story-button-move,[dir=rtl] .i-amphtml-story-fwd-next>.i-amphtml-story-button-move{left:0!important;right:auto!important;transform:rotate(180deg)!important}[dir=rtl] .prev-container>.i-amphtml-story-button-move{transform:none!important}.i-amphtml-story-fwd-next>.i-amphtml-story-button-move,[dir=rtl] .prev-container>.i-amphtml-story-button-move{left:auto!important;right:0!important}.i-amphtml-story-fwd-replay{pointer-events:none!important}.i-amphtml-story-fwd-replay>.i-amphtml-story-button-move{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none"><path stroke="%23000" stroke-linecap="round" stroke-width="2.4" d="M16.15 19.4a9.1 9.1 0 1 1-1.29 3.95M15.6 15.1v4.61m4.4 0h-4.4"/></svg>\')!important}.i-amphtml-story-button-hidden{visibility:hidden!important;opacity:0!important;pointer-events:none!important}:root{--story-page-vw:1vw!important;--story-page-vh:var(--story-dvh,1vh)!important;--story-page-vmin:min(var(--story-page-vw),var(--story-page-vh))!important;--story-page-vmax:max(var(--story-page-vw),var(--story-page-vh))!important;--story-100dvh:calc(var(--story-dvh, 1vh)*100)!important;--story-font-size:calc(var(--story-page-vh, 8px)*2.5)!important;font-size:var(--story-font-size)}@supports (height:1dvh){:root{--story-dvh:1dvh!important}}body{animation:none!important;-webkit-animation:none!important;-moz-animation:none!important;-ms-animation:none!important}amp-story,amp-story-cta-layer,amp-story-page{contain:strict!important;overflow:hidden!important;-webkit-touch-callout:none!important}amp-story-grid-layer{contain:size layout!important;-webkit-touch-callout:none!important}amp-story amp-consent{position:absolute!important;top:0!important;left:0!important;height:100%!important;width:100%!important;background:none!important;z-index:initial!important}@media (prefers-reduced-motion:reduce){*,:after,:before{animation-duration:0s!important;transition-duration:0s!important}}amp-consent.amp-hidden{display:none!important}.i-amphtml-story-system-reset,.i-amphtml-story-system-reset *{border:none!important;box-sizing:initial!important;color:initial!important;font-family:Roboto,sans-serif!important;font-size:initial!important;font-weight:initial!important;height:auto!important;margin:0!important;padding:0!important;text-align:start!important;text-shadow:none!important;width:auto!important}amp-story{position:relative!important;text-rendering:geometricPrecision!important;-webkit-user-select:none!important;-ms-user-select:none!important;user-select:none!important;-ms-touch-action:manipulation!important;touch-action:manipulation!important}amp-story,html:root,html:root body{height:100%!important;width:100%!important}html:root,html:root body{font-size:calc(var(--story-page-vh, 8px)*2.5);margin:0!important;padding:0!important;border:0!important;cursor:auto!important;-webkit-tap-highlight-color:rgba(0,0,0,0)!important}h4,p{font-size:1rem}h1{font-size:2rem}h2{font-size:1.5rem}h3{font-size:1.17rem}h5{font-size:0.83rem}h6{font-size:0.67rem}html:root #i-amphtml-wrapper body{border-top:none!important;overflow:hidden!important}amp-story[standalone]{-ms-flex-item-align:center!important;align-self:center!important;box-shadow:2px 2px 20px rgba(0,0,0,.5)!important;height:100%!important;justify-self:center!important;max-height:initial!important;max-width:initial!important;min-height:initial!important;min-width:initial!important;visibility:visible!important}amp-story[standalone].amp-notbuilt{min-height:1px!important}amp-story[standalone]:-ms-fullscreen{height:100vh!important;max-height:none!important;max-width:none!important}amp-story[standalone]:fullscreen{height:100vh!important;max-height:none!important;max-width:none!important}amp-story .amp-video-eq,amp-story[hide]{display:none!important}amp-story-page{bottom:0!important;height:auto!important;left:0!important;position:absolute!important;right:0!important;top:0!important;opacity:1!important;-ms-touch-action:none!important;touch-action:none!important;transition:none!important;z-index:0!important}amp-story-page[active]{z-index:1!important}amp-story-page:not(:first-of-type):not([distance]):not([active]),amp-story-page[distance]:not([active]){transform:translateY(1000vh)!important}amp-story-page[active],amp-story-page[distance="0"][distance],amp-story-page[distance="1"][distance]{transform:translateY(0)!important}amp-story-page[distance="2"][distance],amp-story.i-amphtml-experiment-story-load-inactive-outside-viewport:not([desktop]) amp-story-page[distance="1"]:not(.i-amphtml-story-page-loaded):not(.i-amphtml-visited){transform:translateY(var(--story-100dvh))!important}amp-story-page [data-text-background-color]{border-radius:3px!important;line-height:1.5em!important;padding:2px 4px!important;text-indent:0!important;box-decoration-break:clone!important;-webkit-box-decoration-break:clone!important}amp-story-cta-layer{display:block!important;top:80%!important;margin:0!important;z-index:3!important}amp-story-cta-layer,amp-story-grid-layer{position:absolute!important;right:0!important;bottom:0!important;left:0!important}amp-story-grid-layer{box-sizing:border-box!important;display:grid!important;top:0!important;z-index:2!important;pointer-events:none!important}:root:not(.i-amphtml-story-vertical) amp-story{position:absolute!important;top:0;left:0}amp-story-grid-layer[anchor*=left]{margin-left:0!important}amp-story-grid-layer[anchor*=top]{margin-top:0!important}amp-story-grid-layer[anchor*=bottom]{margin-bottom:0!important}amp-story-grid-layer[anchor*=right]{margin-right:0!important;margin-left:auto!important}amp-story-grid-layer amp-video:after{content:""!important;position:absolute!important;height:100%!important;width:100%!important;top:0!important;left:0!important}[template=fill] amp-img img,[template=fill] amp-video video{position:absolute!important}amp-story-grid-layer amp-img img{pointer-events:none!important}amp-story-page[active]:not(.i-amphtml-layout) amp-video.i-amphtml-poolbound:not(.i-amphtml-layout){display:none!important}amp-story-grid-layer a,amp-story-grid-layer amp-ad,amp-story-grid-layer amp-twitter{pointer-events:auto!important}amp-story-grid-layer a *{pointer-events:none!important}amp-story-grid-layer .i-amphtml-embedded-component:after{content:""!important;position:absolute!important;height:100%!important;width:100%!important;top:0!important;left:0!important}.i-amphtml-story-grid-template-with-full-bleed-animation{position:absolute!important;display:block!important;padding:0!important}[template=fill]:not(.i-amphtml-story-grid-template-with-full-bleed-animation)>*{bottom:0!important;height:auto!important;left:0!important;position:absolute!important;right:0!important;top:0!important;width:auto!important}[template=vertical]{grid-auto-flow:row!important;grid-template-columns:100%!important}[template=horizontal]{grid-auto-flow:column!important;grid-template-rows:100%!important}[template=thirds]{height:100%!important;grid-template-rows:33% 33% 33%!important;grid-template-areas:"upper-third" "middle-third" "lower-third"!important}[aspect-ratio],[preset]{margin:auto;width:var(--i-amphtml-story-layer-width,100%);height:var(--i-amphtml-story-layer-height,100%);font-size:calc(var(--i-amphtml-story-layer-height)/10);margin-left:calc((var(--story-page-vw, 1%)*100 - var(--i-amphtml-story-layer-width, 100%))*0.5);--i-amphtml-aspect-ratio-float:calc(var(--aspect-ratio))!important;--i-amphtml-story-page-width:calc(var(--story-page-vw, 1vw)*100)!important;--i-amphtml-story-page-height:calc(var(--story-page-vh, 1vh)*100)!important;--i-amphtml-story-unscaled-width:min(var(--i-amphtml-story-page-width),calc(var(--i-amphtml-story-page-height)*var(--i-amphtml-aspect-ratio-float)))!important;--i-amphtml-story-unscaled-height:min(var(--i-amphtml-story-page-height),calc(var(--i-amphtml-story-page-width)/var(--i-amphtml-aspect-ratio-float)))!important;--i-amphtml-story-layer-width:calc(var(--i-amphtml-story-unscaled-width)*var(--scaling-factor, 1))!important;--i-amphtml-story-layer-height:calc(var(--i-amphtml-story-unscaled-height)*var(--scaling-factor, 1))!important}[preset="2021-background"],[preset="2021-foreground"]{--aspect-ratio:69/116!important}[preset="2021-background"]{--scaling-factor:1.142!important}.i-amphtml-story-toast{position:absolute!important;bottom:0!important;left:0!important;right:0!important;display:inline-block!important;padding:1.16em 1.33em!important;line-height:1.33!important;color:#fff!important;background:#212121!important;animation:toast 2.2s!important;animation-fill-mode:both!important;font-family:Roboto,sans-serif!important;font-weight:400!important;font-size:12px!important;max-width:640px!important;z-index:100004!important}@media (min-width:640px){.i-amphtml-story-toast{right:auto!important;font-size:14px!important;margin:0 auto 1.16em 1.16em!important;border-radius:6px}}@keyframes toast{0%{transform:translateY(100px);easing:cubic-bezier(0,0,0.2,1)}8%{transform:translateY(0)}92%{transform:translateY(0);easing:cubic-bezier(0.4,0,1,1)}to{transform:translateY(100px)}}.i-amphtml-story-copy-successful{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="%23fff"><path fill="none" d="M0 0h24v24H0z"/><path d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20m-2 15-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8z"/></svg>\')!important;background-repeat:no-repeat!important;background-size:16px 16px!important;padding-left:24px!important;color:#fff!important;display:-ms-flexbox!important;display:flex!important}.i-amphtml-story-copy-url{-ms-flex:1!important;flex:1!important;color:hsla(0,0%,100%,.5)!important;margin-left:40px!important;text-overflow:ellipsis!important;overflow:hidden!important;white-space:nowrap!important}.i-amphtml-story-spinner,amp-story .amp-video-eq{right:12px!important;bottom:12px!important}[dir=rtl] .i-amphtml-story-spinner,[dir=rtl] amp-story .amp-video-eq{left:12px!important;right:auto!important}.i-amphtml-story-spinner{display:inline-block!important;position:absolute!important;width:24px!important;height:24px!important;z-index:10!important}.i-amphtml-story-spinner-container{width:100%!important;height:100%!important;direction:ltr!important}.i-amphtml-story-spinner[active] .i-amphtml-story-spinner-container{animation:container-rotate 1294ms linear infinite!important}@keyframes container-rotate{to{transform:rotate(360deg)}}.i-amphtml-story-spinner-layer{position:absolute!important;width:100%!important;height:100%!important;opacity:0!important;white-space:nowrap!important;color:#fff!important}.i-amphtml-story-spinner[active] .i-amphtml-story-spinner-layer{animation-name:fill-unfill-rotate!important;animation-duration:4400ms!important;animation-timing-function:cubic-bezier(0.4,0,0.2,1)!important;animation-iteration-count:infinite!important;opacity:1!important;filter:drop-shadow(0px 1px 3px rgba(0,0,0,0.25))!important}@keyframes fill-unfill-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}to{transform:rotate(1080deg)}}.i-amphtml-story-spinner-circle-clipper{display:inline-block!important;position:relative!important;width:50%!important;height:100%!important;overflow:hidden!important}.i-amphtml-story-spinner-layer:after{left:45%!important;width:10%!important;border-top-style:solid!important}.i-amphtml-story-spinner-circle-clipper:after,.i-amphtml-story-spinner-layer:after{content:""!important;box-sizing:border-box!important;position:absolute!important;top:0!important;border-width:3px!important;border-radius:50%!important}.i-amphtml-story-spinner-circle-clipper:after{bottom:0!important;width:200%!important;border-style:solid!important;border-bottom-color:transparent!important}.i-amphtml-story-spinner-circle-clipper.left:after{left:0!important;border-right-color:transparent!important;transform:rotate(129deg)!important}.i-amphtml-story-spinner-circle-clipper.right:after{left:-100%!important;border-left-color:transparent!important;transform:rotate(-129deg)!important}.i-amphtml-story-spinner[active] .i-amphtml-story-spinner-circle-clipper:after{animation-duration:1100ms!important;animation-timing-function:cubic-bezier(0.4,0,0.2,1)!important;animation-iteration-count:infinite!important}.i-amphtml-story-spinner[active] .i-amphtml-story-spinner-circle-clipper.left:after{animation-name:left-spin!important}.i-amphtml-story-spinner[active] .i-amphtml-story-spinner-circle-clipper.right:after{animation-name:right-spin!important}@keyframes left-spin{0%{transform:rotate(130deg)}50%{transform:rotate(-5deg)}to{transform:rotate(130deg)}}@keyframes right-spin{0%{transform:rotate(-130deg)}50%{transform:rotate(5deg)}to{transform:rotate(-130deg)}}.i-amphtml-story-page-error,.i-amphtml-story-page-play-button{display:-ms-flexbox!important;display:flex!important;-ms-flex-align:center!important;align-items:center!important;position:absolute!important;bottom:0!important;right:0!important;height:40px!important;border:0!important;margin:8px 0 0 8px!important;padding:0!important;animation:play-button-fly-in 0.4s cubic-bezier(0.4,0,0.2,1)!important;background-color:transparent!important;z-index:10000!important}@keyframes play-button-fly-in{0%{opacity:0;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}.i-amphtml-story-page-error[hidden],.i-amphtml-story-page-play-button[hidden]{display:none!important}.i-amphtml-story-page-error-label,.i-amphtml-story-page-play-label{color:#fff!important;font-family:Roboto,sans-serif!important;font-size:16px!important;text-shadow:0px 0px 6px rgba(0,0,0,.36)!important}.i-amphtml-story-page-error-icon,.i-amphtml-story-page-play-icon{display:inline-block!important;height:24px!important;width:24px!important;margin:0 8px!important;border-radius:24px!important;filter:drop-shadow(0px 0px 6px rgba(0,0,0,0.36))!important}.i-amphtml-story-page-error-icon{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="%23FFF"><path fill="none" d="M0 0h24v24H0z"/><path d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20m1 15h-2v-2h2zm0-4h-2V7h2z"/></svg>\')!important}.i-amphtml-story-page-play-icon{background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="%23FFF" viewBox="0 0 48 48"><path fill="none" d="M0 0h48v48H0z"/><path d="M24 4a20 20 0 1 0 0 40 20 20 0 0 0 0-40m-4 29V15l12 9z"/></svg>\')!important}amp-bodymovin-animation,amp-bodymovin-animation *{pointer-events:none!important}\n/*# sourceURL=/extensions/amp-story/1.0/amp-story.css*/'),t.registerElement("amp-story-consent",yr),t.registerElement("amp-story-grid-layer",yt),t.registerElement("amp-story-page",cr)}()}});