/*! For license information please see embed.js.LICENSE.txt */ (()=>{var e,t,n={"../../node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js":e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),a=new A(r||[]);return i._invoke=function(e,t,n){var r=f;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===m){if("throw"===o)throw i;return x()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=_(a,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=l(e,t,n);if("normal"===c.type){if(r=n.done?m:d,c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=m,n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f="suspendedStart",d="suspendedYield",p="executing",m="completed",h={};function g(){}function y(){}function v(){}var b={};b[i]=function(){return this};var E=Object.getPrototypeOf,w=E&&E(E(R([])));w&&w!==n&&r.call(w,i)&&(b=w);var O=v.prototype=g.prototype=Object.create(b);function T(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,i,a,u){var c=l(e[o],e,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,u)}),(function(e){n("throw",e,a,u)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=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 _(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,_(e,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,h;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,h):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function N(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 I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function R(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),h}},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;I(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}},"../../node_modules/@babel/runtime/regenerator/index.js":(e,t,n)=>{e.exports=n("../../node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js")},"./src/embed.js":(e,t,n)=>{"use strict";function r(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function u(e){r(a,o,i,u,c,"next",e)}function c(e){r(a,o,i,u,c,"throw",e)}u(void 0)}))}}var i=n("../../node_modules/@babel/runtime/regenerator/index.js"),a=n.n(i),u=n("../../node_modules/invariant/browser.js"),c=n.n(u);const s=function(e){return"function"==typeof e},l=function(e){return e},f=function(e){return null===e};function d(e,t,n){void 0===t&&(t=l),c()(s(t)||f(t),"Expected payloadCreator to be a function, undefined or null");var r=f(t)||t===l?l:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o=0&&"[object Array]"===Object.prototype.toString.call(e)};function nt(e){return"[object String]"===Object.prototype.toString.call(e)}const rt=Je((function(e){return!!tt(e)||!!e&&"object"==typeof e&&!nt(e)&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))}));var ot=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();const it=Ze((function(e,t){return Ke(e.length,(function(){return e.apply(t,arguments)}))}));function at(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function ut(e,t,n,r){return e["@@transducer/result"](n[r](it(e["@@transducer/step"],e),t))}var ct="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function st(e,t,n){if("function"==typeof e&&(e=function(e){return new ot(e)}(e)),rt(n))return function(e,t,n){for(var r=0,o=n.length;r=arguments.length)?u=t[a]:(u=arguments[o],o+=1),r[a]=u,Qe(u)||(i-=1),a+=1}return i<=0?n.apply(this,r):Ke(i,xt(e,r,n))}}const Ct=Ze((function(e,t){return 1===e?Je(t):Ke(e,xt(e,[],t))}));function Pt(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var Lt=Object.prototype.toString;const Mt=function(){return"[object Arguments]"===Lt.call(arguments)?function(e){return"[object Arguments]"===Lt.call(e)}:function(e){return Pt("callee",e)}}();var jt=!{toString:null}.propertyIsEnumerable("toString"),kt=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Dt=function(){return arguments.propertyIsEnumerable("length")}(),Ht=function(e,t){for(var n=0;n=0;)Pt(t=kt[n],e)&&!Ht(r,t)&&(r[r.length]=t),n-=1;return r})):Je((function(e){return Object(e)!==e?[]:Object.keys(e)})),zt=Ze(St(["fantasy-land/map","map"],Rt,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return Ct(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return st((function(n,r){return n[r]=e(t[r]),n}),{},Ft(t));default:return _t(e,t)}}))),Ut=Ze((function(e,t){return Et([e],t)})),Bt=Ze((function(e,t){return null!=t&&t.constructor===e||t instanceof e}));function Wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Yt=Je((function(e){return Ct(e.length,e)}));function Vt(e){return e}const qt=Je(Vt);function Gt(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}function Xt(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function Kt(e,t,n){for(var r=0,o=n.length;r=0;){if(n[u]===e)return r[u]===t;u-=1}switch(a){case"Map":return e.size===t.size&&Jt(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&Jt(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=Ft(e);if(c.length!==Ft(t).length)return!1;var s=n.concat([e]),l=r.concat([t]);for(u=c.length-1;u>=0;){var f=c[u];if(!Pt(f,t)||!Zt(t[f],e[f],s,l))return!1;u-=1}return!0}const en=Ze((function(e,t){return Zt(e,t,[],[])}));function tn(e,t){return function(e,t,n){var r,o;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;n=0}function nn(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var rn=function(e){return(e<10?"0":"")+e};const on="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+rn(e.getUTCMonth()+1)+"-"+rn(e.getUTCDate())+"T"+rn(e.getUTCHours())+":"+rn(e.getUTCMinutes())+":"+rn(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function an(e){return"[object Object]"===Object.prototype.toString.call(e)}var un=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Nt,e.prototype["@@transducer/result"]=It,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();const cn=Ze(St(["filter"],Ze((function(e,t){return new un(e,t)})),(function(e,t){return an(t)?st((function(n,r){return e(t[r])&&(n[r]=t[r]),n}),{},Ft(t)):function(e,t){for(var n=0,r=t.length,o=[];n":ln(n,r)},r=function(e,t){return _t((function(t){return nn(t)+": "+n(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+_t(n,e).join(", ")+"))";case"[object Array]":return"["+_t(n,e).concat(r(e,sn((function(e){return/^\d+$/.test(e)}),Ft(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):nn(on(e)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+n(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object String]":return"object"==typeof e?"new String("+n(e.valueOf())+")":nn(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var o=e.toString();if("[object Object]"!==o)return o}return"{"+r(e,Ft(e)).join(", ")+"}"}}const fn=Je((function(e){return ln(e,[])})),dn=Ze((function(e,t){return Ct(e+1,(function(){var n=arguments[e];if(null!=n&&Gt(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(fn(n)+' does not have a method named "'+t+'"')}))})),pn=dn(1,"join"),mn=Ze((function(e,t){return t>e?t:e})),hn=Ze((function(e,t){return zt(Ut(e),t)})),gn=Ze((function(e,t){return Ct(lt(mn,0,hn("length",t)),(function(){var n=arguments,r=this;return e.apply(r,_t((function(e){return e.apply(r,n)}),t))}))})),yn=Je((function(e){return gn((function(){return Array.prototype.slice.call(arguments,0)}),e)})),vn=dn(0,"toUpperCase"),bn=vt(0);var En,wn,On=(En=function(e){return void 0===e},wn=Je((function(e){return null==e})),function(e){return En(e)||wn(e)});function Tn(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 Sn(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:0;return isNaN(parseInt(e,10))?0:parseInt(e,10)},Nn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return isNaN(parseFloat(e))?0:parseFloat(e)},In=Yt((function(e,t){return zt((function(e){return e(t)}),e)})),An=(Yt((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qt;return Object.keys(e).reduce((function(n,r){return Sn(Sn({},n),{},Wt({},r,ht(e[r],t)))}),{})})),Yt((function(e,t){return t.startsWith(e)}))),Rn=Yt((function(e,t){return t.endsWith(e)})),xn=Yt((function(e,t){return An(e,t)?t.slice(e.length):t})),Cn=Yt((function(e,t){return Rn(e,t)?t.slice(0,t.length-e.length):t})),Pn=(Yt((function(e,t){return xn(e,Cn(e,t))})),ht(pn(""),yn([ht(vn,bn),dt])),new RegExp(/^(?:(\d{1,2}):)?(?:(\d{1,2}):)?(\d{1,2})(?:\.(\d{1,3}))?$/)),Ln=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"0";if(Bt(Number,e)||On(e))return e;var t=Pn.exec(e);if(!t)return 0;var n=parseInt(t[2]?t[1]:0),r=parseInt(t[2]?t[2]:t[1]||0),o=parseInt(t[3]||0),i=parseInt(t[4]||0);return 60*n*60*1e3+60*r*1e3+1e3*o+i},Mn=(ht(_n,(function(e){return 1e3*e}),Nn),ht(Nn,(function(e){return e/1e3}),_n)),jn=(ht((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return parseInt(e%60)}),Mn),ht((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return parseInt(e/60)%60}),Mn),ht((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return parseInt(e/3600)%24}),Mn),ht(Ln,Ot(0,"duration"))),kn=(Ot(null,"version"),ht(Ln,Ot(0,"playtime"))),Dn=(ht(zt(In({url:Ot(null,"url"),size:Ot(0,"size"),title:Ot(null,"title"),mimeType:Ot(null,"mimeType")})),Ot([],"audio")),Ot([],"chapters")),Hn=Ot({},"reference"),Fn=Ot([],"transcripts"),zn=(ht(Ot(null,"share"),Hn),ht(Ot(null,"origin"),Hn),Ot({},"runtime")),Un=(ht(Ut("language"),zn),ht(Ut("platform"),zn),Ot([],"playlist")),Bn=Ut("activeTab"),Wn=Ut("subscribe-button"),Yn=Ot({},"share"),Vn=(ht(Ot([],"channels"),Yn),ht(Ot(!1,"sharePlaytime"),Yn));const qn="5.13.0";var Gn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.resourceBaseUrl=Ot("/","base",e.reference),n.p=window.resourceBaseUrl};function Xn(e,t,n){var r,o=typeof e;switch(o){case"string":case"number":return 0===e&&1/e==-1/0?!!n._items["-0"]||(t&&(n._items["-0"]=!0),!1):null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):o in n._items?e in n._items[o]||(t&&(n._items[o][e]=!0),!1):(t&&(n._items[o]={},n._items[o][e]=!0),!1);case"boolean":if(o in n._items){var i=e?1:0;return!!n._items[o][i]||(t&&(n._items[o][i]=!0),!1)}return t&&(n._items[o]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):o in n._items?!!tn(e,n._items[o])||(t&&n._items[o].push(e),!1):(t&&(n._items[o]=[e]),!1);case"undefined":return!!n._items[o]||(t&&(n._items[o]=!0),!1);case"object":if(null===e)return!!n._items.null||(t&&(n._items.null=!0),!1);default:return(o=Object.prototype.toString.call(e))in n._items?!!tn(e,n._items[o])||(t&&n._items[o].push(e),!1):(t&&(n._items[o]=[e]),!1)}}const Kn=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!Xn(e,!0,this)},e.prototype.has=function(e){return Xn(e,!1,this)},e}(),$n=Ze((function(e,t){for(var n,r,o=new Kn,i=[],a=0;a1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=Object.keys(n||{}).map((function(e){return" ".concat(e,'="').concat(n[e],'"')})).join("");return"<".concat(e).concat(r,">").concat(t,"")})),tr=Yt((function(e,t){return Object.keys(e).forEach((function(n){t.style[n]=e[n]})),t})),nr=Yt((function(e,t){(e||[]).forEach((function(e){t.style.removeProperty(e)}))})),rr=ht(cn(qt),(function(e){return e.className.split(" ")})),or=(Yt((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t.className=ht(pn(" "),$n,Qn(e),rr)(t),t})),Yt((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t.className=ht(pn(" "),cn((function(t){return!~e.indexOf(t)})),rr)(t),t})),Yt((function(e,t){return Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])})),t})));function ir(e,t){return t=t||{},new Promise((function(n,r){var o=new XMLHttpRequest,i=[],a=[],u={},c=function(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(JSON.parse(o.responseText))},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:c,headers:{keys:function(){return i},entries:function(){return a},get:function(e){return u[e.toLowerCase()]},has:function(e){return e.toLowerCase()in u}}}};for(var s in o.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){i.push(t=t.toLowerCase()),a.push([t,n]),u[t]=u[t]?u[t]+","+n:n})),n(c())},o.onerror=r,o.withCredentials="include"==t.credentials,t.headers)o.setRequestHeader(s,t.headers[s]);o.send(t.body||null)}))}Yt((function(e,t){new MutationObserver(t).observe(e,{childList:!0}),window.addEventListener("resize",t)}));var ar=function(){var e=o(a().mark((function e(t){var n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&"string"==typeof t){e.next=2;break}return e.abrupt("return",t);case 2:return e.prev=2,e.next=5,ir(t);case 5:if(200===(n=e.sent).status){e.next=8;break}return e.abrupt("return",null);case 8:if(n.headers.get("content-type").includes("application/json")){e.next=10;break}return e.abrupt("return",null);case 10:return e.abrupt("return",n.json());case 13:return e.prev=13,e.t0=e.catch(2),console.warn(e.t0),e.abrupt("return",null);case 17:case"end":return e.stop()}}),e,null,[[2,13]])})));return function(t){return e.apply(this,arguments)}}(),ur=function(){var e=o(a().mark((function e(t){var n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}return e.abrupt("return",t);case 2:return e.prev=2,e.next=5,ir(t);case 5:if(200===(n=e.sent).status){e.next=8;break}return e.abrupt("return",null);case 8:if(n.headers.get("content-type").includes("text/html")){e.next=10;break}return e.abrupt("return",null);case 10:return e.abrupt("return",n.text());case 13:return e.prev=13,e.t0=e.catch(2),console.warn(e.t0),e.abrupt("return",null);case 17:case"end":return e.stop()}}),e,null,[[2,13]])})));return function(t){return e.apply(this,arguments)}}();const cr=o(a().mark((function e(){var t,r=arguments;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=r.length>0&&void 0!==r[0]?r[0]:"",e.t0=vn(t),e.next="XL"===e.t0?4:"L"===e.t0?7:"M"===e.t0?10:13;break;case 4:return e.next=6,n.e("variant-xl").then(n.bind(n,"./src/templates/variant-xl.html")).then(Ut("default"));case 6:return e.abrupt("return",e.sent);case 7:return e.next=9,n.e("variant-l").then(n.bind(n,"./src/templates/variant-l.html")).then(Ut("default"));case 9:return e.abrupt("return",e.sent);case 10:return e.next=12,n.e("variant-m").then(n.bind(n,"./src/templates/variant-m.html")).then(Ut("default"));case 12:return e.abrupt("return",e.sent);case 13:return e.abrupt("return",null);case 14:case"end":return e.stop()}}),e)})));var sr=function(){var e=o(a().mark((function e(t){var n,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.getAttribute("data-template"),r=t.getAttribute("data-variant"),!n){e.next=6;break}return e.next=5,ur(n);case 5:return e.abrupt("return",e.sent);case 6:if(!r){e.next=10;break}return e.next=9,cr(r);case 9:return e.abrupt("return",e.sent);case 10:if(!t.innerHTML){e.next=12;break}return e.abrupt("return",t.innerHTML);case 12:return e.next=14,cr("xl");case 14:return e.abrupt("return",e.sent);case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();const lr=function(){var e=o(a().mark((function e(t){var n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Jn(t),e.t0=n,e.next=4,sr(n);case 4:return e.t1=e.sent,e.t2=function(){n.innerHTML=""},e.abrupt("return",{node:e.t0,template:e.t1,init:e.t2});case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),fr=function(){for(var e=arguments.length,t=new Array(e),n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n2?n-2:0),a=2;a2&&void 0!==arguments[2]&&arguments[2],r=null,o=!0;return function(){var i=arguments,a=this,u=function(){e.apply(a,i),r=null};n&&o&&(o=!1,u()),r||(r=setTimeout(u,t))}}((function(){var r=n.getState(),o=go(r),i=vo(r),a=yo(r);t.put(e,{playtime:o,tabs:i,quantiles:a})}),1e3))}));const Eo=Je((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():tt(e)?[]:nt(e)?"":an(e)?{}:Mt(e)?function(){return arguments}():void 0})),wo=Je((function(e){return null!=e&&en(e,Eo(e))}));d(J),d(de),d(Z),d(pe),d(ee),d(me),d(te),d(he),d(ne),d(ge),d(re),d(ye),d(oe),d(ve),d(ie),d(be),d(ae),d(Ee),d(ue),d(we),d(se),d(Te),d(ce),d(Oe),d(le),d(Se);var Oo=d(fe),To=d(_e),So=Yt((function(e,t){var n="Podlove Web Player".concat(Ut("title",e)?": "+Ut("title",e):"");return or({title:n,"aria-label":n,tabindex:0},t)})),_o=function(){var e=o(a().mark((function e(t,n){var r,o,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Mr()({root:window.resourceBaseUrl,base:"".concat(qn,"/player/"),styles:["styles"],scripts:["vendor","styles","bootstrap"],template:n.template,resizer:Pr(),loader:[jr,kr].join("")}),e.next=3,Rr(n.node,r).then(Ir(n.node));case 3:return o=e.sent,So(t,o),(0,xr.iframeResizer)({checkOrigin:!1,log:!1},o),i=Ut("PODLOVE_STORE",_r(o)),e.abrupt("return",i);case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),No=function(e,t){(function(e,t){var n={selector:po("pwp"),get:function(e){var t=this.selector(e);if(!fo[t])return[mo(t)];try{return[null,JSON.parse(fo[t])]}catch(e){return[e]}},put:function(e,t){if(void 0===t)return[new Error("Invalid parameters to put, ('".concat(e,"', undefined)"))];try{var n=this.selector(e);return[null,fo[n]=JSON.stringify(t)]}catch(e){return[e]}}},r=(0,ho.u)().value(e),o=pr(n.get(r),2)[1],i=void 0===o?{}:o,a=bo(r,n);io(t).then((function(){var n=t.getState().tabs,r=Ot([],"quantiles",i);if(e.features.persistPlaystate&&(r.length>0&&(t.dispatch(Ve()),t.dispatch(ro())),i.playtime&&t.dispatch(Jr(i.playtime)),i.quantiles&&t.dispatch(uo(i.quantiles))),e.features.persistTab&&i.tabs){var o=Object.keys(i.tabs).find((function(e){return i.tabs[e]}));n[o]||t.dispatch(co(o))}a(t)}))})(e,t),function(e,t){var n=Bn(e);n&&io(t).then((function(){var e=t.getState();Et(["tabs",n],e)||"chapters"===n&&wo(Et(["chapters","list"],e))||t.dispatch(co(n))}))}(e,t),function(e,t){var n=Vn(e);io(t).then((function(e){n?e.dispatch(Oo()):e.dispatch(To())}))}(e,t),function(e){io(e).then((function(){var t=no(),n=t.starttime,r=t.stoptime,o=t.autoplay;(n||o||r)&&(e.dispatch(Ve()),e.dispatch(ro())),n&&e.dispatch(Zr(n)),o&&e.dispatch($r()),r&&function(e,t){var n=t.subscribe((function(){ao(t.getState()){"use strict";n.d(t,{Z:()=>i});var r=n("../../node_modules/css-loader/dist/runtime/api.js"),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,"#app{transition:opacity 600ms ease-out;opacity:0}#app.loaded{opacity:1}",""]);const i=o},"../../node_modules/css-loader/dist/runtime/api.js":e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i1?n-1:0),o=1;o2&&void 0!==arguments[2]?arguments[2]:p;t&&t(e,null);let i=r.length;for(;i--;){let t=r[i];if("string"==typeof t){const e=o(t);e!==t&&(n(r)||(r[i]=e),t=e)}e[t]=!0}return e}function S(e){for(let t=0;t/gm),z=a(/\${[\w\W]*}/gm),U=a(/^data-[\-\w.\u00B7-\uFFFF]/),B=a(/^aria-[\-\w]+$/),W=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=a(/^(?:\w+script|data):/i),V=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),q=a(/^html$/i);var G=Object.freeze({__proto__:null,MUSTACHE_EXPR:H,ERB_EXPR:F,TMPLIT_EXPR:z,DATA_ATTR:U,ARIA_ATTR:B,IS_ALLOWED_URI:W,IS_SCRIPT_OR_DATA:Y,ATTR_WHITESPACE:V,DOCTYPE_NAME:q});const X=function(){return"undefined"==typeof window?null:window},K=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};return function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X();const r=e=>t(e);if(r.version="3.0.8",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;let{document:o}=n;const a=o,c=a.currentScript,{DocumentFragment:s,HTMLTemplateElement:w,Node:O,Element:S,NodeFilter:H,NamedNodeMap:F=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:z,DOMParser:U,trustedTypes:B}=n,Y=S.prototype,V=N(Y,"cloneNode"),$=N(Y,"nextSibling"),Q=N(Y,"childNodes"),J=N(Y,"parentNode");if("function"==typeof w){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let Z,ee="";const{implementation:te,createNodeIterator:ne,createDocumentFragment:re,getElementsByTagName:oe}=o,{importNode:ie}=a;let ae={};r.isSupported="function"==typeof e&&"function"==typeof J&&te&&void 0!==te.createHTMLDocument;const{MUSTACHE_EXPR:ue,ERB_EXPR:ce,TMPLIT_EXPR:se,DATA_ATTR:le,ARIA_ATTR:fe,IS_SCRIPT_OR_DATA:de,ATTR_WHITESPACE:pe}=G;let{IS_ALLOWED_URI:me}=G,he=null;const ge=T({},[...I,...A,...R,...C,...L]);let ye=null;const ve=T({},[...M,...j,...k,...D]);let be=Object.seal(u(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ee=null,we=null,Oe=!0,Te=!0,Se=!1,_e=!0,Ne=!1,Ie=!1,Ae=!1,Re=!1,xe=!1,Ce=!1,Pe=!1,Le=!0,Me=!1;const je="user-content-";let ke=!0,De=!1,He={},Fe=null;const ze=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ue=null;const Be=T({},["audio","video","img","source","image","track"]);let We=null;const Ye=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ve="http://www.w3.org/1998/Math/MathML",qe="http://www.w3.org/2000/svg",Ge="http://www.w3.org/1999/xhtml";let Xe=Ge,Ke=!1,$e=null;const Qe=T({},[Ve,qe,Ge],m);let Je=null;const Ze=["application/xhtml+xml","text/html"],et="text/html";let tt=null,nt=null;const rt=o.createElement("form"),ot=function(e){return e instanceof RegExp||e instanceof Function},it=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!nt||nt!==e){if(e&&"object"==typeof e||(e={}),e=_(e),Je=-1===Ze.indexOf(e.PARSER_MEDIA_TYPE)?et:e.PARSER_MEDIA_TYPE,tt="application/xhtml+xml"===Je?m:p,he="ALLOWED_TAGS"in e?T({},e.ALLOWED_TAGS,tt):ge,ye="ALLOWED_ATTR"in e?T({},e.ALLOWED_ATTR,tt):ve,$e="ALLOWED_NAMESPACES"in e?T({},e.ALLOWED_NAMESPACES,m):Qe,We="ADD_URI_SAFE_ATTR"in e?T(_(Ye),e.ADD_URI_SAFE_ATTR,tt):Ye,Ue="ADD_DATA_URI_TAGS"in e?T(_(Be),e.ADD_DATA_URI_TAGS,tt):Be,Fe="FORBID_CONTENTS"in e?T({},e.FORBID_CONTENTS,tt):ze,Ee="FORBID_TAGS"in e?T({},e.FORBID_TAGS,tt):{},we="FORBID_ATTR"in e?T({},e.FORBID_ATTR,tt):{},He="USE_PROFILES"in e&&e.USE_PROFILES,Oe=!1!==e.ALLOW_ARIA_ATTR,Te=!1!==e.ALLOW_DATA_ATTR,Se=e.ALLOW_UNKNOWN_PROTOCOLS||!1,_e=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ne=e.SAFE_FOR_TEMPLATES||!1,Ie=e.WHOLE_DOCUMENT||!1,xe=e.RETURN_DOM||!1,Ce=e.RETURN_DOM_FRAGMENT||!1,Pe=e.RETURN_TRUSTED_TYPE||!1,Re=e.FORCE_BODY||!1,Le=!1!==e.SANITIZE_DOM,Me=e.SANITIZE_NAMED_PROPS||!1,ke=!1!==e.KEEP_CONTENT,De=e.IN_PLACE||!1,me=e.ALLOWED_URI_REGEXP||W,Xe=e.NAMESPACE||Ge,be=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ot(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(be.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ot(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(be.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(be.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ne&&(Te=!1),Ce&&(xe=!0),He&&(he=T({},L),ye=[],!0===He.html&&(T(he,I),T(ye,M)),!0===He.svg&&(T(he,A),T(ye,j),T(ye,D)),!0===He.svgFilters&&(T(he,R),T(ye,j),T(ye,D)),!0===He.mathMl&&(T(he,C),T(ye,k),T(ye,D))),e.ADD_TAGS&&(he===ge&&(he=_(he)),T(he,e.ADD_TAGS,tt)),e.ADD_ATTR&&(ye===ve&&(ye=_(ye)),T(ye,e.ADD_ATTR,tt)),e.ADD_URI_SAFE_ATTR&&T(We,e.ADD_URI_SAFE_ATTR,tt),e.FORBID_CONTENTS&&(Fe===ze&&(Fe=_(Fe)),T(Fe,e.FORBID_CONTENTS,tt)),ke&&(he["#text"]=!0),Ie&&T(he,["html","head","body"]),he.table&&(T(he,["tbody"]),delete Ee.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Z=e.TRUSTED_TYPES_POLICY,ee=Z.createHTML("")}else void 0===Z&&(Z=K(B,c)),null!==Z&&"string"==typeof ee&&(ee=Z.createHTML(""));i&&i(e),nt=e}},at=T({},["mi","mo","mn","ms","mtext"]),ut=T({},["foreignobject","desc","title","annotation-xml"]),ct=T({},["title","style","font","a","script"]),st=T({},[...A,...R,...x]),lt=T({},[...C,...P]),ft=function(e){let t=J(e);t&&t.tagName||(t={namespaceURI:Xe,tagName:"template"});const n=p(e.tagName),r=p(t.tagName);return!!$e[e.namespaceURI]&&(e.namespaceURI===qe?t.namespaceURI===Ge?"svg"===n:t.namespaceURI===Ve?"svg"===n&&("annotation-xml"===r||at[r]):Boolean(st[n]):e.namespaceURI===Ve?t.namespaceURI===Ge?"math"===n:t.namespaceURI===qe?"math"===n&&ut[r]:Boolean(lt[n]):e.namespaceURI===Ge?!(t.namespaceURI===qe&&!ut[r])&&!(t.namespaceURI===Ve&&!at[r])&&!lt[n]&&(ct[n]||!st[n]):!("application/xhtml+xml"!==Je||!$e[e.namespaceURI]))},dt=function(e){d(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},pt=function(e,t){try{d(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){d(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ye[e])if(xe||Ce)try{dt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},mt=function(e){let t=null,n=null;if(Re)e=""+e;else{const t=h(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Je&&Xe===Ge&&(e='

°µÍøTV

'+e+"");const r=Z?Z.createHTML(e):e;if(Xe===Ge)try{t=(new U).parseFromString(r,Je)}catch(e){}if(!t||!t.documentElement){t=te.createDocument(Xe,"template",null);try{t.documentElement.innerHTML=Ke?ee:r}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),Xe===Ge?oe.call(t,Ie?"html":"body")[0]:Ie?t.documentElement:i},ht=function(e){return ne.call(e.ownerDocument||e,e,H.SHOW_ELEMENT|H.SHOW_COMMENT|H.SHOW_TEXT,null)},gt=function(e){return e instanceof z&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof F)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},yt=function(e){return"function"==typeof O&&e instanceof O},vt=function(e,t,n){ae[e]&&l(ae[e],(e=>{e.call(r,t,n,nt)}))},bt=function(e){let t=null;if(vt("beforeSanitizeElements",e,null),gt(e))return dt(e),!0;const n=tt(e.nodeName);if(vt("uponSanitizeElement",e,{tagName:n,allowedTags:he}),e.hasChildNodes()&&!yt(e.firstElementChild)&&b(/<[/\w]/g,e.innerHTML)&&b(/<[/\w]/g,e.textContent))return dt(e),!0;if(!he[n]||Ee[n]){if(!Ee[n]&&wt(n)){if(be.tagNameCheck instanceof RegExp&&b(be.tagNameCheck,n))return!1;if(be.tagNameCheck instanceof Function&&be.tagNameCheck(n))return!1}if(ke&&!Fe[n]){const t=J(e)||e.parentNode,n=Q(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r)t.insertBefore(V(n[r],!0),$(e))}return dt(e),!0}return e instanceof S&&!ft(e)?(dt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!b(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ne&&3===e.nodeType&&(t=e.textContent,l([ue,ce,se],(e=>{t=g(t,e," ")})),e.textContent!==t&&(d(r.removed,{element:e.cloneNode()}),e.textContent=t)),vt("afterSanitizeElements",e,null),!1):(dt(e),!0)},Et=function(e,t,n){if(Le&&("id"===t||"name"===t)&&(n in o||n in rt))return!1;if(Te&&!we[t]&&b(le,t));else if(Oe&&b(fe,t));else if(!ye[t]||we[t]){if(!(wt(e)&&(be.tagNameCheck instanceof RegExp&&b(be.tagNameCheck,e)||be.tagNameCheck instanceof Function&&be.tagNameCheck(e))&&(be.attributeNameCheck instanceof RegExp&&b(be.attributeNameCheck,t)||be.attributeNameCheck instanceof Function&&be.attributeNameCheck(t))||"is"===t&&be.allowCustomizedBuiltInElements&&(be.tagNameCheck instanceof RegExp&&b(be.tagNameCheck,n)||be.tagNameCheck instanceof Function&&be.tagNameCheck(n))))return!1}else if(We[t]);else if(b(me,g(n,pe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==y(n,"data:")||!Ue[e])if(Se&&!b(de,g(n,pe,"")));else if(n)return!1;return!0},wt=function(e){return e.indexOf("-")>0},Ot=function(e){vt("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ye};let o=t.length;for(;o--;){const i=t[o],{name:a,namespaceURI:u,value:c}=i,s=tt(a);let d="value"===a?c:v(c);if(n.attrName=s,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,vt("uponSanitizeAttribute",e,n),d=n.attrValue,n.forceKeepAttr)continue;if(pt(a,e),!n.keepAttr)continue;if(!_e&&b(/\/>/i,d)){pt(a,e);continue}Ne&&l([ue,ce,se],(e=>{d=g(d,e," ")}));const p=tt(e.nodeName);if(Et(p,s,d)){if(!Me||"id"!==s&&"name"!==s||(pt(a,e),d=je+d),Z&&"object"==typeof B&&"function"==typeof B.getAttributeType)if(u);else switch(B.getAttributeType(p,s)){case"TrustedHTML":d=Z.createHTML(d);break;case"TrustedScriptURL":d=Z.createScriptURL(d)}try{u?e.setAttributeNS(u,a,d):e.setAttribute(a,d),f(r.removed)}catch(e){}}}vt("afterSanitizeAttributes",e,null)},Tt=function e(t){let n=null;const r=ht(t);for(vt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)vt("uponSanitizeShadowNode",n,null),bt(n)||(n.content instanceof s&&e(n.content),Ot(n));vt("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,i=null,u=null;if(Ke=!e,Ke&&(e="\x3c!--\x3e"),"string"!=typeof e&&!yt(e)){if("function"!=typeof e.toString)throw E("toString is not a function");if("string"!=typeof(e=e.toString()))throw E("dirty is not a string, aborting")}if(!r.isSupported)return e;if(Ae||it(t),r.removed=[],"string"==typeof e&&(De=!1),De){if(e.nodeName){const t=tt(e.nodeName);if(!he[t]||Ee[t])throw E("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof O)n=mt("\x3c!----\x3e"),o=n.ownerDocument.importNode(e,!0),1===o.nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!xe&&!Ne&&!Ie&&-1===e.indexOf("<"))return Z&&Pe?Z.createHTML(e):e;if(n=mt(e),!n)return xe?null:Pe?ee:""}n&&Re&&dt(n.firstChild);const c=ht(De?e:n);for(;i=c.nextNode();)bt(i)||(i.content instanceof s&&Tt(i.content),Ot(i));if(De)return e;if(xe){if(Ce)for(u=re.call(n.ownerDocument);n.firstChild;)u.appendChild(n.firstChild);else u=n;return(ye.shadowroot||ye.shadowrootmode)&&(u=ie.call(a,u,!0)),u}let f=Ie?n.outerHTML:n.innerHTML;return Ie&&he["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&b(q,n.ownerDocument.doctype.name)&&(f="\n"+f),Ne&&l([ue,ce,se],(e=>{f=g(f,e," ")})),Z&&Pe?Z.createHTML(f):f},r.setConfig=function(){it(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ae=!0},r.clearConfig=function(){nt=null,Ae=!1},r.isValidAttribute=function(e,t,n){nt||it({});const r=tt(e),o=tt(t);return Et(r,o,n)},r.addHook=function(e,t){"function"==typeof t&&(ae[e]=ae[e]||[],d(ae[e],t))},r.removeHook=function(e){if(ae[e])return f(ae[e])},r.removeHooks=function(e){ae[e]&&(ae[e]=[])},r.removeAllHooks=function(){ae={}},r}()}()},"../../node_modules/hashcode/hashcode.js":(e,t)=>{t.u=function(){var e=function(e){e=e.toString();var t,n=0;for(t=0;t{!function(e){var t=/\S/,n=/\"/g,r=/\n/g,o=/\r/g,i=/\\/g,a=/\u2028/,u=/\u2029/;function c(e){return e.trim?e.trim():e.replace(/^\s*|\s*$/g,"")}function s(e,t,n){if(t.charAt(n)!=e.charAt(0))return!1;for(var r=1,o=e.length;r":7,"=":8,_v:9,"{":10,"&":11,_t:12},e.scan=function(n,r){var o,i=n.length,a=0,u=null,l=null,f="",d=[],p=!1,m=0,h=0,g="{{",y="}}";function v(){f.length>0&&(d.push({tag:"_t",text:new String(f)}),f="")}function b(n,r){if(v(),n&&function(){for(var n=!0,r=h;r"==o.tag&&(o.indent=d[i].text.toString()),d.splice(i,1));else r||d.push({tag:"\n"});p=!1,h=d.length}function E(e,t){var n="="+y,r=e.indexOf(n,t),o=c(e.substring(e.indexOf("=",t)+1,r)).split(" ");return g=o[0],y=o[o.length-1],r+n.length-1}for(r&&(r=r.split(" "),g=r[0],y=r[1]),m=0;m0;){if(c=t.shift(),i&&"<"==i.tag&&!(c.tag in l))throw new Error("Illegal content in < super tag.");if(e.tags[c.tag]<=e.tags.$||d(c,o))r.push(c),c.nodes=f(t,c.tag,r,o);else{if("/"==c.tag){if(0===r.length)throw new Error("Closing tag without opener: /"+c.n);if(u=r.pop(),c.n!=u.n&&!p(c.n,u.n,o))throw new Error("Nesting error: "+u.n+" vs. "+c.n);return u.end=c.i,a}"\n"==c.tag&&(c.last=0==t.length||"\n"==t[0].tag)}a.push(c)}if(r.length>0)throw new Error("missing closing tag: "+r.pop().n);return a}function d(e,t){for(var n=0,r=t.length;n":v,"<":function(t,n){var r={partials:{},code:"",subs:{},inPartial:!0};e.walk(t.nodes,r);var o=n.partials[v(t,n)];o.subs=r.subs,o.partials=r.partials},$:function(t,n){var r={subs:{},code:"",partials:n.partials,prefix:t.n};e.walk(t.nodes,r),n.subs[t.n]=r.code,n.inPartial||(n.code+='t.sub("'+g(t.n)+'",c,p,i);')},"\n":function(e,t){t.code+=E('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+y(e.n)+'("'+g(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=E('"'+g(e.text)+'"')},"{":b,"&":b},e.walk=function(t,n){for(var r,o=0,i=t.length;o{var r=n("../../node_modules/hogan.js/lib/compiler.js");r.Template=n("../../node_modules/hogan.js/lib/template.js").Template,r.template=r.Template,e.exports=r},"../../node_modules/hogan.js/lib/template.js":(e,t)=>{!function(e){function t(e,t,n){var r;return t&&"object"==typeof t&&(void 0!==t[e]?r=t[e]:n&&t.get&&"function"==typeof t.get&&(r=t.get(e))),r}e.Template=function(e,t,n,r){e=e||{},this.r=e.code||this.r,this.c=n,this.options=r||{},this.text=t||"",this.partials=e.partials||{},this.subs=e.subs||{},this.buf=""},e.Template.prototype={r:function(e,t,n){return""},v:function(e){return e=c(e),u.test(e)?e.replace(n,"&").replace(r,"<").replace(o,">").replace(i,"'").replace(a,"""):e},t:c,render:function(e,t,n){return this.ri([e],t||{},n)},ri:function(e,t,n){return this.r(e,t,n)},ep:function(e,t){var n=this.partials[e],r=t[n.name];if(n.instance&&n.base==r)return n.instance;if("string"==typeof r){if(!this.c)throw new Error("No compiler available.");r=this.c.compile(r,this.options)}if(!r)return null;if(this.partials[e].base=r,n.subs){for(key in t.stackText||(t.stackText={}),n.subs)t.stackText[key]||(t.stackText[key]=void 0!==this.activeSub&&t.stackText[this.activeSub]?t.stackText[this.activeSub]:this.text);r=function(e,t,n,r,o,i){function a(){}function u(){}var c;a.prototype=e,u.prototype=e.subs;var s=new a;for(c in s.subs=new u,s.subsText={},s.buf="",r=r||{},s.stackSubs=r,s.subsText=i,t)r[c]||(r[c]=t[c]);for(c in r)s.subs[c]=r[c];for(c in o=o||{},s.stackPartials=o,n)o[c]||(o[c]=n[c]);for(c in o)s.partials[c]=o[c];return s}(r,n.subs,n.partials,this.stackSubs,this.stackPartials,t.stackText)}return this.partials[e].instance=r,r},rp:function(e,t,n,r){var o=this.ep(e,n);return o?o.ri(t,n,r):""},rs:function(e,t,n){var r=e[e.length-1];if(s(r))for(var o=0;o=0;c--)if(void 0!==(i=t(e,n[c],u))){a=!0;break}return a?(o||"function"!=typeof i||(i=this.mv(i,n,r)),i):!o&&""},ls:function(e,t,n,r,o){var i=this.options.delimiters;return this.options.delimiters=o,this.b(this.ct(c(e.call(t,r)),t,n)),this.options.delimiters=i,!1},ct:function(e,t,n){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(e,this.options).render(t,n)},b:function(e){this.buf+=e},fl:function(){var e=this.buf;return this.buf="",e},ms:function(e,t,n,r,o,i,a){var u,c=t[t.length-1],s=e.call(c);return"function"==typeof s?!!r||(u=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(s,c,n,u.substring(o,i),a)):s},mv:function(e,t,n){var r=t[t.length-1],o=e.call(r);return"function"==typeof o?this.ct(c(o.call(r)),r,n):o},sub:function(e,t,n,r){var o=this.subs[e];o&&(this.activeSub=e,o(t,n,this,r),this.activeSub=!1)}};var n=/&/g,r=//g,i=/\'/g,a=/\"/g,u=/[&<>\"\']/;function c(e){return String(null==e?"":e)}var s=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(t)},"../../node_modules/iframe-resizer/index.js":(e,t,n)=>{e.exports=n("../../node_modules/iframe-resizer/js/index.js")},"../../node_modules/iframe-resizer/js/iframeResizer.contentWindow.js":e=>{!function(t){if("undefined"!=typeof window){var n=!0,r="",o=0,i="",a=null,u="",c=!1,s={resize:1,click:1},l=128,f=!0,d=1,p="bodyOffset",m=p,h=!0,g="",y={},v=32,b=null,E=!1,w=!1,O="[iFrameSizer]",T=O.length,S="",_={max:1,min:1,bodyScroll:1,documentElementScroll:1},N="child",I=window.parent,A="*",R=0,x=!1,C=null,P=16,L=1,M="scroll",j=M,k=window,D=function(){ie("onMessage function not defined")},H=function(){},F=function(){},z={height:function(){return ie("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return ie("Custom width calculation function not defined"),document.body.scrollWidth}},U={},B=!1;try{var W=Object.create({},{passive:{get:function(){B=!0}}});window.addEventListener("test",ee,W),window.removeEventListener("test",ee,W)}catch(e){}var Y,V,q,G,X,K,$,Q={bodyOffset:function(){return document.body.offsetHeight+he("marginTop")+he("marginBottom")},offset:function(){return Q.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return z.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,ye(Q))},min:function(){return Math.min.apply(null,ye(Q))},grow:function(){return Q.max()},lowestElement:function(){return Math.max(Q.bodyOffset()||Q.documentElementOffset(),ge("bottom",be()))},taggedElement:function(){return ve("bottom","data-iframe-height")}},J={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return z.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(J.bodyScroll(),J.documentElementScroll())},max:function(){return Math.max.apply(null,ye(J))},min:function(){return Math.min.apply(null,ye(J))},rightMostElement:function(){return ge("right",be())},taggedElement:function(){return ve("right","data-iframe-width")}},Z=(Y=Ee,X=null,K=0,$=function(){K=Date.now(),X=null,G=Y.apply(V,q),X||(V=q=null)},function(){var e=Date.now();K||(K=e);var t=P-(e-K);return V=this,q=arguments,t<=0||t>P?(X&&(clearTimeout(X),X=null),K=e,G=Y.apply(V,q),X||(V=q=null)):X||(X=setTimeout($,t)),G});te(window,"message",(function(s){var d,p={init:function(){var e,d,p;g=s.data,I=s.source,function(){function e(e){return"true"===e}var a=g.substr(T).split(":");S=a[0],o=t!==a[1]?Number(a[1]):o,c=t!==a[2]?e(a[2]):c,E=t!==a[3]?e(a[3]):E,v=t!==a[4]?Number(a[4]):v,n=t!==a[6]?e(a[6]):n,i=a[7],m=t!==a[8]?a[8]:m,r=a[9],u=a[10],R=t!==a[11]?Number(a[11]):R,y.enable=t!==a[12]&&e(a[12]),N=t!==a[13]?a[13]:N,j=t!==a[14]?a[14]:j,w=t!==a[15]?Boolean(a[15]):w}(),oe("Initialising iFrame ("+window.location.href+")"),function(){function e(){var e=window.iFrameResizer;oe("Reading data from page: "+JSON.stringify(e)),Object.keys(e).forEach(ae,e),D="onMessage"in e?e.onMessage:D,H="onReady"in e?e.onReady:H,A="targetOrigin"in e?e.targetOrigin:A,m="heightCalculationMethod"in e?e.heightCalculationMethod:m,j="widthCalculationMethod"in e?e.widthCalculationMethod:j}function t(e,t){return"function"==typeof e&&(oe("Setup custom "+t+"CalcMethod"),z[t]=e,e="custom"),e}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(e(),m=t(m,"height"),j=t(j,"width")),oe("TargetOrigin for parent set to: "+A)}(),t===i&&(i=o+"px"),ue("margin",(d="margin",-1!==(p=i).indexOf("-")&&(ie("Negative CSS value ignored for "+d),p=""),p)),ue("background",r),ue("padding",u),(e=document.createElement("div")).style.clear="both",e.style.display="block",e.style.height="0",document.body.appendChild(e),fe(),de(),document.documentElement.style.height="",document.body.style.height="",oe('HTML & body height set to "auto"'),oe("Enable public methods"),k.parentIFrame={autoResize:function(e){return!0===e&&!1===n?(n=!0,pe()):!1===e&&!0===n&&(n=!1,se("remove"),null!==a&&a.disconnect(),clearInterval(b)),_e(0,0,"autoResize",JSON.stringify(n)),n},close:function(){_e(0,0,"close")},getId:function(){return S},getPageInfo:function(e){"function"==typeof e?(F=e,_e(0,0,"pageInfo")):(F=function(){},_e(0,0,"pageInfoStop"))},moveToAnchor:function(e){y.findTarget(e)},reset:function(){Se("parentIFrame.reset")},scrollTo:function(e,t){_e(t,e,"scrollTo")},scrollToOffset:function(e,t){_e(t,e,"scrollToOffset")},sendMessage:function(e,t){_e(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod:function(e){m=e,fe()},setWidthCalculationMethod:function(e){j=e,de()},setTargetOrigin:function(e){oe("Set targetOrigin: "+e),A=e},size:function(e,t){we("size","parentIFrame.size("+(e||"")+(t?","+t:"")+")",e,t)}},function(){function e(e){_e(0,0,e.type,e.screenY+":"+e.screenX)}function t(t,n){oe("Add event listener: "+n),te(window.document,t,e)}!0===w&&(t("mouseenter","Mouse Enter"),t("mouseleave","Mouse Leave"))}(),pe(),y=function(){function e(){return{x:window.pageXOffset!==t?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==t?window.pageYOffset:document.documentElement.scrollTop}}function n(t){var n=t.getBoundingClientRect(),r=e();return{x:parseInt(n.left,10)+parseInt(r.x,10),y:parseInt(n.top,10)+parseInt(r.y,10)}}function r(e){function r(e){var t=n(e);oe("Moving to in page link (#"+o+") at x: "+t.x+" y: "+t.y),_e(t.y,t.x,"scrollToOffset")}var o=e.split("#")[1]||e,i=decodeURIComponent(o),a=document.getElementById(i)||document.getElementsByName(i)[0];t!==a?r(a):(oe("In page link (#"+o+") not found in iFrame, so sending to parent"),_e(0,0,"inPageLink","#"+o))}function o(){var e=window.location.hash,t=window.location.href;""!==e&&"#"!==e&&r(t)}function i(){function e(e){function t(e){e.preventDefault(),r(this.getAttribute("href"))}"#"!==e.getAttribute("href")&&te(e,"click",t)}Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),e)}function a(){te(window,"hashchange",o)}function u(){setTimeout(o,l)}function c(){Array.prototype.forEach&&document.querySelectorAll?(oe("Setting up location.hash handlers"),i(),a(),u()):ie("In page linking not fully supported in this browser! (See README.md for IE8 workaround)")}return y.enable?c():oe("In page linking not enabled"),{findTarget:r}}(),we("init","Init message from host page"),H(),f=!1,setTimeout((function(){h=!1}),l)},reset:function(){h?oe("Page reset ignored by init"):(oe("Page size reset by host page"),Te("resetPage"))},resize:function(){we("resizeParent","Parent window requested size check")},moveToAnchor:function(){y.findTarget(x())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var e=x();oe("PageInfoFromParent called from parent: "+e),F(JSON.parse(e)),oe(" --")},message:function(){var e=x();oe("onMessage called from parent: "+e),D(JSON.parse(e)),oe(" --")}};function _(){return s.data.split("]")[1].split(":")[0]}function x(){return s.data.substr(s.data.indexOf(":")+1)}function C(){return s.data.split(":")[2]in{true:1,false:1}}O===(""+s.data).substr(0,T)&&(!1===f?(d=_())in p?p[d]():!e.exports&&"iFrameResize"in window||"jQuery"in window&&"iFrameResize"in window.jQuery.prototype||C()||ie("Unexpected message ("+s.data+")"):C()?p.init():oe('Ignored message of type "'+_()+'". Received before initialization.'))})),te(window,"readystatechange",Ne),Ne()}function ee(){}function te(e,t,n,r){e.addEventListener(t,n,!!B&&(r||{}))}function ne(e){return e.charAt(0).toUpperCase()+e.slice(1)}function re(e){return O+"["+S+"] "+e}function oe(e){E&&"object"==typeof window.console&&console.log(re(e))}function ie(e){"object"==typeof window.console&&console.warn(re(e))}function ae(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],ie("Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}function ue(e,n){t!==n&&""!==n&&"null"!==n&&(document.body.style[e]=n,oe("Body "+e+' set to "'+n+'"'))}function ce(e){var t={add:function(t){function n(){we(e.eventName,e.eventType)}U[t]=n,te(window,t,n,{passive:!0})},remove:function(e){var t,n,r=U[e];delete U[e],t=e,n=r,window.removeEventListener(t,n,!1)}};e.eventNames&&Array.prototype.map?(e.eventName=e.eventNames[0],e.eventNames.map(t[e.method])):t[e.method](e.eventName),oe(ne(e.method)+" event listener: "+e.eventType)}function se(e){ce({method:e,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),ce({method:e,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),ce({method:e,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),ce({method:e,eventType:"Input",eventName:"input"}),ce({method:e,eventType:"Mouse Up",eventName:"mouseup"}),ce({method:e,eventType:"Mouse Down",eventName:"mousedown"}),ce({method:e,eventType:"Orientation Change",eventName:"orientationchange"}),ce({method:e,eventType:"Print",eventName:["afterprint","beforeprint"]}),ce({method:e,eventType:"Ready State Change",eventName:"readystatechange"}),ce({method:e,eventType:"Touch Start",eventName:"touchstart"}),ce({method:e,eventType:"Touch End",eventName:"touchend"}),ce({method:e,eventType:"Touch Cancel",eventName:"touchcancel"}),ce({method:e,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),ce({method:e,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),ce({method:e,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===N&&ce({method:e,eventType:"IFrame Resized",eventName:"resize"})}function le(e,t,n,r){return t!==e&&(e in n||(ie(e+" is not a valid option for "+r+"CalculationMethod."),e=t),oe(r+' calculation method set to "'+e+'"')),e}function fe(){m=le(m,p,Q,"height")}function de(){j=le(j,M,J,"width")}function pe(){var e;!0===n?(se("add"),e=0>v,window.MutationObserver||window.WebKitMutationObserver?e?me():a=function(){function e(e){function t(e){!1===e.complete&&(oe("Attach listeners to "+e.src),e.addEventListener("load",r,!1),e.addEventListener("error",o,!1),a.push(e))}"attributes"===e.type&&"src"===e.attributeName?t(e.target):"childList"===e.type&&Array.prototype.forEach.call(e.target.querySelectorAll("img"),t)}function t(e){oe("Remove listeners from "+e.src),e.removeEventListener("load",r,!1),e.removeEventListener("error",o,!1),function(e){a.splice(a.indexOf(e),1)}(e)}function n(e,n,r){t(e.target),we(n,r+": "+e.target.src)}function r(e){n(e,"imageLoad","Image loaded")}function o(e){n(e,"imageLoadFailed","Image load failed")}function i(t){we("mutationObserver","mutationObserver: "+t[0].target+" "+t[0].type),t.forEach(e)}var a=[],u=window.MutationObserver||window.WebKitMutationObserver,c=function(){var e=document.querySelector("body");return c=new u(i),oe("Create body MutationObserver"),c.observe(e,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),c}();return{disconnect:function(){"disconnect"in c&&(oe("Disconnect body MutationObserver"),c.disconnect(),a.forEach(t))}}}():(oe("MutationObserver not supported in this browser!"),me())):oe("Auto Resize disabled")}function me(){0!==v&&(oe("setInterval: "+v+"ms"),b=setInterval((function(){we("interval","setInterval: "+v)}),Math.abs(v)))}function he(e,t){var n=0;return t=t||document.body,n=null!==(n=document.defaultView.getComputedStyle(t,null))?n[e]:0,parseInt(n,10)}function ge(e,t){for(var n=t.length,r=0,o=0,i=ne(e),a=Date.now(),u=0;uo&&(o=r);return a=Date.now()-a,oe("Parsed "+n+" HTML elements"),oe("Element position calculated in "+a+"ms"),function(e){e>P/2&&oe("Event throttle increased to "+(P=2*e)+"ms")}(a),o}function ye(e){return[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll()]}function ve(e,t){var n=document.querySelectorAll("["+t+"]");return 0===n.length&&(ie("No tagged elements ("+t+") found on page"),document.querySelectorAll("body *")),ge(e,n)}function be(){return document.querySelectorAll("body *")}function Ee(e,n,r,o){var i,a;!function(){function e(e,t){return!(Math.abs(e-t)<=R)}return i=t!==r?r:Q[m](),a=t!==o?o:J[j](),e(d,i)||c&&e(L,a)}()&&"init"!==e?!(e in{init:1,interval:1,size:1})&&(m in _||c&&j in _)?Se(n):e in{interval:1}||oe("No change in size detected"):(Oe(),_e(d=i,L=a,e))}function we(e,t,n,r){x&&e in s?oe("Trigger event cancelled: "+e):(e in{reset:1,resetPage:1,init:1}||oe("Trigger event: "+t),"init"===e?Ee(e,t,n,r):Z(e,t,n,r))}function Oe(){x||(x=!0,oe("Trigger event lock on")),clearTimeout(C),C=setTimeout((function(){x=!1,oe("Trigger event lock off"),oe("--")}),l)}function Te(e){d=Q[m](),L=J[j](),_e(d,L,e)}function Se(e){var t=m;m=p,oe("Reset trigger event: "+e),Oe(),Te("reset"),m=t}function _e(e,n,r,o,i){var a;t===i?i=A:oe("Message targetOrigin: "+i),oe("Sending message to host page ("+(a=S+":"+e+":"+n+":"+r+(t!==o?":"+o:""))+")"),I.postMessage(O+a,i)}function Ne(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}}()},"../../node_modules/iframe-resizer/js/iframeResizer.js":(e,t)=>{var n,r,o;!function(i){if("undefined"!=typeof window){var a,u=0,c=!1,s=!1,l="message".length,f="[iFrameSizer]",d=f.length,p=null,m=window.requestAnimationFrame,h={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},g={},y=null,v={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){N("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}},b={};window.jQuery&&((a=window.jQuery).fn?a.fn.iFrameResize||(a.fn.iFrameResize=function(e){return this.filter("iframe").each((function(t,n){z(n,e)})).end()}):_("","Unable to bind to jQuery, it is not fully loaded.")),r=[],(o="function"==typeof(n=Y)?n.apply(t,r):n)===i||(e.exports=o),window.iFrameResize=window.iFrameResize||Y()}function E(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function w(e,t,n){e.addEventListener(t,n,!1)}function O(e,t,n){e.removeEventListener(t,n,!1)}function T(e){return g[e]?g[e].log:c}function S(e,t){I("log",e,t,T(e))}function _(e,t){I("info",e,t,T(e))}function N(e,t){I("warn",e,t,!0)}function I(e,t,n,r){!0===r&&"object"==typeof window.console&&console[e](function(e){return f+"["+function(e){var t="Host page: "+e;return window.top!==window.self&&(t=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),t}(e)+"]"}(t),n)}function A(e){function t(){n("Height"),n("Width"),D((function(){k(A),L(x),s("onResized",A)}),A,"init")}function n(e){var t=Number(g[x]["max"+e]),n=Number(g[x]["min"+e]),r=e.toLowerCase(),o=Number(A[r]);S(x,"Checking "+r+" is in range "+n+"-"+t),ot&&(o=t,S(x,"Set "+r+" to max value")),A[r]=""+o}function r(e){return I.substr(I.indexOf(":")+l+e)}function o(e,t){var n,r;n=function(){var n,r;H("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),r=A.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:r.height,iframeWidth:r.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(r.top-n.top,10),offsetLeft:parseInt(r.left-n.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,t)},b[r=t]||(b[r]=setTimeout((function(){b[r]=null,n()}),32))}function i(e){var t=e.getBoundingClientRect();return P(x),{x:Math.floor(Number(t.left)+Number(p.x)),y:Math.floor(Number(t.top)+Number(p.y))}}function a(e){var t=e?i(A.iframe):{x:0,y:0},n={x:Number(A.width)+t.x,y:Number(A.height)+t.y};S(x,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](n.x,n.y):N(x,"Unable to scroll to requested position, window.parentIFrame not found"):(p=n,u(),S(x,"--"))}function u(){!1!==s("onScroll",p)?L(x):M()}function c(e){var t={};if(0===Number(A.width)&&0===Number(A.height)){var n=r(9).split(":");t={x:n[1],y:n[0]}}else t={x:A.width,y:A.height};s(e,{iframe:A.iframe,screenX:Number(t.x),screenY:Number(t.y),type:A.type})}function s(e,t){return R(x,e,t)}var m,h,y,v,E,T,I=e.data,A={},x=null;"[iFrameResizerChild]Ready"===I?function(){for(var e in g)H("iFrame requested init",F(e),g[e].iframe,e)}():f===(""+I).substr(0,d)&&I.substr(d).split(":")[0]in g?(v=(y=I.substr(d).split(":"))[1]?parseInt(y[1],10):0,E=g[y[0]]&&g[y[0]].iframe,T=getComputedStyle(E),A={iframe:E,id:y[0],height:v+function(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}(T)+function(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}(T),width:y[2],type:y[3]},x=A.id,g[x]&&(g[x].loaded=!0),(h=A.type in{true:1,false:1,undefined:1})&&S(x,"Ignoring init message from meta parent page"),!h&&function(e){var t=!0;return g[e]||(t=!1,N(A.type+" No settings for "+e+". Message was: "+I)),t}(x)&&(S(x,"Received: "+I),m=!0,null===A.iframe&&(N(x,"IFrame ("+A.id+") not found"),m=!1),m&&function(){var t,n=e.origin,r=g[x]&&g[x].checkOrigin;if(r&&""+n!="null"&&!(r.constructor===Array?function(){var e=0,t=!1;for(S(x,"Checking connection is from allowed list of origins: "+r);eg[r]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),t("maxHeight"),t("minHeight"),t("maxWidth"),t("minWidth")}(),"number"!=typeof(g[r]&&g[r].bodyMargin)&&"0"!==(g[r]&&g[r].bodyMargin)||(g[r].bodyMarginV1=g[r].bodyMargin,g[r].bodyMargin=g[r].bodyMargin+"px"),function(t){var n=E();n&&function(t){e.parentNode&&new t((function(t){t.forEach((function(t){Array.prototype.slice.call(t.removedNodes).forEach((function(t){t===e&&C(e)}))}))})).observe(e.parentNode,{childList:!0})}(n),w(e,"load",(function(){var n,o;H("iFrame.onload",t,e,i,!0),n=g[r]&&g[r].firstRun,o=g[r]&&g[r].heightCalculationMethod in h,!n&&o&&j({iframe:e,height:0,width:0,type:"init"})})),H("init",t,e,i,!0)}(F(r)),g[r]&&(g[r].iframe.iFrameResizer={close:C.bind(null,g[r].iframe),removeListeners:x.bind(null,g[r].iframe),resize:H.bind(null,"Window resize","resize",g[r].iframe),moveToAnchor:function(e){H("Move to anchor","moveToAnchor:"+e,g[r].iframe,r)},sendMessage:function(e){H("Send Message","message:"+(e=JSON.stringify(e)),g[r].iframe,r)}}))}function U(e,t){null===y&&(y=setTimeout((function(){y=null,e()}),t))}function B(){"hidden"!==document.visibilityState&&(S("document","Trigger event: Visiblity change"),U((function(){W("Tab Visable","resize")}),16))}function W(e,t){Object.keys(g).forEach((function(n){(function(e){return g[e]&&"parent"===g[e].resizeFrom&&g[e].autoResize&&!g[e].firstRun})(n)&&H(e,t,g[n].iframe,n)}))}function Y(){function e(e,n){n&&(function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected