matrix-art-preview

Page to land previews on for matrix art
git clone git://archive.git.mtrnord.blog/MTRNord/matrix-art-preview.git
Log | Files | Refs

commit aa30e071f85a7de86a642ebda9d08f26ebce13da
parent 7c7c7da4b5e155b000f9b03f75da962bbfebe9db
Author: MTRNord <MTRNord@users.noreply.github.com>
Date:   Mon, 18 Apr 2022 20:46:04 +0000

deploy: MTRNord/matrix-art@2a611f2e08dabb7205789d5bbfdd5280b422b552

Diffstat:
Dpr-121/assets/Join.73af0a1f.js | 1-
Apr-121/assets/Join.926c3dce.js | 1+
Apr-121/assets/index.0465427b.js | 1+
Apr-121/assets/index.311ea642.css | 1+
Dpr-121/assets/index.b49f94f5.css | 1-
Dpr-121/assets/index.d4976c03.js | 1-
Mpr-121/assets/vendor.d127a5c1.js | 2+-
Mpr-121/index.html | 8++++----
8 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/pr-121/assets/Join.73af0a1f.js b/pr-121/assets/Join.73af0a1f.js @@ -1 +0,0 @@ -import{E as h,$ as u}from"./vendor.d127a5c1.js";import{j as r,a as t,H as g,C as p}from"./index.d4976c03.js";const l="inline-block p-4 w-full text-gray-900 bg-gray-100 hover:ring-blue-300 hover:ring-1 focus:ring-transparent focus:outline-none dark:bg-gray-700 dark:text-white",d="inline-block p-4 w-full bg-white hover:text-gray-700 hover:bg-gray-50 hover:ring-blue-300 hover:ring-1 focus:ring-transparent focus:outline-none dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700";class f extends h{constructor(){super();this.state={homeserver:"https://art.midnightthoughts.space",username:"",password:"",create_profile:!0,current_tab:"login"}}async onSubmit(s){s.preventDefault();const e=this.context;!e||this.state.homeserver===""||this.state.username===""||this.state.password===""||(this.state.current_tab==="login"&&!(e!=null&&e.isLoggedIn())?await e.login(this.state.homeserver,this.state.username,this.state.password,this.state.create_profile):this.state.current_tab==="register"&&!e.isLoggedIn()&&await e.register(this.state.homeserver,this.state.username,this.state.password,this.state.create_profile),u("/",!0))}onInput(s){s.preventDefault();const e=s.target,n=e.type==="checkbox"?e.checked:e.value,a=e.name;this.setState({[a]:n})}render(s,{homeserver:e,username:n,password:a,create_profile:c,current_tab:o}){return r("div",{class:"flex flex-col",children:[t("header",{children:t(g,{})}),r("main",{class:"m-12 mt-6",children:[t("h1",{class:"text-3xl font-bold mb-4 text-white",children:"Join"}),r("div",{class:"flex items-center flex-col",children:[r("ul",{class:"w-1/4 mb-8 hidden text-sm font-medium text-center text-gray-500 rounded-lg divide-x divide-gray-200 shadow sm:flex dark:divide-gray-700 dark:text-gray-400",children:[t("li",{class:"w-full",children:t("a",{href:"#",class:o==="login"?`${l} rounded-l-lg`:`${d} rounded-l-lg`,onClick:i=>{i.preventDefault(),this.setState({current_tab:"login"})},children:"Login"})}),t("li",{class:"w-full",children:t("a",{href:"#",class:o==="register"?`${l} rounded-r-lg`:`${d} rounded-r-lg`,onClick:i=>{i.preventDefault(),this.setState({current_tab:"register"})},children:"Register"})})]}),r("form",{onSubmit:this.onSubmit.bind(this),class:"flex flex-col items-start w-1/4",children:[t("input",{class:"search-bg shadow rounded-lg border-0 py-3 px-4 placeholder-data text-white mb-4 w-full",type:"url",placeholder:"Homeserver",name:"homeserver",value:e,onInput:this.onInput.bind(this)}),t("input",{class:"search-bg shadow rounded-lg border-0 py-3 px-4 placeholder-data text-white mb-4 w-full",autocomplete:"username",type:"text",placeholder:"Username",name:"username",value:n,onInput:this.onInput.bind(this)}),t("input",{class:"search-bg shadow rounded-lg border-0 py-3 px-4 placeholder-data text-white mb-4 w-full",autoComplete:"current-password",type:"password",placeholder:"Password",name:"password",value:a,onInput:this.onInput.bind(this)}),r("label",{class:"mb-4 flex items-center",children:[t("input",{class:"checked:bg-blue-600 checked:border-transparent checked:bg-no-repeat checked:bg-[url('/tick.svg')] outline-none focus:outline-offset-2 focus:ring-blue-600 focus:ring-offset-2 focus:ring-offset-white p-0 inline-block align-middle box-border select-none shrink-0 shadow h-5 w-5 appearance-none rounded bg-white border-none",type:"checkbox",name:"create_profile",checked:c,onInput:this.onInput.bind(this)}),t("span",{class:"ml-4 text-data text-base font-medium",children:"Create account"})]}),t("button",{type:"submit",class:"text-white font-bold text-lg logo-bg rounded-xl py-2 px-10 shadow transform transition-transform ease-in-out duration-300 hover:scale-105 w-1/2 self-center",children:o==="login"?"Login":"Register"})]})]})]})]})}}f.contextType=p;export{f as default}; diff --git a/pr-121/assets/Join.926c3dce.js b/pr-121/assets/Join.926c3dce.js @@ -0,0 +1 @@ +import{E as h,$ as u}from"./vendor.d127a5c1.js";import{j as r,a as t,H as g,C as p}from"./index.0465427b.js";const l="inline-block p-4 w-full text-gray-900 bg-gray-100 hover:ring-blue-300 hover:ring-1 focus:ring-transparent focus:outline-none dark:bg-gray-700 dark:text-white",d="inline-block p-4 w-full bg-white hover:text-gray-700 hover:bg-gray-50 hover:ring-blue-300 hover:ring-1 focus:ring-transparent focus:outline-none dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700";class f extends h{constructor(){super();this.state={homeserver:"https://art.midnightthoughts.space",username:"",password:"",create_profile:!0,current_tab:"login"}}async onSubmit(s){s.preventDefault();const e=this.context;!e||this.state.homeserver===""||this.state.username===""||this.state.password===""||(this.state.current_tab==="login"&&!(e!=null&&e.isLoggedIn())?await e.login(this.state.homeserver,this.state.username,this.state.password,this.state.create_profile):this.state.current_tab==="register"&&!e.isLoggedIn()&&await e.register(this.state.homeserver,this.state.username,this.state.password,this.state.create_profile),u("/",!0))}onInput(s){s.preventDefault();const e=s.target,n=e.type==="checkbox"?e.checked:e.value,a=e.name;this.setState({[a]:n})}render(s,{homeserver:e,username:n,password:a,create_profile:c,current_tab:o}){return r("div",{class:"flex flex-col",children:[t("header",{children:t(g,{})}),r("main",{class:"m-12 mt-6",children:[t("h1",{class:"text-3xl font-bold mb-4 text-white",children:"Join"}),r("div",{class:"flex items-center flex-col",children:[r("ul",{class:"w-1/4 mb-8 hidden text-sm font-medium text-center text-gray-500 rounded-lg divide-x divide-gray-200 shadow sm:flex dark:divide-gray-700 dark:text-gray-400",children:[t("li",{class:"w-full",children:t("a",{href:"#",class:o==="login"?`${l} rounded-l-lg`:`${d} rounded-l-lg`,onClick:i=>{i.preventDefault(),this.setState({current_tab:"login"})},children:"Login"})}),t("li",{class:"w-full",children:t("a",{href:"#",class:o==="register"?`${l} rounded-r-lg`:`${d} rounded-r-lg`,onClick:i=>{i.preventDefault(),this.setState({current_tab:"register"})},children:"Register"})})]}),r("form",{onSubmit:this.onSubmit.bind(this),class:"flex flex-col items-start w-1/4",children:[t("input",{class:"search-bg shadow rounded-lg border-0 py-3 px-4 placeholder-data text-white mb-4 w-full",type:"url",placeholder:"Homeserver",name:"homeserver",value:e,onInput:this.onInput.bind(this)}),t("input",{class:"search-bg shadow rounded-lg border-0 py-3 px-4 placeholder-data text-white mb-4 w-full",autocomplete:"username",type:"text",placeholder:"Username",name:"username",value:n,onInput:this.onInput.bind(this)}),t("input",{class:"search-bg shadow rounded-lg border-0 py-3 px-4 placeholder-data text-white mb-4 w-full",autoComplete:"current-password",type:"password",placeholder:"Password",name:"password",value:a,onInput:this.onInput.bind(this)}),r("label",{class:"mb-4 flex items-center",children:[t("input",{class:"checked:bg-blue-600 checked:border-transparent checked:bg-no-repeat checked:bg-[url('/tick.svg')] outline-none focus:outline-offset-2 focus:ring-blue-600 focus:ring-offset-2 focus:ring-offset-white p-0 inline-block align-middle box-border select-none shrink-0 shadow h-5 w-5 appearance-none rounded bg-white border-none",type:"checkbox",name:"create_profile",checked:c,onInput:this.onInput.bind(this)}),t("span",{class:"ml-4 text-data text-base font-medium",children:"Create account"})]}),t("button",{type:"submit",class:"text-white font-bold text-lg logo-bg rounded-xl py-2 px-10 shadow transform transition-transform ease-in-out duration-300 hover:scale-105 w-1/2 self-center",children:o==="login"?"Login":"Register"})]})]})]})]})}}f.contextType=p;export{f as default}; diff --git a/pr-121/assets/index.0465427b.js b/pr-121/assets/index.0465427b.js @@ -0,0 +1 @@ +var U=Object.defineProperty,k=Object.defineProperties;var V=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var X=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var M=(a,e,t)=>e in a?U(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,R=(a,e)=>{for(var t in e||(e={}))X.call(e,t)&&M(a,t,e[t]);if(B)for(var t of B(e))W.call(e,t)&&M(a,t,e[t]);return a},N=(a,e)=>k(a,V(e));var d=(a,e,t)=>(M(a,typeof e!="symbol"?e+"":e,t),t);import{D as G,j as Q,a as Y,E,b as D,P as J,F as Z,L as q,c as $,l,d as s,W as I,M as b,e as K,f as ee,O as te,o as ne,g as ie,S as oe}from"./vendor.d127a5c1.js";const re=function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const r of c.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function t(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerpolicy&&(c.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?c.credentials="include":o.crossorigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function n(o){if(o.ep)return;o.ep=!0;const c=t(o);fetch(o.href,c)}};re();const se="modulepreload",P={},ae="/pr-121/",le=function(e,t){return!t||t.length===0?e():Promise.all(t.map(n=>{if(n=`${ae}${n}`,n in P)return;P[n]=!0;const o=n.endsWith(".css"),c=o?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${n}"]${c}`))return;const r=document.createElement("link");if(r.rel=o?"stylesheet":se,o||(r.as="script",r.crossOrigin=""),r.href=n,document.head.appendChild(r),o)return new Promise((m,w)=>{r.addEventListener("load",m),r.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${n}`)))})})).then(()=>e())},z=G(void 0),i=Q,h=Y;class A extends E{render(){const e=this.context;return h("div",{class:"m-12 flex flex-col lg:flex-row items-center justify-between",children:[i(D,{href:"/",children:i("img",{alt:"Matrix Art",src:"Logo_colored.svg",class:"ease-in-out hover:scale-105 trandform transition-transform duration-300"})}),h("div",{class:"flex items-center mt-8 lg:mt-0 flex-col sm:flex-row",children:[h("div",{class:"flex items-center justify-between w-80 max-w-80 mx-6 ease-in-out hover:scale-105 trandform transition-transform duration-300",children:[i("div",{class:"absolute ml-4",children:h("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"#AAB3CF",children:[i("path",{d:"M0 0h24v24H0V0z",fill:"none"}),i("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})]})}),i("input",{class:"search-bg shadow rounded-2xl border-0 py-3 px-4 pl-10 text-data",placeholder:"Search"})]}),e!=null&&e.isLoggedIn()?i(D,{class:"text-white font-bold text-1xl logo-bg rounded-2xl py-3 px-12 shadow mt-4 sm:mt-0 transform transition-transform ease-in-out duration-300 hover:scale-105",children:"Post"}):i(D,{href:"/join",class:"text-white font-bold text-1xl logo-bg rounded-2xl py-3 px-12 shadow mt-4 sm:mt-0 transform transition-transform ease-in-out duration-300 hover:scale-105",children:"Join"})]})]})}}A.contextType=z;class p extends E{constructor(e){super(e)}render({user:e,post:t}){return h("div",{class:"flex flex-col",children:[i("a",{id:"gallery_click",href:t.content.file.url,class:"w-full",target:"_blank",rel:"noreferrer",children:i("img",{class:"rounded-3xl shadow object-cover transform transition-transform ease-in-out duration-300 hover:scale-105",src:t.content.file.url})}),h("div",{class:"flex items-center justify-between py-4",children:[h("a",{class:"flex items-center",href:"#",children:[i("img",{class:"w-11 h-11 rounded-full mr-4 border-2 border-[#AAB3CF]",src:e.avatar_url}),i("p",{class:"text-data shadow text-lg font-medium",children:e.display_name})]}),h("div",{class:"flex text-data text-lg items-center",children:[h("a",{class:"mr-4 flex items-center",href:"#",children:[i("span",{class:"mr-2",children:h("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"#AAB3CF",children:[i("path",{d:"M0 0h24v24H0V0z",fill:"none"}),i("path",{d:"M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z"})]})}),i("span",{children:"5"})]}),h("a",{class:"flex items-center",href:"#",children:[i("span",{class:"mr-2",children:h("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"#AAB3CF",children:[i("path",{d:"M0 0h24v24H0V0z",fill:"none"}),i("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z"})]})}),i("span",{children:"11"})]})]})]})]})}}class y{constructor(e,t,n){d(this,"mxid");d(this,"display_name");d(this,"avatar_url");this.mxid=e,this.display_name=t,this.avatar_url=n}}class v{constructor(e,t){d(this,"event_id");d(this,"content");this.event_id=e,this.content=t}}class ce extends E{constructor(){super();this.state={columns:this.settingColumns()}}settingColumns(){return window.innerWidth>=1400?4:window.innerWidth>=800?3:window.innerWidth>=500?2:1}componentDidMount(){window.addEventListener("resize",()=>this.setState({columns:this.settingColumns()}))}componentWillUnmount(){var e;window.removeEventListener("resize",()=>this.setState({columns:this.settingColumns()})),(e=this.state.lightbox)==null||e.destroy()}render(){return h("div",{class:"flex flex-col",children:[i("header",{children:i(A,{})}),h("main",{class:"m-12 mt-6",children:[i("h1",{class:"text-3xl font-bold mb-4 text-white",children:"Explore"}),i("div",{class:"flex justify-center",id:"gallery",children:h(J,{gap:24,nColumns:this.state.columns,children:[i(p,{user:new y("","Person A","https://unsplash.com/photos/_cvwXhGqG-o/download?ixid=MnwxMjA3fDB8MXxzZWFyY2h8OHx8ZmFjZXxlbnwwfDJ8fHwxNjQ4Nzc5NzYx"),post:new v("",{file:{url:"https://unsplash.com/photos/UWmrTAQ75iA/download?ixid=MnwxMjA3fDB8MXxhbGx8Mnx8fHx8fDJ8fDE2NDg4MzI0Njg"}})}),i(p,{user:new y("","Person B","https://unsplash.com/photos/uJ8LNVCBjFQ/download?ixid=MnwxMjA3fDB8MXxzZWFyY2h8MTN8fGZhY2V8ZW58MHwyfHx8MTY0ODc3OTc2MQ"),post:new v("",{file:{url:"https://unsplash.com/photos/7ptbiEPxKMQ/download?ixid=MnwxMjA3fDB8MXxhbGx8OXx8fHx8fDJ8fDE2NDg4MzI0Njg"}})}),i(p,{user:new y("","Person C","https://unsplash.com/photos/u3pi6HhSYew/download?ixid=MnwxMjA3fDB8MXxzZWFyY2h8MTd8fGZhY2V8ZW58MHwyfHx8MTY0ODc3OTc2MQ"),post:new v("",{file:{url:"https://unsplash.com/photos/ZiPlVmmKEYA/download?ixid=MnwxMjA3fDB8MXxhbGx8Mzl8fHx8fHwyfHwxNjQ4ODM2MDIz"}})}),i(p,{user:new y("","Person D","https://unsplash.com/photos/TW_z_iUD_bQ/download?ixid=MnwxMjA3fDB8MXxzZWFyY2h8ODR8fHBvcnRyYWl0fGVufDB8Mnx8fDE2NDg4NDQ3MjQ"),post:new v("",{file:{url:"https://unsplash.com/photos/FTQJBGDxKXg/download?ixid=MnwxMjA3fDB8MXxhbGx8M3x8fHx8fDJ8fDE2NDg4NDMyNDY"}})}),i(p,{user:new y("","Person E","https://unsplash.com/photos/kYtN89E5ce4/download?ixid=MnwxMjA3fDB8MXxzZWFyY2h8MTA0fHxwb3J0cmFpdHxlbnwwfDJ8fHwxNjQ4ODQ0NzQy"),post:new v("",{file:{url:"https://unsplash.com/photos/zfhxiaZO3JE/download?ixid=MnwxMjA3fDB8MXxhbGx8Mjl8fHx8fHwyfHwxNjQ4ODQzMjQ1"}})}),i(p,{user:new y("","Person E","https://unsplash.com/photos/kBonaevi3yA/download?ixid=MnwxMjA3fDB8MXxzZWFyY2h8MTE5fHxwb3J0cmFpdHxlbnwwfDJ8fHwxNjQ4ODQ0NzQy"),post:new v("",{file:{url:"https://unsplash.com/photos/jm-JKqrAXsA/download?ixid=MnwxMjA3fDB8MXxhbGx8MTAyfHx8fHx8Mnx8MTY0ODg0MzI1NQ"}})})]})})]})]})}}const de=Z(()=>le(()=>import("./Join.926c3dce.js"),["assets/Join.926c3dce.js","assets/vendor.d127a5c1.js"]));class he extends E{render(){return i(q,{fallback:h("div",{class:"flex flex-col",children:[i("header",{children:i(A,{})}),i("main",{class:"m-12 mt-6 flex items-center justify-center",children:i("p",{class:"text-lg text-data font-bold",children:"Loading..."})})]}),children:i(z.Provider,{value:window.client,children:h($,{children:[i(ce,{path:"/"}),i(de,{path:"/join"})]})})})}}const _=new l.UnstableValue("m.image","org.matrix.msc1767.image"),O=new l.UnstableValue("m.file","org.matrix.msc1767.file"),L=new l.UnstableValue("m.thumbnail","org.matrix.msc1767.thumbnail"),j=new l.UnstableValue("blurhash","xyz.amorgan.blurhash"),we=new l.NamespacedValue("matrixart.description"),me=new l.NamespacedValue("matrixart.tags"),ue=new l.NamespacedValue("matrixart.nsfw"),xe=new l.NamespacedValue("matrixart.license");class fe extends l.ExtensibleEvent{constructor(e){super(e);d(this,"image");d(this,"text");d(this,"thumbnails");d(this,"blurhash");d(this,"file");d(this,"description");d(this,"tags");d(this,"nsfw",!1);d(this,"license");const t=_.findIn(this.wireContent),n=l.M_TEXT.findIn(this.wireContent),o=O.findIn(this.wireContent),c=L.findIn(this.wireContent),r=j.findIn(this.wireContent),m=we.findIn(this.wireContent),w=me.findIn(this.wireContent),x=ue.findIn(this.wireContent),u=xe.findIn(this.wireContent);if(l.isProvided(t)){if(!t)throw new l.InvalidEventError("m.image is required to be present");this.image=t}if(l.isProvided(o)){if(!o)throw new l.InvalidEventError("m.file is required to be present");this.file=o}if(l.isOptionalAString(n)){if(!t)throw new l.InvalidEventError("m.text is required to be present");this.text=n}if(l.isProvided(c)){if(!Array.isArray(c))throw new l.InvalidEventError("m.thumbnail contents must be an array");this.thumbnails=c}if(l.isOptionalAString(r)&&(this.blurhash=r),l.isOptionalAString(m)&&(this.description=m),l.isProvided(w)){if(!Array.isArray(w))throw new l.InvalidEventError("matrixart.tags contents must be an array");this.tags=w}if(l.isProvided(x)){if(typeof x!="boolean")throw new l.InvalidEventError("matrixart.tags contents must be an boolean");this.nsfw=x}l.isOptionalAString(u)&&(this.license=u)}isEquivalentTo(e){return l.isEventTypeSame(e,_)}serialize(){const e={[l.M_TEXT.name]:this.text,[O.name]:this.file,[_.name]:this.image,[L.name]:this.thumbnails,[j.name]:this.blurhash,["matrixart.description"]:this.description,["matrixart.tags"]:this.tags,["matrixart.nsfw"]:this.nsfw,["matrixart.license"]:this.license};return{type:"m.image",content:e}}}function ge(a){const e=a;return new fe(e)}l.ExtensibleEvents.registerInterpreter(_,ge);l.ExtensibleEvents.unknownInterpretOrder.push(_);function S(){return new Worker("/pr-121/assets/indexeddb.worker.0ae1a28d.js",{type:"module"})}class T{constructor(e){d(this,"events",[]);d(this,"currentUserDirectory");d(this,"rootDirectory");this.client=e}static async new(){var o,c,r,m,w,x;global.Olm||console.error("global.Olm does not seem to be present. Did you forget to add olm in the out directory?");let e;if(window.localStorage.getItem("server")!==null?e=window.localStorage.getItem("server"):e={}.VITE_MATRIX_SERVER_URL,!e)throw new Error("No matrix server URL defined");let t;if(window.localStorage.getItem("mxid_guest")!==null){const u=(o=window.localStorage.getItem("mxid_guest"))!=null?o:void 0,f=(c=window.localStorage.getItem("access_token_guest"))!=null?c:void 0,g=(r=window.localStorage.getItem("device_id_guest"))!=null?r:void 0;t=s.createClient({useAuthorizationHeader:!0,baseUrl:e,userId:u,accessToken:f,deviceId:g,sessionStore:new I(window.localStorage),store:new s.IndexedDBStore({indexedDB:window.indexedDB,dbName:"matrix-art-sync:guest",localStorage:window.localStorage,workerFactory:()=>new S}),cryptoStore:new s.IndexedDBCryptoStore(window.indexedDB,"matrix-art:crypto")}),t.setGuest(!0)}{const u=s.createClient({}.VITE_MATRIX_SERVER_URL),{user_id:f,device_id:g,access_token:C}=await u.registerGuest();t=s.createClient({useAuthorizationHeader:!0,baseUrl:e,userId:f,accessToken:C,deviceId:g,sessionStore:new I(window.localStorage),store:new s.IndexedDBStore({indexedDB:window.indexedDB,dbName:"matrix-art-sync:guest",localStorage:window.localStorage,workerFactory:()=>new S}),cryptoStore:new s.IndexedDBCryptoStore(window.indexedDB,"matrix-art:crypto")}),t.setGuest(!0),window.localStorage.setItem("mxid_guest",f),window.localStorage.setItem("access_token_guest",C),window.localStorage.setItem("device_id_guest",g),window.localStorage.setItem("server",e)}let n;if(window.localStorage.getItem("mxid")!==null){const u=(m=window.localStorage.getItem("mxid"))!=null?m:void 0,f=(w=window.localStorage.getItem("access_token"))!=null?w:void 0,g=(x=window.localStorage.getItem("device_id"))!=null?x:void 0;n=s.createClient({useAuthorizationHeader:!0,baseUrl:e,userId:u,accessToken:f,deviceId:g,sessionStore:new I(window.localStorage),store:new s.IndexedDBStore({indexedDB:window.indexedDB,dbName:"matrix-art-sync:guest",localStorage:window.localStorage,workerFactory:()=>new S}),cryptoStore:new s.IndexedDBCryptoStore(window.indexedDB,"matrix-art:crypto")}),n.setGuest(!1)}return new T(n!=null?n:t)}isLoggedIn(){return this.client.isLoggedIn()&&!this.client.isGuest()}async start(){this.client.on(s.MatrixEventEvent.Decrypted,(t,n)=>{const o=t.unstableExtensibleEvent;o!=null&&o.isEquivalentTo(_)&&this.events.push(t)}),console.log("start"),await this.client.store.startup(),await this.client.initCrypto(),await this.client.startClient();const e=await this.client.joinRoom({}.VITE_MATRIX_ROOT_FOLDER);await H(1e3),this.rootDirectory=new b(this.client,e.roomId),console.log("started")}async register(e={}.VITE_MATRIX_SERVER_URL,t,n,o=!1){var c;if(this.client.stopClient(),this.client=s.createClient({useAuthorizationHeader:!0,baseUrl:e,userId:t,deviceId:"Matrix Art",sessionStore:new I(window.localStorage),store:new s.IndexedDBStore({indexedDB:window.indexedDB,dbName:"matrix-art-sync:loggedin",localStorage:window.localStorage,workerFactory:()=>new S}),cryptoStore:new s.IndexedDBCryptoStore(window.indexedDB,"matrix-art:crypto")}),await this.client.register(t,n,null,{type:"m.login.dummy"}),window.localStorage.setItem("server",e),window.localStorage.setItem("mxid",t),window.localStorage.setItem("access_token",this.client.getAccessToken()),window.localStorage.setItem("device_id","Matrix Art"),await this.start(),o){const r=(c=this.rootDirectory)==null?void 0:c.getDirectories(),m=this.client.getUserId().replace(":","_");r!=null&&r.some(w=>w.room.name===m)?this.rootDirectory=r==null?void 0:r.find(w=>w.room.name===m):await this.createProfileFolder()}}async login(e,t,n,o=!1){var c;if(this.client.stopClient(),this.client=s.createClient({useAuthorizationHeader:!0,baseUrl:e,userId:t,deviceId:"Matrix Art",sessionStore:new I(window.localStorage),store:new s.IndexedDBStore({indexedDB:window.indexedDB,dbName:"matrix-art-sync:loggedin",localStorage:window.localStorage,workerFactory:()=>new S}),cryptoStore:new s.IndexedDBCryptoStore(window.indexedDB,"matrix-art:crypto")}),await this.client.loginWithPassword(t,n),window.localStorage.setItem("server",e),window.localStorage.setItem("mxid",t),window.localStorage.setItem("access_token",this.client.getAccessToken()),window.localStorage.setItem("device_id","Matrix Art"),await this.start(),o){const r=(c=this.rootDirectory)==null?void 0:c.getDirectories();console.log(r);const m=this.client.getUserId().replace(":","_");r!=null&&r.some(w=>w.room.name===m)?this.rootDirectory=r==null?void 0:r.find(w=>w.room.name===m):await this.createProfileFolder()}}async createProfileFolder(){if(this.client.isGuest())throw new Error("Cannot create a file tree space as a guest");const e=await this.client.joinRoom({}.VITE_MATRIX_ROOT_FOLDER);await H(1e3),this.rootDirectory=new b(this.client,e.roomId);const t=this.client.getUserId().replace(":","_");this.currentUserDirectory=await this.createPublicSubDirectory(this.rootDirectory,t),await this.createPublicSubDirectory(this.currentUserDirectory,"Timeline")}async createPublicFileTree(e){if(this.client.isGuest())throw new Error("Cannot create a file tree space as a guest");const{room_id:t}=await this.client.createRoom({name:e,preset:s.Preset.PublicChat,power_level_content_override:N(R({},K),{users:{[{}.VITE_MATRIX_INSTANCE_ADMIN]:100,[this.client.getUserId()]:100}}),invite:[{}.VITE_MATRIX_INSTANCE_ADMIN],creation_content:{[s.RoomCreateTypeField]:s.RoomType.Space},initial_state:[{type:s.UNSTABLE_MSC3088_PURPOSE.name,state_key:s.UNSTABLE_MSC3089_TREE_SUBTYPE.name,content:{[s.UNSTABLE_MSC3088_ENABLED.name]:!0}},{type:s.EventType.RoomEncryption,state_key:"",content:{algorithm:ee}},{type:s.EventType.RoomGuestAccess,state_key:"",content:{guest_access:"can_join"}},{type:s.EventType.RoomHistoryVisibility,state_key:"",content:{history_visibility:"world_readable"}}]}),n=this.client.getRoom(t),o=n==null?void 0:n.getLiveTimeline().getState(s.EventTimeline.FORWARDS).getStateEvents(s.EventType.RoomPowerLevels,"");if(!o)throw new Error("Failed to find PL event");return await this.client.setPowerLevel(t,this.client.getUserId(),50,o),new b(this.client,t)}async createPublicSubDirectory(e,t){const n=await this.createPublicFileTree(t);return await this.client.sendStateEvent(e.roomId,s.EventType.SpaceChild,{via:[this.client.getDomain()]},n.roomId),await this.client.sendStateEvent(n.roomId,s.EventType.SpaceParent,{via:[this.client.getDomain()]},e.roomId),n}}function H(a){return new Promise(e=>setTimeout(e,a))}function pe(){return te.init({locateFile:()=>ne}).then(()=>{console.log("Using WebAssembly Olm")}).catch(a=>(console.log("Failed to load Olm: trying legacy version",a),new Promise((e,t)=>{const n=document.createElement("script");n.src=ie,n.onload=e,n.onerror=t,document.body.appendChild(n)}).then(()=>window.Olm.init()).then(()=>{console.log("Using legacy Olm")}).catch(e=>{console.log("Both WebAssembly and asm.js Olm failed!",e)})))}function F(){T.new().then(a=>{window.client=a,a.start().then(()=>{oe(i(he,{}),document.querySelector("#app"))})})}pe().then(()=>{F()}).catch(()=>{F()});export{z as C,A as H,i as a,h as j}; diff --git a/pr-121/assets/index.311ea642.css b/pr-121/assets/index.311ea642.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input:-ms-input-placeholder,textarea:-ms-input-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.static{position:static}.absolute{position:absolute}.m-12{margin:3rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.ml-4{margin-left:1rem}.mt-4{margin-top:1rem}.mr-4{margin-right:1rem}.mr-2{margin-right:.5rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.box-border{box-sizing:border-box}.inline-block{display:inline-block}.flex{display:flex}.contents{display:contents}.hidden{display:none}.h-11{height:2.75rem}.h-5{height:1.25rem}.w-80{width:20rem}.w-full{width:100%}.w-11{width:2.75rem}.w-1\/4{width:25%}.w-5{width:1.25rem}.w-1\/2{width:50%}.shrink-0{flex-shrink:0}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.select-none{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.resize{resize:both}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.self-center{align-self:center}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded{border-radius:.25rem}.rounded-xl{border-radius:.75rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.border-0{border-width:0px}.border-2{border-width:2px}.border-none{border-style:none}.border-\[\#AAB3CF\]{--tw-border-opacity: 1;border-color:rgb(170 179 207 / var(--tw-border-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.object-cover{-o-object-fit:cover;object-fit:cover}.p-4{padding:1rem}.p-0{padding:0}.py-3{padding-top:.75rem;padding-bottom:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-12{padding-left:3rem;padding-right:3rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.pl-10{padding-left:2.5rem}.text-center{text-align:center}.align-middle{vertical-align:middle}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-base{font-size:1rem;line-height:1.5rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@supports not (font-variation-settings: normal){@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:optional;src:url(/pr-121/fonts/Inter-Thin.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:optional;src:url(/pr-121/fonts/Inter-ExtraLight.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:optional;src:url(/pr-121/fonts/Inter-Light.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:optional;src:url(/pr-121/fonts/Inter-Regular.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:optional;src:url(/pr-121/fonts/Inter-Medium.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:optional;src:url(/pr-121/fonts/Inter-SemiBold.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:optional;src:url(/pr-121/fonts/Inter-Bold.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:optional;src:url(/pr-121/fonts/Inter-ExtraBold.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:optional;src:url(/pr-121/fonts/Inter-Black.woff2) format("woff2")}}@supports (font-variation-settings: normal){@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:optional;src:url(/pr-121/fonts/Inter-VariableFont_slnt,wght.woff2) format("woff2 supports variations"),url(/pr-121/fonts/Inter-VariableFont_slnt,wght.woff2) format("woff2-variations")}}html,body,#app{margin:0;height:100%}body{background-color:#424555}.logo-bg{background:linear-gradient(90deg,#751796 -58.41%,#FE7223 152.47%)}.search-bg{background:linear-gradient(90deg,rgba(196,196,196,.11) -33.43%,rgba(196,196,196,.07) 184.14%)}.text-data{color:#aab3cf}.placeholder-data::-moz-placeholder{color:#aab3cf}.placeholder-data:-ms-input-placeholder{color:#aab3cf}.placeholder-data::placeholder{color:#aab3cf}.checked\:border-transparent:checked{border-color:transparent}.checked\:bg-blue-600:checked{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.checked\:bg-\[url\(\'\/tick\.svg\'\)\]:checked{background-image:url(/pr-121/tick.svg)}.checked\:bg-no-repeat:checked{background-repeat:no-repeat}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\:ring-1:hover{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.hover\:ring-blue-300:hover{--tw-ring-opacity: 1;--tw-ring-color: rgb(147 197 253 / var(--tw-ring-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:outline-offset-2:focus{outline-offset:2px}.focus\:ring-transparent:focus{--tw-ring-color: transparent}.focus\:ring-blue-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(37 99 235 / var(--tw-ring-opacity))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus\:ring-offset-white:focus{--tw-ring-offset-color: #fff}@media (prefers-color-scheme: dark){.dark\:divide-gray-700>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(55 65 81 / var(--tw-divide-opacity))}.dark\:bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.dark\:bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.dark\:hover\:bg-gray-700:hover{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.dark\:hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}}@media (min-width: 640px){.sm\:mt-0{margin-top:0}.sm\:flex{display:flex}.sm\:flex-row{flex-direction:row}}@media (min-width: 1024px){.lg\:mt-0{margin-top:0}.lg\:flex-row{flex-direction:row}} diff --git a/pr-121/assets/index.b49f94f5.css b/pr-121/assets/index.b49f94f5.css @@ -1 +0,0 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input:-ms-input-placeholder,textarea:-ms-input-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.static{position:static}.absolute{position:absolute}.m-12{margin:3rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.ml-4{margin-left:1rem}.mt-4{margin-top:1rem}.mr-4{margin-right:1rem}.mr-2{margin-right:.5rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.box-border{box-sizing:border-box}.inline-block{display:inline-block}.flex{display:flex}.contents{display:contents}.hidden{display:none}.h-11{height:2.75rem}.h-5{height:1.25rem}.w-80{width:20rem}.w-full{width:100%}.w-11{width:2.75rem}.w-1\/4{width:25%}.w-5{width:1.25rem}.w-1\/2{width:50%}.shrink-0{flex-shrink:0}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.select-none{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.resize{resize:both}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.self-center{align-self:center}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded{border-radius:.25rem}.rounded-xl{border-radius:.75rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.border-0{border-width:0px}.border-2{border-width:2px}.border-none{border-style:none}.border-\[\#AAB3CF\]{--tw-border-opacity: 1;border-color:rgb(170 179 207 / var(--tw-border-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.object-cover{-o-object-fit:cover;object-fit:cover}.p-4{padding:1rem}.p-0{padding:0}.py-3{padding-top:.75rem;padding-bottom:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-12{padding-left:3rem;padding-right:3rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.pl-10{padding-left:2.5rem}.text-center{text-align:center}.align-middle{vertical-align:middle}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-base{font-size:1rem;line-height:1.5rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@supports not (font-variation-settings: normal){@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:optional;src:url(/fonts/Inter-Thin.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:optional;src:url(/fonts/Inter-ExtraLight.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:optional;src:url(/fonts/Inter-Light.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:optional;src:url(/fonts/Inter-Regular.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:optional;src:url(/fonts/Inter-Medium.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:optional;src:url(/fonts/Inter-SemiBold.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:optional;src:url(/fonts/Inter-Bold.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:optional;src:url(/fonts/Inter-ExtraBold.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:optional;src:url(/fonts/Inter-Black.woff2) format("woff2")}}@supports (font-variation-settings: normal){@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:optional;src:url(/fonts/Inter-VariableFont_slnt,wght.woff2) format("woff2 supports variations"),url(/fonts/Inter-VariableFont_slnt,wght.woff2) format("woff2-variations")}}html,body,#app{margin:0;height:100%}body{background-color:#424555}.logo-bg{background:linear-gradient(90deg,#751796 -58.41%,#FE7223 152.47%)}.search-bg{background:linear-gradient(90deg,rgba(196,196,196,.11) -33.43%,rgba(196,196,196,.07) 184.14%)}.text-data{color:#aab3cf}.placeholder-data::-moz-placeholder{color:#aab3cf}.placeholder-data:-ms-input-placeholder{color:#aab3cf}.placeholder-data::placeholder{color:#aab3cf}.checked\:border-transparent:checked{border-color:transparent}.checked\:bg-blue-600:checked{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.checked\:bg-\[url\(\'\/tick\.svg\'\)\]:checked{background-image:url(/tick.svg)}.checked\:bg-no-repeat:checked{background-repeat:no-repeat}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\:ring-1:hover{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.hover\:ring-blue-300:hover{--tw-ring-opacity: 1;--tw-ring-color: rgb(147 197 253 / var(--tw-ring-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:outline-offset-2:focus{outline-offset:2px}.focus\:ring-transparent:focus{--tw-ring-color: transparent}.focus\:ring-blue-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(37 99 235 / var(--tw-ring-opacity))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus\:ring-offset-white:focus{--tw-ring-offset-color: #fff}@media (prefers-color-scheme: dark){.dark\:divide-gray-700>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(55 65 81 / var(--tw-divide-opacity))}.dark\:bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.dark\:bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.dark\:hover\:bg-gray-700:hover{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.dark\:hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}}@media (min-width: 640px){.sm\:mt-0{margin-top:0}.sm\:flex{display:flex}.sm\:flex-row{flex-direction:row}}@media (min-width: 1024px){.lg\:mt-0{margin-top:0}.lg\:flex-row{flex-direction:row}} diff --git a/pr-121/assets/index.d4976c03.js b/pr-121/assets/index.d4976c03.js @@ -1 +0,0 @@ -var U=Object.defineProperty,k=Object.defineProperties;var V=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var X=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var M=(a,e,t)=>e in a?U(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,R=(a,e)=>{for(var t in e||(e={}))X.call(e,t)&&M(a,t,e[t]);if(B)for(var t of B(e))W.call(e,t)&&M(a,t,e[t]);return a},N=(a,e)=>k(a,V(e));var d=(a,e,t)=>(M(a,typeof e!="symbol"?e+"":e,t),t);import{D as G,j as Q,a as Y,E,b as D,P as J,F as Z,L as q,c as $,l,d as s,W as I,M as b,e as K,f as ee,O as te,o as ne,g as ie,S as oe}from"./vendor.d127a5c1.js";const re=function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const r of c.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function t(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerpolicy&&(c.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?c.credentials="include":o.crossorigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function n(o){if(o.ep)return;o.ep=!0;const c=t(o);fetch(o.href,c)}};re();const se="modulepreload",P={},ae="/",le=function(e,t){return!t||t.length===0?e():Promise.all(t.map(n=>{if(n=`${ae}${n}`,n in P)return;P[n]=!0;const o=n.endsWith(".css"),c=o?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${n}"]${c}`))return;const r=document.createElement("link");if(r.rel=o?"stylesheet":se,o||(r.as="script",r.crossOrigin=""),r.href=n,document.head.appendChild(r),o)return new Promise((m,w)=>{r.addEventListener("load",m),r.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${n}`)))})})).then(()=>e())},z=G(void 0),i=Q,h=Y;class A extends E{render(){const e=this.context;return h("div",{class:"m-12 flex flex-col lg:flex-row items-center justify-between",children:[i(D,{href:"/",children:i("img",{alt:"Matrix Art",src:"Logo_colored.svg",class:"ease-in-out hover:scale-105 trandform transition-transform duration-300"})}),h("div",{class:"flex items-center mt-8 lg:mt-0 flex-col sm:flex-row",children:[h("div",{class:"flex items-center justify-between w-80 max-w-80 mx-6 ease-in-out hover:scale-105 trandform transition-transform duration-300",children:[i("div",{class:"absolute ml-4",children:h("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"#AAB3CF",children:[i("path",{d:"M0 0h24v24H0V0z",fill:"none"}),i("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})]})}),i("input",{class:"search-bg shadow rounded-2xl border-0 py-3 px-4 pl-10 text-data",placeholder:"Search"})]}),e!=null&&e.isLoggedIn()?i(D,{class:"text-white font-bold text-1xl logo-bg rounded-2xl py-3 px-12 shadow mt-4 sm:mt-0 transform transition-transform ease-in-out duration-300 hover:scale-105",children:"Post"}):i(D,{href:"/join",class:"text-white font-bold text-1xl logo-bg rounded-2xl py-3 px-12 shadow mt-4 sm:mt-0 transform transition-transform ease-in-out duration-300 hover:scale-105",children:"Join"})]})]})}}A.contextType=z;class p extends E{constructor(e){super(e)}render({user:e,post:t}){return h("div",{class:"flex flex-col",children:[i("a",{id:"gallery_click",href:t.content.file.url,class:"w-full",target:"_blank",rel:"noreferrer",children:i("img",{class:"rounded-3xl shadow object-cover transform transition-transform ease-in-out duration-300 hover:scale-105",src:t.content.file.url})}),h("div",{class:"flex items-center justify-between py-4",children:[h("a",{class:"flex items-center",href:"#",children:[i("img",{class:"w-11 h-11 rounded-full mr-4 border-2 border-[#AAB3CF]",src:e.avatar_url}),i("p",{class:"text-data shadow text-lg font-medium",children:e.display_name})]}),h("div",{class:"flex text-data text-lg items-center",children:[h("a",{class:"mr-4 flex items-center",href:"#",children:[i("span",{class:"mr-2",children:h("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"#AAB3CF",children:[i("path",{d:"M0 0h24v24H0V0z",fill:"none"}),i("path",{d:"M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z"})]})}),i("span",{children:"5"})]}),h("a",{class:"flex items-center",href:"#",children:[i("span",{class:"mr-2",children:h("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"#AAB3CF",children:[i("path",{d:"M0 0h24v24H0V0z",fill:"none"}),i("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z"})]})}),i("span",{children:"11"})]})]})]})]})}}class y{constructor(e,t,n){d(this,"mxid");d(this,"display_name");d(this,"avatar_url");this.mxid=e,this.display_name=t,this.avatar_url=n}}class v{constructor(e,t){d(this,"event_id");d(this,"content");this.event_id=e,this.content=t}}class ce extends E{constructor(){super();this.state={columns:this.settingColumns()}}settingColumns(){return window.innerWidth>=1400?4:window.innerWidth>=800?3:window.innerWidth>=500?2:1}componentDidMount(){window.addEventListener("resize",()=>this.setState({columns:this.settingColumns()}))}componentWillUnmount(){var e;window.removeEventListener("resize",()=>this.setState({columns:this.settingColumns()})),(e=this.state.lightbox)==null||e.destroy()}render(){return h("div",{class:"flex flex-col",children:[i("header",{children:i(A,{})}),h("main",{class:"m-12 mt-6",children:[i("h1",{class:"text-3xl font-bold mb-4 text-white",children:"Explore"}),i("div",{class:"flex justify-center",id:"gallery",children:h(J,{gap:24,nColumns:this.state.columns,children:[i(p,{user:new y("","Person A","https://unsplash.com/photos/_cvwXhGqG-o/download?ixid=MnwxMjA3fDB8MXxzZWFyY2h8OHx8ZmFjZXxlbnwwfDJ8fHwxNjQ4Nzc5NzYx"),post:new v("",{file:{url:"https://unsplash.com/photos/UWmrTAQ75iA/download?ixid=MnwxMjA3fDB8MXxhbGx8Mnx8fHx8fDJ8fDE2NDg4MzI0Njg"}})}),i(p,{user:new y("","Person B","https://unsplash.com/photos/uJ8LNVCBjFQ/download?ixid=MnwxMjA3fDB8MXxzZWFyY2h8MTN8fGZhY2V8ZW58MHwyfHx8MTY0ODc3OTc2MQ"),post:new v("",{file:{url:"https://unsplash.com/photos/7ptbiEPxKMQ/download?ixid=MnwxMjA3fDB8MXxhbGx8OXx8fHx8fDJ8fDE2NDg4MzI0Njg"}})}),i(p,{user:new y("","Person C","https://unsplash.com/photos/u3pi6HhSYew/download?ixid=MnwxMjA3fDB8MXxzZWFyY2h8MTd8fGZhY2V8ZW58MHwyfHx8MTY0ODc3OTc2MQ"),post:new v("",{file:{url:"https://unsplash.com/photos/ZiPlVmmKEYA/download?ixid=MnwxMjA3fDB8MXxhbGx8Mzl8fHx8fHwyfHwxNjQ4ODM2MDIz"}})}),i(p,{user:new y("","Person D","https://unsplash.com/photos/TW_z_iUD_bQ/download?ixid=MnwxMjA3fDB8MXxzZWFyY2h8ODR8fHBvcnRyYWl0fGVufDB8Mnx8fDE2NDg4NDQ3MjQ"),post:new v("",{file:{url:"https://unsplash.com/photos/FTQJBGDxKXg/download?ixid=MnwxMjA3fDB8MXxhbGx8M3x8fHx8fDJ8fDE2NDg4NDMyNDY"}})}),i(p,{user:new y("","Person E","https://unsplash.com/photos/kYtN89E5ce4/download?ixid=MnwxMjA3fDB8MXxzZWFyY2h8MTA0fHxwb3J0cmFpdHxlbnwwfDJ8fHwxNjQ4ODQ0NzQy"),post:new v("",{file:{url:"https://unsplash.com/photos/zfhxiaZO3JE/download?ixid=MnwxMjA3fDB8MXxhbGx8Mjl8fHx8fHwyfHwxNjQ4ODQzMjQ1"}})}),i(p,{user:new y("","Person E","https://unsplash.com/photos/kBonaevi3yA/download?ixid=MnwxMjA3fDB8MXxzZWFyY2h8MTE5fHxwb3J0cmFpdHxlbnwwfDJ8fHwxNjQ4ODQ0NzQy"),post:new v("",{file:{url:"https://unsplash.com/photos/jm-JKqrAXsA/download?ixid=MnwxMjA3fDB8MXxhbGx8MTAyfHx8fHx8Mnx8MTY0ODg0MzI1NQ"}})})]})})]})]})}}const de=Z(()=>le(()=>import("./Join.73af0a1f.js"),["assets/Join.73af0a1f.js","assets/vendor.d127a5c1.js"]));class he extends E{render(){return i(q,{fallback:h("div",{class:"flex flex-col",children:[i("header",{children:i(A,{})}),i("main",{class:"m-12 mt-6 flex items-center justify-center",children:i("p",{class:"text-lg text-data font-bold",children:"Loading..."})})]}),children:i(z.Provider,{value:window.client,children:h($,{children:[i(ce,{path:"/"}),i(de,{path:"/join"})]})})})}}const _=new l.UnstableValue("m.image","org.matrix.msc1767.image"),O=new l.UnstableValue("m.file","org.matrix.msc1767.file"),L=new l.UnstableValue("m.thumbnail","org.matrix.msc1767.thumbnail"),j=new l.UnstableValue("blurhash","xyz.amorgan.blurhash"),we=new l.NamespacedValue("matrixart.description"),me=new l.NamespacedValue("matrixart.tags"),ue=new l.NamespacedValue("matrixart.nsfw"),xe=new l.NamespacedValue("matrixart.license");class fe extends l.ExtensibleEvent{constructor(e){super(e);d(this,"image");d(this,"text");d(this,"thumbnails");d(this,"blurhash");d(this,"file");d(this,"description");d(this,"tags");d(this,"nsfw",!1);d(this,"license");const t=_.findIn(this.wireContent),n=l.M_TEXT.findIn(this.wireContent),o=O.findIn(this.wireContent),c=L.findIn(this.wireContent),r=j.findIn(this.wireContent),m=we.findIn(this.wireContent),w=me.findIn(this.wireContent),x=ue.findIn(this.wireContent),u=xe.findIn(this.wireContent);if(l.isProvided(t)){if(!t)throw new l.InvalidEventError("m.image is required to be present");this.image=t}if(l.isProvided(o)){if(!o)throw new l.InvalidEventError("m.file is required to be present");this.file=o}if(l.isOptionalAString(n)){if(!t)throw new l.InvalidEventError("m.text is required to be present");this.text=n}if(l.isProvided(c)){if(!Array.isArray(c))throw new l.InvalidEventError("m.thumbnail contents must be an array");this.thumbnails=c}if(l.isOptionalAString(r)&&(this.blurhash=r),l.isOptionalAString(m)&&(this.description=m),l.isProvided(w)){if(!Array.isArray(w))throw new l.InvalidEventError("matrixart.tags contents must be an array");this.tags=w}if(l.isProvided(x)){if(typeof x!="boolean")throw new l.InvalidEventError("matrixart.tags contents must be an boolean");this.nsfw=x}l.isOptionalAString(u)&&(this.license=u)}isEquivalentTo(e){return l.isEventTypeSame(e,_)}serialize(){const e={[l.M_TEXT.name]:this.text,[O.name]:this.file,[_.name]:this.image,[L.name]:this.thumbnails,[j.name]:this.blurhash,["matrixart.description"]:this.description,["matrixart.tags"]:this.tags,["matrixart.nsfw"]:this.nsfw,["matrixart.license"]:this.license};return{type:"m.image",content:e}}}function ge(a){const e=a;return new fe(e)}l.ExtensibleEvents.registerInterpreter(_,ge);l.ExtensibleEvents.unknownInterpretOrder.push(_);function S(){return new Worker("/assets/indexeddb.worker.0ae1a28d.js",{type:"module"})}class T{constructor(e){d(this,"events",[]);d(this,"currentUserDirectory");d(this,"rootDirectory");this.client=e}static async new(){var o,c,r,m,w,x;global.Olm||console.error("global.Olm does not seem to be present. Did you forget to add olm in the out directory?");let e;if(window.localStorage.getItem("server")!==null?e=window.localStorage.getItem("server"):e={}.VITE_MATRIX_SERVER_URL,!e)throw new Error("No matrix server URL defined");let t;if(window.localStorage.getItem("mxid_guest")!==null){const u=(o=window.localStorage.getItem("mxid_guest"))!=null?o:void 0,f=(c=window.localStorage.getItem("access_token_guest"))!=null?c:void 0,g=(r=window.localStorage.getItem("device_id_guest"))!=null?r:void 0;t=s.createClient({useAuthorizationHeader:!0,baseUrl:e,userId:u,accessToken:f,deviceId:g,sessionStore:new I(window.localStorage),store:new s.IndexedDBStore({indexedDB:window.indexedDB,dbName:"matrix-art-sync:guest",localStorage:window.localStorage,workerFactory:()=>new S}),cryptoStore:new s.IndexedDBCryptoStore(window.indexedDB,"matrix-art:crypto")}),t.setGuest(!0)}{const u=s.createClient({}.VITE_MATRIX_SERVER_URL),{user_id:f,device_id:g,access_token:C}=await u.registerGuest();t=s.createClient({useAuthorizationHeader:!0,baseUrl:e,userId:f,accessToken:C,deviceId:g,sessionStore:new I(window.localStorage),store:new s.IndexedDBStore({indexedDB:window.indexedDB,dbName:"matrix-art-sync:guest",localStorage:window.localStorage,workerFactory:()=>new S}),cryptoStore:new s.IndexedDBCryptoStore(window.indexedDB,"matrix-art:crypto")}),t.setGuest(!0),window.localStorage.setItem("mxid_guest",f),window.localStorage.setItem("access_token_guest",C),window.localStorage.setItem("device_id_guest",g),window.localStorage.setItem("server",e)}let n;if(window.localStorage.getItem("mxid")!==null){const u=(m=window.localStorage.getItem("mxid"))!=null?m:void 0,f=(w=window.localStorage.getItem("access_token"))!=null?w:void 0,g=(x=window.localStorage.getItem("device_id"))!=null?x:void 0;n=s.createClient({useAuthorizationHeader:!0,baseUrl:e,userId:u,accessToken:f,deviceId:g,sessionStore:new I(window.localStorage),store:new s.IndexedDBStore({indexedDB:window.indexedDB,dbName:"matrix-art-sync:guest",localStorage:window.localStorage,workerFactory:()=>new S}),cryptoStore:new s.IndexedDBCryptoStore(window.indexedDB,"matrix-art:crypto")}),n.setGuest(!1)}return new T(n!=null?n:t)}isLoggedIn(){return this.client.isLoggedIn()&&!this.client.isGuest()}async start(){this.client.on(s.MatrixEventEvent.Decrypted,(t,n)=>{const o=t.unstableExtensibleEvent;o!=null&&o.isEquivalentTo(_)&&this.events.push(t)}),console.log("start"),await this.client.store.startup(),await this.client.initCrypto(),await this.client.startClient();const e=await this.client.joinRoom({}.VITE_MATRIX_ROOT_FOLDER);await H(1e3),this.rootDirectory=new b(this.client,e.roomId),console.log("started")}async register(e={}.VITE_MATRIX_SERVER_URL,t,n,o=!1){var c;if(this.client.stopClient(),this.client=s.createClient({useAuthorizationHeader:!0,baseUrl:e,userId:t,deviceId:"Matrix Art",sessionStore:new I(window.localStorage),store:new s.IndexedDBStore({indexedDB:window.indexedDB,dbName:"matrix-art-sync:loggedin",localStorage:window.localStorage,workerFactory:()=>new S}),cryptoStore:new s.IndexedDBCryptoStore(window.indexedDB,"matrix-art:crypto")}),await this.client.register(t,n,null,{type:"m.login.dummy"}),window.localStorage.setItem("server",e),window.localStorage.setItem("mxid",t),window.localStorage.setItem("access_token",this.client.getAccessToken()),window.localStorage.setItem("device_id","Matrix Art"),await this.start(),o){const r=(c=this.rootDirectory)==null?void 0:c.getDirectories(),m=this.client.getUserId().replace(":","_");r!=null&&r.some(w=>w.room.name===m)?this.rootDirectory=r==null?void 0:r.find(w=>w.room.name===m):await this.createProfileFolder()}}async login(e,t,n,o=!1){var c;if(this.client.stopClient(),this.client=s.createClient({useAuthorizationHeader:!0,baseUrl:e,userId:t,deviceId:"Matrix Art",sessionStore:new I(window.localStorage),store:new s.IndexedDBStore({indexedDB:window.indexedDB,dbName:"matrix-art-sync:loggedin",localStorage:window.localStorage,workerFactory:()=>new S}),cryptoStore:new s.IndexedDBCryptoStore(window.indexedDB,"matrix-art:crypto")}),await this.client.loginWithPassword(t,n),window.localStorage.setItem("server",e),window.localStorage.setItem("mxid",t),window.localStorage.setItem("access_token",this.client.getAccessToken()),window.localStorage.setItem("device_id","Matrix Art"),await this.start(),o){const r=(c=this.rootDirectory)==null?void 0:c.getDirectories();console.log(r);const m=this.client.getUserId().replace(":","_");r!=null&&r.some(w=>w.room.name===m)?this.rootDirectory=r==null?void 0:r.find(w=>w.room.name===m):await this.createProfileFolder()}}async createProfileFolder(){if(this.client.isGuest())throw new Error("Cannot create a file tree space as a guest");const e=await this.client.joinRoom({}.VITE_MATRIX_ROOT_FOLDER);await H(1e3),this.rootDirectory=new b(this.client,e.roomId);const t=this.client.getUserId().replace(":","_");this.currentUserDirectory=await this.createPublicSubDirectory(this.rootDirectory,t),await this.createPublicSubDirectory(this.currentUserDirectory,"Timeline")}async createPublicFileTree(e){if(this.client.isGuest())throw new Error("Cannot create a file tree space as a guest");const{room_id:t}=await this.client.createRoom({name:e,preset:s.Preset.PublicChat,power_level_content_override:N(R({},K),{users:{[{}.VITE_MATRIX_INSTANCE_ADMIN]:100,[this.client.getUserId()]:100}}),invite:[{}.VITE_MATRIX_INSTANCE_ADMIN],creation_content:{[s.RoomCreateTypeField]:s.RoomType.Space},initial_state:[{type:s.UNSTABLE_MSC3088_PURPOSE.name,state_key:s.UNSTABLE_MSC3089_TREE_SUBTYPE.name,content:{[s.UNSTABLE_MSC3088_ENABLED.name]:!0}},{type:s.EventType.RoomEncryption,state_key:"",content:{algorithm:ee}},{type:s.EventType.RoomGuestAccess,state_key:"",content:{guest_access:"can_join"}},{type:s.EventType.RoomHistoryVisibility,state_key:"",content:{history_visibility:"world_readable"}}]}),n=this.client.getRoom(t),o=n==null?void 0:n.getLiveTimeline().getState(s.EventTimeline.FORWARDS).getStateEvents(s.EventType.RoomPowerLevels,"");if(!o)throw new Error("Failed to find PL event");return await this.client.setPowerLevel(t,this.client.getUserId(),50,o),new b(this.client,t)}async createPublicSubDirectory(e,t){const n=await this.createPublicFileTree(t);return await this.client.sendStateEvent(e.roomId,s.EventType.SpaceChild,{via:[this.client.getDomain()]},n.roomId),await this.client.sendStateEvent(n.roomId,s.EventType.SpaceParent,{via:[this.client.getDomain()]},e.roomId),n}}function H(a){return new Promise(e=>setTimeout(e,a))}function pe(){return te.init({locateFile:()=>ne}).then(()=>{console.log("Using WebAssembly Olm")}).catch(a=>(console.log("Failed to load Olm: trying legacy version",a),new Promise((e,t)=>{const n=document.createElement("script");n.src=ie,n.onload=e,n.onerror=t,document.body.appendChild(n)}).then(()=>window.Olm.init()).then(()=>{console.log("Using legacy Olm")}).catch(e=>{console.log("Both WebAssembly and asm.js Olm failed!",e)})))}function F(){T.new().then(a=>{window.client=a,a.start().then(()=>{oe(i(he,{}),document.querySelector("#app"))})})}pe().then(()=>{F()}).catch(()=>{F()});export{z as C,A as H,i as a,h as j}; diff --git a/pr-121/assets/vendor.d127a5c1.js b/pr-121/assets/vendor.d127a5c1.js @@ -1,4 +1,4 @@ -var A_=Object.defineProperty,D_=Object.defineProperties;var U_=Object.getOwnPropertyDescriptors;var wf=Object.getOwnPropertySymbols;var $_=Object.prototype.hasOwnProperty,x_=Object.prototype.propertyIsEnumerable;var Rf=(n,e,t)=>e in n?A_(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,uc=(n,e)=>{for(var t in e||(e={}))$_.call(e,t)&&Rf(n,t,e[t]);if(wf)for(var t of wf(e))x_.call(e,t)&&Rf(n,t,e[t]);return n},If=(n,e)=>D_(n,U_(e));var Ga,J,Tm,Om,Ea,km,Tf,Cm,ol={},Pm=[],N_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function zn(n,e){for(var t in e)n[t]=e[t];return n}function Mm(n){var e=n.parentNode;e&&e.removeChild(n)}function cr(n,e,t){var r,i,s,o={};for(s in e)s=="key"?r=e[s]:s=="ref"?i=e[s]:o[s]=e[s];if(arguments.length>2&&(o.children=arguments.length>3?Ga.call(arguments,2):t),typeof n=="function"&&n.defaultProps!=null)for(s in n.defaultProps)o[s]===void 0&&(o[s]=n.defaultProps[s]);return Sa(n,o,r,i,null)}function Sa(n,e,t,r,i){var s={type:n,props:e,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i==null?++Tm:i};return i==null&&J.vnode!=null&&J.vnode(s),s}function Dh(){return{current:null}}function Zr(n){return n.children}function Er(n,e){this.props=n,this.context=e}function mo(n,e){if(e==null)return n.__?mo(n.__,n.__.__k.indexOf(n)+1):null;for(var t;e<n.__k.length;e++)if((t=n.__k[e])!=null&&t.__e!=null)return t.__e;return typeof n.type=="function"?mo(n):null}function Am(n){var e,t;if((n=n.__)!=null&&n.__c!=null){for(n.__e=n.__c.base=null,e=0;e<n.__k.length;e++)if((t=n.__k[e])!=null&&t.__e!=null){n.__e=n.__c.base=t.__e;break}return Am(n)}}function gd(n){(!n.__d&&(n.__d=!0)&&Ea.push(n)&&!al.__r++||Tf!==J.debounceRendering)&&((Tf=J.debounceRendering)||km)(al)}function al(){for(var n;al.__r=Ea.length;)n=Ea.sort(function(e,t){return e.__v.__b-t.__v.__b}),Ea=[],n.some(function(e){var t,r,i,s,o,c;e.__d&&(o=(s=(t=e).__v).__e,(c=t.__P)&&(r=[],(i=zn({},s)).__v=s.__v+1,Uh(c,s,i,t.__n,c.ownerSVGElement!==void 0,s.__h!=null?[o]:null,r,o==null?mo(s):o,s.__h),xm(r,s),s.__e!=o&&Am(s)))})}function Dm(n,e,t,r,i,s,o,c,l,u){var a,g,m,p,E,I,w,k=r&&r.__k||Pm,P=k.length;for(t.__k=[],a=0;a<e.length;a++)if((p=t.__k[a]=(p=e[a])==null||typeof p=="boolean"?null:typeof p=="string"||typeof p=="number"||typeof p=="bigint"?Sa(null,p,null,null,p):Array.isArray(p)?Sa(Zr,{children:p},null,null,null):p.__b>0?Sa(p.type,p.props,p.key,null,p.__v):p)!=null){if(p.__=t,p.__b=t.__b+1,(m=k[a])===null||m&&p.key==m.key&&p.type===m.type)k[a]=void 0;else for(g=0;g<P;g++){if((m=k[g])&&p.key==m.key&&p.type===m.type){k[g]=void 0;break}m=null}Uh(n,p,m=m||ol,i,s,o,c,l,u),E=p.__e,(g=p.ref)&&m.ref!=g&&(w||(w=[]),m.ref&&w.push(m.ref,null,p),w.push(g,p.__c||E,p)),E!=null?(I==null&&(I=E),typeof p.type=="function"&&p.__k===m.__k?p.__d=l=Um(p,l,n):l=$m(n,p,m,k,E,l),typeof t.type=="function"&&(t.__d=l)):l&&m.__e==l&&l.parentNode!=n&&(l=mo(m))}for(t.__e=I,a=P;a--;)k[a]!=null&&(typeof t.type=="function"&&k[a].__e!=null&&k[a].__e==t.__d&&(t.__d=mo(r,a+1)),Lm(k[a],k[a]));if(w)for(a=0;a<w.length;a++)Nm(w[a],w[++a],w[++a])}function Um(n,e,t){for(var r,i=n.__k,s=0;i&&s<i.length;s++)(r=i[s])&&(r.__=n,e=typeof r.type=="function"?Um(r,e,t):$m(t,r,r,i,r.__e,e));return e}function Nr(n,e){return e=e||[],n==null||typeof n=="boolean"||(Array.isArray(n)?n.some(function(t){Nr(t,e)}):e.push(n)),e}function $m(n,e,t,r,i,s){var o,c,l;if(e.__d!==void 0)o=e.__d,e.__d=void 0;else if(t==null||i!=s||i.parentNode==null)e:if(s==null||s.parentNode!==n)n.appendChild(i),o=null;else{for(c=s,l=0;(c=c.nextSibling)&&l<r.length;l+=2)if(c==i)break e;n.insertBefore(i,s),o=s}return o!==void 0?o:i.nextSibling}function L_(n,e,t,r,i){var s;for(s in t)s==="children"||s==="key"||s in e||cl(n,s,null,t[s],r);for(s in e)i&&typeof e[s]!="function"||s==="children"||s==="key"||s==="value"||s==="checked"||t[s]===e[s]||cl(n,s,e[s],t[s],r)}function Of(n,e,t){e[0]==="-"?n.setProperty(e,t):n[e]=t==null?"":typeof t!="number"||N_.test(e)?t:t+"px"}function cl(n,e,t,r,i){var s;e:if(e==="style")if(typeof t=="string")n.style.cssText=t;else{if(typeof r=="string"&&(n.style.cssText=r=""),r)for(e in r)t&&e in t||Of(n.style,e,"");if(t)for(e in t)r&&t[e]===r[e]||Of(n.style,e,t[e])}else if(e[0]==="o"&&e[1]==="n")s=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in n?e.toLowerCase().slice(2):e.slice(2),n.l||(n.l={}),n.l[e+s]=t,t?r||n.addEventListener(e,s?Cf:kf,s):n.removeEventListener(e,s?Cf:kf,s);else if(e!=="dangerouslySetInnerHTML"){if(i)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in n)try{n[e]=t==null?"":t;break e}catch{}typeof t=="function"||(t!=null&&(t!==!1||e[0]==="a"&&e[1]==="r")?n.setAttribute(e,t):n.removeAttribute(e))}}function kf(n){this.l[n.type+!1](J.event?J.event(n):n)}function Cf(n){this.l[n.type+!0](J.event?J.event(n):n)}function Uh(n,e,t,r,i,s,o,c,l){var u,a,g,m,p,E,I,w,k,P,S,T=e.type;if(e.constructor!==void 0)return null;t.__h!=null&&(l=t.__h,c=e.__e=t.__e,e.__h=null,s=[c]),(u=J.__b)&&u(e);try{e:if(typeof T=="function"){if(w=e.props,k=(u=T.contextType)&&r[u.__c],P=u?k?k.props.value:u.__:r,t.__c?I=(a=e.__c=t.__c).__=a.__E:("prototype"in T&&T.prototype.render?e.__c=a=new T(w,P):(e.__c=a=new Er(w,P),a.constructor=T,a.render=K_),k&&k.sub(a),a.props=w,a.state||(a.state={}),a.context=P,a.__n=r,g=a.__d=!0,a.__h=[]),a.__s==null&&(a.__s=a.state),T.getDerivedStateFromProps!=null&&(a.__s==a.state&&(a.__s=zn({},a.__s)),zn(a.__s,T.getDerivedStateFromProps(w,a.__s))),m=a.props,p=a.state,g)T.getDerivedStateFromProps==null&&a.componentWillMount!=null&&a.componentWillMount(),a.componentDidMount!=null&&a.__h.push(a.componentDidMount);else{if(T.getDerivedStateFromProps==null&&w!==m&&a.componentWillReceiveProps!=null&&a.componentWillReceiveProps(w,P),!a.__e&&a.shouldComponentUpdate!=null&&a.shouldComponentUpdate(w,a.__s,P)===!1||e.__v===t.__v){a.props=w,a.state=a.__s,e.__v!==t.__v&&(a.__d=!1),a.__v=e,e.__e=t.__e,e.__k=t.__k,e.__k.forEach(function(D){D&&(D.__=e)}),a.__h.length&&o.push(a);break e}a.componentWillUpdate!=null&&a.componentWillUpdate(w,a.__s,P),a.componentDidUpdate!=null&&a.__h.push(function(){a.componentDidUpdate(m,p,E)})}a.context=P,a.props=w,a.state=a.__s,(u=J.__r)&&u(e),a.__d=!1,a.__v=e,a.__P=n,u=a.render(a.props,a.state,a.context),a.state=a.__s,a.getChildContext!=null&&(r=zn(zn({},r),a.getChildContext())),g||a.getSnapshotBeforeUpdate==null||(E=a.getSnapshotBeforeUpdate(m,p)),S=u!=null&&u.type===Zr&&u.key==null?u.props.children:u,Dm(n,Array.isArray(S)?S:[S],e,t,r,i,s,o,c,l),a.base=e.__e,e.__h=null,a.__h.length&&o.push(a),I&&(a.__E=a.__=null),a.__e=!1}else s==null&&e.__v===t.__v?(e.__k=t.__k,e.__e=t.__e):e.__e=B_(t.__e,e,t,r,i,s,o,l);(u=J.diffed)&&u(e)}catch(D){e.__v=null,(l||s!=null)&&(e.__e=c,e.__h=!!l,s[s.indexOf(c)]=null),J.__e(D,e,t)}}function xm(n,e){J.__c&&J.__c(e,n),n.some(function(t){try{n=t.__h,t.__h=[],n.some(function(r){r.call(t)})}catch(r){J.__e(r,t.__v)}})}function B_(n,e,t,r,i,s,o,c){var l,u,a,g=t.props,m=e.props,p=e.type,E=0;if(p==="svg"&&(i=!0),s!=null){for(;E<s.length;E++)if((l=s[E])&&"setAttribute"in l==!!p&&(p?l.localName===p:l.nodeType===3)){n=l,s[E]=null;break}}if(n==null){if(p===null)return document.createTextNode(m);n=i?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,m.is&&m),s=null,c=!1}if(p===null)g===m||c&&n.data===m||(n.data=m);else{if(s=s&&Ga.call(n.childNodes),u=(g=t.props||ol).dangerouslySetInnerHTML,a=m.dangerouslySetInnerHTML,!c){if(s!=null)for(g={},E=0;E<n.attributes.length;E++)g[n.attributes[E].name]=n.attributes[E].value;(a||u)&&(a&&(u&&a.__html==u.__html||a.__html===n.innerHTML)||(n.innerHTML=a&&a.__html||""))}if(L_(n,m,g,i,c),a)e.__k=[];else if(E=e.props.children,Dm(n,Array.isArray(E)?E:[E],e,t,r,i&&p!=="foreignObject",s,o,s?s[0]:t.__k&&mo(t,0),c),s!=null)for(E=s.length;E--;)s[E]!=null&&Mm(s[E]);c||("value"in m&&(E=m.value)!==void 0&&(E!==n.value||p==="progress"&&!E||p==="option"&&E!==g.value)&&cl(n,"value",E,g.value,!1),"checked"in m&&(E=m.checked)!==void 0&&E!==n.checked&&cl(n,"checked",E,g.checked,!1))}return n}function Nm(n,e,t){try{typeof n=="function"?n(e):n.current=e}catch(r){J.__e(r,t)}}function Lm(n,e,t){var r,i;if(J.unmount&&J.unmount(n),(r=n.ref)&&(r.current&&r.current!==n.__e||Nm(r,null,e)),(r=n.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){J.__e(s,e)}r.base=r.__P=null}if(r=n.__k)for(i=0;i<r.length;i++)r[i]&&Lm(r[i],e,typeof n.type!="function");t||n.__e==null||Mm(n.__e),n.__e=n.__d=void 0}function K_(n,e,t){return this.constructor(n,t)}function yo(n,e,t){var r,i,s;J.__&&J.__(n,e),i=(r=typeof t=="function")?null:t&&t.__k||e.__k,s=[],Uh(e,n=(!r&&t||e).__k=cr(Zr,null,[n]),i||ol,ol,e.ownerSVGElement!==void 0,!r&&t?[t]:i?null:e.firstChild?Ga.call(e.childNodes):null,s,!r&&t?t:i?i.__e:e.firstChild,r),xm(s,n)}function $h(n,e){yo(n,e,$h)}function xh(n,e,t){var r,i,s,o=zn({},n.props);for(s in e)s=="key"?r=e[s]:s=="ref"?i=e[s]:o[s]=e[s];return arguments.length>2&&(o.children=arguments.length>3?Ga.call(arguments,2):t),Sa(n.type,o,r||n.key,i||n.ref,null)}function Il(n,e){var t={__c:e="__cC"+Cm++,__:n,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,s;return this.getChildContext||(i=[],(s={})[e]=this,this.getChildContext=function(){return s},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&i.some(gd)},this.sub=function(o){i.push(o);var c=o.componentWillUnmount;o.componentWillUnmount=function(){i.splice(i.indexOf(o),1),c&&c.call(o)}}),r.children}};return t.Provider.__=t.Consumer.contextType=t}Ga=Pm.slice,J={__e:function(n,e,t,r){for(var i,s,o;e=e.__;)if((i=e.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(n)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(n,r||{}),o=i.__d),o)return i.__E=i}catch(c){n=c}throw n}},Tm=0,Om=function(n){return n!=null&&n.constructor===void 0},Er.prototype.setState=function(n,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=zn({},this.state),typeof n=="function"&&(n=n(zn({},t),this.props)),n&&zn(t,n),n!=null&&this.__v&&(e&&this.__h.push(e),gd(this))},Er.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),gd(this))},Er.prototype.render=Zr,Ea=[],km=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,al.__r=0,Cm=0;var F_=Object.freeze(Object.defineProperty({__proto__:null,render:yo,hydrate:$h,createElement:cr,h:cr,Fragment:Zr,createRef:Dh,get isValidElement(){return Om},Component:Er,cloneElement:xh,createContext:Il,toChildArray:Nr,get options(){return J}},Symbol.toStringTag,{value:"Module"})),Rs,bt,Pf,vo=0,Bm=[],Mf=J.__b,Af=J.__r,Df=J.diffed,Uf=J.__c,$f=J.unmount;function ko(n,e){J.__h&&J.__h(bt,n,vo||e),vo=0;var t=bt.__H||(bt.__H={__:[],__h:[]});return n>=t.__.length&&t.__.push({}),t.__[n]}function Nh(n){return vo=1,Lh(Wm,n)}function Lh(n,e,t){var r=ko(Rs++,2);return r.t=n,r.__c||(r.__=[t?t(e):Wm(void 0,e),function(i){var s=r.t(r.__[0],i);r.__[0]!==s&&(r.__=[s,r.__[1]],r.__c.setState({}))}],r.__c=bt),r.__}function Km(n,e){var t=ko(Rs++,3);!J.__s&&Kh(t.__H,e)&&(t.__=n,t.__H=e,bt.__H.__h.push(t))}function Bh(n,e){var t=ko(Rs++,4);!J.__s&&Kh(t.__H,e)&&(t.__=n,t.__H=e,bt.__h.push(t))}function Fm(n){return vo=5,Tl(function(){return{current:n}},[])}function qm(n,e,t){vo=6,Bh(function(){return typeof n=="function"?(n(e()),function(){return n(null)}):n?(n.current=e(),function(){return n.current=null}):void 0},t==null?t:t.concat(n))}function Tl(n,e){var t=ko(Rs++,7);return Kh(t.__H,e)&&(t.__=n(),t.__H=e,t.__h=n),t.__}function jm(n,e){return vo=8,Tl(function(){return n},e)}function Vm(n){var e=bt.context[n.__c],t=ko(Rs++,9);return t.c=n,e?(t.__==null&&(t.__=!0,e.sub(bt)),e.props.value):n.__}function Gm(n,e){J.useDebugValue&&J.useDebugValue(e?e(n):n)}function q_(n){var e=ko(Rs++,10),t=Nh();return e.__=n,bt.componentDidCatch||(bt.componentDidCatch=function(r){e.__&&e.__(r),t[1](r)}),[t[0],function(){t[1](void 0)}]}function j_(){for(var n;n=Bm.shift();)if(n.__P)try{n.__H.__h.forEach(Gc),n.__H.__h.forEach(md),n.__H.__h=[]}catch(e){n.__H.__h=[],J.__e(e,n.__v)}}J.__b=function(n){bt=null,Mf&&Mf(n)},J.__r=function(n){Af&&Af(n),Rs=0;var e=(bt=n.__c).__H;e&&(e.__h.forEach(Gc),e.__h.forEach(md),e.__h=[])},J.diffed=function(n){Df&&Df(n);var e=n.__c;e&&e.__H&&e.__H.__h.length&&(Bm.push(e)!==1&&Pf===J.requestAnimationFrame||((Pf=J.requestAnimationFrame)||function(t){var r,i=function(){clearTimeout(s),xf&&cancelAnimationFrame(r),setTimeout(t)},s=setTimeout(i,100);xf&&(r=requestAnimationFrame(i))})(j_)),bt=null},J.__c=function(n,e){e.some(function(t){try{t.__h.forEach(Gc),t.__h=t.__h.filter(function(r){return!r.__||md(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],J.__e(r,t.__v)}}),Uf&&Uf(n,e)},J.unmount=function(n){$f&&$f(n);var e,t=n.__c;t&&t.__H&&(t.__H.__.forEach(function(r){try{Gc(r)}catch(i){e=i}}),e&&J.__e(e,t.__v))};var xf=typeof requestAnimationFrame=="function";function Gc(n){var e=bt,t=n.__c;typeof t=="function"&&(n.__c=void 0,t()),bt=e}function md(n){var e=bt;n.__c=n.__(),bt=e}function Kh(n,e){return!n||n.length!==e.length||e.some(function(t,r){return t!==n[r]})}function Wm(n,e){return typeof e=="function"?e(n):e}var V_={};function ga(n,e){for(var t in e)n[t]=e[t];return n}function G_(n,e,t){var r,i=/(?:\?([^#]*))?(#.*)?$/,s=n.match(i),o={};if(s&&s[1])for(var c=s[1].split("&"),l=0;l<c.length;l++){var u=c[l].split("=");o[decodeURIComponent(u[0])]=decodeURIComponent(u.slice(1).join("="))}n=yd(n.replace(i,"")),e=yd(e||"");for(var a=Math.max(n.length,e.length),g=0;g<a;g++)if(e[g]&&e[g].charAt(0)===":"){var m=e[g].replace(/(^:|[+*?]+$)/g,""),p=(e[g].match(/[+*?]+$/)||V_)[0]||"",E=~p.indexOf("+"),I=~p.indexOf("*"),w=n[g]||"";if(!w&&!I&&(p.indexOf("?")<0||E)){r=!1;break}if(o[m]=decodeURIComponent(w),E||I){o[m]=n.slice(g).map(decodeURIComponent).join("/");break}}else if(e[g]!==n[g]){r=!1;break}return(t.default===!0||r!==!1)&&o}function W_(n,e){return n.rank<e.rank?1:n.rank>e.rank?-1:n.index-e.index}function H_(n,e){return n.index=e,n.rank=function(t){return t.props.default?0:yd(t.props.path).map(Y_).join("")}(n),n.props}function yd(n){return n.replace(/(^\/+|\/+$)/g,"").split("/")}function Y_(n){return n.charAt(0)==":"?1+"*+?".indexOf(n.charAt(n.length-1))||4:5}var z_={},os=[],Nf=[],yr=null,Hm={url:Fh()},J_=Il(Hm);function Fh(){var n;return""+((n=yr&&yr.location?yr.location:yr&&yr.getCurrentLocation?yr.getCurrentLocation():typeof location!="undefined"?location:z_).pathname||"")+(n.search||"")}function X_(n,e){return e===void 0&&(e=!1),typeof n!="string"&&n.url&&(e=n.replace,n=n.url),function(t){for(var r=os.length;r--;)if(os[r].canRoute(t))return!0;return!1}(n)&&function(t,r){r===void 0&&(r="push"),yr&&yr[r]?yr[r](t):typeof history!="undefined"&&history[r+"State"]&&history[r+"State"](null,null,t)}(n,e?"replace":"push"),Ym(n)}function Ym(n){for(var e=!1,t=0;t<os.length;t++)os[t].routeTo(n)&&(e=!0);return e}function Q_(n){if(n&&n.getAttribute){var e=n.getAttribute("href"),t=n.getAttribute("target");if(e&&e.match(/^\//g)&&(!t||t.match(/^_?self$/i)))return X_(e)}}function Z_(n){return n.stopImmediatePropagation&&n.stopImmediatePropagation(),n.stopPropagation&&n.stopPropagation(),n.preventDefault(),!1}function zm(n){if(!(n.ctrlKey||n.metaKey||n.altKey||n.shiftKey||n.button)){var e=n.target;do if(e.localName==="a"&&e.getAttribute("href")){if(e.hasAttribute("data-native")||e.hasAttribute("native"))return;if(Q_(e))return Z_(n)}while(e=e.parentNode)}}var Lf=!1;function eE(n){n.history&&(yr=n.history),this.state={url:n.url||Fh()}}ga(eE.prototype=new Er,{shouldComponentUpdate:function(n){return n.static!==!0||n.url!==this.props.url||n.onChange!==this.props.onChange},canRoute:function(n){var e=Nr(this.props.children);return this.g(e,n)!==void 0},routeTo:function(n){this.setState({url:n});var e=this.canRoute(n);return this.p||this.forceUpdate(),e},componentWillMount:function(){this.p=!0},componentDidMount:function(){var n=this;Lf||(Lf=!0,yr||addEventListener("popstate",function(){Ym(Fh())}),addEventListener("click",zm)),os.push(this),yr&&(this.u=yr.listen(function(e){var t=e.location||e;n.routeTo(""+(t.pathname||"")+(t.search||""))})),this.p=!1},componentWillUnmount:function(){typeof this.u=="function"&&this.u(),os.splice(os.indexOf(this),1)},componentWillUpdate:function(){this.p=!0},componentDidUpdate:function(){this.p=!1},g:function(n,e){n=n.filter(H_).sort(W_);for(var t=0;t<n.length;t++){var r=n[t],i=G_(e,r.props.path,r.props);if(i)return[r,i]}},render:function(n,e){var t,r,i=n.onChange,s=e.url,o=this.c,c=this.g(Nr(n.children),s);if(c&&(r=xh(c[0],ga(ga({url:s,matches:t=c[1]},t),{key:void 0,ref:void 0}))),s!==(o&&o.url)){ga(Hm,o=this.c={url:s,previous:o&&o.url,current:r,path:r?r.props.path:null,matches:t}),o.router=this,o.active=r?[r]:[];for(var l=Nf.length;l--;)Nf[l]({});typeof i=="function"&&i(o)}return cr(J_.Provider,{value:o},r)}});var UA=function(n){return cr("a",ga({onClick:zm},n))};function Jm(n,e){for(var t in e)n[t]=e[t];return n}function vd(n,e){for(var t in n)if(t!=="__source"&&!(t in e))return!0;for(var r in e)if(r!=="__source"&&n[r]!==e[r])return!0;return!1}function ll(n){this.props=n}function Xm(n,e){function t(i){var s=this.props.ref,o=s==i.ref;return!o&&s&&(s.call?s(null):s.current=null),e?!e(this.props,i)||!o:vd(this.props,i)}function r(i){return this.shouldComponentUpdate=t,cr(n,i)}return r.displayName="Memo("+(n.displayName||n.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(ll.prototype=new Er).isPureReactComponent=!0,ll.prototype.shouldComponentUpdate=function(n,e){return vd(this.props,n)||vd(this.state,e)};var Bf=J.__b;J.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),Bf&&Bf(n)};var tE=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Qm(n){function e(t,r){var i=Jm({},t);return delete i.ref,n(i,!(r=t.ref||r)||typeof r=="object"&&Object.keys(r).length===0?null:r)}return e.$$typeof=tE,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(n.displayName||n.name)+")",e}var Kf=function(n,e){return n==null?null:Nr(Nr(n).map(e))},Zm={map:Kf,forEach:Kf,count:function(n){return n?Nr(n).length:0},only:function(n){var e=Nr(n);if(e.length!==1)throw"Children.only";return e[0]},toArray:Nr},rE=J.__e;J.__e=function(n,e,t,r){if(n.then){for(var i,s=e;s=s.__;)if((i=s.__c)&&i.__c)return e.__e==null&&(e.__e=t.__e,e.__k=t.__k),i.__c(n,e)}rE(n,e,t,r)};var Ff=J.unmount;function ba(){this.__u=0,this.t=null,this.__b=null}function ey(n){var e=n.__.__c;return e&&e.__e&&e.__e(n)}function ty(n){var e,t,r;function i(s){if(e||(e=n()).then(function(o){t=o.default||o},function(o){r=o}),r)throw r;if(!t)throw e;return cr(t,s)}return i.displayName="Lazy",i.__f=!0,i}function so(){this.u=null,this.o=null}J.unmount=function(n){var e=n.__c;e&&e.__R&&e.__R(),e&&n.__h===!0&&(n.type=null),Ff&&Ff(n)},(ba.prototype=new Er).__c=function(n,e){var t=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(t);var i=ey(r.__v),s=!1,o=function(){s||(s=!0,t.__R=null,i?i(c):c())};t.__R=o;var c=function(){if(!--r.__u){if(r.state.__e){var u=r.state.__e;r.__v.__k[0]=function g(m,p,E){return m&&(m.__v=null,m.__k=m.__k&&m.__k.map(function(I){return g(I,p,E)}),m.__c&&m.__c.__P===p&&(m.__e&&E.insertBefore(m.__e,m.__d),m.__c.__e=!0,m.__c.__P=E)),m}(u,u.__c.__P,u.__c.__O)}var a;for(r.setState({__e:r.__b=null});a=r.t.pop();)a.forceUpdate()}},l=e.__h===!0;r.__u++||l||r.setState({__e:r.__b=r.__v.__k[0]}),n.then(o,o)},ba.prototype.componentWillUnmount=function(){this.t=[]},ba.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function s(o,c,l){return o&&(o.__c&&o.__c.__H&&(o.__c.__H.__.forEach(function(u){typeof u.__c=="function"&&u.__c()}),o.__c.__H=null),(o=Jm({},o)).__c!=null&&(o.__c.__P===l&&(o.__c.__P=c),o.__c=null),o.__k=o.__k&&o.__k.map(function(u){return s(u,c,l)})),o}(this.__b,t,r.__O=r.__P)}this.__b=null}var i=e.__e&&cr(Zr,null,n.fallback);return i&&(i.__h=null),[cr(Zr,null,e.__e?null:n.children),i]};var qf=function(n,e,t){if(++t[1]===t[0]&&n.o.delete(e),n.props.revealOrder&&(n.props.revealOrder[0]!=="t"||!n.o.size))for(t=n.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;n.u=t=t[2]}};function nE(n){return this.getChildContext=function(){return n.context},n.children}function iE(n){var e=this,t=n.i;e.componentWillUnmount=function(){yo(null,e.l),e.l=null,e.i=null},e.i&&e.i!==t&&e.componentWillUnmount(),n.__v?(e.l||(e.i=t,e.l={nodeType:1,parentNode:t,childNodes:[],appendChild:function(r){this.childNodes.push(r),e.i.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),e.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),e.i.removeChild(r)}}),yo(cr(nE,{context:e.context},n.__v),e.l)):e.l&&e.componentWillUnmount()}function ry(n,e){return cr(iE,{__v:n,i:e})}(so.prototype=new Er).__e=function(n){var e=this,t=ey(e.__v),r=e.o.get(n);return r[0]++,function(i){var s=function(){e.props.revealOrder?(r.push(i),qf(e,n,r)):i()};t?t(s):s()}},so.prototype.render=function(n){this.u=null,this.o=new Map;var e=Nr(n.children);n.revealOrder&&n.revealOrder[0]==="b"&&e.reverse();for(var t=e.length;t--;)this.o.set(e[t],this.u=[1,0,this.u]);return n.children},so.prototype.componentDidUpdate=so.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(e,t){qf(n,t,e)})};var ny=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,sE=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,oE=typeof document!="undefined",aE=function(n){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(n)};function iy(n,e,t){return e.__k==null&&(e.textContent=""),yo(n,e),typeof t=="function"&&t(),n?n.__c:null}function sy(n,e,t){return $h(n,e),typeof t=="function"&&t(),n?n.__c:null}Er.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(n){Object.defineProperty(Er.prototype,n,{configurable:!0,get:function(){return this["UNSAFE_"+n]},set:function(e){Object.defineProperty(this,n,{configurable:!0,writable:!0,value:e})}})});var jf=J.event;function cE(){}function lE(){return this.cancelBubble}function uE(){return this.defaultPrevented}J.event=function(n){return jf&&(n=jf(n)),n.persist=cE,n.isPropagationStopped=lE,n.isDefaultPrevented=uE,n.nativeEvent=n};var oy,Vf={configurable:!0,get:function(){return this.class}},Gf=J.vnode;J.vnode=function(n){var e=n.type,t=n.props,r=t;if(typeof e=="string"){var i=e.indexOf("-")===-1;for(var s in r={},t){var o=t[s];oE&&s==="children"&&e==="noscript"||s==="value"&&"defaultValue"in t&&o==null||(s==="defaultValue"&&"value"in t&&t.value==null?s="value":s==="download"&&o===!0?o="":/ondoubleclick/i.test(s)?s="ondblclick":/^onchange(textarea|input)/i.test(s+e)&&!aE(t.type)?s="oninput":/^onfocus$/i.test(s)?s="onfocusin":/^onblur$/i.test(s)?s="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(s)?s=s.toLowerCase():i&&sE.test(s)?s=s.replace(/[A-Z0-9]/,"-$&").toLowerCase():o===null&&(o=void 0),r[s]=o)}e=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=Nr(t.children).forEach(function(c){c.props.selected=r.value.indexOf(c.props.value)!=-1})),e=="select"&&r.defaultValue!=null&&(r.value=Nr(t.children).forEach(function(c){c.props.selected=r.multiple?r.defaultValue.indexOf(c.props.value)!=-1:r.defaultValue==c.props.value})),n.props=r,t.class!=t.className&&(Vf.enumerable="className"in t,t.className!=null&&(r.class=t.className),Object.defineProperty(r,"className",Vf))}n.$$typeof=ny,Gf&&Gf(n)};var Wf=J.__r;J.__r=function(n){Wf&&Wf(n),oy=n.__c};var ay={ReactCurrentDispatcher:{current:{readContext:function(n){return oy.__n[n.__c].props.value}}}},dE="17.0.2";function cy(n){return cr.bind(null,n)}function qh(n){return!!n&&n.$$typeof===ny}function ly(n){return qh(n)?xh.apply(null,arguments):n}function uy(n){return!!n.__k&&(yo(null,n),!0)}function dy(n){return n&&(n.base||n.nodeType===1&&n)||null}var hy=function(n,e){return n(e)},fy=function(n,e){return n(e)},hE=Zr,fE={useState:Nh,useReducer:Lh,useEffect:Km,useLayoutEffect:Bh,useRef:Fm,useImperativeHandle:qm,useMemo:Tl,useCallback:jm,useContext:Vm,useDebugValue:Gm,version:"17.0.2",Children:Zm,render:iy,hydrate:sy,unmountComponentAtNode:uy,createPortal:ry,createElement:cr,createContext:Il,createFactory:cy,cloneElement:ly,createRef:Dh,Fragment:Zr,isValidElement:qh,findDOMNode:dy,Component:Er,PureComponent:ll,memo:Xm,forwardRef:Qm,flushSync:fy,unstable_batchedUpdates:hy,StrictMode:Zr,Suspense:ba,SuspenseList:so,lazy:ty,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ay},pE=Object.freeze(Object.defineProperty({__proto__:null,default:fE,version:dE,Children:Zm,render:iy,hydrate:sy,unmountComponentAtNode:uy,createPortal:ry,createFactory:cy,cloneElement:ly,isValidElement:qh,findDOMNode:dy,PureComponent:ll,memo:Xm,forwardRef:Qm,flushSync:fy,unstable_batchedUpdates:hy,StrictMode:hE,Suspense:ba,SuspenseList:so,lazy:ty,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ay,createElement:cr,createContext:Il,createRef:Dh,Fragment:Zr,Component:Er,useState:Nh,useReducer:Lh,useEffect:Km,useLayoutEffect:Bh,useRef:Fm,useImperativeHandle:qm,useMemo:Tl,useCallback:jm,useContext:Vm,useDebugValue:Gm,useErrorBoundary:q_},Symbol.toStringTag,{value:"Module"})),j=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function jh(n){if(n.__esModule)return n;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(n).forEach(function(t){var r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:function(){return n[t]}})}),e}var gE=jh(F_),mE,yE,Hf=gE,vE=0;function Yf(n,e,t,r,i){var s,o,c={};for(o in e)o=="ref"?s=e[o]:c[o]=e[o];var l={type:n,props:c,key:t,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--vE,__source:i,__self:r};if(typeof n=="function"&&(s=n.defaultProps))for(o in s)c[o]===void 0&&(c[o]=s[o]);return Hf.options.vnode&&Hf.options.vnode(l),l}yE=Yf,mE=Yf;var py={},_E=jh(pE);function EE(n){if(n&&n.__esModule)return n;var e=Object.create(null);return n&&Object.keys(n).forEach(function(t){if(t!=="default"){var r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:function(){return n[t]}})}}),e.default=n,Object.freeze(e)}Object.defineProperty(py,"__esModule",{value:!0});var Fn=EE(_E);function SE({debounceMs:n}){const[e,t]=Fn.useState(window.innerWidth),r=function(i,s){let o=null;return(...c)=>{clearTimeout(o),o=setTimeout(()=>i(c),s)}}(()=>t(window.innerWidth),n);return Fn.useEffect(()=>(window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)),[r]),e}const bE=Fn.forwardRef(({as:n="div",children:e,className:t,style:r,gap:i=10,debounce:s=200,nColumns:o=3},c)=>{const l=SE({debounceMs:s}),[u,a]=Fn.useState([]);Fn.useLayoutEffect(()=>{var I;const m=w=>w.sort((k,P)=>k.size-P.size),p=typeof o=="number"?{columns:o}:(I=(w=>w==null?void 0:w[w.length-1])(m(((w,k)=>w.filter(P=>P.size<=k))(o,l))))!=null?I:(w=>w==null?void 0:w[0])(m(o)),E=Array.from({length:p.columns},w=>[]);Fn.Children.forEach(e,(w,k)=>{const P=`item-${k}`,S=Fn.cloneElement(w,If(uc({},w.props),{key:P}));E[k%E.length].push(S)}),a(E)},[e,o,l]);const g={mainGrid:{display:"grid",gridTemplateColumns:`repeat(${u.length}, 1fr)`,columnGap:i,alignItems:"start"},columnGrid:{display:"grid",gridTemplateColumns:"100%",rowGap:i}};return Fn.createElement(n,{ref:c,"data-testid":"plock-container",className:t,style:uc({style:r},g.mainGrid)},u.map((m,p)=>Fn.createElement("div",{"data-testid":"plock-column",style:g.columnGrid,key:p},m)))});var $A=py.Plock=bE,xA="/assets/olm.b3e0f9b4.wasm",NA="/assets/olm_legacy.9dc48f49.js",gy={exports:{}},wE={},RE=Object.freeze(Object.defineProperty({__proto__:null,default:wE},Symbol.toStringTag,{value:"Module"})),Oi=jh(RE);(function(n,e){// @license magnet:?xt=urn:btih:8e4f440f4c65981c5bf93c76d35135ba5064d8b7&dn=apache-2.0.txt Apache-2.0 +var A_=Object.defineProperty,D_=Object.defineProperties;var U_=Object.getOwnPropertyDescriptors;var wf=Object.getOwnPropertySymbols;var $_=Object.prototype.hasOwnProperty,x_=Object.prototype.propertyIsEnumerable;var Rf=(n,e,t)=>e in n?A_(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,uc=(n,e)=>{for(var t in e||(e={}))$_.call(e,t)&&Rf(n,t,e[t]);if(wf)for(var t of wf(e))x_.call(e,t)&&Rf(n,t,e[t]);return n},If=(n,e)=>D_(n,U_(e));var Ga,J,Tm,Om,Ea,km,Tf,Cm,ol={},Pm=[],N_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function zn(n,e){for(var t in e)n[t]=e[t];return n}function Mm(n){var e=n.parentNode;e&&e.removeChild(n)}function cr(n,e,t){var r,i,s,o={};for(s in e)s=="key"?r=e[s]:s=="ref"?i=e[s]:o[s]=e[s];if(arguments.length>2&&(o.children=arguments.length>3?Ga.call(arguments,2):t),typeof n=="function"&&n.defaultProps!=null)for(s in n.defaultProps)o[s]===void 0&&(o[s]=n.defaultProps[s]);return Sa(n,o,r,i,null)}function Sa(n,e,t,r,i){var s={type:n,props:e,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i==null?++Tm:i};return i==null&&J.vnode!=null&&J.vnode(s),s}function Dh(){return{current:null}}function Zr(n){return n.children}function Er(n,e){this.props=n,this.context=e}function mo(n,e){if(e==null)return n.__?mo(n.__,n.__.__k.indexOf(n)+1):null;for(var t;e<n.__k.length;e++)if((t=n.__k[e])!=null&&t.__e!=null)return t.__e;return typeof n.type=="function"?mo(n):null}function Am(n){var e,t;if((n=n.__)!=null&&n.__c!=null){for(n.__e=n.__c.base=null,e=0;e<n.__k.length;e++)if((t=n.__k[e])!=null&&t.__e!=null){n.__e=n.__c.base=t.__e;break}return Am(n)}}function gd(n){(!n.__d&&(n.__d=!0)&&Ea.push(n)&&!al.__r++||Tf!==J.debounceRendering)&&((Tf=J.debounceRendering)||km)(al)}function al(){for(var n;al.__r=Ea.length;)n=Ea.sort(function(e,t){return e.__v.__b-t.__v.__b}),Ea=[],n.some(function(e){var t,r,i,s,o,c;e.__d&&(o=(s=(t=e).__v).__e,(c=t.__P)&&(r=[],(i=zn({},s)).__v=s.__v+1,Uh(c,s,i,t.__n,c.ownerSVGElement!==void 0,s.__h!=null?[o]:null,r,o==null?mo(s):o,s.__h),xm(r,s),s.__e!=o&&Am(s)))})}function Dm(n,e,t,r,i,s,o,c,l,u){var a,g,m,p,E,I,w,k=r&&r.__k||Pm,P=k.length;for(t.__k=[],a=0;a<e.length;a++)if((p=t.__k[a]=(p=e[a])==null||typeof p=="boolean"?null:typeof p=="string"||typeof p=="number"||typeof p=="bigint"?Sa(null,p,null,null,p):Array.isArray(p)?Sa(Zr,{children:p},null,null,null):p.__b>0?Sa(p.type,p.props,p.key,null,p.__v):p)!=null){if(p.__=t,p.__b=t.__b+1,(m=k[a])===null||m&&p.key==m.key&&p.type===m.type)k[a]=void 0;else for(g=0;g<P;g++){if((m=k[g])&&p.key==m.key&&p.type===m.type){k[g]=void 0;break}m=null}Uh(n,p,m=m||ol,i,s,o,c,l,u),E=p.__e,(g=p.ref)&&m.ref!=g&&(w||(w=[]),m.ref&&w.push(m.ref,null,p),w.push(g,p.__c||E,p)),E!=null?(I==null&&(I=E),typeof p.type=="function"&&p.__k===m.__k?p.__d=l=Um(p,l,n):l=$m(n,p,m,k,E,l),typeof t.type=="function"&&(t.__d=l)):l&&m.__e==l&&l.parentNode!=n&&(l=mo(m))}for(t.__e=I,a=P;a--;)k[a]!=null&&(typeof t.type=="function"&&k[a].__e!=null&&k[a].__e==t.__d&&(t.__d=mo(r,a+1)),Lm(k[a],k[a]));if(w)for(a=0;a<w.length;a++)Nm(w[a],w[++a],w[++a])}function Um(n,e,t){for(var r,i=n.__k,s=0;i&&s<i.length;s++)(r=i[s])&&(r.__=n,e=typeof r.type=="function"?Um(r,e,t):$m(t,r,r,i,r.__e,e));return e}function Nr(n,e){return e=e||[],n==null||typeof n=="boolean"||(Array.isArray(n)?n.some(function(t){Nr(t,e)}):e.push(n)),e}function $m(n,e,t,r,i,s){var o,c,l;if(e.__d!==void 0)o=e.__d,e.__d=void 0;else if(t==null||i!=s||i.parentNode==null)e:if(s==null||s.parentNode!==n)n.appendChild(i),o=null;else{for(c=s,l=0;(c=c.nextSibling)&&l<r.length;l+=2)if(c==i)break e;n.insertBefore(i,s),o=s}return o!==void 0?o:i.nextSibling}function L_(n,e,t,r,i){var s;for(s in t)s==="children"||s==="key"||s in e||cl(n,s,null,t[s],r);for(s in e)i&&typeof e[s]!="function"||s==="children"||s==="key"||s==="value"||s==="checked"||t[s]===e[s]||cl(n,s,e[s],t[s],r)}function Of(n,e,t){e[0]==="-"?n.setProperty(e,t):n[e]=t==null?"":typeof t!="number"||N_.test(e)?t:t+"px"}function cl(n,e,t,r,i){var s;e:if(e==="style")if(typeof t=="string")n.style.cssText=t;else{if(typeof r=="string"&&(n.style.cssText=r=""),r)for(e in r)t&&e in t||Of(n.style,e,"");if(t)for(e in t)r&&t[e]===r[e]||Of(n.style,e,t[e])}else if(e[0]==="o"&&e[1]==="n")s=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in n?e.toLowerCase().slice(2):e.slice(2),n.l||(n.l={}),n.l[e+s]=t,t?r||n.addEventListener(e,s?Cf:kf,s):n.removeEventListener(e,s?Cf:kf,s);else if(e!=="dangerouslySetInnerHTML"){if(i)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in n)try{n[e]=t==null?"":t;break e}catch{}typeof t=="function"||(t!=null&&(t!==!1||e[0]==="a"&&e[1]==="r")?n.setAttribute(e,t):n.removeAttribute(e))}}function kf(n){this.l[n.type+!1](J.event?J.event(n):n)}function Cf(n){this.l[n.type+!0](J.event?J.event(n):n)}function Uh(n,e,t,r,i,s,o,c,l){var u,a,g,m,p,E,I,w,k,P,S,T=e.type;if(e.constructor!==void 0)return null;t.__h!=null&&(l=t.__h,c=e.__e=t.__e,e.__h=null,s=[c]),(u=J.__b)&&u(e);try{e:if(typeof T=="function"){if(w=e.props,k=(u=T.contextType)&&r[u.__c],P=u?k?k.props.value:u.__:r,t.__c?I=(a=e.__c=t.__c).__=a.__E:("prototype"in T&&T.prototype.render?e.__c=a=new T(w,P):(e.__c=a=new Er(w,P),a.constructor=T,a.render=K_),k&&k.sub(a),a.props=w,a.state||(a.state={}),a.context=P,a.__n=r,g=a.__d=!0,a.__h=[]),a.__s==null&&(a.__s=a.state),T.getDerivedStateFromProps!=null&&(a.__s==a.state&&(a.__s=zn({},a.__s)),zn(a.__s,T.getDerivedStateFromProps(w,a.__s))),m=a.props,p=a.state,g)T.getDerivedStateFromProps==null&&a.componentWillMount!=null&&a.componentWillMount(),a.componentDidMount!=null&&a.__h.push(a.componentDidMount);else{if(T.getDerivedStateFromProps==null&&w!==m&&a.componentWillReceiveProps!=null&&a.componentWillReceiveProps(w,P),!a.__e&&a.shouldComponentUpdate!=null&&a.shouldComponentUpdate(w,a.__s,P)===!1||e.__v===t.__v){a.props=w,a.state=a.__s,e.__v!==t.__v&&(a.__d=!1),a.__v=e,e.__e=t.__e,e.__k=t.__k,e.__k.forEach(function(D){D&&(D.__=e)}),a.__h.length&&o.push(a);break e}a.componentWillUpdate!=null&&a.componentWillUpdate(w,a.__s,P),a.componentDidUpdate!=null&&a.__h.push(function(){a.componentDidUpdate(m,p,E)})}a.context=P,a.props=w,a.state=a.__s,(u=J.__r)&&u(e),a.__d=!1,a.__v=e,a.__P=n,u=a.render(a.props,a.state,a.context),a.state=a.__s,a.getChildContext!=null&&(r=zn(zn({},r),a.getChildContext())),g||a.getSnapshotBeforeUpdate==null||(E=a.getSnapshotBeforeUpdate(m,p)),S=u!=null&&u.type===Zr&&u.key==null?u.props.children:u,Dm(n,Array.isArray(S)?S:[S],e,t,r,i,s,o,c,l),a.base=e.__e,e.__h=null,a.__h.length&&o.push(a),I&&(a.__E=a.__=null),a.__e=!1}else s==null&&e.__v===t.__v?(e.__k=t.__k,e.__e=t.__e):e.__e=B_(t.__e,e,t,r,i,s,o,l);(u=J.diffed)&&u(e)}catch(D){e.__v=null,(l||s!=null)&&(e.__e=c,e.__h=!!l,s[s.indexOf(c)]=null),J.__e(D,e,t)}}function xm(n,e){J.__c&&J.__c(e,n),n.some(function(t){try{n=t.__h,t.__h=[],n.some(function(r){r.call(t)})}catch(r){J.__e(r,t.__v)}})}function B_(n,e,t,r,i,s,o,c){var l,u,a,g=t.props,m=e.props,p=e.type,E=0;if(p==="svg"&&(i=!0),s!=null){for(;E<s.length;E++)if((l=s[E])&&"setAttribute"in l==!!p&&(p?l.localName===p:l.nodeType===3)){n=l,s[E]=null;break}}if(n==null){if(p===null)return document.createTextNode(m);n=i?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,m.is&&m),s=null,c=!1}if(p===null)g===m||c&&n.data===m||(n.data=m);else{if(s=s&&Ga.call(n.childNodes),u=(g=t.props||ol).dangerouslySetInnerHTML,a=m.dangerouslySetInnerHTML,!c){if(s!=null)for(g={},E=0;E<n.attributes.length;E++)g[n.attributes[E].name]=n.attributes[E].value;(a||u)&&(a&&(u&&a.__html==u.__html||a.__html===n.innerHTML)||(n.innerHTML=a&&a.__html||""))}if(L_(n,m,g,i,c),a)e.__k=[];else if(E=e.props.children,Dm(n,Array.isArray(E)?E:[E],e,t,r,i&&p!=="foreignObject",s,o,s?s[0]:t.__k&&mo(t,0),c),s!=null)for(E=s.length;E--;)s[E]!=null&&Mm(s[E]);c||("value"in m&&(E=m.value)!==void 0&&(E!==n.value||p==="progress"&&!E||p==="option"&&E!==g.value)&&cl(n,"value",E,g.value,!1),"checked"in m&&(E=m.checked)!==void 0&&E!==n.checked&&cl(n,"checked",E,g.checked,!1))}return n}function Nm(n,e,t){try{typeof n=="function"?n(e):n.current=e}catch(r){J.__e(r,t)}}function Lm(n,e,t){var r,i;if(J.unmount&&J.unmount(n),(r=n.ref)&&(r.current&&r.current!==n.__e||Nm(r,null,e)),(r=n.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){J.__e(s,e)}r.base=r.__P=null}if(r=n.__k)for(i=0;i<r.length;i++)r[i]&&Lm(r[i],e,typeof n.type!="function");t||n.__e==null||Mm(n.__e),n.__e=n.__d=void 0}function K_(n,e,t){return this.constructor(n,t)}function yo(n,e,t){var r,i,s;J.__&&J.__(n,e),i=(r=typeof t=="function")?null:t&&t.__k||e.__k,s=[],Uh(e,n=(!r&&t||e).__k=cr(Zr,null,[n]),i||ol,ol,e.ownerSVGElement!==void 0,!r&&t?[t]:i?null:e.firstChild?Ga.call(e.childNodes):null,s,!r&&t?t:i?i.__e:e.firstChild,r),xm(s,n)}function $h(n,e){yo(n,e,$h)}function xh(n,e,t){var r,i,s,o=zn({},n.props);for(s in e)s=="key"?r=e[s]:s=="ref"?i=e[s]:o[s]=e[s];return arguments.length>2&&(o.children=arguments.length>3?Ga.call(arguments,2):t),Sa(n.type,o,r||n.key,i||n.ref,null)}function Il(n,e){var t={__c:e="__cC"+Cm++,__:n,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,s;return this.getChildContext||(i=[],(s={})[e]=this,this.getChildContext=function(){return s},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&i.some(gd)},this.sub=function(o){i.push(o);var c=o.componentWillUnmount;o.componentWillUnmount=function(){i.splice(i.indexOf(o),1),c&&c.call(o)}}),r.children}};return t.Provider.__=t.Consumer.contextType=t}Ga=Pm.slice,J={__e:function(n,e,t,r){for(var i,s,o;e=e.__;)if((i=e.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(n)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(n,r||{}),o=i.__d),o)return i.__E=i}catch(c){n=c}throw n}},Tm=0,Om=function(n){return n!=null&&n.constructor===void 0},Er.prototype.setState=function(n,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=zn({},this.state),typeof n=="function"&&(n=n(zn({},t),this.props)),n&&zn(t,n),n!=null&&this.__v&&(e&&this.__h.push(e),gd(this))},Er.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),gd(this))},Er.prototype.render=Zr,Ea=[],km=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,al.__r=0,Cm=0;var F_=Object.freeze(Object.defineProperty({__proto__:null,render:yo,hydrate:$h,createElement:cr,h:cr,Fragment:Zr,createRef:Dh,get isValidElement(){return Om},Component:Er,cloneElement:xh,createContext:Il,toChildArray:Nr,get options(){return J}},Symbol.toStringTag,{value:"Module"})),Rs,bt,Pf,vo=0,Bm=[],Mf=J.__b,Af=J.__r,Df=J.diffed,Uf=J.__c,$f=J.unmount;function ko(n,e){J.__h&&J.__h(bt,n,vo||e),vo=0;var t=bt.__H||(bt.__H={__:[],__h:[]});return n>=t.__.length&&t.__.push({}),t.__[n]}function Nh(n){return vo=1,Lh(Wm,n)}function Lh(n,e,t){var r=ko(Rs++,2);return r.t=n,r.__c||(r.__=[t?t(e):Wm(void 0,e),function(i){var s=r.t(r.__[0],i);r.__[0]!==s&&(r.__=[s,r.__[1]],r.__c.setState({}))}],r.__c=bt),r.__}function Km(n,e){var t=ko(Rs++,3);!J.__s&&Kh(t.__H,e)&&(t.__=n,t.__H=e,bt.__H.__h.push(t))}function Bh(n,e){var t=ko(Rs++,4);!J.__s&&Kh(t.__H,e)&&(t.__=n,t.__H=e,bt.__h.push(t))}function Fm(n){return vo=5,Tl(function(){return{current:n}},[])}function qm(n,e,t){vo=6,Bh(function(){return typeof n=="function"?(n(e()),function(){return n(null)}):n?(n.current=e(),function(){return n.current=null}):void 0},t==null?t:t.concat(n))}function Tl(n,e){var t=ko(Rs++,7);return Kh(t.__H,e)&&(t.__=n(),t.__H=e,t.__h=n),t.__}function jm(n,e){return vo=8,Tl(function(){return n},e)}function Vm(n){var e=bt.context[n.__c],t=ko(Rs++,9);return t.c=n,e?(t.__==null&&(t.__=!0,e.sub(bt)),e.props.value):n.__}function Gm(n,e){J.useDebugValue&&J.useDebugValue(e?e(n):n)}function q_(n){var e=ko(Rs++,10),t=Nh();return e.__=n,bt.componentDidCatch||(bt.componentDidCatch=function(r){e.__&&e.__(r),t[1](r)}),[t[0],function(){t[1](void 0)}]}function j_(){for(var n;n=Bm.shift();)if(n.__P)try{n.__H.__h.forEach(Gc),n.__H.__h.forEach(md),n.__H.__h=[]}catch(e){n.__H.__h=[],J.__e(e,n.__v)}}J.__b=function(n){bt=null,Mf&&Mf(n)},J.__r=function(n){Af&&Af(n),Rs=0;var e=(bt=n.__c).__H;e&&(e.__h.forEach(Gc),e.__h.forEach(md),e.__h=[])},J.diffed=function(n){Df&&Df(n);var e=n.__c;e&&e.__H&&e.__H.__h.length&&(Bm.push(e)!==1&&Pf===J.requestAnimationFrame||((Pf=J.requestAnimationFrame)||function(t){var r,i=function(){clearTimeout(s),xf&&cancelAnimationFrame(r),setTimeout(t)},s=setTimeout(i,100);xf&&(r=requestAnimationFrame(i))})(j_)),bt=null},J.__c=function(n,e){e.some(function(t){try{t.__h.forEach(Gc),t.__h=t.__h.filter(function(r){return!r.__||md(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],J.__e(r,t.__v)}}),Uf&&Uf(n,e)},J.unmount=function(n){$f&&$f(n);var e,t=n.__c;t&&t.__H&&(t.__H.__.forEach(function(r){try{Gc(r)}catch(i){e=i}}),e&&J.__e(e,t.__v))};var xf=typeof requestAnimationFrame=="function";function Gc(n){var e=bt,t=n.__c;typeof t=="function"&&(n.__c=void 0,t()),bt=e}function md(n){var e=bt;n.__c=n.__(),bt=e}function Kh(n,e){return!n||n.length!==e.length||e.some(function(t,r){return t!==n[r]})}function Wm(n,e){return typeof e=="function"?e(n):e}var V_={};function ga(n,e){for(var t in e)n[t]=e[t];return n}function G_(n,e,t){var r,i=/(?:\?([^#]*))?(#.*)?$/,s=n.match(i),o={};if(s&&s[1])for(var c=s[1].split("&"),l=0;l<c.length;l++){var u=c[l].split("=");o[decodeURIComponent(u[0])]=decodeURIComponent(u.slice(1).join("="))}n=yd(n.replace(i,"")),e=yd(e||"");for(var a=Math.max(n.length,e.length),g=0;g<a;g++)if(e[g]&&e[g].charAt(0)===":"){var m=e[g].replace(/(^:|[+*?]+$)/g,""),p=(e[g].match(/[+*?]+$/)||V_)[0]||"",E=~p.indexOf("+"),I=~p.indexOf("*"),w=n[g]||"";if(!w&&!I&&(p.indexOf("?")<0||E)){r=!1;break}if(o[m]=decodeURIComponent(w),E||I){o[m]=n.slice(g).map(decodeURIComponent).join("/");break}}else if(e[g]!==n[g]){r=!1;break}return(t.default===!0||r!==!1)&&o}function W_(n,e){return n.rank<e.rank?1:n.rank>e.rank?-1:n.index-e.index}function H_(n,e){return n.index=e,n.rank=function(t){return t.props.default?0:yd(t.props.path).map(Y_).join("")}(n),n.props}function yd(n){return n.replace(/(^\/+|\/+$)/g,"").split("/")}function Y_(n){return n.charAt(0)==":"?1+"*+?".indexOf(n.charAt(n.length-1))||4:5}var z_={},os=[],Nf=[],yr=null,Hm={url:Fh()},J_=Il(Hm);function Fh(){var n;return""+((n=yr&&yr.location?yr.location:yr&&yr.getCurrentLocation?yr.getCurrentLocation():typeof location!="undefined"?location:z_).pathname||"")+(n.search||"")}function X_(n,e){return e===void 0&&(e=!1),typeof n!="string"&&n.url&&(e=n.replace,n=n.url),function(t){for(var r=os.length;r--;)if(os[r].canRoute(t))return!0;return!1}(n)&&function(t,r){r===void 0&&(r="push"),yr&&yr[r]?yr[r](t):typeof history!="undefined"&&history[r+"State"]&&history[r+"State"](null,null,t)}(n,e?"replace":"push"),Ym(n)}function Ym(n){for(var e=!1,t=0;t<os.length;t++)os[t].routeTo(n)&&(e=!0);return e}function Q_(n){if(n&&n.getAttribute){var e=n.getAttribute("href"),t=n.getAttribute("target");if(e&&e.match(/^\//g)&&(!t||t.match(/^_?self$/i)))return X_(e)}}function Z_(n){return n.stopImmediatePropagation&&n.stopImmediatePropagation(),n.stopPropagation&&n.stopPropagation(),n.preventDefault(),!1}function zm(n){if(!(n.ctrlKey||n.metaKey||n.altKey||n.shiftKey||n.button)){var e=n.target;do if(e.localName==="a"&&e.getAttribute("href")){if(e.hasAttribute("data-native")||e.hasAttribute("native"))return;if(Q_(e))return Z_(n)}while(e=e.parentNode)}}var Lf=!1;function eE(n){n.history&&(yr=n.history),this.state={url:n.url||Fh()}}ga(eE.prototype=new Er,{shouldComponentUpdate:function(n){return n.static!==!0||n.url!==this.props.url||n.onChange!==this.props.onChange},canRoute:function(n){var e=Nr(this.props.children);return this.g(e,n)!==void 0},routeTo:function(n){this.setState({url:n});var e=this.canRoute(n);return this.p||this.forceUpdate(),e},componentWillMount:function(){this.p=!0},componentDidMount:function(){var n=this;Lf||(Lf=!0,yr||addEventListener("popstate",function(){Ym(Fh())}),addEventListener("click",zm)),os.push(this),yr&&(this.u=yr.listen(function(e){var t=e.location||e;n.routeTo(""+(t.pathname||"")+(t.search||""))})),this.p=!1},componentWillUnmount:function(){typeof this.u=="function"&&this.u(),os.splice(os.indexOf(this),1)},componentWillUpdate:function(){this.p=!0},componentDidUpdate:function(){this.p=!1},g:function(n,e){n=n.filter(H_).sort(W_);for(var t=0;t<n.length;t++){var r=n[t],i=G_(e,r.props.path,r.props);if(i)return[r,i]}},render:function(n,e){var t,r,i=n.onChange,s=e.url,o=this.c,c=this.g(Nr(n.children),s);if(c&&(r=xh(c[0],ga(ga({url:s,matches:t=c[1]},t),{key:void 0,ref:void 0}))),s!==(o&&o.url)){ga(Hm,o=this.c={url:s,previous:o&&o.url,current:r,path:r?r.props.path:null,matches:t}),o.router=this,o.active=r?[r]:[];for(var l=Nf.length;l--;)Nf[l]({});typeof i=="function"&&i(o)}return cr(J_.Provider,{value:o},r)}});var UA=function(n){return cr("a",ga({onClick:zm},n))};function Jm(n,e){for(var t in e)n[t]=e[t];return n}function vd(n,e){for(var t in n)if(t!=="__source"&&!(t in e))return!0;for(var r in e)if(r!=="__source"&&n[r]!==e[r])return!0;return!1}function ll(n){this.props=n}function Xm(n,e){function t(i){var s=this.props.ref,o=s==i.ref;return!o&&s&&(s.call?s(null):s.current=null),e?!e(this.props,i)||!o:vd(this.props,i)}function r(i){return this.shouldComponentUpdate=t,cr(n,i)}return r.displayName="Memo("+(n.displayName||n.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(ll.prototype=new Er).isPureReactComponent=!0,ll.prototype.shouldComponentUpdate=function(n,e){return vd(this.props,n)||vd(this.state,e)};var Bf=J.__b;J.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),Bf&&Bf(n)};var tE=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Qm(n){function e(t,r){var i=Jm({},t);return delete i.ref,n(i,!(r=t.ref||r)||typeof r=="object"&&Object.keys(r).length===0?null:r)}return e.$$typeof=tE,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(n.displayName||n.name)+")",e}var Kf=function(n,e){return n==null?null:Nr(Nr(n).map(e))},Zm={map:Kf,forEach:Kf,count:function(n){return n?Nr(n).length:0},only:function(n){var e=Nr(n);if(e.length!==1)throw"Children.only";return e[0]},toArray:Nr},rE=J.__e;J.__e=function(n,e,t,r){if(n.then){for(var i,s=e;s=s.__;)if((i=s.__c)&&i.__c)return e.__e==null&&(e.__e=t.__e,e.__k=t.__k),i.__c(n,e)}rE(n,e,t,r)};var Ff=J.unmount;function ba(){this.__u=0,this.t=null,this.__b=null}function ey(n){var e=n.__.__c;return e&&e.__e&&e.__e(n)}function ty(n){var e,t,r;function i(s){if(e||(e=n()).then(function(o){t=o.default||o},function(o){r=o}),r)throw r;if(!t)throw e;return cr(t,s)}return i.displayName="Lazy",i.__f=!0,i}function so(){this.u=null,this.o=null}J.unmount=function(n){var e=n.__c;e&&e.__R&&e.__R(),e&&n.__h===!0&&(n.type=null),Ff&&Ff(n)},(ba.prototype=new Er).__c=function(n,e){var t=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(t);var i=ey(r.__v),s=!1,o=function(){s||(s=!0,t.__R=null,i?i(c):c())};t.__R=o;var c=function(){if(!--r.__u){if(r.state.__e){var u=r.state.__e;r.__v.__k[0]=function g(m,p,E){return m&&(m.__v=null,m.__k=m.__k&&m.__k.map(function(I){return g(I,p,E)}),m.__c&&m.__c.__P===p&&(m.__e&&E.insertBefore(m.__e,m.__d),m.__c.__e=!0,m.__c.__P=E)),m}(u,u.__c.__P,u.__c.__O)}var a;for(r.setState({__e:r.__b=null});a=r.t.pop();)a.forceUpdate()}},l=e.__h===!0;r.__u++||l||r.setState({__e:r.__b=r.__v.__k[0]}),n.then(o,o)},ba.prototype.componentWillUnmount=function(){this.t=[]},ba.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function s(o,c,l){return o&&(o.__c&&o.__c.__H&&(o.__c.__H.__.forEach(function(u){typeof u.__c=="function"&&u.__c()}),o.__c.__H=null),(o=Jm({},o)).__c!=null&&(o.__c.__P===l&&(o.__c.__P=c),o.__c=null),o.__k=o.__k&&o.__k.map(function(u){return s(u,c,l)})),o}(this.__b,t,r.__O=r.__P)}this.__b=null}var i=e.__e&&cr(Zr,null,n.fallback);return i&&(i.__h=null),[cr(Zr,null,e.__e?null:n.children),i]};var qf=function(n,e,t){if(++t[1]===t[0]&&n.o.delete(e),n.props.revealOrder&&(n.props.revealOrder[0]!=="t"||!n.o.size))for(t=n.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;n.u=t=t[2]}};function nE(n){return this.getChildContext=function(){return n.context},n.children}function iE(n){var e=this,t=n.i;e.componentWillUnmount=function(){yo(null,e.l),e.l=null,e.i=null},e.i&&e.i!==t&&e.componentWillUnmount(),n.__v?(e.l||(e.i=t,e.l={nodeType:1,parentNode:t,childNodes:[],appendChild:function(r){this.childNodes.push(r),e.i.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),e.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),e.i.removeChild(r)}}),yo(cr(nE,{context:e.context},n.__v),e.l)):e.l&&e.componentWillUnmount()}function ry(n,e){return cr(iE,{__v:n,i:e})}(so.prototype=new Er).__e=function(n){var e=this,t=ey(e.__v),r=e.o.get(n);return r[0]++,function(i){var s=function(){e.props.revealOrder?(r.push(i),qf(e,n,r)):i()};t?t(s):s()}},so.prototype.render=function(n){this.u=null,this.o=new Map;var e=Nr(n.children);n.revealOrder&&n.revealOrder[0]==="b"&&e.reverse();for(var t=e.length;t--;)this.o.set(e[t],this.u=[1,0,this.u]);return n.children},so.prototype.componentDidUpdate=so.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(e,t){qf(n,t,e)})};var ny=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,sE=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,oE=typeof document!="undefined",aE=function(n){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(n)};function iy(n,e,t){return e.__k==null&&(e.textContent=""),yo(n,e),typeof t=="function"&&t(),n?n.__c:null}function sy(n,e,t){return $h(n,e),typeof t=="function"&&t(),n?n.__c:null}Er.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(n){Object.defineProperty(Er.prototype,n,{configurable:!0,get:function(){return this["UNSAFE_"+n]},set:function(e){Object.defineProperty(this,n,{configurable:!0,writable:!0,value:e})}})});var jf=J.event;function cE(){}function lE(){return this.cancelBubble}function uE(){return this.defaultPrevented}J.event=function(n){return jf&&(n=jf(n)),n.persist=cE,n.isPropagationStopped=lE,n.isDefaultPrevented=uE,n.nativeEvent=n};var oy,Vf={configurable:!0,get:function(){return this.class}},Gf=J.vnode;J.vnode=function(n){var e=n.type,t=n.props,r=t;if(typeof e=="string"){var i=e.indexOf("-")===-1;for(var s in r={},t){var o=t[s];oE&&s==="children"&&e==="noscript"||s==="value"&&"defaultValue"in t&&o==null||(s==="defaultValue"&&"value"in t&&t.value==null?s="value":s==="download"&&o===!0?o="":/ondoubleclick/i.test(s)?s="ondblclick":/^onchange(textarea|input)/i.test(s+e)&&!aE(t.type)?s="oninput":/^onfocus$/i.test(s)?s="onfocusin":/^onblur$/i.test(s)?s="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(s)?s=s.toLowerCase():i&&sE.test(s)?s=s.replace(/[A-Z0-9]/,"-$&").toLowerCase():o===null&&(o=void 0),r[s]=o)}e=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=Nr(t.children).forEach(function(c){c.props.selected=r.value.indexOf(c.props.value)!=-1})),e=="select"&&r.defaultValue!=null&&(r.value=Nr(t.children).forEach(function(c){c.props.selected=r.multiple?r.defaultValue.indexOf(c.props.value)!=-1:r.defaultValue==c.props.value})),n.props=r,t.class!=t.className&&(Vf.enumerable="className"in t,t.className!=null&&(r.class=t.className),Object.defineProperty(r,"className",Vf))}n.$$typeof=ny,Gf&&Gf(n)};var Wf=J.__r;J.__r=function(n){Wf&&Wf(n),oy=n.__c};var ay={ReactCurrentDispatcher:{current:{readContext:function(n){return oy.__n[n.__c].props.value}}}},dE="17.0.2";function cy(n){return cr.bind(null,n)}function qh(n){return!!n&&n.$$typeof===ny}function ly(n){return qh(n)?xh.apply(null,arguments):n}function uy(n){return!!n.__k&&(yo(null,n),!0)}function dy(n){return n&&(n.base||n.nodeType===1&&n)||null}var hy=function(n,e){return n(e)},fy=function(n,e){return n(e)},hE=Zr,fE={useState:Nh,useReducer:Lh,useEffect:Km,useLayoutEffect:Bh,useRef:Fm,useImperativeHandle:qm,useMemo:Tl,useCallback:jm,useContext:Vm,useDebugValue:Gm,version:"17.0.2",Children:Zm,render:iy,hydrate:sy,unmountComponentAtNode:uy,createPortal:ry,createElement:cr,createContext:Il,createFactory:cy,cloneElement:ly,createRef:Dh,Fragment:Zr,isValidElement:qh,findDOMNode:dy,Component:Er,PureComponent:ll,memo:Xm,forwardRef:Qm,flushSync:fy,unstable_batchedUpdates:hy,StrictMode:Zr,Suspense:ba,SuspenseList:so,lazy:ty,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ay},pE=Object.freeze(Object.defineProperty({__proto__:null,default:fE,version:dE,Children:Zm,render:iy,hydrate:sy,unmountComponentAtNode:uy,createPortal:ry,createFactory:cy,cloneElement:ly,isValidElement:qh,findDOMNode:dy,PureComponent:ll,memo:Xm,forwardRef:Qm,flushSync:fy,unstable_batchedUpdates:hy,StrictMode:hE,Suspense:ba,SuspenseList:so,lazy:ty,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ay,createElement:cr,createContext:Il,createRef:Dh,Fragment:Zr,Component:Er,useState:Nh,useReducer:Lh,useEffect:Km,useLayoutEffect:Bh,useRef:Fm,useImperativeHandle:qm,useMemo:Tl,useCallback:jm,useContext:Vm,useDebugValue:Gm,useErrorBoundary:q_},Symbol.toStringTag,{value:"Module"})),j=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function jh(n){if(n.__esModule)return n;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(n).forEach(function(t){var r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:function(){return n[t]}})}),e}var gE=jh(F_),mE,yE,Hf=gE,vE=0;function Yf(n,e,t,r,i){var s,o,c={};for(o in e)o=="ref"?s=e[o]:c[o]=e[o];var l={type:n,props:c,key:t,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--vE,__source:i,__self:r};if(typeof n=="function"&&(s=n.defaultProps))for(o in s)c[o]===void 0&&(c[o]=s[o]);return Hf.options.vnode&&Hf.options.vnode(l),l}yE=Yf,mE=Yf;var py={},_E=jh(pE);function EE(n){if(n&&n.__esModule)return n;var e=Object.create(null);return n&&Object.keys(n).forEach(function(t){if(t!=="default"){var r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:function(){return n[t]}})}}),e.default=n,Object.freeze(e)}Object.defineProperty(py,"__esModule",{value:!0});var Fn=EE(_E);function SE({debounceMs:n}){const[e,t]=Fn.useState(window.innerWidth),r=function(i,s){let o=null;return(...c)=>{clearTimeout(o),o=setTimeout(()=>i(c),s)}}(()=>t(window.innerWidth),n);return Fn.useEffect(()=>(window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)),[r]),e}const bE=Fn.forwardRef(({as:n="div",children:e,className:t,style:r,gap:i=10,debounce:s=200,nColumns:o=3},c)=>{const l=SE({debounceMs:s}),[u,a]=Fn.useState([]);Fn.useLayoutEffect(()=>{var I;const m=w=>w.sort((k,P)=>k.size-P.size),p=typeof o=="number"?{columns:o}:(I=(w=>w==null?void 0:w[w.length-1])(m(((w,k)=>w.filter(P=>P.size<=k))(o,l))))!=null?I:(w=>w==null?void 0:w[0])(m(o)),E=Array.from({length:p.columns},w=>[]);Fn.Children.forEach(e,(w,k)=>{const P=`item-${k}`,S=Fn.cloneElement(w,If(uc({},w.props),{key:P}));E[k%E.length].push(S)}),a(E)},[e,o,l]);const g={mainGrid:{display:"grid",gridTemplateColumns:`repeat(${u.length}, 1fr)`,columnGap:i,alignItems:"start"},columnGrid:{display:"grid",gridTemplateColumns:"100%",rowGap:i}};return Fn.createElement(n,{ref:c,"data-testid":"plock-container",className:t,style:uc({style:r},g.mainGrid)},u.map((m,p)=>Fn.createElement("div",{"data-testid":"plock-column",style:g.columnGrid,key:p},m)))});var $A=py.Plock=bE,xA="/pr-121/assets/olm.b3e0f9b4.wasm",NA="/pr-121/assets/olm_legacy.9dc48f49.js",gy={exports:{}},wE={},RE=Object.freeze(Object.defineProperty({__proto__:null,default:wE},Symbol.toStringTag,{value:"Module"})),Oi=jh(RE);(function(n,e){// @license magnet:?xt=urn:btih:8e4f440f4c65981c5bf93c76d35135ba5064d8b7&dn=apache-2.0.txt Apache-2.0 var t=function(){var r={},i,s,o=function(){var l=typeof document!="undefined"&&document.currentScript?document.currentScript.src:void 0;return typeof __filename!="undefined"&&(l=l||__filename),function(u){u=u||{};var a;a||(a=typeof u!="undefined"?u:{});var g,m;a.ready=new Promise(function(f,y){g=f,m=y});var p;if(typeof window!="undefined")p=function(f){window.crypto.getRandomValues(f)};else if(n.exports){var E=Oi;p=function(f){var y=E.randomBytes(f.length);f.set(y)},process=j.process}else throw Error("Cannot find global to attach library to");if(typeof OLM_OPTIONS!="undefined")for(var I in OLM_OPTIONS)OLM_OPTIONS.hasOwnProperty(I)&&(a[I]=OLM_OPTIONS[I]);a.onRuntimeInitialized=function(){on=a._olm_error(),r.PRIVATE_KEY_LENGTH=a._olm_pk_private_key_length(),i&&i()},a.onAbort=function(f){s&&s(f)};var w={},k;for(k in a)a.hasOwnProperty(k)&&(w[k]=a[k]);var P=typeof window=="object",S=typeof importScripts=="function",T="",D,R,L,H,F;typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"?(T=S?Oi.dirname(T)+"/":__dirname+"/",D=function(f,y){return H||(H=Oi),F||(F=Oi),f=F.normalize(f),H.readFileSync(f,y?null:"utf8")},L=function(f){return f=D(f,!0),f.buffer||(f=new Uint8Array(f)),f.buffer||ot("Assertion failed: undefined"),f},R=function(f,y,O){H||(H=Oi),F||(F=Oi),f=F.normalize(f),H.readFile(f,function(U,B){U?O(U):y(B.buffer)})},1<process.argv.length&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),process.on("uncaughtException",function(f){throw f}),process.on("unhandledRejection",ot),a.inspect=function(){return"[Emscripten Module object]"}):(P||S)&&(S?T=self.location.href:typeof document!="undefined"&&document.currentScript&&(T=document.currentScript.src),l&&(T=l),T.indexOf("blob:")!==0?T=T.substr(0,T.lastIndexOf("/")+1):T="",D=function(f){var y=new XMLHttpRequest;return y.open("GET",f,!1),y.send(null),y.responseText},S&&(L=function(f){var y=new XMLHttpRequest;return y.open("GET",f,!1),y.responseType="arraybuffer",y.send(null),new Uint8Array(y.response)}),R=function(f,y,O){var U=new XMLHttpRequest;U.open("GET",f,!0),U.responseType="arraybuffer",U.onload=function(){U.status==200||U.status==0&&U.response?y(U.response):O()},U.onerror=O,U.send(null)}),a.print||console.log.bind(console);var le=a.printErr||console.warn.bind(console);for(k in w)w.hasOwnProperty(k)&&(a[k]=w[k]);w=null;var Je;a.wasmBinary&&(Je=a.wasmBinary),a.noExitRuntime,typeof WebAssembly!="object"&&ot("no native wasm support detected");function Ke(f){var y="i8";switch(y.charAt(y.length-1)==="*"&&(y="i32"),y){case"i1":be[f>>0]=0;break;case"i8":be[f>>0]=0;break;case"i16":di[f>>1]=0;break;case"i32":qr[f>>2]=0;break;case"i64":pi=[0,(Mn=0,1<=+Math.abs(Mn)?0<Mn?(Math.min(+Math.floor(Mn/4294967296),4294967295)|0)>>>0:~~+Math.ceil((Mn-+(~~Mn>>>0))/4294967296)>>>0:0)],qr[f>>2]=pi[0],qr[f+4>>2]=pi[1];break;case"float":Pn[f>>2]=0;break;case"double":hi[f>>3]=0;break;default:ot("invalid type for setValue: "+y)}}function De(f,y){switch(y=y||"i8",y.charAt(y.length-1)==="*"&&(y="i32"),y){case"i1":return be[f>>0];case"i8":return be[f>>0];case"i16":return di[f>>1];case"i32":return qr[f>>2];case"i64":return qr[f>>2];case"float":return Pn[f>>2];case"double":return hi[f>>3];default:ot("invalid type for getValue: "+y)}return null}var ut,ur=!1,jt=typeof TextDecoder!="undefined"?new TextDecoder("utf8"):void 0;function Q(f,y){if(f){var O=Ue,U=f+y;for(y=f;O[y]&&!(y>=U);)++y;if(16<y-f&&O.subarray&&jt)f=jt.decode(O.subarray(f,y));else{for(U="";f<y;){var B=O[f++];if(B&128){var ee=O[f++]&63;if((B&224)==192)U+=String.fromCharCode((B&31)<<6|ee);else{var ve=O[f++]&63;B=(B&240)==224?(B&15)<<12|ee<<6|ve:(B&7)<<18|ee<<12|ve<<6|O[f++]&63,65536>B?U+=String.fromCharCode(B):(B-=65536,U+=String.fromCharCode(55296|B>>10,56320|B&1023))}}else U+=String.fromCharCode(B)}f=U}}else f="";return f}function sn(f,y,O,U){if(!(0<U))return 0;var B=O;U=O+U-1;for(var ee=0;ee<f.length;++ee){var ve=f.charCodeAt(ee);if(55296<=ve&&57343>=ve){var At=f.charCodeAt(++ee);ve=65536+((ve&1023)<<10)|At&1023}if(127>=ve){if(O>=U)break;y[O++]=ve}else{if(2047>=ve){if(O+1>=U)break;y[O++]=192|ve>>6}else{if(65535>=ve){if(O+2>=U)break;y[O++]=224|ve>>12}else{if(O+3>=U)break;y[O++]=240|ve>>18,y[O++]=128|ve>>12&63}y[O++]=128|ve>>6&63}y[O++]=128|ve&63}}return y[O]=0,O-B}function Fr(f){for(var y=0,O=0;O<f.length;++O){var U=f.charCodeAt(O);55296<=U&&57343>=U&&(U=65536+((U&1023)<<10)|f.charCodeAt(++O)&1023),127>=U?++y:y=2047>=U?y+2:65535>=U?y+3:y+4}return y}function ui(f,y){for(var O=0;O<f.length;++O)be[y++>>0]=f.charCodeAt(O)}var be,Ue,di,qr,Pn,hi,fi,_=[],dr=[],Mt=[];function hr(){var f=a.preRun.shift();_.unshift(f)}var wr=0,st=null;a.preloadedImages={},a.preloadedAudios={};function ot(f){throw a.onAbort&&a.onAbort(f),le(f),ur=!0,f=new WebAssembly.RuntimeError("abort("+f+"). Build with -s ASSERTIONS=1 for more info."),m(f),f}function sc(){return Vt.startsWith("data:application/octet-stream;base64,")}var Vt;if(Vt="olm.wasm",!sc()){var Ds=Vt;Vt=a.locateFile?a.locateFile(Ds,T):T+Ds}function oc(){var f=Vt;try{if(f==Vt&&Je)return new Uint8Array(Je);if(L)return L(f);throw"both async and sync fetching of the wasm failed"}catch(y){ot(y)}}function ou(){if(!Je&&(P||S)){if(typeof fetch=="function"&&!Vt.startsWith("file://"))return fetch(Vt,{credentials:"same-origin"}).then(function(f){if(!f.ok)throw"failed to load wasm binary file at '"+Vt+"'";return f.arrayBuffer()}).catch(function(){return oc()});if(R)return new Promise(function(f,y){R(Vt,function(O){f(new Uint8Array(O))},y)})}return Promise.resolve().then(function(){return oc()})}var Mn,pi;function Gt(f){for(;0<f.length;){var y=f.shift();if(typeof y=="function")y(a);else{var O=y.cc;typeof O=="number"?y.bc===void 0?fi.get(O)():fi.get(O)(y.bc):O(y.bc===void 0?null:y.bc)}}}var Fo={a:function(f,y,O){Ue.copyWithin(f,y,y+O)},b:function(){ot("OOM")}};(function(){function f(B){a.asm=B.exports,ut=a.asm.c,B=ut.buffer,a.HEAP8=be=new Int8Array(B),a.HEAP16=di=new Int16Array(B),a.HEAP32=qr=new Int32Array(B),a.HEAPU8=Ue=new Uint8Array(B),a.HEAPU16=new Uint16Array(B),a.HEAPU32=new Uint32Array(B),a.HEAPF32=Pn=new Float32Array(B),a.HEAPF64=hi=new Float64Array(B),fi=a.asm.e,dr.unshift(a.asm.d),wr--,a.monitorRunDependencies&&a.monitorRunDependencies(wr),wr==0&&st&&(B=st,st=null,B())}function y(B){f(B.instance)}function O(B){return ou().then(function(ee){return WebAssembly.instantiate(ee,U)}).then(function(ee){return ee}).then(B,function(ee){le("failed to asynchronously prepare wasm: "+ee),ot(ee)})}var U={a:Fo};if(wr++,a.monitorRunDependencies&&a.monitorRunDependencies(wr),a.instantiateWasm)try{return a.instantiateWasm(U,f)}catch(B){return le("Module.instantiateWasm callback failed with error: "+B),!1}return function(){return Je||typeof WebAssembly.instantiateStreaming!="function"||sc()||Vt.startsWith("file://")||typeof fetch!="function"?O(y):fetch(Vt,{credentials:"same-origin"}).then(function(B){return WebAssembly.instantiateStreaming(B,U).then(y,function(ee){return le("wasm streaming compile failed: "+ee),le("falling back to ArrayBuffer instantiation"),O(y)})})}().catch(m),{}})(),a.___wasm_call_ctors=function(){return(a.___wasm_call_ctors=a.asm.d).apply(null,arguments)},a._olm_pk_encryption_last_error=function(){return(a._olm_pk_encryption_last_error=a.asm.f).apply(null,arguments)},a.__olm_error_to_string=function(){return(a.__olm_error_to_string=a.asm.g).apply(null,arguments)},a._olm_pk_encryption_last_error_code=function(){return(a._olm_pk_encryption_last_error_code=a.asm.h).apply(null,arguments)},a._olm_pk_encryption_size=function(){return(a._olm_pk_encryption_size=a.asm.i).apply(null,arguments)},a._olm_pk_encryption=function(){return(a._olm_pk_encryption=a.asm.j).apply(null,arguments)},a._olm_clear_pk_encryption=function(){return(a._olm_clear_pk_encryption=a.asm.k).apply(null,arguments)},a._olm_pk_encryption_set_recipient_key=function(){return(a._olm_pk_encryption_set_recipient_key=a.asm.l).apply(null,arguments)},a._olm_pk_key_length=function(){return(a._olm_pk_key_length=a.asm.m).apply(null,arguments)},a._olm_pk_ciphertext_length=function(){return(a._olm_pk_ciphertext_length=a.asm.n).apply(null,arguments)},a._olm_pk_mac_length=function(){return(a._olm_pk_mac_length=a.asm.o).apply(null,arguments)},a._olm_pk_encrypt_random_length=function(){return(a._olm_pk_encrypt_random_length=a.asm.p).apply(null,arguments)},a._olm_pk_encrypt=function(){return(a._olm_pk_encrypt=a.asm.q).apply(null,arguments)},a._olm_pk_decryption_last_error=function(){return(a._olm_pk_decryption_last_error=a.asm.r).apply(null,arguments)},a._olm_pk_decryption_last_error_code=function(){return(a._olm_pk_decryption_last_error_code=a.asm.s).apply(null,arguments)},a._olm_pk_decryption_size=function(){return(a._olm_pk_decryption_size=a.asm.t).apply(null,arguments)},a._olm_pk_decryption=function(){return(a._olm_pk_decryption=a.asm.u).apply(null,arguments)},a._olm_clear_pk_decryption=function(){return(a._olm_clear_pk_decryption=a.asm.v).apply(null,arguments)},a._olm_pk_private_key_length=function(){return(a._olm_pk_private_key_length=a.asm.w).apply(null,arguments)},a._olm_pk_generate_key_random_length=function(){return(a._olm_pk_generate_key_random_length=a.asm.x).apply(null,arguments)},a._olm_pk_key_from_private=function(){return(a._olm_pk_key_from_private=a.asm.y).apply(null,arguments)},a._olm_pk_generate_key=function(){return(a._olm_pk_generate_key=a.asm.z).apply(null,arguments)},a._olm_pickle_pk_decryption_length=function(){return(a._olm_pickle_pk_decryption_length=a.asm.A).apply(null,arguments)},a._olm_pickle_pk_decryption=function(){return(a._olm_pickle_pk_decryption=a.asm.B).apply(null,arguments)},a._olm_unpickle_pk_decryption=function(){return(a._olm_unpickle_pk_decryption=a.asm.C).apply(null,arguments)},a._olm_pk_max_plaintext_length=function(){return(a._olm_pk_max_plaintext_length=a.asm.D).apply(null,arguments)},a._olm_pk_decrypt=function(){return(a._olm_pk_decrypt=a.asm.E).apply(null,arguments)},a._olm_pk_get_private_key=function(){return(a._olm_pk_get_private_key=a.asm.F).apply(null,arguments)},a._olm_pk_signing_size=function(){return(a._olm_pk_signing_size=a.asm.G).apply(null,arguments)},a._olm_pk_signing=function(){return(a._olm_pk_signing=a.asm.H).apply(null,arguments)},a._olm_pk_signing_last_error=function(){return(a._olm_pk_signing_last_error=a.asm.I).apply(null,arguments)},a._olm_pk_signing_last_error_code=function(){return(a._olm_pk_signing_last_error_code=a.asm.J).apply(null,arguments)},a._olm_clear_pk_signing=function(){return(a._olm_clear_pk_signing=a.asm.K).apply(null,arguments)},a._olm_pk_signing_seed_length=function(){return(a._olm_pk_signing_seed_length=a.asm.L).apply(null,arguments)},a._olm_pk_signing_public_key_length=function(){return(a._olm_pk_signing_public_key_length=a.asm.M).apply(null,arguments)},a._olm_pk_signing_key_from_seed=function(){return(a._olm_pk_signing_key_from_seed=a.asm.N).apply(null,arguments)},a._olm_pk_signature_length=function(){return(a._olm_pk_signature_length=a.asm.O).apply(null,arguments)},a._olm_pk_sign=function(){return(a._olm_pk_sign=a.asm.P).apply(null,arguments)},a._olm_get_library_version=function(){return(a._olm_get_library_version=a.asm.Q).apply(null,arguments)},a._olm_error=function(){return(a._olm_error=a.asm.R).apply(null,arguments)},a._olm_account_last_error=function(){return(a._olm_account_last_error=a.asm.S).apply(null,arguments)},a._olm_account_last_error_code=function(){return(a._olm_account_last_error_code=a.asm.T).apply(null,arguments)},a._olm_session_last_error=function(){return(a._olm_session_last_error=a.asm.U).apply(null,arguments)},a._olm_session_last_error_code=function(){return(a._olm_session_last_error_code=a.asm.V).apply(null,arguments)},a._olm_utility_last_error=function(){return(a._olm_utility_last_error=a.asm.W).apply(null,arguments)},a._olm_utility_last_error_code=function(){return(a._olm_utility_last_error_code=a.asm.X).apply(null,arguments)},a._olm_account_size=function(){return(a._olm_account_size=a.asm.Y).apply(null,arguments)},a._olm_session_size=function(){return(a._olm_session_size=a.asm.Z).apply(null,arguments)},a._olm_utility_size=function(){return(a._olm_utility_size=a.asm._).apply(null,arguments)},a._olm_account=function(){return(a._olm_account=a.asm.$).apply(null,arguments)},a._olm_session=function(){return(a._olm_session=a.asm.aa).apply(null,arguments)},a._olm_utility=function(){return(a._olm_utility=a.asm.ba).apply(null,arguments)},a._olm_clear_account=function(){return(a._olm_clear_account=a.asm.ca).apply(null,arguments)},a._olm_clear_session=function(){return(a._olm_clear_session=a.asm.da).apply(null,arguments)},a._olm_clear_utility=function(){return(a._olm_clear_utility=a.asm.ea).apply(null,arguments)},a._olm_pickle_account_length=function(){return(a._olm_pickle_account_length=a.asm.fa).apply(null,arguments)},a._olm_pickle_session_length=function(){return(a._olm_pickle_session_length=a.asm.ga).apply(null,arguments)},a._olm_pickle_account=function(){return(a._olm_pickle_account=a.asm.ha).apply(null,arguments)},a._olm_pickle_session=function(){return(a._olm_pickle_session=a.asm.ia).apply(null,arguments)},a._olm_unpickle_account=function(){return(a._olm_unpickle_account=a.asm.ja).apply(null,arguments)},a._olm_unpickle_session=function(){return(a._olm_unpickle_session=a.asm.ka).apply(null,arguments)},a._olm_create_account_random_length=function(){return(a._olm_create_account_random_length=a.asm.la).apply(null,arguments)},a._olm_create_account=function(){return(a._olm_create_account=a.asm.ma).apply(null,arguments)},a._olm_account_identity_keys_length=function(){return(a._olm_account_identity_keys_length=a.asm.na).apply(null,arguments)},a._olm_account_identity_keys=function(){return(a._olm_account_identity_keys=a.asm.oa).apply(null,arguments)},a._olm_account_signature_length=function(){return(a._olm_account_signature_length=a.asm.pa).apply(null,arguments)},a._olm_account_sign=function(){return(a._olm_account_sign=a.asm.qa).apply(null,arguments)},a._olm_account_one_time_keys_length=function(){return(a._olm_account_one_time_keys_length=a.asm.ra).apply(null,arguments)},a._olm_account_one_time_keys=function(){return(a._olm_account_one_time_keys=a.asm.sa).apply(null,arguments)},a._olm_account_mark_keys_as_published=function(){return(a._olm_account_mark_keys_as_published=a.asm.ta).apply(null,arguments)},a._olm_account_max_number_of_one_time_keys=function(){return(a._olm_account_max_number_of_one_time_keys=a.asm.ua).apply(null,arguments)},a._olm_account_generate_one_time_keys_random_length=function(){return(a._olm_account_generate_one_time_keys_random_length=a.asm.va).apply(null,arguments)},a._olm_account_generate_one_time_keys=function(){return(a._olm_account_generate_one_time_keys=a.asm.wa).apply(null,arguments)},a._olm_account_generate_fallback_key_random_length=function(){return(a._olm_account_generate_fallback_key_random_length=a.asm.xa).apply(null,arguments)},a._olm_account_generate_fallback_key=function(){return(a._olm_account_generate_fallback_key=a.asm.ya).apply(null,arguments)},a._olm_account_fallback_key_length=function(){return(a._olm_account_fallback_key_length=a.asm.za).apply(null,arguments)},a._olm_account_fallback_key=function(){return(a._olm_account_fallback_key=a.asm.Aa).apply(null,arguments)},a._olm_account_unpublished_fallback_key_length=function(){return(a._olm_account_unpublished_fallback_key_length=a.asm.Ba).apply(null,arguments)},a._olm_account_unpublished_fallback_key=function(){return(a._olm_account_unpublished_fallback_key=a.asm.Ca).apply(null,arguments)},a._olm_account_forget_old_fallback_key=function(){return(a._olm_account_forget_old_fallback_key=a.asm.Da).apply(null,arguments)},a._olm_create_outbound_session_random_length=function(){return(a._olm_create_outbound_session_random_length=a.asm.Ea).apply(null,arguments)},a._olm_create_outbound_session=function(){return(a._olm_create_outbound_session=a.asm.Fa).apply(null,arguments)},a._olm_create_inbound_session=function(){return(a._olm_create_inbound_session=a.asm.Ga).apply(null,arguments)},a._olm_create_inbound_session_from=function(){return(a._olm_create_inbound_session_from=a.asm.Ha).apply(null,arguments)},a._olm_session_id_length=function(){return(a._olm_session_id_length=a.asm.Ia).apply(null,arguments)},a._olm_session_id=function(){return(a._olm_session_id=a.asm.Ja).apply(null,arguments)},a._olm_session_has_received_message=function(){return(a._olm_session_has_received_message=a.asm.Ka).apply(null,arguments)},a._olm_session_describe=function(){return(a._olm_session_describe=a.asm.La).apply(null,arguments)},a._olm_matches_inbound_session=function(){return(a._olm_matches_inbound_session=a.asm.Ma).apply(null,arguments)},a._olm_matches_inbound_session_from=function(){return(a._olm_matches_inbound_session_from=a.asm.Na).apply(null,arguments)},a._olm_remove_one_time_keys=function(){return(a._olm_remove_one_time_keys=a.asm.Oa).apply(null,arguments)},a._olm_encrypt_message_type=function(){return(a._olm_encrypt_message_type=a.asm.Pa).apply(null,arguments)},a._olm_encrypt_random_length=function(){return(a._olm_encrypt_random_length=a.asm.Qa).apply(null,arguments)},a._olm_encrypt_message_length=function(){return(a._olm_encrypt_message_length=a.asm.Ra).apply(null,arguments)},a._olm_encrypt=function(){return(a._olm_encrypt=a.asm.Sa).apply(null,arguments)},a._olm_decrypt_max_plaintext_length=function(){return(a._olm_decrypt_max_plaintext_length=a.asm.Ta).apply(null,arguments)},a._olm_decrypt=function(){return(a._olm_decrypt=a.asm.Ua).apply(null,arguments)},a._olm_sha256_length=function(){return(a._olm_sha256_length=a.asm.Va).apply(null,arguments)},a._olm_sha256=function(){return(a._olm_sha256=a.asm.Wa).apply(null,arguments)},a._olm_ed25519_verify=function(){return(a._olm_ed25519_verify=a.asm.Xa).apply(null,arguments)},a._olm_inbound_group_session_size=function(){return(a._olm_inbound_group_session_size=a.asm.Ya).apply(null,arguments)},a._olm_inbound_group_session=function(){return(a._olm_inbound_group_session=a.asm.Za).apply(null,arguments)},a._olm_clear_inbound_group_session=function(){return(a._olm_clear_inbound_group_session=a.asm._a).apply(null,arguments)},a._olm_inbound_group_session_last_error=function(){return(a._olm_inbound_group_session_last_error=a.asm.$a).apply(null,arguments)},a._olm_inbound_group_session_last_error_code=function(){return(a._olm_inbound_group_session_last_error_code=a.asm.ab).apply(null,arguments)},a._olm_init_inbound_group_session=function(){return(a._olm_init_inbound_group_session=a.asm.bb).apply(null,arguments)},a._olm_import_inbound_group_session=function(){return(a._olm_import_inbound_group_session=a.asm.cb).apply(null,arguments)},a._olm_pickle_inbound_group_session_length=function(){return(a._olm_pickle_inbound_group_session_length=a.asm.db).apply(null,arguments)},a._olm_pickle_inbound_group_session=function(){return(a._olm_pickle_inbound_group_session=a.asm.eb).apply(null,arguments)},a._olm_unpickle_inbound_group_session=function(){return(a._olm_unpickle_inbound_group_session=a.asm.fb).apply(null,arguments)},a._olm_group_decrypt_max_plaintext_length=function(){return(a._olm_group_decrypt_max_plaintext_length=a.asm.gb).apply(null,arguments)},a._olm_group_decrypt=function(){return(a._olm_group_decrypt=a.asm.hb).apply(null,arguments)},a._olm_inbound_group_session_id_length=function(){return(a._olm_inbound_group_session_id_length=a.asm.ib).apply(null,arguments)},a._olm_inbound_group_session_id=function(){return(a._olm_inbound_group_session_id=a.asm.jb).apply(null,arguments)},a._olm_inbound_group_session_first_known_index=function(){return(a._olm_inbound_group_session_first_known_index=a.asm.kb).apply(null,arguments)},a._olm_inbound_group_session_is_verified=function(){return(a._olm_inbound_group_session_is_verified=a.asm.lb).apply(null,arguments)},a._olm_export_inbound_group_session_length=function(){return(a._olm_export_inbound_group_session_length=a.asm.mb).apply(null,arguments)},a._olm_export_inbound_group_session=function(){return(a._olm_export_inbound_group_session=a.asm.nb).apply(null,arguments)},a._olm_sas_last_error=function(){return(a._olm_sas_last_error=a.asm.ob).apply(null,arguments)},a._olm_sas_last_error_code=function(){return(a._olm_sas_last_error_code=a.asm.pb).apply(null,arguments)},a._olm_sas_size=function(){return(a._olm_sas_size=a.asm.qb).apply(null,arguments)},a._olm_sas=function(){return(a._olm_sas=a.asm.rb).apply(null,arguments)},a._olm_clear_sas=function(){return(a._olm_clear_sas=a.asm.sb).apply(null,arguments)},a._olm_create_sas_random_length=function(){return(a._olm_create_sas_random_length=a.asm.tb).apply(null,arguments)},a._olm_create_sas=function(){return(a._olm_create_sas=a.asm.ub).apply(null,arguments)},a._olm_sas_pubkey_length=function(){return(a._olm_sas_pubkey_length=a.asm.vb).apply(null,arguments)},a._olm_sas_get_pubkey=function(){return(a._olm_sas_get_pubkey=a.asm.wb).apply(null,arguments)},a._olm_sas_set_their_key=function(){return(a._olm_sas_set_their_key=a.asm.xb).apply(null,arguments)},a._olm_sas_is_their_key_set=function(){return(a._olm_sas_is_their_key_set=a.asm.yb).apply(null,arguments)},a._olm_sas_generate_bytes=function(){return(a._olm_sas_generate_bytes=a.asm.zb).apply(null,arguments)},a._olm_sas_mac_length=function(){return(a._olm_sas_mac_length=a.asm.Ab).apply(null,arguments)},a._olm_sas_calculate_mac_fixed_base64=function(){return(a._olm_sas_calculate_mac_fixed_base64=a.asm.Bb).apply(null,arguments)},a._olm_sas_calculate_mac=function(){return(a._olm_sas_calculate_mac=a.asm.Cb).apply(null,arguments)},a._olm_sas_calculate_mac_long_kdf=function(){return(a._olm_sas_calculate_mac_long_kdf=a.asm.Db).apply(null,arguments)},a._olm_outbound_group_session_size=function(){return(a._olm_outbound_group_session_size=a.asm.Eb).apply(null,arguments)},a._olm_outbound_group_session=function(){return(a._olm_outbound_group_session=a.asm.Fb).apply(null,arguments)},a._olm_clear_outbound_group_session=function(){return(a._olm_clear_outbound_group_session=a.asm.Gb).apply(null,arguments)},a._olm_outbound_group_session_last_error=function(){return(a._olm_outbound_group_session_last_error=a.asm.Hb).apply(null,arguments)},a._olm_outbound_group_session_last_error_code=function(){return(a._olm_outbound_group_session_last_error_code=a.asm.Ib).apply(null,arguments)},a._olm_pickle_outbound_group_session_length=function(){return(a._olm_pickle_outbound_group_session_length=a.asm.Jb).apply(null,arguments)},a._olm_pickle_outbound_group_session=function(){return(a._olm_pickle_outbound_group_session=a.asm.Kb).apply(null,arguments)},a._olm_unpickle_outbound_group_session=function(){return(a._olm_unpickle_outbound_group_session=a.asm.Lb).apply(null,arguments)},a._olm_init_outbound_group_session_random_length=function(){return(a._olm_init_outbound_group_session_random_length=a.asm.Mb).apply(null,arguments)},a._olm_init_outbound_group_session=function(){return(a._olm_init_outbound_group_session=a.asm.Nb).apply(null,arguments)},a._olm_group_encrypt_message_length=function(){return(a._olm_group_encrypt_message_length=a.asm.Ob).apply(null,arguments)},a._olm_group_encrypt=function(){return(a._olm_group_encrypt=a.asm.Pb).apply(null,arguments)},a._olm_outbound_group_session_id_length=function(){return(a._olm_outbound_group_session_id_length=a.asm.Qb).apply(null,arguments)},a._olm_outbound_group_session_id=function(){return(a._olm_outbound_group_session_id=a.asm.Rb).apply(null,arguments)},a._olm_outbound_group_session_message_index=function(){return(a._olm_outbound_group_session_message_index=a.asm.Sb).apply(null,arguments)},a._olm_outbound_group_session_key_length=function(){return(a._olm_outbound_group_session_key_length=a.asm.Tb).apply(null,arguments)},a._olm_outbound_group_session_key=function(){return(a._olm_outbound_group_session_key=a.asm.Ub).apply(null,arguments)},a._malloc=function(){return(a._malloc=a.asm.Vb).apply(null,arguments)},a._free=function(){return(a._free=a.asm.Wb).apply(null,arguments)};var ac=a.stackSave=function(){return(ac=a.stackSave=a.asm.Xb).apply(null,arguments)},jr=a.stackRestore=function(){return(jr=a.stackRestore=a.asm.Yb).apply(null,arguments)},cc=a.stackAlloc=function(){return(cc=a.stackAlloc=a.asm.Zb).apply(null,arguments)};a.ALLOC_STACK=1;var v;st=function f(){v||d(),v||(st=f)};function d(){function f(){if(!v&&(v=!0,a.calledRun=!0,!ur)){if(Gt(dr),g(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),a.postRun)for(typeof a.postRun=="function"&&(a.postRun=[a.postRun]);a.postRun.length;){var y=a.postRun.shift();Mt.unshift(y)}Gt(Mt)}}if(!(0<wr)){if(a.preRun)for(typeof a.preRun=="function"&&(a.preRun=[a.preRun]);a.preRun.length;)hr();Gt(_),0<wr||(a.setStatus?(a.setStatus("Running..."),setTimeout(function(){setTimeout(function(){a.setStatus("")},1),f()},1)):f())}}if(a.run=d,a.preInit)for(typeof a.preInit=="function"&&(a.preInit=[a.preInit]);0<a.preInit.length;)a.preInit.pop()();d();function h(){var f=a._olm_outbound_group_session_size();this.ac=je(f),this.$b=a._olm_outbound_group_session(this.ac)}function b(f){return function(){var y=f.apply(this,arguments);if(y===on)throw y=Q(a._olm_outbound_group_session_last_error(arguments[0])),Error("OLM."+y);return y}}h.prototype.free=function(){a._olm_clear_outbound_group_session(this.$b),Ve(this.$b)},h.prototype.pickle=z(function(f){f=ae(f);var y=b(a._olm_pickle_outbound_group_session_length)(this.$b),O=q(f),U=q(y+1);try{b(a._olm_pickle_outbound_group_session)(this.$b,O,f.length,U,y)}finally{for(ce(O,f.length),O=0;O<f.length;O++)f[O]=0}return Q(U,y)}),h.prototype.unpickle=z(function(f,y){f=ae(f);var O=q(f);y=ae(y);var U=q(y);try{b(a._olm_unpickle_outbound_group_session)(this.$b,O,f.length,U,y.length)}finally{for(ce(O,f.length),O=0;O<f.length;O++)f[O]=0}}),h.prototype.create=z(function(){var f=b(a._olm_init_outbound_group_session_random_length)(this.$b),y=Rr(f,p);try{b(a._olm_init_outbound_group_session)(this.$b,y,f)}finally{ce(y,f)}}),h.prototype.encrypt=function(f){try{var y=Fr(f),O=b(a._olm_group_encrypt_message_length)(this.$b,y),U=je(y+1);sn(f,Ue,U,y+1);var B=je(O+1);return b(a._olm_group_encrypt)(this.$b,U,y,B,O),Ke(B+O),Q(B,O)}finally{U!==void 0&&(ce(U,y+1),Ve(U)),B!==void 0&&Ve(B)}},h.prototype.session_id=z(function(){var f=b(a._olm_outbound_group_session_id_length)(this.$b),y=q(f+1);return b(a._olm_outbound_group_session_id)(this.$b,y,f),Q(y,f)}),h.prototype.session_key=z(function(){var f=b(a._olm_outbound_group_session_key_length)(this.$b),y=q(f+1);b(a._olm_outbound_group_session_key)(this.$b,y,f);var O=Q(y,f);return ce(y,f),O}),h.prototype.message_index=function(){return b(a._olm_outbound_group_session_message_index)(this.$b)},r.OutboundGroupSession=h;function C(){var f=a._olm_inbound_group_session_size();this.ac=je(f),this.$b=a._olm_inbound_group_session(this.ac)}function A(f){return function(){var y=f.apply(this,arguments);if(y===on)throw y=Q(a._olm_inbound_group_session_last_error(arguments[0])),Error("OLM."+y);return y}}C.prototype.free=function(){a._olm_clear_inbound_group_session(this.$b),Ve(this.$b)},C.prototype.pickle=z(function(f){f=ae(f);var y=A(a._olm_pickle_inbound_group_session_length)(this.$b),O=q(f),U=q(y+1);try{A(a._olm_pickle_inbound_group_session)(this.$b,O,f.length,U,y)}finally{for(ce(O,f.length),O=0;O<f.length;O++)f[O]=0}return Q(U,y)}),C.prototype.unpickle=z(function(f,y){f=ae(f);var O=q(f);y=ae(y);var U=q(y);try{A(a._olm_unpickle_inbound_group_session)(this.$b,O,f.length,U,y.length)}finally{for(ce(O,f.length),O=0;O<f.length;O++)f[O]=0}}),C.prototype.create=z(function(f){f=ae(f);var y=q(f);try{A(a._olm_init_inbound_group_session)(this.$b,y,f.length)}finally{for(ce(y,f.length),y=0;y<f.length;y++)f[y]=0}}),C.prototype.import_session=z(function(f){f=ae(f);var y=q(f);try{A(a._olm_import_inbound_group_session)(this.$b,y,f.length)}finally{for(ce(y,f.length),y=0;y<f.length;y++)f[y]=0}}),C.prototype.decrypt=z(function(f){try{var y=je(f.length);ui(f,y);var O=A(a._olm_group_decrypt_max_plaintext_length)(this.$b,y,f.length);ui(f,y);var U=je(O+1),B=q(4),ee=A(a._olm_group_decrypt)(this.$b,y,f.length,U,O,B);return Ke(U+ee),{plaintext:Q(U,ee),message_index:De(B,"i32")}}finally{y!==void 0&&Ve(y),U!==void 0&&(ce(U,ee),Ve(U))}}),C.prototype.session_id=z(function(){var f=A(a._olm_inbound_group_session_id_length)(this.$b),y=q(f+1);return A(a._olm_inbound_group_session_id)(this.$b,y,f),Q(y,f)}),C.prototype.first_known_index=z(function(){return A(a._olm_inbound_group_session_first_known_index)(this.$b)}),C.prototype.export_session=z(function(f){var y=A(a._olm_export_inbound_group_session_length)(this.$b),O=q(y+1);return b(a._olm_export_inbound_group_session)(this.$b,O,y,f),f=Q(O,y),ce(O,y),f}),r.InboundGroupSession=C;function $(){var f=a._olm_pk_encryption_size();this.ac=je(f),this.$b=a._olm_pk_encryption(this.ac)}function re(f){return function(){var y=f.apply(this,arguments);if(y===on)throw y=Q(a._olm_pk_encryption_last_error(arguments[0])),Error("OLM."+y);return y}}$.prototype.free=function(){a._olm_clear_pk_encryption(this.$b),Ve(this.$b)},$.prototype.set_recipient_key=z(function(f){f=ae(f);var y=q(f);re(a._olm_pk_encryption_set_recipient_key)(this.$b,y,f.length)}),$.prototype.encrypt=z(function(f){try{var y=Fr(f),O=je(y+1);sn(f,Ue,O,y+1);var U=re(a._olm_pk_encrypt_random_length)(),B=Rr(U,p),ee=re(a._olm_pk_ciphertext_length)(this.$b,y),ve=je(ee+1),At=re(a._olm_pk_mac_length)(this.$b),qo=q(At+1);Ke(qo+At);var Li=re(a._olm_pk_key_length)(),an=q(Li+1);return Ke(an+Li),re(a._olm_pk_encrypt)(this.$b,O,y,ve,ee,qo,At,an,Li,B,U),Ke(ve+ee),{ciphertext:Q(ve,ee),mac:Q(qo,At),ephemeral:Q(an,Li)}}finally{B!==void 0&&ce(B,U),O!==void 0&&(ce(O,y+1),Ve(O)),ve!==void 0&&Ve(ve)}});function we(){var f=a._olm_pk_decryption_size();this.ac=je(f),this.$b=a._olm_pk_decryption(this.ac)}function de(f){return function(){var y=f.apply(this,arguments);if(y===on)throw y=Q(a._olm_pk_decryption_last_error(arguments[0])),Error("OLM."+y);return y}}we.prototype.free=function(){a._olm_clear_pk_decryption(this.$b),Ve(this.$b)},we.prototype.init_with_private_key=z(function(f){var y=q(f.length);a.HEAPU8.set(f,y);var O=de(a._olm_pk_key_length)(),U=q(O+1);try{de(a._olm_pk_key_from_private)(this.$b,U,O,y,f.length)}finally{ce(y,f.length)}return Q(U,O)}),we.prototype.generate_key=z(function(){var f=de(a._olm_pk_private_key_length)(),y=Rr(f,p),O=de(a._olm_pk_key_length)(),U=q(O+1);try{de(a._olm_pk_key_from_private)(this.$b,U,O,y,f)}finally{ce(y,f)}return Q(U,O)}),we.prototype.get_private_key=z(function(){var f=re(a._olm_pk_private_key_length)(),y=q(f);de(a._olm_pk_get_private_key)(this.$b,y,f);var O=new Uint8Array(new Uint8Array(a.HEAPU8.buffer,y,f));return ce(y,f),O}),we.prototype.pickle=z(function(f){f=ae(f);var y=de(a._olm_pickle_pk_decryption_length)(this.$b),O=q(f),U=q(y+1);try{de(a._olm_pickle_pk_decryption)(this.$b,O,f.length,U,y)}finally{for(ce(O,f.length),O=0;O<f.length;O++)f[O]=0}return Q(U,y)}),we.prototype.unpickle=z(function(f,y){f=ae(f);var O=q(f),U=ae(y),B=q(U);y=de(a._olm_pk_key_length)();var ee=q(y+1);try{de(a._olm_unpickle_pk_decryption)(this.$b,O,f.length,B,U.length,ee,y)}finally{for(ce(O,f.length),O=0;O<f.length;O++)f[O]=0}return Q(ee,y)}),we.prototype.decrypt=z(function(f,y,O){try{var U=Fr(O),B=je(U+1);sn(O,Ue,B,U+1);var ee=ae(f),ve=q(ee),At=ae(y),qo=q(At),Li=de(a._olm_pk_max_plaintext_length)(this.$b,U),an=je(Li+1),cu=de(a._olm_pk_decrypt)(this.$b,ve,ee.length,qo,At.length,B,U,an,Li);return Ke(an+cu),Q(an,cu)}finally{an!==void 0&&(ce(an,cu+1),Ve(an)),B!==void 0&&Ve(B)}});function Ie(){var f=a._olm_pk_signing_size();this.ac=je(f),this.$b=a._olm_pk_signing(this.ac)}function ye(f){return function(){var y=f.apply(this,arguments);if(y===on)throw y=Q(a._olm_pk_signing_last_error(arguments[0])),Error("OLM."+y);return y}}Ie.prototype.free=function(){a._olm_clear_pk_signing(this.$b),Ve(this.$b)},Ie.prototype.init_with_seed=z(function(f){var y=q(f.length);a.HEAPU8.set(f,y);var O=ye(a._olm_pk_signing_public_key_length)(),U=q(O+1);try{ye(a._olm_pk_signing_key_from_seed)(this.$b,U,O,y,f.length)}finally{ce(y,f.length)}return Q(U,O)}),Ie.prototype.generate_seed=z(function(){var f=ye(a._olm_pk_signing_seed_length)(),y=Rr(f,p),O=new Uint8Array(new Uint8Array(a.HEAPU8.buffer,y,f));return ce(y,f),O}),Ie.prototype.sign=z(function(f){try{var y=Fr(f),O=je(y+1);sn(f,Ue,O,y+1);var U=ye(a._olm_pk_signature_length)(),B=q(U+1);return ye(a._olm_pk_sign)(this.$b,O,y,B,U),Q(B,U)}finally{O!==void 0&&(ce(O,y+1),Ve(O))}});function gi(){var f=a._olm_sas_size(),y=a._olm_create_sas_random_length(),O=Rr(y,p);this.ac=je(f),this.$b=a._olm_sas(this.ac),a._olm_create_sas(this.$b,O,y),ce(O,y)}function An(f){return function(){var y=f.apply(this,arguments);if(y===on)throw y=Q(a._olm_sas_last_error(arguments[0])),Error("OLM."+y);return y}}gi.prototype.free=function(){a._olm_clear_sas(this.$b),Ve(this.$b)},gi.prototype.get_pubkey=z(function(){var f=An(a._olm_sas_pubkey_length)(this.$b),y=q(f+1);return An(a._olm_sas_get_pubkey)(this.$b,y,f),Q(y,f)}),gi.prototype.set_their_key=z(function(f){f=ae(f);var y=q(f);An(a._olm_sas_set_their_key)(this.$b,y,f.length)}),gi.prototype.is_their_key_set=z(function(){return!!An(a._olm_sas_is_their_key_set)(this.$b)}),gi.prototype.generate_bytes=z(function(f,y){f=ae(f);var O=q(f),U=q(y);return An(a._olm_sas_generate_bytes)(this.$b,O,f.length,U,y),new Uint8Array(new Uint8Array(a.HEAPU8.buffer,U,y))}),gi.prototype.calculate_mac=z(function(f,y){f=ae(f);var O=q(f);y=ae(y);var U=q(y),B=An(a._olm_sas_mac_length)(this.$b),ee=q(B+1);return An(a._olm_sas_calculate_mac)(this.$b,O,f.length,U,y.length,ee,B),Q(ee,B)}),gi.prototype.calculate_mac_long_kdf=z(function(f,y){f=ae(f);var O=q(f);y=ae(y);var U=q(y),B=An(a._olm_sas_mac_length)(this.$b),ee=q(B+1);return An(a._olm_sas_calculate_mac_long_kdf)(this.$b,O,f.length,U,y.length,ee,B),Q(ee,B)});var je=a._malloc,Ve=a._free,on;function Rr(f,y){var O=cc(f);return y(new Uint8Array(a.HEAPU8.buffer,O,f)),O}function q(f){return typeof f=="number"?Rr(f,function(y){y.fill(0)}):Rr(f.length,function(y){y.set(f)})}function ae(f){if(f instanceof Uint8Array)var y=f;else y=Array(Fr(f)+1),f=sn(f,y,0,y.length),y.length=f;return y}function z(f){return function(){var y=ac();try{return f.apply(this,arguments)}finally{jr(y)}}}function ce(f,y){for(;0<y--;)a.HEAP8[f++]=0}function wt(){var f=a._olm_account_size();this.ac=je(f),this.$b=a._olm_account(this.ac)}function Ge(f){return function(){var y=f.apply(this,arguments);if(y===on)throw y=Q(a._olm_account_last_error(arguments[0])),Error("OLM."+y);return y}}wt.prototype.free=function(){a._olm_clear_account(this.$b),Ve(this.$b)},wt.prototype.create=z(function(){var f=Ge(a._olm_create_account_random_length)(this.$b),y=Rr(f,p);try{Ge(a._olm_create_account)(this.$b,y,f)}finally{ce(y,f)}}),wt.prototype.identity_keys=z(function(){var f=Ge(a._olm_account_identity_keys_length)(this.$b),y=q(f+1);return Ge(a._olm_account_identity_keys)(this.$b,y,f),Q(y,f)}),wt.prototype.sign=z(function(f){var y=Ge(a._olm_account_signature_length)(this.$b);f=ae(f);var O=q(f),U=q(y+1);try{Ge(a._olm_account_sign)(this.$b,O,f.length,U,y)}finally{for(ce(O,f.length),O=0;O<f.length;O++)f[O]=0}return Q(U,y)}),wt.prototype.one_time_keys=z(function(){var f=Ge(a._olm_account_one_time_keys_length)(this.$b),y=q(f+1);return Ge(a._olm_account_one_time_keys)(this.$b,y,f),Q(y,f)}),wt.prototype.mark_keys_as_published=z(function(){Ge(a._olm_account_mark_keys_as_published)(this.$b)}),wt.prototype.max_number_of_one_time_keys=z(function(){return Ge(a._olm_account_max_number_of_one_time_keys)(this.$b)}),wt.prototype.generate_one_time_keys=z(function(f){var y=Ge(a._olm_account_generate_one_time_keys_random_length)(this.$b,f),O=Rr(y,p);try{Ge(a._olm_account_generate_one_time_keys)(this.$b,f,O,y)}finally{ce(O,y)}}),wt.prototype.remove_one_time_keys=z(function(f){Ge(a._olm_remove_one_time_keys)(this.$b,f.$b)}),wt.prototype.generate_fallback_key=z(function(){var f=Ge(a._olm_account_generate_fallback_key_random_length)(this.$b),y=Rr(f,p);try{Ge(a._olm_account_generate_fallback_key)(this.$b,y,f)}finally{ce(y,f)}}),wt.prototype.fallback_key=z(function(){var f=Ge(a._olm_account_fallback_key_length)(this.$b),y=q(f+1);return Ge(a._olm_account_fallback_key)(this.$b,y,f),Q(y,f)}),wt.prototype.unpublished_fallback_key=z(function(){var f=Ge(a._olm_account_unpublished_fallback_key_length)(this.$b),y=q(f+1);return Ge(a._olm_account_unpublished_fallback_key)(this.$b,y,f),Q(y,f)}),wt.prototype.forget_old_fallback_key=z(function(){Ge(a._olm_account_forget_old_fallback_key)(this.$b)}),wt.prototype.pickle=z(function(f){f=ae(f);var y=Ge(a._olm_pickle_account_length)(this.$b),O=q(f),U=q(y+1);try{Ge(a._olm_pickle_account)(this.$b,O,f.length,U,y)}finally{for(ce(O,f.length),O=0;O<f.length;O++)f[O]=0}return Q(U,y)}),wt.prototype.unpickle=z(function(f,y){f=ae(f);var O=q(f);y=ae(y);var U=q(y);try{Ge(a._olm_unpickle_account)(this.$b,O,f.length,U,y.length)}finally{for(ce(O,f.length),O=0;O<f.length;O++)f[O]=0}});function Wt(){var f=a._olm_session_size();this.ac=je(f),this.$b=a._olm_session(this.ac)}function at(f){return function(){var y=f.apply(this,arguments);if(y===on)throw y=Q(a._olm_session_last_error(arguments[0])),Error("OLM."+y);return y}}Wt.prototype.free=function(){a._olm_clear_session(this.$b),Ve(this.$b)},Wt.prototype.pickle=z(function(f){f=ae(f);var y=at(a._olm_pickle_session_length)(this.$b),O=q(f),U=q(y+1);try{at(a._olm_pickle_session)(this.$b,O,f.length,U,y)}finally{for(ce(O,f.length),O=0;O<f.length;O++)f[O]=0}return Q(U,y)}),Wt.prototype.unpickle=z(function(f,y){f=ae(f);var O=q(f);y=ae(y);var U=q(y);try{at(a._olm_unpickle_session)(this.$b,O,f.length,U,y.length)}finally{for(ce(O,f.length),O=0;O<f.length;O++)f[O]=0}}),Wt.prototype.create_outbound=z(function(f,y,O){var U=at(a._olm_create_outbound_session_random_length)(this.$b),B=Rr(U,p);y=ae(y),O=ae(O);var ee=q(y),ve=q(O);try{at(a._olm_create_outbound_session)(this.$b,f.$b,ee,y.length,ve,O.length,B,U)}finally{ce(B,U)}}),Wt.prototype.create_inbound=z(function(f,y){y=ae(y);var O=q(y);try{at(a._olm_create_inbound_session)(this.$b,f.$b,O,y.length)}finally{for(ce(O,y.length),f=0;f<y.length;f++)y[f]=0}}),Wt.prototype.create_inbound_from=z(function(f,y,O){y=ae(y);var U=q(y);O=ae(O);var B=q(O);try{at(a._olm_create_inbound_session_from)(this.$b,f.$b,U,y.length,B,O.length)}finally{for(ce(B,O.length),f=0;f<O.length;f++)O[f]=0}}),Wt.prototype.session_id=z(function(){var f=at(a._olm_session_id_length)(this.$b),y=q(f+1);return at(a._olm_session_id)(this.$b,y,f),Q(y,f)}),Wt.prototype.has_received_message=function(){return!!at(a._olm_session_has_received_message)(this.$b)},Wt.prototype.matches_inbound=z(function(f){f=ae(f);var y=q(f);return!!at(a._olm_matches_inbound_session)(this.$b,y,f.length)}),Wt.prototype.matches_inbound_from=z(function(f,y){f=ae(f);var O=q(f);y=ae(y);var U=q(y);return!!at(a._olm_matches_inbound_session_from)(this.$b,O,f.length,U,y.length)}),Wt.prototype.encrypt=z(function(f){try{var y=at(a._olm_encrypt_random_length)(this.$b),O=at(a._olm_encrypt_message_type)(this.$b),U=Fr(f),B=at(a._olm_encrypt_message_length)(this.$b,U),ee=Rr(y,p),ve=je(U+1);sn(f,Ue,ve,U+1);var At=je(B+1);return at(a._olm_encrypt)(this.$b,ve,U,ee,y,At,B),Ke(At+B),{type:O,body:Q(At,B)}}finally{ee!==void 0&&ce(ee,y),ve!==void 0&&(ce(ve,U+1),Ve(ve)),At!==void 0&&Ve(At)}}),Wt.prototype.decrypt=z(function(f,y){try{var O=je(y.length);ui(y,O);var U=at(a._olm_decrypt_max_plaintext_length)(this.$b,f,O,y.length);ui(y,O);var B=je(U+1),ee=at(a._olm_decrypt)(this.$b,f,O,y.length,B,U);return Ke(B+ee),Q(B,ee)}finally{O!==void 0&&Ve(O),B!==void 0&&(ce(B,U),Ve(B))}}),Wt.prototype.describe=z(function(){try{var f=je(256);return at(a._olm_session_describe)(this.$b,f,256),Q(f)}finally{f!==void 0&&Ve(f)}});function lc(){var f=a._olm_utility_size();this.ac=je(f),this.$b=a._olm_utility(this.ac)}function au(f){return function(){var y=f.apply(this,arguments);if(y===on)throw y=Q(a._olm_utility_last_error(arguments[0])),Error("OLM."+y);return y}}return lc.prototype.free=function(){a._olm_clear_utility(this.$b),Ve(this.$b)},lc.prototype.sha256=z(function(f){var y=au(a._olm_sha256_length)(this.$b);f=ae(f);var O=q(f),U=q(y+1);try{au(a._olm_sha256)(this.$b,O,f.length,U,y)}finally{for(ce(O,f.length),O=0;O<f.length;O++)f[O]=0}return Q(U,y)}),lc.prototype.ed25519_verify=z(function(f,y,O){f=ae(f);var U=q(f);y=ae(y);var B=q(y);O=ae(O);var ee=q(O);try{au(a._olm_ed25519_verify)(this.$b,U,f.length,B,y.length,ee,O.length)}finally{for(ce(B,y.length),f=0;f<y.length;f++)y[f]=0}}),r.Account=wt,r.Session=Wt,r.Utility=lc,r.PkEncryption=$,r.PkDecryption=we,r.PkSigning=Ie,r.SAS=gi,r.get_library_version=z(function(){var f=q(3);return a._olm_get_library_version(f,f+1,f+2),[De(f,"i8"),De(f+1,"i8"),De(f+2,"i8")]}),u.ready}}();n.exports=o;var c;return r.init=function(l){return c||(l&&(OLM_OPTIONS=l),c=new Promise(function(u,a){i=function(){u()},s=function(g){a(g)},o()}),c)},r}();typeof window!="undefined"&&(window.Olm=t),n.exports=t;// @license-end })(gy);var LA=gy.exports,IE={},V={exports:{}};(function(n){function e(t){return t&&t.__esModule?t:{default:t}}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(V);var my={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(j,function(){var t=XMLHttpRequest;if(!t)throw new Error("missing XMLHttpRequest");i.log={trace:l,debug:l,info:l,warn:l,error:l};var r=3*60*1e3;function i(p,E){if(typeof E!="function")throw new Error("Bad callback given: "+E);if(!p)throw new Error("No options given");var I=p.onResponse;if(typeof p=="string"?p={uri:p}:p=JSON.parse(JSON.stringify(p)),p.onResponse=I,p.verbose&&(i.log=u()),p.url&&(p.uri=p.url,delete p.url),!p.uri&&p.uri!=="")throw new Error("options.uri is a required argument");if(typeof p.uri!="string")throw new Error("options.uri must be a string");for(var w=["proxy","_redirectsFollowed","maxRedirects","followRedirect"],k=0;k<w.length;k++)if(p[w[k]])throw new Error("options."+w[k]+" is not supported");if(p.callback=E,p.method=p.method||"GET",p.headers=p.headers||{},p.body=p.body||null,p.timeout=p.timeout||i.DEFAULT_TIMEOUT,p.headers.host)throw new Error("Options.headers.host is not supported");p.json&&(p.headers.accept=p.headers.accept||"application/json",p.method!=="GET"&&(p.headers["content-type"]="application/json"),typeof p.json!="boolean"?p.body=JSON.stringify(p.json):typeof p.body!="string"&&(p.body=JSON.stringify(p.body)));var P=function(L){var H=[];for(var F in L)L.hasOwnProperty(F)&&H.push(encodeURIComponent(F)+"="+encodeURIComponent(L[F]));return H.join("&")};if(p.qs){var S=typeof p.qs=="string"?p.qs:P(p.qs);p.uri.indexOf("?")!==-1?p.uri=p.uri+"&"+S:p.uri=p.uri+"?"+S}var T=function(L){var H={};H.boundry="-------------------------------"+Math.floor(Math.random()*1e9);var F=[];for(var le in L)L.hasOwnProperty(le)&&F.push("--"+H.boundry+` Content-Disposition: form-data; name="`+le+`" diff --git a/pr-121/index.html b/pr-121/index.html @@ -3,7 +3,7 @@ <head> <meta charset="UTF-8" /> - <link rel="icon" type="image/svg+xml" href="/Logo_colored.svg" /> + <link rel="icon" type="image/svg+xml" href="/pr-121/Logo_colored.svg" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="description" content="Matrix-Art is an image gallery for Matrix."> <title>Matrix Art</title> @@ -11,9 +11,9 @@ global = globalThis // fix for "global not defined" error globalThis.OLM_OPTIONS = undefined; // Fix missing var for olm </script> - <script type="module" crossorigin src="/assets/index.d4976c03.js"></script> - <link rel="modulepreload" href="/assets/vendor.d127a5c1.js"> - <link rel="stylesheet" href="/assets/index.b49f94f5.css"> + <script type="module" crossorigin src="/pr-121/assets/index.0465427b.js"></script> + <link rel="modulepreload" href="/pr-121/assets/vendor.d127a5c1.js"> + <link rel="stylesheet" href="/pr-121/assets/index.311ea642.css"> </head> <body>