?????????????? PK!Äâ„S\„\„amp-carousel-0.2.jsnu„[µü¤; (self.AMP=self.AMP||[]).push({m:0,v:"2305252018001",n:"amp-carousel",ev:"0.2",l:!1,f:function(t,i){!function(){var i,n=function(){var t=this;this.promise=new Promise((function(i,n){t.resolve=i,t.reject=n}))};function s(t,i){return(s=Object.setPrototypeOf||function(t,i){return t.__proto__=i,t})(t,i)}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function o(t){return(o="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 e(t,i){if(i&&("object"===o(i)||"function"==typeof i))return i;if(void 0!==i)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}Array.isArray;var h=Object.prototype,u=h.hasOwnProperty;function a(t,i,n,s,r,o,e,h,u,a,l){return t}h.toString;var l,c,f=!0,m=!0;function p(t){return function(t,i){if(a(1===i.length),a(Array.isArray(i)||(s=i,u.call(s,"raw"))),self.trustedTypes&&self.trustedTypes.createPolicy){var n=self.trustedTypes.createPolicy("static-template#createNode",{createHTML:function(t){return i[0]}});t.innerHTML=n.createHTML("ignored")}else t.innerHTML=i[0];var s,r=t.firstElementChild;return a(r),a(!r.nextElementSibling),t.removeChild(r),r}(l,t)}var v=["Webkit","webkit","Moz","moz","ms","O","o"],d={"getPropertyPriority":function(){return""},"getPropertyValue":function(){return""}};function b(t){var i=t.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}));return v.some((function(t){return i.startsWith(t+"-")}))?"-".concat(i):i}function g(t,i,n){if(S(i))return i;var s;c||(s=Object.create(null),c=s);var r=c[i];if(!r||n){if(r=i,void 0===t[i]){var o=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(i),e=function(t,i){for(var n=0;n0?s=t.setTimeout(e,u):(h=o,o=null,i.apply(null,h))}return function(){r=t.Date.now();for(var i=arguments.length,h=new Array(i),u=0;u2&&void 0!==arguments[2]?arguments[2]:{},s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];B(t).then((function(r){r&&r.triggerEventForTarget(t,i,n,s)}))}function W(t,i,n,s){var r=t,o=n,e=function(t){try{return o(t)}catch(t){var i,n;throw null===(i=(n=self).__AMP_REPORT_ERROR)||void 0===i||i.call(n,t),t}},h=function(){if(void 0!==L)return L;L=!1;try{var t={get capture(){return L=!0,!1}};self.addEventListener("test-options",null,t),self.removeEventListener("test-options",null,t)}catch(t){}return L}(),u=!(null==s||!s.capture);return r.addEventListener(i,e,h?s:u),function(){null==r||r.removeEventListener(i,e,h?s:u),o=null,r=null,e=null}}function V(t,i,n,s){var r={detail:n};if(Object.assign(r,s),"function"==typeof t.CustomEvent)return new t.CustomEvent(i,r);var o=t.document.createEvent("CustomEvent");return o.initCustomEvent(i,!!r.bubbles,!!r.cancelable,n),o}function D(t,i,n,s){return W(t,i,n,s)}function F(t){return t.detail}function X(t,i,n,s){var r=n,o=W(t,i,(function(t){try{r(t)}finally{r=null,o()}}),s);return o}function Z(t,i){return t>0&&i>0?t%i:(t%i+i)%i}function q(t,i,n){return a(i<=n),Math.min(Math.max(t,i),n)}var G="amp-carousel:indexchange",J="amp-carousel:scrollstart",K="amp-carousel:scrollpositionchange",Q=function(){function t(t){var i=this,n=t.advanceable,s=t.element,r=t.scrollContainer,o=t.win;this.t=o,this.M1=r,this.z1=n,this.N1=0,this.P1=!1,this.C1=1,this.I1=1e3,this.L1=!1,this.B1=!1,this.U1=null,this.H1=Number.POSITIVE_INFINITY,this.xi=s.getAmpDoc(),this.W1(this.I1),this.M1.addEventListener("scroll",(function(){return i.V1()}),!0),D(this.M1,"touchstart",(function(){return i.D1()}),{capture:!0,passive:!0}),D(s,G,(function(t){i.F1(t)}))}var i=t.prototype;return i.stop=function(){this.B1=!0},i.pause=function(){this.L1=!0},i.resume=function(){this.L1=!1,this.X1()},i.updateAutoAdvance=function(t){this.P1=t,this.X1()},i.updateAutoAdvanceCount=function(t){this.C1=t,this.X1()},i.updateAutoAdvanceInterval=function(t){this.I1=Math.max(t,1e3),this.W1(this.I1),this.X1()},i.updateMaxAdvances=function(t){this.H1=t},i.W1=function(t){var i=this,n=M(this.t,(function(){n==i.U1&&i.Z1()}),t);this.U1=n},i.D1=function(){var t=this;this.pause(),X(window,"touchend",(function(){t.resume()}),{capture:!0,passive:!0})},i.q1=function(){return this.P1&&this.xi.isVisible()&&!this.L1&&!this.B1&&this.N1=2},i.i3=function(){this.s3()?(this.M1.removeAttribute("aria-live"),this.M1.setAttribute("role","list"),this.J1.forEach((function(t){t.setAttribute("role","listitem")}))):(this.M1.setAttribute("aria-live","polite"),this.M1.removeAttribute("role"),this.J1.forEach((function(t){t.removeAttribute("role")})))},i.n3=function(){var t=this;this.J1.forEach((function(i,n){var s=!t.s3()&&n!==t.Yr;i.setAttribute("aria-hidden",s)}))},i.t3=function(t){var i=this,n=F(t).index;this.Yr=n,this.G1((function(){i.n3()}))},t}(),$="start";function tt(t,i){var n=i.getBoundingClientRect(),s=n.bottom,r=n.height,o=n.left,e=n.right,h=n.top,u=n.width;return{start:0==t?o:h,end:0==t?e:s,length:0==t?u:r}}function it(t,i){var n=tt(t,i),s=n.end;return(n.start+s)/2}function nt(t,i){return tt(t,i).start}function st(t,i,n){return i==$?nt(t,n):it(t,n)}function rt(t,i,n){w(i,0==t?"width":"height","".concat(n,"px"))}function ot(t,i,n){var s=tt(t,i),r=s.end;return s.start<=n&&n1&&void 0!==arguments[1]?arguments[1]:{},s=this.DG,r=this.g3,o=this.J1,e=n.actionSource,h=n.allowWrap,u=void 0!==h&&h,a=null!==r?r:s,l=a+t,c=o.length-1,f=0===a,m=a===c,p=l<0,v=l>c,d=t>0&&this.R3(a)&&this.R3(l);i=this.isLooping()?Z(l,c+1):u?d?0:p&&f||v&&!m?c:p&&!f||v&&m?0:l:d?a:q(l,0,c),this.goToSlide(i,{actionSource:e})},i.pauseLayout=function(){this.v3=!0,this.P1.pause()},i.resumeLayout=function(){this.v3=!1,this.updateUi(),this.P1.resume()},i.getCurrentIndex=function(){return this.DG},i.getVisibleCount=function(){return this.K1},i.isLooping=function(){return this.kd&&this.J1.length/this.K1>=3},i.goToSlide=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i.actionSource,s=i.smoothScroll,r=void 0===s||s;t<0||t>this.J1.length-1||isNaN(t)||t!==this.DG&&(this.w3||this.A3()||(this.d3=!1,this.g3=t,this.S3=n,this.C3(this.J1[t],{smoothScroll:r})))},i.updateAdvanceCount=function(t){this.h3=t},i.updateAlignment=function(t){this.M3="start"===t?$:"center",this.updateUi()},i.updateAutoAdvance=function(t){this.P1.updateAutoAdvance(t)},i.updateAutoAdvanceCount=function(t){this.P1.updateAutoAdvanceCount(t)},i.updateAutoAdvanceInterval=function(t){this.P1.updateAutoAdvanceInterval(t)},i.updateAutoAdvanceLoops=function(t){this.u3=t,this.updateUi()},i.updateForwards=function(t){this.N3=t,this.updateUi()},i.updateHideScrollbar=function(t){this.j3=t,this.updateUi()},i.updateHorizontal=function(t){this.z3=t?0:1,this.updateUi()},i.updateLoop=function(t){this.kd=t,this.updateUi()},i.updateMixedLength=function(t){this.Q1=t,this.r3.updateMixedLength(t),this.updateUi()},i.updateSlides=function(t){var i=t.length;if(i)this.J1=t,this.DG=this.isLooping()?Z(this.DG,i):q(this.DG,0,i-1)||0,this.r3.updateSlides(t),this.updateUi();else{var n=this.zl.tagName.toUpperCase();(z.dev||(z.dev=k())).warn(n,"No slides were found.")}},i.updateSnap=function(t){this.i4=t,this.updateUi()},i.updateSnapBy=function(t){this.E3=Math.max(1,t),this.updateUi()},i.updateUserScrollable=function(t){this.a3=t,this.updateUi()},i.updateUi=function(){var t=this;this.Y1||this.v3||(this.Y1=!0,this.G1((function(){t.Y1=!1,t.M1.setAttribute("mixed-length",t.Q1),t.M1.setAttribute("user-scrollable",t.a3),t.M1.setAttribute("hide-scrollbar",t.j3),t.M1.setAttribute("horizontal",0===t.z3),t.M1.setAttribute("loop",t.isLooping()),t.M1.setAttribute("snap",t.i4),x(t.M1,{"--visible-count":t.K1}),t.J1.length&&(t.P1.updateMaxAdvances(t.u3*t.J1.length-1),t._3(),t.T3(),t.I3(),t.e3(!0))})))},i.updateVisibleCount=function(t){this.K1=Math.max(1,t),this.r3.updateVisibleCount(t),this.updateUi()},i.L3=function(t,i){this.x3!==t&&(this.x3=t,this.zl.dispatchEvent(V(this.t,G,{"index":t,"total":this.J1.length,"actionSource":i,"slides":this.J1},{bubbles:!0})))},i.B3=function(t,i){this.DG=t,this.b3=i,this.zl.dispatchEvent(V(this.t,"amp-carousel:offsetchange",{"index":t,"total":this.J1.length,"offset":this.N3?-i:i,"slides":this.J1},{bubbles:!0}))},i.notifyScrollStart=function(){this.zl.dispatchEvent(V(this.t,J,null))},i.U3=function(){this.zl.dispatchEvent(V(this.t,K,null))},i.D1=function(){var t=this;this.w3=!0,this.S3=3,this.g3=null,this.d3=!1,X(window,"touchend",(function(){t.w3=!1,t.o3()}),{capture:!0,passive:!0})},i.P3=function(){this.S3=2,this.g3=null,this.d3=!1},i.V1=function(){this.d3?this.d3=!1:(this.y3=!0,this.H3(),this.notifyScrollStart(),this.o3())},i.O3=function(){null===this.g3&&this.e3()},i.A3=function(){return this.y3&&(3===this.S3||2===this.S3)},i.W3=function(t,i,n){var s=i*n*(this.N3?1:-1);!function(t,i,n){var s=0==t?n:0,r=0==t?0:n;w(i,"transform","translate(".concat(s,"px, ").concat(r,"px)")),x(i,{"--content-transform":"translate(".concat(s,"px, ").concat(r,"px)")})}(this.z3,t,s),t._revolutions=i},i.V3=function(t){var i=this;this.J1.forEach((function(n){i.W3(n,0,t)}))},i.D3=function(){var t=this;return this.J1.map((function(i){return tt(t.z3,i).length}))},i.isAtEnd=function(){return!this.isLooping()&&this.F3()},i.isAtStart=function(){return!this.isLooping()&&this.X3()},i.F3=function(){var t=this.M1,i=t.getBoundingClientRect().width*(this.N3?1:-1),n=this.N3?Math.ceil(i):Math.floor(i),s=t.scrollLeft+n,r=t.scrollWidth;return this.N3?s>=r:s<=-r},i.X3=function(){var t=this.M1.scrollLeft;return this.N3?t<=0:t>=0},i.Z3=function(t){for(var i=[],n=0;ns.length-1);t.hidden=a||os.length-1);i.hidden=a||r>o}))},i.H3=function(){var t=this,i=this.M3,n=this.m3,s=this.z3,r=this.DG,o=this.M1,e=this.J1,h=lt(this.D3()),u=!!n.length,a=u?n:e,l=function(t,i,n,s,r){var o=st(t,i,n);if(ot(t,s[r],o))return r;for(var e=1;e<=s.length/2;e++){var h=Z(r+e,s.length),u=Z(r-e,s.length);if(ot(t,s[h],o))return h;if(ot(t,s[u],o))return u}}(s,i,o,a,u?r+e.length:r);if(void 0!==l){var c=a[l],f=l%e.length,m=et(s,i,o,c);this.B3(f,m),f!==r&&this.G1((function(){t.q3(h)}))}},i.e3=function(){var t=this,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.S3;if(!this.w3&&(this.S3=void 0,this.y3=!1,this.G1((function(){t.U3()})),this.x3!==this.DG||null!==this.g3||i)){null!==this.g3&&(this.DG=this.g3,this.g3=null,this.b3=0);var s=lt(this.D3());this.G1((function(){t.L3(t.DG,n),t.B3(t.DG,t.b3),t.V3(s),t.I3(),t.q3(s),t.G3()}))}},i.G3=function(){var t=this.M3,i=this.z3,n=this.b3,s=this.DG,r=this.M1,o=this.J1[s],e=(et(i,t,r,o)-n)*tt(i,o).length;e&&(this.d3=!0,at(r,(function(){ht(i,r,e)})))},i.C3=function(t,i){var n=this;(i.smoothScroll?function(t,i){return i()}:at)(this.M1,(function(){!function(t,i,n,s){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=i==$,e=tt(t,s).length,h=o?nt(t,s):it(t,s),u=o?nt(t,n):it(t,n);ht(t,n,h-u-r*e)}(n.z3,n.M3,n.M1,t)}))},i.J3=function(t,i,n){for(var s=this.DG,r=this.x3,o=this.J1,e=o[s]._revolutions||0,h=n?1:-1,u=1;u<=i;u++){var a=Z(s+u*h,o.length);if(a===r&&s!==r)break;var l=o[a],c=a>s!==n?e+h:e;this.W3(l,c,t)}},i.q3=function(t){if(this.isLooping()){var i=this.M3,n=this.J1,s=this.K1,r=i===$?s-1:0,o=(n.length-1-r)/2,e=(n.length-1+r)/2;this.J3(t,Math.round(o),!1),this.J3(t,Math.round(e),!0)}},i.R3=function(t){var i=this.M3,n=this.J1,s=this.K1,r=i===$?s:s/2;return t>=n.length-r},t}(),ft="__AMP_CAROUSEL_NEAR_VIEWPORT",mt="__AMP_CAROUSEL_IN_VIEWPORT",pt=function(){function t(t){var i=t.ampElement,n=t.intersectionElement,s=t.intersectionThreshold,r=void 0===s?.01:s,o=t.nearbyMarginInPercent,e=void 0===o?100:o,h=t.viewportIntersectionThreshold,u=void 0===h?r:h,a=t.viewportIntersectionCallback,l=void 0===a?function(){}:a;this.K3=i,this.dG=U(i.element),this.Q3=n,this.Y3=r,this.t5=e,this.i5=u,this.n5=l,this.s5=!1,this.tZ=[],this.r5=null,this.o5=null,this.Wd=null,this.e5=!1}var i=t.prototype;return i.setQueueChanges=function(t){this.s5=t},i.h5=function(t,i){i?this.dG.scheduleLayout(this.K3.element,t):this.dG.scheduleUnlayout(this.K3.element,t)},i.u5=function(t,i){this.n5(t,i)},i.Ca=function(){var t=this;if(!(this.r5&&this.o5&&this.Wd)){var i=this.K3.win;this.r5=new i.IntersectionObserver((function(i){return t.a5(i)}),{root:this.Q3,rootMargin:"".concat(this.t5,"%"),threshold:this.Y3}),this.o5=new i.IntersectionObserver((function(i){return t.l5(i)}),{root:this.Q3,rootMargin:"".concat(this.t5+10,"%"),threshold:this.Y3}),this.Wd=new i.IntersectionObserver((function(i){return t.c5(i)}),{root:this.Q3,rootMargin:"0%",threshold:this.i5})}},i.a5=function(t){t.filter((function(t){return t.isIntersecting})).forEach((function(t){t.target[ft]=0})),this.s5||this.f5()},i.l5=function(t){t.filter((function(t){return!t.isIntersecting})).forEach((function(t){t.target[ft]=1})),this.s5||this.m5()},i.c5=function(t){t.forEach((function(t){var i=t.isIntersecting;t.target[mt]=i?0:1})),this.s5||this.p5()},i.flushChanges=function(){this.f5(),this.m5(),this.p5()},i.f5=function(){for(var t=0;t'],dt="carousel",bt="slides",gt=function(t){!function(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&&s(t,i)}(c,t);var n,o,h=(n=c,o=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}}(),function(){var t,i=r(n);if(o){var s=r(this).constructor;t=Reflect.construct(i,arguments,s)}else t=i.apply(this,arguments);return e(this,t)});c.prerenderAllowed=function(){return!0};var u=c.prototype;function c(t){var i,n,s;return(i=h.call(this,t)).YC=(s=i.win,E(s,"platform")).isIos(),i.dZ=null,i.M1=null,i.J1=[],i.DG=null,i.uI="carousel",i.Fj=!1,i.vp=null,i.mp=null,i.d5=!1,i.Gr=null,i.b5=null,i.g5=!1,i.x5=(n=t,O(n,"viewer")).isEmbedded(),i}return u.FK=function(){var t=this;this.registerAction("goToSlide",(function(i){var n,s,r,o=i.args,e=i.trust,h=Number(o.index||0);n=!isNaN(h),s=o.index,r=t.element,(z.user||(z.user=N()),void z.user.win?z.userForEmbed||(z.userForEmbed=N()):z.user).assert(n,"Unexpected slide index for goToSlide action: %s. %s",s,r,undefined,undefined,undefined,undefined,undefined,undefined,undefined),t.dZ.goToSlide(h,{actionSource:t.w5(e)})}),1),this.registerAction("toggleAutoplay",(function(i){var n=i.args,s=n?n.toggleOn:void 0;t.y5(s)}),1),this.Gr.addToAllowlist("AMP-CAROUSEL","goToSlide",["email"])},u.isLayoutSupported=function(t){return function(t){return"fixed"==t||"fixed-height"==t||"responsive"==t||"fill"==t||"flex-item"==t||"fluid"==t||"intrinsic"==t}(t)},u.buildCallback=function(){var t=this;this.Gr=function(t){return i="action",I(n=A(R(t)),i)?C(n,i):null;var i,n}(this.element);var i=this.element,n=this.win,s=function(t){return function(t,i){for(var n=[],s=t.firstElementChild;s;s=s.nextElementSibling)void 0,e=void 0,h=void 0,"string"==typeof(o=r=s)?e=o:1==(null==(h=o)?void 0:h.nodeType)&&(e=o.tagName),!(e&&e.toLowerCase().startsWith("i-")||r.nodeType===Node.ELEMENT_NODE&&(r.hasAttribute("placeholder")||r.hasAttribute("fallback")||r.hasAttribute("overflow")))&&n.push(s);var r,o,e,h;return n}(t)}(this.element);i.appendChild(this.S5()),this.M1=this.element.querySelector(".i-amphtml-carousel-scroll"),this.mp=this.element.querySelector(".amp-carousel-button-prev"),this.vp=this.element.querySelector(".amp-carousel-button-next"),this.dZ=new ct({win:n,element:i,scrollContainer:this.M1,initialIndex:Number(this.element.getAttribute("slide")||"0"),runMutate:function(i){return t.mutateElement(i)}}),this.M5(s),this.FK(),this.element.addEventListener(G,(function(i){t.t3(i)})),this.element.addEventListener(J,(function(){t.z5()})),this.element.addEventListener(K,(function(){t.k5()})),this.setupButtonInteraction(this.vp,(function(){return t.interactionNext()})),this.setupButtonInteraction(this.mp,(function(){return t.interactionPrev()})),this.N5();var r=U(i);return this.b5=new pt({ampElement:this,intersectionElement:this.M1,nearbyMarginInPercent:this.YC?200:100,viewportIntersectionCallback:function(i,n){n?r.scheduleResume(t.element,i):r.schedulePause(t.element,i)}}),this.b5.setQueueChanges(this.YC),this.b5.updateChildren(this.J1),this.dZ.updateSlides(this.J1),this.dZ.goToSlide(Number(this.element.getAttribute("slide")||"0")),this.element.hasAttribute("controls")?this.g5=!0:function(t){return E(t,"input")}(this.win).onMouseDetected((function(i){i&&(t.g5=!0,t.j5())}),!0),this.mutateElement((function(){}))},u.setupButtonInteraction=function(t,i){t.addEventListener("click",i),t.addEventListener("keydown",(function(t){t.defaultPrevented||"Enter"!=t.key&&" "!=t.key||(t.preventDefault(),i())}))},u.isRelayoutNeeded=function(){return!0},u.layoutCallback=function(){var t;return"[i-amphtml-scale-animation]",((t=this.element).closest?t.closest("[i-amphtml-scale-animation]"):function(t,i,n){var s;for(s=t;s&&void 0!==s;s=s.parentElement)if(i(s))return s;return null}(t,(function(t){return function(t,i){var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector;return!!n&&n.call(t,"[i-amphtml-scale-animation]")}(t)})))||(this.b5.wasLaidOut(),this.dZ.updateUi()),i||(i=Promise.resolve(void 0))},u.unlayoutCallback=function(){return this.b5.wasUnlaidOut(),!0},u.pauseCallback=function(){this.dZ.pauseLayout()},u.resumeCallback=function(){this.dZ.resumeLayout()},u.mutatedAttributesCallback=function(t){void 0!==t.slide&&this.dZ.goToSlide(Number(t.slide))},u.goToSlide=function(t){this.dZ.goToSlide(t,{smoothScroll:!1})},u.interactionNext=function(){this.uI!=dt?this.dZ.next(0):this.E5(!0)},u.interactionPrev=function(){this.uI!=dt?this.dZ.prev(0):this.E5(!1)},u.E5=function(t){var i=j(this.M1),n=t?1:-1,s="rtl"==y(this.win,i).direction?-1:1;i.scrollLeft+=i.offsetWidth*n*s},u.S5=function(){var t,i;return(i=(t=this.element).ownerDocument||t,l&&l.ownerDocument===i||(l=i.createElement("div")),p)(vt)},u.w5=function(t){return t>=2?0:1},u.M5=function(t){var i=this,n=this.element.getAttribute("dir")||y(this.win,this.element).direction,s=this.element.hasAttribute("loop"),r=this.element.getAttribute("autoplay"),o=this.element.getAttribute("delay"),e=this.element.getAttribute("type"),h=null!=r,u=r?Number(r):Number.POSITIVE_INFINITY,a=Math.max(Number(o)||5e3,1e3);this.dZ.updateForwards("rtl"!=n),this.dZ.updateLoop(s||h),this.dZ.updateAutoAdvanceLoops(u),this.dZ.updateAutoAdvanceInterval(a),this.mutateElement((function(){i.mp.setAttribute("dir",n),i.vp.setAttribute("dir",n)})),this.y5(h),this.O5(e,t),this.j5()},u.P5=function(t){return t-1>=0?t-1:this.element.hasAttribute("loop")?this.J1.length-1:null},u.R5=function(t){return t+10&&n/s<.5||n<0&&n/s<-.5:n>0)?"amp-carousel-next":"amp-carousel-prev",o={"fromSlide":this.W5(t),"toSlide":this.W5(i)};H(this.element,"amp-carousel-change",o),H(this.element,r,o)},u.U5=function(t){return 2==t||3==t||0==t},u.N5=function(){this.x5&&D(this.M1,"touchmove",(function(t){t.shouldViewerCancelPropagation=!0}))},u.y5=function(t){this.Fj=void 0!==t?t:!this.Fj,this.dZ.updateAutoAdvance(this.Fj)},u.z5=function(){this.b5.setQueueChanges(this.YC)},u.k5=function(){this.b5.flushChanges(),this.b5.setQueueChanges(!1),this.j5()},u.t3=function(t){var i=F(t),n=i.index,s=i.actionSource;this.d5=this.d5||3==s,this.j5(),this.uI!=dt&&this.B5(n,s)},c}(t.BaseElement);t.registerElement("amp-carousel",gt,'.i-amphtml-carousel-content{position:absolute;top:0;left:0;bottom:0;right:0}.i-amphtml-carousel-scroll{display:-ms-flexbox;display:flex;width:100%;height:100%;-ms-flex-align:center;align-items:center;outline:none;scroll-behavior:smooth;-webkit-overflow-scrolling:touch!important;--visible-count:1}.i-amphtml-carousel-scroll[hide-scrollbar=true]{scrollbar-width:none}.i-amphtml-carousel-scroll[hide-scrollbar=true]::-webkit-scrollbar{display:none;box-sizing:content-box!important}.i-amphtml-carousel-scroll[horizontal=true]{-ms-flex-direction:row;flex-direction:row;scroll-snap-type-x:mandatory;scroll-snap-type:x mandatory;padding-bottom:20px!important;overflow-y:hidden}.i-amphtml-carousel-scroll[horizontal=false]{-ms-flex-direction:column;flex-direction:column;scroll-snap-type-y:mandatory;scroll-snap-type:y mandatory;padding-right:20px!important;overflow-x:hidden}.i-amphtml-carousel-scroll[snap=false]{scroll-snap-type:none}.i-amphtml-carousel-scroll[user-scrollable=false]{overflow:hidden}.i-amphtml-carousel-spacer{visibility:hidden;z-index:-1}.i-amphtml-carousel-slotted,.i-amphtml-carousel-spacer{box-sizing:border-box!important;margin:0!important;-ms-flex-negative:0!important;flex-shrink:0!important;width:100%;height:100%;scroll-snap-stop:always}.i-amphtml-carousel-scroll[horizontal=true][mixed-length=false]>.i-amphtml-carousel-slotted,.i-amphtml-carousel-scroll[horizontal=true][mixed-length=false]>.i-amphtml-carousel-spacer{width:calc(100%/var(--visible-count))!important;min-width:auto!important;max-width:none!important}.i-amphtml-carousel-scroll[horizontal=false][mixed-length=false]>.i-amphtml-carousel-slotted,.i-amphtml-carousel-scroll[horizontal=false][mixed-length=false]>.i-amphtml-carousel-spacer{height:calc(100%/var(--visible-count))!important;min-height:auto!important;max-height:none!important}.i-amphtml-carousel-scroll[horizontal=true][snap=true][mixed-length=true]>.i-amphtml-carousel-slotted,.i-amphtml-carousel-scroll[horizontal=true][snap=true][mixed-length=true]>.i-amphtml-carousel-spacer{max-width:100%!important}.i-amphtml-carousel-scroll[horizontal=false][snap=true][mixed-length=true]>.i-amphtml-carousel-slotted,.i-amphtml-carousel-scroll[horizontal=false][snap=true][mixed-length=true]>.i-amphtml-carousel-spacer{max-height:100%!important}.i-amphtml-carousel-scroll>.i-amphtml-carousel-slotted{will-change:transform}amp-carousel .i-amphtml-carousel-scroll[horizontal=true]{padding-bottom:0!important}amp-carousel:not([type=slides]) .i-amphtml-carousel-scroll{display:block!important;white-space:nowrap!important}amp-carousel:not([type=slides]) .i-amphtml-carousel-content{position:static}.amp-scrollable-carousel-slide{display:inline-block!important;margin-left:8px;margin-inline-start:8px;margin-inline-end:0}.amp-scrollable-carousel-slide.i-amphtml-layout-responsive{width:100%}.amp-scrollable-carousel-slide:first-child{margin-left:0px;margin-inline-start:0;margin-inline-end:0}.i-amphtml-carousel-arrows{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;pointer-events:none}.amp-carousel-button[dir=rtl]{transform:scaleX(-1)}.amp-carousel-button{position:relative;box-sizing:border-box;height:34px;width:34px;margin:16px;border-style:none;border-radius:2px;background-color:rgba(0,0,0,.5);background-position:50% 50%;background-repeat:no-repeat;z-index:10;pointer-events:all}.amp-carousel-button:focus{border:1px solid #000;outline:1px solid #fff}.amp-carousel-button.amp-disabled{animation:none;pointer-events:none;clip:rect(0 0 0 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;overflow:hidden;white-space:nowrap;width:1px}.amp-carousel-button-prev{background-image:url(\'data:image/svg+xml;charset=utf-8,\');background-size:18px 18px}.amp-carousel-button-next{background-image:url(\'data:image/svg+xml;charset=utf-8,\');background-size:18px 18px}.i-amphtml-carousel-slide-item{position:relative!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-carousel-slide-item>*{width:100%;height:100%;overflow:hidden!important}.amp-carousel-slide>.i-amphtml-replaced-content{-o-object-fit:contain;object-fit:contain}\n/*# sourceURL=/extensions/amp-carousel/0.2/amp-carousel.css*/')}(); /*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */}}); //# sourceMappingURL=amp-carousel-0.2.js.mapPK!üÛx,ZZamp-script-0.1.jsnu„[µü¤; (self.AMP=self.AMP||[]).push({m:0,v:"2305252018001",n:"amp-script",ev:"0.1",l:!0,f:function(t,n){!function(){function n(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e=s&&(a(),a=null,s=0));return n+2},get active(){return null!==a}}},M=new Float32Array(1),z=new Uint16Array(M.buffer);function D(t,n,e,r,i,o){for(var a=[],u=0;u0&&void 0!==arguments[0])||arguments[0],n=[];return o.mutationQueue.forEach((function(e){for(var r=e.length,i=0;i=Number.MAX_VALUE&&(U=0);var r=U++;return P[r]={promise:e,resolve:t,reject:n},{promise:e,index:r}}(),e=n.promise,r=n.index,i=arguments.length,o=new Array(i>1?i-1:0),a=1;a2&&void 0!==arguments[2]?arguments[2]:"Assertion failed";if(n)return n;t&&-1==i.indexOf(t)&&(i+=t);for(var o=3,a=i.split("%s"),u=a.shift(),s=[u];a.length;){var c=arguments[o++],f=a.shift();u+=ot(c)+f,s.push(c,f.trim())}var l=new Error(u);throw l.messageArray=nt(s,(function(t){return""!==t})),null===(e=(r=self).__AMP_REPORT_ERROR)||void 0===e||e.call(r,l),l}("​​​",t,n,e,r,i,o,a,u,s,c,f)}function ct(t){return"fixed"==t||"fixed-height"==t||"responsive"==t||"fill"==t||"flex-item"==t||"fluid"==t||"intrinsic"==t}function ft(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function lt(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function ht(t){for(var n=1;n1?e-1:0),i=1;i=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(mt(t));!(n=i()).done;){var o=l(n.value,2),a=o[0],u=o[1];r[a]=u}return r}function Pt(t,n){for(;null!==t;){var e=gt(t,n);if(e){if(e.get)return Nt(e.get);if("function"==typeof e.value)return Nt(e.value)}t=bt(t)}return function(t){return console.warn("fallback value for",t),null}}var Bt=yt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Wt=yt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),qt=yt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Jt=yt(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Gt=yt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Yt=yt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),$t=yt(["#text"]),Ht=yt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Xt=yt(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Vt=yt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Kt=yt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Zt=wt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Qt=wt(/<%[\w\W]*|[\w\W]*%>/gm),tn=wt(/\${[\w\W]*}/gm),nn=wt(/^data-[\-\w.\u00B7-\uFFFF]/),en=wt(/^aria-[\-\w]+$/),rn=wt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),on=wt(/^(?:\w+script|data):/i),an=wt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),un=wt(/^html$/i),sn=Object.freeze({__proto__:null,MUSTACHE_EXPR:Zt,ERB_EXPR:Qt,TMPLIT_EXPR:tn,DATA_ATTR:nn,ARIA_ATTR:en,IS_ALLOWED_URI:rn,IS_SCRIPT_OR_DATA:on,ATTR_WHITESPACE:an,DOCTYPE_NAME:un}),cn=function(){return"undefined"==typeof window?null:window},fn=function(t,n){if("object"!==c(t)||"function"!=typeof t.createPolicy)return null;var e=null,r="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(r)&&(e=n.currentScript.getAttribute(r));var i="dompurify"+(e?"#"+e:"");try{return t.createPolicy(i,{createHTML:function(t){return t},createScriptURL:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},ln=function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cn(),e=function(n){return t(n)};if(e.version="3.0.2",e.removed=[],!n||!n.document||9!==n.document.nodeType)return e.isSupported=!1,e;var r=n.document,i=n.document,o=n.DocumentFragment,a=n.HTMLTemplateElement,u=n.Node,s=n.Element,f=n.NodeFilter,l=n.NamedNodeMap,h=void 0===l?n.NamedNodeMap||n.MozNamedAttrMap:l,p=n.HTMLFormElement,d=n.DOMParser,v=n.trustedTypes,b=s.prototype,g=Pt(b,"cloneNode"),y=Pt(b,"nextSibling"),w=Pt(b,"childNodes"),x=Pt(b,"parentNode");if("function"==typeof a){var k=i.createElement("template");k.content&&k.content.ownerDocument&&(i=k.content.ownerDocument)}var S=fn(v,r),O=S?S.createHTML(""):"",j=i,A=j.implementation,E=j.createNodeIterator,R=j.createDocumentFragment,T=j.getElementsByTagName,_=r.importNode,M={};e.isSupported="function"==typeof mt&&"function"==typeof x&&A&&void 0!==A.createHTMLDocument;var z,D,C=sn.MUSTACHE_EXPR,L=sn.ERB_EXPR,I=sn.TMPLIT_EXPR,N=sn.DATA_ATTR,F=sn.ARIA_ATTR,U=sn.IS_SCRIPT_OR_DATA,P=sn.ATTR_WHITESPACE,B=sn.IS_ALLOWED_URI,W=null,q=Ft({},[].concat(m(Bt),m(Wt),m(qt),m(Gt),m($t))),J=null,G=Ft({},[].concat(m(Ht),m(Xt),m(Vt),m(Kt))),Y=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),$=null,H=null,X=!0,V=!0,K=!1,Z=!0,Q=!1,tt=!1,nt=!1,et=!1,rt=!1,it=!1,ot=!1,at=!0,ut=!1,st="user-content-",ct=!0,ft=!1,lt={},ht=null,pt=Ft({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),dt=null,vt=Ft({},["audio","video","img","source","image","track"]),bt=null,gt=Ft({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),wt="http://www.w3.org/1998/Math/MathML",xt="http://www.w3.org/2000/svg",kt="http://www.w3.org/1999/xhtml",St=kt,Ot=!1,jt=null,Nt=Ft({},[wt,xt,kt],_t),Zt=["application/xhtml+xml","text/html"],Qt="text/html",tn=null,nn=i.createElement("form"),en=function(t){return t instanceof RegExp||t instanceof Function},on=function(t){tn&&tn===t||(t&&"object"===c(t)||(t={}),t=Ut(t),z=z=-1===Zt.indexOf(t.PARSER_MEDIA_TYPE)?Qt:t.PARSER_MEDIA_TYPE,D="application/xhtml+xml"===z?_t:Tt,W="ALLOWED_TAGS"in t?Ft({},t.ALLOWED_TAGS,D):q,J="ALLOWED_ATTR"in t?Ft({},t.ALLOWED_ATTR,D):G,jt="ALLOWED_NAMESPACES"in t?Ft({},t.ALLOWED_NAMESPACES,_t):Nt,bt="ADD_URI_SAFE_ATTR"in t?Ft(Ut(gt),t.ADD_URI_SAFE_ATTR,D):gt,dt="ADD_DATA_URI_TAGS"in t?Ft(Ut(vt),t.ADD_DATA_URI_TAGS,D):vt,ht="FORBID_CONTENTS"in t?Ft({},t.FORBID_CONTENTS,D):pt,$="FORBID_TAGS"in t?Ft({},t.FORBID_TAGS,D):{},H="FORBID_ATTR"in t?Ft({},t.FORBID_ATTR,D):{},lt="USE_PROFILES"in t&&t.USE_PROFILES,X=!1!==t.ALLOW_ARIA_ATTR,V=!1!==t.ALLOW_DATA_ATTR,K=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Z=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Q=t.SAFE_FOR_TEMPLATES||!1,tt=t.WHOLE_DOCUMENT||!1,rt=t.RETURN_DOM||!1,it=t.RETURN_DOM_FRAGMENT||!1,ot=t.RETURN_TRUSTED_TYPE||!1,et=t.FORCE_BODY||!1,at=!1!==t.SANITIZE_DOM,ut=t.SANITIZE_NAMED_PROPS||!1,ct=!1!==t.KEEP_CONTENT,ft=t.IN_PLACE||!1,B=t.ALLOWED_URI_REGEXP||rn,St=t.NAMESPACE||kt,Y=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&en(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Y.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&en(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Y.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Y.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Q&&(V=!1),it&&(rt=!0),lt&&(W=Ft({},m($t)),J=[],!0===lt.html&&(Ft(W,Bt),Ft(J,Ht)),!0===lt.svg&&(Ft(W,Wt),Ft(J,Xt),Ft(J,Kt)),!0===lt.svgFilters&&(Ft(W,qt),Ft(J,Xt),Ft(J,Kt)),!0===lt.mathMl&&(Ft(W,Gt),Ft(J,Vt),Ft(J,Kt))),t.ADD_TAGS&&(W===q&&(W=Ut(W)),Ft(W,t.ADD_TAGS,D)),t.ADD_ATTR&&(J===G&&(J=Ut(J)),Ft(J,t.ADD_ATTR,D)),t.ADD_URI_SAFE_ATTR&&Ft(bt,t.ADD_URI_SAFE_ATTR,D),t.FORBID_CONTENTS&&(ht===pt&&(ht=Ut(ht)),Ft(ht,t.FORBID_CONTENTS,D)),ct&&(W["#text"]=!0),tt&&Ft(W,["html","head","body"]),W.table&&(Ft(W,["tbody"]),delete $.tbody),yt&&yt(t),tn=t)},an=Ft({},["mi","mo","mn","ms","mtext"]),ln=Ft({},["foreignobject","desc","title","annotation-xml"]),hn=Ft({},["title","style","font","a","script"]),pn=Ft({},Wt);Ft(pn,qt),Ft(pn,Jt);var mn=Ft({},Gt);Ft(mn,Yt);var dn=function(t){var n=x(t);n&&n.tagName||(n={namespaceURI:St,tagName:"template"});var e=Tt(t.tagName),r=Tt(n.tagName);return!!jt[t.namespaceURI]&&(t.namespaceURI===xt?n.namespaceURI===kt?"svg"===e:n.namespaceURI===wt?"svg"===e&&("annotation-xml"===r||an[r]):Boolean(pn[e]):t.namespaceURI===wt?n.namespaceURI===kt?"math"===e:n.namespaceURI===xt?"math"===e&&ln[r]:Boolean(mn[e]):t.namespaceURI===kt?!(n.namespaceURI===xt&&!ln[r])&&!(n.namespaceURI===wt&&!an[r])&&!mn[e]&&(hn[e]||!pn[e]):!("application/xhtml+xml"!==z||!jt[t.namespaceURI]))},vn=function(t){Rt(e.removed,{element:t});try{t.parentNode.removeChild(t)}catch(n){t.remove()}},bn=function(t,n){try{Rt(e.removed,{attribute:n.getAttributeNode(t),from:n})}catch(t){Rt(e.removed,{attribute:null,from:n})}if(n.removeAttribute(t),"is"===t&&!J[t])if(rt||it)try{vn(n)}catch(t){}else try{n.setAttribute(t,"")}catch(t){}},gn=function(t){var n,e;if(et)t=""+t;else{var r=Mt(t,/^[\r\n\t ]+/);e=r&&r[0]}"application/xhtml+xml"===z&&St===kt&&(t=''+t+"");var o=S?S.createHTML(t):t;if(St===kt)try{n=(new d).parseFromString(o,z)}catch(t){}if(!n||!n.documentElement){n=A.createDocument(St,"template",null);try{n.documentElement.innerHTML=Ot?O:o}catch(t){}}var a=n.body||n.documentElement;return t&&e&&a.insertBefore(i.createTextNode(e),a.childNodes[0]||null),St===kt?T.call(n,tt?"html":"body")[0]:tt?n.documentElement:a},yn=function(t){return E.call(t.ownerDocument||t,t,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT,null,!1)},wn=function(t){return t instanceof p&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof h)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},xn=function(t){return"object"===c(u)?t instanceof u:t&&"object"===c(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},kn=function(t,n,r){M[t]&&At(M[t],(function(t){t.call(e,n,r,tn)}))},Sn=function(t){var n;if(kn("beforeSanitizeElements",t,null),wn(t))return vn(t),!0;var r=D(t.nodeName);if(kn("uponSanitizeElement",t,{tagName:r,allowedTags:W}),t.hasChildNodes()&&!xn(t.firstElementChild)&&(!xn(t.content)||!xn(t.content.firstElementChild))&&Lt(/<[/\w]/g,t.innerHTML)&&Lt(/<[/\w]/g,t.textContent))return vn(t),!0;if(!W[r]||$[r]){if(!$[r]&&jn(r)){if(Y.tagNameCheck instanceof RegExp&&Lt(Y.tagNameCheck,r))return!1;if(Y.tagNameCheck instanceof Function&&Y.tagNameCheck(r))return!1}if(ct&&!ht[r]){var i=x(t)||t.parentNode,o=w(t)||t.childNodes;if(o&&i)for(var a=o.length-1;a>=0;--a)i.insertBefore(g(o[a],!0),y(t))}return vn(t),!0}return t instanceof s&&!dn(t)?(vn(t),!0):"noscript"!==r&&"noembed"!==r||!Lt(/<\/no(script|embed)/i,t.innerHTML)?(Q&&3===t.nodeType&&(n=t.textContent,n=zt(n,C," "),n=zt(n,L," "),n=zt(n,I," "),t.textContent!==n&&(Rt(e.removed,{element:t.cloneNode()}),t.textContent=n)),kn("afterSanitizeElements",t,null),!1):(vn(t),!0)},On=function(t,n,e){if(at&&("id"===n||"name"===n)&&(e in i||e in nn))return!1;if(V&&!H[n]&&Lt(N,n));else if(X&&Lt(F,n));else if(!J[n]||H[n]){if(!(jn(t)&&(Y.tagNameCheck instanceof RegExp&&Lt(Y.tagNameCheck,t)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(t))&&(Y.attributeNameCheck instanceof RegExp&&Lt(Y.attributeNameCheck,n)||Y.attributeNameCheck instanceof Function&&Y.attributeNameCheck(n))||"is"===n&&Y.allowCustomizedBuiltInElements&&(Y.tagNameCheck instanceof RegExp&&Lt(Y.tagNameCheck,e)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(e))))return!1}else if(bt[n]);else if(Lt(B,zt(e,P,"")));else if("src"!==n&&"xlink:href"!==n&&"href"!==n||"script"===t||0!==Dt(e,"data:")||!dt[t])if(K&&!Lt(U,zt(e,P,"")));else if(e)return!1;return!0},jn=function(t){return t.indexOf("-")>0},An=function(t){var n,r,i,o;kn("beforeSanitizeAttributes",t,null);var a=t.attributes;if(a){var u={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:J};for(o=a.length;o--;){var s=n=a[o],f=s.name,l=s.namespaceURI;if(r="value"===f?n.value:Ct(n.value),i=D(f),u.attrName=i,u.attrValue=r,u.keepAttr=!0,u.forceKeepAttr=void 0,kn("uponSanitizeAttribute",t,u),r=u.attrValue,!u.forceKeepAttr&&(bn(f,t),u.keepAttr))if(Z||!Lt(/\/>/i,r)){Q&&(r=zt(r,C," "),r=zt(r,L," "),r=zt(r,I," "));var h=D(t.nodeName);if(On(h,i,r)){if(!ut||"id"!==i&&"name"!==i||(bn(f,t),r=st+r),S&&"object"===c(v)&&"function"==typeof v.getAttributeType)if(l);else switch(v.getAttributeType(h,i)){case"TrustedHTML":r=S.createHTML(r);break;case"TrustedScriptURL":r=S.createScriptURL(r)}try{l?t.setAttributeNS(l,f,r):t.setAttribute(f,r),Et(e.removed)}catch(t){}}}else bn(f,t)}kn("afterSanitizeAttributes",t,null)}},En=function t(n){var e,r=yn(n);for(kn("beforeSanitizeShadowDOM",n,null);e=r.nextNode();)kn("uponSanitizeShadowNode",e,null),Sn(e)||(e.content instanceof o&&t(e.content),An(e));kn("afterSanitizeShadowDOM",n,null)};return e.sanitize=function(t){var n,i,a,s,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((Ot=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!xn(t)){if("function"!=typeof t.toString)throw It("toString is not a function");if("string"!=typeof(t=t.toString()))throw It("dirty is not a string, aborting")}if(!e.isSupported)return t;if(nt||on(c),e.removed=[],"string"==typeof t&&(ft=!1),ft){if(t.nodeName){var f=D(t.nodeName);if(!W[f]||$[f])throw It("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof u)1===(i=(n=gn("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?n=i:n.appendChild(i);else{if(!rt&&!Q&&!tt&&-1===t.indexOf("<"))return S&&ot?S.createHTML(t):t;if(!(n=gn(t)))return rt?null:ot?O:""}n&&et&&vn(n.firstChild);for(var l=yn(ft?t:n);a=l.nextNode();)Sn(a)||(a.content instanceof o&&En(a.content),An(a));if(ft)return t;if(rt){if(it)for(s=R.call(n.ownerDocument);n.firstChild;)s.appendChild(n.firstChild);else s=n;return(J.shadowroot||J.shadowrootmod)&&(s=_.call(r,s,!0)),s}var h=tt?n.outerHTML:n.innerHTML;return tt&&W["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&Lt(un,n.ownerDocument.doctype.name)&&(h="\n"+h),Q&&(h=zt(h,C," "),h=zt(h,L," "),h=zt(h,I," ")),S&&ot?S.createHTML(h):h},e.setConfig=function(t){on(t),nt=!0},e.clearConfig=function(){tn=null,nt=!1},e.isValidAttribute=function(t,n,e){tn||on({});var r=D(t),i=D(n);return On(r,i,e)},e.addHook=function(t,n){"function"==typeof n&&(M[t]=M[t]||[],Rt(M[t],n))},e.removeHook=function(t){if(M[t])return Et(M[t])},e.removeHooks=function(t){M[t]&&(M[t]=[])},e.removeAllHooks=function(){M={}},e}();function hn(t){return function(t,n){var e=n.documentElement;return["âš¡4email","amp4email"].some((function(t){return e.hasAttribute(t)}))}(0,t)}var pn=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function mn(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{return decodeURIComponent(t)}catch(t){return n}}function dn(t){var n,e=rt();if(!t)return e;for(;n=pn.exec(t);){var r=mn(n[1],n[1]),i=n[2]?mn(n[2].replace(/\+/g," "),n[2]):"";e[r]=i}return e}function vn(t){var n=(t||self).location;return dn(n.originalHash||n.hash)}var bn="";function gn(t){var n;return bn||(bn=(null===(n=t.AMP_CONFIG)||void 0===n?void 0:n.v)||"01".concat("2305252018001")),bn}function yn(t,n){var e=n||vn(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 wn=self.__AMP_LOG;function xn(t,n){throw new Error("failed to call initLogConstructor")}function kn(t){return wn.user||(wn.user=Sn()),function(t,n){return n&&n.ownerDocument.defaultView!=t}(wn.user.win,t)?wn.userForEmbed||(wn.userForEmbed=Sn()):wn.user}function Sn(t){return xn()}function On(){return wn.dev||(wn.dev=xn())}function jn(t,n,e,r,i,o,a,u,s,c,f){return t}function An(t,n,e,r,i,o,a,u,s,c,f){return kn().assert(t,n,e,r,i,o,a,u,s,c,f)}var En=/(\S+)(?:\s+(?:(-?\d+(?:\.\d+)?)([a-zA-Z]*)))?\s*(?:,|$)/g,Rn=function(){function t(t){st(t.length>0,"Srcset must have at least one source"),this.JT=t;for(var n=!1,e=!1,r=0;r1.2))break;e=o,r=s,i=u}return e},n.rL=function(t){for(var n=this.JT,e=0,r=1/0,i=0;i0,"Expected a . in origin %s",i),n.splice(1,"s"==r?3:2),i+n.join("/")+function(t,n){if(!t||"?"==t)return"";var e=new RegExp("[?&]".concat("(amp_(js[^&=]*|gsa|r|kit)|usqp)","\\b[^&]*"),"g"),r=t.replace(e,"").replace(/^[?&]/,"");return r?"?"+r:""}(t.search)+(t.hash||"")}(r));if("href"==n&&!e.startsWith("#"))return Qn(e,a);if("src"==n)return"amp-img"==t?re(e,a,o):Qn(e,a);if("srcset"==n){var u;try{u=function(t){for(var n,e=[];n=En.exec(t);){var r=n[1],i=void 0,o=void 0;if(n[2]){var a=n[3].toLowerCase();if("w"==a)i=parseInt(n[2],10);else{if("x"!=a)continue;o=parseFloat(n[2])}}else o=1;e.push({url:r,width:i,dpr:o})}return new Rn(e)}(e)}catch(t){return kn().error("URL-REWRITE","Failed to parse srcset: ",t),e}return u.stringify((function(t){return re(t,a,o)}))}return e}(t,n,e,self.location):e}function ee(t){return"src"==t||"href"==t||"xlink:href"==t||"srcset"==t}function re(t,n,e){var r=Kn(Qn(t,n));return"data:"==r.protocol||Zn(r)||!e?r.href:"".concat(te.cdn,"/i/")+("https:"==r.protocol?"s/":"")+encodeURIComponent(r.host)+r.pathname+(r.search||"")+(r.hash||"")}var ie="data-amp-bind-",oe="i-amphtml-key",ae={"AMP-IMG":["src","srcset","layout","width","height"]},ue={"applet":!0,"audio":!0,"base":!0,"embed":!0,"frame":!0,"frameset":!0,"iframe":!0,"img":!0,"link":!0,"meta":!0,"object":!0,"style":!0,"video":!0},se={"amp-accordion":!0,"amp-anim":!0,"amp-bind-macro":!0,"amp-carousel":!0,"amp-fit-text":!0,"amp-img":!0,"amp-layout":!0,"amp-selector":!0,"amp-sidebar":!0,"amp-timeago":!0},ce=["a","amp-img","article","aside","b","blockquote","br","caption","code","col","colgroup","dd","del","details","div","dl","dt","em","figcaption","figure","footer","h1","h2","h3","header","hr","i","ins","li","main","mark","nav","ol","p","pre","q","s","section","small","span","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","u","ul"],fe=["a","article","aside","b","blockquote","br","caption","code","col","colgroup","dd","del","details","div","dl","dt","em","figcaption","figure","footer","h1","h2","h3","header","hr","i","ins","li","main","mark","nav","ol","p","pre","q","s","section","small","span","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","u","ul"],le=["amp-fx","fallback","heights","layout","min-font-size","max-font-size","on","option","placeholder","submitting","submit-success","submit-error","validation-for","verify-error","visible-when-invalid","href","style","text","subscriptions-action","subscriptions-actions","subscriptions-decorate","subscriptions-dialog","subscriptions-display","subscriptions-section","subscriptions-service","subscriptions-google-rtc","amp-nested-submenu","amp-nested-submenu-open","amp-nested-submenu-close","itemprop"],he={"a":["rel","target"],"div":["template"],"form":["action-xhr","verify-xhr","custom-validation-reporting","target"],"input":["mask-output"],"template":["type"],"textarea":["autoexpand"]},pe=["_top","_blank"],me=/^(?:\w+script|data|blob):/i,de=/^(?:blob):/i,ve=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,be=Object.freeze({"input":{"type":/(?:image|button)/i}}),ge=Object.freeze({"input":{"type":/(?:button|file|image|password)/i}}),ye=Object.freeze(["form","formaction","formmethod","formtarget","formnovalidate","formenctype"]),we=Object.freeze({"input":ye,"textarea":ye,"select":ye}),xe=Object.freeze({"amp-anim":["controls"],"form":["name"]}),ke=/!important|position\s*:\s*fixed|position\s*:\s*sticky/i;function Se(t,n,e,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=e?e.replace(ve,""):"";if(!i){if(n.startsWith("on")&&"on"!=n)return!1;var a=o.toLowerCase();if(a.indexOf("=0||a.indexOf("=0)return!1;if(me.test(o))return!1}if(de.test(o))return!1;if("style"==n)return!ke.test(e);if("class"==n&&e&&/(^|\W)i-amphtml-/i.test(e))return!1;if(ee(n)&&/__amp_source_origin/.test(e))return!1;var u=hn(r),s=Object.assign(rt(),we,u?xe:{})[t];if(s&&-1!=s.indexOf(n))return!1;var c=Object.assign(rt(),be,u?ge:{})[t];if(c){var f=c[n];if(f&&-1!=e.search(f))return!1}return!0}var Oe="purifier",je={"script":{"attribute":"type","values":["application/json","application/ld+json"]}},Ae={USE_PROFILES:{html:!0,svg:!0,svgFilters:!0}},Ee=function(){function t(t,n,e){this.ql=t,this.aD=1,this.sD=ln(self),this.cD=ln(self);var r=Object.assign(n||{},ht(ht({},Ae),{},{ADD_ATTR:le,ADD_TAGS:["use"],FORBID_TAGS:Object.keys(ue),FORCE_BODY:!0,RETURN_DOM:!0,ALLOW_UNKNOWN_PROTOCOLS:!0}));this.sD.setConfig(r),this.lD(this.sD,e),this.pD(this.cD)}var n=t.prototype;return n.purifyHtml=function(t){return this.sD.sanitize(t)},n.purifyTagsForTripleMustache=function(t){var n=this.cD.sanitize(t,{"ALLOWED_TAGS":hn(this.ql)?fe:ce,"FORCE_BODY":!0,"RETURN_DOM_FRAGMENT":!0}),e=this.ql.createElement("div");return e.appendChild(n),e.innerHTML},n.getAllowedTags=function(){var t={};this.sD.addHook("uponSanitizeElement",(function(n,e){Object.assign(t,e.allowedTags)}));var n=this.ql.createElement("p");return this.sD.sanitize(n),Object.keys(ue).forEach((function(n){t[n]=!1})),this.sD.removeHook("uponSanitizeElement"),t},n.validateAttributeChange=function(t,n,e){var r=t.nodeName.toLowerCase(),i=je[r];if(i){var o=i.attribute,a=i.values;if(o===n&&(null==e||!a.includes(e)))return!1}if("a"===r&&"target"===n&&(null==e||!pe.includes(e)))return!1;if(null==e)return!0;if(Te(n)!==Re.NONE)return!1;if(!this.sD.isValidAttribute(r,n,e)){var u=he[r];if(!(u&&u.includes(n)||r.startsWith("amp-")))return!1}var s=t.ownerDocument?t.ownerDocument:t;return!(e&&!Se(r,n,e,s,!0))},n.lD=function(t,n){var e,r,i=this,o=hn(this.ql),a=[],u=[];t.addHook("uponSanitizeElement",(function(t,n){var r=n.tagName;if(e=n.allowedTags,r.startsWith("amp-")&&(e[r]=!o||se[r]),"a"===r){var i=ut(t);i.hasAttribute("href")&&!i.hasAttribute("target")&&i.setAttribute("target","_top")}var u=je[r];if(u){var s=u.attribute,c=u.values,f=ut(t);f.hasAttribute(s)&&c.includes(f.getAttribute(s))&&(e[r]=!0,a.push(r))}})),t.addHook("afterSanitizeElements",(function(t){a.forEach((function(t){delete e[t]})),a.length=0})),t.addHook("uponSanitizeAttribute",(function(t,e){var o=t.nodeName.toLowerCase(),a=e.attrName,s=e.attrValue;r=e.allowedAttributes;var c=function(){r[a]||(r[a]=!0,u.push(a))};if(o.startsWith("amp-"))c();else{if("a"==o&&"target"==a){var f=s.toLowerCase();s=pe.includes(f)?f:"_top"}var l=he[o];l&&l.includes(a)&&c()}var h=Te(a);if(h===Re.CLASSIC){var p=a.substring(1,a.length-1);t.setAttribute("".concat(ie).concat(p),s)}h!==Re.NONE&&t.setAttribute("i-amphtml-binding",""),Se(o,a,s,i.ql,!0)?n&&s&&!a.startsWith(ie)&&(s=n(o,a,s)):(e.keepAttr=!1,kn().error(Oe,'Removed invalid attribute %s[%s="%s"].',o,a,s)),e.attrValue=s})),t.addHook("afterSanitizeAttributes",(function(t){!function(t,n){var e=t.tagName.startsWith("AMP-"),r=t.hasAttribute("i-amphtml-binding");!r&&ae[t.tagName]?t.setAttribute("i-amphtml-ignore",""):(r||e)&&(t.hasAttribute(oe)||t.setAttribute(oe,String(i.aD++)))}(t),u.forEach((function(t){delete r[t]})),u.length=0,"use"===t.nodeName.toLowerCase()&&["href","xlink:href"].forEach((function(n){t.hasAttribute(n)&&!t.getAttribute(n).startsWith("#")&&(function(t){var n;null===(n=t.parentElement)||void 0===n||n.removeChild(t)}(t),kn().error(Oe,'Removed invalid . use[href] must start with "#".'))}))}))},n.pD=function(t){var n;t.addHook("uponSanitizeElement",(function(t,e){var r=e.tagName;if(n=e.allowedTags,"template"===r){var i=t.getAttribute("type");i&&"amp-mustache"===i.toLowerCase()&&(n.template=!0)}})),t.addHook("afterSanitizeElements",(function(t){n.template=!1}))},t}(),Re={NONE:0,CLASSIC:1,ALTERNATIVE:2};function Te(t){return"["==t[0]&&"]"==t[t.length-1]?Re.CLASSIC:t.startsWith(ie)?Re.ALTERNATIVE:Re.NONE}var _e=["change","click","dblclick","input","keypress","submit","keydown"],Me=function(){function t(t){var n=this;this.Dr=t,this.t1=this.n1.bind(this),this.e1=0,this.i1=!1,_e.forEach((function(t){n.Dr.addEventListener(t,n.t1,!0)}))}var n=t.prototype;return n.dispose=function(){var t=this;_e.forEach((function(n){t.Dr.removeEventListener(n,t.t1,!0)}))},n.hasBeenActive=function(){return this.e1>0},n.isActive=function(){return this.e1>0&&Date.now()-this.e1<=5e3||this.i1},n.getLastActivationTime=function(){return this.e1},n.expandLongTask=function(t){var n=this;if(this.isActive()){jn(!this.i1),this.i1=!0;var e=function(){n.i1=!1,n.e1=Date.now()};t.then(e,e)}},n.isInLongTask=function(){return this.i1},n.n1=function(t){t.isTrusted&&(this.e1=Date.now())},t}(),ze=self.__AMP_ERRORS||[];self.__AMP_ERRORS=ze;var De=function(){return self.AMP.config.urls}(),Ce="amp-script",Le=15e4,Ie=3e5,Ne=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&a(t,n)}(i,t);var n,e,r=(n=i,e=s(),function(){var t,r=u(n);if(e){var i=u(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return f(this,t)});function i(t){var n;return(n=r.call(this,t)).As=Dn(n.win,"vsync"),n.o1=null,n.a1=null,n.u1=null,n.s1="amp-script[unknown].js",n.OJ=!1,n.c1=!1,n.Qn=new o,n.f1=!1,n.l1=!1,n.h1=!1,n}var c=i.prototype;return c.isLayoutSupported=function(t){return"container"==t||ct(t)},c.buildCallback=function(){var t,n,e,r=this;return this.h1=this.element.hasAttribute("sandboxed"),this.l1=this.h1||this.element.hasAttribute("nodom"),this.f1=this.element.hasAttribute("data-ampdevmode")||this.element.ownerDocument.documentElement.hasAttribute("data-ampdevmode"),this.f1&&kn().warn(Ce,"JavaScript size and script hash requirements are disabled in development mode.",this.element),this.l1&&(this.element.hasAttribute("width")||this.element.hasAttribute("height")||this.element.hasAttribute("layout"))&&kn().warn(Ce,"Cannot set width, height, or layout of a nodom ",this.element),(t=this.element,n=Ce,e=Ce,qn(t,n,e,undefined).then((function(t){return function(t,n,e){return An(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.","amp-script",e,e,e)}(t,0,e)}))).then((function(t){r.setService(t)}))},c.onLayoutMeasure=function(){if(!this.OJ&&!this.c1){var t=this.getLayoutSize(),n=t.height;t.width*n!=0||this.l1||(this.c1=!0,kn().warn(Ce,"Skipped initializing amp-script due to zero width or height.",this.element))}},c.setService=function(t){this.u1=t},c.getUserActivation=function(){return this.a1},c.callFunction=function(t,n){var e=arguments,r=this;return this.Qn.promise.then((function(){return r.o1?r.o1.callFunction.apply(r.o1,e):Promise.reject(new Error("Attempted to call a function on an amp-script which failed initialization."))}))},c.layoutCallback=function(){var t,n,e=this;if(this.OJ=!0,this.element.sizerElement){(n=t=this.win.document.createElement("div")).classList.add("i-amphtml-fill-content"),n.classList.add("i-amphtml-replaced-content");for(var r=function(t){return function(t,n){for(var e=[],r=t.firstElementChild;r;r=r.nextElementSibling)void 0,a=void 0,"string"==typeof(o=i=r)?a=o:it(o)&&(a=o.tagName),!(a&&a.toLowerCase().startsWith("i-")||i.nodeType===Node.ELEMENT_NODE&&(ut(i),i.hasAttribute("placeholder")||i.hasAttribute("fallback")||i.hasAttribute("overflow")))&&e.push(r);var i,o,a;return e}(t)}(this.element),i=0;i0&&2===n&&(e.o1.terminate(),e.element.classList.remove("i-amphtml-hydrated"),e.element.classList.add("i-amphtml-broken"),kn().error(Ce,"%s was terminated due to illegal mutation.",e.s1))}))},c.w1=function(t,n){var e;switch(t){case"0":case"3":e="DOM element attributes or styles";break;case"1":e="textContent or the like";break;case"2":e="DOM element children, innerHTML, or the like";break;default:e="the DOM"}return"Blocked ".concat(n," attempts to modify ").concat(e,".")+" For variable-sized containers, a user action has to happen first."},i}(t.BaseElement),Fe=function(){function t(t){this.xi=t,this.S1=0,this.O1=0,this.JT=[];var n=t.getMetaByName("amp-script-src");n&&(this.JT=n.split(/\s+/).filter(Boolean)),this.xN=Dn(t.win,"crypto")}var n=t.prototype;return n.checkSha384=function(t,n){var e,r=this,i=(e=t,"undefined"!=typeof TextEncoder?(new TextEncoder).encode(e):function(t){for(var n=new Uint8Array(t.length),e=0;e. ')+'During development, you can disable this check by adding the "data-ampdevmode" attribute to '.concat(n,", or the root html node")+"See https://amp.dev/documentation/components/amp-script/#script-hash.")}))},n.sizeLimitExceeded=function(t,n){return n?this.O1+=t:this.S1+=t,n?this.O1>Ie:this.S1>Le},n.fetch=function(t,n){var e=t.slice("amp-script:".length).split(".");An(2===e.length&&e[0].length>0&&e[1].length>0,"[".concat(Ce,']: "amp-script" URIs must be of the format "scriptId.functionIdentifier".'));var r=e[0],i=e[1],o=this.xi.getElementById(r);An(o&&"AMP-SCRIPT"===o.tagName,"[".concat(Ce,"]: could not find with script set to ").concat(r));var a=Array.prototype.slice.call(arguments,1);return o.getImpl().then((function(t){return t.callFunction.apply(t,[i].concat(a))}))},t}(),Ue=["form","button","fieldset","input","object","output","select","textarea"],Pe=function(){function t(t,n){var e,r,i,o=this;this.t=t.win,this.zl=t.element,r="purifier-inplace",i=function(){return new Ee(t.win.document,{"IN_PLACE":!0},ne)},function(t,n,e,r,i,o){var a=Bn(t),u=a[e];u||(u=a[e]={obj:null,promise:null,resolve:null,reject:null,context:null,ctor:null,sharedInstance:!1}),u.ctor||(u.ctor=r,u.context=n,u.sharedInstance=!1,u.resolve&&Un(t,e))}(e=In(e=this.t),e,r,i),this.mD=Dn(this.t,"purifier-inplace"),this.j1=this.mD.getAllowedTags(),this.A1=function(){return t.isMutationAllowedByUserGesture()},this.E1=function(){return!o.A1()&&t.isMutationAllowedByFixedSize()},this.j1["amp-img"]=!0,this.j1["amp-layout"]=!0,this.j1["amp-pixel"]=!1,this.R1=n.includes("allow-forms"),Ue.forEach((function(t){o.j1[t]=o.R1}))}var n=t.prototype;return n.sanitize=function(t){var n=t.nodeName.toLowerCase(),e=this.j1[n];return e||this.T1(n)||kn().warn(Ce,"Sanitized node:",t),e},n.setAttribute=function(t,n,e){var r=t.nodeName.toLowerCase();if(this.j1[r]){var i=n.toLowerCase();if(this.mD.validateAttributeChange(t,i,e)){if(null==e)t.removeAttribute(i);else{var o=ne(r,i,e);t.setAttribute(i,o)}return"a"===r&&t.hasAttribute("href")&&!t.hasAttribute("target")&&t.setAttribute("target","_top"),!0}}return this.T1(r)||kn().warn(Ce,'Sanitized [%s]="%s":',n,e,t),!1},n.T1=function(t){return!(this.R1||!Ue.includes(t)||(kn().warn(Ce,'Form elements (%s) cannot be mutated unless your includes the attribute sandbox="allow-forms".',t),0))},n.setProperty=function(t,n,e){var r=n.toLowerCase();return!!this.mD.validateAttributeChange(t,r,e)&&(t[n]=e,!0)},n.getStorage=function(t,n){if(2===t)return Yn(this.zl).then((function(t){if(t)return t.getStateValue(n||".")}));for(var e=this._1(t),r={},i=0;i