/*! For license information please see bundle.js.LICENSE.txt */ (()=>{var e={"../../node_modules/.pnpm/matrix-js-sdk@42.2.0/node_modules/matrix-js-sdk/src/logger.ts"(e,t,r){"use strict";r.d(t,{Tl:()=>a,k$:()=>l});var n=r("../../node_modules/.pnpm/@babel+runtime@8.0.0/node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=r("../../node_modules/.pnpm/loglevel@1.9.2/node_modules/loglevel/lib/loglevel.js"),i=r.n(o);i().methodFactory=function(e,t,r){return function(...t){this.prefix&&t.unshift(this.prefix);return"error"===e||"warn"===e||"trace"===e||"info"===e||"debug"===e?console[e](...t):console.log(...t)}};const s=function e(t){const r="matrix"+(void 0===t?"":`-${t}`),n=i().getLogger(r);return void 0===n.getChild&&(n.prefix=t,n.getChild=r=>{const o=e((null!=t?t:"")+r);return o.methodFactory=n.methodFactory,o.rebuild(),o},n.setLevel(i().levels.DEBUG,!1)),n}();class a{constructor(e,t){(0,n.A)(this,"name",void 0),this.parent=e,this.name=t+":"}trace(...e){this.parent.trace(this.name,...e)}debug(...e){this.parent.debug(this.name,...e)}info(...e){this.parent.info(this.name,...e)}warn(...e){this.parent.warn(this.name,...e)}error(...e){this.parent.error(this.name,...e)}}class l{constructor(e){this.debugInstance=e}trace(...e){this.debugWithPrefix("[TRACE]",...e)}debug(...e){this.debugWithPrefix("[DEBUG]",...e)}info(...e){this.debugWithPrefix("[INFO]",...e)}warn(...e){this.debugWithPrefix("[WARN]",...e)}error(...e){this.debugWithPrefix("[ERROR]",...e)}getChild(e){return new l(this.debugInstance.extend(e))}debugWithPrefix(e,...t){let r;if(0===t.length)r="";else if(t[0]instanceof Error){const e=t.shift();r=e.stack||e.message}else r="string"==typeof t[0]?t.shift():"%O";this.debugInstance(e+" "+r,...t)}}r.d(t,["vF",0,s])},"./src/vector/localstorage-fix.ts"(){window.localStorage&&Object.keys(window.localStorage).forEach(e=>{e.startsWith("loglevel:")&&window.localStorage.removeItem(e)})},"./src/vector/url_utils.ts"(e,t,r){"use strict";function n(e){const t=e.hash.substring(1),[r,n]=t.split("?",2);return r.includes("=")?{location:"",params:new URLSearchParams(r)}:{location:decodeURIComponent(r),params:n?new URLSearchParams(n):void 0}}function o(e){const t={};for(const r of e.keys()){const n=e.getAll(r);t[r]=1===n.length?n[0]:n}return t}r.d(t,{OW:()=>s,_u:()=>n,ko:()=>o});const i={legacy_sso:{keys:["loginToken"],location:"query"},oauth2:{keys:["code","state"],location:"fragment"},threepid:{keys:["client_secret","session_id","hs_url","is_url","sid"],location:"fragment"},defaults:{keys:["defaultUsername"],location:"fragment"},guest:{keys:["guest_user_id","guest_access_token"],location:"fragment"}};function s(e){const t=new URLSearchParams(e.search),r=n(e),o={};for(const e in i){const n=e,s=i[n],a="fragment"===s.location?r.params:t;if(!a)continue;const l={};for(const e of s.keys){const t=a.get(e);null!==t&&(l[e]=t)}Object.keys(l).length>0&&(o[n]=l)}return{params:o,location:r.location}}},"../../node_modules/.pnpm/katex@0.18.1/node_modules/katex/dist/katex.css"(e,t,r){"use strict";r.r(t)},"../../node_modules/.pnpm/loglevel@1.9.2/node_modules/loglevel/lib/loglevel.js"(e,t,r){var n,o;!function(){"use strict";n=function(){var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],o={},i=null;function s(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function l(n){return"debug"===n&&(n="log"),typeof console!==t&&("trace"===n&&r?a:void 0!==console[n]?s(console,n):void 0!==console.log?s(console,"log"):e)}function c(){for(var r=this.getLevel(),o=0;o=0&&t<=d.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?f+=":"+e:"symbol"==typeof e&&(f=void 0),d.name=e,d.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},d.methodFactory=r||u,d.getLevel=function(){return null!=l?l:null!=a?a:s},d.setLevel=function(e,t){return l=h(e),!1!==t&&p(l),c.call(d)},d.setDefaultLevel=function(e){a=h(e),m()||d.setLevel(e,!1)},d.resetLevel=function(){l=null,g(),c.call(d)},d.enableAll=function(e){d.setLevel(d.levels.TRACE,e)},d.disableAll=function(e){d.setLevel(d.levels.SILENT,e)},d.rebuild=function(){if(i!==d&&(s=h(i.getLevel())),c.call(d),i===d)for(var e in o)o[e].rebuild()},s=h(i?i.getLevel():"WARN");var y=m();null!=y&&(l=h(y)),c.call(d)}(i=new f).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=o[e];return t||(t=o[e]=new f(e,i.methodFactory)),t};var p=typeof window!==t?window.log:void 0;return i.noConflict=function(){return typeof window!==t&&window.log===i&&(window.log=p),i},i.getLoggers=function(){return o},i.default=i,i},void 0===(o="function"==typeof n?n.call(t,r,t,e):n)||(e.exports=o)}()},"./src/vector/modernizr.cjs"(){!function(e,t,r,n){var o=[],i={_version:"3.13.1",_config:{classPrefix:"",enableClasses:!1,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var r=this;setTimeout(function(){t(r[e])},0)},addTest:function(e,t,r){o.push({name:e,fn:t,options:r})},addAsyncTest:function(e){o.push({name:null,fn:e})}},s=function(){};s.prototype=i,s=new s;var a=[];function l(e,t){return typeof e===t}var c="Moz O ms Webkit",d=i._config.usePrefixes?c.split(" "):[];function u(e,t){return!!~(""+e).indexOf(t)}i._cssomPrefixes=d;var f=r.documentElement,p="svg"===f.nodeName.toLowerCase();function m(){return"function"!=typeof r.createElement?r.createElement(arguments[0]):p?r.createElementNS.call(r,"http://www.w3.org/2000/svg",arguments[0]):r.createElement.apply(r,arguments)}var g={elem:m("modernizr")};s._q.push(function(){delete g.elem});var h={style:g.elem.style};function y(e,t,n,o){var i,s,a,l,c="modernizr",d=m("div"),u=function(){var e=r.body;return e||((e=m(p?"svg":"body")).fake=!0),e}();if(parseInt(n,10))for(;n--;)(a=m("div")).id=o?o[n]:c+(n+1),d.appendChild(a);return(i=m("style")).type="text/css",i.id="s"+c,(u.fake?u:d).appendChild(i),u.appendChild(d),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(r.createTextNode(e)),d.id=c,u.fake&&(u.style.background="",u.style.overflow="hidden",l=f.style.overflow,f.style.overflow="hidden",f.appendChild(u)),s=t(d,e),u.fake&&u.parentNode?(u.parentNode.removeChild(u),f.style.overflow=l,f.offsetHeight):d.parentNode.removeChild(d),!!s}function v(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function w(e,r){var o=e.length;if("CSS"in t&&"supports"in t.CSS){for(;o--;)if(t.CSS.supports(v(e[o]),r))return!0;return!1}if("CSSSupportsRule"in t){for(var i=[];o--;)i.push("("+v(e[o])+":"+r+")");return y("@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;null!==o?n&&(o=o.getPropertyValue(n)):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 b(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,r){return t+r.toUpperCase()}).replace(/^-/,"")}s._q.unshift(function(){delete h.style});var S=i._config.usePrefixes?c.toLowerCase().split(" "):[];function _(e,t){return function(){return e.apply(t,arguments)}}function x(e,t,r,o,i){var s=e.charAt(0).toUpperCase()+e.slice(1),a=(e+" "+d.join(s+" ")+s).split(" ");return l(t,"string")||l(t,"undefined")?function(e,t,r,o){if(o=!l(o,"undefined")&&o,!l(r,"undefined")){var i=w(e,r);if(!l(i,"undefined"))return i}for(var s,a,c,d,f,p=["modernizr","tspan","samp"];!h.style&&p.length;)s=!0,h.modElem=m(p.shift()),h.style=h.modElem.style;function g(){s&&(delete h.style,delete h.modElem)}for(c=e.length,a=0;a9)}),s.addTest("flexbox",T("flexBasis","1px",!0));var O=function(e){var r,o=C.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 s=0;s0&&(t+=" "+r+e.join(" "+r)),p?f.className.baseVal=t:f.className=t)}([(t&&!1!==t?"":"no-")+n.join("-")]),s._trigger(e,t)}return s}s.addTest("objectfit",!!A("objectFit"),{aliases:["object-fit"]}),s.addTest("es5date",function(){var e=!1;try{e=!!Date.parse("2013-04-12T06:06:37.307Z")}catch(e){}return!!(Date.now&&Date.prototype&&Date.prototype.toISOString&&Date.prototype.toJSON&&e)}),s.addTest("es5function",function(){return!(!Function.prototype||!Function.prototype.bind)}),s.addTest("es5object",function(){return!!(Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions)}),s.addTest("es5undefined",function(){var e,r;try{r=t.undefined,t.undefined=12345,e=void 0===t.undefined,t.undefined=r}catch(e){return!1}return e}),s.addTest("es6array",!!(Array.prototype&&Array.prototype.copyWithin&&Array.prototype.fill&&Array.prototype.find&&Array.prototype.findIndex&&Array.prototype.keys&&Array.prototype.entries&&Array.prototype.values&&Array.from&&Array.of)),s.addTest("es6collections",!!(t.Map&&t.Set&&t.WeakMap&&t.WeakSet)),s.addTest("promises",function(){return"Promise"in t&&"resolve"in t.Promise&&"reject"in t.Promise&&"all"in t.Promise&&"race"in t.Promise&&(new t.Promise(function(t){e=t}),"function"==typeof e);var e}),s.addTest("es6string",!!(String.fromCodePoint&&String.raw&&String.prototype.codePointAt&&String.prototype.repeat&&String.prototype.startsWith&&String.prototype.endsWith&&String.prototype.includes)),s.addTest("svg",!!r.createElementNS&&!!r.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect),E=l(k={}.hasOwnProperty,"undefined")||l(k.call,"undefined")?function(e,t){return t in e&&l(e.constructor.prototype[t],"undefined")}:function(e,t){return k.call(e,t)},i._l={},i.on=function(e,t){this._l[e]||(this._l[e]=[]),this._l[e].push(t),s.hasOwnProperty(e)&&setTimeout(function(){s._trigger(e,s[e])},0)},i._trigger=function(e,t){if(this._l[e]){var r=this._l[e];setTimeout(function(){var e;for(e=0;ei})}};const t={};function r(n){const o=t[n];if(void 0!==o)return o.exports;const i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}var n;r.m=e,r.amdD=function(){throw new Error("define cannot be used indirect")},r.amdO={},r.H={},r.G=e=>{Object.keys(r.H).map(t=>{r.H[t](e)})},r.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},(()=>{const e=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;let t;r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}const i=Object.create(null);r.r(i);const s={};t=t||[null,e({}),e([]),e(e)];for(var a=2&o&&n;("object"==typeof a||"function"==typeof a)&&!~t.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(e=>s[e]=()=>n[e]);return s.default=()=>n,r.d(i,s),i}})(),r.d=(e,t)=>{if(Array.isArray(t))for(var n=0;nPromise.all(Object.keys(r.f).reduce((t,n)=>(r.f[n](e,t),t),[])),r.u=e=>"bundles/"+r.h()+"/"+({1869:"styles",2585:"intl-segmenter-polyfill",2702:"element-web-app",3304:"playback.worker",3444:"indexeddb.worker",4980:"blurhash.worker",5385:"init",5607:"error-view"}[e]||e)+".js",r.miniCssF=e=>"bundles/"+r.h()+"/"+{1869:"styles",5607:"error-view"}[e]+".css",r.h=()=>"b7d8f5e92c07235c7aa2",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{const e={},t="element-web:";r.l=(n,o,i,s)=>{if(e[n])return void e[n].push(o);let a,l;if(void 0!==i){const e=document.getElementsByTagName("script");for(var c=0;c{a.onerror=a.onload=null,clearTimeout(u);const o=e[n];if(delete e[n],a.parentNode?.removeChild(a),o?.forEach(e=>e(r)),t)return t(r)},u=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),l&&document.head.appendChild(a)}})(),r.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.dn=e=>{var t=Object.getOwnPropertyDescriptor(e,"name");(!t||!t.writable&&t.configurable)&&Object.defineProperty(e,"name",{value:"default",configurable:!0})},r.v=(e,t,n,o)=>{var i=fetch(r.p+"bundles/"+r.h()+"/"+n+".wasm"),s=()=>i.then(e=>e.arrayBuffer()).then(e=>WebAssembly.instantiate(e,o)).then(t=>Object.assign(e,t.instance.exports));return i.then(t=>"function"==typeof WebAssembly.instantiateStreaming?WebAssembly.instantiateStreaming(t,o).then(t=>Object.assign(e,t.instance.exports),e=>{if("application/wasm"!==t.headers.get("Content-Type"))return console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",e),s();throw e}):s())},r.cjs=e=>{const t={exports:{}};return e.call(t.exports,t,t.exports),t.exports},(()=>{let e;r.g.importScripts&&(e=r.g.location+"");const t=r.g.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const r=t.getElementsByTagName("script");if(r.length){let t=r.length-1;for(;t>-1&&(!e||!/^http(s?):/.test(e));)e=r[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e+"../../"})(),(()=>{if(void 0!==r){var e=r.u,t=r.e,n={},o={};r.u=function(t){return e(t)+(n.hasOwnProperty(t)?"?"+n[t]:"")},r.e=function(i){return t(i).catch(function(t){var s=o.hasOwnProperty(i)?o[i]:3;if(s<1){var a=e(i);throw t.message="Loading chunk "+i+" failed after 3 retries.\n("+a+")",t.request=a,t}return new Promise(function(e){setTimeout(function(){var t=Date.now();n[i]=t,o[i]=s-1,e(r.e(i))},500)})})}}})(),(()=>{if("undefined"!=typeof document){var e=e=>new Promise((t,n)=>{var o=r.miniCssF(e),i=r.p+o;if(((e,t)=>{for(var r=document.getElementsByTagName("link"),n=0;n{var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",r.nc&&(s.nonce=r.nc),s.onerror=s.onload=r=>{if(s.onerror=s.onload=null,"load"===r.type)o();else{var n=r&&r.type,a=r&&r.target&&r.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+n+": "+a+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=n,l.request=a,s.parentNode&&s.parentNode.removeChild(s),i(l)}},s.href=t,n?n.parentNode.insertBefore(s,n.nextSibling):document.head.appendChild(s)})(e,i,null,t,n)}),t={3023:0};r.f.miniCss=(r,n)=>{t[r]?n.push(t[r]):0!==t[r]&&{1869:1,5607:1}[r]&&n.push(t[r]=e(r).then(()=>{t[r]=0},e=>{throw delete t[r],e}))},r.H.miniCss=e=>{if((!r.o(t,e)||void 0===t[e])&&/^(1869|3023|5607)$/.test(e)){t[e]=null;var n=document.createElement("link");n.charset="utf-8",r.nc&&n.setAttribute("nonce",r.nc),n.rel="preload",n.as="style",n.href=r.p+r.miniCssF(e),document.head.appendChild(n)}}}})(),(()=>{r.b="undefined"!=typeof document&&document.baseURI||self.location.href;const e={3023:0};r.f.j=(t,n)=>{let o=r.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{const i=new Promise((r,n)=>o=e[t]=[r,n]);n.push(o[2]=i);const s=r.p+r.u(t),a=new Error,l=n=>{if(r.o(e,t)&&(o=e[t],0!==o&&(e[t]=void 0),o)){const e=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+e+": "+r+")",a.name="ChunkLoadError",a.type=e,a.request=r,a.event=n,o[1](a)}};r.l(s,l,"chunk-"+t,t)}},r.H.j=t=>{if(!r.o(e,t)||void 0===e[t]){e[t]=null;const n=document.createElement("link");n.charset="utf-8",r.nc&&n.setAttribute("nonce",r.nc),n.rel="preload",n.as="script",n.href=r.p+r.u(t),document.head.appendChild(n)}};const t=(t,n)=>{let[o,i,s]=n;var a,l,c=0;if(o.some(t=>0!==e[t])){for(a in i)r.o(i,a)&&(r.m[a]=i[a]);if(s)s(r)}for(t&&t(n);c{var t=n[e];Array.isArray(t)&&t.map(r.G)},(()=>{"use strict";var e=r("../../node_modules/.pnpm/matrix-js-sdk@42.2.0/node_modules/matrix-js-sdk/src/logger.ts");var t=r("./src/vector/url_utils.ts");r("./src/vector/modernizr.cjs");async function n(...t){for(const r of t)try{await r}catch(t){e.vF.error(t)}}r("../../node_modules/.pnpm/katex@0.18.1/node_modules/katex/dist/katex.css"),r("./src/vector/localstorage-fix.ts"),window.TouchEvent||(window.TouchEvent=class extends UIEvent{get altKey(){return!1}get changedTouches(){return[]}get ctrlKey(){return!1}get metaKey(){return!1}get shiftKey(){return!1}get targetTouches(){return[]}get touches(){return[]}get rotation(){return 0}get scale(){return 0}constructor(e,t){super(e,t)}});const o=function(){if(!window.Modernizr)return e.vF.error("Cannot check features - Modernizr global is missing."),!1;window.Modernizr.addTest("promiseprototypefinally",()=>{var e;return"function"==typeof(null===(e=window.Promise)||void 0===e||null===(e=e.prototype)||void 0===e?void 0:e.finally)}),window.Modernizr.addTest("promiseallsettled",()=>{var e;return"function"==typeof(null===(e=window.Promise)||void 0===e?void 0:e.allSettled)}),window.Modernizr.addTest("promisewithresolvers",()=>{var e;return"function"==typeof(null===(e=window.Promise)||void 0===e?void 0:e.withResolvers)}),window.Modernizr.addTest("regexpdotall",()=>{var e,t;return(null===(e=window.RegExp)||void 0===e?void 0:e.prototype)&&!(null===(t=Object.getOwnPropertyDescriptor(window.RegExp.prototype,"dotAll"))||void 0===t||!t.get)}),window.Modernizr.addTest("objectfromentries",()=>{var e;return"function"==typeof(null===(e=window.Object)||void 0===e?void 0:e.fromEntries)}),window.Modernizr.addTest("intlsegmenter",()=>{var e;return"function"==typeof(null===(e=window.Intl)||void 0===e?void 0:e.Segmenter)}),window.Modernizr.addTest("wasm",()=>"object"==typeof WebAssembly&&"function"==typeof WebAssembly.Module),window.Modernizr.addTest("securecontext",()=>window.isSecureContext);const t=Object.keys(window.Modernizr);let r=!0;for(const n of t){if(void 0===window.Modernizr[n])return e.vF.error("Looked for feature '%s' but Modernizr has no results for this. Has it been configured correctly?",n),!1;!1===window.Modernizr[n]&&(e.vF.error("Browser missing feature: '%s'",n),r=!1)}return r}();(async function(){"undefined"!=typeof Intl&&Intl.Segmenter||await r.e(2585).then(r.bind(r,"../../node_modules/.pnpm/@formatjs+intl-segmenter@12.2.13/node_modules/@formatjs/intl-segmenter/polyfill-force.js"));const{rageshakePromise:i,setupLogStorage:s,preparePlatform:a,loadConfig:l,loadLanguage:c,loadTheme:d,loadApp:u,loadModules:f,loadPlugins:p,showError:m,showIncompatibleBrowser:g,_t:h,extractErrorMessageFromError:y}=await Promise.all([r.e(383),r.e(225),r.e(1869),r.e(2525),r.e(5385)]).then(r.bind(r,"./src/vector/init.tsx"));try{await n(i);const r=(0,t.OW)(window.location);if(!(!!r.params.threepid||r.location.length>0)){const e=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,t=/Android/.test(navigator.userAgent);if((e||t)&&"true"!==sessionStorage.getItem("skip_mobile_redirect"))return void(window.location.href="mobile_guide/")}a();const y=l();await n(y);const v=s(),w=c(),b=d();await n(b,w);const S=f();await n(S);const _=p();await n(_);let x=o;!x&&window.localStorage&&(x=Boolean(window.localStorage.getItem("mx_accepts_unsupported_browser"))),x||await new Promise((t,r)=>{e.vF.error("Browser is missing required features."),g(()=>{window.localStorage&&window.localStorage.setItem("mx_accepts_unsupported_browser",String(!0)),e.vF.log("User accepts the compatibility risks."),t()}).catch(r)});try{await y}catch(e){return e instanceof SyntaxError?m(h("error|misconfigured"),[h("error|invalid_json"),h("error|invalid_json_detail",{message:e.message||h("error|invalid_json_generic")})]):m(h("error|cannot_load_config"))}await _,await S,await b,await w,await n(v),await u(r.params)}catch(t){e.vF.error(t),await m(h("error|misconfigured"),[y(t,h("error|app_launch_unexpected_error"))])}})().catch(t=>{var r;e.vF.error(t),document.body.style.removeProperty("height");const n=document.createElement("iframe");n.sandbox="",n.src=o?"static/unable-to-load.html":"static/incompatible-browser.html",n.style.width="100%",n.style.height="100%",n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.right="0",n.style.bottom="0",n.style.border="0",null===(r=document.getElementById("matrixchat"))||void 0===r||r.appendChild(n)})})()})(); //# sourceMappingURL=bundle.js.map