/*!For license information please see app.js.LICENSE.txt*/(()=>{var e,t={9669:(e,t,n)=>{e.exports=n(1609)},5448:(e,t,n)=>{"use strict";var r=n(4867),i=n(6026),o=n(4372),a=n(5327),s=n(4097),c=n(4109),l=n(7985),u=n(5061);e.exports=function(e){return new Promise((function(t,n){var d=e.data,f=e.headers,p=e.responseType;r.isFormData(d)&&delete f["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var v=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";f.Authorization="Basic "+btoa(v+":"+m)}var y=s(e.baseURL,e.url);function g(){if(h){var r="getAllResponseHeaders"in h?c(h.getAllResponseHeaders()):null,o={data:p&&"text"!==p&&"json"!==p?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};i(t,n,o),h=null}}if(h.open(e.method.toUpperCase(),a(y,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(g)},h.onabort=function(){h&&(n(u("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(u("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var b=(e.withCredentials||l(y))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;b&&(f[e.xsrfHeaderName]=b)}"setRequestHeader"in h&&r.forEach(f,(function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete f[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),p&&"json"!==p&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),n(e),h=null)})),d||(d=null),h.send(d)}))}},1609:(e,t,n)=>{"use strict";var r=n(4867),i=n(1849),o=n(321),a=n(7185);function s(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var c=s(n(5655));c.Axios=o,c.create=function(e){return s(a(c.defaults,e))},c.Cancel=n(5263),c.CancelToken=n(4972),c.isCancel=n(6502),c.all=function(e){return Promise.all(e)},c.spread=n(8713),c.isAxiosError=n(6268),e.exports=c,e.exports.default=c},5263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4972:(e,t,n)=>{"use strict";var r=n(5263);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},6502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";var r=n(4867),i=n(5327),o=n(782),a=n(3572),s=n(7185),c=n(4875),l=c.validators;function u(e){this.defaults=e,this.interceptors={request:new o,response:new o}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&c.assertOptions(t,{silentJSONParsing:l.transitional(l.boolean,"1.0.0"),forcedJSONParsing:l.transitional(l.boolean,"1.0.0"),clarifyTimeoutError:l.transitional(l.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,o=[];if(this.interceptors.response.forEach((function(e){o.push(e.fulfilled,e.rejected)})),!r){var u=[a,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(o),i=Promise.resolve(e);u.length;)i=i.then(u.shift(),u.shift());return i}for(var d=e;n.length;){var f=n.shift(),p=n.shift();try{d=f(d)}catch(e){p(e);break}}try{i=a(d)}catch(e){return Promise.reject(e)}for(;o.length;)i=i.then(o.shift(),o.shift());return i},u.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=u},782:(e,t,n)=>{"use strict";var r=n(4867);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},4097:(e,t,n)=>{"use strict";var r=n(1793),i=n(7303);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},5061:(e,t,n)=>{"use strict";var r=n(481);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},3572:(e,t,n)=>{"use strict";var r=n(4867),i=n(8527),o=n(6502),a=n(5655);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:e=>{"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},7185:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function l(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=c(void 0,e[i])):n[i]=c(e[i],t[i])}r.forEach(i,(function(e){r.isUndefined(t[e])||(n[e]=c(void 0,t[e]))})),r.forEach(o,l),r.forEach(a,(function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=c(void 0,e[i])):n[i]=c(void 0,t[i])})),r.forEach(s,(function(r){r in t?n[r]=c(e[r],t[r]):r in e&&(n[r]=c(void 0,e[r]))}));var u=i.concat(o).concat(a).concat(s),d=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return r.forEach(d,l),n}},6026:(e,t,n)=>{"use strict";var r=n(5061);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},8527:(e,t,n)=>{"use strict";var r=n(4867),i=n(5655);e.exports=function(e,t,n){var o=this||i;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},5655:(e,t,n)=>{"use strict";var r=n(4155),i=n(4867),o=n(6016),a=n(481),s={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==r&&"[object process]"===Object.prototype.toString.call(r))&&(l=n(5448)),l),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)||t&&"application/json"===t["Content-Type"]?(c(t,"application/json"),function(e,t,n){if(i.isString(e))try{return(t||JSON.parse)(e),i.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||r&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw a(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){u.headers[e]=i.merge(s)})),e.exports=u},1849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r{"use strict";var r=n(4867);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},6268:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},7985:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},6016:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},4109:(e,t,n)=>{"use strict";var r=n(4867),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4875:(e,t,n)=>{"use strict";var r=n(8593),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={},a=r.version.split(".");function s(e,t){for(var n=t?t.split("."):a,r=e.split("."),i=0;i<3;i++){if(n[i]>r[i])return!0;if(n[i]0;){var o=r[i],a=t[o];if(a){var s=e[o],c=void 0===s||a(s,o,e);if(!0!==c)throw new TypeError("option "+o+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:i}},4867:(e,t,n)=>{"use strict";var r=n(1849),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===i.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n{"use strict";const r=function(){document.querySelectorAll("[data-ga-impression]").forEach((function(e){!function(e){var t=new IntersectionObserver((function(n){n.forEach((function(n){if(n.isIntersecting&>ag){var r=window.collectGaTracking(e);r.non_interaction=!0,r.template=window.globalGAInfo.template,gtag&>ag("event","impression",r),window.ga&&window.ga("send",{hitType:"event",eventCategory:r.event_category,eventAction:"impression",eventLabel:r.event_label,transport:"beacon",dimension49:window.globalGAInfo.template,dimension50:r.module||null,dimension51:r.element||null,dimension52:r.item||null,dimension53:r.position||null,non_interaction:!0}),t.disconnect()}}))}),{root:null,threshold:.75});t.observe(e)}(e)}))};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){for(var n=0;n0&&(this.loadJwPlayerScript(),window.addEventListener("load",(function(e){r.forEach((function(e){return n.initializeVideoPlayer(e)}))})))}var t,n,r;return t=e,n=[{key:"loadJwPlayerScript",value:function(){var e=document.createElement("script");e.src="https://content.jwplatform.com/libraries/dloDxAmE.js",e.async=!0,document.head.appendChild(e)}},{key:"trackComscore",value:function(e){var t=function(e){return null==e?"*null":e},n=window.globalGAInfo,r=n.year_published&&n.month_published&&n.day_published?new Date(n.year_published,n.month_published-1,n.day_published).toISOString().slice(0,10):null,i=n.content_source_type&&"MPP"===n.content_source_type&&n.author_name?n.author_name.toLowerCase():"mashable",o=['ns_st_st="Mashable"','ns_st_pu="Mashable"','c3="'.concat(i,'"'),'ns_st_pr="'.concat(t(n.video_show_name),'"'),'ns_st_ep="'.concat(t(n.title),'"'),'ns_st_sn="*null"','ns_st_en="*null"','ns_st_ge="'.concat(t(n.sections),'"'),'ns_st_ia="0"','ns_st_ce="1"','ns_st_ddt="'.concat(r,'"'),'ns_st_tdt="'.concat(r,'"')].join(", ");ns_.StreamingAnalytics.JWPlayer(e,{publisherId:"6036202",labelmapping:o})}},{key:"initializeVideoPlayer",value:function(e){var t=this.setupConfig(e);if(t)if(e.data.disable_ads||void 0===window.Pogo)this.startVideoPlayer(e,t);else{var n=this;window.Pogo.getJWPlayerConfig(this.setupAdvertising(e),t,(function(r,i){n.startVideoPlayer(e,i?r:t)}))}}},{key:"startVideoPlayer",value:function(e,t){var n=window.jwplayer(e.elemId).setup(t);e.data.playlistItemCallback&&n.setPlaylistItemCallback((function(t,n){e.data.playlistItemCallback.call(this,t,n)})),this.setupTrackingEvents(n,e),this.setupLogicEvents(n,e),window._cbv=window._cbv||[],window._cbv.push(n)}},{key:"setupAdvertising",value:function(e){return{playType:e.data.autostart?"autostart":"click",videoId:e.data.slug?e.data.slug:"",tags:e.tags?e.tags:[],player:"vod",videoshow:"",category:e.category?e.category:"",subcategory:e.subcategory?e.subcategory:""}}},{key:"setupConfig",value:function(e){var t=this,n=[];return e.data.url&&e.data.slug&&n.push(this.buildPlayListItem(e.data)),e.data.relatedPlaylistVideos&&e.data.relatedPlaylistVideos.forEach((function(e){return n.push(t.buildPlayListItem(e))})),0!==n.length&&{advertising:{},autostart:e.data.autostart?e.data.autostart:"viewable",mediaid:e.data.slug?e.data.slug:"",mute:!e.data.mute||e.data.mute,image:e.data.thumbnail_url,playlist:n,responsive:!0,autoPause:{viewability:!0,pauseAds:!0}}}},{key:"buildPlayListItem",value:function(e){var t;return{sources:e.transcoded_urls?e.transcoded_urls.map((function(e){return{file:e}})):[{file:e.url}],title:e.title||"",image:null!==(t=e.thumbnail_url)&&void 0!==t?t:"https://mashable.com/images/mashable-logomark.png"}}},{key:"setupLogicEvents",value:function(e,t){e.on("adSkipped",(function(t){e.setMute(!1)}))}},{key:"setupTrackingEvents",value:function(e,t){var n=this,r={video_id:t.data.slug,video_play_type:!1===t.data.autostart?"Manual":"AutoPlay",video_player_type:t.videoPlayerType?t.videoPlayerType:"in-content",video_url:document.location.href,video_name:t.data.title};if(t.videoPlayerType&&"related"==t.videoPlayerType){var i=document.getElementsByTagName("main")[0].getBoundingClientRect().top+window.pageYOffset,o=document.getElementById("related-video").getBoundingClientRect().top+window.pageYOffset-i,a=document.getElementsByTagName("main")[0].clientHeight,s=Math.ceil(o/(a/4));r.position=s}var c=function(e){return r.video_play_type=["interaction","related-interaction"].includes(e)?"Manual":"AutoPlay"},l=[10,30];e.on("time",(function(e){if(l.length>0){var t=l[0];e.currentTime>=t&&e.currentTime<=t+5&&(n.sendGaEvent("Video ".concat(t," second view"),r),l.splice(l.indexOf(t),1))}})),e.on("ready",(function(){n.trackComscore(e),n.setupStickyPlayer(e,t,r)})),e.on("adImpression",(function(){return n.sendGaEvent("Video Ad Start",r)})),e.on("adComplete",(function(){return n.sendGaEvent("Video Ad Complete",r)})),e.on("adSkipped",(function(){return n.sendGaEvent("Video Ad Skip",r)})),e.on("firstFrame",(function(){return n.sendGaEvent("Video Start 0%",r)})),e.on("complete",(function(){n.sendGaEvent("Video 100%",r),l=[10,30]})),e.on("error",(function(){return n.sendGaEvent("Video Error",r)})),e.on("pause",(function(e){c(e.pauseReason),n.sendGaEvent("Video Pause",r)})),e.on("play",(function(e){return c(e.playReason)}))}},{key:"setupStickyPlayer",value:function(e,t,n){var r=this;t.allowSticky&&(this.addStickyPlayerCloseButton(t,n),this.stickyVideoObserver=new IntersectionObserver((function(e){e.forEach((function(e){e.boundingClientRect.top<0&&r.initializeStickyPlayer(t,!e.isIntersecting)}))}),{root:null,threshold:.1}),this.stickyVideoObserver.observe(document.getElementById(t.elemId).parentElement),window.addEventListener("resize",(function(){r.positionStickyPlayer(t)})))}},{key:"addStickyPlayerCloseButton",value:function(e,t){var n=this,r=document.getElementById(e.elemId),i=document.createElement("button");i.classList.add("sticky-video-close"),i.innerHTML='',i.onclick=function(){n.stickyVideoObserver.disconnect(),n.initializeStickyPlayer(e,!1),n.sendGaEvent("Video Sticky Close",t)},r.after(i)}},{key:"initializeStickyPlayer",value:function(e,t){var n=document.getElementById(e.elemId),r=n.parentElement,i=r.getElementsByClassName("sticky-video-close")[0];t?(r.style.height=r.clientHeight+"px",n.classList.add("sticky-video"),this.positionStickyPlayer(e)):(r.style.removeProperty("height"),n.classList.remove("sticky-video"),n.style.removeProperty("right"),i.style.removeProperty("right"))}},{key:"positionStickyPlayer",value:function(e){var t=document.getElementById(e.elemId),n=t.parentElement.getElementsByClassName("sticky-video-close")[0];if(t.classList.contains("sticky-video")){var r=document.querySelector("body > main > aside");r&&r.getBoundingClientRect().width>0?t.style.right=window.innerWidth-r.getBoundingClientRect().right+"px":t.style.removeProperty("right"),n.style.bottom=t.clientHeight+5+"px",n.style.right=window.innerWidth-t.getBoundingClientRect().right-15+"px"}}},{key:"sendGaEvent",value:function(e,t){var n=Object.assign({},{event_category:"Videos",event_label:document.location.href},t);window.gtag&>ag("event",e,n),window.ga&&window.ga("send",{hitType:"event",eventCategory:n.event_category,eventAction:e,eventLabel:n.event_label,transport:"beacon",dimension41:n.video_id,dimension42:n.video_play_type,dimension43:n.video_player_type,dimension44:n.video_url,dimension46:n.video_name})}}],n&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(){c=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.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(e){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new j(r||[]);return i(a,"_invoke",{value:A(e,n,s)}),a}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",v="suspendedYield",m="executing",y="completed",g={};function b(){}function w(){}function _(){}var x={};d(x,a,(function(){return this}));var E=Object.getPrototypeOf,S=E&&E(E(N([])));S&&S!==n&&r.call(S,a)&&(x=S);var k=_.prototype=b.prototype=Object.create(x);function O(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(i,o,a,c){var l=p(e[i],e,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==s(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,c)}))}c(l.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function A(t,n,r){var i=h;return function(o,a){if(i===m)throw new Error("Generator is already running");if(i===y){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=P(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=m;var l=p(t,n,r);if("normal"===l.type){if(i=r.done?y:v,l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=y,r.method="throw",r.arg=l.arg)}}}function P(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,P(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=p(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function C(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),g}},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 i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function l(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function u(e,t){for(var n=0;n0&&(this.preconnectScripts(),this.ytEmbeds.forEach((function(e){if(e.elemId&&e.data.url&&e.data.slug){var t=n;document.getElementById(e.elemId).addEventListener("click",(function(n){t.initializeVideoPlayer(e)}),!1),n.buildPreview(e.elemId,e.data.slug)}})))}var t,n,r,i,o;return t=e,n=[{key:"buildPreview",value:function(e,t){var n=document.getElementById(e),r='';n.getElementsByTagName("img").length>0?(n.getElementsByTagName("img")[0].insertAdjacentHTML("afterend",r),n.classList.add("cursor-pointer")):n.innerHTML='
\n YouTube ').concat(t,'\n ').concat(r,"\n
")}},{key:"addPrefetch",value:function(e){var t=document.createElement("link");t.rel="preconnect",t.href=e,document.head.append(t)}},{key:"preconnectScripts",value:function(){window.youtubePreconnected||(this.addPrefetch("https://www.youtube-nocookie.com"),this.addPrefetch("https://www.google.com"),this.addPrefetch("https://googleads.g.doubleclick.net"),this.addPrefetch("https://static.doubleclick.net"),window.youtubePreconnected=!0)}},{key:"fetchYTPlayerApi",value:function(){window.YT||window.YT&&window.YT.Player||(this.ytApiPromise=new Promise((function(e,t){var n=document.createElement("script");n.src="https://www.youtube.com/iframe_api",n.async=!0,n.onload=function(t){YT.ready(e)},n.onerror=t,document.head.append(n)})))}},{key:"initializeVideoPlayer",value:(i=c().mark((function e(t){var n,r,i=this;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.fetchYTPlayerApi(),e.next=3,this.ytApiPromise;case 3:try{n=document.getElementById(t.elemId).getBoundingClientRect(),r=new YT.Player(t.elemId,{height:n.width/16*9,width:n.width,videoId:t.data.slug,playerVars:{autoplay:0,controls:1,rel:0,modestbranding:1,start:t.data.start_time},events:{onReady:function(e){e.target.playVideo()},onStateChange:function(e){i.onPlayerStateChange(e)}}}),this.ytPlayers.push(r)}catch(e){console.error("YouTube error for: "+t.elemId+" "+e)}case 4:case"end":return e.stop()}}),e,this)})),o=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=i.apply(e,t);function a(e){l(o,n,r,a,s,"next",e)}function s(e){l(o,n,r,a,s,"throw",e)}a(void 0)}))},function(e){return o.apply(this,arguments)})},{key:"onPlayerStateChange",value:function(e){e.data===YT.PlayerState.PLAYING&&this.playingPlayer!==e.target&&(null!==this.playingPlayer&&this.playingPlayer.stopVideo(),this.playingPlayer=e.target)}}],n&&u(t.prototype,n),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),m=!1,y=!1,g=[],b=-1;function w(e){!function(e){g.includes(e)||g.push(e);y||m||(m=!0,queueMicrotask(x))}(e)}function _(e){let t=g.indexOf(e);-1!==t&&t>b&&g.splice(t,1)}function x(){m=!1,y=!0;for(let e=0;eO(e,t)));let n=!1;if(t(e,(()=>n=!0)),n)return;let r=e.firstElementChild;for(;r;)O(r,t),r=r.nextElementSibling}function L(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var A=!1;var P=[],C=[];function T(){return P.map((e=>e()))}function j(){return P.concat(C).map((e=>e()))}function N(e){P.push(e)}function I(e){C.push(e)}function R(e,t=!1){return B(e,(e=>{if((t?j():T()).some((t=>e.matches(t))))return!0}))}function B(e,t){if(e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),e.parentElement)return B(e.parentElement,t)}}var $=[];function D(e,t=O,n=(()=>{})){!function(e){Te=!0;let t=Symbol();Ne=t,je.set(t,[]);let n=()=>{for(;je.get(t).length;)je.get(t).shift()();je.delete(t)},r=()=>{Te=!1,n()};e(n),r()}((()=>{t(e,((e,t)=>{n(e,t),$.forEach((n=>n(e,t))),Pe(e,e.attributes).forEach((e=>e())),e._x_ignore&&t()}))}))}function M(e){O(e,(e=>{W(e),function(e){if(e._x_cleanups)for(;e._x_cleanups.length;)e._x_cleanups.pop()()}(e)}))}var F=[],G=[],q=[];function V(e,t){"function"==typeof t?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,G.push(t))}function U(e){F.push(e)}function z(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function W(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach((([n,r])=>{(void 0===t||t.includes(n))&&(r.forEach((e=>e())),delete e._x_attributeCleanups[n])}))}var H=new MutationObserver(ne),Y=!1;function J(){H.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Y=!0}function K(){(X=X.concat(H.takeRecords())).length&&!Z&&(Z=!0,queueMicrotask((()=>{ne(X),X.length=0,Z=!1}))),H.disconnect(),Y=!1}var X=[],Z=!1;function Q(e){if(!Y)return e();K();let t=e();return J(),t}var ee=!1,te=[];function ne(e){if(ee)return void(te=te.concat(e));let t=[],n=[],r=new Map,i=new Map;for(let o=0;o1===e.nodeType&&t.push(e))),e[o].removedNodes.forEach((e=>1===e.nodeType&&n.push(e)))),"attributes"===e[o].type)){let t=e[o].target,n=e[o].attributeName,a=e[o].oldValue,s=()=>{r.has(t)||r.set(t,[]),r.get(t).push({name:n,value:t.getAttribute(n)})},c=()=>{i.has(t)||i.set(t,[]),i.get(t).push(n)};t.hasAttribute(n)&&null===a?s():t.hasAttribute(n)?(c(),s()):c()}i.forEach(((e,t)=>{W(t,e)})),r.forEach(((e,t)=>{F.forEach((n=>n(t,e)))}));for(let e of n)t.includes(e)||(G.forEach((t=>t(e))),M(e));t.forEach((e=>{e._x_ignoreSelf=!0,e._x_ignore=!0}));for(let e of t)n.includes(e)||e.isConnected&&(delete e._x_ignoreSelf,delete e._x_ignore,q.forEach((t=>t(e))),e._x_ignore=!0,e._x_ignoreSelf=!0);t.forEach((e=>{delete e._x_ignoreSelf,delete e._x_ignore})),t=null,n=null,r=null,i=null}function re(e){return ae(oe(e))}function ie(e,t,n){return e._x_dataStack=[t,...oe(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter((e=>e!==t))}}function oe(e){return e._x_dataStack?e._x_dataStack:"function"==typeof ShadowRoot&&e instanceof ShadowRoot?oe(e.host):e.parentNode?oe(e.parentNode):[]}function ae(e){return new Proxy({objects:e},se)}var se={ownKeys:({objects:e})=>Array.from(new Set(e.flatMap((e=>Object.keys(e))))),has:({objects:e},t)=>t!=Symbol.unscopables&&e.some((e=>Object.prototype.hasOwnProperty.call(e,t))),get:({objects:e},t,n)=>"toJSON"==t?ce:Reflect.get(e.find((e=>Object.prototype.hasOwnProperty.call(e,t)))||{},t,n),set({objects:e},t,n,r){const i=e.find((e=>Object.prototype.hasOwnProperty.call(e,t)))||e[e.length-1],o=Object.getOwnPropertyDescriptor(i,t);return o?.set&&o?.get?Reflect.set(i,t,n,r):Reflect.set(i,t,n)}};function ce(){return Reflect.ownKeys(this).reduce(((e,t)=>(e[t]=Reflect.get(this,t),e)),{})}function le(e){let t=(n,r="")=>{Object.entries(Object.getOwnPropertyDescriptors(n)).forEach((([i,{value:o,enumerable:a}])=>{if(!1===a||void 0===o)return;let s=""===r?i:`${r}.${i}`;var c;"object"==typeof o&&null!==o&&o._x_interceptor?n[i]=o.initialize(e,s,i):"object"!=typeof(c=o)||Array.isArray(c)||null===c||o===n||o instanceof Element||t(o,s)}))};return t(e)}function ue(e,t=(()=>{})){let n={initialValue:void 0,_x_interceptor:!0,initialize(t,n,r){return e(this.initialValue,(()=>function(e,t){return t.split(".").reduce(((e,t)=>e[t]),e)}(t,n)),(e=>de(t,n,e)),n,r)}};return t(n),e=>{if("object"==typeof e&&null!==e&&e._x_interceptor){let t=n.initialize.bind(n);n.initialize=(r,i,o)=>{let a=e.initialize(r,i,o);return n.initialValue=a,t(r,i,o)}}else n.initialValue=e;return n}}function de(e,t,n){if("string"==typeof t&&(t=t.split(".")),1!==t.length){if(0===t.length)throw error;return e[t[0]]||(e[t[0]]={}),de(e[t[0]],t.slice(1),n)}e[t[0]]=n}var fe={};function pe(e,t){fe[e]=t}function he(e,t){return Object.entries(fe).forEach((([n,r])=>{let i=null;Object.defineProperty(e,`$${n}`,{get:()=>r(t,function(){if(i)return i;{let[e,n]=Ie(t);return i={interceptor:ue,...e},V(t,n),i}}()),enumerable:!1})})),e}function ve(e,t,n,...r){try{return n(...r)}catch(n){me(n,e,t)}}function me(e,t,n=void 0){Object.assign(e,{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message}\n\n${n?'Expression: "'+n+'"\n\n':""}`,t),setTimeout((()=>{throw e}),0)}var ye=!0;function ge(e){let t=ye;ye=!1;let n=e();return ye=t,n}function be(e,t,n={}){let r;return we(e,t)((e=>r=e),n),r}function we(...e){return _e(...e)}var _e=xe;function xe(e,t){let n={};he(n,e);let r=[n,...oe(e)],i="function"==typeof t?function(e,t){return(n=(()=>{}),{scope:r={},params:i=[]}={})=>{Se(n,t.apply(ae([r,...e]),i))}}(r,t):function(e,t,n){let r=function(e,t){if(Ee[e])return Ee[e];let n=Object.getPrototypeOf((async function(){})).constructor,r=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e;const i=()=>{try{let t=new n(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`);return Object.defineProperty(t,"name",{value:`[Alpine] ${e}`}),t}catch(n){return me(n,t,e),Promise.resolve()}};let o=i();return Ee[e]=o,o}(t,n);return(i=(()=>{}),{scope:o={},params:a=[]}={})=>{r.result=void 0,r.finished=!1;let s=ae([o,...e]);if("function"==typeof r){let e=r(r,s).catch((e=>me(e,n,t)));r.finished?(Se(i,r.result,s,a,n),r.result=void 0):e.then((e=>{Se(i,e,s,a,n)})).catch((e=>me(e,n,t))).finally((()=>r.result=void 0))}}}(r,t,e);return ve.bind(null,e,t,i)}var Ee={};function Se(e,t,n,r,i){if(ye&&"function"==typeof t){let o=t.apply(n,r);o instanceof Promise?o.then((t=>Se(e,t,n,r))).catch((e=>me(e,i,t))):e(o)}else"object"==typeof t&&t instanceof Promise?t.then((t=>e(t))):e(t)}var ke="x-";function Oe(e=""){return ke+e}var Le={};function Ae(e,t){return Le[e]=t,{before(t){if(!Le[t])return void console.warn("Cannot find directive `${directive}`. `${name}` will use the default order of execution");const n=qe.indexOf(t);qe.splice(n>=0?n:qe.indexOf("DEFAULT"),0,e)}}}function Pe(e,t,n){if(t=Array.from(t),e._x_virtualDirectives){let n=Object.entries(e._x_virtualDirectives).map((([e,t])=>({name:e,value:t}))),r=Ce(n);n=n.map((e=>r.find((t=>t.name===e.name))?{name:`x-bind:${e.name}`,value:`"${e.value}"`}:e)),t=t.concat(n)}let r={},i=t.map(Be(((e,t)=>r[e]=t))).filter(Me).map(function(e,t){return({name:n,value:r})=>{let i=n.match(Fe()),o=n.match(/:([a-zA-Z0-9\-_:]+)/),a=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],s=t||e[n]||n;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:a.map((e=>e.replace(".",""))),expression:r,original:s}}}(r,n)).sort(Ve);return i.map((t=>function(e,t){let n=()=>{},r=Le[t.type]||n,[i,o]=Ie(e);z(e,t.original,o);let a=()=>{e._x_ignore||e._x_ignoreSelf||(r.inline&&r.inline(e,t,i),r=r.bind(r,e,t,i),Te?je.get(Ne).push(r):r())};return a.runCleanups=o,a}(e,t)))}function Ce(e){return Array.from(e).map(Be()).filter((e=>!Me(e)))}var Te=!1,je=new Map,Ne=Symbol();function Ie(e){let t=[],[n,r]=function(e){let t=()=>{};return[n=>{let r=f(n);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach((e=>e()))}),e._x_effects.add(r),t=()=>{void 0!==r&&(e._x_effects.delete(r),p(r))},r},()=>{t()}]}(e);t.push(r);return[{Alpine:wt,effect:n,cleanup:e=>t.push(e),evaluateLater:we.bind(we,e),evaluate:be.bind(be,e)},()=>t.forEach((e=>e()))]}var Re=(e,t)=>({name:n,value:r})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:r});function Be(e=(()=>{})){return({name:t,value:n})=>{let{name:r,value:i}=$e.reduce(((e,t)=>t(e)),{name:t,value:n});return r!==t&&e(r,t),{name:r,value:i}}}var $e=[];function De(e){$e.push(e)}function Me({name:e}){return Fe().test(e)}var Fe=()=>new RegExp(`^${ke}([^:^.]+)\\b`);var Ge="DEFAULT",qe=["ignore","ref","data","id","bind","init","for","model","modelable","transition","show","if",Ge,"teleport"];function Ve(e,t){let n=-1===qe.indexOf(e.type)?Ge:e.type,r=-1===qe.indexOf(t.type)?Ge:t.type;return qe.indexOf(n)-qe.indexOf(r)}var Ue=[],ze=!1;function We(e=(()=>{})){return queueMicrotask((()=>{ze||setTimeout((()=>{He()}))})),new Promise((t=>{Ue.push((()=>{e(),t()}))}))}function He(){for(ze=!1;Ue.length;)Ue.shift()()}function Ye(e,t){return Array.isArray(t)?Je(e,t.join(" ")):"object"==typeof t&&null!==t?function(e,t){let n=e=>e.split(" ").filter(Boolean),r=Object.entries(t).flatMap((([e,t])=>!!t&&n(e))).filter(Boolean),i=Object.entries(t).flatMap((([e,t])=>!t&&n(e))).filter(Boolean),o=[],a=[];return i.forEach((t=>{e.classList.contains(t)&&(e.classList.remove(t),a.push(t))})),r.forEach((t=>{e.classList.contains(t)||(e.classList.add(t),o.push(t))})),()=>{a.forEach((t=>e.classList.add(t))),o.forEach((t=>e.classList.remove(t)))}}(e,t):"function"==typeof t?Ye(e,t()):Je(e,t)}function Je(e,t){return t=!0===t?t="":t||"",n=t.split(" ").filter((t=>!e.classList.contains(t))).filter(Boolean),e.classList.add(...n),()=>{e.classList.remove(...n)};var n}function Ke(e,t){return"object"==typeof t&&null!==t?function(e,t){let n={};return Object.entries(t).forEach((([t,r])=>{n[t]=e.style[t],t.startsWith("--")||(t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()),e.style.setProperty(t,r)})),setTimeout((()=>{0===e.style.length&&e.removeAttribute("style")})),()=>{Ke(e,n)}}(e,t):function(e,t){let n=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",n||"")}}(e,t)}function Xe(e,t=(()=>{})){let n=!1;return function(){n?t.apply(this,arguments):(n=!0,e.apply(this,arguments))}}function Ze(e,t,n={}){e._x_transition||(e._x_transition={enter:{during:n,start:n,end:n},leave:{during:n,start:n,end:n},in(n=(()=>{}),r=(()=>{})){et(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},n,r)},out(n=(()=>{}),r=(()=>{})){et(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},n,r)}})}function Qe(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:Qe(t)}function et(e,t,{during:n,start:r,end:i}={},o=(()=>{}),a=(()=>{})){if(e._x_transitioning&&e._x_transitioning.cancel(),0===Object.keys(n).length&&0===Object.keys(r).length&&0===Object.keys(i).length)return o(),void a();let s,c,l;!function(e,t){let n,r,i,o=Xe((()=>{Q((()=>{n=!0,r||t.before(),i||(t.end(),He()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning}))}));e._x_transitioning={beforeCancels:[],beforeCancel(e){this.beforeCancels.push(e)},cancel:Xe((function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()})),finish:o},Q((()=>{t.start(),t.during()})),ze=!0,requestAnimationFrame((()=>{if(n)return;let o=1e3*Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s","")),a=1e3*Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""));0===o&&(o=1e3*Number(getComputedStyle(e).animationDuration.replace("s",""))),Q((()=>{t.before()})),r=!0,requestAnimationFrame((()=>{n||(Q((()=>{t.end()})),He(),setTimeout(e._x_transitioning.finish,o+a),i=!0)}))}))}(e,{start(){s=t(e,r)},during(){c=t(e,n)},before:o,end(){s(),l=t(e,i)},after:a,cleanup(){c(),l()}})}function tt(e,t,n){if(-1===e.indexOf(t))return n;const r=e[e.indexOf(t)+1];if(!r)return n;if("scale"===t&&isNaN(r))return n;if("duration"===t||"delay"===t){let e=r.match(/([0-9]+)ms/);if(e)return e[1]}return"origin"===t&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[r,e[e.indexOf(t)+2]].join(" "):r}Ae("transition",((e,{value:t,modifiers:n,expression:r},{evaluate:i})=>{"function"==typeof r&&(r=i(r)),!1!==r&&(r&&"boolean"!=typeof r?function(e,t,n){Ze(e,Ye,"");let r={enter:t=>{e._x_transition.enter.during=t},"enter-start":t=>{e._x_transition.enter.start=t},"enter-end":t=>{e._x_transition.enter.end=t},leave:t=>{e._x_transition.leave.during=t},"leave-start":t=>{e._x_transition.leave.start=t},"leave-end":t=>{e._x_transition.leave.end=t}};r[n](t)}(e,r,t):function(e,t,n){Ze(e,Ke);let r=!t.includes("in")&&!t.includes("out")&&!n,i=r||t.includes("in")||["enter"].includes(n),o=r||t.includes("out")||["leave"].includes(n);t.includes("in")&&!r&&(t=t.filter(((e,n)=>nn>t.indexOf("out"))));let a=!t.includes("opacity")&&!t.includes("scale"),s=a||t.includes("opacity"),c=a||t.includes("scale"),l=s?0:1,u=c?tt(t,"scale",95)/100:1,d=tt(t,"delay",0)/1e3,f=tt(t,"origin","center"),p="opacity, transform",h=tt(t,"duration",150)/1e3,v=tt(t,"duration",75)/1e3,m="cubic-bezier(0.4, 0.0, 0.2, 1)";i&&(e._x_transition.enter.during={transformOrigin:f,transitionDelay:`${d}s`,transitionProperty:p,transitionDuration:`${h}s`,transitionTimingFunction:m},e._x_transition.enter.start={opacity:l,transform:`scale(${u})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"});o&&(e._x_transition.leave.during={transformOrigin:f,transitionDelay:`${d}s`,transitionProperty:p,transitionDuration:`${v}s`,transitionTimingFunction:m},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:l,transform:`scale(${u})`})}(e,n,t))})),window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,n,r){const i="visible"===document.visibilityState?requestAnimationFrame:setTimeout;let o=()=>i(n);t?e._x_transition&&(e._x_transition.enter||e._x_transition.leave)?e._x_transition.enter&&(Object.entries(e._x_transition.enter.during).length||Object.entries(e._x_transition.enter.start).length||Object.entries(e._x_transition.enter.end).length)?e._x_transition.in(n):o():e._x_transition?e._x_transition.in(n):o():(e._x_hidePromise=e._x_transition?new Promise(((t,n)=>{e._x_transition.out((()=>{}),(()=>t(r))),e._x_transitioning.beforeCancel((()=>n({isFromCancelledTransition:!0})))})):Promise.resolve(r),queueMicrotask((()=>{let t=Qe(e);t?(t._x_hideChildren||(t._x_hideChildren=[]),t._x_hideChildren.push(e)):i((()=>{let t=e=>{let n=Promise.all([e._x_hidePromise,...(e._x_hideChildren||[]).map(t)]).then((([e])=>e()));return delete e._x_hidePromise,delete e._x_hideChildren,n};t(e).catch((e=>{if(!e.isFromCancelledTransition)throw e}))}))})))};var nt=!1;function rt(e,t=(()=>{})){return(...n)=>nt?t(...n):e(...n)}var it=!1;function ot(e){let t=f;S(((e,n)=>{let r=t(e);return p(r),()=>{}})),e(),S(t)}function at(e,t,n,r=[]){switch(e._x_bindings||(e._x_bindings=d({})),e._x_bindings[t]=n,t=r.includes("camel")?t.toLowerCase().replace(/-(\w)/g,((e,t)=>t.toUpperCase())):t){case"value":!function(e,t){if("radio"===e.type)void 0===e.attributes.value&&(e.value=t),window.fromModel&&(e.checked=ct(e.value,t));else if("checkbox"===e.type)Number.isInteger(t)?e.value=t:Array.isArray(t)||"boolean"==typeof t||[null,void 0].includes(t)?Array.isArray(t)?e.checked=t.some((t=>ct(t,e.value))):e.checked=!!t:e.value=String(t);else if("SELECT"===e.tagName)!function(e,t){const n=[].concat(t).map((e=>e+""));Array.from(e.options).forEach((e=>{e.selected=n.includes(e.value)}))}(e,t);else{if(e.value===t)return;e.value=void 0===t?"":t}}(e,n);break;case"style":!function(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles();e._x_undoAddedStyles=Ke(e,t)}(e,n);break;case"class":!function(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses();e._x_undoAddedClasses=Ye(e,t)}(e,n);break;case"selected":case"checked":!function(e,t,n){st(e,t,n),function(e,t,n){e[t]!==n&&(e[t]=n)}(e,t,n)}(e,t,n);break;default:st(e,t,n)}}function st(e,t,n){[null,void 0,!1].includes(n)&&function(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}(t)?e.removeAttribute(t):(lt(t)&&(n=t),function(e,t,n){e.getAttribute(t)!=n&&e.setAttribute(t,n)}(e,t,n))}function ct(e,t){return e==t}function lt(e){return["disabled","checked","required","readonly","hidden","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(e)}function ut(e,t,n){let r=e.getAttribute(t);return null===r?"function"==typeof n?n():n:""===r||(lt(t)?!![t,"true"].includes(r):r)}function dt(e,t){var n;return function(){var r=this,i=arguments;clearTimeout(n),n=setTimeout((function(){n=null,e.apply(r,i)}),t)}}function ft(e,t){let n;return function(){let r=this,i=arguments;n||(e.apply(r,i),n=!0,setTimeout((()=>n=!1),t))}}function pt({get:e,set:t},{get:n,set:r}){let i,o=!0,a=f((()=>{const a=e(),s=n();if(o)r(ht(a)),o=!1,i=JSON.stringify(a);else{const e=JSON.stringify(a);e!==i?(r(ht(a)),i=e):(t(ht(s)),i=JSON.stringify(s))}JSON.stringify(n()),JSON.stringify(e())}));return()=>{p(a)}}function ht(e){return"object"==typeof e?JSON.parse(JSON.stringify(e)):e}var vt={},mt=!1;var yt={};function gt(e,t,n){let r=[];for(;r.length;)r.pop()();let i=Object.entries(t).map((([e,t])=>({name:e,value:t}))),o=Ce(i);return i=i.map((e=>o.find((t=>t.name===e.name))?{name:`x-bind:${e.name}`,value:`"${e.value}"`}:e)),Pe(e,i,n).map((e=>{r.push(e.runCleanups),e()})),()=>{for(;r.length;)r.pop()()}}var bt={};var wt={get reactive(){return d},get release(){return p},get effect(){return f},get raw(){return h},version:"3.13.2",flushAndStopDeferringMutations:function(){ee=!1,ne(te),te=[]},dontAutoEvaluateFunctions:ge,disableEffectScheduling:function(e){E=!1,e(),E=!0},startObservingMutations:J,stopObservingMutations:K,setReactivityEngine:function(e){d=e.reactive,p=e.release,f=t=>e.effect(t,{scheduler:e=>{E?w(e):e()}}),h=e.raw},onAttributeRemoved:z,onAttributesAdded:U,closestDataStack:oe,skipDuringClone:rt,onlyDuringClone:function(e){return(...t)=>nt&&e(...t)},addRootSelector:N,addInitSelector:I,addScopeToNode:ie,deferMutations:function(){ee=!0},mapAttributes:De,evaluateLater:we,interceptInit:function(e){$.push(e)},setEvaluator:function(e){_e=e},mergeProxies:ae,extractProp:function(e,t,n,r=!0){if(e._x_bindings&&void 0!==e._x_bindings[t])return e._x_bindings[t];if(e._x_inlineBindings&&void 0!==e._x_inlineBindings[t]){let n=e._x_inlineBindings[t];return n.extract=r,ge((()=>be(e,n.expression)))}return ut(e,t,n)},findClosest:B,onElRemoved:V,closestRoot:R,destroyTree:M,interceptor:ue,transition:et,setStyles:Ke,mutateDom:Q,directive:Ae,entangle:pt,throttle:ft,debounce:dt,evaluate:be,initTree:D,nextTick:We,prefixed:Oe,prefix:function(e){ke=e},plugin:function(e){(Array.isArray(e)?e:[e]).forEach((e=>e(wt)))},magic:pe,store:function(e,t){if(mt||(vt=d(vt),mt=!0),void 0===t)return vt[e];vt[e]=t,"object"==typeof t&&null!==t&&t.hasOwnProperty("init")&&"function"==typeof t.init&&vt[e].init(),le(vt[e])},start:function(){var e;A&&L("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),A=!0,document.body||L("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's `