/*! For license information please see bundle.js.LICENSE.txt */ (()=>{var e,t,r,n,o,i,s={"./node_modules/@babel/runtime/helpers/esm/defineProperty.js":(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r("./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js");function o(e,t,r){return(t=(0,n.A)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},"./node_modules/@babel/runtime/helpers/esm/toPrimitive.js":(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r("./node_modules/@babel/runtime/helpers/esm/typeof.js");function o(e,t){if("object"!=(0,n.A)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=(0,n.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},"./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js":(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r("./node_modules/@babel/runtime/helpers/esm/typeof.js"),o=r("./node_modules/@babel/runtime/helpers/esm/toPrimitive.js");function i(e){var t=(0,o.A)(e,"string");return"symbol"==(0,n.A)(t)?t:t+""}},"./node_modules/@babel/runtime/helpers/esm/typeof.js":(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{A:()=>n})},"./node_modules/@formatjs/intl-segmenter/should-polyfill.js":(e,t)=>{"use strict";t.Z=function(){return!Intl.Segmenter}},"./node_modules/katex/dist/katex.css":(e,t,r)=>{"use strict";r.r(t)},"./node_modules/loglevel/lib/loglevel.js":function(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 u(){for(var r=this.getLevel(),o=0;o=0&&t<=c.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),c.name=e,c.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},c.methodFactory=r||d,c.getLevel=function(){return null!=l?l:null!=a?a:s},c.setLevel=function(e,t){return l=y(e),!1!==t&&p(l),u.call(c)},c.setDefaultLevel=function(e){a=y(e),m()||c.setLevel(e,!1)},c.resetLevel=function(){l=null,h(),u.call(c)},c.enableAll=function(e){c.setLevel(c.levels.TRACE,e)},c.disableAll=function(e){c.setLevel(c.levels.SILENT,e)},c.rebuild=function(){if(i!==c&&(s=y(i.getLevel())),u.call(c),i===c)for(var e in o)o[e].rebuild()},s=y(i?i.getLevel():"WARN");var g=m();null!=g&&(l=y(g)),u.call(c)}(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)}()},"./node_modules/matrix-js-sdk/src/@types/location.ts":(e,t,r)=>{"use strict";r.d(t,{J1:()=>i,M6:()=>a,Yg:()=>o,vo:()=>s});var n=r("./node_modules/matrix-js-sdk/src/NamespacedValue.ts");let o=function(e){return e.Self="m.self",e.Pin="m.pin",e}({});const i=new n.qr("m.asset","org.matrix.msc3488.asset"),s=new n.qr("m.ts","org.matrix.msc3488.ts"),a=new n.qr("m.location","org.matrix.msc3488.location")},"./node_modules/matrix-js-sdk/src/@types/read_receipts.ts":(e,t,r)=>{"use strict";r.d(t,{L:()=>n,S:()=>o});let n=function(e){return e.Read="m.read",e.FullyRead="m.fully_read",e.ReadPrivate="m.read.private",e}({});const o="main"},"./node_modules/matrix-js-sdk/src/NamespacedValue.ts":(e,t,r)=>{"use strict";r.d(t,{M6:()=>i,qr:()=>s,xu:()=>o});var n=r("./node_modules/@babel/runtime/helpers/esm/defineProperty.js");class o{constructor(e,t){if(this.stable=e,this.unstable=t,!this.unstable&&!this.stable)throw new Error("One of stable or unstable values must be supplied")}get name(){return this.stable?this.stable:this.unstable}get altName(){return this.stable?this.unstable:null}get names(){const e=[this.name],t=this.altName;return t&&e.push(t),e}matches(e){return this.name===e||this.altName===e}findIn(e){let t;return this.name&&(t=null==e?void 0:e[this.name]),!t&&this.altName&&(t=null==e?void 0:e[this.altName]),t}includedIn(e){let t=!1;return this.name&&(t=e.includes(this.name)),!t&&this.altName&&(t=e.includes(this.altName)),t}}class i extends o{constructor(...e){super(...e),(0,n.A)(this,"preferUnstable",!1)}setPreferUnstable(e){this.preferUnstable=e}get name(){return this.stable&&!this.preferUnstable?this.stable:this.unstable}}class s extends o{constructor(e,t){if(super(e,t),!this.unstable)throw new Error("Unstable value must be supplied")}get name(){return this.unstable}get altName(){return this.stable}}},"./node_modules/matrix-js-sdk/src/logger.ts":(e,t,r)=>{"use strict";r.d(t,{Tl:()=>a,k$:()=>l,vF:()=>s});var n=r("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=r("./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)}}},"./node_modules/matrix-js-sdk/src/utils.ts":(e,t,r)=>{"use strict";r.d(t,{$9:()=>$,A4:()=>b,Ab:()=>m,Bi:()=>G,C6:()=>Q,CC:()=>F,Et:()=>_,Fq:()=>H,G$:()=>k,Gp:()=>S,HF:()=>Z,Mf:()=>M,NQ:()=>N,Nt:()=>T,Ny:()=>h,Nz:()=>g,O5:()=>ee,RR:()=>y,S8:()=>O,UB:()=>w,YY:()=>K,_4:()=>B,aw:()=>q,c7:()=>U,d7:()=>j,d8:()=>L,dn:()=>P,hX:()=>I,hc:()=>A,hl:()=>x,hm:()=>p,j0:()=>R,kG:()=>te,kg:()=>Y,ky:()=>v,ll:()=>J,sy:()=>D,tf:()=>z,yD:()=>f,yy:()=>C,zR:()=>W});var n=r("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=r("./node_modules/unhomoglyph/index.js"),i=r.n(o),s=r("./node_modules/p-retry/index.js"),a=r("./node_modules/matrix-js-sdk/src/@types/location.ts"),l=r("./node_modules/matrix-js-sdk/src/@types/read_receipts.ts");function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t{r.append(t,String(e))}):r.append(t,String(n)));return r}function m(e,t,r){const n=c(c({},r),{},{[t]:r[e]});return delete n[e],n}function h(e){const t={},r=new URLSearchParams(e);for(const e of r.keys()){const n=r.getAll(e);t[e]=1===n.length?n[0]:n}return t}function y(e,t){for(const r in t){if(!t.hasOwnProperty(r))continue;const n=t[r];null!=n&&(e=e.replace(r,encodeURIComponent(n)))}return e}function g(e,t,r){let n;if(r){for(n=e.length-1;n>=0;n--)if(t(e[n],n,e))return e.splice(n,1),!0}else for(n=0;nq(e[0],t[0])),t}function _(e){return"number"==typeof e&&isFinite(e)}function S(e){return"string"==typeof e?i()(e.normalize("NFD").replace(E,"")):""}function j(e){return"string"==typeof e?e.replace(/[\u202d-\u202e]/g,""):""}function O(e){return S(e.toLowerCase()).replace(/[\\'!"#$%&()*+,\-./:;<=>?@[\]^_`{|}~\u2000-\u206f\u2e00-\u2e7f]/g,"").toLowerCase()}const E=/[\u2000-\u200F\u202A-\u202F\u0300-\u036F\uFEFF\u061C\u2800\u2062-\u2063\s]/g;function T(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function P(e){return T(e).replace(/\\\*/g,".*").replace(/\?/g,".")}function A(e){return null!=e&&e.endsWith("/")?e.slice(0,-1):e}function C(e,t){return new Promise(r=>{setTimeout(r,e,t)})}async function N(e,t,r){const n=Date.now();try{return await r()}finally{const r=Date.now();e.debug(`[Perf]: ${t} took ${r-n}ms`)}}function k(e,t,r){const n=Date.now();try{return r()}finally{const r=Date.now();e.debug(`[Perf]: ${t} took ${r-n}ms`)}}function I(e){return null==e}async function L(e,t){for(const r of e)await t(await r)}function R(e){return Promise.resolve(e())}function F(e,t){return(0,s.Ay)(t=>e(t),{retries:1/0,shouldRetry:t?({error:e})=>t(e):void 0,factor:2,minTimeout:3e3,maxTimeout:15e3})}const M=(()=>{let e="";for(let t=32;t<=126;t++)e+=String.fromCharCode(t);return e})();function z(e,t,r=M){return e.padEnd(t,r[0])}function U(e,t=M){const r=BigInt(t.length);var n;if(e<=r)return null!==(n=t[Number(e)-1])&&void 0!==n?n:"";let o=e/r,i=Number(e%r)-1;return i<0&&(o-=BigInt(Math.abs(i)),i=Number(r)-1),U(o,t)+t[i]}function B(e,t=M){const r=BigInt(t.length);let n=BigInt(0);for(let o=e.length-1,i=BigInt(0);o>=0;o--,i++){const s=e.charCodeAt(o)-t.charCodeAt(0);n+=BigInt(1+s)*r**i}return n}function D(e,t,r=M){const n=Math.max(e.length,t.length),o=B(z(e,n,r),r),i=B(z(t,n,r),r),s=(o+i)/BigInt(2);return s===o||s==i?U(s,r)+r[0]:U(s,r)}function $(e,t=M){return U(B(e,t)+BigInt(1),t)}function W(e,t=M){return U(B(e,t)-BigInt(1),t)}function q(e,t){return et?1:0}function G(e,t,r=!1){for(const[n,o]of Object.entries(t))e[n]instanceof Object&&o?G(e[n],o):null==o&&r||Q(e,n,o);return e}function V(e){var t;return null!==(t=a.vo.findIn(e.getContent()))&&void 0!==t?t:-1}function H(e,t){return V(t)-V(e)}function J(e){return[l.L.Read,l.L.ReadPrivate].includes(e)}function Y(e,t,r=(e,t)=>e===t){if(e.size!==t.size)return!1;for(const[n,o]of e){const e=t.get(n);if(void 0===e||!r(o,e))return!1}return!0}function X(e){return e instanceof Map?Z(e):Array.isArray(e)?e.map(e=>X(e)):e}function Z(e){const t=new Map;for(const[r,n]of e)t.set(r,X(n));return Object.fromEntries(t.entries())}function K(e){return"__proto__"===e||"prototype"===e||"constructor"===e}function Q(e,t,r){if(K(t))throw new Error("Trying to modify prototype or constructor");e[t]=r}function ee(e){return!(K(e.room_id)||K(e.sender)||K(e.event_id))}class te extends Map{constructor(e){super(),this.createDefault=e}getOrCreate(e){return this.has(e)||this.set(e,this.createDefault()),this.get(e)}}},"./node_modules/p-retry/index.js":(e,t,r)=>{"use strict";r.d(t,{lc:()=>a,Ay:()=>c});const n=Object.prototype.toString,o=e=>"[object Error]"===n.call(e),i=new Set(["network error","Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed","fetch failed","terminated"," A network error occurred.","Network connection lost"]);function s(e,t,{min:r=0,allowInfinity:n=!1}={}){if(void 0!==t){if("number"!=typeof t||Number.isNaN(t))throw new TypeError(`Expected \`${e}\` to be a number${n?" or Infinity":""}.`);if(!n&&!Number.isFinite(t))throw new TypeError(`Expected \`${e}\` to be a finite number.`);if(t{const n=r.retries-(t-1);return Object.freeze({error:e,attemptNumber:t,retriesLeft:n})};async function u(e,t,r,n,s){let u=e;if(u instanceof Error||(u=new TypeError(`Non-error was thrown: "${u}". You should only throw errors.`)),u instanceof a)throw u.originalError;if(u instanceof TypeError&&!function(e){if(!e||!o(e)||"TypeError"!==e.name||"string"!=typeof e.message)return!1;const{message:t,stack:r}=e;return"Load failed"===t?void 0===r||"__sentry_captured__"in e:!!t.startsWith("error sending request for url")||i.has(t)}(u))throw u;const c=l(u,t,r);await r.onFailedAttempt(c);const d=Date.now();if(d-n>=s||t>=r.retries+1||!await r.shouldRetry(c))throw u;const f=function(e,t){const r=t.randomize?Math.random()+1:1;let n=Math.round(r*Math.max(t.minTimeout,1)*t.factor**(e-1));return n=Math.min(n,t.maxTimeout),n}(t,r),p=s-(d-n);if(p<=0)throw u;const m=Math.min(f,p);m>0&&await new Promise((e,t)=>{const n=()=>{clearTimeout(o),r.signal?.removeEventListener("abort",n),t(r.signal.reason)},o=setTimeout(()=>{r.signal?.removeEventListener("abort",n),e()},m);r.unref&&o.unref?.(),r.signal?.addEventListener("abort",n,{once:!0})}),r.signal?.throwIfAborted()}async function c(e,t={}){if(function(e){if("number"==typeof e){if(e<0)throw new TypeError("Expected `retries` to be a non-negative number.");if(Number.isNaN(e))throw new TypeError("Expected `retries` to be a valid number or Infinity, got NaN.")}else if(void 0!==e)throw new TypeError("Expected `retries` to be a number or Infinity.")}((t={...t}).retries),Object.hasOwn(t,"forever"))throw new Error("The `forever` option is no longer supported. For many use-cases, you can set `retries: Infinity` instead.");t.retries??=10,t.factor??=2,t.minTimeout??=1e3,t.maxTimeout??=Number.POSITIVE_INFINITY,t.randomize??=!1,t.onFailedAttempt??=()=>{},t.shouldRetry??=()=>!0,s("factor",t.factor,{min:0,allowInfinity:!1}),s("minTimeout",t.minTimeout,{min:0,allowInfinity:!1}),s("maxTimeout",t.maxTimeout,{min:0,allowInfinity:!0});const r=t.maxRetryTime??Number.POSITIVE_INFINITY;s("maxRetryTime",r,{min:0,allowInfinity:!0}),t.factor>0||(t.factor=1),t.signal?.throwIfAborted();let n=0;const o=Date.now(),i=r;for(;n{"use strict";var n=r("./node_modules/unhomoglyph/data.json");var o=RegExp(Object.keys(n).map(function(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}).join("|"),"g");function i(e){return n[e]}e.exports=function(e){return e.replace(o,i)}},"./src/vector/index.ts":(e,t,r)=>{"use strict";var n=r("./node_modules/matrix-js-sdk/src/logger.ts"),o=r("./node_modules/@formatjs/intl-segmenter/should-polyfill.js"),i=r("./src/vector/url_utils.ts");r("./src/vector/modernizr.js");async function s(...e){for(const t of e)try{await t}catch(e){n.vF.error(e)}}r("./node_modules/katex/dist/katex.css"),r("./src/vector/localstorage-fix.ts");const a=function(){if(!window.Modernizr)return n.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 e=Object.keys(window.Modernizr);let t=!0;for(const r of e){if(void 0===window.Modernizr[r])return n.vF.error("Looked for feature '%s' but Modernizr has no results for this. Has it been configured correctly?",r),!1;!1===window.Modernizr[r]&&(n.vF.error("Browser missing feature: '%s'",r),t=!1)}return t}();(async function(){(0,o.Z)()&&await r.e(2585).then(r.bind(r,"./node_modules/@formatjs/intl-segmenter/polyfill-force.js"));const{rageshakePromise:e,setupLogStorage:t,preparePlatform:l,loadConfig:u,loadLanguage:c,loadTheme:d,loadApp:f,loadModules:p,loadPlugins:m,showError:h,showIncompatibleBrowser:y,_t:g,extractErrorMessageFromError:w}=await Promise.all([r.e(6803),r.e(485),r.e(1869),r.e(2500),r.e(5385)]).then(r.bind(r,"./src/vector/init.tsx"));try{await s(e);const r=(0,i._)(window.location);if(!(r.params.client_secret||r.location.length>0)){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/")}l();const o=u();await s(o);const w=t(),b=c(),v=d();await s(v,b);const x=p();await s(x);const _=m();await s(_);let S=a;!S&&window.localStorage&&(S=Boolean(window.localStorage.getItem("mx_accepts_unsupported_browser"))),S||await new Promise((e,t)=>{n.vF.error("Browser is missing required features."),y(()=>{window.localStorage&&window.localStorage.setItem("mx_accepts_unsupported_browser",String(!0)),n.vF.log("User accepts the compatibility risks."),e()}).catch(t)});try{await o}catch(e){return e instanceof SyntaxError?h(g("error|misconfigured"),[g("error|invalid_json"),g("error|invalid_json_detail",{message:e.message||g("error|invalid_json_generic")})]):h(g("error|cannot_load_config"))}await _,await x,await v,await b,await s(w),await f(r.params)}catch(e){n.vF.error(e),await h(g("error|misconfigured"),[w(e,g("error|app_launch_unexpected_error"))])}})().catch(e=>{var t;n.vF.error(e),document.body.style.removeProperty("height");const r=document.createElement("iframe");r.sandbox="",r.src=a?"static/unable-to-load.html":"static/incompatible-browser.html",r.style.width="100%",r.style.height="100%",r.style.position="absolute",r.style.top="0",r.style.left="0",r.style.right="0",r.style.bottom="0",r.style.border="0",null===(t=document.getElementById("matrixchat"))||void 0===t||t.appendChild(r)})},"./src/vector/localstorage-fix.ts":()=>{window.localStorage&&Object.keys(window.localStorage).forEach(e=>{e.startsWith("loglevel:")&&window.localStorage.removeItem(e)})},"./src/vector/modernizr.js":()=>{!function(e,t,r,n){var o=[],i={_version:"3.13.0",_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 u="Moz O ms Webkit",c=i._config.usePrefixes?u.split(" "):[];function d(e,t){return!!~(""+e).indexOf(t)}i._cssomPrefixes=c;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 h={elem:m("modernizr")};s._q.push(function(){delete h.elem});var y={style:h.elem.style};function g(e,t,n,o){var i,s,a,l,u="modernizr",c=m("div"),d=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]:u+(n+1),c.appendChild(a);return(i=m("style")).type="text/css",i.id="s"+u,(d.fake?d:c).appendChild(i),d.appendChild(c),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(r.createTextNode(e)),c.id=u,d.fake&&(d.style.background="",d.style.overflow="hidden",l=f.style.overflow,f.style.overflow="hidden",f.appendChild(d)),s=t(c,e),d.fake&&d.parentNode?(d.parentNode.removeChild(d),f.style.overflow=l,f.offsetHeight):c.parentNode.removeChild(c),!!s}function w(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function b(e,r){var o=e.length;if("CSS"in t&&"supports"in t.CSS){for(;o--;)if(t.CSS.supports(w(e[o]),r))return!0;return!1}if("CSSSupportsRule"in t){for(var i=[];o--;)i.push("("+w(e[o])+":"+r+")");return g("@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 v(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,r){return t+r.toUpperCase()}).replace(/^-/,"")}s._q.unshift(function(){delete y.style});var x=i._config.usePrefixes?u.toLowerCase().split(" "):[];function _(e,t){return function(){return e.apply(t,arguments)}}function S(e,t,r,o,i){var s=e.charAt(0).toUpperCase()+e.slice(1),a=(e+" "+c.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=b(e,r);if(!l(i,"undefined"))return i}for(var s,a,u,c,f,p=["modernizr","tspan","samp"];!y.style&&p.length;)s=!0,y.modElem=m(p.shift()),y.style=y.modElem.style;function h(){s&&(delete y.style,delete y.modElem)}for(u=e.length,a=0;a9)}),s.addTest("flexbox",j("flexBasis","1px",!0));var P=function(e){var r,o=O.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",!!N("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),A=l(C={}.hasOwnProperty,"undefined")||l(C.call,"undefined")?function(e,t){return t in e&&l(e.constructor.prototype[t],"undefined")}:function(e,t){return C.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;e{"use strict";r.d(t,{_:()=>o,u:()=>i});var n=r("./node_modules/matrix-js-sdk/src/utils.ts");function o(e){const t=e.hash.substring(1).split("?"),r={location:decodeURIComponent(t[0]),params:{}};return t.length>1&&(r.params=(0,n.Ny)(t[1])),r}function i(e){return(0,n.Ny)(e.search.substring(1))}}},a={};function l(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={id:e,loaded:!1,exports:{}};return s[e].call(r.exports,r,r.exports,l),r.loaded=!0,r.exports}l.m=s,l.amdD=function(){throw new Error("define cannot be used indirect")},l.amdO={},e=[],l.O=(t,r,n,o)=>{if(!r){var i=1/0;for(c=0;c=o)&&Object.keys(l.O).every(e=>l.O[e](r[a]))?r.splice(a--,1):(s=!1,o0&&e[c-1][2]>o;c--)e[c]=e[c-1];e[c]=[r,n,o]},l.H={},l.G=e=>{Object.keys(l.H).map(t=>{l.H[t](e)})},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,l.t=function(e,n){if(1&n&&(e=this(e)),8&n)return e;if("object"==typeof e&&e){if(4&n&&e.__esModule)return e;if(16&n&&"function"==typeof e.then)return e}var o=Object.create(null);l.r(o);var i={};t=t||[null,r({}),r([]),r(r)];for(var s=2&n&&e;("object"==typeof s||"function"==typeof s)&&!~t.indexOf(s);s=r(s))Object.getOwnPropertyNames(s).forEach(t=>i[t]=()=>e[t]);return i.default=()=>e,l.d(o,i),o},l.d=(e,t)=>{for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},l.f={},l.e=e=>Promise.all(Object.keys(l.f).reduce((t,r)=>(l.f[r](e,t),t),[])),l.u=e=>"bundles/"+l.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",l.miniCssF=e=>"bundles/"+l.h()+"/"+{1869:"styles",5607:"error-view"}[e]+".css",l.h=()=>"b208558142de943d2bca",l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},o="element-web:",l.l=(e,t,r,i)=>{if(n[e])n[e].push(t);else{var s,a;if(void 0!==r)for(var u=document.getElementsByTagName("script"),c=0;c{s.onerror=s.onload=null,clearTimeout(p);var o=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach(e=>e(r)),t)return t(r)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),a&&document.head.appendChild(s)}},l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),l.v=(e,t,r,n)=>{var o=fetch(l.p+"bundles/"+l.h()+"/"+r+".wasm"),i=()=>o.then(e=>e.arrayBuffer()).then(e=>WebAssembly.instantiate(e,n)).then(t=>Object.assign(e,t.instance.exports));return o.then(t=>"function"==typeof WebAssembly.instantiateStreaming?WebAssembly.instantiateStreaming(t,n).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),i();throw e}):i())},(()=>{var e;l.g.importScripts&&(e=l.g.location+"");var t=l.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),l.p=e+"../../"})(),(()=>{if(void 0!==l){var e=l.u,t=l.e,r={},n={};l.u=function(t){return e(t)+(r.hasOwnProperty(t)?"?"+r[t]:"")},l.e=function(o){return t(o).catch(function(t){var i=n.hasOwnProperty(o)?n[o]:3;if(i<1){var s=e(o);throw t.message="Loading chunk "+o+" failed after 3 retries.\n("+s+")",t.request=s,t}return new Promise(function(e){setTimeout(function(){var t=Date.now();r[o]=t,n[o]=i-1,e(l.e(o))},500)})})}}})(),(()=>{if("undefined"!=typeof document){var e=e=>new Promise((t,r)=>{var n=l.miniCssF(e),o=l.p+n;if(((e,t)=>{for(var r=document.getElementsByTagName("link"),n=0;n{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",l.nc&&(i.nonce=l.nc),i.onerror=i.onload=r=>{if(i.onerror=i.onload=null,"load"===r.type)n();else{var s=r&&r.type,a=r&&r.target&&r.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+s+": "+a+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=s,l.request=a,i.parentNode&&i.parentNode.removeChild(i),o(l)}},i.href=t,r?r.parentNode.insertBefore(i,r.nextSibling):document.head.appendChild(i)})(e,o,null,t,r)}),t={3023:0};l.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}))},l.H.miniCss=e=>{if((!l.o(t,e)||void 0===t[e])&&/^(1869|3023|5607)$/.test(e)){t[e]=null;var r=document.createElement("link");r.charset="utf-8",l.nc&&r.setAttribute("nonce",l.nc),r.rel="preload",r.as="style",r.href=l.p+l.miniCssF(e),document.head.appendChild(r)}}}})(),(()=>{l.b=document.baseURI||self.location.href;var e={3023:0};l.f.j=(t,r)=>{var n=l.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise((r,o)=>n=e[t]=[r,o]);r.push(n[2]=o);var i=l.p+l.u(t),s=new Error;l.l(i,r=>{if(l.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,n[1](s)}},"chunk-"+t,t)}},l.H.j=t=>{if(!l.o(e,t)||void 0===e[t]){e[t]=null;var r=document.createElement("link");r.charset="utf-8",l.nc&&r.setAttribute("nonce",l.nc),r.rel="preload",r.as="script",r.href=l.p+l.u(t),document.head.appendChild(r)}},l.O.j=t=>0===e[t];var t=(t,r)=>{var n,o,[i,s,a]=r,u=0;if(i.some(t=>0!==e[t])){for(n in s)l.o(s,n)&&(l.m[n]=s[n]);if(a)var c=a(l)}for(t&&t(r);u{var t=i[e];Array.isArray(t)&&t.map(l.G)};var u=l.O(void 0,[1040],()=>l("./src/vector/index.ts"));u=l.O(u)})(); //# sourceMappingURL=bundle.js.map