You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

153 lines
426 KiB

var olm_exports = {};
var onInitSuccess;
var onInitFail;
var Module = (function() {
var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;
return (
function(Module) {
Module = Module || {};
6 years ago
var c;c||(c=typeof Module !== 'undefined' ? Module : {});var aa;if("undefined"!==typeof window)aa=function(a){window.crypto.getRandomValues(a)};else if(module.exports){var ba=require("crypto");aa=function(a){var b=ba.randomBytes(a.length);a.set(b)};process=global.process}else throw Error("Cannot find global to attach library to");if("undefined"!==typeof OLM_OPTIONS)for(var ca in OLM_OPTIONS)OLM_OPTIONS.hasOwnProperty(ca)&&(c[ca]=OLM_OPTIONS[ca]);
6 years ago
c.onRuntimeInitialized=function(){f=c._olm_error();olm_exports.PRIVATE_KEY_LENGTH=c._olm_pk_private_key_length();onInitSuccess&&onInitSuccess()};c.onAbort=function(a){onInitFail&&onInitFail(a)};var ea={},h;for(h in c)c.hasOwnProperty(h)&&(ea[h]=c[h]);c.arguments=[];c.thisProgram="./this.program";c.quit=function(a,b){throw b;};c.preRun=[];c.postRun=[];var fa=!1,ha=!1,l=!1,ia=!1;fa="object"===typeof window;ha="function"===typeof importScripts;
l="object"===typeof process&&"function"===typeof require&&!fa&&!ha;ia=!fa&&!l&&!ha;var n="";
if(l){n=__dirname+"/";var ja,ka;c.read=function(a,b){var d=p(a);d||(ja||(ja=require("fs")),ka||(ka=require("path")),a=ka.normalize(a),d=ja.readFileSync(a));return b?d:d.toString()};c.readBinary=function(a){a=c.read(a,!0);a.buffer||(a=new Uint8Array(a));assert(a.buffer);return a};1<process.argv.length&&(c.thisProgram=process.argv[1].replace(/\\/g,"/"));c.arguments=process.argv.slice(2);process.on("uncaughtException",function(a){throw a;});process.on("unhandledRejection",function(){process.exit(1)});
c.quit=function(a){process.exit(a)};c.inspect=function(){return"[Emscripten Module object]"}}else if(ia)"undefined"!=typeof read&&(c.read=function(a){var b=p(a);return b?la(b):read(a)}),c.readBinary=function(a){var b;if(b=p(a))return b;if("function"===typeof readbuffer)return new Uint8Array(readbuffer(a));b=read(a,"binary");assert("object"===typeof b);return b},"undefined"!=typeof scriptArgs?c.arguments=scriptArgs:"undefined"!=typeof arguments&&(c.arguments=arguments),"function"===typeof quit&&(c.quit=
function(a){quit(a)});else if(fa||ha)fa?document.currentScript&&(n=document.currentScript.src):n=self.location.href,_scriptDir&&(n=_scriptDir),0!==n.indexOf("blob:")?n=n.substr(0,n.lastIndexOf("/")+1):n="",c.read=function(a){try{var b=new XMLHttpRequest;b.open("GET",a,!1);b.send(null);return b.responseText}catch(d){if(a=p(a))return la(a);throw d;}},ha&&(c.readBinary=function(a){try{var b=new XMLHttpRequest;b.open("GET",a,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)}catch(d){if(a=
p(a))return a;throw d;}}),c.readAsync=function(a,b,d){var e=new XMLHttpRequest;e.open("GET",a,!0);e.responseType="arraybuffer";e.onload=function(){if(200==e.status||0==e.status&&e.response)b(e.response);else{var g=p(a);g?b(g.buffer):d()}};e.onerror=d;e.send(null)},c.setWindowTitle=function(a){document.title=a};
6 years ago
var ma=c.print||("undefined"!==typeof console?console.log.bind(console):"undefined"!==typeof print?print:null),na=c.printErr||("undefined"!==typeof printErr?printErr:"undefined"!==typeof console&&console.warn.bind(console)||ma);for(h in ea)ea.hasOwnProperty(h)&&(c[h]=ea[h]);ea=void 0;function oa(a){var b=q;q=q+a+15&-16;return b}function pa(a){var b=r[t>>2];a=b+a+15&-16;r[t>>2]=a;if(a=a>=v)qa(),a=!0;return a?(r[t>>2]=b,0):b}function ra(a){var b;b||(b=16);return Math.ceil(a/b)*b}var sa=!1;
function assert(a,b){a||ta("Assertion failed: "+b)}
function w(a){var b="i8";"*"===b.charAt(b.length-1)&&(b="i32");switch(b){case "i1":x[a>>0]=0;break;case "i8":x[a>>0]=0;break;case "i16":ua[a>>1]=0;break;case "i32":r[a>>2]=0;break;case "i64":tempI64=[0,(tempDouble=0,1<=+va(tempDouble)?0<tempDouble?(wa(+xa(tempDouble/4294967296),4294967295)|0)>>>0:~~+ya((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)];r[a>>2]=tempI64[0];r[a+4>>2]=tempI64[1];break;case "float":za[a>>2]=0;break;case "double":Aa[a>>3]=0;break;default:ta("invalid type for setValue: "+
b)}}function Ba(a,b){b=b||"i8";"*"===b.charAt(b.length-1)&&(b="i32");switch(b){case "i1":return x[a>>0];case "i8":return x[a>>0];case "i16":return ua[a>>1];case "i32":return r[a>>2];case "i64":return r[a>>2];case "float":return za[a>>2];case "double":return Aa[a>>3];default:ta("invalid type for getValue: "+b)}return null}
function y(a){var b=c.ALLOC_STACK;if("number"===typeof a){var d=!0;var e=a}else d=!1,e=a.length;var g;4==b?g=k:g=["function"===typeof Ca?Ca:oa,Da,oa,pa][void 0===b?2:b](Math.max(e,1));if(d){var k=g;assert(0==(g&3));for(a=g+(e&-4);k<a;k+=4)r[k>>2]=0;for(a=g+e;k<a;)x[k++>>0]=0;return g}a.subarray||a.slice?z.set(a,g):z.set(new Uint8Array(a),g);return g}var Ea="undefined"!==typeof TextDecoder?new TextDecoder("utf8"):void 0;
function A(a){for(var b=z,d=a;b[d];)++d;if(16<d-a&&b.subarray&&Ea)return Ea.decode(b.subarray(a,d));for(d="";;){var e=b[a++];if(!e)return d;if(e&128){var g=b[a++]&63;if(192==(e&224))d+=String.fromCharCode((e&31)<<6|g);else{var k=b[a++]&63;if(224==(e&240))e=(e&15)<<12|g<<6|k;else{var m=b[a++]&63;if(240==(e&248))e=(e&7)<<18|g<<12|k<<6|m;else{var u=b[a++]&63;if(248==(e&252))e=(e&3)<<24|g<<18|k<<12|m<<6|u;else{var J=b[a++]&63;e=(e&1)<<30|g<<24|k<<18|m<<12|u<<6|J}}}65536>e?d+=String.fromCharCode(e):(e-=
65536,d+=String.fromCharCode(55296|e>>10,56320|e&1023))}}else d+=String.fromCharCode(e)}}
6 years ago
function Fa(a,b,d,e){if(!(0<e))return 0;var g=d;e=d+e-1;for(var k=0;k<a.length;++k){var m=a.charCodeAt(k);if(55296<=m&&57343>=m){var u=a.charCodeAt(++k);m=65536+((m&1023)<<10)|u&1023}if(127>=m){if(d>=e)break;b[d++]=m}else{if(2047>=m){if(d+1>=e)break;b[d++]=192|m>>6}else{if(65535>=m){if(d+2>=e)break;b[d++]=224|m>>12}else{if(2097151>=m){if(d+3>=e)break;b[d++]=240|m>>18}else{if(67108863>=m){if(d+4>=e)break;b[d++]=248|m>>24}else{if(d+5>=e)break;b[d++]=252|m>>30;b[d++]=128|m>>24&63}b[d++]=128|m>>18&63}b[d++]=
128|m>>12&63}b[d++]=128|m>>6&63}b[d++]=128|m&63}}b[d]=0;return d-g}function Ga(a){for(var b=0,d=0;d<a.length;++d){var e=a.charCodeAt(d);55296<=e&&57343>=e&&(e=65536+((e&1023)<<10)|a.charCodeAt(++d)&1023);127>=e?++b:b=2047>=e?b+2:65535>=e?b+3:2097151>=e?b+4:67108863>=e?b+5:b+6}return b}"undefined"!==typeof TextDecoder&&new TextDecoder("utf-16le");var buffer,x,z,ua,r,za,Aa,Ha,q,Ia,Ja,Ka,La,t;Ha=q=Ia=Ja=Ka=La=t=0;
function qa(){ta("Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value "+v+", (2) compile with -s ALLOW_MEMORY_GROWTH=1 which allows increasing the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or (4) if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 ")}var Ma=c.TOTAL_STACK||5242880,v=c.TOTAL_MEMORY||16777216;
v<Ma&&na("TOTAL_MEMORY should be larger than TOTAL_STACK, was "+v+"! (TOTAL_STACK="+Ma+")");c.buffer?buffer=c.buffer:(buffer=new ArrayBuffer(v),c.buffer=buffer);c.HEAP8=x=new Int8Array(buffer);c.HEAP16=ua=new Int16Array(buffer);c.HEAP32=r=new Int32Array(buffer);c.HEAPU8=z=new Uint8Array(buffer);c.HEAPU16=new Uint16Array(buffer);c.HEAPU32=new Uint32Array(buffer);c.HEAPF32=za=new Float32Array(buffer);c.HEAPF64=Aa=new Float64Array(buffer);
function Na(a){for(;0<a.length;){var b=a.shift();if("function"==typeof b)b();else{var d=b.h;"number"===typeof d?void 0===b.c?c.dynCall_v(d):c.dynCall_vi(d,b.c):d(void 0===b.c?null:b.c)}}}var Oa=[],Pa=[],Qa=[],Ra=[],Sa=!1;function Ta(){var a=c.preRun.shift();Oa.unshift(a)}function Ua(a,b){for(var d=0;d<a.length;++d)x[b++>>0]=a.charCodeAt(d)}var va=Math.abs,ya=Math.ceil,xa=Math.floor,wa=Math.min,C=0,Va=null,Wa=null;c.preloadedImages={};c.preloadedAudios={};var D=null,Xa="data:application/octet-stream;base64,";
Ha=8;q=Ha+39104;Pa.push();D="data:application/octet-stream;base64,AAAAAAAAAABBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWmFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6MDEyMzQ1Njc4OSsv/////////////////////////////////////////////////////////z7///8/NDU2Nzg5Ojs8Pf////////8AAQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGf///////xobHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIz//////8JAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIU7jAG98ST/+CXDAWDcNwC3TD7/w0I9ADJMpAHhpEz/TD2j/3U+HwBRkUD/dkEOAKJz1v8Gii4AfOb0/wqKjwA0GsIAuPRMAIGPKQG+9BP/e6p6/2KBRAB51ZMAVmUe/6FnmwCMWUP/7+W+AUMLtQDG8In+7kW8/0OX7gATKmz/5VVxATJEh/8RagkAMmcB/1ABqAEjmB7/EKi5AThZ6P9l0vwAKfpHAMyqT/8OLu//UE3vAL3WS/8RjfkAJlBM/75VdQBW5KoAnNjQAcPPpP+WQkz/r+EQ/41QYgFM2/IAxqJyAC7amACbK/H+m6Bo/zO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BQmqIATdxrAerNSv82pmf/dEgJAOReL/8eyBn/I9ZZ/z2wjP9T4qP/S4KsAIAmEQBfiZj/13yfAU9dAACUUp3+w4L7/yjKTP/7fuAAnWM+/s8H4f9gRMMAjLqd/4MT5/8qgP4ANNs9/mbLSACNBwv/uqTVAB96dwCF8pEA0Pzo/1vVtv+PBPr++ddKAKUebwGrC
6 years ago
var Ya=q;q+=16;t=oa(4);Ia=Ja=ra(q);Ka=Ia+Ma;La=ra(Ka);r[t>>2]=La;var Za=!1;function E(a){var b=Array(Ga(a)+1);a=Fa(a,b,0,b.length);b.length=a;return b}function la(a){for(var b=[],d=0;d<a.length;d++){var e=a[d];255<e&&(Za&&assert(!1,"Character code "+e+" ("+String.fromCharCode(e)+") at offset "+d+" not in 0x00-0xFF."),e&=255);b.push(String.fromCharCode(e))}return b.join("")}
var $a="function"===typeof atob?atob:function(a){var b="",d=0;a=a.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(d++));var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(d++));var k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(d++));var m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(d++));e=e<<2|g>>4;
g=(g&15)<<4|k>>2;var u=(k&3)<<6|m;b+=String.fromCharCode(e);64!==k&&(b+=String.fromCharCode(g));64!==m&&(b+=String.fromCharCode(u))}while(d<a.length);return b};
function p(a){if(String.prototype.startsWith?a.startsWith(Xa):0===a.indexOf(Xa)){a=a.slice(Xa.length);if("boolean"===typeof l&&l){try{var b=Buffer.from(a,"base64")}catch(k){b=new Buffer(a,"base64")}var d=new Uint8Array(b.buffer,b.byteOffset,b.byteLength)}else try{var e=$a(a),g=new Uint8Array(e.length);for(b=0;b<e.length;++b)g[b]=e.charCodeAt(b);d=g}catch(k){throw Error("Converting base64 string to bytes failed.");}return d}}
c.f={Math:Math,Int8Array:Int8Array,Int16Array:Int16Array,Int32Array:Int32Array,Uint8Array:Uint8Array,Uint16Array:Uint16Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array,NaN:NaN,Infinity:Infinity};
c.g={abort:ta,assert:assert,enlargeMemory:function(){qa()},getTotalMemory:function(){return v},abortOnCannotGrowMemory:qa,invoke_ii:function(a,b){var d=ab();try{return c.dynCall_ii(a,b)}catch(e){bb(d);if("number"!==typeof e&&"longjmp"!==e)throw e;c.setThrew(1,0)}},invoke_iii:function(a,b,d){var e=ab();try{return c.dynCall_iii(a,b,d)}catch(g){bb(e);if("number"!==typeof g&&"longjmp"!==g)throw g;c.setThrew(1,0)}},invoke_iiii:function(a,b,d,e){var g=ab();try{return c.dynCall_iiii(a,b,d,e)}catch(k){bb(g);
if("number"!==typeof k&&"longjmp"!==k)throw k;c.setThrew(1,0)}},invoke_iiiiiiiiii:function(a,b,d,e,g,k,m,u,J,Q){var B=ab();try{return c.dynCall_iiiiiiiiii(a,b,d,e,g,k,m,u,J,Q)}catch(da){bb(B);if("number"!==typeof da&&"longjmp"!==da)throw da;c.setThrew(1,0)}},___setErrNo:function(a){c.___errno_location&&(r[c.___errno_location()>>2]=a);return a},_emscripten_memcpy_big:function(a,b,d){z.set(z.subarray(b,b+d),a);return a},DYNAMICTOP_PTR:t,tempDoublePtr:Ya,STACKTOP:Ja,STACK_MAX:Ka};// EMSCRIPTEN_START_ASM
6 years ago
var F=(/** @suppress {uselessCode} */ function(global,env,buffer) {
"use asm";var a=new global.Int8Array(buffer);var b=new global.Int16Array(buffer);var c=new global.Int32Array(buffer);var d=new global.Uint8Array(buffer);var e=new global.Uint16Array(buffer);var f=new global.Uint32Array(buffer);var g=new global.Float32Array(buffer);var h=new global.Float64Array(buffer);var i=env.DYNAMICTOP_PTR|0;var j=env.tempDoublePtr|0;var k=env.STACKTOP|0;var l=env.STACK_MAX|0;var m=0;var n=0;var o=0;var p=0;var q=global.NaN,r=global.Infinity;var s=0,t=0,u=0,v=0,w=0.0;var x=0;var y=global.Math.floor;var z=global.Math.abs;var A=global.Math.sqrt;var B=global.Math.pow;var C=global.Math.cos;var D=global.Math.sin;var E=global.Math.tan;var F=global.Math.acos;var G=global.Math.asin;var H=global.Math.atan;var I=global.Math.atan2;var J=global.Math.exp;var K=global.Math.log;var L=global.Math.ceil;var M=global.Math.imul;var N=global.Math.min;var O=global.Math.max;var P=global.Math.clz32;var Q=env.abort;var R=env.assert;var S=env.enlargeMemory;var T=env.getTotalMemory;var U=env.abortOnCannotGrowMemory;var V=env.invoke_ii;var W=env.invoke_iii;var X=env.invoke_iiii;var Y=env.invoke_iiiiiiiiii;var Z=env.___setErrNo;var _=env._emscripten_memcpy_big;var $=0.0;
// EMSCRIPTEN_START_FUNCS
function ea(a){a=a|0;var b=0;b=k;k=k+a|0;k=k+15&-16;return b|0}function fa(){return k|0}function ga(a){a=a|0;k=a}function ha(a,b){a=a|0;b=b|0;k=a;l=b}function ia(a,b){a=a|0;b=b|0;if(!m){m=a;n=b}}function ja(a){a=a|0;x=a}function ka(){return x|0}function la(a){a=a|0;var b=0;b=a+2|0;a=(b>>>0)/3|0;return (a<<2|b-(a*3|0))+-2|0}function ma(b,c,e){b=b|0;c=c|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;h=c-((c>>>0)%3|0)|0;g=b+h|0;if(!h){h=e;g=b}else{f=b;do{h=d[f>>0]|0;i=h<<8|(d[f+1>>0]|0);j=d[f+2>>0]|0;f=f+3|0;a[e+3>>0]=a[16+(j&63)>>0]|0;a[e+2>>0]=a[16+((i<<8|j)>>>6&63)>>0]|0;a[e+1>>0]=a[16+(i>>>4&63)>>0]|0;a[e>>0]=a[16+(h>>>2)>>0]|0;e=e+4|0}while((f|0)!=(g|0));h=e}e=b+c-g|0;if(!e){j=h;return j|0}f=d[g>>0]|0;if((e|0)==2){e=d[g+1>>0]|0;a[h+2>>0]=a[16+(e<<2&60)>>0]|0;e=(f<<8|e)>>>4;f=3}else{e=f<<4;f=2}a[h+1>>0]=a[16+(e&63)>>0]|0;a[h>>0]=a[16+(e>>>6)>>0]|0;j=h+f|0;return j|0}function na(a){a=a|0;var b=0;b=a+2|0;return ((a&3|0)==1?-1:(b&3)+-2+((b>>>2)*3|0)|0)|0}function oa(b,c,e){b=b|0;c=c|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;j=c&-4;h=b+j|0;if(!j)i=b;else{i=(((j+-4|0)>>>2)*3|0)+3|0;f=e;g=b;while(1){k=(d[80+(a[g>>0]&127)>>0]|0)<<6|(d[80+(a[g+1>>0]&127)>>0]|0);l=k<<6|(d[80+(a[g+2>>0]&127)>>0]|0);a[f+2>>0]=l<<6|(d[80+(a[g+3>>0]&127)>>0]|0);g=g+4|0;a[f+1>>0]=l>>>2;a[f>>0]=k>>>4;if((g|0)==(h|0))break;else f=f+3|0}e=e+i|0;i=b+j|0}f=b+c|0;g=f-i|0;if(!g)return f|0;h=(d[80+(a[i>>0]&127)>>0]|0)<<6|(d[80+(a[i+1>>0]&127)>>0]|0);if((g|0)==3)a[e+1>>0]=(h<<6|(d[80+(a[i+2>>0]&127)>>0]|0))>>>2;a[e>>0]=h>>>4;return f|0}function pa(a){a=a|0;var b=0;b=a+2|0;a=(b>>>0)/3|0;return (a<<2|b-(a*3|0))+-2|0}function qa(b,c,e){b=b|0;c=c|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;i=c-((c>>>0)%3|0)|0;h=b+i|0;if(!i){i=e;h=b}else{f=e;g=b;do{i=d[g>>0]|0;j=i<<8|(d[g+1>>0]|0);k=d[g+2>>0]|0;g=g+3|0;a[f+3>>0]=a[16+(k&63)>>0]|0;a[f+2>>0]=a[16+((j<<8|k)>>>6&63)>>0]|0;a[f+1>>0]=a[16+(j>>>4&63)>>0]|0;a[f>>0]=a[16+(i>>>2)>>0]|0;f=f+4|0}while((g|0)!=(h|0));i=f}f=b+c-h|0;if(!f){j=i;k=e;k=j-k|0;return k|0}g=d[h>>0]|0;if((f|0)==2){f=d[h+1>>0]|0;a[i+2>>0]=a[16+(f<<2&60)>>0]|0;f=(g<<8|f)>>>4;g=3}else{f=g<<4;g=2}a[i+1>>0]=a[16+(f&63)>>0]|0;a[i>>0]=a[16+(f>>>6)>>0]|0;j=i+g|0;k=e;k=j-k|0;return k|0}function ra(a){a=a|0;var b=0;b=a+2|0;return ((a&3|0)==1?-1:(b&3)+-2+((b>>>2)*3|0)|0)|0}function sa(a,b,c){a=a|0;b=b|0;c=c|0;oa(a,b,c)|0;c=b+2|0;return ((b&3|0)==1?-1:(c&3)+-2+((c>>>2)*3|0)|0)|0}function ta(b,c){b=b|0;c=c|0;a[b+3>>0]=c;a[b+2>>0]=c>>>8;a[b+1>>0]=c>>>16;a[b>>0]=c>>>24;return b+4|0}function ua(a,b,e){a=a|0;b=b|0;e=e|0;var f=0;c[e>>2]=0;f=a+4|0;if(f>>>0>b>>>0){f=b;return f|0}c[e>>2]=0;b=(d[a>>0]|0)<<8;c[e>>2]=b;b=(b|(d[a+1>>0]|0))<<8;c[e>>2]=b;b=(b|(d[a+2>>0]|0))<<8;c[e>>2]=b;c[e>>2]=b|(d[a+3>>0]|0);return f|0}function va(b,c){b=b|0;c=c|0;a[b>>0]=c&1;return b+1|0}function wa(b,c,d){b=b|0;c=c|0;d=d|0;if((b|0)==(c|0)){d=b;return d|0}a[d>>0]=(a[b>>0]|0)!=0&1;d=b+1|0;return d|0}function xa(a,b,c){a=a|0;b=b|0;c=c|0;Hg(a|0,b|0,c|0)|0;return a+c|0}function ya(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=a+d|0;if(e>>>0>b>>>0){e=b;return e|0}Hg(c|0,a|0,d|0)|0;return e|0}function za(a){a=a|0;return 32}function Aa(b,c){b=b|0;c=c|0;var d=0,e=0;e=b;d=e+32|0;do{a[e>>0]=a[c>>0]|0;e=e+1|0;c=c+1|0}while((e|0)<(d|0));return b+32|0}function Ba(b,c,d){b=b|0;c=c|0;d=d|0;var e=0;e=b+32|0;if(e>>>0>c>>>0){e=c;return e|0}c=b;b=d+32|0;do{a[d>>0]=a[c>>0]|0;d=d+1|0;c=c+1|0}while((d|0)<(b|0));return e|0}function Ca(a){a=a|0;return 64}function Da(b,c){b=b|0;c=c|0;var d=0,e=0,f=0;d=b;e=c;f=d+32|0;do{a[d>>0]=a[e>>0]|0;d=d+1|0;e=e+1|0}while((d|0)<(f|0));d=b+32|0;e=c+32|0;f=d+32|0;do{a[d>>0]=a[e>>0]|0;d=d+1|0;e=e+1|0}while((d|0)<(f|0));return b+64|0}function Ea(b,c,d){b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;e=b+32|0;if(e>>>0>c>>>0)e=c;else{h=d;g=h+32|0;do{a[h>>0]=a[b>>0]|0;h=h+1|0;b=b+1|0}while((h|0)<(g|0))}f=e+32|0;if(f>>>0>c>>>0){h=c;return h|0}h=d+32|0;b=e;g=h+32|0;do{a[h>>0]=a[b>>0]|0;h=h+1|0;b=b+1|0}while((h|0)<(g|0));h=f;return h|0}function Fa(a){a=a|0;return 32}function Ga(b,c){b=b|0;c=c|0;var d=0,e=0;e=b;d=e+32|0;do{a[e>>0]=a[c>>0]|0;e=e+1|0;c=c+1|0}while((e|0)<(d|0));return b+32|0}function Ha(b,c,d){b=b|0;c=c|0;d=d|0;var
function ke(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0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ub+80|0;ea=Eb+72|0;Na=ub+72|0;Oa=sb+8|0;Pa=tb+8|0;Qa=sb+16|0;Ra=tb+16|0;Sa=sb+24|0;Ta=tb+24|0;Ua=sb+32|0;Va=tb+32|0;Wa=sb+40|0;Xa=tb+40|0;Ya=sb+48|0;Za=tb+48|0;_a=sb+56|0;$a=tb+56|0;ab=sb+64|0;bb=tb+64|0;cb=sb+72|0;db=tb+72|0;jb=Ab+80|0;kb=Ab+8|0;lb=Ab+16|0;mb=Ab+24|0;nb=Ab+32|0;ob=Ab+40|0;pb=Ab+48|0;qb=Ab+56|0;rb=Ab+64|0;eb=Ab+72|0;n=Fb;da=0;e=j;f=xb;j=zb;l=yb;while(1){m=a[ib+(31-da)>>0]|0;$=0;aa=g;ba=h;ca=i;Z=e;i=f;g=j;h=l;_=n;while(1){X=m&255;Y=X>>>7;Hf(h,_,
function sg(b){b=b|0;var d=0,e=0;d=b+74|0;e=a[d>>0]|0;a[d>>0]=e+255|e;d=c[b>>2]|0;if(!(d&8)){c[b+8>>2]=0;c[b+4>>2]=0;e=c[b+44>>2]|0;c[b+28>>2]=e;c[b+20>>2]=e;c[b+16>>2]=e+(c[b+48>>2]|0);b=0}else{c[b>>2]=d|32;b=-1}return b|0}function tg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=a+20|0;f=c[e>>2]|0;a=(c[a+16>>2]|0)-f|0;a=a>>>0>d>>>0?d:a;Hg(f|0,b|0,a|0)|0;c[e>>2]=(c[e>>2]|0)+a;return d|0}function ug(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=k;k=k+16|0;g=f;c[g>>2]=e;e=Rf(a,b,d,g)|0;k=f;return e|0}function vg(){}function wg(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=a&65535;e=b&65535;c=M(e,f)|0;d=a>>>16;a=(c>>>16)+(M(e,d)|0)|0;e=b>>>16;b=M(e,f)|0;return (x=(a>>>16)+(M(e,d)|0)+(((a&65535)+b|0)>>>16)|0,a+b<<16|c&65535|0)|0}function xg(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=a;f=c;c=wg(e,f)|0;a=x;return (x=(M(b,f)|0)+(M(d,e)|0)+a|a&0,c|0|0)|0}function yg(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;c=a+c>>>0;return (x=b+d+(c>>>0<a>>>0|0)>>>0,c|0)|0}function zg(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;d=b-d-(c>>>0>a>>>0|0)>>>0;return (x=d,a-c>>>0|0)|0}function Ag(a){a=a|0;return (a?31-(P(a^a-1)|0)|0:32)|0}function Bg(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;l=a;j=b;k=j;h=d;n=e;i=n;if(!k){g=(f|0)!=0;if(!i){if(g){c[f>>2]=(l>>>0)%(h>>>0);c[f+4>>2]=0}n=0;f=(l>>>0)/(h>>>0)>>>0;return (x=n,f)|0}else{if(!g){n=0;f=0;return (x=n,f)|0}c[f>>2]=a|0;c[f+4>>2]=b&0;n=0;f=0;return (x=n,f)|0}}g=(i|0)==0;do if(h){if(!g){g=(P(i|0)|0)-(P(k|0)|0)|0;if(g>>>0<=31){m=g+1|0;i=31-g|0;b=g-31>>31;h=m;a=l>>>(m>>>0)&b|k<<i;b=k>>>(m>>>0)&b;g=0;i=l<<i;break}if(!f){n=0;f=0;return (x=n,f)|0}c[f>>2]=a|0;c[f+4>>2]=j|b&0;n=0;f=0;return (x=n,f)|0}g=h-1|0;if(g&h|0){i=(P(h|0)|0)+33-(P(k|0)|0)|0;p=64-i|0;m=32-i|0;j=m>>31;o=i-32|0;b=o>>31;h=i;a=m-1>>31&k>>>(o>>>0)|(k<<m|l>>>(i>>>0))&b;b=b&k>>>(i>>>0);g=l<<p&j;i=(k<<p|l>>>(o>>>0))&j|l<<m&i-33>>31;break}if(f|0){c[f>>2]=g&l;c[f+4>>2]=0}if((h|0)==1){o=j|b&0;p=a|0|0;return (x=o,p)|0}else{p=Ag(h|0)|0;o=k>>>(p>>>0)|0;p=k<<32-p|l>>>(p>>>0)|0;return (x=o,p)|0}}else{if(g){if(f|0){c[f>>2]=(k>>>0)%(h>>>0);c[f+4>>2]=0}o=0;p=(k>>>0)/(h>>>0)>>>0;return (x=o,p)|0}if(!l){if(f|0){c[f>>2]=0;c[f+4>>2]=(k>>>0)%(i>>>0)}o=0;p=(k>>>0)/(i>>>0)>>>0;return (x=o,p)|0}g=i-1|0;if(!(g&i)){if(f|0){c[f>>2]=a|0;c[f+4>>2]=g&k|b&0}o=0;p=k>>>((Ag(i|0)|0)>>>0);return (x=o,p)|0}g=(P(i|0)|0)-(P(k|0)|0)|0;if(g>>>0<=30){b=g+1|0;i=31-g|0;h=b;a=k<<i|l>>>(b>>>0);b=k>>>(b>>>0);g=0;i=l<<i;break}if(!f){o=0;p=0;return (x=o,p)|0}c[f>>2]=a|0;c[f+4>>2]=j|b&0;o=0;p=0;return (x=o,p)|0}while(0);if(!h){k=i;j=0;i=0}else{m=d|0|0;l=n|e&0;k=yg(m|0,l|0,-1,-1)|0;d=x;j=i;i=0;do{e=j;j=g>>>31|j<<1;g=i|g<<1;e=a<<1|e>>>31|0;n=a>>>31|b<<1|0;zg(k|0,d|0,e|0,n|0)|0;p=x;o=p>>31|((p|0)<0?-1:0)<<1;i=o&1;a=zg(e|0,n|0,o&m|0,(((p|0)<0?-1:0)>>31|((p|0)<0?-1:0)<<1)&l|0)|0;b=x;h=h-1|0}while((h|0)!=0);k=j;j=0}h=0;if(f|0){c[f>>2]=a;c[f+4>>2]=b}o=(g|0)>>>31|(k|h)<<1|(h<<1|g>>>31)&0|j;p=(g<<1|0>>>31)&-2|i;return (x=o,p)|0}function Cg(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Bg(a,b,c,d,0)|0}function Dg(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){x=b>>c;return a>>>c|(b&(1<<c)-1)<<32-c}x=(b|0)<0?-1:0;return b>>c-32|0}function Eg(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){x=b>>>c;return a>>>c|(b&(1<<c)-1)<<32-c}x=0;return b>>>c-32|0}function Fg(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){x=b<<c|(a&(1<<c)-1<<32-c)>>>32-c;return a<<c}x=a<<c-32;return 0}function Gg(a){a=a|0;return (a&255)<<24|(a>>8&255)<<16|(a>>16&255)<<8|a>>>24|0}function Hg(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;if((e|0)>=8192)return _(b|0,d|0,e|0)|0;h=b|0;g=b+e|0;if((b&3)==(d&3)){while(b&3){if(!e)return h|0;a[b>>0]=a[d>>0]|0;b=b+1|0;d=d+1|0;e=e-1|0}e=g&-4|0;f=e-64|0;while((b|0)<=(f|0)){c[b>>2]=c[d>>2];c[b+4>>2]=c[d+4>>2];c[b+8>>2]=c[d+8>>2];c[b+12>>2]=c[d+12>>2];c[b+16>>2]=c[d+16>>2];c[b+20>>2]=c[d+20>>2];c[b+24>>2]=c[d+24>>2];c[b+28>>2]=c[d+28>>2];c[b+32>>2]=c[d+32>>2];c[b+36>>2]=c[d+36>>2];c[b+40>>2]=c[d+40>>2];c[b+44>>2]=c[d+44>>2];c[b+48>>2]=c[d+48>>2];c[b+52>>2]=c[d+52>>2];c[b+56>>2]=c[d+56>>2];c[b+60>>2]=c[d+60>>2];b=b+64|0;d=d+64|0}while((b|0)<(e|0)){c[b>>2]=c[d>>2];b=b+4|0;d=d+4|0}}else{e=g-4|0;while((b|0)<(e|0)){a[b>>0
// EMSCRIPTEN_END_FUNCS
var aa=[Og,hc];var ba=[Pg,ic,kc,Pg];var ca=[Qg,tg];var da=[Rg,jc,lc,Rg];return{___muldi3:xg,___udivdi3:Cg,_bitshift64Ashr:Dg,_bitshift64Lshr:Eg,_bitshift64Shl:Fg,_free:Mf,_i64Add:yg,_i64Subtract:zg,_llvm_bswap_i32:Gg,_malloc:Lf,_memcpy:Hg,_memset:Ig,_olm_account:Kc,_olm_account_generate_one_time_keys:fd,_olm_account_generate_one_time_keys_random_length:ed,_olm_account_identity_keys:Zc,_olm_account_identity_keys_length:Yc,_olm_account_last_error:Ec,_olm_account_mark_keys_as_published:cd,_olm_account_max_number_of_one_time_keys:dd,_olm_account_one_time_keys:bd,_olm_account_one_time_keys_length:ad,_olm_account_sign:$c,_olm_account_signature_length:_c,_olm_account_size:Hc,_olm_clear_account:Nc,_olm_clear_inbound_group_session:Ge,_olm_clear_outbound_group_session:jf,_olm_clear_pk_decryption:Pb,_olm_clear_pk_encryption:Fb,_olm_clear_pk_signing:bc,_olm_clear_sas:Ye,_olm_clear_session:Oc,_olm_clear_utility:Pc,_olm_create_account:Xc,_olm_create_account_random_length:Wc,_olm_create_inbound_session:id,_olm_create_inbound_session_from:jd,_olm_create_outbound_session:hd,_olm_create_outbound_session_random_length:gd,_olm_create_sas:_e,_olm_create_sas_random_length:Ze,_olm_decrypt:wd,_olm_decrypt_max_plaintext_length:vd,_olm_ed25519_verify:zd,_olm_encrypt:ud,_olm_encrypt_message_length:td,_olm_encrypt_message_type:rd,_olm_encrypt_random_length:sd,_olm_error:Dc,_olm_export_inbound_group_session:Ue,_olm_export_inbound_group_session_length:Te,_olm_get_library_version:Cc,_olm_group_decrypt:Oe,_olm_group_decrypt_max_plaintext_length:Ne,_olm_group_encrypt:rf,_olm_group_encrypt_message_length:qf,_olm_import_inbound_group_session:Je,_olm_inbound_group_session:Fe,_olm_inbound_group_session_first_known_index:Re,_olm_inbound_group_session_id:Qe,_olm_inbound_group_session_id_length:Pe,_olm_inbound_group_session_is_verified:Se,_olm_inbound_group_session_last_error:He,_olm_inbound_group_session_size:Ee,_olm_init_inbound_group_session:Ie,_olm_init_outbound_group_session:pf,_olm_init_outbound_group_session_random_length:of,_olm_matches_inbound_session:od,_olm_matches_inbound_session_from:pd,_olm_outbound_group_session:hf,_olm_outbound_group_session_id:tf,_olm_outbound_group_session_id_length:sf,_olm_outbound_group_session_key:wf,_olm_outbound_group_session_key_length:vf,_olm_outbound_group_session_last_error:kf,_olm_outbound_group_session_message_index:uf,_olm_outbound_group_session_size:gf,_olm_pickle_account:Sc,_olm_pickle_account_length:Qc,_olm_pickle_inbound_group_session:Le,_olm_pickle_inbound_group_session_length:Ke,_olm_pickle_outbound_group_session:mf,_olm_pickle_outbound_group_session_length:lf,_olm_pickle_pk_decryption:Vb,_olm_pickle_pk_decryption_length:Ub,_olm_pickle_session:Tc,_olm_pickle_session_length:Rc,_olm_pk_ciphertext_length:Ib,_olm_pk_decrypt:Yb,_olm_pk_decryption:Ob,_olm_pk_decryption_last_error:Mb,_olm_pk_decryption_size:Nb,_olm_pk_encrypt:Lb,_olm_pk_encrypt_random_length:Kb,_olm_pk_encryption:Eb,_olm_pk_encryption_last_error:Cb,_olm_pk_encryption_set_recipient_key:Gb,_olm_pk_encryption_size:Db,_olm_pk_generate_key:Tb,_olm_pk_generate_key_random_length:Rb,_olm_pk_get_private_key:Zb,_olm_pk_key_from_private:Sb,_olm_pk_key_length:Hb,_olm_pk_mac_length:Jb,_olm_pk_max_plaintext_length:Xb,_olm_pk_private_key_length:Qb,_olm_pk_sign:gc,_olm_pk_signature_length:fc,_olm_pk_signing:$b,_olm_pk_signing_key_from_seed:ec,_olm_pk_signing_last_error:ac,_olm_pk_signing_public_key_length:dc,_olm_pk_signing_seed_length:cc,_olm_pk_signing_size:_b,_olm_remove_one_time_keys:qd,_olm_sas:Xe,_olm_sas_calculate_mac:ef,_olm_sas_calculate_mac_long_kdf:ff,_olm_sas_generate_bytes:cf,_olm_sas_get_pubkey:af,_olm_sas_last_error:Ve,_olm_sas_mac_length:df,_olm_sas_pubkey_length:$e,_olm_sas_set_their_key:bf,_olm_sas_size:We,_olm_session:Lc,_olm_session_describe:nd,_olm_session_has_received_message:md,_olm_session_id:ld,_olm_session_id_length:kd,_olm_session_last_error:Fc,_olm_session_size:Ic,_olm_sha256:yd,_olm_sha256_length:xd,_olm_unpickle_account:Uc,_olm_unpickle_inbound_group_session:Me,_olm_unpickle_outbound_group_session:nf,_olm_unpickle_pk_decryption:Wb,_o
// EMSCRIPTEN_END_ASM
(c.f,c.g,buffer);c.___muldi3=F.___muldi3;c.___udivdi3=F.___udivdi3;c._bitshift64Ashr=F._bitshift64Ashr;c._bitshift64Lshr=F._bitshift64Lshr;c._bitshift64Shl=F._bitshift64Shl;c._free=F._free;c._i64Add=F._i64Add;c._i64Subtract=F._i64Subtract;c._llvm_bswap_i32=F._llvm_bswap_i32;var Ca=c._malloc=F._malloc;c._memcpy=F._memcpy;c._memset=F._memset;c._olm_account=F._olm_account;c._olm_account_generate_one_time_keys=F._olm_account_generate_one_time_keys;
c._olm_account_generate_one_time_keys_random_length=F._olm_account_generate_one_time_keys_random_length;c._olm_account_identity_keys=F._olm_account_identity_keys;c._olm_account_identity_keys_length=F._olm_account_identity_keys_length;c._olm_account_last_error=F._olm_account_last_error;c._olm_account_mark_keys_as_published=F._olm_account_mark_keys_as_published;c._olm_account_max_number_of_one_time_keys=F._olm_account_max_number_of_one_time_keys;c._olm_account_one_time_keys=F._olm_account_one_time_keys;
c._olm_account_one_time_keys_length=F._olm_account_one_time_keys_length;c._olm_account_sign=F._olm_account_sign;c._olm_account_signature_length=F._olm_account_signature_length;c._olm_account_size=F._olm_account_size;c._olm_clear_account=F._olm_clear_account;c._olm_clear_inbound_group_session=F._olm_clear_inbound_group_session;c._olm_clear_outbound_group_session=F._olm_clear_outbound_group_session;c._olm_clear_pk_decryption=F._olm_clear_pk_decryption;c._olm_clear_pk_encryption=F._olm_clear_pk_encryption;
c._olm_clear_pk_signing=F._olm_clear_pk_signing;c._olm_clear_sas=F._olm_clear_sas;c._olm_clear_session=F._olm_clear_session;c._olm_clear_utility=F._olm_clear_utility;c._olm_create_account=F._olm_create_account;c._olm_create_account_random_length=F._olm_create_account_random_length;c._olm_create_inbound_session=F._olm_create_inbound_session;c._olm_create_inbound_session_from=F._olm_create_inbound_session_from;c._olm_create_outbound_session=F._olm_create_outbound_session;
c._olm_create_outbound_session_random_length=F._olm_create_outbound_session_random_length;c._olm_create_sas=F._olm_create_sas;c._olm_create_sas_random_length=F._olm_create_sas_random_length;c._olm_decrypt=F._olm_decrypt;c._olm_decrypt_max_plaintext_length=F._olm_decrypt_max_plaintext_length;c._olm_ed25519_verify=F._olm_ed25519_verify;c._olm_encrypt=F._olm_encrypt;c._olm_encrypt_message_length=F._olm_encrypt_message_length;c._olm_encrypt_message_type=F._olm_encrypt_message_type;
c._olm_encrypt_random_length=F._olm_encrypt_random_length;c._olm_error=F._olm_error;c._olm_export_inbound_group_session=F._olm_export_inbound_group_session;c._olm_export_inbound_group_session_length=F._olm_export_inbound_group_session_length;c._olm_get_library_version=F._olm_get_library_version;c._olm_group_decrypt=F._olm_group_decrypt;c._olm_group_decrypt_max_plaintext_length=F._olm_group_decrypt_max_plaintext_length;c._olm_group_encrypt=F._olm_group_encrypt;c._olm_group_encrypt_message_length=F._olm_group_encrypt_message_length;
c._olm_import_inbound_group_session=F._olm_import_inbound_group_session;c._olm_inbound_group_session=F._olm_inbound_group_session;c._olm_inbound_group_session_first_known_index=F._olm_inbound_group_session_first_known_index;c._olm_inbound_group_session_id=F._olm_inbound_group_session_id;c._olm_inbound_group_session_id_length=F._olm_inbound_group_session_id_length;c._olm_inbound_group_session_is_verified=F._olm_inbound_group_session_is_verified;c._olm_inbound_group_session_last_error=F._olm_inbound_group_session_last_error;
c._olm_inbound_group_session_size=F._olm_inbound_group_session_size;c._olm_init_inbound_group_session=F._olm_init_inbound_group_session;c._olm_init_outbound_group_session=F._olm_init_outbound_group_session;c._olm_init_outbound_group_session_random_length=F._olm_init_outbound_group_session_random_length;c._olm_matches_inbound_session=F._olm_matches_inbound_session;c._olm_matches_inbound_session_from=F._olm_matches_inbound_session_from;c._olm_outbound_group_session=F._olm_outbound_group_session;
c._olm_outbound_group_session_id=F._olm_outbound_group_session_id;c._olm_outbound_group_session_id_length=F._olm_outbound_group_session_id_length;c._olm_outbound_group_session_key=F._olm_outbound_group_session_key;c._olm_outbound_group_session_key_length=F._olm_outbound_group_session_key_length;c._olm_outbound_group_session_last_error=F._olm_outbound_group_session_last_error;c._olm_outbound_group_session_message_index=F._olm_outbound_group_session_message_index;
c._olm_outbound_group_session_size=F._olm_outbound_group_session_size;c._olm_pickle_account=F._olm_pickle_account;c._olm_pickle_account_length=F._olm_pickle_account_length;c._olm_pickle_inbound_group_session=F._olm_pickle_inbound_group_session;c._olm_pickle_inbound_group_session_length=F._olm_pickle_inbound_group_session_length;c._olm_pickle_outbound_group_session=F._olm_pickle_outbound_group_session;c._olm_pickle_outbound_group_session_length=F._olm_pickle_outbound_group_session_length;
c._olm_pickle_pk_decryption=F._olm_pickle_pk_decryption;c._olm_pickle_pk_decryption_length=F._olm_pickle_pk_decryption_length;c._olm_pickle_session=F._olm_pickle_session;c._olm_pickle_session_length=F._olm_pickle_session_length;c._olm_pk_ciphertext_length=F._olm_pk_ciphertext_length;c._olm_pk_decrypt=F._olm_pk_decrypt;c._olm_pk_decryption=F._olm_pk_decryption;c._olm_pk_decryption_last_error=F._olm_pk_decryption_last_error;c._olm_pk_decryption_size=F._olm_pk_decryption_size;c._olm_pk_encrypt=F._olm_pk_encrypt;
c._olm_pk_encrypt_random_length=F._olm_pk_encrypt_random_length;c._olm_pk_encryption=F._olm_pk_encryption;c._olm_pk_encryption_last_error=F._olm_pk_encryption_last_error;c._olm_pk_encryption_set_recipient_key=F._olm_pk_encryption_set_recipient_key;c._olm_pk_encryption_size=F._olm_pk_encryption_size;c._olm_pk_generate_key=F._olm_pk_generate_key;c._olm_pk_generate_key_random_length=F._olm_pk_generate_key_random_length;c._olm_pk_get_private_key=F._olm_pk_get_private_key;c._olm_pk_key_from_private=F._olm_pk_key_from_private;
c._olm_pk_key_length=F._olm_pk_key_length;c._olm_pk_mac_length=F._olm_pk_mac_length;c._olm_pk_max_plaintext_length=F._olm_pk_max_plaintext_length;c._olm_pk_private_key_length=F._olm_pk_private_key_length;c._olm_pk_sign=F._olm_pk_sign;c._olm_pk_signature_length=F._olm_pk_signature_length;c._olm_pk_signing=F._olm_pk_signing;c._olm_pk_signing_key_from_seed=F._olm_pk_signing_key_from_seed;c._olm_pk_signing_last_error=F._olm_pk_signing_last_error;c._olm_pk_signing_public_key_length=F._olm_pk_signing_public_key_length;
c._olm_pk_signing_seed_length=F._olm_pk_signing_seed_length;c._olm_pk_signing_size=F._olm_pk_signing_size;c._olm_remove_one_time_keys=F._olm_remove_one_time_keys;c._olm_sas=F._olm_sas;c._olm_sas_calculate_mac=F._olm_sas_calculate_mac;c._olm_sas_calculate_mac_long_kdf=F._olm_sas_calculate_mac_long_kdf;c._olm_sas_generate_bytes=F._olm_sas_generate_bytes;c._olm_sas_get_pubkey=F._olm_sas_get_pubkey;c._olm_sas_last_error=F._olm_sas_last_error;c._olm_sas_mac_length=F._olm_sas_mac_length;
c._olm_sas_pubkey_length=F._olm_sas_pubkey_length;c._olm_sas_set_their_key=F._olm_sas_set_their_key;c._olm_sas_size=F._olm_sas_size;c._olm_session=F._olm_session;c._olm_session_describe=F._olm_session_describe;c._olm_session_has_received_message=F._olm_session_has_received_message;c._olm_session_id=F._olm_session_id;c._olm_session_id_length=F._olm_session_id_length;c._olm_session_last_error=F._olm_session_last_error;c._olm_session_size=F._olm_session_size;c._olm_sha256=F._olm_sha256;
c._olm_sha256_length=F._olm_sha256_length;c._olm_unpickle_account=F._olm_unpickle_account;c._olm_unpickle_inbound_group_session=F._olm_unpickle_inbound_group_session;c._olm_unpickle_outbound_group_session=F._olm_unpickle_outbound_group_session;c._olm_unpickle_pk_decryption=F._olm_unpickle_pk_decryption;c._olm_unpickle_session=F._olm_unpickle_session;c._olm_utility=F._olm_utility;c._olm_utility_last_error=F._olm_utility_last_error;c._olm_utility_size=F._olm_utility_size;c._sbrk=F._sbrk;
c.establishStackSpace=F.establishStackSpace;c.getTempRet0=F.getTempRet0;c.runPostSets=F.runPostSets;c.setTempRet0=F.setTempRet0;c.setThrew=F.setThrew;var Da=c.stackAlloc=F.stackAlloc,bb=c.stackRestore=F.stackRestore,ab=c.stackSave=F.stackSave;c.dynCall_ii=F.dynCall_ii;c.dynCall_iii=F.dynCall_iii;c.dynCall_iiii=F.dynCall_iiii;c.dynCall_iiiiiiiiii=F.dynCall_iiiiiiiiii;c.asm=F;c.ALLOC_STACK=1;
6 years ago
if(D){if(String.prototype.startsWith?!D.startsWith(Xa):0!==D.indexOf(Xa)){var cb=D;D=c.locateFile?c.locateFile(cb,n):n+cb}if(l||ia){var db=c.readBinary(D);z.set(db,8)}else{var fb=function(){c.readAsync(D,eb,function(){throw"could not load memory initializer "+D;})};C++;c.monitorRunDependencies&&c.monitorRunDependencies(C);var eb=function(a){a.byteLength&&(a=new Uint8Array(a));z.set(a,8);c.memoryInitializerRequest&&delete c.memoryInitializerRequest.response;C--;c.monitorRunDependencies&&c.monitorRunDependencies(C);
0==C&&(null!==Va&&(clearInterval(Va),Va=null),Wa&&(a=Wa,Wa=null,a()))},gb=p(D);if(gb)eb(gb.buffer);else if(c.memoryInitializerRequest){var hb=function(){var a=c.memoryInitializerRequest,b=a.response;if(200!==a.status&&0!==a.status)if(b=p(c.memoryInitializerRequestURL))b=b.buffer;else{console.warn("a problem seems to have happened with Module.memoryInitializerRequest, status: "+a.status+", retrying "+D);fb();return}eb(b)};c.memoryInitializerRequest.response?setTimeout(hb,0):c.memoryInitializerRequest.addEventListener("load",
hb)}else fb()}}c.then=function(a){if(c.calledRun)a(c);else{var b=c.onRuntimeInitialized;c.onRuntimeInitialized=function(){b&&b();a(c)}}return c};Wa=function ib(){c.calledRun||jb();c.calledRun||(Wa=ib)};
function jb(){function a(){if(!c.calledRun&&(c.calledRun=!0,!sa)){Sa||(Sa=!0,Na(Pa));Na(Qa);if(c.onRuntimeInitialized)c.onRuntimeInitialized();if(c.postRun)for("function"==typeof c.postRun&&(c.postRun=[c.postRun]);c.postRun.length;){var a=c.postRun.shift();Ra.unshift(a)}Na(Ra)}}if(!(0<C)){if(c.preRun)for("function"==typeof c.preRun&&(c.preRun=[c.preRun]);c.preRun.length;)Ta();Na(Oa);0<C||c.calledRun||(c.setStatus?(c.setStatus("Running..."),setTimeout(function(){setTimeout(function(){c.setStatus("")},
1);a()},1)):a())}}c.run=jb;function ta(a){if(c.onAbort)c.onAbort(a);void 0!==a?(ma(a),na(a),a=JSON.stringify(a)):a="";sa=!0;throw"abort("+a+"). Build with -s ASSERTIONS=1 for more info.";}c.abort=ta;if(c.preInit)for("function"==typeof c.preInit&&(c.preInit=[c.preInit]);0<c.preInit.length;)c.preInit.pop()();c.noExitRuntime=!0;jb();function G(){var a=c._olm_outbound_group_session_size();this.b=H(a);this.a=c._olm_outbound_group_session(this.b)}
function I(a){return function(){var b=a.apply(this,arguments);if(b===f)throw b=A(c._olm_outbound_group_session_last_error(arguments[0])),Error("OLM."+b);return b}}G.prototype.free=function(){c._olm_clear_outbound_group_session(this.a);K(this.a)};G.prototype.pickle=L(function(a){a=E(a);var b=I(c._olm_pickle_outbound_group_session_length)(this.a),d=y(a),e=y(b+1);try{I(c._olm_pickle_outbound_group_session)(this.a,d,a.length,e,b)}finally{for(M(d,a.length),b=0;b<a.length;b++)a[b]=0}return A(e)});
G.prototype.unpickle=L(function(a,b){a=E(a);var d=y(a);b=E(b);var e=y(b);try{I(c._olm_unpickle_outbound_group_session)(this.a,d,a.length,e,b.length)}finally{for(M(d,a.length),d=0;d<a.length;d++)a[d]=0}});G.prototype.create=L(function(){var a=I(c._olm_init_outbound_group_session_random_length)(this.a),b=N(a);I(c._olm_init_outbound_group_session)(this.a,b,a)});
G.prototype.encrypt=function(a){try{var b=Ga(a);var d=I(c._olm_group_encrypt_message_length)(this.a,b);var e=H(b+1);Fa(a,z,e,b+1);var g=H(d+1);I(c._olm_group_encrypt)(this.a,e,b,g,d);w(g+d);return A(g)}finally{void 0!==e&&(M(e,b+1),K(e)),void 0!==g&&K(g)}};G.prototype.session_id=L(function(){var a=I(c._olm_outbound_group_session_id_length)(this.a),b=y(a+1);I(c._olm_outbound_group_session_id)(this.a,b,a);return A(b)});
G.prototype.session_key=L(function(){var a=I(c._olm_outbound_group_session_key_length)(this.a),b=y(a+1);I(c._olm_outbound_group_session_key)(this.a,b,a);var d=A(b);M(b,a);return d});G.prototype.message_index=function(){return I(c._olm_outbound_group_session_message_index)(this.a)};olm_exports.OutboundGroupSession=G;function O(){var a=c._olm_inbound_group_session_size();this.b=H(a);this.a=c._olm_inbound_group_session(this.b)}
function P(a){return function(){var b=a.apply(this,arguments);if(b===f)throw b=A(c._olm_inbound_group_session_last_error(arguments[0])),Error("OLM."+b);return b}}O.prototype.free=function(){c._olm_clear_inbound_group_session(this.a);K(this.a)};O.prototype.pickle=L(function(a){a=E(a);var b=P(c._olm_pickle_inbound_group_session_length)(this.a),d=y(a),e=y(b+1);try{P(c._olm_pickle_inbound_group_session)(this.a,d,a.length,e,b)}finally{for(M(d,a.length),b=0;b<a.length;b++)a[b]=0}return A(e)});
O.prototype.unpickle=L(function(a,b){a=E(a);var d=y(a);b=E(b);var e=y(b);try{P(c._olm_unpickle_inbound_group_session)(this.a,d,a.length,e,b.length)}finally{for(M(d,a.length),d=0;d<a.length;d++)a[d]=0}});O.prototype.create=L(function(a){a=E(a);var b=y(a);try{P(c._olm_init_inbound_group_session)(this.a,b,a.length)}finally{for(M(b,a.length),b=0;b<a.length;b++)a[b]=0}});
O.prototype.import_session=L(function(a){a=E(a);var b=y(a);try{P(c._olm_import_inbound_group_session)(this.a,b,a.length)}finally{for(M(b,a.length),b=0;b<a.length;b++)a[b]=0}});O.prototype.decrypt=L(function(a){try{var b=H(a.length);Ua(a,b);var d=P(c._olm_group_decrypt_max_plaintext_length)(this.a,b,a.length);Ua(a,b);var e=H(d+1);var g=y(4);var k=P(c._olm_group_decrypt)(this.a,b,a.length,e,d,g);w(e+k);return{plaintext:A(e),message_index:Ba(g,"i32")}}finally{void 0!==b&&K(b),void 0!==e&&(M(e,k),K(e))}});
O.prototype.session_id=L(function(){var a=P(c._olm_inbound_group_session_id_length)(this.a),b=y(a+1);P(c._olm_inbound_group_session_id)(this.a,b,a);return A(b)});O.prototype.first_known_index=L(function(){return P(c._olm_inbound_group_session_first_known_index)(this.a)});O.prototype.export_session=L(function(a){var b=P(c._olm_export_inbound_group_session_length)(this.a),d=y(b+1);I(c._olm_export_inbound_group_session)(this.a,d,b,a);a=A(d);M(d,b);return a});olm_exports.InboundGroupSession=O;
function kb(){var a=c._olm_pk_encryption_size();this.b=H(a);this.a=c._olm_pk_encryption(this.b)}function R(a){return function(){var b=a.apply(this,arguments);if(b===f)throw b=A(c._olm_pk_encryption_last_error(arguments[0])),Error("OLM."+b);return b}}kb.prototype.free=function(){c._olm_clear_pk_encryption(this.a);K(this.a)};kb.prototype.set_recipient_key=L(function(a){a=E(a);var b=y(a);R(c._olm_pk_encryption_set_recipient_key)(this.a,b,a.length)});
kb.prototype.encrypt=L(function(a){try{var b=Ga(a);var d=H(b+1);Fa(a,z,d,b+1);var e=R(c._olm_pk_encrypt_random_length)();var g=N(e);var k=R(c._olm_pk_ciphertext_length)(this.a,b);var m=H(k+1);var u=R(c._olm_pk_mac_length)(this.a),J=y(u+1);w(J+u);var Q=R(c._olm_pk_key_length)(),B=y(Q+1);w(B+Q);R(c._olm_pk_encrypt)(this.a,d,b,m,k,J,u,B,Q,g,e);w(m+k);return{ciphertext:A(m),mac:A(J),ephemeral:A(B)}}finally{void 0!==g&&M(g,e),void 0!==d&&(M(d,b+1),K(d)),void 0!==m&&K(m)}});
function S(){var a=c._olm_pk_decryption_size();this.b=H(a);this.a=c._olm_pk_decryption(this.b)}function T(a){return function(){var b=a.apply(this,arguments);if(b===f)throw b=A(c._olm_pk_decryption_last_error(arguments[0])),Error("OLM."+b);return b}}S.prototype.free=function(){c._olm_clear_pk_decryption(this.a);K(this.a)};
S.prototype.init_with_private_key=L(function(a){var b=y(a.length);c.HEAPU8.set(a,b);var d=T(c._olm_pk_key_length)(),e=y(d+1);try{T(c._olm_pk_key_from_private)(this.a,e,d,b,a.length)}finally{M(b,a.length)}return A(e)});S.prototype.generate_key=L(function(){var a=T(c._olm_pk_private_key_length)(),b=N(a),d=T(c._olm_pk_key_length)(),e=y(d+1);try{T(c._olm_pk_key_from_private)(this.a,e,d,b,a)}finally{M(b,a)}return A(e)});
S.prototype.get_private_key=L(function(){var a=R(c._olm_pk_private_key_length)(),b=y(a);T(c._olm_pk_get_private_key)(this.a,b,a);var d=new Uint8Array(new Uint8Array(c.HEAPU8.buffer,b,a));M(b,a);return d});S.prototype.pickle=L(function(a){a=E(a);var b=T(c._olm_pickle_pk_decryption_length)(this.a),d=y(a),e=y(b+1);try{T(c._olm_pickle_pk_decryption)(this.a,d,a.length,e,b)}finally{for(M(d,a.length),b=0;b<a.length;b++)a[b]=0}return A(e)});
S.prototype.unpickle=L(function(a,b){a=E(a);var d=y(a),e=E(b),g=y(e),k=T(c._olm_pk_key_length)();b=y(k+1);try{T(c._olm_unpickle_pk_decryption)(this.a,d,a.length,g,e.length,b,k)}finally{for(M(d,a.length),d=0;d<a.length;d++)a[d]=0}return A(b)});
S.prototype.decrypt=L(function(a,b,d){try{var e=Ga(d);var g=H(e+1);Fa(d,z,g,e+1);var k=E(a),m=y(k),u=E(b),J=y(u);var Q=T(c._olm_pk_max_plaintext_length)(this.a,e);var B=H(Q+1);var da=T(c._olm_pk_decrypt)(this.a,m,k.length,J,u.length,g,e,B,Q);w(B+da);return A(B)}finally{void 0!==B&&(M(B,da+1),K(B)),void 0!==g&&K(g)}});function lb(){var a=c._olm_pk_signing_size();this.b=H(a);this.a=c._olm_pk_signing(this.b)}
function mb(a){return function(){var b=a.apply(this,arguments);if(b===f)throw b=A(c._olm_pk_signing_last_error(arguments[0])),Error("OLM."+b);return b}}lb.prototype.free=function(){c._olm_clear_pk_signing(this.a);K(this.a)};lb.prototype.init_with_seed=L(function(a){var b=y(a.length);c.HEAPU8.set(a,b);var d=mb(c._olm_pk_signing_public_key_length)(),e=y(d+1);try{mb(c._olm_pk_signing_key_from_seed)(this.a,e,d,b,a.length)}finally{M(b,a.length)}return A(e)});
lb.prototype.generate_seed=L(function(){var a=mb(c._olm_pk_signing_seed_length)(),b=N(a),d=new Uint8Array(new Uint8Array(c.HEAPU8.buffer,b,a));M(b,a);return d});lb.prototype.sign=L(function(a){try{var b=Ga(a);var d=H(b+1);Fa(a,z,d,b+1);var e=mb(c._olm_pk_signature_length)(),g=y(e+1);mb(c._olm_pk_sign)(this.a,d,b,g,e);return A(g)}finally{void 0!==d&&(M(d,b+1),K(d))}});
function U(){var a=c._olm_sas_size(),b=c._olm_create_sas_random_length(),d=N(b);this.b=H(a);this.a=c._olm_sas(this.b);c._olm_create_sas(this.a,d,b);M(d,b)}function V(a){return function(){var b=a.apply(this,arguments);if(b===f)throw b=A(c._olm_sas_last_error(arguments[0])),Error("OLM."+b);return b}}U.prototype.free=function(){c._olm_clear_sas(this.a);K(this.a)};U.prototype.get_pubkey=L(function(){var a=V(c._olm_sas_pubkey_length)(this.a),b=y(a+1);V(c._olm_sas_get_pubkey)(this.a,b,a);return A(b)});
U.prototype.set_their_key=L(function(a){a=E(a);var b=y(a);V(c._olm_sas_set_their_key)(this.a,b,a.length)});U.prototype.generate_bytes=L(function(a,b){a=E(a);var d=y(a),e=y(b);V(c._olm_sas_generate_bytes)(this.a,d,a.length,e,b);return new Uint8Array(new Uint8Array(c.HEAPU8.buffer,e,b))});U.prototype.calculate_mac=L(function(a,b){a=E(a);var d=y(a);b=E(b);var e=y(b),g=V(c._olm_sas_mac_length)(this.a),k=y(g+1);V(c._olm_sas_calculate_mac)(this.a,d,a.length,e,b.length,k,g);return A(k)});
U.prototype.calculate_mac_long_kdf=L(function(a,b){a=E(a);var d=y(a);b=E(b);var e=y(b),g=V(c._olm_sas_mac_length)(this.a),k=y(g+1);V(c._olm_sas_calculate_mac_long_kdf)(this.a,d,a.length,e,b.length,k,g);return A(k)});var H=c._malloc,K=c._free,f;function N(a){var b=y(a);a=new Uint8Array(c.HEAPU8.buffer,b,a);aa(a);return b}function L(a){return function(){var b=ab();try{return a.apply(this,arguments)}finally{bb(b)}}}function M(a,b){for(;0<b--;)c.HEAP8[a++]=0}
function W(){var a=c._olm_account_size();this.b=H(a);this.a=c._olm_account(this.b)}function X(a){return function(){var b=a.apply(this,arguments);if(b===f)throw b=A(c._olm_account_last_error(arguments[0])),Error("OLM."+b);return b}}W.prototype.free=function(){c._olm_clear_account(this.a);K(this.a)};W.prototype.create=L(function(){var a=X(c._olm_create_account_random_length)(this.a),b=N(a);X(c._olm_create_account)(this.a,b,a)});
W.prototype.identity_keys=L(function(){var a=X(c._olm_account_identity_keys_length)(this.a),b=y(a+1);X(c._olm_account_identity_keys)(this.a,b,a);return A(b)});W.prototype.sign=L(function(a){var b=X(c._olm_account_signature_length)(this.a);a=E(a);var d=y(a),e=y(b+1);try{X(c._olm_account_sign)(this.a,d,a.length,e,b)}finally{for(M(d,a.length),b=0;b<a.length;b++)a[b]=0}return A(e)});
W.prototype.one_time_keys=L(function(){var a=X(c._olm_account_one_time_keys_length)(this.a),b=y(a+1);X(c._olm_account_one_time_keys)(this.a,b,a);return A(b)});W.prototype.mark_keys_as_published=L(function(){X(c._olm_account_mark_keys_as_published)(this.a)});W.prototype.max_number_of_one_time_keys=L(function(){return X(c._olm_account_max_number_of_one_time_keys)(this.a)});
W.prototype.generate_one_time_keys=L(function(a){var b=X(c._olm_account_generate_one_time_keys_random_length)(this.a,a),d=N(b);X(c._olm_account_generate_one_time_keys)(this.a,a,d,b)});W.prototype.remove_one_time_keys=L(function(a){X(c._olm_remove_one_time_keys)(this.a,a.a)});W.prototype.pickle=L(function(a){a=E(a);var b=X(c._olm_pickle_account_length)(this.a),d=y(a),e=y(b+1);try{X(c._olm_pickle_account)(this.a,d,a.length,e,b)}finally{for(M(d,a.length),b=0;b<a.length;b++)a[b]=0}return A(e)});
W.prototype.unpickle=L(function(a,b){a=E(a);var d=y(a);b=E(b);var e=y(b);try{X(c._olm_unpickle_account)(this.a,d,a.length,e,b.length)}finally{for(M(d,a.length),d=0;d<a.length;d++)a[d]=0}});function Y(){var a=c._olm_session_size();this.b=H(a);this.a=c._olm_session(this.b)}function Z(a){return function(){var b=a.apply(this,arguments);if(b===f)throw b=A(c._olm_session_last_error(arguments[0])),Error("OLM."+b);return b}}Y.prototype.free=function(){c._olm_clear_session(this.a);K(this.a)};
Y.prototype.pickle=L(function(a){a=E(a);var b=Z(c._olm_pickle_session_length)(this.a),d=y(a),e=y(b+1);try{Z(c._olm_pickle_session)(this.a,d,a.length,e,b)}finally{for(M(d,a.length),b=0;b<a.length;b++)a[b]=0}return A(e)});Y.prototype.unpickle=L(function(a,b){a=E(a);var d=y(a);b=E(b);var e=y(b);try{Z(c._olm_unpickle_session)(this.a,d,a.length,e,b.length)}finally{for(M(d,a.length),d=0;d<a.length;d++)a[d]=0}});
Y.prototype.create_outbound=L(function(a,b,d){var e=Z(c._olm_create_outbound_session_random_length)(this.a),g=N(e);b=E(b);d=E(d);var k=y(b),m=y(d);try{Z(c._olm_create_outbound_session)(this.a,a.a,k,b.length,m,d.length,g,e)}finally{M(g,e)}});Y.prototype.create_inbound=L(function(a,b){b=E(b);var d=y(b);try{Z(c._olm_create_inbound_session)(this.a,a.a,d,b.length)}finally{for(M(d,b.length),a=0;a<b.length;a++)b[a]=0}});
Y.prototype.create_inbound_from=L(function(a,b,d){b=E(b);var e=y(b);d=E(d);var g=y(d);try{Z(c._olm_create_inbound_session_from)(this.a,a.a,e,b.length,g,d.length)}finally{for(M(g,d.length),a=0;a<d.length;a++)d[a]=0}});Y.prototype.session_id=L(function(){var a=Z(c._olm_session_id_length)(this.a),b=y(a+1);Z(c._olm_session_id)(this.a,b,a);return A(b)});Y.prototype.has_received_message=function(){return Z(c._olm_session_has_received_message)(this.a)?!0:!1};
Y.prototype.matches_inbound=L(function(a){a=E(a);var b=y(a);return Z(c._olm_matches_inbound_session)(this.a,b,a.length)?!0:!1});Y.prototype.matches_inbound_from=L(function(a,b){a=E(a);var d=y(a);b=E(b);var e=y(b);return Z(c._olm_matches_inbound_session_from)(this.a,d,a.length,e,b.length)?!0:!1});
Y.prototype.encrypt=L(function(a){try{var b=Z(c._olm_encrypt_random_length)(this.a);var d=Z(c._olm_encrypt_message_type)(this.a);var e=Ga(a);var g=Z(c._olm_encrypt_message_length)(this.a,e);var k=N(b);var m=H(e+1);Fa(a,z,m,e+1);var u=H(g+1);Z(c._olm_encrypt)(this.a,m,e,k,b,u,g);w(u+g);return{type:d,body:A(u)}}finally{void 0!==k&&M(k,b),void 0!==m&&(M(m,e+1),K(m)),void 0!==u&&K(u)}});
Y.prototype.decrypt=L(function(a,b){try{var d=H(b.length);Ua(b,d);var e=Z(c._olm_decrypt_max_plaintext_length)(this.a,a,d,b.length);Ua(b,d);var g=H(e+1);var k=Z(c._olm_decrypt)(this.a,a,d,b.length,g,e);w(g+k);return A(g)}finally{void 0!==d&&K(d),void 0!==g&&(M(g,e),K(g))}});Y.prototype.describe=L(function(){try{var a=H(256);Z(c._olm_session_describe)(this.a,a,256);return A(a)}finally{void 0!==a&&K(a)}});function nb(){var a=c._olm_utility_size();this.b=H(a);this.a=c._olm_utility(this.b)}
6 years ago
function ob(a){return function(){var b=a.apply(this,arguments);if(b===f)throw b=A(c._olm_utility_last_error(arguments[0])),Error("OLM."+b);return b}}nb.prototype.free=function(){c._olm_clear_utility(this.a);K(this.a)};nb.prototype.sha256=L(function(a){var b=ob(c._olm_sha256_length)(this.a);a=E(a);var d=y(a),e=y(b+1);try{ob(c._olm_sha256)(this.a,d,a.length,e,b)}finally{for(M(d,a.length),b=0;b<a.length;b++)a[b]=0}return A(e)});
nb.prototype.ed25519_verify=L(function(a,b,d){a=E(a);var e=y(a);b=E(b);var g=y(b);d=E(d);var k=y(d);try{ob(c._olm_ed25519_verify)(this.a,e,a.length,g,b.length,k,d.length)}finally{for(M(g,b.length),a=0;a<b.length;a++)b[a]=0}});olm_exports.Account=W;olm_exports.Session=Y;olm_exports.Utility=nb;olm_exports.PkEncryption=kb;olm_exports.PkDecryption=S;olm_exports.PkSigning=lb;olm_exports.SAS=U;
olm_exports.get_library_version=L(function(){var a=y(3);c._olm_get_library_version(a,a+1,a+2);return[Ba(a,"i8"),Ba(a+1,"i8"),Ba(a+2,"i8")]});
return Module;
}
);
})();
if (typeof exports === 'object' && typeof module === 'object')
module.exports = Module;
else if (typeof define === 'function' && define['amd'])
define([], function() { return Module; });
else if (typeof exports === 'object')
exports["Module"] = Module;
var olmInitPromise;
olm_exports['init'] = function(opts) {
if (olmInitPromise) return olmInitPromise;
if (opts) OLM_OPTIONS = opts;
olmInitPromise = new Promise(function(resolve, reject) {
onInitSuccess = function() {
resolve();
};
onInitFail = function(err) {
reject(err);
};
Module();
});
return olmInitPromise;
};
if (typeof(window) !== 'undefined') {
// We've been imported directly into a browser. Define the global 'Olm' object.
// (we do this even if module.exports was defined, because it's useful to have
// Olm in the global scope for browserified and webpacked apps.)
window["Olm"] = olm_exports;
}
if (typeof module === 'object') {
// Emscripten sets the module exports to be its module
// with wrapped c functions. Clobber it with our higher
// level wrapper class.
module.exports = olm_exports;
}