!function(e){function t(t){for(var n,o,i=t[0],a=t[1],s=0,c=[];se.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{};o(this,e),this.events=t,this.hop=t.hasOwnProperty}return a(e,[{key:"on",value:function(e,t){if(!w(e)){this.hop.call(this.events,e)||(this.events[e]=[]);var n=this.events[e].push(t)-1;return{remove:function(){delete this.events[e][n]}}}for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this._c={},this._t=[],this._e=new S,this.disabled=!1,this.selector=t,this.settings=E(h,n),this.index=this.settings.startAt}return a(e,[{key:"mount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._e.emit("mount.before"),y(e)?this._c=_(this,e,this._e):v("You need to provide a object on `mount()`"),this._e.emit("mount.after"),this}},{key:"mutate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return w(e)?this._t=e:v("You need to provide a array on `mutate()`"),this}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.settings=E(this.settings,e),e.hasOwnProperty("startAt")&&(this.index=e.startAt),this._e.emit("update"),this}},{key:"go",value:function(e){return this._c.Run.make(e),this}},{key:"move",value:function(e){return this._c.Transition.disable(),this._c.Move.make(e),this}},{key:"destroy",value:function(){return this._e.emit("destroy"),this}},{key:"play",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&(this.settings.autoplay=e),this._e.emit("play"),this}},{key:"pause",value:function(){return this._e.emit("pause"),this}},{key:"disable",value:function(){return this.disabled=!0,this}},{key:"enable",value:function(){return this.disabled=!1,this}},{key:"on",value:function(e,t){return this._e.on(e,t),this}},{key:"isType",value:function(e){return this.settings.type===e}},{key:"settings",get:function(){return this._o},set:function(e){y(e)?this._o=e:v("Options must be an `object` instance.")}},{key:"index",get:function(){return this._i},set:function(e){this._i=p(e)}},{key:"type",get:function(){return this.settings.type}},{key:"disabled",get:function(){return this._d},set:function(e){this._d=!!e}}]),e}();function A(){return(new Date).getTime()}function k(e,t,n){var r,o,i,a,s=0;n||(n={});var u=function(){s=!1===n.leading?0:A(),r=null,a=e.apply(o,i),r||(o=i=null)},c=function(){var c=A();s||!1!==n.leading||(s=c);var l=t-(c-s);return o=this,i=arguments,l<=0||l>t?(r&&(clearTimeout(r),r=null),s=c,a=e.apply(o,i),r||(o=i=null)):r||!1===n.trailing||(r=setTimeout(u,l)),a};return c.cancel=function(){clearTimeout(r),s=0,r=o=i=null},c}var C={ltr:["marginLeft","marginRight"],rtl:["marginRight","marginLeft"]};function F(e){if(e&&e.parentNode){for(var t=e.parentNode.firstChild,n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}return[]}function O(e){return!!(e&&e instanceof window.HTMLElement)}var T='[data-glide-el="track"]';var I=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e),this.listeners=t}return a(e,[{key:"on",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];m(e)&&(e=[e]);for(var o=0;o2&&void 0!==arguments[2]&&arguments[2];m(e)&&(e=[e]);for(var r=0;r":"<","<":">","=":"="};function N(e,t){return{modify:function(e){return t.Direction.is("rtl")?-e:e}}}function M(e,t){return{modify:function(e){var n=Math.floor(e/t.Sizes.slideWidth);return e+t.Gaps.value*n}}}function q(e,t){return{modify:function(e){return e+t.Clones.grow/2}}}function P(e,t){return{modify:function(n){if(e.settings.focusAt>=0){var r=t.Peek.value;return y(r)?n-r.before:n-r}return n}}}function z(e,t){return{modify:function(n){var r=t.Gaps.value,o=t.Sizes.width,i=e.settings.focusAt,a=t.Sizes.slideWidth;return"center"===i?n-(o/2-a/2):n-a*i-r*i}}}var B=!1;try{var R=Object.defineProperty({},"passive",{get:function(){B=!0}});window.addEventListener("testPassive",null,R),window.removeEventListener("testPassive",null,R)}catch(Z){}var V=B,H=["touchstart","mousedown"],G=["touchmove","mousemove"],W=["touchend","touchcancel","mouseup","mouseleave"],U=["mousedown","mousemove","mouseup","mouseleave"];var Y='[data-glide-el^="controls"]',J="".concat(Y,' [data-glide-dir*="<"]'),K="".concat(Y,' [data-glide-dir*=">"]');function Q(e){return y(e)?(t=e,Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e[n],e}),{})):(v("Breakpoints option must be an object"),{});var t}var X={Html:function(e,t,n){var r={mount:function(){this.root=e.selector,this.track=this.root.querySelector(T),this.collectSlides()},collectSlides:function(){this.slides=Array.prototype.slice.call(this.wrapper.children).filter((function(t){return!t.classList.contains(e.settings.classes.slide.clone)}))}};return x(r,"root",{get:function(){return r._r},set:function(e){m(e)&&(e=document.querySelector(e)),O(e)?r._r=e:v("Root element must be a existing Html node")}}),x(r,"track",{get:function(){return r._t},set:function(e){O(e)?r._t=e:v("Could not find track element. Please use ".concat(T," attribute."))}}),x(r,"wrapper",{get:function(){return r.track.children[0]}}),n.on("update",(function(){r.collectSlides()})),r},Translate:function(e,t,n){var r={set:function(n){var r=function(e,t,n){var r=[M,q,P,z].concat(e._t,[N]);return{mutate:function(o){for(var i=0;i")||t.Run.isOffset("|>")?n+(r-o):(r+o)%n},getTravelDistance:function(){var n=t.Sizes.slideWidth*e.settings.perView;return t.Run.isOffset(">")||t.Run.isOffset("|>")?-1*n:n}};return n.on("move",(function(o){if(!e.isType("carousel")||!t.Run.isOffset())return r.set(o.movement);t.Transition.after((function(){n.emit("translate.jump"),r.set(t.Sizes.slideWidth*e.index)}));var i=t.Sizes.slideWidth*t.Translate.getStartIndex();return r.set(i-t.Translate.getTravelDistance())})),n.on("destroy",(function(){r.remove()})),r},Transition:function(e,t,n){var r=!1,o={compose:function(t){var n=e.settings;return r?"".concat(t," 0ms ").concat(n.animationTimingFunc):"".concat(t," ").concat(this.duration,"ms ").concat(n.animationTimingFunc)},set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";t.Html.wrapper.style.transition=this.compose(e)},remove:function(){t.Html.wrapper.style.transition=""},after:function(e){setTimeout((function(){e()}),this.duration)},enable:function(){r=!1,this.set()},disable:function(){r=!0,this.set()}};return x(o,"duration",{get:function(){var n=e.settings;return e.isType("slider")&&t.Run.offset?n.rewindDuration:n.animationDuration}}),n.on("move",(function(){o.set()})),n.on(["build.before","resize","translate.jump"],(function(){o.disable()})),n.on("run",(function(){o.enable()})),n.on("destroy",(function(){o.remove()})),o},Direction:function(e,t,n){var r={mount:function(){this.value=e.settings.direction},resolve:function(e){var t=e.slice(0,1);return this.is("rtl")?e.split(t).join(D[t]):e},is:function(e){return this.value===e},addClass:function(){t.Html.root.classList.add(e.settings.classes.direction[this.value])},removeClass:function(){t.Html.root.classList.remove(e.settings.classes.direction[this.value])}};return x(r,"value",{get:function(){return r._v},set:function(e){j.indexOf(e)>-1?r._v=e:v("Direction value must be `ltr` or `rtl`")}}),n.on(["destroy","update"],(function(){r.removeClass()})),n.on("update",(function(){r.mount()})),n.on(["build.before","update"],(function(){r.addClass()})),r},Peek:function(e,t,n){var r={mount:function(){this.value=e.settings.peek}};return x(r,"value",{get:function(){return r._v},set:function(e){y(e)?(e.before=p(e.before),e.after=p(e.after)):e=p(e),r._v=e}}),x(r,"reductor",{get:function(){var t=r.value,n=e.settings.perView;return y(t)?t.before/n+t.after/n:2*t/n}}),n.on(["resize","update"],(function(){r.mount()})),r},Sizes:function(e,t,n){var r={setupSlides:function(){for(var e="".concat(this.slideWidth,"px"),n=t.Html.slides,r=0;r0&&void 0!==arguments[0]?arguments[0]:0;this.offset=r,n.emit("move",{movement:this.value}),t.Transition.after((function(){n.emit("move.after",{movement:e.value})}))}};return x(r,"offset",{get:function(){return r._o},set:function(e){r._o=b(e)?0:p(e)}}),x(r,"translate",{get:function(){return t.Sizes.slideWidth*e.index}}),x(r,"value",{get:function(){var e=this.offset,n=this.translate;return t.Direction.is("rtl")?n+e:n-e}}),n.on(["build.before","run"],(function(){r.make()})),r},Clones:function(e,t,n){var r={mount:function(){this.items=[],e.isType("carousel")&&(this.items=this.collect())},collect:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=t.Html.slides,o=e.settings,i=o.perView,a=o.classes,s=o.cloningRatio;if(0!==r.length)for(var u=+!!e.settings.peek,c=i+u+Math.round(i/2),l=r.slice(0,c).reverse(),d=r.slice(-1*c),f=0;fn?void(e.index=n):void(e.index=o);if(">"!==i||">"!==o)if("<"!==i||"<"!==o){if("|"===i&&(a=e.settings.perView||1),">"===i||"|"===i&&">"===o){var s=function(t){var n=e.index;if(e.isType("carousel"))return n+t;return n+(t-n%t)}(a);return s>n&&(this._o=!0),void(e.index=function(t,n){var o=r.length;if(t<=o)return t;if(e.isType("carousel"))return t-(o+1);if(e.settings.rewind)return r.isBound()&&!r.isEnd()?o:0;if(r.isBound())return o;return Math.floor(o/n)*n}(s,a))}if("<"===i||"|"===i&&"<"===o){var u=function(t){var n=e.index;if(e.isType("carousel"))return n-t;return(Math.ceil(n/t)-1)*t}(a);return u<0&&(this._o=!0),void(e.index=function(t,n){var o=r.length;if(t>=0)return t;if(e.isType("carousel"))return t+(o+1);if(e.settings.rewind)return r.isBound()&&r.isStart()?o:Math.floor(o/n)*n;return 0}(u,a))}v("Invalid direction pattern [".concat(i).concat(o,"] has been used"))}else e.index=0;else e.index=n},isStart:function(){return e.index<=0},isEnd:function(){return e.index>=this.length},isOffset:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return e?!!this._o&&("|>"===e?"|"===this.move.direction&&">"===this.move.steps:"|<"===e?"|"===this.move.direction&&"<"===this.move.steps:this.move.direction===e):this._o},isBound:function(){return e.isType("slider")&&"center"!==e.settings.focusAt&&e.settings.bound}};return x(r,"move",{get:function(){return this._m},set:function(e){var t=e.substr(1);this._m={direction:e.substr(0,1),steps:t?p(t)?p(t):t:0}}}),x(r,"length",{get:function(){var n=e.settings,r=t.Html.slides.length;return this.isBound()?r-1-(p(n.perView)-1)+p(n.focusAt):r-1}}),x(r,"offset",{get:function(){return this._o}}),r},Swipe:function(e,t,n){var r=new I,o=0,i=0,a=0,s=!1,u=!!V&&{passive:!0},c={mount:function(){this.bindSwipeStart()},start:function(t){if(!s&&!e.disabled){this.disable();var r=this.touches(t);o=null,i=p(r.pageX),a=p(r.pageY),this.bindSwipeMove(),this.bindSwipeEnd(),n.emit("swipe.start")}},move:function(r){if(!e.disabled){var s=e.settings,u=s.touchAngle,c=s.touchRatio,l=s.classes,d=this.touches(r),f=p(d.pageX)-i,h=p(d.pageY)-a,v=Math.abs(f<<2),m=Math.abs(h<<2),y=Math.sqrt(v+m),g=Math.sqrt(m);if(!(180*(o=Math.asin(g/y))/Math.PId&&h"))):t.Move.make(),t.Html.root.classList.remove(c.dragging),this.unbindSwipeMove(),this.unbindSwipeEnd(),n.emit("swipe.end")}},bindSwipeStart:function(){var n=this,o=e.settings,i=o.swipeThreshold,a=o.dragThreshold;i&&r.on(H[0],t.Html.wrapper,(function(e){n.start(e)}),u),a&&r.on(H[1],t.Html.wrapper,(function(e){n.start(e)}),u)},unbindSwipeStart:function(){r.off(H[0],t.Html.wrapper,u),r.off(H[1],t.Html.wrapper,u)},bindSwipeMove:function(){var n=this;r.on(G,t.Html.wrapper,k((function(e){n.move(e)}),e.settings.throttle),u)},unbindSwipeMove:function(){r.off(G,t.Html.wrapper,u)},bindSwipeEnd:function(){var e=this;r.on(W,t.Html.wrapper,(function(t){e.end(t)}))},unbindSwipeEnd:function(){r.off(W,t.Html.wrapper)},touches:function(e){return U.indexOf(e.type)>-1?e:e.touches[0]||e.changedTouches[0]},threshold:function(t){var n=e.settings;return U.indexOf(t.type)>-1?n.dragThreshold:n.swipeThreshold},enable:function(){return s=!1,t.Transition.enable(),this},disable:function(){return s=!0,t.Transition.disable(),this}};return n.on("build.after",(function(){t.Html.root.classList.add(e.settings.classes.swipeable)})),n.on("destroy",(function(){c.unbindSwipeStart(),c.unbindSwipeMove(),c.unbindSwipeEnd(),r.destroy()})),c},Images:function(e,t,n){var r=new I,o={mount:function(){this.bind()},bind:function(){r.on("dragstart",t.Html.wrapper,this.dragstart)},unbind:function(){r.off("dragstart",t.Html.wrapper)},dragstart:function(e){e.preventDefault()}};return n.on("destroy",(function(){o.unbind(),r.destroy()})),o},Anchors:function(e,t,n){var r=new I,o=!1,i=!1,a={mount:function(){this._a=t.Html.wrapper.querySelectorAll("a"),this.bind()},bind:function(){r.on("click",t.Html.wrapper,this.click)},unbind:function(){r.off("click",t.Html.wrapper)},click:function(e){i&&(e.stopPropagation(),e.preventDefault())},detach:function(){if(i=!0,!o){for(var e=0;e"))),37===n.keyCode&&t.Run.make(t.Direction.resolve("".concat(r,"<")))}};return n.on(["destroy","update"],(function(){o.unbind()})),n.on("update",(function(){o.mount()})),n.on("destroy",(function(){r.destroy()})),o},Autoplay:function(e,t,n){var r=new I,o={mount:function(){this.enable(),this.start(),e.settings.hoverpause&&this.bind()},enable:function(){this._e=!0},disable:function(){this._e=!1},start:function(){var r=this;this._e&&(this.enable(),e.settings.autoplay&&b(this._i)&&(this._i=setInterval((function(){r.stop(),t.Run.make(">"),r.start(),n.emit("autoplay")}),this.time)))},stop:function(){this._i=clearInterval(this._i)},bind:function(){var e=this;r.on("mouseover",t.Html.root,(function(){e._e&&e.stop()})),r.on("mouseout",t.Html.root,(function(){e._e&&e.start()}))},unbind:function(){r.off(["mouseover","mouseout"],t.Html.root)}};return x(o,"time",{get:function(){var n=t.Html.slides[e.index].getAttribute("data-glide-autoplay");return p(n||e.settings.autoplay)}}),n.on(["destroy","update"],(function(){o.unbind()})),n.on(["run.before","swipe.start","update"],(function(){o.stop()})),n.on(["pause","destroy"],(function(){o.disable(),o.stop()})),n.on(["run.after","swipe.end"],(function(){o.start()})),n.on(["play"],(function(){o.enable(),o.start()})),n.on("update",(function(){o.mount()})),n.on("destroy",(function(){r.destroy()})),o},Breakpoints:function(e,t,n){var r=new I,o=e.settings,i=Q(o.breakpoints),a=Object.assign({},o),s={match:function(e){if("undefined"!==typeof window.matchMedia)for(var t in e)if(e.hasOwnProperty(t)&&window.matchMedia("(max-width: ".concat(t,"px)")).matches)return e[t];return a}};return Object.assign(o,s.match(i)),r.on("resize",window,k((function(){e.settings=E(o,s.match(i))}),e.settings.throttle)),n.on("update",(function(){i=Q(i),a=Object.assign({},o)})),n.on("destroy",(function(){r.off("resize",window)})),s}},$=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(n,e);var t=l(n);function n(){return o(this,n),t.apply(this,arguments)}return a(n,[{key:"mount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return f(s(n.prototype),"mount",this).call(this,Object.assign({},X,e))}}]),n}(L)},function(e,t,n){var r=n(8).default;function o(){"use strict";e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(T){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),s=new C(r||[]);return a(i,"_invoke",{value:S(e,n,s)}),i}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}t.wrap=f;var v={};function p(){}function m(){}function y(){}var g={};d(g,u,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(F([])));w&&w!==n&&i.call(w,u)&&(g=w);var _=y.prototype=p.prototype=Object.create(g);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,a,s,u){var c=h(e[o],e,a);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,u)}),(function(e){n("throw",e,s,u)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,u)}))}u(c.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function S(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return O()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=L(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=h(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function L(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,L(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=h(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,v;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,v):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function F(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:F(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),v}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(l){c=!0,o=l}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e,t){var n=document.querySelector(e),r=null===n||void 0===n?void 0:n.getBoundingClientRect().left,o=null===n||void 0===n?void 0:n.getAttribute("data-middle-point"),i=window.innerWidth/2,a=parseInt(r,10)-parseInt(i,10)+parseInt(o,10);t&&t.scrollBy({left:a,behavior:"smooth"})}},,,function(e,t,n){"use strict";n.r(t),n.d(t,"initTopicDirectory",(function(){return se}));var r=n(2),o=n.n(r),i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}"function"===typeof SuppressedError&&SuppressedError;var l,d="KEYS",f="VALUES",h="",v=function(){function e(e,t){var n=e._tree,r=Array.from(n.keys());this.set=e,this._type=t,this._path=r.length>0?[{node:n,keys:r}]:[]}return e.prototype.next=function(){var e=this.dive();return this.backtrack(),e},e.prototype.dive=function(){if(0===this._path.length)return{done:!0,value:void 0};var e=p(this._path),t=e.node,n=e.keys;if(p(n)===h)return{done:!1,value:this.result()};var r=t.get(p(n));return this._path.push({node:r,keys:Array.from(r.keys())}),this.dive()},e.prototype.backtrack=function(){if(0!==this._path.length){var e=p(this._path).keys;e.pop(),e.length>0||(this._path.pop(),this.backtrack())}},e.prototype.key=function(){return this.set._prefix+this._path.map((function(e){var t=e.keys;return p(t)})).filter((function(e){return e!==h})).join("")},e.prototype.value=function(){return p(this._path).node.get(h)},e.prototype.result=function(){switch(this._type){case f:return this.value();case d:return this.key();default:return[this.key(),this.value()]}},e.prototype[Symbol.iterator]=function(){return this},e}(),p=function(e){return e[e.length-1]},m=function(e,t,n,r,o,i,a,s){var c,l,d=i*a;try{e:for(var f=u(e.keys()),v=f.next();!v.done;v=f.next()){var p=v.value;if(p===h){var y=o[d-1];y<=n&&r.set(s,[e.get(p),y])}else{for(var g=i,b=0;bn)continue e}m(e.get(p),t,n,r,o,g,a,s+p)}}}catch(I){c={error:I}}finally{try{v&&!v.done&&(l=f.return)&&l.call(f)}finally{if(c)throw c.error}}},y=function(){function e(e,t){void 0===e&&(e=new Map),void 0===t&&(t=""),this._size=void 0,this._tree=e,this._prefix=t}return e.prototype.atPrefix=function(t){var n,r;if(!t.startsWith(this._prefix))throw new Error("Mismatched prefix");var o=c(g(this._tree,t.slice(this._prefix.length)),2),i=o[0],a=o[1];if(void 0===i){var s=c(S(a),2),l=s[0],d=s[1];try{for(var f=u(l.keys()),v=f.next();!v.done;v=f.next()){var p=v.value;if(p!==h&&p.startsWith(d)){var m=new Map;return m.set(p.slice(d.length),l.get(p)),new e(m,t)}}}catch(y){n={error:y}}finally{try{v&&!v.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}}return new e(i,t)},e.prototype.clear=function(){this._size=void 0,this._tree.clear()},e.prototype.delete=function(e){return this._size=void 0,_(this._tree,e)},e.prototype.entries=function(){return new v(this,"ENTRIES")},e.prototype.forEach=function(e){var t,n;try{for(var r=u(this),o=r.next();!o.done;o=r.next()){var i=c(o.value,2);e(i[0],i[1],this)}}catch(a){t={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.fuzzyGet=function(e,t){return function(e,t,n){var r=new Map;if(void 0===t)return r;for(var o=t.length+1,i=o+n,a=new Uint8Array(i*o).fill(n+1),s=0;s0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new y,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}},e.prototype.discard=function(e){var t=this,n=this._idToShortId.get(e);if(null==n)throw new Error("MiniSearch: cannot discard document with ID ".concat(e,": it is not in the index"));this._idToShortId.delete(e),this._documentIds.delete(n),this._storedFields.delete(n),(this._fieldLength.get(n)||[]).forEach((function(e,r){t.removeFieldLength(n,r,t._documentCount,e)})),this._fieldLength.delete(n),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()},e.prototype.maybeAutoVacuum=function(){if(!1!==this._options.autoVacuum){var e=this._options.autoVacuum,t=e.minDirtFactor,n=e.minDirtCount,r=e.batchSize,o=e.batchWait;this.conditionalVacuum({batchSize:r,batchWait:o},{minDirtCount:n,minDirtFactor:t})}},e.prototype.discardAll=function(e){var t,n,r=this._options.autoVacuum;try{this._options.autoVacuum=!1;try{for(var o=u(e),i=o.next();!i.done;i=o.next()){var a=i.value;this.discard(a)}}catch(s){t={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}}finally{this._options.autoVacuum=r}this.maybeAutoVacuum()},e.prototype.replace=function(e){var t=this._options,n=t.idField,r=(0,t.extractField)(e,n);this.discard(r),this.add(e)},e.prototype.vacuum=function(e){return void 0===e&&(e={}),this.conditionalVacuum(e)},e.prototype.conditionalVacuum=function(e,t){var n=this;return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&t,null!=this._enqueuedVacuum||(this._enqueuedVacuum=this._currentVacuum.then((function(){var t=n._enqueuedVacuumConditions;return n._enqueuedVacuumConditions=N,n.performVacuuming(e,t)}))),this._enqueuedVacuum):!1===this.vacuumConditionsMet(t)?Promise.resolve():(this._currentVacuum=this.performVacuuming(e),this._currentVacuum)},e.prototype.performVacuuming=function(e,t){return a(this,void 0,void 0,(function(){var n,r,o,i,a,l,d,f,h,v,p,m,y,g,b,w,_,x,E,S,L,A,k,C,F;return s(this,(function(s){switch(s.label){case 0:if(n=this._dirtCount,!this.vacuumConditionsMet(t))return[3,10];r=e.batchSize||D.batchSize,o=e.batchWait||D.batchWait,i=1,s.label=1;case 1:s.trys.push([1,7,8,9]),a=u(this._index),l=a.next(),s.label=2;case 2:if(l.done)return[3,6];d=c(l.value,2),f=d[0],h=d[1];try{for(A=void 0,v=u(h),p=v.next();!p.done;p=v.next()){m=c(p.value,2),y=m[0],g=m[1];try{for(C=void 0,b=u(g),w=b.next();!w.done;w=b.next())_=c(w.value,1),x=_[0],this._documentIds.has(x)||(g.size<=1?h.delete(y):g.delete(x))}catch(O){C={error:O}}finally{try{w&&!w.done&&(F=b.return)&&F.call(b)}finally{if(C)throw C.error}}}}catch(T){A={error:T}}finally{try{p&&!p.done&&(k=v.return)&&k.call(v)}finally{if(A)throw A.error}}return 0===this._index.get(f).size&&this._index.delete(f),i%r!==0?[3,4]:[4,new Promise((function(e){return setTimeout(e,o)}))];case 3:s.sent(),s.label=4;case 4:i+=1,s.label=5;case 5:return l=a.next(),[3,2];case 6:return[3,9];case 7:return E=s.sent(),S={error:E},[3,9];case 8:try{l&&!l.done&&(L=a.return)&&L.call(a)}finally{if(S)throw S.error}return[7];case 9:this._dirtCount-=n,s.label=10;case 10:return[4,null];case 11:return s.sent(),this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null,[2]}}))}))},e.prototype.vacuumConditionsMet=function(e){if(null==e)return!0;var t=e.minDirtCount,n=e.minDirtFactor;return t=t||M.minDirtCount,n=n||M.minDirtFactor,this.dirtCount>=t&&this.dirtFactor>=n},Object.defineProperty(e.prototype,"isVacuuming",{get:function(){return null!=this._currentVacuum},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dirtCount",{get:function(){return this._dirtCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dirtFactor",{get:function(){return this._dirtCount/(1+this._documentCount+this._dirtCount)},enumerable:!1,configurable:!0}),e.prototype.has=function(e){return this._idToShortId.has(e)},e.prototype.getStoredFields=function(e){var t=this._idToShortId.get(e);if(null!=t)return this._storedFields.get(t)},e.prototype.search=function(t,n){var r,o;void 0===n&&(n={});var i=this.executeQuery(t,n),a=[];try{for(var s=u(i),l=s.next();!l.done;l=s.next()){var d=c(l.value,2),f=d[0],h=d[1],v=h.score,p=h.terms,m=h.match,y=p.length||1,g={id:this._documentIds.get(f),score:v*y,terms:Object.keys(m),queryTerms:p,match:m};Object.assign(g,this._storedFields.get(f)),(null==n.filter||n.filter(g))&&a.push(g)}}catch(b){r={error:b}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return t===e.wildcard&&null==n.boostDocument&&null==this._options.searchOptions.boostDocument||a.sort(z),a},e.prototype.autoSuggest=function(e,t){var n,r,o,a;void 0===t&&(t={}),t=i(i({},this._options.autoSuggestOptions),t);var s=new Map;try{for(var l=u(this.search(e,t)),d=l.next();!d.done;d=l.next()){var f=d.value,h=f.score,v=(_=f.terms).join(" ");null!=(b=s.get(v))?(b.score+=h,b.count+=1):s.set(v,{score:h,terms:_,count:1})}}catch(E){n={error:E}}finally{try{d&&!d.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}var p=[];try{for(var m=u(s),y=m.next();!y.done;y=m.next()){var g=c(y.value,2),b=g[0],w=g[1],_=(h=w.score,w.terms),x=w.count;p.push({suggestion:b,terms:_,score:h/x})}}catch(S){o={error:S}}finally{try{y&&!y.done&&(a=m.return)&&a.call(m)}finally{if(o)throw o.error}}return p.sort(z),p},Object.defineProperty(e.prototype,"documentCount",{get:function(){return this._documentCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"termCount",{get:function(){return this._index.size},enumerable:!1,configurable:!0}),e.loadJSON=function(e,t){if(null==t)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(e),t)},e.getDefault=function(e){if(T.hasOwnProperty(e))return k(T,e);throw new Error('MiniSearch: unknown option "'.concat(e,'"'))},e.loadJS=function(t,n){var r,o,i,a,s,l,d=t.index,f=t.documentCount,h=t.nextId,v=t.documentIds,p=t.fieldIds,m=t.fieldLength,g=t.averageFieldLength,b=t.storedFields,w=t.dirtCount,_=t.serializationVersion;if(1!==_&&2!==_)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");var x=new e(n);x._documentCount=f,x._nextId=h,x._documentIds=R(v),x._idToShortId=new Map,x._fieldIds=p,x._fieldLength=R(m),x._avgFieldLength=g,x._storedFields=R(b),x._dirtCount=w||0,x._index=new y;try{for(var E=u(x._documentIds),S=E.next();!S.done;S=E.next()){var L=c(S.value,2),A=L[0],k=L[1];x._idToShortId.set(k,A)}}catch(P){r={error:P}}finally{try{S&&!S.done&&(o=E.return)&&o.call(E)}finally{if(r)throw r.error}}try{for(var C=u(d),F=C.next();!F.done;F=C.next()){var O=c(F.value,2),T=O[0],I=O[1],j=new Map;try{for(var D=(s=void 0,u(Object.keys(I))),N=D.next();!N.done;N=D.next()){var M=N.value,q=I[M];1===_&&(q=q.ds),j.set(parseInt(M,10),R(q))}}catch(z){s={error:z}}finally{try{N&&!N.done&&(l=D.return)&&l.call(D)}finally{if(s)throw s.error}}x._index.set(T,j)}}catch(B){i={error:B}}finally{try{F&&!F.done&&(a=C.return)&&a.call(C)}finally{if(i)throw i.error}}return x},e.prototype.executeQuery=function(t,n){var r=this;if(void 0===n&&(n={}),t===e.wildcard)return this.executeWildcardQuery(n);if("string"!==typeof t){var o=i(i(i({},n),t),{queries:void 0}),a=t.queries.map((function(e){return r.executeQuery(e,o)}));return this.combineResults(a,o.combineWith)}var s=this._options,u=s.tokenize,c=s.processTerm,l=s.searchOptions,d=i(i({tokenize:u,processTerm:c},l),n),f=d.tokenize,h=d.processTerm,v=f(t).flatMap((function(e){return h(e)})).filter((function(e){return!!e})).map(O(d)).map((function(e){return r.executeQuerySpec(e,d)}));return this.combineResults(v,d.combineWith)},e.prototype.executeQuerySpec=function(e,t){var n,r,o,a,s,l,d=i(i({},this._options.searchOptions),t),f=(d.fields||this._options.fields).reduce((function(e,t){var n;return i(i({},e),((n={})[t]=k(d.boost,t)||1,n))}),{}),h=d.boostDocument,v=d.weights,p=d.maxFuzzy,m=d.bm25,y=i(i({},I.weights),v),g=y.fuzzy,b=y.prefix,w=this._index.get(e.term),_=this.termResults(e.term,e.term,1,w,f,h,m);if(e.prefix&&(s=this._index.atPrefix(e.term)),e.fuzzy){var x=!0===e.fuzzy?.2:e.fuzzy,E=x<1?Math.min(p,Math.round(e.term.length*x)):x;E&&(l=this._index.fuzzyGet(e.term,E))}if(s)try{for(var S=u(s),L=S.next();!L.done;L=S.next()){var A=c(L.value,2),C=A[0],F=A[1];if(D=C.length-e.term.length){null===l||void 0===l||l.delete(C);var O=b*C.length/(C.length+.3*D);this.termResults(e.term,C,O,F,f,h,m,_)}}}catch(q){n={error:q}}finally{try{L&&!L.done&&(r=S.return)&&r.call(S)}finally{if(n)throw n.error}}if(l)try{for(var T=u(l.keys()),j=T.next();!j.done;j=T.next()){C=j.value;var D,N=c(l.get(C),2),M=N[0];if(D=N[1]){O=g*C.length/(C.length+D);this.termResults(e.term,C,O,M,f,h,m,_)}}}catch(P){o={error:P}}finally{try{j&&!j.done&&(a=T.return)&&a.call(T)}finally{if(o)throw o.error}}return _},e.prototype.executeWildcardQuery=function(e){var t,n,r=new Map,o=i(i({},this._options.searchOptions),e);try{for(var a=u(this._documentIds),s=a.next();!s.done;s=a.next()){var l=c(s.value,2),d=l[0],f=l[1],h=o.boostDocument?o.boostDocument(f,"",this._storedFields.get(d)):1;r.set(d,{score:h,terms:[],match:{}})}}catch(v){t={error:v}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r},e.prototype.combineResults=function(e,t){if(void 0===t&&(t=L),0===e.length)return new Map;var n=t.toLowerCase();return e.reduce(C[n])||new Map},e.prototype.toJSON=function(){var e,t,n,r,o=[];try{for(var i=u(this._index),a=i.next();!a.done;a=i.next()){var s=c(a.value,2),l=s[0],d=s[1],f={};try{for(var h=(n=void 0,u(d)),v=h.next();!v.done;v=h.next()){var p=c(v.value,2),m=p[0],y=p[1];f[m]=Object.fromEntries(y)}}catch(g){n={error:g}}finally{try{v&&!v.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}o.push([l,f])}}catch(b){e={error:b}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:o,serializationVersion:2}},e.prototype.termResults=function(e,t,n,r,o,i,a,s){var c,l,d,f,h;if(void 0===s&&(s=new Map),null==r)return s;try{for(var v=u(Object.keys(o)),p=v.next();!p.done;p=v.next()){var m=p.value,y=o[m],g=this._fieldIds[m],b=r.get(g);if(null!=b){var w=b.size,_=this._avgFieldLength[g];try{for(var x=(d=void 0,u(b.keys())),E=x.next();!E.done;E=x.next()){var S=E.value;if(this._documentIds.has(S)){var L=i?i(this._documentIds.get(S),t,this._storedFields.get(S)):1;if(L){var A=b.get(S),C=this._fieldLength.get(S)[g],O=n*y*L*F(A,w,this._documentCount,C,_,a),T=s.get(S);if(T){T.score+=O,q(T.terms,e);var I=k(T.match,t);I?I.push(m):T.match[t]=[m]}else s.set(S,{score:O,terms:[e],match:(h={},h[t]=[m],h)})}}else this.removeTerm(g,S,t),w-=1}}catch(j){d={error:j}}finally{try{E&&!E.done&&(f=x.return)&&f.call(x)}finally{if(d)throw d.error}}}}}catch(D){c={error:D}}finally{try{p&&!p.done&&(l=v.return)&&l.call(v)}finally{if(c)throw c.error}}return s},e.prototype.addTerm=function(e,t,n){var r=this._index.fetch(n,B),o=r.get(e);if(null==o)(o=new Map).set(t,1),r.set(e,o);else{var i=o.get(t);o.set(t,(i||0)+1)}},e.prototype.removeTerm=function(e,t,n){if(this._index.has(n)){var r=this._index.fetch(n,B),o=r.get(e);null==o||null==o.get(t)?this.warnDocumentChanged(t,e,n):o.get(t)<=1?o.size<=1?r.delete(e):o.delete(t):o.set(t,o.get(t)-1),0===this._index.get(n).size&&this._index.delete(n)}else this.warnDocumentChanged(t,e,n)},e.prototype.warnDocumentChanged=function(e,t,n){var r,o;try{for(var i=u(Object.keys(this._fieldIds)),a=i.next();!a.done;a=i.next()){var s=a.value;if(this._fieldIds[s]===t)return void this._options.logger("warn","MiniSearch: document with ID ".concat(this._documentIds.get(e),' has changed before removal: term "').concat(n,'" was not present in field "').concat(s,'". Removing a document after it has changed can corrupt the index!'),"version_conflict")}}catch(c){r={error:c}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}},e.prototype.addDocumentId=function(e){var t=this._nextId;return this._idToShortId.set(e,t),this._documentIds.set(t,e),this._documentCount+=1,this._nextId+=1,t},e.prototype.addFields=function(e){for(var t=0;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n We're always expanding our topics. Check back later for updates.",n.appendChild(r),n.appendChild(o),document.querySelector(".topic-directory__main").appendChild(n)},re=function(){var e=new A({fields:["name"],storeFields:["id","name","URL","implicitType","explicitType"]}),t=function(){var t=document.querySelector('input[name="query"]').value;if(0===t.length&&(ee(),te(),Z()),t.length>2){te(),function(){for(var e=document.getElementsByClassName("topic-directory__section"),t=0;t0?function(e,t){var n=document.createElement("div");n.id=Q;var r=document.createElement("div");r.classList.add("topic-directory__selected-indicator"),r.innerHTML=t;var o=document.createElement("div");o.classList.add("topic-directory__main-content");for(var i=document.createElement("ul"),a=0;a768?"flex":"grid"}var u=document.getElementById("places-search");null!==u&&void 0!==u&&u.style&&(u.style.display="places"===t.dataset.tabKey?"block":"none");var c=new URL(window.location.href);"all"!==t.dataset.tabKey?c.searchParams.set("tab",t.dataset.tabKey):c.searchParams.delete("tab"),window.history.replaceState(null,null,c),document.getElementById("selected-topic").innerHTML=t.dataset.titleText}};document.querySelectorAll(".topic-directory__tablink").forEach((function(t){t.addEventListener("click",(function(n){e(0,t)}))}))},ie=function(){var e;null===(e=document.getElementById("custom-select"))||void 0===e||e.addEventListener("click",(function(){document.querySelector(".select-items").classList.toggle("open"),document.querySelector(".topic-directory__main").classList.toggle("opened")})),document.addEventListener("click",(function(e){var t,n;e.target.closest(".custom-select")||(null===(t=document.querySelector(".select-items"))||void 0===t||t.classList.remove("open"),null===(n=document.querySelector(".topic-directory__main"))||void 0===n||n.classList.remove("opened"))}));document.querySelectorAll(".select-items .option").forEach((function(e){e.addEventListener("click",(function(t){!function(e,t){ee(),te();var n=!0;if(document.querySelectorAll(".topic-directory__button-nav .button").forEach((function(e){e.textContent===t.textContent&&e.classList.add("active")})),document.querySelector("#custom-select .selected-letter").textContent=t.textContent,"All"!==t.textContent){for(var r=document.getElementsByClassName("topic-directory__section"),o=0;ot?e.classList.add("hide"):e.classList.remove("hide"),t=n<=0?0:n}),!1)}();var e=function(){var e=new URLSearchParams(window.location.search).get("tab");e&&document.querySelectorAll(".topic-directory__tablink").forEach((function(t){t.dataset.tabKey===e&&t.click()}));!function(){var e=new MutationObserver((function(e,t){var n=document.getElementById("search-results"),r=document.querySelector(".icon-close"),i=document.querySelector(".topic-directory__places-search-input-group-field");function a(){var e=n.getElementsByTagName("p"),t=n.getElementsByTagName("a");Array.from([].concat(U()(e),U()(t))).forEach((function(e){e.remove()}))}function s(){i&&r&&n&&(i.value="",r.style.visibility="hidden",a(),n.style.visibility="hidden")}s();var u={},c=function(e){for(var t=0;tn&&t&&t[o[n]]&&Array.isArray(t[o[n]])){var i=1===t[o[n]].length?t[o[n]][0]:t[o[n]];return Array.isArray(i)&&i.find((function(t){return t&&(t.name&&t.name===e||t.Name&&t.Name===e)}))?o[n]:d(e,t,n+1)}return(null===o||void 0===o?void 0:o.length)>n?d(e,t[o[n]],0):"Region"}function f(e,t,n){return n.filter((function(n){return n[t]===e}))}function h(e){var t={},n={},r=[];for(var o in e.forEach((function(e){var n;null!==(n=t[e.name||e.Name])&&void 0!==n&&n.length?t[e.name||e.Name].push(e):t[e.name||e.Name]=[e]})),t){var i,a=Y(t[o]);try{for(a.s();!(i=a.n()).done;){var s=i.value;if(n[s.name||s.Name]=s,"type"in s)break}}catch(c){a.e(c)}finally{a.f()}}for(var u in n)r.push(n[u]);return r}l.addAll(c);var v=function(e,t){var n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i=0;a--)if("type"in E[a]){o=E[a];break}u[(null===(e=o)||void 0===e?void 0:e.name)||(null===(t=o)||void 0===t?void 0:t.Name)]=s;var c=d((null===(n=o)||void 0===n?void 0:n.name)||(null===(r=o)||void 0===r?void 0:r.Name),placesJson,0);c&&o&&(i[c]?i[c].some((function(e){var t,n,r,i;return(null===e||void 0===e?void 0:e.name)===(null===(t=o)||void 0===t?void 0:t.name)||(null===e||void 0===e?void 0:e.Name)===(null===(n=o)||void 0===n?void 0:n.Name)||(null===e||void 0===e?void 0:e.name)===(null===(r=o)||void 0===r?void 0:r.Name)||(null===e||void 0===e?void 0:e.Name)===(null===(i=o)||void 0===i?void 0:i.name)}))||i[c].push(o):i[c]=[o])}(),s=h(f((null===(_=s)||void 0===_?void 0:_.name)||(null===(x=s)||void 0===x?void 0:x.Name),"parentName",c))[0],v+=1}v=0;for(var S=0;S]+src=(['"])(.*?)\1/i,l=/[\s\S]*?createElement[\s\S]*?src\s?=\s?(['"])(.*?)\1/i,d={"connect.facebook.net":{isLoaded:function(){if(!document.querySelector("body > #fb-root")){a()(document.querySelectorAll("#fb-root")).forEach((function(e){return e.parentNode.removeChild(e)}));var e=document.createElement("div");e.id="fb-root",document.body.appendChild(e)}return void 0!==window.FB},reload:function(e){return window.FB.XFBML.parse(e)}},"instagram.com":{isLoaded:function(){return void 0!==window.instgrm},reload:function(){return window.instgrm.Embeds.process()}},"twitter.com":{isLoaded:function(){return void 0!==window.twttr&&void 0!==window.twttr.widgets},reload:function(){return window.twttr.widgets.load()}},"trellocdn.com":{isLoaded:function(){return void 0!==window.TrelloCards&&void 0!==window.TrelloCards.load},reload:function(){return window.TrelloCards.load(document,{compact:!1,allAnchors:!1})}}},f=function(e){return function(e){var t=e.match(c);return t&&t[2]}(e)||function(e){var t=e.match(l);return t&&t[2]}(e)},h=function(e){var t=e.match(//gi);return t?function(e){return Object.keys(e.reduce((function(e,t){return t?u(u({},e),{},o()({},t,!0)):e}),{}))}(t.map(f)):[]};function v(e){var t=e.innerHTML;t&&(window.onYouTubeIframeAPIReady&&window.onYouTubeIframeAPIReady(),h(t).map((function(t){var n=function(e){return Object.keys(d).reduce((function(t,n){return t||e.indexOf(n)>-1&&d[n]||null}),null)}(t);return n&&n.isLoaded()?n.reload(e):function(e){var t=document.createElement("script");return t.src=e.replace("&","&"),document.head.appendChild(t),t}(t)})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){var t=e.slice(-1)[0],n=o(e),r=window.matchMedia("(min-width: 1180px)");n>window.innerWidth&&r.matches&&(t.style.paddingRight="77px",navigator.userAgent.includes("Firefox")&&t.setAttribute("data-last-item","true"))},o=function(e){if(!e.length)return 0;var t=0;return e.forEach((function(e){var n=e.currentStyle||window.getComputedStyle(e),r=e.offsetWidth,o=parseFloat(n.marginLeft)+parseFloat(n.marginRight),i=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight);t+=r+o+i;var a=(r/2).toString();e.setAttribute("data-middle-point",a)})),t}},,,function(e,t,n){var r=n(11);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(8).default,o=n(32);e.exports=function(e){var t=o(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(8).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},,function(e,t,n){"use strict";n.r(t),n.d(t,"glideCarousel",(function(){return r}));var r=new(n(14).a)(".glide__carousel",{peek:200,focusAt:"center",startAt:0,perView:3,gap:10,breakpoints:{640:{peek:0,perView:1},1024:{peek:0,perView:2},1440:{peek:50,perView:3}}});document.querySelector(".glide__carousel")&&(r.mount(),window.addEventListener("resize",(function(){var e={peek:200,perView:3};window.matchMedia("(max-width: 640px)").matches?e={peek:0,perView:1}:window.matchMedia("(min-width: 641px) and (max-width: 1024px)").matches?e={peek:0,perView:2}:window.matchMedia("(min-width: 1025px) and (max-width: 1440px)").matches?e={peek:50,perView:3}:window.matchMedia("(min-width: 1441px)").matches&&(e={peek:200,perView:3}),r.update(e)})))},,,,,,,,,,,,,,function(e,t,n){n.p||(n.p="/content/themes/rappler/build/")},function(e,t,n){"use strict";n.r(t);var r=new(n(14).a)(".glide__videos",{focusAt:0,perView:1.5,gap:40,breakpoints:{768:{perView:1.1,gap:10}}});if(document.querySelector(".glide__videos")){r.mutate([function(e,t){return{modify:function(n){return 0===e.index?n:e.index===t.Sizes.length-1?n-(t.Sizes.width-t.Sizes.slideWidth):n-(t.Sizes.width-t.Sizes.slideWidth)/2}}}]).mount();var o=document.querySelector(".glide__slides").children.length;r.on("run",(function(){var e=r.index;0===e?document.querySelector(".latest-videos__control.arrow-left").classList.add("hide"):e===o-1?document.querySelector(".latest-videos__control.arrow-right").classList.add("hide"):document.querySelectorAll(".latest-videos__control").forEach((function(e){return e.classList.remove("hide")}))}))}},function(e,t,n){"use strict";n.r(t);for(var r=n(14),o=0,i=[],a=document.querySelector("body"),s=null===a||void 0===a?void 0:a.classList.contains("ontology-topic-template-default"),u=".carousel",c=".carousel--videos",l=".carousel--cta",d=".glide__bullets",f="data-glide-options",h={focusAt:0,perView:4.2,gap:32,bound:!0,breakpoints:{250:{perView:1,gap:24},500:{perView:1.5,gap:24},600:{perView:2.5,gap:24},768:{perView:3,gap:24},960:{perView:3.2,gap:32},1024:{perView:3.5,gap:32},1180:{perView:3.8,gap:32}}},v=".carousel__controls",p=document.querySelectorAll(".glide__portrait"),m=function(e,t){var n=e>o?"next":"prev";o=e;var r=[];if(i.includes(e))return i;if(e<=5&&["next",""].includes(n)){for(var a=5;a>=0;a--)r.push(a);return i=r,r}if("next"===n)for(var s=e-5>t-5?t-5:e-5,u=e;u>=s;u--)r.push(u);else for(var c=e;c<=e+5;c++)r.push(c);return i=r,r},y=function(e){var t=p[e],n=t.getAttribute("data-item-count"),r=n?parseInt(n):0;if(r>0&&!Number.isNaN(r)){var o=t.querySelectorAll(d);if(o.length){for(;o[0].firstChild;)o[0].removeChild(o[0].firstChild);var i=r;window.matchMedia("(min-width: 1181px)").matches?i=r-4:window.matchMedia("(min-width: 768px) and (max-width: 1180px)").matches&&(i=r-3);for(var a=m(0,i),u=0;u<=i;u++){var c=document.createElement("div");c.classList.add("carousel__bullet"),!a.includes(u)&&s&&c.classList.add("hide"),c.setAttribute("data-glide-dir","=".concat(u)),o[0].appendChild(c)}}}},g=function(e){var t=p[e].getAttribute(f)?JSON.parse(p[e].getAttribute(f)):h,n=new r.a(p[e],t),o=p[e].querySelector(".glide__slides").children.length;n.on("mount.before",(function(){var t;p[e].setAttribute("data-item-count",o);var r=p[e].getAttribute("data-item-count"),i=r?parseInt(r):0;y(e);var a={dragThreshold:!1};null!==(t=p[e].closest(u))&&void 0!==t&&t.classList.contains("carousel--cta")&&(window.matchMedia("(min-width: 1181px)").matches&&i<=5||window.matchMedia("(min-width: 768px) and (max-width: 1180px)").matches&&i<=3)&&(p[e].closest(u).querySelectorAll(v).forEach((function(e){return e.classList.add("hide")})),n.update(a)),p[e].closest(u).querySelectorAll(v).length>0&&(window.matchMedia("(min-width: 1181px)").matches&&i<=4||window.matchMedia("(min-width: 768px) and (max-width: 1180px)").matches&&i<=3)&&(p[e].closest(u).querySelectorAll(v).forEach((function(e){return e.classList.add("hide")})),n.update(a))})),n.mount();var i=p[e].closest(u).querySelector(".next"),a=p[e].closest(u).querySelector(".prev");i&&i.addEventListener("click",(function(e){e.preventDefault(),n.go(">")})),a&&a.addEventListener("click",(function(e){e.preventDefault(),n.go("<")})),n.on("run",(function(){var t=n.index,r=parseInt(p[e].getAttribute("data-item-count"),10);if(p[e].closest(l)&&p[e].closest(l).querySelectorAll(v).length>0){var o=p[e].closest(l).querySelector(".next"),i=p[e].closest(l).querySelector(".prev");0===t?(o.classList.remove("disabled"),i.classList.add("disabled")):t===r-5?(i.classList.remove("disabled"),o.classList.add("disabled")):(i.classList.remove("disabled"),o.classList.remove("disabled"))}if(p[e].closest(c)&&p[e].closest(c).querySelectorAll(v).length>0&&(0===t?(p[e].closest(c).querySelector(".carousel__controls--prev").classList.add("hide"),p[e].closest(c).querySelector(".carousel__controls--next").classList.remove("hide")):window.matchMedia("(min-width: 768px) and (max-width: 1180px)").matches&&t===r-3||window.matchMedia("(min-width: 1181px)").matches&&t===r-4?(p[e].closest(c).querySelector(".carousel__controls--prev").classList.remove("hide"),p[e].closest(c).querySelector(".carousel__controls--next").classList.add("hide")):p[e].closest(c).querySelectorAll(v).forEach((function(e){return e.classList.remove("hide")})),s)){var a=m(t,r),u=p[e].closest(c);if(u){var f,h=null===(f=u.querySelectorAll(d)[0])||void 0===f?void 0:f.childNodes;if(h.length)for(var y=0;y64&&null===u?(a[0].classList.add("hide"),null!==s&&s.classList.add("top"),null!==c&&c.classList.add("hide"),i=e):1===e&&(a[0].classList.remove("hide"),null!==s&&s.classList.remove("top"),null!==c&&c.classList.remove("hide"),i=e)};window.addEventListener("scroll",(function(){(e=n.scrollY||t.scrollTop)>r?o=2:eo?(e.classList.add("alt-color"),t.classList.add("to-top")):(e.classList.remove("alt-color"),t.classList.remove("to-top")),n>a?r.classList.add("to-top"):r.classList.remove("to-top")}))}}()},function(e,t,n){"use strict";n.r(t);var r=n(20),o=n(5),i=n(25);!function(){var e=document.querySelector(".masthead-lower__homepage ul"),t=Array.from(document.getElementsByClassName("masthead-lower__homepage-item")),n=Array.from(document.getElementsByClassName("anchor")),a="";if(window.addEventListener("load",(function(){Object(i.a)(t)})),t.length){var s=new IntersectionObserver((function(n,o){n.forEach((function(n){!0===n.isIntersecting&&(a=n.target.id,t.forEach((function(t){t.firstChild&&(t.firstChild.getAttribute("href")==="#".concat(a)?(t.classList.add("active"),Object(r.a)(".masthead-lower__homepage-item.active",e)):t.classList.remove("active"))})))}))}),{root:null,rootMargin:"128px 0px 0px 0px",threshold:.1});n.forEach((function(e){s.observe(e)})),t.forEach((function(e){e.addEventListener("click",u)}))}function u(e){e.preventDefault();var t=document.querySelector(e.currentTarget.firstChild.hash),n=window.pageYOffset>t.offsetTop?160:100;window.scroll({top:t.offsetTop-n,left:0,behavior:"smooth"})}Object(o.a)(e)}()},function(e,t,n){"use strict";n.r(t);var r=n(20),o=n(5),i=n(25);!function(){var e=document.querySelector(".masthead-lower__section ul"),t=Array.from(document.getElementsByClassName("masthead-lower__section-item")),n=document.querySelectorAll(".section-template .anchor"),a="";if(window.addEventListener("load",(function(){Object(i.a)(t)})),t.length){Object(o.a)(e),window.addEventListener("load",(function(){Object(r.a)(".masthead-lower__section-item.active",e)}));var s=new IntersectionObserver((function(n,o){n.forEach((function(n){!0===n.isIntersecting&&(a=n.target.getAttribute("data-slug"),t.forEach((function(t){t.getAttribute("data-slug")===a?(t.classList.add("active"),Object(r.a)(".masthead-lower__section-item.active",e)):t.classList.remove("active")})))}))}),{root:null,rootMargin:"128px 0px 0px 0px",threshold:.1});n&&n.forEach((function(e){s.observe(e)}))}window.history.scrollRestoration?window.history.scrollRestoration="auto":window.onbeforeunload=function(){window.scrollTo(0,0)}}()},function(e,t,n){"use strict";function r(){for(var e=document.getElementsByClassName("rappler-lazy-load"),t="".concat(rapplerThemeData.restBase,"rappler/v1/batch?"),n=[],r=0;r299)return"continue";if(!n.body||!n.body.html)return"continue";var r=n.body;document.querySelectorAll(".rappler-lazy-load[data-template=".concat(r.id,"]")).forEach((function(e){e.innerHTML=r.html,e.dataset.loaded=!0,document.dispatchEvent(new CustomEvent("lazy-loaded-template",{template:r.id,element:e})),document.dispatchEvent(new CustomEvent("lazy-loaded-template-".concat(r.id),{template:r.id,element:e}))}))},n=0;nt,l=a.children.length;e?l>1&&function(){var e=i.getElementsByTagName("p")[0];if("undefined"!==typeof e){var t=i.children.length>1,n=e.offsetHeight,o=getComputedStyle(e);n+=parseInt(o.marginTop)+parseInt(o.marginBottom),t&&(i.classList.add("toggled-off"),i.insertAdjacentHTML("afterend",r),i.style.height=n+"px");var a=document.querySelector(".see-more__button");a&&a.addEventListener("click",(function(){i.classList.contains("toggled-off")?(i.classList.remove("toggled-off"),i.style.height="auto"):(i.classList.add("toggled-off"),i.style.height=n+"px"),"See more"===a.textContent?a.textContent="See less":a.textContent="See more",a.classList.contains("toggled")?a.classList.remove("toggled"):a.classList.add("toggled")}))}}():n&&function(){if(o){var e=o.classList.contains("infobox__content")?150:120;o.clientHeight>e&&(o.classList.add("toggled-off","see-more-enabled"),o.insertAdjacentHTML("afterend",r));var t=document.querySelector(".see-more__button");t&&t.addEventListener("click",(function(){o.classList.contains("toggled-off")?o.classList.remove("toggled-off"):o.classList.add("toggled-off"),"See more"===t.textContent?t.textContent="See less":t.textContent="See more",t.classList.contains("toggled")?t.classList.remove("toggled"):t.classList.add("toggled")}))}}()}};"loading"!==document.readyState?l():document.addEventListener("DOMContentLoaded",(function(e){l()}))},function(e,t,n){"use strict";n.r(t);var r=n(4),o=n.n(r),i=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],a=i.join(","),s="undefined"===typeof Element,u=s?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,c=!s&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},l=function(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(a));return t&&u.call(e,a)&&r.unshift(e),r=r.filter(n)},d=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var s=i.shift();if("SLOT"===s.tagName){var c=s.assignedElements(),l=e(c.length?c:s.children,!0,r);r.flatten?o.push.apply(o,l):o.push({scope:s,candidates:l})}else{u.call(s,a)&&r.filter(s)&&(n||!t.includes(s))&&o.push(s);var d=s.shadowRoot||"function"===typeof r.getShadowRoot&&r.getShadowRoot(s),f=!r.shadowRootFilter||r.shadowRootFilter(s);if(d&&f){var h=e(!0===d?s.children:d.children,!0,r);r.flatten?o.push.apply(o,h):o.push({scope:s,candidates:h})}else i.unshift.apply(i,s.children)}}return o},f=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},h=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},v=function(e){return"INPUT"===e.tagName},p=function(e){return function(e){return v(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||c(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!==typeof window&&"undefined"!==typeof window.CSS&&"function"===typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var o=function(e,t){for(var n=0;nsummary:first-of-type")?e.parentElement:e;if(u.call(o,"details:not([open]) *"))return!0;var i=c(e).host,a=(null===i||void 0===i?void 0:i.ownerDocument.contains(i))||e.ownerDocument.contains(e);if(n&&"full"!==n){if("non-zero-area"===n)return m(e)}else{if("function"===typeof r){for(var s=e;e;){var l=e.parentElement,d=c(e);if(l&&!l.shadowRoot&&!0===r(l))return m(e);e=e.assignedSlot?e.assignedSlot:l||d===e.ownerDocument?l:d.host}e=s}if(a)return!e.getClientRects().length}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n=0)},w=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scope,a=i?t.scope:t,s=f(a,i),u=i?e(t.candidates):a;0===s?i?n.push.apply(n,u):n.push(a):r.push({documentOrder:o,tabIndex:s,item:t,isScope:i,content:u})})),r.sort(h).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},_=function(e,t){var n;return n=(t=t||{}).getShadowRoot?d([e],t.includeContainer,{filter:g.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:b}):l(e,t.includeContainer,g.bind(null,t)),w(n)},x=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==u.call(e,a)&&g(t,e)},E=i.concat("iframe").join(","),S=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==u.call(e,E)&&y(t,e)};function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t0){var n=e[e.length-1];n!==t&&n.pause()}var r=e.indexOf(t);-1===r||e.splice(r,1),e.push(t)},deactivateTrap:function(t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}}}(),F=function(e){return setTimeout(e,0)},O=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},T=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?n-1:0),a=1;a=0)e=r.activeElement;else{var t=i.tabbableGroups[0];e=t&&t.firstTabbableNode||u("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},f=function(){if(i.containerGroups=i.containers.map((function(e){var t,n,r=_(e,o.tabbableOptions),i=(t=e,(n=(n=o.tabbableOptions)||{}).getShadowRoot?d([t],n.includeContainer,{filter:y.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):l(t,n.includeContainer,y.bind(null,n)));return{container:e,tabbableNodes:r,focusableNodes:i,firstTabbableNode:r.length>0?r[0]:null,lastTabbableNode:r.length>0?r[r.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=i.findIndex((function(t){return t===e}));if(!(n<0))return t?i.slice(n+1).find((function(e){return x(e,o.tabbableOptions)})):i.slice(0,n).reverse().find((function(e){return x(e,o.tabbableOptions)}))}}})),i.tabbableGroups=i.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),i.tabbableGroups.length<=0&&!u("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},h=function e(t){!1!==t&&t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!o.preventScroll}),i.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"===typeof e.select}(t)&&t.select()):e(c()))},v=function(e){var t=u("setReturnFocus",e);return t||!1!==t&&e},p=function(e){var t=I(e);s(t)>=0||(T(o.clickOutsideDeactivates,e)?n.deactivate({returnFocus:o.returnFocusOnDeactivate&&!S(t,o.tabbableOptions)}):T(o.allowOutsideClick,e)||e.preventDefault())},m=function(e){var t=I(e),n=s(t)>=0;n||t instanceof Document?n&&(i.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),h(i.mostRecentlyFocusedNode||c()))},g=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==T(o.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=I(e);f();var n=null;if(i.tabbableGroups.length>0){var r=s(t),a=r>=0?i.containerGroups[r]:void 0;if(r<0)n=e.shiftKey?i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:i.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var c=O(i.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(a.container===t||S(t,o.tabbableOptions)&&!x(t,o.tabbableOptions)&&!a.nextTabbableNode(t,!1))&&(c=r),c>=0){var l=0===c?i.tabbableGroups.length-1:c-1;n=i.tabbableGroups[l].lastTabbableNode}}else{var d=O(i.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(d<0&&(a.container===t||S(t,o.tabbableOptions)&&!x(t,o.tabbableOptions)&&!a.nextTabbableNode(t))&&(d=r),d>=0){var v=d===i.tabbableGroups.length-1?0:d+1;n=i.tabbableGroups[v].firstTabbableNode}}}else n=u("fallbackFocus");n&&(e.preventDefault(),h(n))}(e)},b=function(e){var t=I(e);s(t)>=0||T(o.clickOutsideDeactivates,e)||T(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},w=function(){if(i.active)return C.activateTrap(n),i.delayInitialFocusTimer=o.delayInitialFocus?F((function(){h(c())})):h(c()),r.addEventListener("focusin",m,!0),r.addEventListener("mousedown",p,{capture:!0,passive:!1}),r.addEventListener("touchstart",p,{capture:!0,passive:!1}),r.addEventListener("click",b,{capture:!0,passive:!1}),r.addEventListener("keydown",g,{capture:!0,passive:!1}),n},E=function(){if(i.active)return r.removeEventListener("focusin",m,!0),r.removeEventListener("mousedown",p,!0),r.removeEventListener("touchstart",p,!0),r.removeEventListener("click",b,!0),r.removeEventListener("keydown",g,!0),n};return(n={get active(){return i.active},get paused(){return i.paused},activate:function(e){if(i.active)return this;var t=a(e,"onActivate"),n=a(e,"onPostActivate"),o=a(e,"checkCanFocusTrap");o||f(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=r.activeElement,t&&t();var s=function(){o&&f(),w(),n&&n()};return o?(o(i.containers.concat()).then(s,s),this):(s(),this)},deactivate:function(e){if(!i.active)return this;var t=A({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,E(),i.active=!1,i.paused=!1,C.deactivateTrap(n);var r=a(t,"onDeactivate"),s=a(t,"onPostDeactivate"),u=a(t,"checkCanReturnFocus"),c=a(t,"returnFocus","returnFocusOnDeactivate");r&&r();var l=function(){F((function(){c&&h(v(i.nodeFocusedBeforeActivation)),s&&s()}))};return c&&u?(u(v(i.nodeFocusedBeforeActivation)).then(l,l),this):(l(),this)},pause:function(){return i.paused||!i.active||(i.paused=!0,E()),this},unpause:function(){return i.paused&&i.active?(i.paused=!1,f(),w(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return i.containers=t.map((function(e){return"string"===typeof e?r.querySelector(e):e})),i.active&&f(),this}}).updateContainerElements(e),n};!function(){var e=document.getElementById("burger-nav__toggle"),t=document.getElementById("burger-nav-overlay"),n=document.getElementById("burger-menu-close"),r=document.querySelector("body"),i=document.querySelectorAll(".menu-item-has-children"),a=document.getElementById("burger-nav__logo"),s=document.getElementById("burger-nav__back"),u=document.getElementById("burger-nav__top-bar"),c=null,l=27,d=document.getElementById("burger-nav__main-panel"),f=[d],h=!0,v=null,p=!1;function m(){f.length>1?u.classList.add("burger-nav__top-bar--show-back"):u.classList.remove("burger-nav__top-bar--show-back")}function y(){var e=f[f.length-1],n=h?[u].concat(f):[u,e];null!==c&&n.push(c),n.push(t);var r=v;(v=j(n,{initialFocus:e.querySelector(".menu-item a"),onActivate:function(){null!==r&&r.deactivate()}})).activate()}function g(e){h=e.matches,p&&y()}function b(e){e.keyCode===l&&(f.length>1?S():L())}function w(e){return parseInt(e.dataset.depth,10)}function _(e){var t=e.id.replace("submenu-panel-","");return document.querySelector("#menu-item-".concat(t," a"))}function x(e){return e.closest(".burger-nav__sub-panel")}function E(e){var t=w(e);if(1===t?2===f.length?S():3===f.length&&(S(),S()):2===t&&3===f.length&&S(),1===f.length)d.classList.remove("burger-nav__main-panel--show");else{var n=f[f.length-1];n.classList.add("burger-nav__sub-panel--show-child")}f.push(e),function(e){e.classList.add("burger-nav__sub-panel--show"),_(e).closest(".menu-item").classList.add("menu-item--sub-panel-open")}(e),m(),y()}function S(){if(1!==f.length){var e,t=f.pop();if((e=t).classList.remove("burger-nav__sub-panel--show"),_(e).closest(".menu-item").classList.remove("menu-item--sub-panel-open"),1===f.length)d.classList.add("burger-nav__main-panel--show");else!function(e){e.classList.remove("burger-nav__sub-panel--show-child")}(f[f.length-1]);m(),y()}}function L(){for(p=!1,t.classList.remove("burger-nav-overlay--show"),r.style.overflowY="",t.setAttribute("aria-hidden","true"),e.setAttribute("aria-expanded","false");f.length>1;)S();null!==v&&(v.deactivate(),v=null),window.dispatchEvent(new CustomEvent("burger-nav-menu-close"))}function A(){p=!0;var n=t.classList;n.remove("burger-nav-overlay--no-transition"),n.add("burger-nav-overlay--show"),r.style.overflowY="hidden",t.setAttribute("aria-hidden","false"),e.setAttribute("aria-expanded","true"),y();var o=document.querySelector(".current-menu-item");null!==o&&function(e){var t=x(e);if(null!==t){var n=w(t);1===n&&E(t),2===n&&(E(x(_(t))),E(t))}}(o),window.dispatchEvent(new CustomEvent("burger-nav-menu-open"))}function k(){t.classList.contains("burger-nav-overlay--show")?L():A()}window.addEventListener("rappler-toggle-burger-nav",(function(){k()})),function(){e.addEventListener("click",k),n.addEventListener("click",L),o()(i).forEach((function(e){var t=e.querySelector("a");t&&t.addEventListener("click",(function(t){t.preventDefault();var n,r=e.id.replace("menu-item-","");E((n=r,document.getElementById("submenu-panel-"+n)))}))})),a.addEventListener("click",L),s.addEventListener("click",S),t.addEventListener("keydown",b),t.addEventListener("click",(function(e){e.target===t&&L()}));var r=window.matchMedia("(min-width: 1180px)");r.addEventListener("change",g),g(r),document.addEventListener("DOMContentLoaded",(function(){c=document.getElementById("wpadminbar")}))}()}()},,,function(e,t,n){"use strict";n.r(t);var r=function(e){e.preventDefault();var t=e.target;t.closest(".modal__inner").querySelector(".modal__page--1").classList.add("hidden"),t.closest(".modal__inner").querySelector(".modal__page--2").classList.remove("hidden")};n.e(0).then(n.bind(null,19)).then((function(e){e.default.init({disableScroll:!0})}));var o=document.querySelectorAll(".modal__button--next");o&&o.forEach((function(e){return e.addEventListener("click",r)}))}]);