/*! For license information please see bundle.js.LICENSE.txt */ !function(e){function t(t){for(var r,n,i=t[0],a=t[1],s=0,l=[];s0&&c>l&&(c=l);for(var u=0;u=0?(d=y.substr(0,h),f=y.substr(h+1)):(d=y,f=""),p=decodeURIComponent(d),m=decodeURIComponent(f),n(a,p)?o(a[p])?a[p].push(m):a[p]=[a[p],m]:a[p]=m}return a};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},15:function(e,t,r){"use strict";var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,r,s){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?i(a(e),(function(a){var s=encodeURIComponent(n(a))+r;return o(e[a])?i(e[a],(function(e){return s+encodeURIComponent(n(e))})).join(t):s+encodeURIComponent(n(e[a]))})).join(t):s?encodeURIComponent(n(s))+r+encodeURIComponent(n(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n1&&(r.params=n.parse(t[1])),r}function i(e){return n.parse(e.search.substring(1))}},65:function(e,t,r){"use strict";r.r(t);var n=r(29);r(69);async function o(...e){for(const t of e)try{await t}catch(e){console.error(e)}}r(66),r(67),r(68);const i=function(){if(!window.Modernizr)return console.error("Cannot check features - Modernizr global is missing."),!1;window.Modernizr.addTest("promiseprototypefinally",()=>window.Promise&&window.Promise.prototype&&"function"==typeof window.Promise.prototype.finally),window.Modernizr.addTest("objectfromentries",()=>window.Object&&"function"==typeof window.Object.fromEntries);const e=Object.keys(window.Modernizr);let t=!0;for(let r=0;r0)){const e=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,t=/Android/.test(navigator.userAgent);if((e||t)&&-1===document.cookie.indexOf("element_mobile_redirect_to_guide=false"))return void(window.location.href="mobile_guide/")}const y=a();t();const h=s();await o(h);const g=c(),v=u(),w=l();await o(w,v,g);let b=i;!b&&window.localStorage&&(b=Boolean(window.localStorage.getItem("mx_accepts_unsupported_browser"))),b||await new Promise(e=>{console.error("Browser is missing required features."),p(()=>{window.localStorage&&window.localStorage.setItem("mx_accepts_unsupported_browser",String(!0)),console.log("User accepts the compatibility risks."),e()})});try{await h}catch(e){return e.err&&e.err instanceof SyntaxError?f(m("Your Element is misconfigured"),[m("Your Element configuration contains invalid JSON. Please correct the problem and reload the page."),m("The message from the parser is: %(message)s",{message:e.err.message||m("Invalid JSON")})]):f(m("Unable to load config file: please refresh the page to try again."))}await y,await w,await v,await g,await d(r.params)}catch(e){console.error(e),await f(m("Your Element is misconfigured"),[e.translatedMessage||m("Unexpected error preparing the app. See console for details.")])}})().catch(e=>{console.error(e),delete document.body.style.height;const t=document.createElement("iframe");t.sandbox="",t.src=i?"static/unable-to-load.html":"static/incompatible-browser.html",t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.right="0",t.style.bottom="0",t.style.border="0",document.getElementById("matrixchat").appendChild(t)})},66:function(e,t,r){},67:function(e,t,r){},68:function(e,t,r){},69:function(e,t){!function(e,t,r,n){function o(e,t){return typeof e===t}function i(e){var t=S.className,r=w._config.classPrefix||"";if(O&&(t=t.baseVal),w._config.enableJSClass){var n=new RegExp("(^|\\s)"+r+"no-js(\\s|$)");t=t.replace(n,"$1"+r+"js$2")}w._config.enableClasses&&(e.length>0&&(t+=" "+r+e.join(" "+r)),O?S.className.baseVal=t:S.className=t)}function a(e,t){return!!~(""+e).indexOf(t)}function s(){return"function"!=typeof r.createElement?r.createElement(arguments[0]):O?r.createElementNS.call(r,"http://www.w3.org/2000/svg",arguments[0]):r.createElement.apply(r,arguments)}function l(e,t,n,o){var i,a,l,c,u="modernizr",d=s("div"),f=function(){var e=r.body;return e||((e=s(O?"svg":"body")).fake=!0),e}();if(parseInt(n,10))for(;n--;)(l=s("div")).id=o?o[n]:u+(n+1),d.appendChild(l);return(i=s("style")).type="text/css",i.id="s"+u,(f.fake?f:d).appendChild(i),f.appendChild(d),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(r.createTextNode(e)),d.id=u,f.fake&&(f.style.background="",f.style.overflow="hidden",c=S.style.overflow,S.style.overflow="hidden",S.appendChild(f)),a=t(d,e),f.fake?(f.parentNode.removeChild(f),S.style.overflow=c,S.offsetHeight):d.parentNode.removeChild(d),!!a}function c(e){return e.replace(/([A-Z])/g,(function(e,t){return"-"+t.toLowerCase()})).replace(/^ms-/,"-ms-")}function u(e,r){var o=e.length;if("CSS"in t&&"supports"in t.CSS){for(;o--;)if(t.CSS.supports(c(e[o]),r))return!0;return!1}if("CSSSupportsRule"in t){for(var i=[];o--;)i.push("("+c(e[o])+":"+r+")");return l("@supports ("+(i=i.join(" or "))+") { #modernizr { position: absolute; } }",(function(e){return"absolute"===function(e,r,n){var o;if("getComputedStyle"in t){o=getComputedStyle.call(t,e,r);var i=t.console;if(null!==o)n&&(o=o.getPropertyValue(n));else if(i){i[i.error?"error":"log"].call(i,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else o=!r&&e.currentStyle&&e.currentStyle[n];return o}(e,null,"position")}))}return n}function d(e){return e.replace(/([a-z])-([a-z])/g,(function(e,t,r){return t+r.toUpperCase()})).replace(/^-/,"")}function f(e,t,r,i){function l(){f&&(delete j.style,delete j.modElem)}if(i=!o(i,"undefined")&&i,!o(r,"undefined")){var c=u(e,r);if(!o(c,"undefined"))return c}for(var f,p,m,y,h,g=["modernizr","tspan","samp"];!j.style&&g.length;)f=!0,j.modElem=s(g.shift()),j.style=j.modElem.style;for(m=e.length,p=0;p9)})),w.addTest("flexbox",y("flexBasis","1px",!0));var k=function(e){var r,o=P.length,i=t.CSSRule;if(void 0===i)return n;if(!e)return!1;if((r=(e=e.replace(/^@/,"")).replace(/-/g,"_").toUpperCase()+"_RULE")in i)return"@"+e;for(var a=0;a