!function(){"use strict";conste=Object.getPrototypeOf,t=(e,t,r)=>{varn;return!!r(e,t.prototype)||(null===(n=e.constructor)||void0===n?void0:n.name)===t.name},r=e=>r=>(e=>{constr=typeofe;returnnull===e?"null":"object"===r&&Array.isArray(e)?"array":"object"===r&&t(e,String,((e,t)=>t.isPrototypeOf(e)))?"string":r})(r)===e,n=e=>t=>typeoft===e,o=r("string"),s=r("object"),i=r=>((r,n)=>s(r)&&t(r,n,((t,r)=>e(t)===r)))(r,Object),a=r("array"),l=n("boolean"),c=(void0,e=>undefined===e);constu=e=>!(e=>null==e)(e),h=n("function"),d=n("number");classp{constructor(e,t){this.tag=e,this.value=t}staticsome(e){returnnewp(!0,e)}staticnone(){returnp.singletonNone}fold(e,t){returnthis.tag?t(this.value):e()}isSome(){returnthis.tag}isNone(){return!this.tag}map(e){returnthis.tag?p.some(e(this.value)):p.none()}bind(e){returnthis.tag?e(this.value):p.none()}exists(e){returnthis.tag&&e(this.value)}forall(e){return!this.tag||e(this.value)}filter(e){return!this.tag||e(this.value)?this:p.none()}getOr(e){returnthis.tag?this.value:e}or(e){returnthis.tag?this:e}getOrThunk(e){returnthis.tag?this.value:e()}orThunk(e){returnthis.tag?this:e()}getOrDie(e){if(this.tag)returnthis.value;thrownewError(null!=e?e:"Called getOrDie on None")}staticfrom(e){returnu(e)?p.some(e):p.none()}getOrNull(){returnthis.tag?this.value:null}getOrUndefined(){returnthis.value}each(e){this.tag&&e(this.value)}toArray(){returnthis.tag?[this.value]:[]}toString(){returnthis.tag?`some(${this.value})`:"none()"}}p.singletonNone=newp(!1);constf=(e,t)=>((e,t,r)=>""===t||e.length>=t.length&&e.substr(0,0+t.length)===t)(e,t),m=e=>parseInt(e,10),g=(e,t)=>{constr=e-t;return0===r?0:r>0?1:-1},k=(e,t,r)=>({major:e,minor:t,patch:r}),y=e=>{constt=/([0-9]+)\.([0-9]+)\.([0-9]+)(?:(\-.+)?)/.exec(e);returnt?k(m(t[1]),m(t[2]),m(t[3])):k(0,0,0)},b=e=>t=>t.options.get(e),v=b("mediaembed_content_css"),S=b("mediaembed_max_width"),C=b("mediaembed_inline_styles"),w=b("mediaembed_service_url"),x=e=>{if(null==e)thrownewError("Node cannot be null or undefined");return{dom:e}},A=(e,t)=>{constr=(t||document).createElement(e);returnx(r)},T=x;"undefined"!=typeofwindow?window:Function("return this;")();constE=e=>1===(e=>e.dom.nodeType)(e),L=e=>t=>E(t)&&t.dom.nodeName.toLowerCase()===e,O=()=>{},_=e=>()=>e,I=e=>e,N=e=>e(),P=_(!1),j=_(!0),M=Array.prototype.slice,R=Array.prototype.indexOf,D=Array.prototype.push,B=(e,t)=>((e,t)=>R.call(e,t))(e,t)>-1,F=(e,t)=>{constr=e.length,n=newArray(r);for(leto=0;o<r;o++){constr=e[o];n[o]=t(r,o)}returnn},U=(e,t)=>{for(letr=0,n=e.length;r<n;r++)t(e[r],r)},V=(e,t)=>{constr=[];for(letn=0,o=e.length;n<o;n++){consto=e[n];t(o,n)&&r.push(o)}returnr},z=(e,t,r)=>(U(e,((e,n)=>{r=t(r,e,n)})),r),$=(e,t)=>((e,t,r)=>{for(letn=0,o=e.length;n<o;n++){consto=e[n];if(t(o,n))returnp.some(o);if(r(o,n))break}returnp.none()})(e,t,P),q=(e,t)=>(e=>{constt=[];for(letr=0,n=e.length;r<n;++r){if(!a(e[r]))thrownewError("Arr.flatten item "+r+" was not an array, input: "+e);D.apply(t,e[r])}returnt})(F(e,t)),J=h(Array.from)?Array.from:e=>M.call(e),W=(e,t)=>{constr=e.dom;if(1!==r.nodeType)return!1;{conste=r;if(void0!==e.matches)returne.matches(t);if(void0!==e.msMatchesSelector)returne.msMatchesSelector(t);if(void0!==e.webkitMatchesSelector)returne.webkitMatchesSelector(t);if(void0!==e.mozMatchesSelector)returne.mozMatchesSelector(t);thrownewError("Browser lacks native selectors")}},H=e=>p.from(e.dom.parentNode).map(T),G=e=>p.from(e.dom.nextSibling).map(T),K=e=>F(e.dom.childNodes,T),Q=e=>((e,t)=>{constr=e.dom.childNodes;returnp.from(r[0]).map(T)})(e),Y=Object.keys,X=Object.hasOwnProperty,Z=(e,t)=>{constr=Y(e);for(letn=0,o=r.length;n<o;n++){consto=r[n];t(e[o],o)}},ee=(e,t)=>te(e,t)?p.from(e[t]):p.none(),te=(e,t)=>X.call(e,t),re=(e,t,r)=>{((e,t,r)=>{if(!(o(r)||l(r)||d(r)))throwconsole.error("Invalid call to Attribute.set. Key ",t,":: Value ",r,":: Element ",e),newError("Attribute value was not simple");e.setAttribute(t,r+"")})(e.dom,t,r)},ne=(e,t,r)=>{if(!o(r))throwconsole.error("Invalid call to CSS.set. Property ",t,":: Value ",r,"::Element