diff --git a/.gitignore b/.gitignore index 000c3c4..b3a5267 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -brr_lwd_ui.css +*.css diff --git a/yjs/.gitignore b/yjs/.gitignore new file mode 100644 index 0000000..a96f05a --- /dev/null +++ b/yjs/.gitignore @@ -0,0 +1,3 @@ +* +!.gitignore +!dune diff --git a/yjs/dune b/yjs/dune index a116249..c1f81a1 100644 --- a/yjs/dune +++ b/yjs/dune @@ -3,4 +3,4 @@ (mode (promote (until-clean))) (files - ../../vendor/brr_lwd_ui/examples/yjs/{main.bc.js,index.html,main.css,brr_lwd_ui.css})) + ../../vendor/brr_lwd_ui/examples/yjs/{bundle.js,bundle.js.map,index.html,*.css})) diff --git a/yjs/index.html b/yjs/index.html index fdfaca6..06cc9fb 100644 --- a/yjs/index.html +++ b/yjs/index.html @@ -4,12 +4,13 @@ OCAMIX - - + + + - + diff --git a/yjs/main.bc.js b/yjs/main.bc.js deleted file mode 100644 index 6d3439d..0000000 --- a/yjs/main.bc.js +++ /dev/null @@ -1,6015 +0,0 @@ -// Generated by js_of_ocaml -//# buildInfo:effects=false, kind=exe, use-js-string=true, version=5.8.2+5.8.2 -(function(a){typeof -globalThis!=="object"&&(this?b():(a.defineProperty(a.prototype,"_T_",{configurable:true,get:b}),_T_));function -b(){var -b=this||self;b.globalThis=b;delete -a.prototype._T_}}(Object));(function(y){(()=>{var -fz=Object.create,br=Object.defineProperty,fG=Object.getOwnPropertyDescriptor,hq=Object.getOwnPropertyNames,eM=Object.getPrototypeOf,e0=Object.prototype.hasOwnProperty,be=(a=>typeof -require<"u"?require:typeof -Proxy<"u"?new -Proxy(a,{get:(a,b)=>(typeof -require<"u"?require:a)[b]}):a)(function(a){if(typeof -require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+a+'" is not supported')}),eW=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports),ek=(a,b)=>{for(var -c -in -b)br(a,c,{get:b[c],enumerable:!0})},fD=(a,b,c,d)=>{if(b&&typeof -b=="object"||typeof -b=="function")for(let -e -of -hq(b))!e0.call(a,e)&&e!==c&&br(a,e,{get:()=>b[e],enumerable:!(d=fG(b,e))||d.enumerable});return a},fK=(a,b,c)=>(c=a!=null?fz(eM(a)):{},fD(b||!a||!a.__esModule?br(c,"default",{value:a,enumerable:!0}):c,a)),hl=eW((d,b)=>{(function(a){if(typeof -d=="object"&&typeof -b<"u")b.exports=a();else if(typeof -define=="function"&&define.amd)define([],a);else{var -c;c=typeof -window>"u"?typeof -global>"u"?typeof -self>"u"?this:self:global:window,c.SimplePeer=a()}}(function(){var -p=Math.floor,m=Math.abs,h=Math.pow;return function(){function -h(e,a,c){function -f(d,b){if(!a[d]){if(!e[d]){var -j=typeof -be=="function"&&be;if(!b&&j)return j(d,!0);if(i)return i(d,!0);var -k=new -Error("Cannot find module '"+d+"'");throw k.code="MODULE_NOT_FOUND",k}var -g=a[d]={exports:{}};e[d][0].call(g.exports,function(a){var -b=e[d][1][a];return f(b||a)},g,g.exports,h,e,a,c)}return a[d].exports}for(var -i=typeof -be=="function"&&be,b=0;b>16,e[f++]=255&c>>8,e[f++]=255&c;return g===2&&(c=d[a.charCodeAt(b)]<<2|d[a.charCodeAt(b+1)]>>4,e[f++]=255&c),g===1&&(c=d[a.charCodeAt(b)]<<10|d[a.charCodeAt(b+1)]<<4|d[a.charCodeAt(b+2)]>>2,e[f++]=255&c>>8,e[f++]=255&c),e}function -m(a){return e[63&a>>18]+e[63&a>>12]+e[63&a>>6]+e[63&a]}function -j(a,b,c){for(var -e,f=[],d=b;di?i:c+h));return g===1?(b=a[d-1],f.push(e[b>>2]+e[63&b<<4]+"==")):g===2&&(b=(a[d-2]<<8)+a[d-1],f.push(e[b>>10]+e[63&b>>4]+e[63&b<<2]+"=")),f.join("")}c.byteLength=function(a){var -c=i(a),d=c[0],b=c[1];return 3*(d+b)/4-b},c.toByteArray=k,c.fromByteArray=h;for(var -e=[],d=[],o=typeof -Uint8Array>"u"?Array:Uint8Array,g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,n=g.length;fa)throw new -RangeError('The value "'+a+'" is invalid for option "size"')}function -U(a,b,c){return z(a),0>=a||b===void -0?f(a):typeof -c=="string"?f(a).fill(b,c):f(a).fill(b)}function -s(a){return z(a),f(0>a?0:0|r(a))}function -W(a,b){if((typeof -b!="string"||b==="")&&(b="utf8"),!g.isEncoding(b))throw new -TypeError("Unknown encoding: "+b);var -e=0|D(a,b),c=f(e),d=c.write(a,b);return d!==e&&(c=c.slice(0,d)),c}function -n(a){for(var -c=0>a.length?0:0|r(a.length),d=f(c),b=0;bb||a.byteLength=2147483647)throw new -RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|a}function -D(a,b){if(g.isBuffer(a))return a.length;if(ArrayBuffer.isView(a)||i(a,ArrayBuffer))return a.byteLength;if(typeof -a!="string")throw new -TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof -a);var -c=a.length,e=2>>1;case"base64":return t(a).length;default:if(d)return e?-1:o(a).length;b=(""+b).toLowerCase(),d=!0}}function -X(a,b,c){var -d=!1;if((b===void -0||0>b)&&(b=0),b>this.length||((c===void -0||c>this.length)&&(c=this.length),0>=c)||(c>>>=0,b>>>=0,c<=b))return"";for(a||(a="utf8");;)switch(a){case"hex":return O(this,b,c);case"utf8":case"utf-8":return C(this,b,c);case"ascii":return H(this,b,c);case"latin1":case"binary":return M(this,b,c);case"base64":return E(this,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,b,c);default:if(d)throw new -TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),d=!0}}function -b(a,b,c){var -d=a[b];a[b]=a[c],a[c]=d}function -x(a,b,c,d,e){if(a.length===0)return-1;if(typeof -c=="string"?(d=c,c=0):2147483647c&&(c=-2147483648),c=+c,p(c)&&(c=e?0:a.length-1),0>c&&(c=a.length+c),c>=a.length){if(e)return-1;c=a.length-1}else if(0>c)if(e)c=0;else -return-1;if(typeof -b=="string"&&(b=g.from(b,d)),g.isBuffer(b))return b.length===0?-1:w(a,b,c,d,e);if(typeof -b=="number")return b&=255,typeof -Uint8Array.prototype.indexOf=="function"?e?Uint8Array.prototype.indexOf.call(a,b,c):Uint8Array.prototype.lastIndexOf.call(a,b,c):w(a,[b],c,d,e);throw new -TypeError("val must be string, number or Buffer")}function -w(a,b,c,d,e){function -j(a,b){return i===1?a[b]:a.readUInt16BE(b*i)}var -i=1,l=a.length,h=b.length;if(d!==void -0&&(d=(d+"").toLowerCase(),d==="ucs2"||d==="ucs-2"||d==="utf16le"||d==="utf-16le")){if(2>a.length||2>b.length)return-1;i=2,l/=2,h/=2,c/=2}var -f;if(e){var -g=-1;for(f=c;fl&&(c=l-h),f=c;0<=f;f--){for(var -m=!0,k=0;kg&&(d=g)):d=g;var -h=b.length;d>h/2&&(d=h/2);for(var -f,e=0;eh&&(d=h):i===2?(g=a[f+1],(192&g)==128&&(e=(31&h)<<6|63&g,127e||57343e&&(d=e)))}d===null?(d=65533,i=1):65535>>10),d=56320|1023&d),m.push(d),f+=i}return K(m)}function -K(a){var -c=a.length;if(c<=4096)return k.apply(String,a);for(var -d="",b=0;bb)&&(b=0),(!c||0>c||c>f)&&(c=f);for(var -e="",d=b;da)throw new -RangeError("offset is not uint");if(a+b>c)throw new -RangeError("Trying to access beyond buffer length")}function -e(a,b,c,d,e,f){if(!g.isBuffer(a))throw new -TypeError('"buffer" argument must be a Buffer instance');if(b>e||ba.length)throw new -RangeError("Index out of range")}function -A(a,b,c,d){if(c+d>a.length)throw new -RangeError("Index out of range");if(0>c)throw new -RangeError("Index out of range")}function -v(a,b,c,d,e){return b=+b,c>>>=0,e||A(a,b,c,4,34028234663852886e22,-34028234663852886e22),j.write(a,b,c,d,23,4),c+4}function -B(a,b,c,d,e){return b=+b,c>>>=0,e||A(a,b,c,8,17976931348623157e292,-17976931348623157e292),j.write(a,b,c,d,52,8),c+8}function -S(a){if(a=a.split("=")[0],a=a.trim().replace(N,""),2>a.length)return"";for(;a.length%4!=0;)a+="=";return a}function -V(a){return 16>a?"0"+a.toString(16):a.toString(16)}function -o(a,b){b=b||1/0;for(var -c,g=a.length,e=null,d=[],f=0;fc){if(!e){if(56319c){-1<(b-=3)&&d.push(239,191,189),e=c;continue}c=(e-55296<<10|c-56320)+65536}else -e&&-1<(b-=3)&&d.push(239,191,189);if(e=null,128>c){if(0>(b-=1))break;d.push(c)}else if(2048>c){if(0>(b-=2))break;d.push(192|c>>6,128|63&c)}else if(65536>c){if(0>(b-=3))break;d.push(224|c>>12,128|63&c>>6,128|63&c)}else if(1114112>c){if(0>(b-=4))break;d.push(240|c>>18,128|63&c>>12,128|63&c>>6,128|63&c)}else -throw new -Error("Invalid code point")}return d}function -P(a){for(var -c=[],b=0;b(b-=2));++c)e=a.charCodeAt(c),g=e>>8,f=e%256,d.push(f),d.push(g);return d}function -t(a){return q.toByteArray(S(a))}function -m(a,b,c,d){for(var -e=0;e=b.length||e>=a.length);++e)b[e+c]=a[e];return e}function -i(a,b){return a -instanceof -b||a!=null&&a.constructor!=null&&a.constructor.name!=null&&a.constructor.name===b.name}function -p(a){return a!==a}var -q=a("base64-js"),j=a("ieee754");c.Buffer=g,c.SlowBuffer=function(a){return+a!=a&&(a=0),g.alloc(+a)},c.INSPECT_MAX_BYTES=50,c.kMaxLength=2147483647,g.TYPED_ARRAY_SUPPORT=function(){try{var -a=new -Uint8Array(1);return a.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},a.foo()===42}catch{return!1}}(),g.TYPED_ARRAY_SUPPORT||typeof -console>"u"||typeof -console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){return g.isBuffer(this)?this.buffer:void -0}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){return g.isBuffer(this)?this.byteOffset:void -0}}),typeof -Symbol<"u"&&Symbol.species!=null&&g[Symbol.species]===g&&Object.defineProperty(g,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),g.poolSize=8192,g.from=function(a,b,c){return y(a,b,c)},g.prototype.__proto__=Uint8Array.prototype,g.__proto__=Uint8Array,g.alloc=function(a,b,c){return U(a,b,c)},g.allocUnsafe=function(a){return s(a)},g.allocUnsafeSlow=function(a){return s(a)},g.isBuffer=function(a){return a!=null&&a._isBuffer===!0&&a!==g.prototype},g.compare=function(a,b){if(i(a,Uint8Array)&&(a=g.from(a,a.offset,a.byteLength)),i(b,Uint8Array)&&(b=g.from(b,b.offset,b.byteLength)),!g.isBuffer(a)||!g.isBuffer(b))throw new -TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(a===b)return 0;for(var -e=a.length,d=b.length,c=0,f=l(e,d);cb&&(a+=" ... "),""},g.prototype.compare=function(a,b,c,d,e){if(i(a,Uint8Array)&&(a=g.from(a,a.offset,a.byteLength)),!g.isBuffer(a))throw new -TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof -a);if(b===void -0&&(b=0),c===void -0&&(c=a?a.length:0),d===void -0&&(d=0),e===void -0&&(e=this.length),0>b||c>a.length||0>d||e>this.length)throw new -RangeError("out of range index");if(d>=e&&b>=c)return 0;if(d>=e)return-1;if(b>=c)return 1;if(b>>>=0,c>>>=0,d>>>=0,e>>>=0,this===a)return 0;for(var -j=e-d,h=c-b,n=l(j,h),m=this.slice(d,e),k=a.slice(b,c),f=0;f>>=0,isFinite(c)?(c>>>=0,d===void -0&&(d="utf8")):(d=c,c=void -0);else -throw new -Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var -f=this.length-b;if((c===void -0||c>f)&&(c=f),0c||0>b)||b>this.length)throw new -RangeError("Attempt to write outside buffer bounds");d||(d="utf8");for(var -e=!1;;)switch(d){case"hex":return J(this,a,b,c);case"utf8":case"utf-8":return Q(this,a,b,c);case"ascii":return u(this,a,b,c);case"latin1":case"binary":return G(this,a,b,c);case"base64":return F(this,a,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,a,b,c);default:if(e)throw new -TypeError("Unknown encoding: "+d);d=(""+d).toLowerCase(),e=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},g.prototype.slice=function(a,b){var -c=this.length;a=~~a,b=b===void -0?c:~~b,0>a?(a+=c,0>a&&(a=0)):a>c&&(a=c),0>b?(b+=c,0>b&&(b=0)):b>c&&(b=c),b>>=0,b>>>=0,c||d(a,b,this.length);for(var -g=this[a],f=1,e=0;++e>>=0,b>>>=0,c||d(a,b,this.length);for(var -f=this[a+--b],e=1;0>>=0,b||d(a,1,this.length),this[a]},g.prototype.readUInt16LE=function(a,b){return a>>>=0,b||d(a,2,this.length),this[a]|this[a+1]<<8},g.prototype.readUInt16BE=function(a,b){return a>>>=0,b||d(a,2,this.length),this[a]<<8|this[a+1]},g.prototype.readUInt32LE=function(a,b){return a>>>=0,b||d(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+16777216*this[a+3]},g.prototype.readUInt32BE=function(a,b){return a>>>=0,b||d(a,4,this.length),16777216*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])},g.prototype.readIntLE=function(a,b,c){a>>>=0,b>>>=0,c||d(a,b,this.length);for(var -f=this[a],e=1,g=0;++g=e&&(f-=h(2,8*b)),f},g.prototype.readIntBE=function(a,b,c){a>>>=0,b>>>=0,c||d(a,b,this.length);for(var -g=b,f=1,e=this[a+--g];0=f&&(e-=h(2,8*b)),e},g.prototype.readInt8=function(a,b){return a>>>=0,b||d(a,1,this.length),128&this[a]?-(1*(255-this[a]+1)):this[a]},g.prototype.readInt16LE=function(a,b){a>>>=0,b||d(a,2,this.length);var -c=this[a]|this[a+1]<<8;return 32768&c?4294901760|c:c},g.prototype.readInt16BE=function(a,b){a>>>=0,b||d(a,2,this.length);var -c=this[a+1]|this[a]<<8;return 32768&c?4294901760|c:c},g.prototype.readInt32LE=function(a,b){return a>>>=0,b||d(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},g.prototype.readInt32BE=function(a,b){return a>>>=0,b||d(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},g.prototype.readFloatLE=function(a,b){return a>>>=0,b||d(a,4,this.length),j.read(this,a,!0,23,4)},g.prototype.readFloatBE=function(a,b){return a>>>=0,b||d(a,4,this.length),j.read(this,a,!1,23,4)},g.prototype.readDoubleLE=function(a,b){return a>>>=0,b||d(a,8,this.length),j.read(this,a,!0,52,8)},g.prototype.readDoubleBE=function(a,b){return a>>>=0,b||d(a,8,this.length),j.read(this,a,!1,52,8)},g.prototype.writeUIntLE=function(a,b,c,d){if(a=+a,b>>>=0,c>>>=0,!d){var -i=h(2,8*c)-1;e(this,a,b,c,i,0)}var -g=1,f=0;for(this[b]=255&a;++f>>=0,c>>>=0,!d){var -i=h(2,8*c)-1;e(this,a,b,c,i,0)}var -f=c-1,g=1;for(this[b+f]=255&a;0<=--f&&(g*=256);)this[b+f]=255&a/g;return b+c},g.prototype.writeUInt8=function(a,b,c){return a=+a,b>>>=0,c||e(this,a,b,1,255,0),this[b]=255&a,b+1},g.prototype.writeUInt16LE=function(a,b,c){return a=+a,b>>>=0,c||e(this,a,b,2,65535,0),this[b]=255&a,this[b+1]=a>>>8,b+2},g.prototype.writeUInt16BE=function(a,b,c){return a=+a,b>>>=0,c||e(this,a,b,2,65535,0),this[b]=a>>>8,this[b+1]=255&a,b+2},g.prototype.writeUInt32LE=function(a,b,c){return a=+a,b>>>=0,c||e(this,a,b,4,4294967295,0),this[b+3]=a>>>24,this[b+2]=a>>>16,this[b+1]=a>>>8,this[b]=255&a,b+4},g.prototype.writeUInt32BE=function(a,b,c){return a=+a,b>>>=0,c||e(this,a,b,4,4294967295,0),this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a,b+4},g.prototype.writeIntLE=function(a,b,c,d){if(a=+a,b>>>=0,!d){var -j=h(2,8*c-1);e(this,a,b,c,j-1,-j)}var -f=0,i=1,g=0;for(this[b]=255&a;++fa&&g===0&&this[b+f-1]!==0&&(g=1),this[b+f]=255&(a/i>>0)-g;return b+c},g.prototype.writeIntBE=function(a,b,c,d){if(a=+a,b>>>=0,!d){var -j=h(2,8*c-1);e(this,a,b,c,j-1,-j)}var -f=c-1,i=1,g=0;for(this[b+f]=255&a;0<=--f&&(i*=256);)0>a&&g===0&&this[b+f+1]!==0&&(g=1),this[b+f]=255&(a/i>>0)-g;return b+c},g.prototype.writeInt8=function(a,b,c){return a=+a,b>>>=0,c||e(this,a,b,1,127,-128),0>a&&(a=255+a+1),this[b]=255&a,b+1},g.prototype.writeInt16LE=function(a,b,c){return a=+a,b>>>=0,c||e(this,a,b,2,32767,-32768),this[b]=255&a,this[b+1]=a>>>8,b+2},g.prototype.writeInt16BE=function(a,b,c){return a=+a,b>>>=0,c||e(this,a,b,2,32767,-32768),this[b]=a>>>8,this[b+1]=255&a,b+2},g.prototype.writeInt32LE=function(a,b,c){return a=+a,b>>>=0,c||e(this,a,b,4,2147483647,-2147483648),this[b]=255&a,this[b+1]=a>>>8,this[b+2]=a>>>16,this[b+3]=a>>>24,b+4},g.prototype.writeInt32BE=function(a,b,c){return a=+a,b>>>=0,c||e(this,a,b,4,2147483647,-2147483648),0>a&&(a=4294967295+a+1),this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a,b+4},g.prototype.writeFloatLE=function(a,b,c){return v(this,a,b,!0,c)},g.prototype.writeFloatBE=function(a,b,c){return v(this,a,b,!1,c)},g.prototype.writeDoubleLE=function(a,b,c){return B(this,a,b,!0,c)},g.prototype.writeDoubleBE=function(a,b,c){return B(this,a,b,!1,c)},g.prototype.copy=function(a,b,c,d){if(!g.isBuffer(a))throw new -TypeError("argument should be a Buffer");if(c||(c=0),d||d===0||(d=this.length),b>=a.length&&(b=a.length),b||(b=0),0b)throw new -RangeError("targetStart out of bounds");if(0>c||c>=this.length)throw new -RangeError("Index out of range");if(0>d)throw new -RangeError("sourceEnd out of bounds");d>this.length&&(d=this.length),a.length-bh||d==="latin1")&&(a=h)}}else -typeof -a=="number"&&(a&=255);if(0>b||this.length>>=0,c=c===void -0?this.length:c>>>0,a||(a=0);var -e;if(typeof -a=="number")for(e=b;e{a==="%%"||(d++,a==="%c"&&(e=d))}),a.splice(e,0,c)},c.save=function(a){try{a?c.storage.setItem("debug",a):c.storage.removeItem("debug")}catch{}},c.load=f,c.useColors=function(){return!!(typeof -window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))||!(typeof -navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(typeof -document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof -window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof -navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&31<=parseInt(RegExp.$1,10)||typeof -navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},c.storage=function(){try{return localStorage}catch{}}(),c.destroy=(()=>{let -a=!1;return()=>{a||(a=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),c.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],c.log=console.debug||console.log||(()=>{}),b.exports=d("./common")(c);let{formatters:e}=b.exports;e.j=function(a){try{return JSON.stringify(a)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}}}.call(this))}.call(this,d("_process")))},{"./common":5,_process:12}],5:[function(a,b){b.exports=function(d){function -c(a){function -b(...d){if(!b.enabled)return;let -e=b,a=+new -Date,h=a-(g||a);e.diff=h,e.prev=g,e.curr=a,g=a,d[0]=c.coerce(d[0]),typeof -d[0]!="string"&&d.unshift("%O");let -f=0;d[0]=d[0].replace(/%([a-zA-Z%])/g,(a,b)=>{if(a==="%%")return"%";f++;let -g=c.formatters[b];if(typeof -g=="function"){let -b=d[f];a=g.call(e,b),d.splice(f,1),f--}return a}),c.formatArgs.call(e,d),(e.log||c.log).apply(e,d)}let -g,d=null;return b.namespace=a,b.useColors=c.useColors(),b.color=c.selectColor(a),b.extend=e,b.destroy=c.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>d===null?c.enabled(a):d,set:a=>{d=a}}),typeof -c.init=="function"&&c.init(b),b}function -e(a,b){let -d=c(this.namespace+(typeof -b>"u"?":":b)+a);return d.log=this.log,d}function -b(a){return a.toString().substring(2,a.toString().length-2).replace(/\.\*\?$/,"*")}return c.debug=c,c.default=c,c.coerce=function(a){return a -instanceof -Error?a.stack||a.message:a},c.disable=function(){let -a=[...c.names.map(b),...c.skips.map(b).map(a=>"-"+a)].join(",");return c.enable(""),a},c.enable=function(a){c.save(a),c.names=[],c.skips=[];let -b,d=(typeof -a=="string"?a:"").split(/[\s,]+/),e=d.length;for(b=0;b{c[a]=d[a]}),c.names=[],c.skips=[],c.formatters={},c.selectColor=function(a){let -b=0;for(let -c=0;ci&&!e.warned){e.warned=!0;var -g=new -Error("Possible EventEmitter memory leak detected. "+e.length+" "+(b+" listeners added. Use emitter.setMaxListeners() to increase limit"));g.name="MaxListenersExceededWarning",g.emitter=a,g.type=b,g.count=e.length,u(g)}return a}function -s(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function -j(a,b,c){var -e={fired:!1,wrapFn:void -0,target:a,type:b,listener:c},d=s.bind(e);return d.listener=c,e.wrapFn=d,d}function -m(a,b,c){var -e=a._events;if(e===void -0)return[];var -d=e[b];return d===void -0?[]:typeof -d=="function"?c?[d.listener||d]:[d]:c?r(d):o(d,d.length)}function -p(a){var -c=this._events;if(c!==void -0){var -b=c[a];if(typeof -b=="function")return 1;if(b!==void -0)return b.length}return 0}function -o(a,b){for(var -d=Array(b),c=0;ca||f(a))throw new -RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+a+".");e=a}}),c.init=function(){(this._events===void -0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void -0},c.prototype.setMaxListeners=function(a){if(typeof -a!="number"||0>a||f(a))throw new -RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+a+".");return this._maxListeners=a,this},c.prototype.getMaxListeners=function(){return k(this)},c.prototype.emit=function(a){for(var -d=[],b=1;bf)return this;f===0?c.shift():q(c,f),c.length===1&&(d[a]=c[0]),d.removeListener!==void -0&&this.emit("removeListener",a,g||b)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(a){var -d,c,b;if(c=this._events,c===void -0)return this;if(c.removeListener===void -0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):c[a]!==void -0&&(--this._eventsCount==0?this._events=Object.create(null):delete -c[a]),this;if(arguments.length===0){var -e,f=Object.keys(c);for(b=0;b"u")return null;var -a={RTCPeerConnection:y.RTCPeerConnection||y.mozRTCPeerConnection||y.webkitRTCPeerConnection,RTCSessionDescription:y.RTCSessionDescription||y.mozRTCSessionDescription||y.webkitRTCSessionDescription,RTCIceCandidate:y.RTCIceCandidate||y.mozRTCIceCandidate||y.webkitRTCIceCandidate};return a.RTCPeerConnection?a:null}},{}],9:[function(a,b,c){c.read=function(a,b,c,d,e){var -g,j,o=8*e-d-1,n=(1<>1,f=-7,i=c?e-1:0,l=c?-1:1,k=a[b+i];for(i+=l,g=k&(1<<-f)-1,k>>=-f,f+=o;0>=-f,f+=d;0>1,r=e===23?h(2,-24)-h(2,-77):0,l=d?0:f-1,q=d?1:-1,t=0>b||b===0&&0>1/b?1:0;for(b=m(b),isNaN(b)||b===1/0?(i=isNaN(b)?1:0,g=n):(g=p(u(b)/s),1>b*(k=h(2,-g))&&(g--,k*=2),b+=1<=g+j?r/k:r*h(2,1-j),2<=b*k&&(g++,k/=2),g+j>=n?(i=0,g=n):1<=g+j?(i=(b*k-1)*h(2,e),g+=j):(i=b*h(2,j-1)*h(2,e),g=0));8<=e;a[c+l]=255&i,l+=q,i/=256,e-=8);for(g=g<=1.5*c?"s":"")}var -h=24*(60*6e4);b.exports=function(a,b){b=b||{};var -c=typeof -a;if(c=="string"&&0"u"?a:window):a=>(c||(c=Promise.resolve())).then(a).catch(a=>setTimeout(()=>{throw a},0))}.call(this))}.call(this,typeof -global>"u"?typeof -self>"u"?typeof -window>"u"?{}:window:self:global))},{}],14:[function(a,d){(function(f,b){(function(){"use strict";var -g=a("safe-buffer").Buffer,c=b.crypto||b.msCrypto;d.exports=c&&c.getRandomValues?function(a,b){if(a>4294967295)throw new -RangeError("requested too many random bytes");var -d=g.allocUnsafe(a);if(0"u"?typeof -self>"u"?typeof -window>"u"?{}:window:self:global))},{_process:12,"safe-buffer":30}],15:[function(a,b){"use strict";function -j(a,b){a.prototype=Object.create(b.prototype),a.prototype.constructor=a,a.__proto__=b}function -c(a,d,c){function -f(a,b,c){return typeof -d=="string"?d:d(a,b,c)}c||(c=Error);var -b=function(d){function -a(a,b,c){return d.call(this,f(a,b,c))||this}return j(a,d),a}(c);b.prototype.name=c.name,b.prototype.code=a,e[a]=b}function -f(a,b){if(Array.isArray(a)){var -c=a.length;return a=a.map(function(a){return a+""}),2c?0:+c,b.length)===b}function -i(a,b,c){return(c===void -0||c>a.length)&&(c=a.length),a.substring(c-b.length,c)===b}function -g(a,b,c){return typeof -c!="number"&&(c=0),!(c+b.length>a.length)&&a.indexOf(b,c)!==-1}var -e={};c("ERR_INVALID_OPT_VALUE",function(a,b){return'The value "'+b+'" is invalid for option "'+a+'"'},TypeError),c("ERR_INVALID_ARG_TYPE",function(a,b,c){var -d;typeof -b=="string"&&h(b,"not ")?(d="must not be",b=b.replace(/^not /,"")):d="must be";var -e;if(i(a," argument"))e="The ".concat(a," ").concat(d," ").concat(f(b,"type"));else{var -j=g(a,".")?"property":"argument";e='The "'.concat(a,'" ').concat(j," ").concat(d," ").concat(f(b,"type"))}return e+=". Received type ".concat(typeof -c),e},TypeError),c("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),c("ERR_METHOD_NOT_IMPLEMENTED",function(a){return"The "+a+" method is not implemented"}),c("ERR_STREAM_PREMATURE_CLOSE","Premature close"),c("ERR_STREAM_DESTROYED",function(a){return"Cannot call "+a+" after a stream was destroyed"}),c("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),c("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),c("ERR_STREAM_WRITE_AFTER_END","write after end"),c("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),c("ERR_UNKNOWN_ENCODING",function(a){return"Unknown encoding: "+a},TypeError),c("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),b.exports.codes=e},{}],16:[function(d,b){(function(a){(function(){"use strict";function -c(a){return this -instanceof -c?(h.call(this,a),f.call(this,a),this.allowHalfOpen=!0,void(a&&(a.readable===!1&&(this.readable=!1),a.writable===!1&&(this.writable=!1),a.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",k))))):new -c(a)}function -k(){this._writableState.ended||a.nextTick(j,this)}function -j(a){a.end()}var -l=Object.keys||function(a){var -b=[];for(var -c -in -a)b.push(c);return b};b.exports=c;var -h=d("./_stream_readable"),f=d("./_stream_writable");d("inherits")(c,h);for(var -e,i=l(f.prototype),g=0;g>>1,a|=a>>>2,a|=a>>>4,a|=a>>>8,a|=a>>>16,a++),a}function -x(a,b){return 0>=a||b.length===0&&b.ended?0:b.objectMode?1:a===a?(a>b.highWaterMark&&(b.highWaterMark=F(a)),a<=b.length?a:b.ended?b.length:(b.needReadable=!0,0)):b.flowing&&b.length?b.buffer.head.data.length:b.length}function -T(a,b){if(f("onEofChunk"),!b.ended){if(b.decoder){var -c=b.decoder.end();c&&c.length&&(b.buffer.push(c),b.length+=b.objectMode?1:c.length)}b.ended=!0,b.sync?k(a):(b.needReadable=!1,!b.emittedReadable&&(b.emittedReadable=!0,C(a)))}}function -k(a){var -b=a._readableState;f("emitReadable",b.needReadable,b.emittedReadable),b.needReadable=!1,b.emittedReadable||(f("emitReadable",b.flowing),b.emittedReadable=!0,g.nextTick(C,a))}function -C(a){var -b=a._readableState;f("emitReadable_",b.destroyed,b.length,b.ended),!b.destroyed&&(b.length||b.ended)&&(a.emit("readable"),b.emittedReadable=!1),b.needReadable=!b.flowing&&!b.ended&&b.length<=b.highWaterMark,n(a)}function -t(a,b){b.readingMore||(b.readingMore=!0,g.nextTick(G,a,b))}function -G(a,b){for(;!b.reading&&!b.ended&&(b.length=b.length?(c=b.decoder?b.buffer.join(""):b.buffer.length===1?b.buffer.first():b.buffer.concat(b.length),b.buffer.clear()):c=b.buffer.consume(a,b.decoder),c}function -o(a){var -b=a._readableState;f("endReadable",b.endEmitted),b.endEmitted||(b.ended=!0,g.nextTick(H,b,a))}function -H(a,b){if(f("endReadableNT",a.endEmitted,a.length),!a.endEmitted&&a.length===0&&(a.endEmitted=!0,b.readable=!1,b.emit("end"),a.autoDestroy)){var -c=b._writableState;(!c||c.autoDestroy&&c.finished)&&b.destroy()}}function -B(a,b){for(var -c=0,d=a.length;c=b.highWaterMark)||b.ended))return f("read: emitReadable",b.length,b.ended),b.length===0&&b.ended?o(this):k(this),null;if(a=x(a,b),a===0&&b.ended)return b.length===0&&o(this),null;var -c=b.needReadable;f("need readable",c),(b.length===0||b.length-a"u"?typeof -self>"u"?typeof -window>"u"?{}:window:self:global))},{"../errors":15,"./_stream_duplex":16,"./internal/streams/async_iterator":21,"./internal/streams/buffer_list":22,"./internal/streams/destroy":23,"./internal/streams/from":25,"./internal/streams/state":27,"./internal/streams/stream":28,_process:12,buffer:3,events:7,inherits:10,"string_decoder/":31,util:2}],19:[function(a,b){"use strict";function -j(a,b){var -d=this._transformState;d.transforming=!1;var -e=d.writecb;if(e===null)return this.emit("error",new -h);d.writechunk=null,d.writecb=null,b!=null&&this.push(b),e(a);var -c=this._readableState;c.reading=!1,(c.needReadable||c.length"u"?typeof -self>"u"?typeof -window>"u"?{}:window:self:global))},{"../errors":15,"./_stream_duplex":16,"./internal/streams/destroy":23,"./internal/streams/state":27,"./internal/streams/stream":28,_process:12,buffer:3,inherits:10,"util-deprecate":32}],21:[function(a,b){(function(m){(function(){"use strict";function -d(a,b,c){return b -in -a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function -e(a,b){return{value:a,done:b}}function -p(a){var -b=a[f];if(b!==null){var -c=a[h].read();c!==null&&(a[g]=null,a[f]=null,a[i]=null,b(e(c,!1)))}}function -q(a){m.nextTick(p,a)}function -o(d,c){return function(a,b){d.then(function(){return c[k]?void -a(e(void -0,!0)):void -c[l](a,b)},b)}}var -c,r=a("./end-of-stream"),f=Symbol("lastResolve"),i=Symbol("lastReject"),j=Symbol("error"),k=Symbol("ended"),g=Symbol("lastPromise"),l=Symbol("handlePromise"),h=Symbol("stream"),s=Object.getPrototypeOf(function(){}),n=Object.setPrototypeOf((c={get -stream(){return this[h]},next:function(){var -d=this,c=this[j];if(c!==null)return Promise.reject(c);if(this[k])return Promise.resolve(e(void -0,!0));if(this[h].destroyed)return new -Promise(function(a,b){m.nextTick(function(){d[j]?b(d[j]):a(e(void -0,!0))})});var -a,f=this[g];if(f)a=new -Promise(o(f,this));else{var -b=this[h].read();if(b!==null)return Promise.resolve(e(b,!1));a=new -Promise(this[l])}return this[g]=a,a}},d(c,Symbol.asyncIterator,function(){return this}),d(c,"return",function(){var -a=this;return new -Promise(function(c,b){a[h].destroy(null,function(a){return a?void -b(a):void -c(e(void -0,!0))})})}),c),s);b.exports=function(a){var -b,c=Object.create(n,(b={},d(b,h,{value:a,writable:!0}),d(b,f,{value:null,writable:!0}),d(b,i,{value:null,writable:!0}),d(b,j,{value:null,writable:!0}),d(b,k,{value:a._readableState.endEmitted,writable:!0}),d(b,l,{value:function(a,b){var -d=c[h].read();d?(c[g]=null,c[f]=null,c[i]=null,a(e(d,!1))):(c[f]=a,c[i]=b)},writable:!0}),b));return c[g]=null,r(a,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var -b=c[i];return b!==null&&(c[g]=null,c[f]=null,c[i]=null,b(a)),void(c[j]=a)}var -d=c[f];d!==null&&(c[g]=null,c[f]=null,c[i]=null,d(e(void -0,!0))),c[k]=!0}),a.on("readable",q.bind(null,c)),c}}.call(this))}.call(this,a("_process")))},{"./end-of-stream":24,_process:12}],22:[function(a,b){"use strict";function -f(c,b){var -a=Object.keys(c);if(Object.getOwnPropertySymbols){var -d=Object.getOwnPropertySymbols(c);b&&(d=d.filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable})),a.push.apply(a,d)}return a}function -h(c){for(var -b,a=1;a>>0),b=this.head,c=0;b;)j(b.data,e,c),c+=b.data.length,b=b.next;return e}},{key:"consume",value:function(a,b){var -c;return ac.length?c.length:a;if(e+=d===c.length?c:c.slice(0,a),a-=d,a===0){d===c.length?(++f,this.head=b.next?b.next:this.tail=null):(this.head=b,b.data=c.slice(d));break}++f}return this.length-=f,e}},{key:"_getBuffer",value:function(a){var -f=d.allocUnsafe(a),b=this.head,g=1;for(b.data.copy(f),a-=b.data.length;b=b.next;){var -c=b.data,e=a>c.length?c.length:a;if(c.copy(f,f.length-a,0,e),a-=e,a===0){e===c.length?(++g,this.head=b.next?b.next:this.tail=null):(this.head=b,b.data=c.slice(e));break}++g}return this.length-=g,f}},{key:g,value:function(a,b){return c(this,h({},b,{depth:0,customInspect:!1}))}}]),a}()},{buffer:3,util:2}],23:[function(a,b){(function(d){(function(){"use strict";function -g(a,b){f(a,b),e(a)}function -e(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function -f(a,b){a.emit("error",b)}b.exports={destroy:function(a,b){var -c=this,h=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return h||i?(b?b(a):a&&(this._writableState?!this._writableState.errorEmitted&&(this._writableState.errorEmitted=!0,d.nextTick(f,this,a)):d.nextTick(f,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(a){!b&&a?c._writableState?c._writableState.errorEmitted?d.nextTick(e,c):(c._writableState.errorEmitted=!0,d.nextTick(g,c,a)):d.nextTick(g,c,a):b?(d.nextTick(e,c),b(a)):d.nextTick(e,c)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(a,b){var -c=a._readableState,d=a._writableState;c&&c.autoDestroy||d&&d.autoDestroy?a.destroy(b):a.emit("error",b)}}}.call(this))}.call(this,a("_process")))},{_process:12}],24:[function(a,b){"use strict";function -r(a){var -c=!1;return function(){if(!c){c=!0;for(var -d=arguments.length,e=Array(d),b=0;bc.length)throw new -m("streams");var -d,f=c.map(function(a,b){var -g=be){var -h=d?c:"highWaterMark";throw new -f(h,e)}return p(e)}return a.objectMode?16:16384}}},{"../../../errors":15}],28:[function(a,b){b.exports=a("events").EventEmitter},{events:7}],29:[function(a,b,c){c=b.exports=a("./lib/_stream_readable.js"),c.Stream=c,c.Readable=c,c.Writable=a("./lib/_stream_writable.js"),c.Duplex=a("./lib/_stream_duplex.js"),c.Transform=a("./lib/_stream_transform.js"),c.PassThrough=a("./lib/_stream_passthrough.js"),c.finished=a("./lib/internal/streams/end-of-stream.js"),c.pipeline=a("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":16,"./lib/_stream_passthrough.js":17,"./lib/_stream_readable.js":18,"./lib/_stream_transform.js":19,"./lib/_stream_writable.js":20,"./lib/internal/streams/end-of-stream.js":24,"./lib/internal/streams/pipeline.js":26}],30:[function(a,b,c){function -g(a,b){for(var -c -in -a)b[c]=a[c]}function -e(a,b,c){return d(a,b,c)}var -f=a("buffer"),d=f.Buffer;d.from&&d.alloc&&d.allocUnsafe&&d.allocUnsafeSlow?b.exports=f:(g(f,c),c.Buffer=e),e.prototype=Object.create(d.prototype),g(d,e),e.from=function(a,b,c){if(typeof -a=="number")throw new -TypeError("Argument must not be a number");return d(a,b,c)},e.alloc=function(a,b,c){if(typeof -a!="number")throw new -TypeError("Argument must be a number");var -e=d(a);return b===void -0?e.fill(0):typeof -c=="string"?e.fill(b,c):e.fill(b),e},e.allocUnsafe=function(a){if(typeof -a!="number")throw new -TypeError("Argument must be a number");return d(a)},e.allocUnsafeSlow=function(a){if(typeof -a!="number")throw new -TypeError("Argument must be a number");return f.SlowBuffer(a)}},{buffer:3}],31:[function(a,b,c){"use strict";function -k(a){if(!a)return"utf8";for(var -b;;)switch(a){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return a;default:if(b)return;a=(""+a).toLowerCase(),b=!0}}function -n(a){var -b=k(a);if(typeof -b!="string"&&(e.isEncoding===g||!g(a)))throw new -Error("Unknown encoding: "+a);return b||a}function -d(a){this.encoding=n(a);var -b;switch(this.encoding){case"utf16le":this.text=r,this.end=q,b=4;break;case"utf8":this.fillLast=p,b=4;break;case"base64":this.text=h,this.end=i,b=3;break;default:return this.write=o,void(this.end=j)}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(b)}function -f(a){return 127>=a?0:a>>5==6?2:a>>4==14?3:a>>3==30?4:a>>6==2?-1:-2}function -l(a,b,c){var -e=b.length-1;if(e=d)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=a[a.length-2],this.lastChar[1]=a[a.length-1],c.slice(0,-1)}return c}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=a[a.length-1],a.toString("utf16le",b,a.length-1)}function -q(a){var -b=a&&a.length?this.write(a):"";if(this.lastNeed){var -c=this.lastTotal-this.lastNeed;return b+this.lastChar.toString("utf16le",0,c)}return b}function -h(a,b){var -c=(a.length-b)%3;return c==0?a.toString("base64",b):(this.lastNeed=3-c,this.lastTotal=3,c==1?this.lastChar[0]=a[a.length-1]:(this.lastChar[0]=a[a.length-2],this.lastChar[1]=a[a.length-1]),a.toString("base64",b,a.length-c))}function -i(a){var -b=a&&a.length?this.write(a):"";return this.lastNeed?b+this.lastChar.toString("base64",0,3-this.lastNeed):b}function -o(a){return a.toString(this.encoding)}function -j(a){return a&&a.length?this.write(a):""}var -e=a("safe-buffer").Buffer,g=e.isEncoding||function(a){switch(a=""+a,a&&a.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};c.StringDecoder=d,d.prototype.write=function(a){if(a.length===0)return"";var -c,b;if(this.lastNeed){if(c=this.fillLast(a),c===void -0)return"";b=this.lastNeed,this.lastNeed=0}else -b=0;return b"u"?typeof -self>"u"?typeof -window>"u"?{}:window:self:global))},{}],"/":[function(a,b){function -i(a){return a.replace(/a=ice-options:trickle\s\n/g,"")}function -j(a){console.warn(a)}let -l=a("debug")("simple-peer"),g=a("get-browser-rtc"),h=a("randombytes"),k=a("readable-stream"),e=a("queue-microtask"),d=a("err-code"),{Buffer:m}=a("buffer"),f=65536;class -c -extends -k.Duplex{constructor(a){if(a=Object.assign({allowHalfOpen:!1},a),super(a),this._id=h(4).toString("hex").slice(0,7),this._debug("new peer %o",a),this.channelName=a.initiator?a.channelName||h(20).toString("hex"):null,this.initiator=a.initiator||!1,this.channelConfig=a.channelConfig||c.channelConfig,this.channelNegotiated=this.channelConfig.negotiated,this.config=Object.assign({},c.config,a.config),this.offerOptions=a.offerOptions||{},this.answerOptions=a.answerOptions||{},this.sdpTransform=a.sdpTransform||(a=>a),this.streams=a.streams||(a.stream?[a.stream]:[]),this.trickle=a.trickle===void -0||a.trickle,this.allowHalfTrickle=a.allowHalfTrickle!==void -0&&a.allowHalfTrickle,this.iceCompleteTimeout=a.iceCompleteTimeout||5e3,this.destroyed=!1,this.destroying=!1,this._connected=!1,this.remoteAddress=void -0,this.remoteFamily=void -0,this.remotePort=void -0,this.localAddress=void -0,this.localFamily=void -0,this.localPort=void -0,this._wrtc=a.wrtc&&typeof -a.wrtc=="object"?a.wrtc:g(),!this._wrtc)throw d(typeof -window>"u"?new -Error("No WebRTC support: Specify `opts.wrtc` option in this environment"):new -Error("No WebRTC support: Not a supported browser"),"ERR_WEBRTC_SUPPORT");this._pcReady=!1,this._channelReady=!1,this._iceComplete=!1,this._iceCompleteTimer=null,this._channel=null,this._pendingCandidates=[],this._isNegotiating=!1,this._firstNegotiation=!0,this._batchedNegotiation=!1,this._queuedNegotiation=!1,this._sendersAwaitingStable=[],this._senderMap=new -Map,this._closingInterval=null,this._remoteTracks=[],this._remoteStreams=[],this._chunk=null,this._cb=null,this._interval=null;try{this._pc=new -this._wrtc.RTCPeerConnection(this.config)}catch(f){return void -this.destroy(d(f,"ERR_PC_CONSTRUCTOR"))}this._isReactNativeWebrtc=typeof -this._pc._peerConnectionId=="number",this._pc.oniceconnectionstatechange=()=>{this._onIceStateChange()},this._pc.onicegatheringstatechange=()=>{this._onIceStateChange()},this._pc.onconnectionstatechange=()=>{this._onConnectionStateChange()},this._pc.onsignalingstatechange=()=>{this._onSignalingStateChange()},this._pc.onicecandidate=a=>{this._onIceCandidate(a)},typeof -this._pc.peerIdentity=="object"&&this._pc.peerIdentity.catch(a=>{this.destroy(d(a,"ERR_PC_PEER_IDENTITY"))}),this.initiator||this.channelNegotiated?this._setupData({channel:this._pc.createDataChannel(this.channelName,this.channelConfig)}):this._pc.ondatachannel=a=>{this._setupData(a)},this.streams&&this.streams.forEach(a=>{this.addStream(a)}),this._pc.ontrack=a=>{this._onTrack(a)},this._debug("initial negotiation"),this._needsNegotiation(),this._onFinishBound=()=>{this._onFinish()},this.once("finish",this._onFinishBound)}get -bufferSize(){return this._channel&&this._channel.bufferedAmount||0}get -connected(){return this._connected&&this._channel.readyState==="open"}address(){return{port:this.localPort,family:this.localFamily,address:this.localAddress}}signal(a){if(!this.destroying){if(this.destroyed)throw d(new -Error("cannot signal after peer is destroyed"),"ERR_DESTROYED");if(typeof -a=="string")try{a=JSON.parse(a)}catch{a={}}this._debug("signal()"),a.renegotiate&&this.initiator&&(this._debug("got request to renegotiate"),this._needsNegotiation()),a.transceiverRequest&&this.initiator&&(this._debug("got request for transceiver"),this.addTransceiver(a.transceiverRequest.kind,a.transceiverRequest.init)),a.candidate&&(this._pc.remoteDescription&&this._pc.remoteDescription.type?this._addIceCandidate(a.candidate):this._pendingCandidates.push(a.candidate)),a.sdp&&this._pc.setRemoteDescription(new -this._wrtc.RTCSessionDescription(a)).then(()=>{this.destroyed||(this._pendingCandidates.forEach(a=>{this._addIceCandidate(a)}),this._pendingCandidates=[],this._pc.remoteDescription.type==="offer"&&this._createAnswer())}).catch(a=>{this.destroy(d(a,"ERR_SET_REMOTE_DESCRIPTION"))}),a.sdp||a.candidate||a.renegotiate||a.transceiverRequest||this.destroy(d(new -Error("signal() called with invalid signal data"),"ERR_SIGNALING"))}}_addIceCandidate(a){let -b=new -this._wrtc.RTCIceCandidate(a);this._pc.addIceCandidate(b).catch(a=>{!b.address||b.address.endsWith(".local")?j("Ignoring unsupported ICE candidate."):this.destroy(d(a,"ERR_ADD_ICE_CANDIDATE"))})}send(a){if(!this.destroying){if(this.destroyed)throw d(new -Error("cannot send after peer is destroyed"),"ERR_DESTROYED");this._channel.send(a)}}addTransceiver(a,b){if(!this.destroying){if(this.destroyed)throw d(new -Error("cannot addTransceiver after peer is destroyed"),"ERR_DESTROYED");if(this._debug("addTransceiver()"),this.initiator)try{this._pc.addTransceiver(a,b),this._needsNegotiation()}catch(f){this.destroy(d(f,"ERR_ADD_TRANSCEIVER"))}else -this.emit("signal",{type:"transceiverRequest",transceiverRequest:{kind:a,init:b}})}}addStream(b){if(!this.destroying){if(this.destroyed)throw d(new -Error("cannot addStream after peer is destroyed"),"ERR_DESTROYED");this._debug("addStream()"),b.getTracks().forEach(a=>{this.addTrack(a,b)})}}addTrack(a,b){if(this.destroying)return;if(this.destroyed)throw d(new -Error("cannot addTrack after peer is destroyed"),"ERR_DESTROYED");this._debug("addTrack()");let -e=this._senderMap.get(a)||new -Map,c=e.get(b);if(!c)c=this._pc.addTrack(a,b),e.set(b,c),this._senderMap.set(a,e),this._needsNegotiation();else -throw c.removed?d(new -Error("Track has been removed. You should enable/disable tracks that you want to re-add."),"ERR_SENDER_REMOVED"):d(new -Error("Track has already been added to that stream."),"ERR_SENDER_ALREADY_ADDED")}replaceTrack(a,b,c){if(this.destroying)return;if(this.destroyed)throw d(new -Error("cannot replaceTrack after peer is destroyed"),"ERR_DESTROYED");this._debug("replaceTrack()");let -f=this._senderMap.get(a),e=f?f.get(c):null;if(!e)throw d(new -Error("Cannot replace track that was never added."),"ERR_TRACK_NOT_ADDED");b&&this._senderMap.set(b,f),e.replaceTrack==null?this.destroy(d(new -Error("replaceTrack is not supported in this browser"),"ERR_UNSUPPORTED_REPLACETRACK")):e.replaceTrack(b)}removeTrack(a,b){if(this.destroying)return;if(this.destroyed)throw d(new -Error("cannot removeTrack after peer is destroyed"),"ERR_DESTROYED");this._debug("removeSender()");let -e=this._senderMap.get(a),c=e?e.get(b):null;if(!c)throw d(new -Error("Cannot remove track that was never added."),"ERR_TRACK_NOT_ADDED");try{c.removed=!0,this._pc.removeTrack(c)}catch(f){f.name==="NS_ERROR_UNEXPECTED"?this._sendersAwaitingStable.push(c):this.destroy(d(f,"ERR_REMOVE_TRACK"))}this._needsNegotiation()}removeStream(b){if(!this.destroying){if(this.destroyed)throw d(new -Error("cannot removeStream after peer is destroyed"),"ERR_DESTROYED");this._debug("removeSenders()"),b.getTracks().forEach(a=>{this.removeTrack(a,b)})}}_needsNegotiation(){this._debug("_needsNegotiation"),this._batchedNegotiation||(this._batchedNegotiation=!0,e(()=>{this._batchedNegotiation=!1,this.initiator||!this._firstNegotiation?(this._debug("starting batched negotiation"),this.negotiate()):this._debug("non-initiator initial negotiation request discarded"),this._firstNegotiation=!1}))}negotiate(){if(!this.destroying){if(this.destroyed)throw d(new -Error("cannot negotiate after peer is destroyed"),"ERR_DESTROYED");this.initiator?this._isNegotiating?(this._queuedNegotiation=!0,this._debug("already negotiating, queueing")):(this._debug("start negotiation"),setTimeout(()=>{this._createOffer()},0)):this._isNegotiating?(this._queuedNegotiation=!0,this._debug("already negotiating, queueing")):(this._debug("requesting negotiation from initiator"),this.emit("signal",{type:"renegotiate",renegotiate:!0})),this._isNegotiating=!0}}destroy(a){this._destroy(a,()=>{})}_destroy(a,b){this.destroyed||this.destroying||(this.destroying=!0,this._debug("destroying (error: %s)",a&&(a.message||a)),e(()=>{if(this.destroyed=!0,this.destroying=!1,this._debug("destroy (error: %s)",a&&(a.message||a)),this.readable=this.writable=!1,this._readableState.ended||this.push(null),this._writableState.finished||this.end(),this._connected=!1,this._pcReady=!1,this._channelReady=!1,this._remoteTracks=null,this._remoteStreams=null,this._senderMap=null,clearInterval(this._closingInterval),this._closingInterval=null,clearInterval(this._interval),this._interval=null,this._chunk=null,this._cb=null,this._onFinishBound&&this.removeListener("finish",this._onFinishBound),this._onFinishBound=null,this._channel){try{this._channel.close()}catch{}this._channel.onmessage=null,this._channel.onopen=null,this._channel.onclose=null,this._channel.onerror=null}if(this._pc){try{this._pc.close()}catch{}this._pc.oniceconnectionstatechange=null,this._pc.onicegatheringstatechange=null,this._pc.onsignalingstatechange=null,this._pc.onicecandidate=null,this._pc.ontrack=null,this._pc.ondatachannel=null}this._pc=null,this._channel=null,a&&this.emit("error",a),this.emit("close"),b()}))}_setupData(a){if(!a.channel)return this.destroy(d(new -Error("Data channel event is missing `channel` property"),"ERR_DATA_CHANNEL"));this._channel=a.channel,this._channel.binaryType="arraybuffer",typeof -this._channel.bufferedAmountLowThreshold=="number"&&(this._channel.bufferedAmountLowThreshold=f),this.channelName=this._channel.label,this._channel.onmessage=a=>{this._onChannelMessage(a)},this._channel.onbufferedamountlow=()=>{this._onChannelBufferedAmountLow()},this._channel.onopen=()=>{this._onChannelOpen()},this._channel.onclose=()=>{this._onChannelClose()},this._channel.onerror=a=>{let -b=a.error -instanceof -Error?a.error:new -Error(`Datachannel error: ${a.message} ${a.filename}:${a.lineno}:${a.colno}`);this.destroy(d(b,"ERR_DATA_CHANNEL"))};let -b=!1;this._closingInterval=setInterval(()=>{this._channel&&this._channel.readyState==="closing"?(b&&this._onChannelClose(),b=!0):b=!1},5e3)}_read(){}_write(a,b,c){if(this.destroyed)return c(d(new -Error("cannot write after peer is destroyed"),"ERR_DATA_CHANNEL"));if(this._connected){try{this.send(a)}catch(f){return this.destroy(d(f,"ERR_DATA_CHANNEL"))}this._channel.bufferedAmount>f?(this._debug("start backpressure: bufferedAmount %d",this._channel.bufferedAmount),this._cb=c):c(null)}else -this._debug("write before connect"),this._chunk=a,this._cb=c}_onFinish(){if(!this.destroyed){let -a=()=>{setTimeout(()=>this.destroy(),1e3)};this._connected?a():this.once("connect",a)}}_startIceCompleteTimeout(){this.destroyed||this._iceCompleteTimer||(this._debug("started iceComplete timeout"),this._iceCompleteTimer=setTimeout(()=>{this._iceComplete||(this._iceComplete=!0,this._debug("iceComplete timeout completed"),this.emit("iceTimeout"),this.emit("_iceComplete"))},this.iceCompleteTimeout))}_createOffer(){this.destroyed||this._pc.createOffer(this.offerOptions).then(a=>{if(this.destroyed)return;this.trickle||this.allowHalfTrickle||(a.sdp=i(a.sdp)),a.sdp=this.sdpTransform(a.sdp);let -b=()=>{if(!this.destroyed){let -b=this._pc.localDescription||a;this._debug("signal"),this.emit("signal",{type:b.type,sdp:b.sdp})}};this._pc.setLocalDescription(a).then(()=>{this._debug("createOffer success"),this.destroyed||(this.trickle||this._iceComplete?b():this.once("_iceComplete",b))}).catch(a=>{this.destroy(d(a,"ERR_SET_LOCAL_DESCRIPTION"))})}).catch(a=>{this.destroy(d(a,"ERR_CREATE_OFFER"))})}_requestMissingTransceivers(){this._pc.getTransceivers&&this._pc.getTransceivers().forEach(a=>{a.mid||!a.sender.track||a.requested||(a.requested=!0,this.addTransceiver(a.sender.track.kind))})}_createAnswer(){this.destroyed||this._pc.createAnswer(this.answerOptions).then(a=>{if(this.destroyed)return;this.trickle||this.allowHalfTrickle||(a.sdp=i(a.sdp)),a.sdp=this.sdpTransform(a.sdp);let -b=()=>{if(!this.destroyed){let -b=this._pc.localDescription||a;this._debug("signal"),this.emit("signal",{type:b.type,sdp:b.sdp}),this.initiator||this._requestMissingTransceivers()}};this._pc.setLocalDescription(a).then(()=>{this.destroyed||(this.trickle||this._iceComplete?b():this.once("_iceComplete",b))}).catch(a=>{this.destroy(d(a,"ERR_SET_LOCAL_DESCRIPTION"))})}).catch(a=>{this.destroy(d(a,"ERR_CREATE_ANSWER"))})}_onConnectionStateChange(){this.destroyed||this._pc.connectionState==="failed"&&this.destroy(d(new -Error("Connection failed."),"ERR_CONNECTION_FAILURE"))}_onIceStateChange(){if(this.destroyed)return;let -a=this._pc.iceConnectionState,b=this._pc.iceGatheringState;this._debug("iceStateChange (connection: %s) (gathering: %s)",a,b),this.emit("iceStateChange",a,b),(a==="connected"||a==="completed")&&(this._pcReady=!0,this._maybeReady()),a==="failed"&&this.destroy(d(new -Error("Ice connection failed."),"ERR_ICE_CONNECTION_FAILURE")),a==="closed"&&this.destroy(d(new -Error("Ice connection closed."),"ERR_ICE_CONNECTION_CLOSED"))}getStats(b){let -d=b=>(Object.prototype.toString.call(b.values)==="[object Array]"&&b.values.forEach(a=>{Object.assign(b,a)}),b);this._pc.getStats.length===0||this._isReactNativeWebrtc?this._pc.getStats().then(a=>{let -c=[];a.forEach(a=>{c.push(d(a))}),b(null,c)},a=>b(a)):0{if(this.destroyed)return;let -e=[];a.result().forEach(b=>{let -c={};b.names().forEach(a=>{c[a]=b.stat(a)}),c.id=b.id,c.type=b.type,c.timestamp=b.timestamp,e.push(d(c))}),b(null,e)},a=>b(a)):b(null,[])}_maybeReady(){if(this._debug("maybeReady pc %s channel %s",this._pcReady,this._channelReady),this._connected||this._connecting||!this._pcReady||!this._channelReady)return;this._connecting=!0;let -f=()=>{this.destroyed||this.getStats((a,b)=>{if(this.destroyed)return;a&&(b=[]);let -i={},e={},c={},g=!1;b.forEach(a=>{(a.type==="remotecandidate"||a.type==="remote-candidate")&&(i[a.id]=a),(a.type==="localcandidate"||a.type==="local-candidate")&&(e[a.id]=a),(a.type==="candidatepair"||a.type==="candidate-pair")&&(c[a.id]=a)});let -h=a=>{g=!0;let -b=e[a.localCandidateId];b&&(b.ip||b.address)?(this.localAddress=b.ip||b.address,this.localPort=+b.port):b&&b.ipAddress?(this.localAddress=b.ipAddress,this.localPort=+b.portNumber):typeof -a.googLocalAddress=="string"&&(b=a.googLocalAddress.split(":"),this.localAddress=b[0],this.localPort=+b[1]),this.localAddress&&(this.localFamily=this.localAddress.includes(":")?"IPv6":"IPv4");let -c=i[a.remoteCandidateId];c&&(c.ip||c.address)?(this.remoteAddress=c.ip||c.address,this.remotePort=+c.port):c&&c.ipAddress?(this.remoteAddress=c.ipAddress,this.remotePort=+c.portNumber):typeof -a.googRemoteAddress=="string"&&(c=a.googRemoteAddress.split(":"),this.remoteAddress=c[0],this.remotePort=+c[1]),this.remoteAddress&&(this.remoteFamily=this.remoteAddress.includes(":")?"IPv6":"IPv4"),this._debug("connect local: %s:%s remote: %s:%s",this.localAddress,this.localPort,this.remoteAddress,this.remotePort)};if(b.forEach(a=>{a.type==="transport"&&a.selectedCandidatePairId&&h(c[a.selectedCandidatePairId]),(a.type==="googCandidatePair"&&a.googActiveConnection==="true"||(a.type==="candidatepair"||a.type==="candidate-pair")&&a.selected)&&h(a)}),!g&&(!Object.keys(c).length||Object.keys(e).length))return void -setTimeout(f,100);if(this._connecting=!1,this._connected=!0,this._chunk){try{this.send(this._chunk)}catch(f){return this.destroy(d(f,"ERR_DATA_CHANNEL"))}this._chunk=null,this._debug('sent chunk from "write before connect"');let -a=this._cb;this._cb=null,a(null)}typeof -this._channel.bufferedAmountLowThreshold!="number"&&(this._interval=setInterval(()=>this._onInterval(),150),this._interval.unref&&this._interval.unref()),this._debug("connect"),this.emit("connect")})};f()}_onInterval(){this._cb&&this._channel&&!(this._channel.bufferedAmount>f)&&this._onChannelBufferedAmountLow()}_onSignalingStateChange(){this.destroyed||(this._pc.signalingState==="stable"&&(this._isNegotiating=!1,this._debug("flushing sender queue",this._sendersAwaitingStable),this._sendersAwaitingStable.forEach(a=>{this._pc.removeTrack(a),this._queuedNegotiation=!0}),this._sendersAwaitingStable=[],this._queuedNegotiation?(this._debug("flushing negotiation queue"),this._queuedNegotiation=!1,this._needsNegotiation()):(this._debug("negotiated"),this.emit("negotiated"))),this._debug("signalingStateChange %s",this._pc.signalingState),this.emit("signalingStateChange",this._pc.signalingState))}_onIceCandidate(a){this.destroyed||(a.candidate&&this.trickle?this.emit("signal",{type:"candidate",candidate:{candidate:a.candidate.candidate,sdpMLineIndex:a.candidate.sdpMLineIndex,sdpMid:a.candidate.sdpMid}}):!a.candidate&&!this._iceComplete&&(this._iceComplete=!0,this.emit("_iceComplete")),a.candidate&&this._startIceCompleteTimeout())}_onChannelMessage(a){if(this.destroyed)return;let -b=a.data;b -instanceof -ArrayBuffer&&(b=m.from(b)),this.push(b)}_onChannelBufferedAmountLow(){if(!this.destroyed&&this._cb){this._debug("ending backpressure: bufferedAmount %d",this._channel.bufferedAmount);let -a=this._cb;this._cb=null,a(null)}}_onChannelOpen(){this._connected||this.destroyed||(this._debug("on channel open"),this._channelReady=!0,this._maybeReady())}_onChannelClose(){this.destroyed||(this._debug("on channel close"),this.destroy())}_onTrack(a){this.destroyed||a.streams.forEach(b=>{this._debug("on track"),this.emit("track",a.track,b),this._remoteTracks.push({track:a.track,stream:b}),this._remoteStreams.some(a=>a.id===b.id)||(this._remoteStreams.push(b),e(()=>{this._debug("on stream"),this.emit("stream",b)}))})}_debug(){let -a=[].slice.call(arguments);a[0]="["+this._id+"] "+a[0],l.apply(null,a)}}c.WEBRTC_SUPPORT=!!g(),c.config={iceServers:[{urls:["stun:stun.l.google.com:19302","stun:global.stun.twilio.com:3478"]}],sdpSemantics:"unified-plan"},c.channelConfig={},b.exports=c},{buffer:3,debug:4,"err-code":6,"get-browser-rtc":8,"queue-microtask":13,randombytes:14,"readable-stream":29}]},{},[])("/")}))}),cC={};ek(cC,{AbsolutePosition:()=>cp,AbstractConnector:()=>ho,AbstractStruct:()=>a6,AbstractType:()=>r,Array:()=>ax,ContentAny:()=>ao,ContentBinary:()=>as,ContentDeleted:()=>a$,ContentDoc:()=>aA,ContentEmbed:()=>ag,ContentFormat:()=>o,ContentJSON:()=>bN,ContentString:()=>M,ContentType:()=>H,Doc:()=>aG,GC:()=>v,ID:()=>ad,Item:()=>i,Map:()=>aD,PermanentUserData:()=>fX,RelativePosition:()=>bb,Skip:()=>s,Snapshot:()=>bI,Text:()=>a4,Transaction:()=>ck,UndoManager:()=>fn,UpdateDecoderV1:()=>z,UpdateDecoderV2:()=>w,UpdateEncoderV1:()=>Q,UpdateEncoderV2:()=>C,XmlElement:()=>aC,XmlFragment:()=>az,XmlHook:()=>bK,XmlText:()=>cn,YArrayEvent:()=>ch,YEvent:()=>au,YMapEvent:()=>cX,YTextEvent:()=>c1,YXmlEvent:()=>cR,applyUpdate:()=>cb,applyUpdateV2:()=>aT,cleanupYTextFormatting:()=>dU,compareIDs:()=>ah,compareRelativePositions:()=>gz,convertUpdateFormatV1ToV2:()=>fk,convertUpdateFormatV2ToV1:()=>dQ,createAbsolutePositionFromRelativePosition:()=>f1,createDeleteSet:()=>aX,createDeleteSetFromStructStore:()=>bE,createDocFromSnapshot:()=>gh,createID:()=>g,createRelativePositionFromJSON:()=>f9,createRelativePositionFromTypeIndex:()=>gU,createSnapshot:()=>bw,decodeRelativePosition:()=>fU,decodeSnapshot:()=>g9,decodeSnapshotV2:()=>c0,decodeStateVector:()=>bk,decodeUpdate:()=>fo,decodeUpdateV2:()=>ci,diffUpdate:()=>er,diffUpdateV2:()=>bj,emptySnapshot:()=>gc,encodeRelativePosition:()=>g0,encodeSnapshot:()=>f5,encodeSnapshotV2:()=>cW,encodeStateAsUpdate:()=>a7,encodeStateAsUpdateV2:()=>d7,encodeStateVector:()=>cJ,encodeStateVectorFromUpdate:()=>eA,encodeStateVectorFromUpdateV2:()=>c2,equalDeleteSets:()=>cS,equalSnapshots:()=>gk,findIndexSS:()=>A,findRootTypeKey:()=>bt,getItem:()=>af,getState:()=>k,getTypeChildren:()=>e5,isDeleted:()=>ab,isParentOf:()=>aB,iterateDeletedStructs:()=>X,logType:()=>fg,logUpdate:()=>eG,logUpdateV2:()=>cI,mergeDeleteSets:()=>aa,mergeUpdates:()=>cH,mergeUpdatesV2:()=>aL,obfuscateUpdate:()=>fr,obfuscateUpdateV2:()=>fu,parseUpdateMeta:()=>hj,parseUpdateMetaV2:()=>cr,readUpdate:()=>eX,readUpdateV2:()=>bC,relativePositionToJSON:()=>g3,snapshot:()=>gO,snapshotContainsUpdate:()=>hp,transact:()=>h,tryGc:()=>fR,typeListToArraySnapshot:()=>e9,typeMapGetAllSnapshot:()=>dX,typeMapGetSnapshot:()=>fx});var -p=()=>new -Map,bP=a=>{let -c=p();return a.forEach((a,b)=>{c.set(b,a)}),c},q=(a,b,c)=>{let -d=a.get(b);return d===void -0&&a.set(b,d=c()),d},f2=(a,b)=>{let -c=[];for(let[d,e]of -a)c.push(b(e,d));return c},gA=(a,b)=>{for(let[c,d]of -a)if(b(d,c))return!0;return!1},P=()=>new -Set,b9=a=>a[a.length-1],gl=(a,b)=>{for(let -c=0;c{for(let -c=0;c{let -d=new -Array(a);for(let -c=0;c{this.off(d,c),b(...a)};this.on(d,c)}off(a,b){let -c=this._observers.get(a);c!==void -0&&(c.delete(b),c.size===0&&this._observers.delete(a))}emit(a,b){return L((this._observers.get(a)||p()).values()).forEach(a=>a(...b))}destroy(){this._observers=p()}},b6=class{constructor(){this._observers=p()}on(a,b){q(this._observers,a,P).add(b)}once(d,b){let -c=(...a)=>{this.off(d,c),b(...a)};this.on(d,c)}off(a,b){let -c=this._observers.get(a);c!==void -0&&(c.delete(b),c.size===0&&this._observers.delete(a))}emit(a,b){return L((this._observers.get(a)||p()).values()).forEach(a=>a(...b))}destroy(){this._observers=p()}},I=Math.floor,a2=Math.abs,gd=Math.log10,ca=(a,b)=>aa>b?a:b,hJ=Number.isNaN,dK=a=>a!==0?a<0:1/a<0,cf=Number.MAX_SAFE_INTEGER,hC=Number.MIN_SAFE_INTEGER,hI=1<<31,gP=Number.isInteger||(a=>typeof -a=="number"&&isFinite(a)&&I(a)===a),hM=Number.isNaN,hE=Number.parseInt,c5=String.fromCharCode,hR=String.fromCodePoint,hK=c5(65535),ff=a=>a.toLowerCase(),g1=/^\s*/g,f7=a=>a.replace(g1,""),gE=/([A-Z])/g,c_=(a,b)=>f7(a.replace(gE,a=>`${b}${ff(a)}`)),gS=a=>{let -d=unescape(encodeURIComponent(a)),b=d.length,c=new -Uint8Array(b);for(let -a=0;aay.encode(a),bR=ay?gm:gS,av=typeof -TextDecoder>"u"?null:new -TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});av&&av.decode(new -Uint8Array).length===1&&(av=null);var -gD=(a,b)=>g_(b,()=>a).join(""),aI=class{constructor(){this.cpos=0,this.cbuf=new -Uint8Array(100),this.bufs=[]}},n=()=>new -aI,gX=a=>{let -c=a.cpos;for(let -b=0;b{let -c=new -Uint8Array(gX(a)),b=0;for(let -d=0;d{let -c=a.cbuf.length;c-a.cpos{let -c=a.cbuf.length;a.cpos===c&&(a.bufs.push(a.cbuf),a.cbuf=new -Uint8Array(c*2),a.cpos=0),a.cbuf[a.cpos++]=b},_=c,e=(a,b)=>{for(;b>127;)c(a,128|127&b),b=I(b/128);c(a,127&b)},aQ=(a,b)=>{let -d=dK(b);for(d&&(b=-b),c(a,(b>63?128:0)|(d?64:0)|63&b),b=I(b/64);b>0;)c(a,(b>127?128:0)|127&b),b=I(b/128)},bB=new -Uint8Array(3e4),fS=bB.length/3,fZ=(a,b)=>{if(b.length{let -d=unescape(encodeURIComponent(b)),f=d.length;e(a,f);for(let -b=0;baH(a,j(b)),aH=(a,b)=>{let -e=a.cbuf.length,f=a.cpos,c=ca(e-f,b.length),d=b.length-c;a.cbuf.set(b.subarray(0,c),f),a.cpos+=c,d>0&&(a.bufs.push(a.cbuf),a.cbuf=new -Uint8Array($(e*2,d)),a.cbuf.set(b.subarray(c)),a.cpos=d)},l=(a,b)=>{e(a,b.byteLength),aH(a,b)},b7=(a,b)=>{gH(a,b);let -c=new -DataView(a.cbuf.buffer,a.cpos,b);return a.cpos+=b,c},gi=(a,b)=>b7(a,4).setFloat32(0,b,!1),f3=(a,b)=>b7(a,8).setFloat64(0,b,!1),g7=(a,b)=>b7(a,8).setBigInt64(0,b,!1),d5=new -DataView(new -ArrayBuffer(4)),ga=a=>(d5.setFloat32(0,a),d5.getFloat32(0)===a),an=(a,b)=>{switch(typeof -b){case"string":c(a,119),D(a,b);break;case"number":gP(b)&&a2(b)<=2147483647?(c(a,125),aQ(a,b)):ga(b)?(c(a,124),gi(a,b)):(c(a,123),f3(a,b));break;case"bigint":c(a,122),g7(a,b);break;case"object":if(b===null)c(a,126);else if(bS(b)){c(a,117),e(a,b.length);for(let -c=0;c0&&e(this,this.count-1),this.count=1,this.w(this,a),this.s=a)}},dh=a=>{a.count>0&&(aQ(a.encoder,a.count===1?a.s:-a.s),a.count>1&&e(a.encoder,a.count-2))},a3=class{constructor(){this.encoder=new -aI,this.s=0,this.count=0}write(a){this.s===a?this.count++:(dh(this),this.count=1,this.s=a)}toUint8Array(){return dh(this),j(this.encoder)}},da=a=>{if(a.count>0){let -b=a.diff*2+(a.count===1?0:1);aQ(a.encoder,b),a.count>1&&e(a.encoder,a.count-2)}},bL=class{constructor(){this.encoder=new -aI,this.s=0,this.count=0,this.diff=0}write(a){this.diff===a-this.s?(this.s=a,this.count++):(da(this),this.count=1,this.diff=a-this.s,this.s=a)}toUint8Array(){return da(this),j(this.encoder)}},gW=class{constructor(){this.sarr=[],this.s="",this.lensE=new -a3}write(a){this.s+=a,this.s.length>19&&(this.sarr.push(this.s),this.s=""),this.lensE.write(a.length)}toUint8Array(){let -a=new -aI;return this.sarr.push(this.s),this.s="",D(a,this.sarr.join("")),aH(a,this.lensE.toUint8Array()),j(a)}},E=a=>new -Error(a),G=()=>{throw E("Method unimplemented")},u=()=>{throw E("Unexpected case")},cq=E("Unexpected end of array"),cU=E("Integer out of Range"),aY=class{constructor(a){this.arr=a,this.pos=0}},m=a=>new -aY(a),dp=a=>a.pos!==a.arr.length,gL=(a,b)=>{let -c=new -Uint8Array(a.arr.buffer,a.pos+a.arr.byteOffset,b);return a.pos+=b,c},d=a=>gL(a,f(a)),W=a=>a.arr[a.pos++],f=a=>{let -b=0,c=1,d=a.arr.length;for(;a.poscf)throw cU}throw cq},a9=a=>{let -b=a.arr[a.pos++],c=b&63,d=64,e=(b&64)>0?-1:1;if(!(b&128))return e*c;let -f=a.arr.length;for(;a.poscf)throw cU}throw cq},gf=a=>{let -b=f(a);if(b===0)return"";{let -c=String.fromCodePoint(W(a));if(--b<100)for(;b--;)c+=String.fromCodePoint(W(a));else -for(;b>0;){let -d=b<1e4?b:1e4,e=a.arr.subarray(a.pos,a.pos+d);a.pos+=d,c+=String.fromCodePoint.apply(null,e),b-=d}return decodeURIComponent(escape(c))}},gB=a=>av.decode(d(a)),K=av?gB:gf,bZ=(a,b)=>{let -c=new -DataView(a.arr.buffer,a.arr.byteOffset+a.pos,b);return a.pos+=b,c},hm=a=>bZ(a,4).getFloat32(0,!1),hd=a=>bZ(a,8).getFloat64(0,!1),fV=a=>bZ(a,8).getBigInt64(0,!1),fP=[a=>{},a=>null,a9,hm,hd,fV,a=>!1,a=>!0,K,a=>{let -d=f(a),b={};for(let -c=0;c{let -d=f(a),b=[];for(let -c=0;cfP[127-W(a)](a),d6=class -extends -aY{constructor(a,b){super(a),this.reader=b,this.s=null,this.count=0}read(){return this.count===0&&(this.s=this.reader(this),dp(this)?this.count=f(this)+1:this.count=-1),this.count--,this.s}},bd=class -extends -aY{constructor(a){super(a),this.s=0,this.count=0}read(){if(this.count===0){this.s=a9(this);let -a=dK(this.s);this.count=1,a&&(this.s=-this.s,this.count=f(this)+2)}return this.count--,this.s}},b8=class -extends -aY{constructor(a){super(a),this.s=0,this.count=0,this.diff=0}read(){if(this.count===0){let -a=a9(this),b=a&1;this.diff=I(a/2),this.count=1,b&&(this.count=f(this)+2)}return this.s+=this.diff,this.count--,this.s}},gp=class{constructor(a){this.decoder=new -bd(a),this.str=K(this.decoder),this.spos=0}read(){let -a=this.spos+this.decoder.read(),b=this.str.slice(this.spos,a);return this.spos=a,b}},hN=crypto.subtle,eB=crypto.getRandomValues.bind(crypto),hk=Math.random,dT=()=>eB(new -Uint32Array(1))[0],ha="10000000-1000-4000-8000"+-1e11,dV=()=>ha.replace(/[018]/g,a=>(a^dT()&15>>a/4).toString(16)),J=Date.now,ai=a=>new -Promise(a),hD=Promise.all.bind(Promise),es=a=>Promise.reject(a),bF=a=>Promise.resolve(a),dy=a=>a===void -0?null:a,gZ=class{constructor(){this.map=new -Map}setItem(a,b){this.map.set(a,b)}getItem(a){return this.map.get(a)}},cY=new -gZ,b1=!0;try{typeof -localStorage<"u"&&localStorage&&(cY=localStorage,b1=!1)}catch{}var -de=cY,fv=a=>b1||addEventListener("storage",a),fl=a=>b1||removeEventListener("storage",a),fc=Object.assign,cG=Object.keys,e_=(a,b)=>{for(let -c -in -a)b(a[c],c)},dc=a=>cG(a).length,cz=a=>cG(a).length,ev=a=>{for(let -b -in -a)return!1;return!0},ex=(a,b)=>{for(let -c -in -a)if(!b(a[c],c))return!1;return!0},dj=(a,b)=>Object.prototype.hasOwnProperty.call(a,b),gy=(a,c)=>a===c||cz(a)===cz(c)&&ex(a,(a,b)=>(a!==void -0||dj(c,b))&&c[b]===a),bD=(a,b,c=0)=>{try{for(;c{},du=a=>a,hh=(a,b)=>a===b,aJ=(a,b)=>{if(a==null||b==null)return hh(a,b);if(a.constructor!==b.constructor)return!1;if(a===b)return!0;switch(a.constructor){case -ArrayBuffer:a=new -Uint8Array(a),b=new -Uint8Array(b);case -Uint8Array:{if(a.byteLength!==b.byteLength)return!1;for(let -c=0;cb.includes(a),am=typeof -process<"u"&&process.release&&/node|io\.js/.test(process.release.name)&&Object.prototype.toString.call(typeof -process<"u"?process:0)==="[object process]",dG=typeof -window<"u"&&typeof -document<"u"&&!am,hF=typeof -navigator<"u"?/Mac/.test(navigator.platform):!1,b,gt=[],ep=()=>{if(b===void -0)if(am){b=p();let -e=process.argv,a=null;for(let -d=0;d{if(a.length!==0){let[d,c]=a.split("=");b.set(`--${c_(d,"-")}`,c),b.set(`-${c_(d,"-")}`,c)}})):b=p();return b},bT=a=>ep().has(a),aP=a=>am?dy(process.env[a.toUpperCase().replaceAll("-","_")]):dy(de.getItem(a)),dB=a=>bT("--"+a)||aP(a)!==null,hH=dB("production"),fp=am&&eL(process.env.FORCE_COLOR,["true","1","2"]),fe=fp||!bT("--no-colors")&&!dB("no-color")&&(!am||process.stdout.isTTY)&&(!am||bT("--color")||aP("COLORTERM")!==null||(aP("TERM")||"").includes("color")),dR=a=>new -Uint8Array(a),fs=(a,b,c)=>new -Uint8Array(a,b,c),eR=a=>new -Uint8Array(a),fi=a=>{let -c="";for(let -b=0;bBuffer.from(a.buffer,a.byteOffset,a.byteLength).toString("base64"),eT=a=>{let -b=atob(a),c=dR(b.length);for(let -a=0;a{let -b=Buffer.from(a,"base64");return fs(b.buffer,b.byteOffset,b.byteLength)},dw=dG?fi:eC,dm=dG?eT:fa,fC=a=>{let -b=dR(a.byteLength);return b.set(a),b},gN=class{constructor(a,b){this.left=a,this.right=b}},a=(a,b)=>new -gN(a,b),Y=typeof -document<"u"?document:{},hG=typeof -DOMParser<"u"?new -DOMParser:null,fJ=a=>f2(a,(a,b)=>`${b}:${a};`).join(""),hB=Y.ELEMENT_NODE,hO=Y.TEXT_NODE,hP=Y.CDATA_SECTION_NODE,hL=Y.COMMENT_NODE,hT=Y.DOCUMENT_NODE,hQ=Y.DOCUMENT_TYPE_NODE,hS=Y.DOCUMENT_FRAGMENT_NODE,hu=JSON.stringify,O=Symbol,B=O(),ac=O(),dZ=O(),b4=O(),dr=O(),cx=O(),dO=O(),aZ=O(),aO=O(),eZ=a=>{a.length===1&&a[0]?.constructor===Function&&(a=a[0]());let -d=[],c=[],b=0;for(;b0&&c.push(d.join(""));b{let -c=cu[bU],a=aP("log"),d=a!==null&&(a==="*"||a==="true"||new -RegExp(a,"gi").test(b));return bU=(bU+1)%cu.length,b+=": ",d?(...a)=>{a.length===1&&a[0]?.constructor===Function&&(a=a[0]());let -d=J(),f=d-cE;cE=d,e(c,b,aO,...a.map(a=>{switch(a!=null&&a.constructor===Uint8Array&&(a=Array.from(a)),typeof -a){case"string":case"symbol":return a;default:return hu(a)}}),c," +"+f+"ms")}:fy},eI={[B]:a("font-weight","bold"),[ac]:a("font-weight","normal"),[dZ]:a("color","blue"),[dr]:a("color","green"),[b4]:a("color","grey"),[cx]:a("color","red"),[dO]:a("color","purple"),[aZ]:a("color","orange"),[aO]:a("color","black")},gr=a=>{a.length===1&&a[0]?.constructor===Function&&(a=a[0]());let -d=[],f=[],g=p(),c=[],b=0;for(;b0||a.length>0?(d.push("%c"+c),f.push(a)):d.push(c)}else -break}}for(b>0&&(c=f,c.unshift(d.join("")));b{console.log(...c6(b)),cO.forEach(a=>a.print(b))},fN=(...b)=>{console.warn(...c6(b)),b.unshift(aZ),cO.forEach(a=>a.print(b))},cO=P(),g4=a=>en(aW,a),dJ=a=>({[Symbol.iterator](){return this},next:a}),gV=(a,b)=>dJ(()=>{let -c;do -c=a.next();while(!c.done&&!b(c.value));return c}),bV=(a,b)=>dJ(()=>{let{done:c,value:d}=a.next();return{done:c,value:c?void -0:b(d)}}),ho=class -extends -a8{constructor(a,b){super(),this.doc=a,this.awareness=b}},bx=class{constructor(a,b){this.clock=a,this.len=b}},ap=class{constructor(){this.clients=new -Map}},X=(d,b,c)=>b.clients.forEach((a,b)=>{let -f=d.doc.store.clients.get(b);for(let -b=0;b{let -d=0,e=a.length-1;for(;d<=e;){let -c=I((d+e)/2),g=a[c],f=g.clock;if(f<=b){if(b{let -c=a.clients.get(b.client);return c!==void -0&&fA(c,b.clock)!==null},bi=a=>{a.clients.forEach(a=>{a.sort((a,b)=>a.clock-b.clock);let -c,b;for(c=1,b=1;c=e.clock?d.len=$(d.len,e.clock+e.len-d.clock):(b{let -d=new -ap;for(let -e=0;e{if(!d.clients.has(b)){let -f=a.slice();for(let -a=e+1;a{q(a.clients,b,()=>[]).push(new -bx(c,d))},aX=()=>new -ap,bE=a=>{let -d=aX();return a.clients.forEach((a,b)=>{let -c=[];for(let -b=0;b0&&d.clients.set(b,c)}),d},F=(c,b)=>{e(c.restEncoder,b.clients.size),L(b.clients.entries()).sort((a,b)=>b[0]-a[0]).forEach(([a,b])=>{c.resetDsCurVal(),e(c.restEncoder,a);let -d=b.length;e(c.restEncoder,d);for(let -a=0;a{let -b=new -ap,d=f(a.restDecoder);for(let -c=0;c0){let -e=q(b.clients,d,()=>[]);for(let -b=0;b{let -g=new -ap,h=f(a.restDecoder);for(let -d=0;d0){let -a=new -C;return e(a.restEncoder,0),F(a,g),a.toUint8Array()}return null},cS=(a,b)=>{if(a.clients.size!==b.clients.size)return!1;for(let[e,c]of -a.clients.entries()){let -d=b.clients.get(e);if(d===void -0||c.length!==d.length)return!1;for(let -a=0;a!0,meta:e=null,autoLoad:f=!1,shouldLoad:g=!0}={}){super(),this.gc=c,this.gcFilter=d,this.clientID=cj(),this.guid=a,this.collectionid=b,this.share=new -Map,this.store=new -cT,this._transaction=null,this._transactionCleanups=[],this.subdocs=new -Set,this._item=null,this.shouldLoad=g,this.autoLoad=f,this.meta=e,this.isLoaded=!1,this.isSynced=!1,this.whenLoaded=ai(a=>{this.on("load",()=>{this.isLoaded=!0,a(this)})});let -h=()=>ai(c=>{let -b=a=>{(a===void -0||a===!0)&&(this.off("sync",b),c())};this.on("sync",b)});this.on("sync",a=>{a===!1&&this.isSynced&&(this.whenSynced=h()),this.isSynced=a===void -0||a===!0,this.isSynced&&!this.isLoaded&&this.emit("load",[this])}),this.whenSynced=h()}load(){let -a=this._item;a!==null&&!this.shouldLoad&&h(a.parent.doc,a=>{a.subdocsLoaded.add(this)},null,!0),this.shouldLoad=!0}getSubdocs(){return this.subdocs}getSubdocGuids(){return new -Set(L(this.subdocs).map(a=>a.guid))}transact(a,b=null){return h(this,a,b)}get(a,b=r){let -d=q(this.share,a,()=>{let -a=new -b;return a._integrate(this,null),a}),c=d.constructor;if(b!==r&&c!==b)if(c===r){let -c=new -b;c._map=d._map,d._map.forEach(a=>{for(;a!==null;a=a.left)a.parent=c}),c._start=d._start;for(let -a=c._start;a!==null;a=a.right)a.parent=c;return c._length=d._length,this.share.set(a,c),c._integrate(this,null),c}else -throw new -Error(`Type with the name ${a} has already been defined with a different constructor`);return d}getArray(a=""){return this.get(a,ax)}getText(a=""){return this.get(a,a4)}getMap(a=""){return this.get(a,aD)}getXmlElement(a=""){return this.get(a,aC)}getXmlFragment(a=""){return this.get(a,az)}toJSON(){let -c={};return this.share.forEach((a,b)=>{c[b]=a.toJSON()}),c}destroy(){L(this.subdocs).forEach(a=>a.destroy());let -b=this._item;if(b!==null){this._item=null;let -c=b.content;c.doc=new -hv({guid:this.guid,...c.opts,shouldLoad:!1}),c.doc._item=b,h(b.parent.doc,a=>{let -d=c.doc;b.deleted||a.subdocsAdded.add(d),a.subdocsRemoved.add(this)},null,!0)}this.emit("destroyed",[!0]),this.emit("destroy",[this]),super.destroy()}},aF=class{constructor(a){this.restDecoder=a}resetDsCurVal(){}readDsClock(){return f(this.restDecoder)}readDsLen(){return f(this.restDecoder)}},z=class -extends -aF{readLeftID(){return g(f(this.restDecoder),f(this.restDecoder))}readRightID(){return g(f(this.restDecoder),f(this.restDecoder))}readClient(){return f(this.restDecoder)}readInfo(){return W(this.restDecoder)}readString(){return K(this.restDecoder)}readParentInfo(){return f(this.restDecoder)===1}readTypeRef(){return f(this.restDecoder)}readLen(){return f(this.restDecoder)}readAny(){return aj(this.restDecoder)}readBuf(){return fC(d(this.restDecoder))}readJSON(){return JSON.parse(K(this.restDecoder))}readKey(){return K(this.restDecoder)}},d2=class{constructor(a){this.dsCurrVal=0,this.restDecoder=a}resetDsCurVal(){this.dsCurrVal=0}readDsClock(){return this.dsCurrVal+=f(this.restDecoder),this.dsCurrVal}readDsLen(){let -a=f(this.restDecoder)+1;return this.dsCurrVal+=a,a}},w=class -extends -d2{constructor(a){super(a),this.keys=[],f(a),this.keyClockDecoder=new -b8(d(a)),this.clientDecoder=new -bd(d(a)),this.leftClockDecoder=new -b8(d(a)),this.rightClockDecoder=new -b8(d(a)),this.infoDecoder=new -d6(d(a),W),this.stringDecoder=new -gp(d(a)),this.parentInfoDecoder=new -d6(d(a),W),this.typeRefDecoder=new -bd(d(a)),this.lenDecoder=new -bd(d(a))}readLeftID(){return new -ad(this.clientDecoder.read(),this.leftClockDecoder.read())}readRightID(){return new -ad(this.clientDecoder.read(),this.rightClockDecoder.read())}readClient(){return this.clientDecoder.read()}readInfo(){return this.infoDecoder.read()}readString(){return this.stringDecoder.read()}readParentInfo(){return this.parentInfoDecoder.read()===1}readTypeRef(){return this.typeRefDecoder.read()}readLen(){return this.lenDecoder.read()}readAny(){return aj(this.restDecoder)}readBuf(){return d(this.restDecoder)}readJSON(){return aj(this.restDecoder)}readKey(){let -a=this.keyClockDecoder.read();if(a{d=$(d,b[0].id.clock);let -f=A(b,d);e(a.restEncoder,b.length-f),a.writeClient(c),e(a.restEncoder,d);let -g=b[f];g.write(a,d-g.id.clock);for(let -c=f+1;c{let -d=new -Map;c.forEach((a,b)=>{k(f,b)>a&&d.set(b,a)}),aw(f).forEach((a,b)=>{c.has(b)||d.set(b,0)}),e(g.restEncoder,d.size),L(d.entries()).sort((a,b)=>b[0]-a[0]).forEach(([a,b])=>{fH(g,f.clients.get(a),a,b)})},hr=(a,b)=>{let -d=p(),e=f(a.restDecoder);for(let -c=0;c{let -h=[],g=L(c.keys()).sort((a,b)=>a-b);if(g.length===0)return null;let -n=()=>{if(g.length===0)return null;let -a=c.get(g[g.length-1]);for(;a.refs.length===a.i;)if(g.pop(),g.length>0)a=c.get(g[g.length-1]);else -return null;return a},f=n();if(f===null)return null;let -i=new -cT,j=new -Map,m=(a,b)=>{let -c=j.get(a);(c==null||c>b)&&j.set(a,b)},d=f.refs[f.i++],l=new -Map,o=()=>{for(let -d -of -h){let -b=d.id.client,a=c.get(b);a?(a.i--,i.clients.set(b,a.refs.slice(a.i)),c.delete(b),a.i=0,a.refs=[]):i.clients.set(b,[d]),g=g.filter(a=>a!==b)}h.length=0};for(;;){if(d.constructor!==s){let -e=q(l,d.id.client,()=>k(b,d.id.client))-d.id.clock;if(e<0)h.push(d),m(d.id.client,d.id.clock-1),o();else{let -f=d.getMissing(a,b);if(f!==null){h.push(d);let -a=c.get(f)||{refs:[],i:0};if(a.refs.length===a.i)m(f,k(b,f)),o();else{d=a.refs[a.i++];continue}}else(e===0||e0)d=h.pop();else if(f!==null&&f.i0){let -a=new -C;return bG(a,i,new -Map),e(a.restEncoder,0),{missing:j,update:a.toUint8Array()}}return null},e1=(a,b)=>bG(a,b.doc.store,b.beforeState),bC=(a,b,c,d=new -w(a))=>h(b,a=>{a.local=!1;let -i=!1,h=a.doc,b=h.store,j=hr(d,h),g=eN(a,b,j),c=b.pendingStructs;if(c){for(let[a,d]of -c.missing)if(db)&&c.missing.set(a,b)}c.update=aL([c.update,g.update])}}else -b.pendingStructs=g;let -e=dM(d,a,b);if(b.pendingDs){let -d=new -w(m(b.pendingDs));f(d.restDecoder);let -c=dM(d,a,b);e&&c?b.pendingDs=aL([e,c]):b.pendingDs=e||c}else -b.pendingDs=e;if(i){let -c=b.pendingStructs.update;b.pendingStructs=null,aT(a.doc,c)}},c,!1),eX=(a,b,c)=>bC(a,b,c,new -z(a)),aT=(a,b,c,d=w)=>{let -e=m(b);bC(e,a,c,new -d(e))},cb=(a,b,c)=>aT(a,b,c,z),el=(a,b,c=new -Map)=>{bG(a,b.store,c),F(a,bE(b.store))},d7=(a,b=new -Uint8Array([0]),c=new -C)=>{let -e=bk(b);el(c,a,e);let -d=[c.toUint8Array()];if(a.store.pendingDs&&d.push(a.store.pendingDs),a.store.pendingStructs&&d.push(bj(a.store.pendingStructs.update,b)),d.length>1){if(c.constructor===Q)return cH(d.map((a,b)=>b===0?a:dQ(a)));if(c.constructor===C)return aL(d)}return d[0]},a7=(a,b)=>d7(a,b,new -Q),dD=a=>{let -b=new -Map,d=f(a.restDecoder);for(let -c=0;cdD(new -aF(m(a))),bq=(c,b)=>(e(c.restEncoder,b.size),L(b.entries()).sort((a,b)=>b[0]-a[0]).forEach(([a,b])=>{e(c.restEncoder,a),e(c.restEncoder,b)}),c),fE=(a,b)=>bq(a,aw(b.store)),fL=(a,b=new -bc)=>(a -instanceof -Map?bq(b,a):fE(b,a),b.toUint8Array()),cJ=a=>fL(a,new -al),he=class{constructor(){this.l=[]}},dd=()=>new -he,dk=(a,b)=>a.l.push(b),dF=(a,b)=>{let -c=a.l,d=c.length;a.l=c.filter(a=>b!==a),d===a.l.length&&console.error("[yjs] Tried to remove event handler that doesn't exist.")},cg=(a,b,c)=>bD(a.l,[b,c]),ad=class{constructor(a,b){this.client=a,this.clock=b}},ah=(a,b)=>a===b||a!==null&&b!==null&&a.client===b.client&&a.clock===b.clock,g=(a,b)=>new -ad(a,b),dv=(a,b)=>{e(a,b.client),e(a,b.clock)},dY=a=>g(f(a),f(a)),bt=a=>{for(let[c,b]of -a.doc.share.entries())if(b===a)return c;throw u()},aB=(a,b)=>{for(;b!==null;){if(b.parent===a)return!0;b=b.parent._item}return!1},fg=a=>{let -c=[],b=a._start;for(;b;)c.push(b),b=b.right;console.log("Children: ",c),console.log("Children content: ",c.filter(a=>!a.deleted).map(a=>a.content))},fX=class{constructor(a,b=a.getMap("users")){let -d=new -Map;this.yusers=b,this.doc=a,this.clients=new -Map,this.dss=d;let -c=(a,b)=>{let -d=a.get("ds"),c=a.get("ids"),e=a=>this.clients.set(a,b);d.observe(a=>{a.changes.added.forEach(a=>{a.content.getContent().forEach(a=>{a -instanceof -Uint8Array&&this.dss.set(b,aa([this.dss.get(b)||aX(),N(new -aF(m(a)))]))})})}),this.dss.set(b,aa(d.map(a=>N(new -aF(m(a)))))),c.observe(a=>a.changes.added.forEach(a=>a.content.getContent().forEach(e))),c.forEach(e)};b.observe(a=>{a.keysChanged.forEach(a=>c(b.get(a),a))}),b.forEach(c)}setUserMapping(a,b,c,{filter:d=()=>!0}={}){let -f=this.yusers,e=f.get(c);e||(e=new -aD,e.set("ids",new -ax),e.set("ds",new -ax),f.set(c,e)),e.get("ids").push([b]),f.observe(a=>{setTimeout(()=>{let -a=f.get(c);if(a!==e){e=a,this.clients.forEach((a,b)=>{c===a&&e.get("ids").push([b])});let -d=new -al,b=this.dss.get(c);b&&(F(d,b),e.get("ds").push([d.toUint8Array()]))}},0)}),a.on("afterTransaction",a=>{setTimeout(()=>{let -c=e.get("ds"),b=a.deleteSet;if(a.local&&b.clients.size>0&&d(a,b)){let -a=new -al;F(a,b),c.push([a.toUint8Array()])}})})}getUserByClientId(a){return this.clients.get(a)||null}getUserByDeletedId(a){for(let[b,c]of -this.dss.entries())if(ab(c,a))return b;return null}},bb=class{constructor(a,b,c,d=0){this.type=a,this.tname=b,this.item=c,this.assoc=d}},g3=a=>{let -b={};return a.type&&(b.type=a.type),a.tname&&(b.tname=a.tname),a.item&&(b.item=a.item),a.assoc!=null&&(b.assoc=a.assoc),b},f9=a=>new -bb(a.type==null?null:g(a.type.client,a.type.clock),a.tname??null,a.item==null?null:g(a.item.client,a.item.clock),a.assoc==null?0:a.assoc),cp=class{constructor(a,b,c=0){this.type=a,this.index=b,this.assoc=c}},gG=(a,b,c=0)=>new -cp(a,b,c),ba=(a,b,c)=>{let -d=null,e=null;return a._item===null?e=bt(a):d=g(a._item.id.client,a._item.id.clock),new -bb(d,e,b,c)},gU=(a,b,c=0)=>{let -d=a._start;if(c<0){if(b===0)return ba(a,null,c);b--}for(;d!==null;){if(!d.deleted&&d.countable){if(d.length>b)return ba(a,g(d.id.client,d.id.clock+b),c);b-=d.length}if(d.right===null&&c<0)return ba(a,d.lastId,c);d=d.right}return ba(a,null,c)},go=(a,b)=>{let{type:c,tname:d,item:f,assoc:g}=b;if(f!==null)e(a,0),dv(a,f);else if(d!==null)_(a,1),D(a,d);else if(c!==null)_(a,2),dv(a,c);else -throw u();return aQ(a,g),a},g0=a=>{let -b=n();return go(b,a),j(b)},gJ=a=>{let -d=null,b=null,c=null;switch(f(a)){case -0:c=dY(a);break;case -1:b=K(a);break;case -2:d=dY(a)}let -e=dp(a)?a9(a):0;return new -bb(d,b,c,e)},fU=a=>gJ(m(a)),f1=(a,b,c=!0)=>{let -e=b.store,h=a.item,g=a.type,j=a.tname,l=a.assoc,d=null,f=0;if(h!==null){if(k(e,h.client)<=h.clock)return null;let -g=c?b$(e,h):{item:af(e,h),diff:0},b=g.item;if(!(b -instanceof -i))return null;if(d=b.parent,d._item===null||!d._item.deleted){f=b.deleted||!b.countable?0:g.diff+(l>=0?0:1);let -a=b.left;for(;a!==null;)!a.deleted&&a.countable&&(f+=a.length),a=a.left}}else{if(j!==null)d=b.get(j);else if(g!==null){if(k(e,g.client)<=g.clock)return null;let{item:a}=c?b$(e,g):{item:af(e,g)};if(a -instanceof -i&&a.content -instanceof -H)d=a.content.type;else -return null}else -throw u();l>=0?f=d._length:f=0}return gG(d,f,a.assoc)},gz=(a,b)=>a===b||a!==null&&b!==null&&a.tname===b.tname&&ah(a.item,b.item)&&ah(a.type,b.type)&&a.assoc===b.assoc,bI=class{constructor(a,b){this.ds=a,this.sv=b}},gk=(a,b)=>{let -c=a.ds.clients,e=b.ds.clients,f=a.sv,d=b.sv;if(f.size!==d.size||c.size!==e.size)return!1;for(let[a,b]of -f.entries())if(d.get(a)!==b)return!1;for(let[a,b]of -c.entries()){let -c=e.get(a)||[];if(b.length!==c.length)return!1;for(let -a=0;a(F(b,a.ds),bq(b,a.sv),b.toUint8Array()),f5=a=>cW(a,new -al),c0=(a,b=new -d2(m(a)))=>new -bI(N(b),dD(b)),g9=a=>c0(a,new -aF(m(a))),bw=(a,b)=>new -bI(a,b),gc=bw(aX(),new -Map),gO=a=>bw(bE(a.store),aw(a.store)),V=(a,b)=>b===void -0?!a.deleted:b.sv.has(a.id.client)&&(b.sv.get(a.id.client)||0)>a.id.clock&&!ab(b.ds,a.id),bQ=(c,b)=>{let -a=q(c.meta,bQ,P),d=c.doc.store;a.has(b)||(b.sv.forEach((a,b)=>{a{}),a.add(b))},gh=(f,b,c=new -aG)=>{if(f.gc)throw new -Error("Garbage-collection must be disabled in `originDoc`!");let{sv:h,ds:i}=b,d=new -C;return f.transact(a=>{let -b=0;h.forEach(a=>{a>0&&b++}),e(d.restEncoder,b);for(let[b,c]of -h){if(c===0)continue;c{let -d=new -c(m(b)),e=new -R(d,!1);for(let -b=e.curr;b!==null;b=e.next())if((a.sv.get(b.id.client)||0)gC(a,b,z),cT=class{constructor(){this.clients=new -Map,this.pendingStructs=null,this.pendingDs=null}},aw=a=>{let -c=new -Map;return a.clients.forEach((a,b)=>{let -d=a[a.length-1];c.set(b,d.id.clock+d.length)}),c},k=(a,b)=>{let -c=a.clients.get(b);if(c===void -0)return 0;let -d=c[c.length-1];return d.id.clock+d.length},cQ=(a,b)=>{let -c=a.clients.get(b.id.client);if(c===void -0)c=[],a.clients.set(b.id.client,c);else{let -a=c[c.length-1];if(a.id.clock+a.length!==b.id.clock)throw u()}c.push(b)},A=(a,b)=>{let -g=0,c=a.length-1,f=a[c],e=f.id.clock;if(e===b)return c;let -d=I(b/(e+f.length-1)*c);for(;g<=c;){if(f=a[d],e=f.id.clock,e<=b){if(b{let -c=a.clients.get(b.client);return c[A(c,b.clock)]},af=hf,b_=(a,b,c)=>{let -d=A(b,c),e=b[d];return e.id.clock{let -c=a.doc.store.clients.get(b.client);return c[b_(a,c,b.clock)]},dq=(a,b,c)=>{let -e=b.clients.get(c.client),f=A(e,c.clock),d=e[f];return c.clock!==d.id.clock+d.length-1&&d.constructor!==v&&e.splice(f+1,0,aR(a,d,c.clock-d.id.clock+1)),d},fY=(a,b,c)=>{let -d=a.clients.get(b.id.client);d[A(d,b.id.clock)]=c},cm=(a,b,c,d,e)=>{if(d===0)return;let -h=c+d,g=b_(a,b,c),f;do -f=b[g++],hc.deleteSet.clients.size===0&&!gA(c.afterState,(a,b)=>c.beforeState.get(b)!==a)?!1:(bi(c.deleteSet),e1(a,c),F(a,c.deleteSet),!0),ds=(a,b,c)=>{let -d=b._item;(d===null||d.id.clock<(a.beforeState.get(d.id.client)||0)&&!d.deleted)&&q(a.changed,b,P).add(c)},a5=(a,b)=>{let -c=a[b],d=a[b-1],f=b;for(;f>0;c=d,d=a[--f-1]){if(d.deleted===c.deleted&&d.constructor===c.constructor&&d.mergeWith(c)){c -instanceof -i&&c.parentSub!==null&&c.parent._map.get(c.parentSub)===c&&c.parent._map.set(c.parentSub,d);continue}break}let -e=b-f;return e&&a.splice(b+1-e,e),e},cy=(a,b,c)=>{for(let[e,f]of -a.clients.entries()){let -d=b.clients.get(e);for(let -a=f.length-1;a>=0;a--){let -e=f[a],g=e.clock+e.len;for(let -f=A(d,e.clock),a=d[f];f{a.clients.forEach((a,b)=>{let -c=d.clients.get(b);for(let -b=a.length-1;b>=0;b--){let -d=a[b],e=ca(c.length-1,1+A(c,d.clock+d.len-1));for(let -a=e,b=c[a];a>0&&b.id.clock>=d.clock;b=c[a])a-=1+a5(c,a)}})},fR=(a,b,c)=>{cy(a,b,c),cK(a,b)},cF=(a,b)=>{if(be.push(()=>{(b._item===null||!b._item.deleted)&&b._callObserver(c,a)})),e.push(()=>{c.changedParentTypes.forEach((a,b)=>{b._dEH.l.length>0&&(b._item===null||!b._item.deleted)&&(a=a.filter(a=>a.target._item===null||!a.target._item.deleted),a.forEach(a=>{a.currentTarget=b,a._path=null}),a.sort((a,b)=>a.path.length-b.path.length),cg(b._dEH,a,c))})}),e.push(()=>d.emit("afterTransaction",[c,d])),bD(e,[]),c._needFormattingCleanup&&gQ(c)}finally{d.gc&&cy(g,e,d.gcFilter),cK(g,e),c.afterState.forEach((a,b)=>{let -d=c.beforeState.get(b)||0;if(d!==a){let -a=e.clients.get(b),c=$(A(a,d),1);for(let -b=a.length-1;b>=c;)b-=1+a5(a,b)}});for(let -c=i.length-1;c>=0;c--){let{client:d,clock:f}=i[c].id,b=e.clients.get(d),a=A(b,f);a+11||a>0&&a5(b,a)}if(!c.local&&c.afterState.get(d.clientID)!==c.beforeState.get(d.clientID)&&(aW(aZ,B,"[yjs] ",ac,cx,"Changed the client-id because another client seems to be using it."),d.clientID=cj()),d.emit("afterTransactionCleanup",[c,d]),d._observers.has("update")){let -a=new -Q;dN(a,c)&&d.emit("update",[a.toUint8Array(),c.origin,d,c])}if(d._observers.has("updateV2")){let -a=new -C;dN(a,c)&&d.emit("updateV2",[a.toUint8Array(),c.origin,d,c])}let{subdocsAdded:h,subdocsLoaded:j,subdocsRemoved:f}=c;(h.size>0||f.size>0||j.size>0)&&(h.forEach(a=>{a.clientID=d.clientID,a.collectionid==null&&(a.collectionid=d.collectionid),d.subdocs.add(a)}),f.forEach(a=>d.subdocs.delete(a)),d.emit("subdocs",[{loaded:j,added:h,removed:f},d,c]),f.forEach(a=>a.destroy())),a.length<=b+1?(d._transactionCleanups=[],d.emit("afterAllTransactions",[d,a])):cF(a,b+1)}}},h=(a,b,c=null,d=!0)=>{let -e=a._transactionCleanups,g=!1,f=null;a._transaction===null&&(g=!0,a._transaction=new -ck(a,c,d),e.push(a._transaction),e.length===1&&a.emit("beforeAllTransactions",[a]),a.emit("beforeTransaction",[a._transaction,a]));try{f=b(a._transaction)}finally{if(g){let -b=a._transaction===e[0];a._transaction=null,b&&cF(e,0)}}return f},eF=class{constructor(a,b){this.insertions=b,this.deletions=a,this.meta=new -Map}},dH=(a,b,c)=>{X(a,c.deletions,c=>{c -instanceof -i&&b.scope.some(a=>aB(a,c))&&by(c,!1)})},d8=(d,b,c)=>{let -e=null,k=d.doc,j=d.scope;h(k,c=>{for(;b.length>0&&d.currStackItem===null;){let -l=k.store,e=b.pop(),h=new -Set,a=[],f=!1;X(c,e.insertions,b=>{if(b -instanceof -i){if(b.redone!==null){let{item:a,diff:d}=b$(l,b.id);d>0&&(a=t(c,g(a.id.client,a.id.clock+d))),b=a}!b.deleted&&j.some(a=>aB(a,b))&&a.push(b)}}),X(c,e.deletions,b=>{b -instanceof -i&&j.some(a=>aB(a,b))&&!ab(e.insertions,b.id)&&h.add(b)}),h.forEach(a=>{f=db(c,a,h,e.insertions,d.ignoreRemoteMapChanges,d)!==null||f});for(let -b=a.length-1;b>=0;b--){let -e=a[b];d.deleteFilter(e)&&(e.delete(c),f=!0)}d.currStackItem=f?e:null}c.changed.forEach((a,b)=>{a.has(null)&&b._searchMarker&&(b._searchMarker.length=0)}),e=c},d);let -a=d.currStackItem;if(a!=null){let -b=e.changedParentTypes;d.emit("stack-item-popped",[{stackItem:a,type:c,changedParentTypes:b,origin:d},d]),d.currStackItem=null}return a},fn=class -extends -a8{constructor(a,{captureTimeout:b=500,captureTransaction:c=a=>!0,deleteFilter:d=()=>!0,trackedOrigins:e=new -Set([null]),ignoreRemoteMapChanges:f=!1,doc:g=bS(a)?a[0].doc:a.doc}={}){super(),this.scope=[],this.doc=g,this.addToScope(a),this.deleteFilter=d,e.add(this),this.trackedOrigins=e,this.captureTransaction=c,this.undoStack=[],this.redoStack=[],this.undoing=!1,this.redoing=!1,this.currStackItem=null,this.lastChange=0,this.ignoreRemoteMapChanges=f,this.captureTimeout=b,this.afterTransactionHandler=c=>{if(!this.captureTransaction(c)||!this.scope.some(a=>c.changedParentTypes.has(a))||!this.trackedOrigins.has(c.origin)&&(!c.origin||!this.trackedOrigins.has(c.origin.constructor)))return;let -b=this.undoing,d=this.redoing,a=b?this.redoStack:this.undoStack;b?this.stopCapturing():d||this.clear(!1,!0);let -e=new -ap;c.afterState.forEach((a,b)=>{let -d=c.beforeState.get(b)||0,f=a-d;f>0&&at(e,b,d,f)});let -h=J(),g=!1;if(this.lastChange>0&&h-this.lastChange0&&!b&&!d){let -b=a[a.length-1];b.deletions=aa([b.deletions,c.deleteSet]),b.insertions=aa([b.insertions,e])}else -a.push(new -eF(c.deleteSet,e)),g=!0;!b&&!d&&(this.lastChange=h),X(c,c.deleteSet,b=>{b -instanceof -i&&this.scope.some(a=>aB(a,b))&&by(b,!0)});let -f=[{stackItem:a[a.length-1],origin:c.origin,type:b?"redo":"undo",changedParentTypes:c.changedParentTypes},this];g?this.emit("stack-item-added",f):this.emit("stack-item-updated",f)},this.doc.on("afterTransaction",this.afterTransactionHandler),this.doc.on("destroy",()=>{this.destroy()})}addToScope(a){a=bS(a)?a:[a],a.forEach(b=>{this.scope.every(a=>a!==b)&&(b.doc!==this.doc&&fN("[yjs#509] Not same Y.Doc"),this.scope.push(b))})}addTrackedOrigin(a){this.trackedOrigins.add(a)}removeTrackedOrigin(a){this.trackedOrigins.delete(a)}clear(a=!0,b=!0){(a&&this.canUndo()||b&&this.canRedo())&&this.doc.transact(c=>{a&&(this.undoStack.forEach(a=>dH(c,this,a)),this.undoStack=[]),b&&(this.redoStack.forEach(a=>dH(c,this,a)),this.redoStack=[]),this.emit("stack-cleared",[{undoStackCleared:a,redoStackCleared:b}])})}stopCapturing(){this.lastChange=0}undo(){this.undoing=!0;let -a;try{a=d8(this,this.undoStack,"undo")}finally{this.undoing=!1}return a}redo(){this.redoing=!0;let -a;try{a=d8(this,this.redoStack,"redo")}finally{this.redoing=!1}return a}canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}destroy(){this.trackedOrigins.delete(this),this.doc.off("afterTransaction",this.afterTransactionHandler),super.destroy()}};function*hb(a){let -c=f(a.restDecoder);for(let -b=0;bcI(a,z),cI=(a,b=w)=>{let -c=[],d=new -b(m(a)),e=new -R(d,!1);for(let -a=e.curr;a!==null;a=e.next())c.push(a);aW("Structs: ",c);let -f=N(d);aW("DeleteSet: ",f)},fo=a=>ci(a,z),ci=(a,b=w)=>{let -c=[],d=new -b(m(a)),e=new -R(d,!1);for(let -a=e.curr;a!==null;a=e.next())c.push(a);return{structs:c,ds:N(d)}},bm=class{constructor(a){this.currClient=0,this.startClock=0,this.written=0,this.encoder=a,this.clientStructs=[]}},cH=a=>aL(a,z,Q),c2=(a,b=bc,c=w)=>{let -f=new -b,i=new -R(new -c(m(a)),!1),d=i.curr;if(d!==null){let -g=0,c=d.id.client,b=d.id.clock!==0,a=b?0:d.id.clock+d.length;for(;d!==null;d=i.next())c!==d.id.client&&(a!==0&&(g++,e(f.restEncoder,c),e(f.restEncoder,a)),c=d.id.client,a=0,b=d.id.clock!==0),d.constructor===s&&(b=!0),b||(a=d.id.clock+d.length);a!==0&&(g++,e(f.restEncoder,c),e(f.restEncoder,a));let -h=n();return e(h,g),hc(h,f.restEncoder),f.restEncoder=h,f.toUint8Array()}else -return e(f.restEncoder,0),f.toUint8Array()},eA=a=>c2(a,al,z),cr=(a,b=w)=>{let -d=new -Map,e=new -Map,f=new -R(new -b(m(a)),!1),c=f.curr;if(c!==null){let -a=c.id.client,b=c.id.clock;for(d.set(a,b);c!==null;c=f.next())a!==c.id.client&&(e.set(a,b),d.set(c.id.client,c.id.clock),a=c.id.client),b=c.id.clock+c.length;e.set(a,b)}return{from:d,to:e}},hj=a=>cr(a,z),gv=(a,b)=>{if(a.constructor===v){let{client:c,clock:d}=a.id;return new -v(g(c,d+b),a.length-b)}else if(a.constructor===s){let{client:c,clock:d}=a.id;return new -s(g(c,d+b),a.length-b)}else{let -c=a,{client:d,clock:e}=c.id;return new -i(g(d,e+b),null,g(d,e+b-1),null,c.rightOrigin,c.parent,c.parentSub,c.content.splice(b))}},aL=(a,b=w,c=C)=>{if(a.length===1)return a[0];let -i=a.map(a=>new -b(m(a))),f=i.map(a=>new -R(a,!0)),d=null,h=new -c,e=new -bm(h);for(;f=f.filter(a=>a.curr!==null),f.sort((a,b)=>{if(a.curr.id.client===b.curr.id.client){let -c=a.curr.id.clock-b.curr.id.clock;return c===0?a.curr.constructor===b.curr.constructor?0:a.curr.constructor===s?1:-1:c}else -return b.curr.id.client-a.curr.id.client}),f.length!==0;){let -b=f[0],c=b.curr.id.client;if(d!==null){let -a=b.curr,f=!1;for(;a!==null&&a.id.clock+a.length<=d.struct.id.clock+d.struct.length&&a.id.client>=d.struct.id.client;)a=b.next(),f=!0;if(a===null||a.id.client!==c||f&&a.id.clock>d.struct.id.clock+d.struct.length)continue;if(c!==d.struct.id.client)U(e,d.struct,d.offset),d={struct:a,offset:0},b.next();else if(d.struct.id.clock+d.struct.length0&&(d.struct.constructor===s?d.struct.length-=c:a=gv(a,c)),d.struct.mergeWith(a)||(U(e,d.struct,d.offset),d={struct:a,offset:0},b.next())}}else -d={struct:b.curr,offset:0},b.next();for(let -a=b.curr;a!==null&&a.id.client===c&&a.id.clock===d.struct.id.clock+d.struct.length&&a.constructor!==s;a=b.next())U(e,d.struct,d.offset),d={struct:a,offset:0}}d!==null&&(U(e,d.struct,d.offset),d=null),bv(e);let -j=i.map(a=>N(a)),k=aa(j);return F(h,k),h.toUint8Array()},bj=(a,b,c=w,d=C)=>{let -j=bk(b),g=new -d,f=new -bm(g),h=new -c(m(a)),e=new -R(h,!1);for(;e.curr;){let -a=e.curr,b=a.id.client,c=j.get(b)||0;if(e.curr.constructor===s){e.next();continue}if(a.id.clock+a.length>c)for(U(f,a,$(c-a.id.clock,0)),e.next();e.curr&&e.curr.id.client===b;)U(f,e.curr,0),e.next();else -for(;e.curr&&e.curr.id.client===b&&e.curr.id.clock+e.curr.length<=c;)e.next()}bv(f);let -i=N(h);return F(g,i),g.toUint8Array()},er=(a,b)=>bj(a,b,z,Q),dA=a=>{a.written>0&&(a.clientStructs.push({written:a.written,restEncoder:j(a.encoder.restEncoder)}),a.encoder.restEncoder=n(),a.written=0)},U=(a,b,c)=>{a.written>0&&a.currClient!==b.id.client&&dA(a),a.written===0&&(a.currClient=b.id.client,a.encoder.writeClient(b.id.client),e(a.encoder.restEncoder,b.id.clock+c)),b.write(a.encoder,c),a.written++},bv=a=>{dA(a);let -b=a.encoder.restEncoder;e(b,a.clientStructs.length);for(let -c=0;c{let -h=new -c(m(a)),g=new -R(h,!1),e=new -d,f=new -bm(e);for(let -a=g.curr;a!==null;a=g.next())U(f,b(a),0);bv(f);let -i=N(h);return F(e,i),e.toUint8Array()},cM=({formatting:k=!0,subdocs:b=!0,yxml:c=!0}={})=>{let -d=0,l=p(),h=p(),j=p(),g=p();return g.set(null,null),a=>{switch(a.constructor){case -v:case -s:return a;case -i:{let -f=a,e=f.content;switch(e.constructor){case -a$:break;case -H:{if(c){let -a=e.type;a -instanceof -aC&&(a.nodeName=q(h,a.nodeName,()=>"node-"+d)),a -instanceof -bK&&(a.hookName=q(h,a.hookName,()=>"hook-"+d))}break}case -ao:{let -a=e;a.arr=a.arr.map(()=>d);break}case -as:{let -a=e;a.content=new -Uint8Array([d]);break}case -aA:{let -a=e;b&&(a.opts={},a.doc.guid=d+"");break}case -ag:{let -a=e;a.embed={};break}case -o:{let -a=e;k&&(a.key=q(j,a.key,()=>d+""),a.value=q(g,a.value,()=>({i:d})));break}case -bN:{let -a=e;a.arr=a.arr.map(()=>d);break}case -M:{let -a=e;a.str=gD(d%10+"",a.str.length);break}default:u()}return f.parentSub&&(f.parentSub=q(l,f.parentSub,()=>d+"")),d++,a}default:u()}}},fr=(a,b)=>aV(a,cM(b),z,Q),fu=(a,b)=>aV(a,cM(b),w,C),fk=a=>aV(a,du,z,C),dQ=a=>aV(a,du,w,Q),d4="You must not compute changes after the event-handler fired.",au=class{constructor(a,b){this.target=a,this.currentTarget=a,this.transaction=b,this._changes=null,this._keys=null,this._delta=null,this._path=null}get -path(){return this._path||(this._path=eD(this.currentTarget,this.target))}deletes(a){return ab(this.transaction.deleteSet,a.id)}get -keys(){if(this._keys===null){if(this.transaction.doc._transactionCleanups.length===0)throw E(d4);let -f=new -Map,e=this.target;this.transaction.changed.get(e).forEach(a=>{if(a!==null){let -d=e._map.get(a),b,c;if(this.adds(d)){let -a=d.left;for(;a!==null&&this.adds(a);)a=a.left;if(this.deletes(d))if(a!==null&&this.deletes(a))b="delete",c=b9(a.content.getContent());else -return;else -a!==null&&this.deletes(a)?(b="update",c=b9(a.content.getContent())):(b="add",c=void -0)}else if(this.deletes(d))b="delete",c=b9(d.content.getContent());else -return;f.set(a,{action:b,oldValue:c})}}),this._keys=f}return this._keys}get -delta(){return this.changes.delta}adds(a){return a.id.clock>=(this.transaction.beforeState.get(a.id.client)||0)}get -changes(){let -a=this._changes;if(a===null){if(this.transaction.doc._transactionCleanups.length===0)throw E(d4);let -d=this.target,e=P(),f=P(),b=[];if(a={added:e,deleted:f,delta:b,keys:this.keys},this.transaction.changed.get(d).has(null)){let -a=null,c=()=>{a&&b.push(a)};for(let -b=d._start;b!==null;b=b.right)b.deleted?this.deletes(b)&&!this.adds(b)&&((a===null||a.delete===void -0)&&(c(),a={delete:0}),a.delete+=b.length,f.add(b)):this.adds(b)?((a===null||a.insert===void -0)&&(c(),a={insert:[]}),a.insert=a.insert.concat(b.content.getContent()),e.add(b)):((a===null||a.retain===void -0)&&(c(),a={retain:0}),a.retain+=b.length);a!==null&&a.retain===void -0&&c()}this._changes=a}return a}},eD=(a,b)=>{let -c=[];for(;b._item!==null&&b!==a;){if(b._item.parentSub!==null)c.unshift(b._item.parentSub);else{let -d=0,a=b._item.parent._start;for(;a!==b._item&&a!==null;)!a.deleted&&a.countable&&(d+=a.length),a=a.right;c.unshift(d)}b=b._item.parent}return c},cw=80,bH=0,ez=class{constructor(a,b){a.marker=!0,this.p=a,this.index=b,this.timestamp=bH++}},eV=a=>{a.timestamp=bH++},c3=(a,b,c)=>{a.p.marker=!1,a.p=b,b.marker=!0,a.index=c,a.timestamp=bH++},fb=(a,b,c)=>{if(a.length>=cw){let -d=a.reduce((a,b)=>a.timestamp{if(a._start===null||e===0||a._searchMarker===null)return null;let -d=a._searchMarker.length===0?null:a._searchMarker.reduce((a,b)=>a2(e-a.index)e;)b=b.left,!b.deleted&&b.countable&&(c-=b.length);for(;b.left!==null&&b.left.id.client===b.id.client&&b.left.id.clock+b.left.length===b.id.clock;)b=b.left,!b.deleted&&b.countable&&(c-=b.length);return d!==null&&a2(d.index-c){for(let -e=a.length-1;e>=0;e--){let -d=a[e];if(c>0){let -b=d.p;for(b.marker=!1;b&&(b.deleted||!b.countable);)b=b.left,b&&!b.deleted&&b.countable&&(d.index-=b.length);if(b===null||b.marker===!0){a.splice(e,1);continue}d.p=b,b.marker=!0}(b0&&b===d.index)&&(d.index=$(b,d.index+c))}},e5=a=>{let -b=a._start,c=[];for(;b;)c.push(b),b=b.right;return c},aU=(a,b,c)=>{let -d=a,e=b.changedParentTypes;for(;q(e,a,()=>[]).push(c),a._item!==null;)a=a._item.parent;cg(d._eH,c,b)},r=class{constructor(){this._item=null,this._map=new -Map,this._start=null,this.doc=null,this._length=0,this._eH=dd(),this._dEH=dd(),this._searchMarker=null}get -parent(){return this._item?this._item.parent:null}_integrate(a,b){this.doc=a,this._item=b}_copy(){throw G()}clone(){throw G()}_write(a){}get -_first(){let -a=this._start;for(;a!==null&&a.deleted;)a=a.right;return a}_callObserver(a,b){!a.local&&this._searchMarker&&(this._searchMarker.length=0)}observe(a){dk(this._eH,a)}observeDeep(a){dk(this._dEH,a)}unobserve(a){dF(this._eH,a)}unobserveDeep(a){dF(this._dEH,a)}toJSON(){}},c7=(a,b,c)=>{b<0&&(b=a._length+b),c<0&&(c=a._length+c);let -e=c-b,f=[],d=a._start;for(;d!==null&&e>0;){if(d.countable&&!d.deleted){let -a=d.content.getContent();if(a.length<=b)b-=a.length;else{for(let -c=b;c0;c++)f.push(a[c]),e--;b=0}}d=d.right}return f},d_=a=>{let -c=[],b=a._start;for(;b!==null;){if(b.countable&&!b.deleted){let -d=b.content.getContent();for(let -a=0;a{let -d=[],c=a._start;for(;c!==null;){if(c.countable&&V(c,b)){let -b=c.content.getContent();for(let -a=0;a{let -e=0,c=a._start;for(;c!==null;){if(c.countable&&!c.deleted){let -d=c.content.getContent();for(let -c=0;c{let -d=[];return aM(c,(a,b)=>{d.push(e(a,b,c))}),d},eu=a=>{let -b=a._start,c=null,d=0;return{[Symbol.iterator](){return this},next:()=>{if(c===null){for(;b!==null&&b.deleted;)b=b.right;if(b===null)return{done:!0,value:void -0};c=b.content.getContent(),d=0,b=b.right}let -a=c[d++];return c.length<=d&&(c=null),{done:!1,value:a}}}},cD=(a,b)=>{let -d=aN(a,b),c=a._start;for(d!==null&&(c=d.p,b-=d.index);c!==null;c=c.right)if(!c.deleted&&c.countable){if(b{let -e=c,a=j.doc,h=a.clientID,m=a.store,f=c===null?b._start:c.right,l=[],n=()=>{l.length>0&&(e=new -i(g(h,k(m,h)),e,e&&e.lastId,f,f&&f.id,b,null,new -ao(l)),e.integrate(j,0),l=[])};d.forEach(a=>{if(a===null)l.push(a);else -switch(a.constructor){case -Number:case -Object:case -Boolean:case -Array:case -String:l.push(a);break;default:switch(n(),a.constructor){case -Uint8Array:case -ArrayBuffer:e=new -i(g(h,k(m,h)),e,e&&e.lastId,f,f&&f.id,b,null,new -as(new -Uint8Array(a))),e.integrate(j,0);break;case -aG:e=new -i(g(h,k(m,h)),e,e&&e.lastId,f,f&&f.id,b,null,new -aA(a)),e.integrate(j,0);break;default:if(a -instanceof -r)e=new -i(g(h,k(m,h)),e,e&&e.lastId,f,f&&f.id,b,null,new -H(a)),e.integrate(j,0);else -throw new -Error("Unexpected content type in insert operation")}}}),n()},cB=()=>E("Length exceeded!"),ce=(a,b,c,d)=>{if(c>b._length)throw cB();if(c===0)return b._searchMarker&&aE(b._searchMarker,c,d.length),bg(a,b,null,d);let -h=c,f=aN(b,c),e=b._start;for(f!==null&&(e=f.p,c-=f.index,c===0&&(e=e.prev,c+=e&&e.countable&&!e.deleted?e.length:0));e!==null;e=e.right)if(!e.deleted&&e.countable){if(c<=e.length){c{let -d=(b._searchMarker||[]).reduce((a,b)=>b.index>a.index?b:a,{index:0,p:b._start}).p;if(d)for(;d.right;)d=d.right;return bg(a,b,d,c)},c4=(a,b,c,d)=>{if(d===0)return;let -i=c,h=d,f=aN(b,c),e=b._start;for(f!==null&&(e=f.p,c-=f.index);e!==null&&c>0;e=e.right)!e.deleted&&e.countable&&(c0&&e!==null;)e.deleted||(d0)throw cB();b._searchMarker&&aE(b._searchMarker,i,-h+d)},a_=(a,b,c)=>{let -d=b._map.get(c);d!==void -0&&d.delete(a)},bl=(a,b,c,d)=>{let -f=b._map.get(c)||null,j=a.doc,h=j.clientID,e;if(d==null)e=new -ao([d]);else -switch(d.constructor){case -Number:case -Object:case -Boolean:case -Array:case -String:e=new -ao([d]);break;case -Uint8Array:e=new -as(d);break;case -aG:e=new -aA(d);break;default:if(d -instanceof -r)e=new -H(d);else -throw new -Error("Unexpected content type")}new -i(g(h,k(j.store,h)),f,f&&f.lastId,null,null,b,c,e).integrate(a,0)},bW=(a,b)=>{let -c=a._map.get(b);return c!==void -0&&!c.deleted?c.content.getContent()[c.length-1]:void -0},c9=a=>{let -c={};return a._map.forEach((a,b)=>{a.deleted||(c[b]=a.content.getContent()[a.length-1])}),c},cN=(a,b)=>{let -c=a._map.get(b);return c!==void -0&&!c.deleted},fx=(a,b,c)=>{let -d=a._map.get(b)||null;for(;d!==null&&(!c.sv.has(d.id.client)||d.id.clock>=(c.sv.get(d.id.client)||0));)d=d.left;return d!==null&&V(d,c)?d.content.getContent()[d.length-1]:void -0},dX=(a,d)=>{let -e={};return a._map.forEach((a,b)=>{let -c=a;for(;c!==null&&(!d.sv.has(c.id.client)||c.id.clock>=(d.sv.get(c.id.client)||0));)c=c.left;c!==null&&V(c,d)&&(e[b]=c.content.getContent()[c.length-1])}),e},bh=a=>gV(a.entries(),a=>!a[1].deleted),ch=class -extends -au{},ax=class -cc -extends -r{constructor(){super(),this._prelimContent=[],this._searchMarker=[]}static -from(a){let -b=new -cc;return b.push(a),b}_integrate(a,b){super._integrate(a,b),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new -cc}clone(){let -a=new -cc;return a.insert(0,this.toArray().map(a=>a -instanceof -r?a.clone():a)),a}get -length(){return this._prelimContent===null?this._length:this._prelimContent.length}_callObserver(a,b){super._callObserver(a,b),aU(this,a,new -ch(this,a))}insert(c,b){this.doc!==null?h(this.doc,a=>{ce(a,this,c,b)}):this._prelimContent.splice(c,0,...b)}push(b){this.doc!==null?h(this.doc,a=>{e7(a,this,b)}):this._prelimContent.push(...b)}unshift(a){this.insert(0,a)}delete(c,b=1){this.doc!==null?h(this.doc,a=>{c4(a,this,c,b)}):this._prelimContent.splice(c,b)}get(a){return cD(this,a)}toArray(){return d_(this)}slice(a=0,b=this.length){return c7(this,a,b)}toJSON(){return this.map(a=>a -instanceof -r?a.toJSON():a)}map(a){return ct(this,a)}forEach(a){aM(this,a)}[Symbol.iterator](){return eu(this)}_write(a){a.writeTypeRef(gn)}},eJ=a=>new -ax,cX=class -extends -au{constructor(a,b,c){super(a,b),this.keysChanged=c}},aD=class -d$ -extends -r{constructor(a){super(),this._prelimContent=null,a===void -0?this._prelimContent=new -Map:this._prelimContent=new -Map(a)}_integrate(a,b){super._integrate(a,b),this._prelimContent.forEach((a,b)=>{this.set(b,a)}),this._prelimContent=null}_copy(){return new -d$}clone(){let -c=new -d$;return this.forEach((a,b)=>{c.set(b,a -instanceof -r?a.clone():a)}),c}_callObserver(a,b){aU(this,a,new -cX(this,a,b))}toJSON(){let -d={};return this._map.forEach((a,b)=>{if(!a.deleted){let -c=a.content.getContent()[a.length-1];d[b]=c -instanceof -r?c.toJSON():c}}),d}get -size(){return[...bh(this._map)].length}keys(){return bV(bh(this._map),a=>a[0])}values(){return bV(bh(this._map),a=>a[1].content.getContent()[a[1].length-1])}entries(){return bV(bh(this._map),a=>[a[0],a[1].content.getContent()[a[1].length-1]])}forEach(c){this._map.forEach((a,b)=>{a.deleted||c(a.content.getContent()[a.length-1],b,this)})}[Symbol.iterator](){return this.entries()}delete(b){this.doc!==null?h(this.doc,a=>{a_(a,this,b)}):this._prelimContent.delete(b)}set(c,b){return this.doc!==null?h(this.doc,a=>{bl(a,this,c,b)}):this._prelimContent.set(c,b),b}get(a){return bW(this,a)}has(a){return cN(this,a)}clear(){this.doc!==null?h(this.doc,d=>{this.forEach(function(a,b,c){a_(d,c,b)})}):this._prelimContent.clear()}_write(a){a.writeTypeRef(gY)}},gs=a=>new -aD,S=(a,b)=>a===b||typeof -a=="object"&&typeof -b=="object"&&a&&b&&gy(a,b),bo=class{constructor(a,b,c,d){this.left=a,this.right=b,this.index=c,this.currentAttributes=d}forward(){switch(this.right===null&&u(),this.right.content.constructor){case -o:this.right.deleted||ak(this.currentAttributes,this.right.content);break;default:this.right.deleted||(this.index+=this.right.length);break}this.left=this.right,this.right=this.right.right}},dg=(a,b,c)=>{for(;b.right!==null&&c>0;){switch(b.right.content.constructor){case -o:b.right.deleted||ak(b.currentAttributes,b.right.content);break;default:b.right.deleted||(c{let -f=new -Map,e=d?aN(b,c):null;if(e){let -b=new -bo(e.p.left,e.p,e.index,f);return dg(a,b,c-e.index)}else{let -d=new -bo(null,b._start,0,f);return dg(a,d,c)}},dn=(f,m,c,d)=>{for(;c.right!==null&&(c.right.deleted===!0||c.right.content.constructor===o&&S(d.get(c.right.content.key),c.right.content.value));)c.right.deleted||d.delete(c.right.content.key),c.forward();let -j=f.doc,h=j.clientID;d.forEach((a,b)=>{let -d=c.left,e=c.right,l=new -i(g(h,k(j.store,h)),d,d&&d.lastId,e,e&&e.id,m,null,new -o(b,a));l.integrate(f,0),c.right=l,c.forward()})},ak=(a,b)=>{let{key:c,value:d}=b;d===null?a.delete(c):a.set(c,d)},dI=(a,b)=>{for(;a.right!==null;){if(!(a.right.deleted||a.right.content.constructor===o&&S(b[a.right.content.key]??null,a.right.content.value)))break;a.forward()}},dS=(a,b,c,d)=>{let -l=a.doc,j=l.clientID,h=new -Map;for(let -e -in -d){let -m=d[e],n=c.currentAttributes.get(e)??null;if(!S(n,m)){h.set(e,n);let{left:d,right:f}=c;c.right=new -i(g(j,k(l.store,j)),d,d&&d.lastId,f,f&&f.id,b,null,new -o(e,m)),c.right.integrate(a,0),c.forward()}}return h},bY=(a,b,c,d,e)=>{c.currentAttributes.forEach((a,b)=>{e[b]===void -0&&(e[b]=null)});let -m=a.doc,j=m.clientID;dI(c,e);let -o=dS(a,b,c,e),l=d.constructor===String?new -M(d):d -instanceof -r?new -H(d):new -ag(d),{left:h,right:f,index:n}=c;b._searchMarker&&aE(b._searchMarker,c.index,l.getLength()),f=new -i(g(j,k(m.store,j)),h,h&&h.lastId,f,f&&f.id,b,null,l),f.integrate(a,0),c.right=f,c.index=n,c.forward(),dn(a,b,c,o)},c$=(a,b,c,d,e)=>{let -j=a.doc,h=j.clientID;dI(c,e);let -f=dS(a,b,c,e);a:for(;c.right!==null&&(d>0||f.size>0&&(c.right.deleted||c.right.content.constructor===o));){if(!c.right.deleted)switch(c.right.content.constructor){case -o:{let{key:b,value:g}=c.right.content,h=e[b];if(h!==void -0){if(S(h,g))f.delete(b);else{if(d===0)break a;f.set(b,g)}c.right.delete(a)}else -c.currentAttributes.set(b,g);break}default:d0){let -e="";for(;d>0;d--)e+=` -`;c.right=new -i(g(h,k(j.store,h)),c.left,c.left&&c.left.lastId,c.right,c.right&&c.right.id,b,null,new -M(e)),c.right.integrate(a,0),c.forward()}dn(a,b,c,f)},dx=(a,b,c,d,e)=>{let -f=b,j=p();for(;f&&(!f.countable||f.deleted);){if(!f.deleted&&f.content.constructor===o){let -a=f.content;j.set(a.key,a)}f=f.right}let -k=0,h=!1;for(;b!==f;){if(c===b&&(h=!0),!b.deleted){let -f=b.content;switch(f.constructor){case -o:{let{key:c,value:i}=f,g=d.get(c)??null;(j.get(c)!==f||g===i)&&(b.delete(a),k++,!h&&(e.get(c)??null)===i&&g!==i&&(g===null?e.delete(c):e.set(c,g))),!h&&!b.deleted&&ak(e,f);break}}}b=b.right}return k},fd=(a,b)=>{for(;b&&b.right&&(b.right.deleted||!b.right.countable);)b=b.right;let -c=new -Set;for(;b&&(b.deleted||!b.countable);){if(!b.deleted&&b.content.constructor===o){let -d=b.content.key;c.has(d)?b.delete(a):c.add(d)}b=b.left}},dU=c=>{let -f=0;return h(c.doc,a=>{let -g=c._start,b=c._start,e=p(),d=bP(e);for(;b;){if(b.deleted===!1)switch(b.content.constructor){case -o:ak(d,b.content);break;default:f+=dx(a,g,b,e,d),e=bP(d),g=b;break}b=b.right}}),f},gQ=a=>{let -b=new -Set,c=a.doc;for(let[d,e]of -a.afterState.entries()){let -f=a.beforeState.get(d)||0;e!==f&&cm(a,c.store.clients.get(d),f,e,a=>{!a.deleted&&a.content.constructor===o&&a.constructor!==v&&b.add(a.parent)})}h(c,c=>{X(a,a.deleteSet,a=>{if(a -instanceof -v||!a.parent._hasFormatting||b.has(a.parent))return;let -d=a.parent;a.content.constructor===o?b.add(d):fd(c,a)});for(let -a -of -b)dU(a)})},d1=(a,b,c)=>{let -f=c,h=bP(b.currentAttributes),e=b.right;for(;c>0&&b.right!==null;){if(b.right.deleted===!1)switch(b.right.content.constructor){case -H:case -ag:case -M:c{a===null?this.childListChanged=!0:this.keysChanged.add(a)})}get -changes(){if(this._changes===null){let -a={keys:this.keys,delta:this.delta,added:new -Set,deleted:new -Set};this._changes=a}return this._changes}get -delta(){if(this._delta===null){let -a=this.target.doc,e=[];h(a,a=>{let -j=new -Map,k=new -Map,b=this.target._start,c=null,g={},f="",h=0,i=0,d=()=>{if(c!==null){let -d=null;switch(c){case"delete":i>0&&(d={delete:i}),i=0;break;case"insert":(typeof -f=="object"||f.length>0)&&(d={insert:f},j.size>0&&(d.attributes={},j.forEach((a,b)=>{a!==null&&(d.attributes[b]=a)}))),f="";break;case"retain":h>0&&(d={retain:h},ev(g)||(d.attributes=fc({},g))),h=0;break}d&&e.push(d),c=null}};for(;b!==null;){switch(b.content.constructor){case -H:case -ag:this.adds(b)?this.deletes(b)||(d(),c="insert",f=b.content.getContent()[0],d()):this.deletes(b)?(c!=="delete"&&(d(),c="delete"),i+=1):b.deleted||(c!=="retain"&&(d(),c="retain"),h+=1);break;case -M:this.adds(b)?this.deletes(b)||(c!=="insert"&&(d(),c="insert"),f+=b.content.str):this.deletes(b)?(c!=="delete"&&(d(),c="delete"),i+=b.length):b.deleted||(c!=="retain"&&(d(),c="retain"),h+=b.length);break;case -o:{let{key:e,value:f}=b.content;if(this.adds(b)){if(!this.deletes(b)){let -h=j.get(e)??null;S(h,f)?f!==null&&b.delete(a):(c==="retain"&&d(),S(f,k.get(e)??null)?delete -g[e]:g[e]=f)}}else if(this.deletes(b)){k.set(e,f);let -a=j.get(e)??null;S(a,f)||(c==="retain"&&d(),g[e]=a)}else if(!b.deleted){k.set(e,f);let -h=g[e];h!==void -0&&(S(h,f)?h!==null&&b.delete(a):(c==="retain"&&d(),f===null?delete -g[e]:g[e]=f))}b.deleted||(c==="insert"&&d(),ak(j,b.content));break}}b=b.right}for(d();e.length>0;){let -a=e[e.length-1];if(a.retain!==void -0&&a.attributes===void -0)e.pop();else -break}}),this._delta=e}return this._delta}},a4=class -ea -extends -r{constructor(a){super(),this._pending=a!==void -0?[()=>this.insert(0,a)]:[],this._searchMarker=[],this._hasFormatting=!1}get -length(){return this._length}_integrate(a,b){super._integrate(a,b);try{this._pending.forEach(a=>a())}catch(f){console.error(f)}this._pending=null}_copy(){return new -ea}clone(){let -a=new -ea;return a.applyDelta(this.toDelta()),a}_callObserver(a,b){super._callObserver(a,b);let -c=new -c1(this,a,b);aU(this,a,c),!a.local&&this._hasFormatting&&(a._needFormattingCleanup=!0)}toString(){let -b="",a=this._start;for(;a!==null;)!a.deleted&&a.countable&&a.content.constructor===M&&(b+=a.content.str),a=a.right;return b}toJSON(){return this.toString()}applyDelta(d,{sanitize:b=!0}={}){this.doc!==null?h(this.doc,a=>{let -e=new -bo(null,this._start,0,new -Map);for(let -f=0;f0)&&bY(a,this,e,g,c.attributes||{})}else -c.retain!==void -0?c$(a,this,e,c.retain,c.attributes||{}):c.delete!==void -0&&d1(a,e,c.delete)}}):this._pending.push(()=>this.applyDelta(d))}toDelta(e,b,c){let -f=[],d=new -Map,k=this.doc,i="",a=this._start;function -g(){if(i.length>0){let -c={},e=!1;d.forEach((a,b)=>{e=!0,c[b]=a});let -a={insert:i};e&&(a.attributes=c),f.push(a),i=""}}let -j=()=>{for(;a!==null;){if(V(a,e)||b!==void -0&&V(a,b))switch(a.content.constructor){case -M:{let -f=d.get("ychange");e!==void -0&&!V(a,e)?(f===void -0||f.user!==a.id.client||f.type!=="removed")&&(g(),d.set("ychange",c?c("removed",a.id):{type:"removed"})):b!==void -0&&!V(a,b)?(f===void -0||f.user!==a.id.client||f.type!=="added")&&(g(),d.set("ychange",c?c("added",a.id):{type:"added"})):f!==void -0&&(g(),d.delete("ychange")),i+=a.content.str;break}case -H:case -ag:{g();let -b={insert:a.content.getContent()[0]};if(d.size>0){let -c={};b.attributes=c,d.forEach((a,b)=>{c[b]=a})}f.push(b);break}case -o:V(a,e)&&(g(),ak(d,a.content));break}a=a.right}g()};return e||b?h(k,a=>{e&&bQ(a,e),b&&bQ(a,b),j()},"cleanup"):j(),f}insert(d,b,c){if(b.length<=0)return;let -a=this.doc;a!==null?h(a,a=>{let -e=bf(a,this,d,!c);c||(c={},e.currentAttributes.forEach((a,b)=>{c[b]=a})),bY(a,this,e,b,c)}):this._pending.push(()=>this.insert(d,b,c))}insertEmbed(d,b,c){let -a=this.doc;a!==null?h(a,a=>{let -e=bf(a,this,d,!c);bY(a,this,e,b,c||{})}):this._pending.push(()=>this.insertEmbed(d,b,c||{}))}delete(c,b){if(b===0)return;let -a=this.doc;a!==null?h(a,a=>{d1(a,bf(a,this,c,!0),b)}):this._pending.push(()=>this.delete(c,b))}format(d,b,c){if(b===0)return;let -a=this.doc;a!==null?h(a,a=>{let -e=bf(a,this,d,!1);e.right!==null&&c$(a,this,e,b,c)}):this._pending.push(()=>this.format(d,b,c))}removeAttribute(b){this.doc!==null?h(this.doc,a=>{a_(a,this,b)}):this._pending.push(()=>this.removeAttribute(b))}setAttribute(c,b){this.doc!==null?h(this.doc,a=>{bl(a,this,c,b)}):this._pending.push(()=>this.setAttribute(c,b))}getAttribute(a){return bW(this,a)}getAttributes(){return c9(this)}_write(a){a.writeTypeRef(gI)}},eQ=a=>new -a4,bu=class{constructor(a,b=()=>!0){this._filter=b,this._root=a,this._currentNode=a._start,this._firstCall=!0}[Symbol.iterator](){return this}next(){let -a=this._currentNode,b=a&&a.content&&a.content.type;if(a!==null&&(!this._firstCall||a.deleted||!this._filter(b)))do -if(b=a.content.type,!a.deleted&&(b.constructor===aC||b.constructor===az)&&b._start!==null)a=b._start;else -for(;a!==null;)if(a.right!==null){a=a.right;break}else -a.parent===this._root?a=null:a=a.parent._item;while(a!==null&&(a.deleted||!this._filter(a.content.type)));return this._firstCall=!1,a===null?{value:void -0,done:!0}:(this._currentNode=a,{value:a.content.type,done:!1})}},az=class -eb -extends -r{constructor(){super(),this._prelimContent=[]}get -firstChild(){let -a=this._first;return a?a.content.getContent()[0]:null}_integrate(a,b){super._integrate(a,b),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new -eb}clone(){let -a=new -eb;return a.insert(0,this.toArray().map(a=>a -instanceof -r?a.clone():a)),a}get -length(){return this._prelimContent===null?this._length:this._prelimContent.length}createTreeWalker(a){return new -bu(this,a)}querySelector(b){b=b.toUpperCase();let -a=new -bu(this,a=>a.nodeName&&a.nodeName.toUpperCase()===b).next();return a.done?null:a.value}querySelectorAll(b){return b=b.toUpperCase(),L(new -bu(this,a=>a.nodeName&&a.nodeName.toUpperCase()===b))}_callObserver(a,b){aU(this,a,new -cR(this,b,a))}toString(){return ct(this,a=>a.toString()).join("")}toJSON(){return this.toString()}toDOM(e=document,b={},c){let -d=e.createDocumentFragment();return c!==void -0&&c._createAssociation(d,this),aM(this,a=>{d.insertBefore(a.toDOM(e,b,c),null)}),d}insert(c,b){this.doc!==null?h(this.doc,a=>{ce(a,this,c,b)}):this._prelimContent.splice(c,0,...b)}insertAfter(c,b){if(this.doc!==null)h(this.doc,a=>{let -d=c&&c -instanceof -r?c._item:c;bg(a,this,d,b)});else{let -a=this._prelimContent,d=c===null?0:a.findIndex(a=>a===c)+1;if(d===0&&c!==null)throw E("Reference item not found");a.splice(d,0,...b)}}delete(c,b=1){this.doc!==null?h(this.doc,a=>{c4(a,this,c,b)}):this._prelimContent.splice(c,b)}toArray(){return d_(this)}push(a){this.insert(this.length,a)}unshift(a){this.insert(0,a)}get(a){return cD(this,a)}slice(a=0,b=this.length){return c7(this,a,b)}forEach(a){aM(this,a)}_write(a){a.writeTypeRef(f0)}},fB=a=>new -az,aC=class -ec -extends -az{constructor(a="UNDEFINED"){super(),this.nodeName=a,this._prelimAttrs=new -Map}get -nextSibling(){let -a=this._item?this._item.next:null;return a?a.content.type:null}get -prevSibling(){let -a=this._item?this._item.prev:null;return a?a.content.type:null}_integrate(a,b){super._integrate(a,b),this._prelimAttrs.forEach((a,b)=>{this.setAttribute(b,a)}),this._prelimAttrs=null}_copy(){return new -ec(this.nodeName)}clone(){let -c=new -ec(this.nodeName),a=this.getAttributes();return e_(a,(a,b)=>{typeof -a=="string"&&c.setAttribute(b,a)}),c.insert(0,this.toArray().map(a=>a -instanceof -r?a.clone():a)),c}toString(){let -d=this.getAttributes(),b=[],a=[];for(let -b -in -d)a.push(b);a.sort();let -f=a.length;for(let -c=0;c0?" "+b.join(" "):"";return`<${c}${e}>${super.toString()}`}removeAttribute(b){this.doc!==null?h(this.doc,a=>{a_(a,this,b)}):this._prelimAttrs.delete(b)}setAttribute(c,b){this.doc!==null?h(this.doc,a=>{bl(a,this,c,b)}):this._prelimAttrs.set(c,b)}getAttribute(a){return bW(this,a)}hasAttribute(a){return cN(this,a)}getAttributes(a){return a?dX(this,a):c9(this)}toDOM(e=document,b={},c){let -d=e.createElement(this.nodeName),a=this.getAttributes();for(let -b -in -a){let -c=a[b];typeof -c=="string"&&d.setAttribute(b,c)}return aM(this,a=>{d.appendChild(a.toDOM(e,b,c))}),c!==void -0&&c._createAssociation(d,this),d}_write(a){a.writeTypeRef(fT),a.writeKey(this.nodeName)}},fI=a=>new -aC(a.readKey()),cR=class -extends -au{constructor(a,b,c){super(a,c),this.childListChanged=!1,this.attributesChanged=new -Set,b.forEach(a=>{a===null?this.childListChanged=!0:this.attributesChanged.add(a)})}},bK=class -ed -extends -aD{constructor(a){super(),this.hookName=a}_copy(){return new -ed(this.hookName)}clone(){let -c=new -ed(this.hookName);return this.forEach((a,b)=>{c.set(b,a)}),c}toDOM(a=document,b={},c){let -e=b[this.hookName],d;return e!==void -0?d=e.createDom(this):d=document.createElement(this.hookName),d.setAttribute("data-yjs-hook",this.hookName),c!==void -0&&c._createAssociation(d,this),d}_write(a){a.writeTypeRef(gx),a.writeKey(this.hookName)}},hs=a=>new -bK(a.readKey()),cn=class -ee -extends -a4{get -nextSibling(){let -a=this._item?this._item.next:null;return a?a.content.type:null}get -prevSibling(){let -a=this._item?this._item.prev:null;return a?a.content.type:null}_copy(){return new -ee}clone(){let -a=new -ee;return a.applyDelta(this.toDelta()),a}toDOM(a=document,b,c){let -d=a.createTextNode(this.toString());return c!==void -0&&c._createAssociation(d,this),d}toString(){return this.toDelta().map(a=>{let -b=[];for(let -c -in -a.attributes){let -d=[];for(let -b -in -a.attributes[c])d.push({key:b,value:a.attributes[c][b]});d.sort((a,b)=>a.keya.nodeName=0;a--)c+=``;return c}).join("")}toJSON(){return this.toString()}_write(a){a.writeTypeRef(gj)}},eO=a=>new -cn,a6=class{constructor(a,b){this.id=a,this.length=b}get -deleted(){throw G()}mergeWith(a){return!1}write(a,b,c){throw G()}integrate(a,b){throw G()}},e2=0,v=class -extends -a6{get -deleted(){return!0}delete(){}mergeWith(a){return this.constructor!==a.constructor?!1:(this.length+=a.length,!0)}integrate(a,b){b>0&&(this.id.clock+=b,this.length-=b),cQ(a.doc.store,this)}write(a,b){a.writeInfo(e2),a.writeLen(this.length-b)}getMissing(a,b){return null}},as=class -hw{constructor(a){this.content=a}getLength(){return 1}getContent(){return[this.content]}isCountable(){return!0}copy(){return new -hw(this.content)}splice(a){throw G()}mergeWith(a){return!1}integrate(a,b){}delete(a){}gc(a){}write(a,b){a.writeBuf(this.content)}getRef(){return 3}},eY=a=>new -as(a.readBuf()),a$=class -ef{constructor(a){this.len=a}getLength(){return this.len}getContent(){return[]}isCountable(){return!1}copy(){return new -ef(this.len)}splice(a){let -b=new -ef(this.len-a);return this.len=a,b}mergeWith(a){return this.len+=a.len,!0}integrate(a,b){at(a.deleteSet,b.id.client,b.id.clock,this.len),b.markDeleted()}delete(a){}gc(a){}write(a,b){a.writeLen(this.len-b)}getRef(){return 1}},em=a=>new -a$(a.readLen()),dL=(a,b)=>new -aG({guid:a,...b,shouldLoad:b.shouldLoad||b.autoLoad||!1}),aA=class -hx{constructor(a){a._item&&console.error("This document was already integrated as a sub-document. You should create a second instance instead with the same guid."),this.doc=a;let -b={};this.opts=b,a.gc||(b.gc=!1),a.autoLoad&&(b.autoLoad=!0),a.meta!==null&&(b.meta=a.meta)}getLength(){return 1}getContent(){return[this.doc]}isCountable(){return!0}copy(){return new -hx(dL(this.doc.guid,this.opts))}splice(a){throw G()}mergeWith(a){return!1}integrate(a,b){this.doc._item=b,a.subdocsAdded.add(this.doc),this.doc.shouldLoad&&a.subdocsLoaded.add(this.doc)}delete(a){a.subdocsAdded.has(this.doc)?a.subdocsAdded.delete(this.doc):a.subdocsRemoved.add(this.doc)}gc(a){}write(a,b){a.writeString(this.doc.guid),a.writeAny(this.opts)}getRef(){return 9}},fF=a=>new -aA(dL(a.readString(),a.readAny())),ag=class -hy{constructor(a){this.embed=a}getLength(){return 1}getContent(){return[this.embed]}isCountable(){return!0}copy(){return new -hy(this.embed)}splice(a){throw G()}mergeWith(a){return!1}integrate(a,b){}delete(a){}gc(a){}write(a,b){a.writeJSON(this.embed)}getRef(){return 5}},fM=a=>new -ag(a.readJSON()),o=class -hz{constructor(a,b){this.key=a,this.value=b}getLength(){return 1}getContent(){return[]}isCountable(){return!1}copy(){return new -hz(this.key,this.value)}splice(a){throw G()}mergeWith(a){return!1}integrate(a,b){let -c=b.parent;c._searchMarker=null,c._hasFormatting=!0}delete(a){}gc(a){}write(a,b){a.writeKey(this.key),a.writeJSON(this.value)}getRef(){return 6}},fh=a=>new -o(a.readKey(),a.readJSON()),bN=class -eg{constructor(a){this.arr=a}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new -eg(this.arr)}splice(a){let -b=new -eg(this.arr.slice(a));return this.arr=this.arr.slice(0,a),b}mergeWith(a){return this.arr=this.arr.concat(a.arr),!0}integrate(a,b){}delete(a){}gc(a){}write(a,b){let -d=this.arr.length;a.writeLen(d-b);for(let -c=b;c{let -d=a.readLen(),b=[];for(let -c=0;c{let -d=a.readLen(),b=[];for(let -c=0;c=55296&&c<=56319&&(this.str=this.str.slice(0,a-1)+"\uFFFD",b.str="\uFFFD"+b.str.slice(1)),b}mergeWith(a){return this.str+=a.str,!0}integrate(a,b){}delete(a){}gc(a){}write(a,b){a.writeString(b===0?this.str:this.str.slice(b))}getRef(){return 4}},gF=a=>new -M(a.readString()),gT=[eJ,gs,eQ,fI,fB,hs,eO],gn=0,gY=1,gI=2,fT=3,f0=4,gx=5,gj=6,H=class -hA{constructor(a){this.type=a}getLength(){return 1}getContent(){return[this.type]}isCountable(){return!0}copy(){return new -hA(this.type._copy())}splice(a){throw G()}mergeWith(a){return!1}integrate(a,b){this.type._integrate(a.doc,b)}delete(b){let -a=this.type._start;for(;a!==null;)a.deleted?a.id.clock<(b.beforeState.get(a.id.client)||0)&&b._mergeStructs.push(a):a.delete(b),a=a.right;this.type._map.forEach(a=>{a.deleted?a.id.clock<(b.beforeState.get(a.id.client)||0)&&b._mergeStructs.push(a):a.delete(b)}),b.changed.delete(this.type)}gc(b){let -a=this.type._start;for(;a!==null;)a.gc(b,!0),a=a.right;this.type._start=null,this.type._map.forEach(a=>{for(;a!==null;)a.gc(b,!0),a=a.left}),this.type._map=new -Map}write(a,b){this.type._write(a)}getRef(){return 7}},f4=a=>new -H(gT[a.readTypeRef()](a)),b$=(a,b)=>{let -c=b,e=0,d;do -e>0&&(c=g(c.client,c.clock+e)),d=af(a,c),e=c.clock-d.id.clock,c=d.redone;while(c!==null&&d -instanceof -i);return{item:d,diff:e}},by=(a,b)=>{for(;a!==null&&a.keep!==b;)a.keep=b,a=a.parent._item},aR=(a,b,c)=>{let{client:e,clock:f}=b.id,d=new -i(g(e,f+c),b,g(e,f+c-1),b.right,b.rightOrigin,b.parent,b.parentSub,b.content.splice(c));return b.deleted&&d.markDeleted(),b.keep&&(d.keep=!0),b.redone!==null&&(d.redone=g(b.redone.client,b.redone.clock+c)),b.right=d,d.right!==null&&(d.right.left=d),a._mergeStructs.push(d),d.parentSub!==null&&d.right===null&&d.parent._map.set(d.parentSub,d),b.length=c,d},co=(a,b)=>f6(a,a=>ab(a.deletions,b)),db=(a,b,c,d,e,f)=>{let -o=a.doc,s=o.store,p=o.clientID,q=b.redone;if(q!==null)return t(a,q);let -j=b.parent._item,h=null,l;if(j!==null&&j.deleted===!0){if(j.redone===null&&(!c.has(j)||db(a,j,c,d,e,f)===null))return null;for(;j.redone!==null;)j=t(a,j.redone)}let -r=j===null?b.parent:j.content.type;if(b.parentSub===null){for(h=b.left,l=b;h!==null;){let -b=h;for(;b!==null&&b.parent._item!==j;)b=b.redone===null?null:t(a,b.redone);if(b!==null&&b.parent._item===j){h=b;break}h=h.left}for(;l!==null;){let -b=l;for(;b!==null&&b.parent._item!==j;)b=b.redone===null?null:t(a,b.redone);if(b!==null&&b.parent._item===j){l=b;break}l=l.right}}else if(l=null,b.right&&!e){for(h=b;h!==null&&h.right!==null&&(h.right.redone||ab(d,h.right.id)||co(f.undoStack,h.right.id)||co(f.redoStack,h.right.id));)for(h=h.right;h.redone;)h=t(a,h.redone);if(h&&h.right!==null)return null}else -h=r._map.get(b.parentSub)||null;let -u=k(s,p),n=g(p,u),m=new -i(n,h,h&&h.lastId,l,l&&l.id,r,b.parentSub,b.content.copy());return b.redone=n,by(m,!0),m.integrate(a,0),m},i=class -ej -extends -a6{constructor(a,b,c,d,e,f,g,h){super(a,h.getLength()),this.origin=c,this.left=b,this.right=d,this.rightOrigin=e,this.parent=f,this.parentSub=g,this.redone=null,this.content=h,this.info=this.content.isCountable()?2:0}set -marker(a){(this.info&8)>0!==a&&(this.info^=8)}get -marker(){return(this.info&8)>0}get -keep(){return(this.info&1)>0}set -keep(a){this.keep!==a&&(this.info^=1)}get -countable(){return(this.info&2)>0}get -deleted(){return(this.info&4)>0}set -deleted(a){this.deleted!==a&&(this.info^=4)}markDeleted(){this.info|=4}getMissing(a,b){if(this.origin&&this.origin.client!==this.id.client&&this.origin.clock>=k(b,this.origin.client))return this.origin.client;if(this.rightOrigin&&this.rightOrigin.client!==this.id.client&&this.rightOrigin.clock>=k(b,this.rightOrigin.client))return this.rightOrigin.client;if(this.parent&&this.parent.constructor===ad&&this.id.client!==this.parent.client&&this.parent.clock>=k(b,this.parent.client))return this.parent.client;if(this.origin&&(this.left=dq(a,b,this.origin),this.origin=this.left.lastId),this.rightOrigin&&(this.right=t(a,this.rightOrigin),this.rightOrigin=this.right.id),this.left&&this.left.constructor===v||this.right&&this.right.constructor===v)this.parent=null;else if(!this.parent)this.left&&this.left.constructor===ej&&(this.parent=this.left.parent,this.parentSub=this.left.parentSub),this.right&&this.right.constructor===ej&&(this.parent=this.right.parent,this.parentSub=this.right.parentSub);else if(this.parent.constructor===ad){let -a=af(b,this.parent);a.constructor===v?this.parent=null:this.parent=a.content.type}return null}integrate(a,b){if(b>0&&(this.id.clock+=b,this.left=dq(a,a.doc.store,g(this.id.client,this.id.clock-1)),this.origin=this.left.lastId,this.content=this.content.splice(b),this.length-=b),this.parent){if(!this.left&&(!this.right||this.right.left!==null)||this.left&&this.left.right!==this.right){let -c=this.left,b;if(c!==null)b=c.right;else if(this.parentSub!==null)for(b=this.parent._map.get(this.parentSub)||null;b!==null&&b.left!==null;)b=b.left;else -b=this.parent._start;let -d=new -Set,e=new -Set;for(;b!==null&&b!==this.right;){if(e.add(b),d.add(b),ah(this.origin,b.origin)){if(b.id.client{a.p===b&&(a.p=this,!this.deleted&&this.countable&&(a.index-=this.length))}),b.keep&&(this.keep=!0),this.right=b.right,this.right!==null&&(this.right.left=this),this.length+=b.length,!0}return!1}delete(a){if(!this.deleted){let -b=this.parent;this.countable&&this.parentSub===null&&(b._length-=this.length),this.markDeleted(),at(a.deleteSet,this.id.client,this.id.clock,this.length),ds(a,b,this.parentSub),this.content.delete(a)}}gc(a,b){if(!this.deleted)throw u();this.content.gc(a),b?fY(a,this,new -v(this.id,this.length)):this.content=new -a$(this.length)}write(a,b){let -c=b>0?g(this.id.client,this.id.clock+b-1):this.origin,d=this.rightOrigin,e=this.parentSub,f=this.content.getRef()&31|(c===null?0:128)|(d===null?0:64)|(e===null?0:32);if(a.writeInfo(f),c!==null&&a.writeLeftID(c),d!==null&&a.writeRightID(d),c===null&&d===null){let -b=this.parent;if(b._item!==void -0){let -c=b._item;if(c===null){let -c=bt(b);a.writeParentInfo(!0),a.writeString(c)}else -a.writeParentInfo(!1),a.writeLeftID(c.id)}else -b.constructor===String?(a.writeParentInfo(!0),a.writeString(b)):b.constructor===ad?(a.writeParentInfo(!1),a.writeLeftID(b)):u();e!==null&&a.writeString(e)}this.content.write(a,b)}},di=(a,b)=>g8[b&31](a),g8=[()=>{u()},em,g2,eY,gF,fM,fh,f4,f8,fF,()=>{u()}],gb=10,s=class -extends -a6{get -deleted(){return!0}delete(){}mergeWith(a){return this.constructor!==a.constructor?!1:(this.length+=a.length,!0)}integrate(a,b){u()}write(a,b){a.writeInfo(gb),e(a.restEncoder,this.length-b)}getMissing(a,b){return null}},dE=typeof -y<"u"?y:typeof -window<"u"?window:typeof -global<"u"?global:{},dt="__ $YJS$ __";dE[dt]===!0&&console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438");dE[dt]=!0;var -gM=1200,gg=2500,a0=3e4,b3=b=>{if(b.shouldConnect&&b.ws===null){let -a=new -WebSocket(b.url),d=b.binaryType,c=null;d&&(a.binaryType=d),b.ws=a,b.connecting=!0,b.connected=!1,a.onmessage=a=>{b.lastMessageReceived=J();let -e=a.data,d=typeof -e=="string"?JSON.parse(e):e;d&&d.type==="pong"&&(clearTimeout(c),c=setTimeout(f,a0/2)),b.emit("message",[d,b])};let -e=a=>{b.ws!==null&&(b.ws=null,b.connecting=!1,b.connected?(b.connected=!1,b.emit("disconnect",[{type:"disconnect",error:a},b])):b.unsuccessfulReconnects++,setTimeout(b3,ca(gd(b.unsuccessfulReconnects+1)*gM,gg),b)),clearTimeout(c)},f=()=>{b.ws===a&&b.send({type:"ping"})};a.onclose=()=>e(null),a.onerror=a=>e(a),a.onopen=()=>{b.lastMessageReceived=J(),b.connecting=!1,b.connected=!0,b.unsuccessfulReconnects=0,b.emit("connect",[{type:"connect"},b]),c=setTimeout(f,a0/2)}}},eK=class -extends -b6{constructor(a,{binaryType:b}={}){super(),this.url=a,this.ws=null,this.binaryType=b||null,this.connected=!1,this.connecting=!1,this.unsuccessfulReconnects=0,this.lastMessageReceived=0,this.shouldConnect=!0,this._checkInterval=setInterval(()=>{this.connected&&a0a.key===b&&this.onmessage!==null&&this.onmessage({data:dm(a.newValue||"")}),fv(this._onChange)}postMessage(a){de.setItem(this.room,dw(eR(a)))}close(){fl(this._onChange)}},hn=typeof -BroadcastChannel>"u"?eP:BroadcastChannel,bJ=a=>q(dl,a,()=>{let -c=P(),b=new -hn(a);return b.onmessage=b=>c.forEach(a=>a(b.data,"broadcastchannel")),{bc:b,subs:c}}),g6=(a,b)=>(bJ(a).subs.add(b),b),f$=(a,b)=>{let -c=bJ(a),d=c.subs.delete(b);return d&&c.subs.size===0&&(c.bc.close(),dl.delete(a)),d},gK=(a,b,c=null)=>{let -d=bJ(a);d.bc.postMessage(b),d.subs.forEach(a=>a(b,c))},ge=()=>{let -c=!0;return(a,b)=>{if(c){c=!1;try{a()}finally{c=!0}}else -b!==void -0&&b()}},eo=fK(hl(),1),bX=0,bz=1,d3=2,d9=(a,b)=>{e(a,bX);let -c=cJ(b);l(a,c)},cs=(a,b,c)=>{e(a,bz),l(a,a7(b,c))},fW=(a,b,c)=>cs(b,c,d(a)),df=(a,b,c)=>{try{cb(b,d(a),c)}catch(f){console.error("Caught error while handling a Yjs update",f)}},fO=(a,b)=>{e(a,d3),l(a,b)},fQ=df,g$=(a,b,c,d)=>{let -e=f(a);switch(e){case -bX:fW(a,b,c);break;case -bz:df(a,c,d);break;case -d3:fQ(a,c,d);break;default:throw new -Error("Unknown message type")}return e},bs=3e4,gR=class -extends -b6{constructor(a){super(),this.doc=a,this.clientID=a.clientID,this.states=new -Map,this.meta=new -Map,this._checkInterval=setInterval(()=>{let -d=J();this.getLocalState()!==null&&bs/2<=d-this.meta.get(this.clientID).lastUpdated&&this.setLocalState(this.getLocalState());let -c=[];this.meta.forEach((a,b)=>{b!==this.clientID&&bs<=d-a.lastUpdated&&this.states.has(b)&&c.push(b)}),c.length>0&&bp(this,c,"timeout")},I(bs/10)),a.on("destroy",()=>{this.destroy()}),this.setLocalState({})}destroy(){this.emit("destroy",[this]),this.setLocalState(null),super.destroy(),clearInterval(this._checkInterval)}getLocalState(){return this.states.get(this.clientID)||null}setLocalState(a){let -b=this.clientID,h=this.meta.get(b),i=h===void -0?0:h.clock+1,g=this.states.get(b);a===null?this.states.delete(b):this.states.set(b,a),this.meta.set(b,{clock:i,lastUpdated:J()});let -c=[],f=[],e=[],d=[];a===null?d.push(b):g==null?a!=null&&c.push(b):(f.push(b),aJ(g,a)||e.push(b)),(c.length>0||e.length>0||d.length>0)&&this.emit("change",[{added:c,updated:e,removed:d},"local"]),this.emit("update",[{added:c,updated:f,removed:d},"local"])}setLocalStateField(a,b){let -c=this.getLocalState();c!==null&&this.setLocalState({...c,[a]:b})}getStates(){return this.states}},bp=(a,b,c)=>{let -d=[];for(let -e=0;e0&&(a.emit("change",[{added:[],updated:[],removed:d},c]),a.emit("update",[{added:[],updated:[],removed:d},c]))},aS=(a,b,c=a.states)=>{let -g=b.length,d=n();e(d,g);for(let -f=0;f{let -g=m(b),n=J(),e=[],j=[],k=[],d=[],h=f(g);for(let -b=0;b0||k.length>0||d.length>0)&&a.emit("change",[{added:e,updated:k,removed:d},c]),(e.length>0||j.length>0||d.length>0)&&a.emit("update",[{added:e,updated:j,removed:d},c])},fm=(a,b)=>{let -c=bR(a).buffer,d=bR(b).buffer;return crypto.subtle.importKey("raw",c,"PBKDF2",!1,["deriveKey"]).then(a=>crypto.subtle.deriveKey({name:"PBKDF2",salt:d,iterations:1e5,hash:"SHA-256"},a,{name:"AES-GCM",length:256},!0,["encrypt","decrypt"]))},cA=(a,b)=>{if(!b)return bF(a);let -c=crypto.getRandomValues(new -Uint8Array(12));return crypto.subtle.encrypt({name:"AES-GCM",iv:c},b,a).then(a=>{let -b=n();return D(b,"AES-GCM"),l(b,c),l(b,new -Uint8Array(a)),j(b)})},ew=(a,b)=>{let -c=n();return an(c,a),cA(j(c),b)},cd=(a,b)=>{if(!b)return bF(a);let -c=m(a);K(c)!=="AES-GCM"&&es(E("Unknown encryption algorithm"));let -f=d(c),e=d(c);return crypto.subtle.decrypt({name:"AES-GCM",iv:f},b,e).then(a=>new -Uint8Array(a))},hg=(a,b)=>cd(a,b).then(a=>aj(m(new -Uint8Array(a)))),x=g4("y-webrtc"),aq=0,cV=3,ar=1,b0=4,a1=new -Map,Z=new -Map,cZ=a=>{let -b=!0;a.webrtcConns.forEach(a=>{a.synced||(b=!1)}),(!b&&a.synced||b&&!a.synced)&&(a.synced=b,a.provider.emit("synced",[{synced:b}]),x("synced ",B,a.name,ac," with all peers"))},cP=(a,b,c)=>{let -h=m(b),g=n(),o=f(h);if(a===void -0)return null;let -i=a.awareness,k=a.doc,j=!1;switch(o){case -aq:{e(g,aq);let -b=g$(h,g,k,a);b===bz&&!a.synced&&c(),b===bX&&(j=!0);break}case -cV:e(g,ar),l(g,aS(i,Array.from(i.getStates().keys()))),j=!0;break;case -ar:eE(i,d(h),a);break;case -b0:{let -c=W(h)===1,b=K(h);if(b!==a.peerId&&(a.bcConns.has(b)&&!c||!a.bcConns.has(b)&&c)){let -d=[],e=[];c?(a.bcConns.add(b),e.push(b)):(a.bcConns.delete(b),d.push(b)),a.provider.emit("peers",[{added:e,removed:d,webrtcPeers:Array.from(a.webrtcConns.keys()),bcPeers:Array.from(a.bcConns)}]),cl(a)}break}default:return console.error("Unable to compute message"),g}return j?g:null},ey=(a,b)=>{let -c=a.room;return x("received message from ",B,a.remotePeerId,b4," (",c.name,")",ac,aO),cP(c,b,()=>{a.synced=!0,x("synced ",B,c.name,ac," with ",B,a.remotePeerId),cZ(c)})},bM=(a,b)=>{x("send message to ",B,a.remotePeerId,ac,b4," (",a.room.name,")",aO);try{a.peer.send(j(b))}catch{}},hi=(a,b)=>{x("broadcast message in ",B,a.name,ac),a.webrtcConns.forEach(a=>{try{a.peer.send(b)}catch{}})},c8=class{constructor(f,b,c,d){x("establishing connection to ",B,c),this.room=d,this.remotePeerId=c,this.glareToken=void -0,this.closed=!1,this.connected=!1,this.synced=!1,this.peer=new -eo.default({initiator:b,...d.provider.peerOpts}),this.peer.on("signal",a=>{this.glareToken===void -0&&(this.glareToken=Date.now()+Math.random()),b5(f,d,{to:c,from:d.peerId,type:"signal",token:this.glareToken,signal:a})}),this.peer.on("connect",()=>{x("connected to ",B,c),this.connected=!0;let -g=d.provider.doc,b=d.awareness,a=n();e(a,aq),d9(a,g),bM(this,a);let -f=b.getStates();if(f.size>0){let -a=n();e(a,ar),l(a,aS(b,Array.from(f.keys()))),bM(this,a)}}),this.peer.on("close",()=>{this.connected=!1,this.closed=!0,d.webrtcConns.has(this.remotePeerId)&&(d.webrtcConns.delete(this.remotePeerId),d.provider.emit("peers",[{removed:[this.remotePeerId],added:[],webrtcPeers:Array.from(d.webrtcConns.keys()),bcPeers:Array.from(d.bcConns)}])),cZ(d),this.peer.destroy(),x("closed connection to ",B,c),bA(d)}),this.peer.on("error",a=>{x("Error in connection to ",B,c,": ",a),bA(d)}),this.peer.on("data",a=>{let -b=ey(this,a);b!==null&&bM(this,b)})}destroy(){this.peer.destroy()}},T=(c,b)=>cA(b,c.key).then(a=>c.mux(()=>gK(c.name,a))),dC=(a,b)=>{a.bcconnected&&T(a,b),hi(a,b)},bA=b=>{a1.forEach(a=>{a.connected&&(a.send({type:"subscribe",topics:[b.name]}),b.webrtcConns.size{if(a.provider.filterBcConns){let -b=n();e(b,b0),_(b,1),D(b,a.peerId),T(a,j(b))}},g5=class{constructor(a,b,c,d){this.peerId=dV(),this.doc=a,this.awareness=b.awareness,this.provider=b,this.synced=!1,this.name=c,this.key=d,this.webrtcConns=new -Map,this.bcConns=new -Set,this.mux=ge(),this.bcconnected=!1,this._bcSubscriber=a=>cd(new -Uint8Array(a),d).then(a=>this.mux(()=>{let -b=cP(this,a,()=>{});b&&T(this,j(b))})),this._docUpdateHandler=(a,b)=>{let -c=n();e(c,aq),fO(c,a),dC(this,j(c))},this._awarenessUpdateHandler=({added:a,updated:b,removed:c},d)=>{let -g=a.concat(b).concat(c),f=n();e(f,ar),l(f,aS(this.awareness,g)),dC(this,j(f))},this._beforeUnloadHandler=()=>{bp(this.awareness,[a.clientID],"window unload"),Z.forEach(a=>{a.disconnect()})},typeof -window<"u"?window.addEventListener("beforeunload",this._beforeUnloadHandler):typeof -process<"u"&&process.on("exit",this._beforeUnloadHandler)}connect(){this.doc.on("update",this._docUpdateHandler),this.awareness.on("update",this._awarenessUpdateHandler),bA(this);let -f=this.name;g6(f,this._bcSubscriber),this.bcconnected=!0,cl(this);let -a=n();e(a,aq),d9(a,this.doc),T(this,j(a));let -c=n();e(c,aq),cs(c,this.doc),T(this,j(c));let -d=n();e(d,cV),T(this,j(d));let -b=n();e(b,ar),l(b,aS(this.awareness,[this.doc.clientID])),T(this,j(b))}disconnect(){a1.forEach(a=>{a.connected&&a.send({type:"unsubscribe",topics:[this.name]})}),bp(this.awareness,[this.doc.clientID],"disconnect");let -a=n();e(a,b0),_(a,0),D(a,this.peerId),T(this,j(a)),f$(this.name,this._bcSubscriber),this.bcconnected=!1,this.doc.off("update",this._docUpdateHandler),this.awareness.off("update",this._awarenessUpdateHandler),this.webrtcConns.forEach(a=>a.destroy())}destroy(){this.disconnect(),typeof -window<"u"?window.removeEventListener("beforeunload",this._beforeUnloadHandler):typeof -process<"u"&&process.off("exit",this._beforeUnloadHandler)}},gu=(a,b,c,d)=>{if(Z.has(c))throw E(`A Yjs Doc connected to room "${c}" already exists!`);let -e=new -g5(a,b,c,d);return Z.set(c,e),e},b5=(d,b,c)=>{b.key?ew(c,b.key).then(a=>{d.send({type:"publish",topic:b.name,data:dw(a)})}):d.send({type:"publish",topic:b.name,data:c})},f_=class -extends -eK{constructor(a){super(a),this.providers=new -Set,this.on("connect",()=>{x(`connected (${a})`);let -b=Array.from(Z.keys());this.send({type:"subscribe",topics:b}),Z.forEach(a=>b5(this,a,{type:"announce",from:a.peerId}))}),this.on("message",a=>{switch(a.type){case"publish":{let -d=a.topic,b=Z.get(d);if(b==null||typeof -d!="string")return;let -c=a=>{let -c=b.webrtcConns,d=b.peerId;if(a==null||a.from===d||a.to!==void -0&&a.to!==d||b.bcConns.has(a.from))return;let -e=c.has(a.from)?()=>{}:()=>b.provider.emit("peers",[{removed:[],added:[a.from],webrtcPeers:Array.from(b.webrtcConns.keys()),bcPeers:Array.from(b.bcConns)}]);switch(a.type){case"announce":c.sizenew -c8(this,!0,a.from,b)),e());break;case"signal":if(a.signal.type==="offer"){let -b=c.get(a.from);if(b){let -d=a.token,c=b.glareToken;if(c&&c>d){x("offer rejected: ",a.from);return}b.glareToken=void -0}}if(a.signal.type==="answer"){x("offer answered by: ",a.from);let -b=c.get(a.from);b.glareToken=void -0}a.to===d&&(q(c,a.from,()=>new -c8(this,!1,a.from,b)).peer.signal(a.signal),e());break}};b.key?typeof -a.data=="string"&&hg(dm(a.data),b.key).then(c):c(a.data)}}}),this.on("disconnect",()=>x(`disconnect (${a})`))}},bO=a=>{a.emit("status",[{connected:a.connected}])},ht=class -extends -a8{constructor(i,b,{signaling:c=["wss://y-webrtc-eu.fly.dev"],password:d=null,awareness:e=new -gR(b),maxConns:f=20+I(hk()*15),filterBcConns:g=!0,peerOpts:h={}}={}){super(),this.roomName=i,this.doc=b,this.filterBcConns=g,this.awareness=e,this.shouldConnect=!1,this.signalingUrls=c,this.signalingConns=[],this.maxConns=f,this.peerOpts=h,this.key=d?fm(d,i):bF(null),this.room=null,this.key.then(a=>{this.room=gu(b,this,i,a),this.shouldConnect?this.room.connect():this.room.disconnect(),bO(this)}),this.connect(),this.destroy=this.destroy.bind(this),b.on("destroy",this.destroy)}get -connected(){return this.room!==null&&this.shouldConnect}connect(){this.shouldConnect=!0,this.signalingUrls.forEach(a=>{let -b=q(a1,a,()=>new -f_(a));this.signalingConns.push(b),b.providers.add(this)}),this.room&&(this.room.connect(),bO(this))}disconnect(){this.shouldConnect=!1,this.signalingConns.forEach(a=>{a.providers.delete(this),a.providers.size===0&&(a.destroy(),a1.delete(a.url))}),this.room&&(this.room.disconnect(),bO(this))}destroy(){this.doc.off("destroy",this.destroy),this.key.then(()=>{this.room.destroy(),Z.delete(this.roomName)}),super.destroy()}},ae=a=>ai((c,b)=>{a.onerror=a=>b(new -Error(a.target.error)),a.onsuccess=a=>c(a.target.result)}),eS=(a,d)=>ai((e,b)=>{let -c=indexedDB.open(a);c.onupgradeneeded=a=>d(a.target.result),c.onerror=a=>b(E(a.target.error)),c.onsuccess=a=>{let -b=a.target.result;b.onversionchange=()=>{b.close()},e(b)}}),e$=a=>ae(indexedDB.deleteDatabase(a)),e4=(c,b)=>b.forEach(a=>c.createObjectStore.apply(c,a)),aK=(a,b,c="readwrite")=>{let -d=a.transaction(b,c);return b.map(a=>fj(d,a))},dz=(a,b)=>ae(a.count(b)),e8=(a,b)=>ae(a.get(b)),dW=(a,b)=>ae(a.delete(b)),et=(a,b,c)=>ae(a.put(b,c)),bn=(a,b)=>ae(a.add(b)),e6=(a,b,c)=>ae(a.getAll(b,c)),eq=(a,b,c)=>{let -d=null;return ft(a,b,a=>(d=a,!1),c).then(()=>d)},fw=(a,b=null)=>eq(a,b,"prev"),fq=(a,c)=>ai((d,b)=>{a.onerror=b,a.onsuccess=async a=>{let -b=a.target.result;if(b===null||await -c(b)===!1)return d();b.continue()}}),ft=(a,b,c,d="next")=>fq(a.openKeyCursor(b,d),a=>c(a.key)),fj=(a,b)=>a.objectStore(b),eH=(a,b)=>IDBKeyRange.upperBound(a,b),gq=(a,b)=>IDBKeyRange.lowerBound(a,b),b2="custom",cL="updates",dP=500,cv=(d,b=()=>{},c=()=>{})=>{let[e]=aK(d.db,[cL]);return e6(e,gq(d._dbref,!1)).then(a=>{d._destroyed||(b(e),h(d.doc,()=>{a.forEach(a=>cb(d.doc,a))},d,!1),c(e))}).then(()=>fw(e).then(a=>{d._dbref=a+1})).then(()=>dz(e).then(a=>{d._dbsize=a})).then(()=>e)},eU=(c,b=!0)=>cv(c).then(a=>{(b||c._dbsize>=dP)&&bn(a,a7(c.doc)).then(()=>dW(a,eH(c._dbref,!0))).then(()=>dz(a).then(a=>{c._dbsize=a}))}),e3=class -extends -b6{constructor(a,b){super(),this.doc=b,this.name=a,this._dbref=0,this._dbsize=0,this._destroyed=!1,this.db=null,this.synced=!1,this._db=eS(a,a=>e4(a,[["updates",{autoIncrement:!0}],["custom"]])),this.whenSynced=ai(a=>this.on("synced",()=>a(this))),this._db.then(a=>{this.db=a,cv(this,a=>bn(a,a7(b)),()=>{if(this._destroyed)return this;this.synced=!0,this.emit("synced",[this])})}),this._storeTimeout=1e3,this._storeTimeoutId=null,this._storeUpdate=(a,b)=>{if(this.db&&b!==this){let[b]=aK(this.db,[cL]);bn(b,a),++this._dbsize>=dP&&(this._storeTimeoutId!==null&&clearTimeout(this._storeTimeoutId),this._storeTimeoutId=setTimeout(()=>{eU(this,!1),this._storeTimeoutId=null},this._storeTimeout))}},b.on("update",this._storeUpdate),this.destroy=this.destroy.bind(this),b.on("destroy",this.destroy)}destroy(){return this._storeTimeoutId&&clearTimeout(this._storeTimeoutId),this.doc.off("update",this._storeUpdate),this.doc.off("destroy",this.destroy),this._destroyed=!0,this._db.then(a=>{a.close()})}clearData(){return this.destroy().then(()=>{e$(this.name)})}get(b){return this._db.then(a=>{let[c]=aK(a,[b2],"readonly");return e8(c,b)})}set(c,b){return this._db.then(a=>{let[d]=aK(a,[b2]);return et(d,b,c)})}del(b){return this._db.then(a=>{let[c]=aK(a,[b2]);return dW(c,b)})}};window.yjs=cC;window.WebrtcProvider=ht;window.IndexeddbPersistence=e3})()}(globalThis));(function(p){"use strict";var -v=3850876,aC=" ",ae="0",fU="compare: functional value",fT="mkdir",cq=1000,jx="delete",Y="vendor/lwd/lib/lwd/lwd_seq.pp.ml",kk="@[",kj="window",kG="console",dI="int_of_string",fB="fs",j3="%u",ki="/static/",jw="%i",kF="%ni",aV=0xff,fS=749039939,kh="Assert_failure",aE=737455525,j1=423,j2="camlinternalMod.ml",jv="0x",j0=0x7ff0,fZ=218,ju=0xdfff,jZ="End_of_file",kg="OCAMLRUNPARAM",jt=": closedir failed",kf=253,kE="Out_of_memory",js="Not_found",fY="Failure",dH="Unix.Unix_error",jr="style",jY="^",jX="text",kD="length",fM="ENOTDIR",ke="Lwd_seq.rank: node is marked",jq="%Li",jo="flex",jp="Invalid_argument",dz=254,bS="+",dB="Set.bal",kC=", characters ",aT=0xffffff,jW=858694086,kd=120,kc=1027,cp=1024,dG="Map.bal",ba=246,jV="Pervasives.do_at_exit",kb=389604418,jU=65536,jn="submit",c="vendor/brr_lwd_ui/examples/yjs/main.ml",fL=0xf,S=16620,jm=", ",dy=512,fK=-588596599,kA="Match_failure",kB="closedir",jk="%li",jl=1026,kz=-32,jj="b",fA="nan",e="",fz="rmdir",fR="Fatal error: exception ",jT="infinity",K="camlinternalFormat.ml",jS="fd ",kx="append",ky=": ",ji=174,q=248,jR="em",jQ="data",kw=0xe0,ka=24029,jP=0xf0,jO="Sys_error",ao=0x80,fJ="vendor/brr_lwd_ui/bindings/yjs/doc.ml",j$="ENOTEMPTY",kv="EEXIST",fQ=1255,jN=1073741823,dx="value",fy=" : flags Open_text and Open_binary are not compatible",ku="px",fI="e",fx=": Not a directory",fH="ENOENT",j_="Stack_overflow",fG=-605101559,R=15681,jM="Array",kt="Undefined_recursive_module",ks=2147483647,aD=0x8000,co="string",dA="table",jL=0x800,j9=-48,jg="error",jh=" : is a directory",jJ="@{",jK="Division_by_zero",jf="classList",a$=".",jI="(Program not linked with -g, cannot print stack backtrace)\n",cm="name",bb=0x3f,a_=737456202,fF=" : file already exists",bs=128,dF=": No such file or directory",jG="vendor/lwd/lib/brr-lwd/elwd.ml",jH=255,dw="lwd-to-remove",cr=256,je="checked",cn=-976970511,fE=100,jF="id",fw="index out of bounds",j8=-937474657,aF="/",fv=504440814,dv=252,kr="height: ",jd="lwdui-virtual-table-row",fu="%d",kq=383,jc=": file descriptor already closed",br="-",ft="EBADF",jE="changes",aU=951901561,jD=102,fD=-97,kp="Printexc.handle_uncaught_exception",jb=12520,fX=" : flags Open_rdonly and Open_wronly are not compatible",a="vendor/lwd/lib/lwd/lwd_table.ml",fP=756711075,j7="Fatal error: exception %s\n",fC=4100401,ko="class",ja="\xe2\x9d\x8c",aB=250,jC=199,dE="bool",fV=82908052,fW="kind",kn=">",jB="([^/]+)",j6="input",fO="jsError",i$=103,du='"',aG=0xffff,dD=127,fN=737308346,i_=0xdc00,jA="documentElement",km="Sys_blocked_io",b="vendor/lwd/lib/lwd/lwd.ml",j5="not implemented",i9="buffer.ml",jz="Form submitted:",kl="_",fs="target",jy=-101336657,j4="rem",dC="_bigarr02";function -yS(a,b,c,d,e){if(d<=b)for(var -f=1;f<=e;f++)c[d+f]=a[b+f];else -for(var -f=e;f>=1;f--)c[d+f]=a[b+f];return 0}function -yT(a,b,c){var -d=new -Array(c+1);d[0]=0;for(var -e=1,f=b+1;e<=c;e++,f++)d[e]=a[f];return d}function -cA(a,b,c){var -d=String.fromCharCode;if(b==0&&c<=4096&&c==a.length)return d.apply(null,a);var -f=e;for(;0=c.l||c.t==2&&e>=c.c.length)){c.c=a.t==4?cA(a.c,b,e):b==0&&a.c.length==e?a.c:a.c.substr(b,e);c.t=c.c.length==c.l?0:2}else if(c.t==2&&d==c.c.length){c.c+=a.t==4?cA(a.c,b,e):b==0&&a.c.length==e?a.c:a.c.substr(b,e);c.t=c.c.length==c.l?0:2}else{if(c.t!=4)dM(c);var -g=a.c,h=c.c;if(a.t==4)if(d<=b)for(var -f=0;f=0;f--)h[d+f]=g[b+f];else{var -i=Math.min(e,g.length-b);for(var -f=0;f>=1;if(a==0)return d;b+=b;c++;if(c==9)b.slice(0,1)}}function -cv(a){if(a.t==2)a.c+=bX(a.l-a.c.length,"\0");else -a.c=cA(a.c,0,a.c.length);a.t=0}function -gj(a){if(a.length<24){for(var -b=0;bdD)return false;return true}else -return!/[^\x00-\x7f]/.test(a)}function -la(a){for(var -k=e,d=e,h,g,i,b,c=0,j=a.length;cdy){d.substr(0,1);k+=d;d=e;k+=a.slice(c,f)}else -d+=a.slice(c,f);if(f==j)break;c=f}b=1;if(++c=0xd7ff&&b<0xe000)b=2}else{b=3;if(++c0x10ffff)b=3}}}}}if(b<4){c-=b;d+="\ufffd"}else if(b>aG)d+=String.fromCharCode(0xd7c0+(b>>10),i_+(b&0x3FF));else -d+=String.fromCharCode(b);if(d.length>cp){d.substr(0,1);k+=d;d=e}}return k+d}function -aW(a,b,c){this.t=a;this.c=b;this.l=c}aW.prototype.toString=function(){switch(this.t){case -9:return this.c;default:cv(this);case -0:if(gj(this.c)){this.t=9;return this.c}this.t=8;case -8:return this.c}};aW.prototype.toUtf16=function(){var -a=this.toString();if(this.t==9)return a;return la(a)};aW.prototype.slice=function(){var -a=this.t==4?this.c.slice():this.c;return new -aW(this.t,a,this.l)};function -kO(a){return new -aW(0,a,a.length)}function -aH(a){return a}function -bd(a){return kO(aH(a))}function -cu(a,b,c,d,e){aX(bd(a),b,c,d,e);return 0}function -lc(a){var -b=p.process;if(b&&b.env&&b.env[a]!=undefined)return b.env[a];if(p.jsoo_static_env&&p.jsoo_static_env[a])return p.jsoo_static_env[a]}var -gg=0;(function(){var -c=lc(kg);if(c!==undefined){var -b=c.split(",");for(var -a=0;a=a.c.length)return 0;case -0:return a.c.charCodeAt(b);case -4:return a.c[b]}}function -yY(a,b){if(b>>>0>=a.l)f1();return bU(a,b)}function -A(a,b,c){c&=aV;if(a.t!=4){if(b==a.c.length){a.c+=String.fromCharCode(c);if(b+1==a.l)a.t=0;return 0}dM(a)}a.c[b]=c;return 0}function -aY(a,b,c){if(b>>>0>=a.l)f1();return A(a,b,c)}function -bu(a){return a.toArray()}function -yZ(a,b,c){if(b>>>0>=a.l-7)f1();var -e=bu(c);for(var -d=0;d<8;d++)A(a,b+7-d,e[d]);return 0}function -be(d,c){var -f=d.l>=0?d.l:d.l=d.length,e=c.length,b=f-e;if(b==0)return d.apply(null,c);else if(b<0){var -a=d.apply(null,c.slice(0,f));if(typeof -a!=="function")return a;return be(a,c.slice(f))}else{switch(b){case -1:{var -a=function(a){var -f=new -Array(e+1);for(var -b=0;b>>0>=a.length-1)ct();return a}function -y0(a){if(isFinite(a)){if(Math.abs(a)>=2.2250738585072014e-308)return 0;if(a!=0)return 1;return 2}return isNaN(a)?4:3}function -k0(a){return 0}var -zW=Math.log2&&Math.log2(1.1235582092889474E+307)==1020;function -zV(a){if(zW)return Math.floor(Math.log2(a));var -b=0;if(a==0)return-Infinity;if(a>=1)while(a>=2){a/=2;b++}else -while(a<1){a*=2;b--}return b}function -f8(a){var -b=new -Float32Array(1);b[0]=a;var -c=new -Int32Array(b.buffer);return c[0]|0}var -kV=Math.pow(2,-24);function -k6(a){throw a}function -gf(){k6(T.Division_by_zero)}function -d(a,b,c){this.lo=a&aT;this.mi=b&aT;this.hi=c&aG}d.prototype.caml_custom="_j";d.prototype.copy=function(){return new -d(this.lo,this.mi,this.hi)};d.prototype.ucompare=function(a){if(this.hi>a.hi)return 1;if(this.hia.mi)return 1;if(this.mia.lo)return 1;if(this.loc)return 1;if(ba.mi)return 1;if(this.mia.lo)return 1;if(this.lo>24),c=-this.hi+(b>>24);return new -d(a,b,c)};d.prototype.add=function(a){var -b=this.lo+a.lo,c=this.mi+a.mi+(b>>24),e=this.hi+a.hi+(c>>24);return new -d(b,c,e)};d.prototype.sub=function(a){var -b=this.lo-a.lo,c=this.mi-a.mi+(b>>24),e=this.hi-a.hi+(c>>24);return new -d(b,c,e)};d.prototype.mul=function(a){var -b=this.lo*a.lo,c=(b*kV|0)+this.mi*a.lo+this.lo*a.mi,e=(c*kV|0)+this.hi*a.lo+this.mi*a.mi+this.lo*a.hi;return new -d(b,c,e)};d.prototype.isZero=function(){return(this.lo|this.mi|this.hi)==0};d.prototype.isNeg=function(){return this.hi<<16<0};d.prototype.and=function(a){return new -d(this.lo&a.lo,this.mi&a.mi,this.hi&a.hi)};d.prototype.or=function(a){return new -d(this.lo|a.lo,this.mi|a.mi,this.hi|a.hi)};d.prototype.xor=function(a){return new -d(this.lo^a.lo,this.mi^a.mi,this.hi^a.hi)};d.prototype.shift_left=function(a){a=a&63;if(a==0)return this;if(a<24)return new -d(this.lo<>24-a,this.hi<>24-a);if(a<48)return new -d(0,this.lo<>48-a);return new -d(0,0,this.lo<>a|this.mi<<24-a,this.mi>>a|this.hi<<24-a,this.hi>>a);if(a<48)return new -d(this.mi>>a-24|this.hi<<48-a,this.hi>>a-24,0);return new -d(this.hi>>a-48,0,0)};d.prototype.shift_right=function(a){a=a&63;if(a==0)return this;var -c=this.hi<<16>>16;if(a<24)return new -d(this.lo>>a|this.mi<<24-a,this.mi>>a|c<<24-a,this.hi<<16>>a>>>16);var -b=this.hi<<16>>31;if(a<48)return new -d(this.mi>>a-24|this.hi<<48-a,this.hi<<16>>a-24>>16,b&aG);return new -d(this.hi<<16>>a-32,b,b)};d.prototype.lsl1=function(){this.hi=this.hi<<1|this.mi>>23;this.mi=(this.mi<<1|this.lo>>23)&aT;this.lo=this.lo<<1&aT};d.prototype.lsr1=function(){this.lo=(this.lo>>>1|this.mi<<23)&aT;this.mi=(this.mi>>>1|this.hi<<23)&aT;this.hi=this.hi>>>1};d.prototype.udivmod=function(a){var -e=0,c=this.copy(),b=a.copy(),f=new -d(0,0,0);while(c.ucompare(b)>0){e++;b.lsl1()}while(e>=0){e--;f.lsl1();if(c.ucompare(b)>=0){f.lo++;c=c.sub(b)}b.lsr1()}return{quotient:f,modulus:c}};d.prototype.div=function(a){var -b=this;if(a.isZero())gf();var -d=b.hi^a.hi;if(b.hi&aD)b=b.neg();if(a.hi&aD)a=a.neg();var -c=b.udivmod(a).quotient;if(d&aD)c=c.neg();return c};d.prototype.mod=function(a){var -b=this;if(a.isZero())gf();var -d=b.hi;if(b.hi&aD)b=b.neg();if(a.hi&aD)a=a.neg();var -c=b.udivmod(a).modulus;if(d&aD)c=c.neg();return c};d.prototype.toInt=function(){return this.lo|this.mi<<24};d.prototype.toFloat=function(){return(this.hi<<16)*Math.pow(2,32)+this.mi*Math.pow(2,24)+this.lo};d.prototype.toArray=function(){return[this.hi>>8,this.hi&aV,this.mi>>16,this.mi>>8&aV,this.mi&aV,this.lo>>16,this.lo>>8&aV,this.lo&aV]};d.prototype.lo32=function(){return this.lo|(this.mi&aV)<<24};d.prototype.hi32=function(){return this.mi>>>8&aG|this.hi<<16};function -dP(a,b,c){return new -d(a,b,c)}function -dO(a){if(!isFinite(a)){if(isNaN(a))return dP(1,0,j0);return a>0?dP(0,0,j0):dP(0,0,0xfff0)}var -f=a==0&&1/a==-Infinity?aD:a>=0?0:aD;if(f)a=-a;var -b=zV(a)+1023;if(b<=0){b=0;a/=Math.pow(2,-jl)}else{a/=Math.pow(2,b-kc);if(a<16){a*=2;b-=1}if(b==0)a/=2}var -d=Math.pow(2,24),c=a|0;a=(a-c)*d;var -e=a|0;a=(a-e)*d;var -g=a|0;c=c&fL|f|b<<4;return dP(g,e,c)}function -kN(a,b,c){a.write(32,b.dims.length);a.write(32,b.kind|b.layout<<8);if(b.caml_custom==dC)for(var -d=0;d>4;if(d==2047)return(f|g|c&fL)==0?c&aD?-Infinity:Infinity:NaN;var -e=Math.pow(2,-24),b=(f*e+g)*e+(c&fL);if(d>0){b+=16;b*=Math.pow(2,d-kc)}else -b*=Math.pow(2,-jl);if(c&aD)b=-b;return b}function -f0(a){var -d=a.length,c=1;for(var -b=0;b>>24&aV|(b&aG)<<8,b>>>16&aG)}function -f$(a){return a.hi32()}function -ga(a){return a.lo32()}var -yV=dC;function -bc(a,b,c,d){this.kind=a;this.layout=b;this.dims=c;this.data=d}bc.prototype.caml_custom=yV;bc.prototype.offset=function(a){var -c=0;if(typeof -a==="number")a=[a];if(!(a -instanceof -Array))F("bigarray.js: invalid offset");if(this.dims.length!=a.length)F("Bigarray.get/set: bad number of dimensions");if(this.layout==0)for(var -b=0;b=this.dims[b])ct();c=c*this.dims[b]+a[b]}else -for(var -b=this.dims.length-1;b>=0;b--){if(a[b]<1||a[b]>this.dims[b])ct();c=c*this.dims[b]+(a[b]-1)}return c};bc.prototype.get=function(a){switch(this.kind){case -7:var -d=this.data[a*2+0],b=this.data[a*2+1];return zh(d,b);case -10:case -11:var -e=this.data[a*2+0],c=this.data[a*2+1];return[dz,e,c];default:return this.data[a]}};bc.prototype.set=function(a,b){switch(this.kind){case -7:this.data[a*2+0]=ga(b);this.data[a*2+1]=f$(b);break;case -10:case -11:this.data[a*2+0]=b[1];this.data[a*2+1]=b[2];break;default:this.data[a]=b;break}return 0};bc.prototype.fill=function(a){switch(this.kind){case -7:var -c=ga(a),e=f$(a);if(c==e)this.data.fill(c);else -for(var -b=0;be)return 1;if(d!=e){if(!b)return NaN;if(d==d)return 1;if(e==e)return-1}}break;case -7:for(var -c=0;ca.data[c+1])return 1;if(this.data[c]>>>0>>0)return-1;if(this.data[c]>>>0>a.data[c]>>>0)return 1}break;case -2:case -3:case -4:case -5:case -6:case -8:case -9:case -12:for(var -c=0;ca.data[c])return 1}break}return 0};function -bT(a,b,c,d){this.kind=a;this.layout=b;this.dims=c;this.data=d}bT.prototype=new -bc();bT.prototype.offset=function(a){if(typeof -a!=="number")if(a -instanceof -Array&&a.length==1)a=a[0];else -F("Ml_Bigarray_c_1_1.offset");if(a<0||a>=this.dims[0])ct();return a};bT.prototype.get=function(a){return this.data[a]};bT.prototype.set=function(a,b){this.data[a]=b;return 0};bT.prototype.fill=function(a){this.data.fill(a);return 0};function -kJ(a,b,c,d){var -e=kL(a);if(f0(c)*e!=d.length)F("length doesn't match dims");if(b==0&&c.length==1&&e==1)return new -bT(a,b,c,d);return new -bc(a,b,c,d)}function -aj(a){if(!T.Failure)T.Failure=[q,ak(fY),-3];ge(T.Failure,a)}function -kK(a,b,c){var -k=a.read32s();if(k<0||k>16)aj("input_value: wrong number of bigarray dimensions");var -r=a.read32s(),l=r&aV,q=r>>8&1,j=[];if(c==dC)for(var -d=0;d>>32-15;b=cy(b,0x1b873593);a^=b;a=a<<13|a>>>32-13;return(a+(a<<2)|0)+(0xe6546b64|0)|0}function -zb(a,b){a=U(a,ga(b));a=U(a,f$(b));return a}function -f6(a,b){return zb(a,dO(b))}function -kM(a){var -c=f0(a.dims),d=0;switch(a.kind){case -2:case -3:case -12:if(c>cr)c=cr;var -e=0,b=0;for(b=0;b+4<=a.data.length;b+=4){e=a.data[b+0]|a.data[b+1]<<8|a.data[b+2]<<16|a.data[b+3]<<24;d=U(d,e)}e=0;switch(c&3){case -3:e=a.data[b+2]<<16;case -2:e|=a.data[b+1]<<8;case -1:e|=a.data[b+0];d=U(d,e)}break;case -4:case -5:if(c>bs)c=bs;var -e=0,b=0;for(b=0;b+2<=a.data.length;b+=2){e=a.data[b+0]|a.data[b+1]<<16;d=U(d,e)}if((c&1)!=0)d=U(d,a.data[b]);break;case -6:if(c>64)c=64;for(var -b=0;b64)c=64;for(var -b=0;b32)c=32;c*=2;for(var -b=0;b64)c=64;for(var -b=0;b32)c=32;for(var -b=0;b0?f(b,a,d):f(a,b,d);if(d&&e!=e)return c;if(+e!=+e)return+e;if((e|0)!=0)return e|0}return c}function -dS(a){return typeof -a==="string"&&!/[^\x00-\xff]/.test(a)}function -dR(a){return a -instanceof -aW}function -kQ(a){if(typeof -a==="number")return cq;else if(dR(a))return dv;else if(dS(a))return 1252;else if(a -instanceof -Array&&a[0]===a[0]>>>0&&a[0]<=jH){var -b=a[0]|0;return b==dz?0:b}else if(a -instanceof -String)return jb;else if(typeof -a=="string")return jb;else if(a -instanceof -Number)return cq;else if(a&&a.caml_custom)return fQ;else if(a&&a.compare)return 1256;else if(typeof -a=="function")return 1247;else if(typeof -a=="symbol")return 1251;return 1001}function -kY(a,b){if(ab?1:0}function -yX(a,b){a.t&6&&cv(a);b.t&6&&cv(b);return a.cb.c?1:0}function -dL(a,b,c){var -f=[];for(;;){if(!(c&&a===b)){var -e=kQ(a);if(e==aB){a=a[1];continue}var -g=kQ(b);if(g==aB){b=b[1];continue}if(e!==g){if(e==cq){if(g==fQ)return kP(a,b,-1,c);return-1}if(g==cq){if(e==fQ)return kP(b,a,1,c);return 1}return eb)return 1;if(a!=b){if(!c)return NaN;if(a==a)return 1;if(b==b)return-1}break;case -1001:if(ab)return 1;if(a!=b){if(!c)return NaN;if(a==a)return 1;if(b==b)return-1}break;case -1251:if(a!==b){if(!c)return NaN;return 1}break;case -1252:var -a=aH(a),b=aH(b);if(a!==b){if(ab)return 1}break;case -12520:var -a=a.toString(),b=b.toString();if(a!==b){if(ab)return 1}break;case -246:case -254:default:if(k0(e)){F("compare: continuation value");break}if(a.length!=b.length)return a.length1)f.push(a,b,1);break}}if(f.length==0)return 0;var -h=f.pop();b=f.pop();a=f.pop();if(h+10)if(b==0&&(c>=a.l||a.t==2&&c>=a.c.length))if(d==0){a.c=e;a.t=2}else{a.c=bX(c,String.fromCharCode(d));a.t=c==a.l?0:2}else{if(a.t!=4)dM(a);for(c+=b;b0&&b===b)return b;a=a.replace(/_/g,e);b=+a;if(a.length>0&&b===b||/^[+-]?nan$/i.test(a))return b;var -c=/^ *([+-]?)0x([0-9a-f]+)\.?([0-9a-f]*)(p([+-]?[0-9]+))?/i.exec(a);if(c){var -d=c[3].replace(/0+$/,e),g=parseInt(c[1]+c[2]+d,16),f=(c[5]|0)-4*d.length;b=g*Math.pow(2,f);return b}if(/^\+?inf(inity)?$/i.test(a))return Infinity;if(/^-inf(inity)?$/i.test(a))return-Infinity;aj("float_of_string")}function -gd(a){a=aH(a);var -e=a.length;if(e>31)F("format_int: format too long");var -b={justify:bS,signstyle:br,filler:aC,alternate:false,base:0,signedconv:false,width:0,uppercase:false,sign:1,prec:-1,conv:"f"};for(var -d=0;d=0&&c<=9){b.width=b.width*10+c;d++}d--;break;case".":b.prec=0;d++;while(c=a.charCodeAt(d)-48,c>=0&&c<=9){b.prec=b.prec*10+c;d++}d--;case"d":case"i":b.signedconv=true;case"u":b.base=10;break;case"x":b.base=16;break;case"X":b.base=16;b.uppercase=true;break;case"o":b.base=8;break;case"e":case"f":case"g":b.signedconv=true;b.conv=c;break;case"E":case"F":case"G":b.signedconv=true;b.uppercase=true;b.conv=c.toLowerCase();break}}return b}function -f4(a,b){if(a.uppercase)b=b.toUpperCase();var -f=b.length;if(a.signedconv&&(a.sign<0||a.signstyle!=br))f++;if(a.alternate){if(a.base==8)f+=1;if(a.base==16)f+=2}var -c=e;if(a.justify==bS&&a.filler==aC)for(var -d=f;d20){c-=20;a/=Math.pow(10,c);a+=new -Array(c+1).join(ae);if(b>0)a=a+a$+new -Array(b+1).join(ae);return a}else -return a.toFixed(b)}}var -c,f=gd(a),e=f.prec<0?6:f.prec;if(b<0||b==0&&1/b==-Infinity){f.sign=-1;b=-b}if(isNaN(b)){c=fA;f.filler=aC}else if(!isFinite(b)){c="inf";f.filler=aC}else -switch(f.conv){case"e":var -c=b.toExponential(e),d=c.length;if(c.charAt(d-3)==fI)c=c.slice(0,d-1)+ae+c.slice(d-1);break;case"f":c=j(b,e);break;case"g":e=e?e:1;c=b.toExponential(e-1);var -i=c.indexOf(fI),h=+c.slice(i+1);if(h<-4||b>=1e21||b.toFixed(0).length>e){var -d=i-1;while(c.charAt(d)==ae)d--;if(c.charAt(d)==a$)d--;c=c.slice(0,d+1)+c.slice(i);d=c.length;if(c.charAt(d-3)==fI)c=c.slice(0,d-1)+ae+c.slice(d-1);break}else{var -g=e;if(h<0){g-=h+1;c=b.toFixed(g)}else -while(c=b.toFixed(g),c.length>e+1)g--;if(g){var -d=c.length-1;while(c.charAt(d)==ae)d--;if(c.charAt(d)==a$)d--;c=c.slice(0,d+1)}}break}return f4(f,c)}function -dN(a,b){if(aH(a)==fu)return ak(e+b);var -c=gd(a);if(b<0)if(c.signedconv){c.sign=-1;b=-b}else -b>>>=0;var -d=b.toString(c.base);if(c.prec>=0){c.filler=aC;var -f=c.prec-d.length;if(f>0)d=bX(f,ae)+d}return f4(c,d)}var -zK=0;function -af(){return zK++}function -G(a){if(gj(a))return a;return la(a)}function -cB(){return typeof -p.process!=="undefined"&&typeof -p.process.versions!=="undefined"&&typeof -p.process.versions.node!=="undefined"}function -zX(){function -a(a){if(a.charAt(0)===aF)return[e,a.substring(1)];return}function -b(a){var -h=/^([a-zA-Z]:|[\\/]{2}[^\\/]+[\\/]+[^\\/]+)?([\\/])?([\s\S]*?)$/,b=h.exec(a),c=b[1]||e,f=Boolean(c&&c.charAt(1)!==":");if(Boolean(b[2]||f)){var -d=b[1]||e,g=b[2]||e;return[d,a.substring(d.length+g.length)]}return}return cB()&&p.process&&p.process.platform?p.process.platform==="win32"?b:a:a}var -gk=zX();function -k_(a){return a.slice(-1)!==aF?a+aF:a}if(cB()&&p.process&&p.process.cwd)var -cw=p.process.cwd().replace(/\\/g,aF);else -var -cw="/static";cw=k_(cw);function -zx(a){a=G(a);if(!gk(a))a=cw+a;var -e=gk(a),d=e[1].split(aF),b=[];for(var -c=0;c1)b.pop();break;case".":break;case"":break;default:b.push(d[c]);break}b.unshift(e[0]);b.orig=a;return b}function -zU(a){for(var -g=e,c=g,b,i,d=0,h=a.length;ddy){c.substr(0,1);g+=c;c=e;g+=a.slice(d,f)}else -c+=a.slice(d,f);if(f==h)break;d=f}if(b>6);c+=String.fromCharCode(ao|b&bb)}else if(b<0xd800||b>=ju)c+=String.fromCharCode(kw|b>>12,ao|b>>6&bb,ao|b&bb);else if(b>=0xdbff||d+1==h||(i=a.charCodeAt(d+1))ju)c+="\xef\xbf\xbd";else{d++;b=(b<<10)+i-0x35fdc00;c+=String.fromCharCode(jP|b>>18,ao|b>>12&bb,ao|b>>6&bb,ao|b&bb)}if(c.length>cp){c.substr(0,1);g+=c;c=e}}return g+c}function -as(a){return gj(a)?ak(a):ak(zU(a))}var -zY=["E2BIG","EACCES","EAGAIN",ft,"EBUSY","ECHILD","EDEADLK","EDOM",kv,"EFAULT","EFBIG","EINTR","EINVAL","EIO","EISDIR","EMFILE","EMLINK","ENAMETOOLONG","ENFILE","ENODEV",fH,"ENOEXEC","ENOLCK","ENOMEM","ENOSPC","ENOSYS",fM,j$,"ENOTTY","ENXIO","EPERM","EPIPE","ERANGE","EROFS","ESPIPE","ESRCH","EXDEV","EWOULDBLOCK","EINPROGRESS","EALREADY","ENOTSOCK","EDESTADDRREQ","EMSGSIZE","EPROTOTYPE","ENOPROTOOPT","EPROTONOSUPPORT","ESOCKTNOSUPPORT","EOPNOTSUPP","EPFNOSUPPORT","EAFNOSUPPORT","EADDRINUSE","EADDRNOTAVAIL","ENETDOWN","ENETUNREACH","ENETRESET","ECONNABORTED","ECONNRESET","ENOBUFS","EISCONN","ENOTCONN","ESHUTDOWN","ETOOMANYREFS","ETIMEDOUT","ECONNREFUSED","EHOSTDOWN","EHOSTUNREACH","ELOOP","EOVERFLOW"];function -a0(a,b,c,d){var -f=zY.indexOf(a);if(f<0){if(d==null)d=-9999;f=[0,d]}var -g=[f,as(b||e),as(c||e)];return g}var -k4={};function -bg(a){return k4[a]}function -aZ(a,b){throw g([0,a].concat(b))}function -f2(a){if(!(a -instanceof -Uint8Array))a=new -Uint8Array(a);return new -aW(4,a,a.length)}function -m(a){ge(T.Sys_error,a)}function -k7(a){m(a+dF)}function -gi(a){if(a.t!=4)dM(a);return a.c}function -aq(a){return a.l}function -kH(){}function -Z(a){this.data=a}Z.prototype=new -kH();Z.prototype.constructor=Z;Z.prototype.truncate=function(a){var -b=this.data;this.data=E(a|0);aX(b,0,this.data,0,a)};Z.prototype.length=function(){return aq(this.data)};Z.prototype.write=function(a,b,c,d){var -e=this.length();if(a+d>=e){var -f=E(a+d),g=this.data;this.data=f;aX(g,0,this.data,0,e)}aX(f2(b),c,this.data,a,d);return 0};Z.prototype.read=function(a,b,c,d){var -e=this.length();if(a+d>=e)d=e-a;if(d){var -f=E(d|0);aX(this.data,a,f,0,d);b.set(gi(f),c)}return d};function -bt(a,b,c){this.file=b;this.name=a;this.flags=c}bt.prototype.err_closed=function(){m(this.name+jc)};bt.prototype.length=function(){if(this.file)return this.file.length();this.err_closed()};bt.prototype.write=function(a,b,c,d){if(this.file)return this.file.write(a,b,c,d);this.err_closed()};bt.prototype.read=function(a,b,c,d){if(this.file)return this.file.read(a,b,c,d);this.err_closed()};bt.prototype.close=function(){this.file=undefined};function -N(a,b){this.content={};this.root=a;this.lookupFun=b}N.prototype.nm=function(a){return this.root+a};N.prototype.create_dir_if_needed=function(a){var -d=a.split(aF),c=e;for(var -b=0;b>>16;a=cy(a,0x85ebca6b|0);a^=a>>>13;a=cy(a,0xc2b2ae35|0);a^=a>>>16;return a}function -y9(a,b,c,d){var -j,k,l,h,g,f,e,i,m;h=b;if(h<0||h>cr)h=cr;g=a;f=c;j=[d];k=0;l=1;while(k0){e=j[k++];if(e&&e.caml_custom){if(cx[e.caml_custom]&&cx[e.caml_custom].hash){var -n=cx[e.caml_custom].hash(e);f=U(f,n);g--}}else if(e -instanceof -Array&&e[0]===(e[0]|0))switch(e[0]){case -248:f=U(f,e[2]);g--;break;case -250:j[--k]=e[1];break;default:if(k0(e[0]))break;var -o=e.length-1<<10|e[0];f=U(f,o);for(i=1,m=e.length;i=h)break;j[l++]=e[i]}break}else if(dR(e)){f=y_(f,e);g--}else if(dS(e)){f=zc(f,e);g--}else if(typeof -e==="string"){f=f7(f,e);g--}else if(e===(e|0)){f=U(f,e+e+1);g--}else if(typeof -e==="number"){f=f6(f,e);g--}}f=za(f);return f&0x3FFFFFFF}function -zd(a,b,c){if(!isFinite(a)){if(isNaN(a))return as(fA);return as(a>0?jT:"-infinity")}var -k=a==0&&1/a==-Infinity?1:a>=0?0:1;if(k)a=-a;var -f=0;if(a==0);else if(a<1)while(a<1&&f>-1022){a*=2;f--}else -while(a>=2){a/=2;f++}var -l=f<0?e:bS,g=e;if(k)g=br;else -switch(c){case -43:g=bS;break;case -32:g=aC;break;default:break}if(b>=0&&b<13){var -i=Math.pow(2,b*4);a=Math.round(a*i)/i}var -d=a.toString(16);if(b>=0){var -j=d.indexOf(a$);if(j<0)d+=a$+bX(b,ae);else{var -h=j+1+b;if(d.length>24&aT,a>>31&aG)}function -zo(a){return a.toInt()}function -zk(a){return+a.isNeg()}function -zn(a){return a.neg()}function -zi(a,b){var -c=gd(a);if(c.signedconv&&zk(b)){c.sign=-1;b=zn(b)}var -d=e,i=dQ(c.base),h="0123456789abcdef";do{var -g=b.udivmod(i);b=g.quotient;d=h.charAt(zo(g.modulus))+d}while(!zl(b));if(c.prec>=0){c.filler=aC;var -f=c.prec-d.length;if(f>0)d=bX(f,ae)+d}return f4(c,d)}function -kW(a,b){return a.or(b)}function -kX(a,b){return a.shift_left(b)}function -gb(a,b){return a.shift_right_unsigned(b)}function -zL(a){var -b=0,e=n(a),c=10,d=1;if(e>0)switch($(a,b)){case -45:b++;d=-1;break;case -43:b++;d=1;break}if(b+1=48&&a<=57)return a-48;if(a>=65&&a<=90)return a-55;if(a>=97&&a<=122)return a-87;return-1}function -kZ(a){var -h=zL(a),d=h[0],i=h[1],e=h[2],g=n(a),j=-1>>>0,f=d=e)aj(dI);var -b=c;for(d++;d=e)break;b=e*b+c;if(b>j)aj(dI)}if(d!=g)aj(dI);b=i*b;if(e==10&&(b|0)!=b)aj(dI);return b|0}function -zr(a){return a.slice(1)}function -dT(a,b,c){return a[G(b)].apply(a,zr(c))}function -zs(a){var -c={};for(var -b=1;b>>32-e,c)}function -g(a,b,c,d,e,f,g){return l(b&c|~b&d,a,b,e,f,g)}function -h(a,b,c,d,e,f,g){return l(b&d|c&~d,a,b,e,f,g)}function -i(a,b,c,d,e,f,g){return l(b^c^d,a,b,e,f,g)}function -j(a,b,c,d,e,f,g){return l(c^(b|~d),a,b,e,f,g)}return function(a,b){var -c=a[0],d=a[1],e=a[2],f=a[3];c=g(c,d,e,f,b[0],7,0xD76AA478);f=g(f,c,d,e,b[1],12,0xE8C7B756);e=g(e,f,c,d,b[2],17,0x242070DB);d=g(d,e,f,c,b[3],22,0xC1BDCEEE);c=g(c,d,e,f,b[4],7,0xF57C0FAF);f=g(f,c,d,e,b[5],12,0x4787C62A);e=g(e,f,c,d,b[6],17,0xA8304613);d=g(d,e,f,c,b[7],22,0xFD469501);c=g(c,d,e,f,b[8],7,0x698098D8);f=g(f,c,d,e,b[9],12,0x8B44F7AF);e=g(e,f,c,d,b[10],17,0xFFFF5BB1);d=g(d,e,f,c,b[11],22,0x895CD7BE);c=g(c,d,e,f,b[12],7,0x6B901122);f=g(f,c,d,e,b[13],12,0xFD987193);e=g(e,f,c,d,b[14],17,0xA679438E);d=g(d,e,f,c,b[15],22,0x49B40821);c=h(c,d,e,f,b[1],5,0xF61E2562);f=h(f,c,d,e,b[6],9,0xC040B340);e=h(e,f,c,d,b[11],14,0x265E5A51);d=h(d,e,f,c,b[0],20,0xE9B6C7AA);c=h(c,d,e,f,b[5],5,0xD62F105D);f=h(f,c,d,e,b[10],9,0x02441453);e=h(e,f,c,d,b[15],14,0xD8A1E681);d=h(d,e,f,c,b[4],20,0xE7D3FBC8);c=h(c,d,e,f,b[9],5,0x21E1CDE6);f=h(f,c,d,e,b[14],9,0xC33707D6);e=h(e,f,c,d,b[3],14,0xF4D50D87);d=h(d,e,f,c,b[8],20,0x455A14ED);c=h(c,d,e,f,b[13],5,0xA9E3E905);f=h(f,c,d,e,b[2],9,0xFCEFA3F8);e=h(e,f,c,d,b[7],14,0x676F02D9);d=h(d,e,f,c,b[12],20,0x8D2A4C8A);c=i(c,d,e,f,b[5],4,0xFFFA3942);f=i(f,c,d,e,b[8],11,0x8771F681);e=i(e,f,c,d,b[11],16,0x6D9D6122);d=i(d,e,f,c,b[14],23,0xFDE5380C);c=i(c,d,e,f,b[1],4,0xA4BEEA44);f=i(f,c,d,e,b[4],11,0x4BDECFA9);e=i(e,f,c,d,b[7],16,0xF6BB4B60);d=i(d,e,f,c,b[10],23,0xBEBFBC70);c=i(c,d,e,f,b[13],4,0x289B7EC6);f=i(f,c,d,e,b[0],11,0xEAA127FA);e=i(e,f,c,d,b[3],16,0xD4EF3085);d=i(d,e,f,c,b[6],23,0x04881D05);c=i(c,d,e,f,b[9],4,0xD9D4D039);f=i(f,c,d,e,b[12],11,0xE6DB99E5);e=i(e,f,c,d,b[15],16,0x1FA27CF8);d=i(d,e,f,c,b[2],23,0xC4AC5665);c=j(c,d,e,f,b[0],6,0xF4292244);f=j(f,c,d,e,b[7],10,0x432AFF97);e=j(e,f,c,d,b[14],15,0xAB9423A7);d=j(d,e,f,c,b[5],21,0xFC93A039);c=j(c,d,e,f,b[12],6,0x655B59C3);f=j(f,c,d,e,b[3],10,0x8F0CCC92);e=j(e,f,c,d,b[10],15,0xFFEFF47D);d=j(d,e,f,c,b[1],21,0x85845DD1);c=j(c,d,e,f,b[8],6,0x6FA87E4F);f=j(f,c,d,e,b[15],10,0xFE2CE6E0);e=j(e,f,c,d,b[6],15,0xA3014314);d=j(d,e,f,c,b[13],21,0x4E0811A1);c=j(c,d,e,f,b[4],6,0xF7537E82);f=j(f,c,d,e,b[11],10,0xBD3AF235);e=j(e,f,c,d,b[2],15,0x2AD7D2BB);d=j(d,e,f,c,b[9],21,0xEB86D391);a[0]=k(c,a[0]);a[1]=k(d,a[1]);a[2]=k(e,a[2]);a[3]=k(f,a[3])}}();function -yR(a,b,c){var -e=a.len&bb,d=0;a.len+=c;if(e){var -f=64-e;if(c=64){a.b8.set(b.subarray(d,d+64),0);dJ(a.w,a.b32);c-=64;d+=64}if(c)a.b8.set(b.subarray(d,d+c),0)}function -yP(a){var -c=a.len&bb;a.b8[c]=ao;c++;if(c>56){for(var -b=c;b<64;b++)a.b8[b]=0;dJ(a.w,a.b32);for(var -b=0;b<56;b++)a.b8[b]=0}else -for(var -b=c;b<56;b++)a.b8[b]=0;a.b32[14]=a.len<<3;a.b32[15]=a.len>>29&0x1FFFFFFF;dJ(a.w,a.b32);var -e=new -Uint8Array(16);for(var -d=0;d<4;d++)for(var -b=0;b<4;b++)e[d*4+b]=a.w[d]>>8*b&0xFF;return e}function -zQ(a){return ak(cA(a,0,a.length))}function -zy(a,b,c){var -d=yQ(),e=gi(a);yR(d,e.subarray(b,b+c),c);return zQ(yP(d))}function -zz(a,b,c){return zy(bd(a),b,c)}function -zB(){return 0}var -bf=new -Array();function -k1(a){return bf[a]}function -bw(a){var -b=k1(a);if(!b.opened)m("Cannot flush a closed channel");if(!b.buffer||b.buffer_curr==0)return 0;if(b.output)b.output(cA(b.buffer,0,b.buffer_curr));else -b.file.write(b.offset,b.buffer,0,b.buffer_curr);b.offset+=b.buffer_curr;b.buffer_curr=0;return 0}function -zS(a,b){if(b.name)try{var -d=require(fB),c=d.openSync(b.name,"rs");return new -av(c,b)}catch(f){}return new -av(a,b)}var -dW=new -Array(3);function -cs(a,b){Z.call(this,E(0));this.log=function(a){return 0};if(a==1&&typeof -console.log=="function")this.log=console.log;else if(a==2&&typeof -console.error=="function")this.log=console.error;else if(typeof -console.log=="function")this.log=console.log;this.flags=b}cs.prototype.length=function(){return 0};cs.prototype.write=function(a,b,c,d){if(this.log){if(d>0&&c>=0&&c+d<=b.length&&b[c+d-1]==10)d--;var -e=E(d);aX(f2(b),c,e,0,d);this.log(e.toUtf16());return 0}m(this.fd+jc)};cs.prototype.read=function(a,b,c,d){m(this.fd+": file descriptor is write only")};cs.prototype.close=function(){this.log=undefined};function -dX(a,b){if(b==undefined)b=dW.length;dW[b]=a;return b|0}function -z0(a,b,c){var -d={};while(b){switch(b[1]){case -0:d.rdonly=1;break;case -1:d.wronly=1;break;case -2:d.append=1;break;case -3:d.create=1;break;case -4:d.truncate=1;break;case -5:d.excl=1;break;case -6:d.binary=1;break;case -7:d.text=1;break;case -8:d.nonblock=1;break}b=b[2]}if(d.rdonly&&d.wronly)m(aH(a)+fX);if(d.text&&d.binary)m(aH(a)+fy);var -e=ld(a),f=e.device.open(e.rest,d);return dX(f,undefined)}(function(){function -a(a,b){return cB()?zS(a,b):new -cs(a,b)}dX(a(0,{rdonly:1,altname:"/dev/stdin",isCharacterDevice:true}),0);dX(a(1,{buffered:2,wronly:1,isCharacterDevice:true}),1);dX(a(2,{buffered:2,wronly:1,isCharacterDevice:true}),2)}());function -zC(a){var -b=dW[a];if(b.flags.wronly)m(jS+a+" is writeonly");var -d=null,c={file:b,offset:b.flags.append?b.length():0,fd:a,opened:true,out:false,buffer_curr:0,buffer_max:0,buffer:new -Uint8Array(jU),refill:d};bf[c.fd]=c;return c.fd}function -k2(a){var -b=dW[a];if(b.flags.rdonly)m(jS+a+" is readonly");var -d=b.flags.buffered!==undefined?b.flags.buffered:1,c={file:b,offset:b.flags.append?b.length():0,fd:a,opened:true,out:true,buffer_curr:0,buffer:new -Uint8Array(jU),buffered:d};bf[c.fd]=c;return c.fd}function -zD(){var -b=0;for(var -a=0;ae.buffer.length){var -g=new -Uint8Array(e.buffer_curr+b.length);g.set(e.buffer);e.buffer=g}switch(e.buffered){case -0:e.buffer.set(b,e.buffer_curr);e.buffer_curr+=b.length;bw(a);break;case -1:e.buffer.set(b,e.buffer_curr);e.buffer_curr+=b.length;if(e.buffer_curr>=e.buffer.length)bw(a);break;case -2:var -f=b.lastIndexOf(10);if(f<0){e.buffer.set(b,e.buffer_curr);e.buffer_curr+=b.length;if(e.buffer_curr>=e.buffer.length)bw(a)}else{e.buffer.set(b.subarray(0,f+1),e.buffer_curr);e.buffer_curr+=f+1;bw(a);e.buffer.set(b.subarray(f+1),e.buffer_curr);e.buffer_curr+=b.length-f-1}break}return 0}function -zE(a,b,c,d){var -b=gi(b);return zF(a,b,c,d)}function -gc(a,b,c,d){return zE(a,bd(b),c,d)}function -k3(a,b){var -c=ak(String.fromCharCode(b));gc(a,c,0,1);return 0}function -zG(a,b){if(b==0)gf();return a%b}function -cz(a,b){return+(dL(a,b,false)!=0)}function -zI(a,b){var -d=new -Array(b+1);d[0]=a;for(var -c=1;c<=b;c++)d[c]=0;return d}function -zJ(a,b){a[0]=aB;a[1]=b;return 0}function -aw(a){if(a -instanceof -Array&&a[0]==a[0]>>>0)return a[0];else if(dR(a))return dv;else if(dS(a))return dv;else if(a -instanceof -Function||typeof -a=="function")return 247;else if(a&&a.caml_custom)return jH;else -return cq}function -yW(a){var -c={};if(a)for(var -b=1;b=0)a=e;else -aj("caml_register_global: cannot locate "+d)}}T[a+1]=b;if(c)T[c]=b}function -gh(a,b){k4[aH(a)]=b;return 0}function -zP(){F(fw)}function -y(a,b){if(b>>>0>=n(a))zP();return $(a,b)}function -dV(a){a.t&6&&cv(a);return ak(a.c)}function -zR(){return 0x7FFFFFFF/4|0}function -zM(){k6(T.Not_found)}function -k9(a){var -b=lc(G(a));if(b===undefined)zM();return as(b)}function -zT(){if(p.crypto)if(p.crypto.getRandomValues){var -a=p.crypto.getRandomValues(new -Int32Array(4));return[0,a[0],a[1],a[2],a[3]]}else if(p.crypto.randomBytes){var -a=new -Int32Array(p.crypto.randomBytes(16).buffer);return[0,a[0],a[1],a[2],a[3]]}var -b=new -Date().getTime(),c=b^0xffffffff*Math.random();return[0,c]}function -bx(a){var -b=1;while(a&&a.joo_tramp){a=a.joo_tramp.apply(null,a.joo_args);b++}return a}function -r(a,b){return{joo_tramp:a,joo_args:b}}function -k$(a,b){if(b.fun){a.fun=b.fun;return 0}if(typeof -b==="function"){a.fun=b;return 0}var -c=b.length;while(c--)a[c]=b[c];return 0}function -L(a){{if(a -instanceof -Array)return a;var -b;if(p.RangeError&&a -instanceof -p.RangeError&&a.message&&a.message.match(/maximum call stack/i))b=T.Stack_overflow;else if(p.InternalError&&a -instanceof -p.InternalError&&a.message&&a.message.match(/too much recursion/i))b=T.Stack_overflow;else if(a -instanceof -p.Error&&bg(fO))b=[0,bg(fO),a];else -b=[0,T.Failure,as(String(a))];if(a -instanceof -p.Error)b.js_error=a;return b}}function -zq(a){switch(a[2]){case-8:case-11:case-12:return 1;default:return 0}}function -y6(a){var -b=e;if(a[0]==0){b+=a[1][1];if(a.length==3&&a[2][0]==0&&zq(a[1]))var -f=a[2],g=1;else -var -g=2,f=a;b+="(";for(var -d=g;dg)b+=jm;var -c=f[d];if(typeof -c=="number")b+=c.toString();else if(c -instanceof -aW)b+=du+c.toString()+du;else if(typeof -c=="string")b+=du+c.toString()+du;else -b+=kl}b+=")"}else if(a[0]==q)b+=a[1];return b}function -kS(a){if(a -instanceof -Array&&(a[0]==0||a[0]==q)){var -c=bg(kp);if(c)dK(c,[a,false]);else{var -d=y6(a),b=bg(jV);if(b)dK(b,[0]);console.error(fR+d);if(a.js_error)throw a.js_error}}else -throw a}function -zO(){var -c=p.process;if(c&&c.on)c.on("uncaughtException",function(a,b){kS(a);c.exit(2)});else if(p.addEventListener)p.addEventListener(jg,function(a){if(a.error)kS(a.error)})}zO();function -h(a,b){return(a.l>=0?a.l:a.l=a.length)==1?a(b):be(a,[b])}function -i(a,b,c){return(a.l>=0?a.l:a.l=a.length)==2?a(b,c):be(a,[b,c])}function -x(a,b,c,d){return(a.l>=0?a.l:a.l=a.length)==3?a(b,c,d):be(a,[b,c,d])}function -fr(a,b,c,d,e,f){return(a.l>=0?a.l:a.l=a.length)==5?a(b,c,d,e,f):be(a,[b,c,d,e,f])}function -yO(a,b,c,d,e,f,g,h){return(a.l>=0?a.l:a.l=a.length)==7?a(b,c,d,e,f,g,h):be(a,[b,c,d,e,f,g,h])}var -zZ=undefined;y7();var -d0=[q,kE,-1],gn=[q,jO,-2],bZ=[q,fY,-3],cD=[q,jp,-4],ax=[q,js,-7],gl=[q,kA,-8],gm=[q,j_,-9],f=[q,kh,-11],b0=[q,kt,-12],yN=[4,0,0,0,[12,45,[4,0,0,0,0]]],ek=[0,[11,'File "',[2,0,[11,'", line ',[4,0,0,0,[11,kC,[4,0,0,0,[12,45,[4,0,0,0,[11,ky,[2,0,0]]]]]]]]]],'File "%s", line %d, characters %d-%d: %s'],iV=fW,bR="content",i0="columns",i1="rows",fl=jF,fm=fW,i2=cm,i3="page_content";ar(11,b0,kt);ar(10,f,kh);ar(9,[q,km,-10],km);ar(8,gm,j_);ar(7,gl,kA);ar(6,ax,js);ar(5,[q,jK,-6],jK);ar(4,[q,jZ,-5],jZ);ar(3,cD,jp);ar(2,bZ,fY);ar(1,gn,jO);ar(0,d0,kE);var -ln="output_substring",lj=a$,lg="true",lh="false",lr="CamlinternalLazy.Undefined",lv="option is None",lz="\\\\",lA="\\'",lB="\\b",lC="\\t",lD="\\n",lE="\\r",lM="List.init",lJ="hd",lY="String.blit / Bytes.blit_string",lX="Bytes.blit",lW="String.sub / Bytes.sub",l7="String.contains_from / Bytes.contains_from",mc="Array.blit",mb="Array.sub",l$="Array.init",mj=[0,"set.ml",570,18],mf=dB,mg=dB,mh=dB,mi=dB,mq="Map.remove_min_elt",mm=dG,mn=dG,mo=dG,mp=dG,mr="Stdlib.Stack.Empty",mv="Stdlib.Queue.Empty",mH="Buffer.add_substring/add_subbytes",mE="Buffer.add: cannot grow buffer",mD=[0,i9,93,2],mC=[0,i9,94,2],mA="Buffer.sub",mS="%c",mT="%s",mU=jw,mV=jk,mW=kF,mX=jq,mY="%f",mZ="%B",m0="%{",m1="%}",m2="%(",m3="%)",m4="%a",m5="%t",m6="%?",m7="%r",m8="%_r",m9=[0,K,850,23],ni=[0,K,814,21],na=[0,K,815,21],nj=[0,K,818,21],nb=[0,K,819,21],nk=[0,K,822,19],nc=[0,K,823,19],nl=[0,K,826,22],nd=[0,K,827,22],nm=[0,K,831,30],ne=[0,K,832,30],ng=[0,K,836,26],m_=[0,K,837,26],nh=[0,K,846,28],m$=[0,K,847,28],nf=[0,K,851,23],oy=[0,K,1558,4],oz="Printf: bad conversion %[",oA=[0,K,1626,39],oB=[0,K,1649,31],oC=[0,K,1650,31],oD="Printf: bad conversion %_",oE=jJ,oF=kk,oG=jJ,oH=kk,oL=[0,[11,"invalid box description ",[3,0,0]],"invalid box description %S"],oK=[0,0,4],ot=fA,or="neg_infinity",os=jT,oq=a$,ol=[0,i$],n$="%+nd",oa="% nd",oc="%+ni",od="% ni",oe="%nx",of="%#nx",og="%nX",oh="%#nX",oi="%no",oj="%#no",n_="%nd",ob=kF,ok="%nu",nX="%+ld",nY="% ld",n0="%+li",n1="% li",n2="%lx",n3="%#lx",n4="%lX",n5="%#lX",n6="%lo",n7="%#lo",nW="%ld",nZ=jk,n8="%lu",nJ="%+Ld",nK="% Ld",nM="%+Li",nN="% Li",nO="%Lx",nP="%#Lx",nQ="%LX",nR="%#LX",nS="%Lo",nT="%#Lo",nI="%Ld",nL=jq,nU="%Lu",nv="%+d",nw="% d",ny="%+i",nz="% i",nA="%x",nB="%#x",nC="%X",nD="%#X",nE="%o",nF="%#o",nu=fu,nx=jw,nG=j3,mK="@]",mL="@}",mM="@?",mN="@\n",mO="@.",mP="@@",mQ="@%",mR="@",nn="CamlinternalFormat.Type_mismatch",oQ=e,oR=[0,[11,jm,[2,0,[2,0,0]]],", %s%s"],pn=[0,[11,fR,[2,0,[12,10,0]]],j7],po=[0,[11,"Fatal error in uncaught exception handler: exception ",[2,0,[12,10,0]]],"Fatal error in uncaught exception handler: exception %s\n"],pm="Fatal error: out of memory in uncaught exception handler",pj=[0,[11,fR,[2,0,[12,10,0]]],j7],pd=[0,[2,0,[12,10,0]],"%s\n"],pe=[0,[11,jI,0],jI],o6="Raised at",o7="Re-raised at",o8="Raised by primitive operation at",o9="Called from",o_=" (inlined)",pa=e,o$=[0,[2,0,[12,32,[2,0,[11,' in file "',[2,0,[12,34,[2,0,[11,", line ",[4,0,0,0,[11,kC,yN]]]]]]]]]],'%s %s in file "%s"%s, line %d, characters %d-%d'],pb=[0,[2,0,[11," unknown location",0]],"%s unknown location"],oZ="Out of memory",o0="Stack overflow",o1="Pattern matching failed",o2="Assertion failed",o3="Undefined recursive module",oT=[0,[12,40,[2,0,[2,0,[12,41,0]]]],"(%s%s)"],oU=e,oV=e,oW=[0,[12,40,[2,0,[12,41,0]]],"(%s)"],oP=[0,[4,0,0,0,0],fu],oN=[0,[3,0,0],"%S"],oO=kl,pg=[0,e,"(Cannot print locations:\n bytecode executable program file not found)","(Cannot print locations:\n bytecode executable program file appears to be corrupt)","(Cannot print locations:\n bytecode executable program file has wrong magic number)","(Cannot print locations:\n bytecode executable program file cannot be opened;\n -- too many open files. Try running with OCAMLRUNPARAM=b=2)"],ps="Fun.Finally_raised: ",pq="Stdlib.Fun.Finally_raised",pw="x",pD="Hashtbl: unsupported hash table format",pz=e,qo=[3,0,3],qp=a$,qi=kn,qj="<\/",qk=e,qe=kn,qf="<",qg=e,qc="\n",p9=e,p_=e,p$=e,qa=e,pV=[0,e],pQ=e,pR=e,pS=e,pT=e,pM=[0,e,0,e],pI="Stdlib.Format.String_tag",qB=[0,j2,72,5],qC=[0,j2,81,2],qD="CamlinternalMod.update_mod: not a module",qz="CamlinternalMod.init_mod: not a module",qE="Jsoo_runtime.Error.Exn",qF=fO,qJ=[0,b,157,10],qL=[0,b,179,10],qN=[0,b,191,10],qQ=[0,b,fZ,17],qZ=[0,b,367,16],q0=[0,b,368,18],q1=[0,b,372,15],q2=[0,b,377,15],q3=[0,b,kq,15],q4=[0,b,386,10],q5=[0,b,362,16],q6=[0,b,517,12],q7=[0,b,459,14],rg=[0,b,686,27],rf=[0,b,651,27],q$=[0,b,560,16],q8=[0,b,550,23],q9=[0,b,544,14],qY=[0,b,334,9],qU=[0,b,309,9],qT=[0,b,305,9],qS=[0,[11,"Lwd: unsafe mutation (variable invalidated during evaluation) at\n",[15,0]],"Lwd: unsafe mutation (variable invalidated during evaluation) at\n%a"],qP=[0,b,jC,14],qM=[0,b,186,14],qK=[0,b,169,14],qI=[0,b,152,14],ra="Lwd.Release_failure",rn=[0,a,64,12],rx=[0,a,bs,21],rG=[0,a,205,18],rF=[0,a,fZ,9],rI=[0,a,224,18],rH=[0,a,237,9],rJ=[0,a,240,21],rK=[0,a,aB,21],rL=[0,a,260,21],rN=[0,a,296,14],sa=[0,a,553,18],sb=[0,a,557,12],sc=[0,a,546,14],r$=[0,a,538,21],r9=[0,a,531,14],r7=[0,a,523,14],r5=[0,a,492,29],r4=[0,a,499,29],r3=[0,a,462,21],rY=[0,a,420,10],rZ=[0,a,j1,15],r0=[0,a,435,10],r1=[0,a,457,2],rT=[0,a,371,24],rU=[0,a,391,16],rV=[0,a,394,2],rQ=[0,a,315,18],rP=[0,a,317,9],rC=[0,a,193,4],rB=[0,a,jC,21],rz=[0,a,ji,4],rA=[0,a,177,14],ru=[0,a,113,14],rs=[0,a,jD,14],rq=[0,a,93,14],ro=[0,a,82,21],rm=[0,a,39,4],rl=[0,a,45,21],rj=[0,a,32,14],sF=[0,Y,571,12],sq=[0,Y,321,37],sr=[0,Y,322,37],st=[0,Y,346,10],su=[0,Y,357,42],ss=[0,Y,337,37],sw=[0,Y,375,10],sx=[0,Y,kq,42],sv=[0,Y,338,37],sA=[0,Y,425,16],sD=[0,Y,513,50],sB=[0,Y,480,6],sz=[0,Y,395,14],si=[0,Y,ji,57],sj=[0,Y,182,57],sk=[0,Y,238,11],sd=ke,se=ke,tv="debug",tu="warn",ts=jg,tq="log",tz="isSecureContext",tQ=[0,jG,233,16],tO=[0,jG,201,16],tJ=[0,0,0],tH=[0,0,0],ul=e,uk=e,ua=[0,[0,R,j8],0],ub=[0,[0,R,fV],[0,aE,0]],uc=[0,[0,R,fK],[0,aE,0]],ud=[0,[0,R,fC],[0,aE,0]],ue=[0,[0,R,fG],[0,aE,0]],uf=[0,[0,R,fP],[0,aE,0]],ug=[0,[0,R,fS],[0,aE,0]],uh=[0,[0,R,fN],[0,aE,0]],ui=[0,[0,R,j8],[0,aE,0]],t3=[0,[0,R,fV],0],t4=[0,[0,R,fK],0],t5=[0,jy,0],t6=[0,[0,R,fC],0],t7=[0,[0,R,fG],0],t8=[0,[0,R,fP],0],t9=[0,[0,R,fS],0],t_=[0,aE,0],t$=[0,[0,R,fN],0],t1=[0,[11,"\x1b[",[4,0,0,0,[12,109,0]]],"\x1b[%dm"],t2="CCFormat.ANSI_codes.No_such_style",um="CCFormat.Style",uH=[0,0],uI="CCFQueue.Empty",uJ=[0,0],uT="content-box",uU="border-box",uV="device-pixel-content-box",u8=j5,u5=[0,[8,[0,0,0],0,0,[11,ku,0]],"%fpx"],u6=[0,[8,[0,0,0],0,0,[11,j4,0]],"%frem"],u7=[0,[8,[0,0,0],0,0,[11,jR,0]],"%fem"],u2=ku,u3=j4,u4=jR,u$="Common.Utils.Forward_ref.Not_set",vb="Common.Utils.Forward_ref.Already_set",vf=[1,[0,3854881,"Failed to unmarshal data"]],vj=[1,-358247754],vh=[0,[11,"Multiple persitent var are using the key ",[2,0,0]],"Multiple persitent var are using the key %s"],vt="TODO not implemented",vz=[0,80,[0,"lwdui-controlled-scroll-wrapper"]],vA=[0,80,"lwdui-controlled-scroll-controls"],vB="Show playing",vF=jn,vD=e,vE=jX,vI=[0,80,jX],vG=[0,[2,0,[11,"--id",0]],"%s--id"],vJ=[0,[2,0,[11,"-id",0]],"%s-id"],vK=[0,80,"checkbox"],vW=[0,[11,kr,[2,0,0]],"height: %s"],vS=[0,[2,0,[12,32,[2,0,0]]],"%s %s"],vQ="grid-template-columns",vR=[0,[2,0,[11,ky,[2,0,[12,59,0]]]],"%s: %s;"],vT=e,vX=[1,4.],v2=[0,80,jd],v0=[0,[11,"height: calc(",[2,0,[11," * ",[4,3,0,0,[11,");",0]]]]],"height: calc(%s * %i);"],v1=[0,[11,kr,[2,0,[11," !important;",0]]],"height: %s !important;"],v3=[0,80,[0,"lwdui-lazy-table-content"]],v4=[0,80,[0,"lwdui-lazy-table-content-wrapper"]],v5=[0,"lwdui-lazy-table",0],wj=[0,[3,0,[11," is not a valid action",0]],"%S is not a valid action"],wb="retain",wc="insert",wd=jx,we=[0,fJ,51,22],v8=[0,[0,0,0,0,0,0,0]],v9=[0,fJ,32,6],v_=[0,[0,0,[0,[0,0]],0,0,0,0,0,0]],v$=[0,fJ,dD,6],wf=[0,[0,0,0,0,0,0,0]],wk=[0,[0,0,[0,[0,0]],0,0,0,0,0,0]],wy=[0,[11,"stun:",[2,0,0]],"stun:%s"],ww="signaling",wx=[0,"stun.l.google.com:19302",[0,"stun2.l.google.com:19302",[0,"stun3.l.google.com:19302",[0,"stun4.l.google.com:19302",0]]]],wz="peerOpts",wH=[0,[11,"vector length is ",[4,0,0,0,[11,", but data array has length ",[4,0,0,0,[11," (racy access?)",0]]]]],"vector length is %d, but data array has length %d (racy access?)"],wF=[0,[11,"index ",[4,0,0,0,[11," is out of range [0, ",[4,0,0,0,[12,41,0]]]]],"index %d is out of range [0, %d)"],wB=[0,[11,"invalid segment (ofs = ",[4,0,0,0,[11,", len = ",[4,0,0,0,[11,") in a sequence of length ",[4,0,0,0,0]]]]]],"invalid segment (ofs = %d, len = %d) in a sequence of length %d"],wU="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",yE="tbl",yF=[0,"Create new table:",0],yB=[0,80,[0,dA]],yC=[0,80,[0,jo]],yA=j5,yu=[0,"MAP",0],yv="S",yt="Found",yw=ja,yx="1fr",yy="a",ys=[2,5.],yq="New row cell: ",yp=[0,c,734,19],yo=[0,80,"Add row"],yi=[0,1],yh="Add map with id ",yl=e,ym=e,yj=[0,a_,1],yk=[0,a_,0],yn=[0,c,716,18],ye=[0,c,674,25],yd=e,yf=[0,c,666,23],yb=jz,yc="Form valid:",x6=[0,0,0],x7=[0,80,"Add column"],x8=[0,[0,co,"String"],[0,[0,dE,"Checkbox"],0]],x9=[0,fW,co,0],x_=[0,0],x$=[0,"demo"],ya=[0,1],x3="DELETE ROW",x4=ja,x2=[0,c,591,17],xY=e,xZ=e,x0=[0,0],xT=jz,xU=" -> ",xS=[0,0],xQ=[0,0],xR=[0,80,"Update"],xM=e,xN=e,xO=[0,80,[0,"cell-edit-btn"]],xP="\xe2\x9c\x8f\xef\xb8\x8f",xV=[0,80,[0,"cell-edit-overlay"]],xW=[0,80,[0,"cell"]],xy="GET",xx=[0,c,408,17],xw=[0,c,j1,11],xB=[0,c,438,19],xA=[0,c,448,13],xz=[0,c,428,13],xC=[0,c,455,11],xH=[0,c,473,19],xG=[0,c,468,19],xD=[0,c,461,13],xF=[0,c,477,15],xE=[0,c,478,11],xJ=e,xK=[0,c,490,17],xI=[0,c,493,11],xr=cm,xs=jQ,xl="New column kind:",xj=[0,c,291,13],xh=dE,xi=co,xg=dA,xc="Old value:",xd="Action: delete",xe="Key:",xf=[0,c,fZ,15],xb="On_change",xa=[0,c,143,22],w_="[blit v(%i) %i %i v'(%i)]",w7=[0,c,86,18],w4="PEERS",w2="STATUS",w0=[0,"SYNCED!",0],wX=[0,[0,"wss://p2p.u31.fr",0]],wY="testroom5267564",wZ="zedoc",w1="synced",w3="status",w5="peers",xo=cm,xp=jQ,yG=[0,80,"Add table"],yJ=[0,80,[0,jo]];function -z(a){if(typeof -a==="number")return 0;switch(a[0]){case -0:return[0,z(a[1])];case -1:return[1,z(a[1])];case -2:return[2,z(a[1])];case -3:return[3,z(a[1])];case -4:return[4,z(a[1])];case -5:return[5,z(a[1])];case -6:return[6,z(a[1])];case -7:return[7,z(a[1])];case -8:var -c=a[1];return[8,c,z(a[2])];case -9:var -b=a[1];return[9,b,b,z(a[3])];case -10:return[10,z(a[1])];case -11:return[11,z(a[1])];case -12:return[12,z(a[1])];case -13:return[13,z(a[1])];default:return[14,z(a[1])]}}function -V(a,b){if(typeof -a==="number")return b;switch(a[0]){case -0:return[0,V(a[1],b)];case -1:return[1,V(a[1],b)];case -2:return[2,V(a[1],b)];case -3:return[3,V(a[1],b)];case -4:return[4,V(a[1],b)];case -5:return[5,V(a[1],b)];case -6:return[6,V(a[1],b)];case -7:return[7,V(a[1],b)];case -8:var -c=a[1];return[8,c,V(a[2],b)];case -9:var -d=a[2],e=a[1];return[9,e,d,V(a[3],b)];case -10:return[10,V(a[1],b)];case -11:return[11,V(a[1],b)];case -12:return[12,V(a[1],b)];case -13:return[13,V(a[1],b)];default:return[14,V(a[1],b)]}}function -w(a,b){if(typeof -a==="number")return b;switch(a[0]){case -0:return[0,w(a[1],b)];case -1:return[1,w(a[1],b)];case -2:var -c=a[1];return[2,c,w(a[2],b)];case -3:var -d=a[1];return[3,d,w(a[2],b)];case -4:var -e=a[3],f=a[2],g=a[1];return[4,g,f,e,w(a[4],b)];case -5:var -h=a[3],i=a[2],j=a[1];return[5,j,i,h,w(a[4],b)];case -6:var -k=a[3],l=a[2],m=a[1];return[6,m,l,k,w(a[4],b)];case -7:var -n=a[3],o=a[2],p=a[1];return[7,p,o,n,w(a[4],b)];case -8:var -q=a[3],r=a[2],s=a[1];return[8,s,r,q,w(a[4],b)];case -9:var -t=a[1];return[9,t,w(a[2],b)];case -10:return[10,w(a[1],b)];case -11:var -u=a[1];return[11,u,w(a[2],b)];case -12:var -v=a[1];return[12,v,w(a[2],b)];case -13:var -x=a[2],y=a[1];return[13,y,x,w(a[3],b)];case -14:var -z=a[2],A=a[1];return[14,A,z,w(a[3],b)];case -15:return[15,w(a[1],b)];case -16:return[16,w(a[1],b)];case -17:var -B=a[1];return[17,B,w(a[2],b)];case -18:var -C=a[1];return[18,C,w(a[2],b)];case -19:return[19,w(a[1],b)];case -20:var -D=a[2],E=a[1];return[20,E,D,w(a[3],b)];case -21:var -F=a[1];return[21,F,w(a[2],b)];case -22:return[22,w(a[1],b)];case -23:var -G=a[1];return[23,G,w(a[2],b)];default:var -H=a[2],I=a[1];return[24,I,H,w(a[3],b)]}}function -dY(a){return[0,a]}function -cC(a){return a[1]}function -dZ(a,b,c){return a[1]===b?(a[1]=c,1):0}function -aI(a){throw g([0,bZ,a],1)}function -t(a){throw g([0,cD,a],1)}function -cE(a){return 0<=a?a:-a|0}var -go=ks;function -ay(a,b){return a+b}function -li(b){var -e=n(b);return function(a){var -c=a;for(;;){if(e<=c)return ay(b,lj);var -d=y(b,c);a:{if(48<=d){if(58>d)break a}else if(45===d)break a;return b}c=c+1|0}}(0)}function -gp(a,b){if(!a)return b;var -c=a[1];return[0,c,gp(a[2],b)]}zC(0);var -ll=k2(1),at=k2(2);function -b1(a,b){gc(a,b,0,n(b));return}function -gq(a){b1(at,a);k3(at,10);return bw(at)}var -d1=dY(function(a){return function(a){var -b=a;for(;;){if(!b)return 0;var -d=b[2],e=b[1];try{bw(e)}catch(f){var -c=L(f);if(c[1]!==gn)throw g(c,0)}b=d}}(zD(0))});function -d2(a){return h(cC(d1),0)}gh(jV,d2);function -le(a){return a^-1}function -lf(a){return a?lg:lh}function -lk(a){return li(f5("%.12g",a))}function -lm(a,b,c,d){if(0<=c&&0<=d&&(n(b)-d|0)>=c)return gc(a,b,c,d);return t(ln)}function -lo(c){for(;;){var -d=dY(1),a=cC(d1);let -e=d,f=a;var -b=1-dZ(d1,a,function(a){if(dZ(e,1,0))h(c,0);return h(f,0)});if(!b)return b}}function -cF(a){return bw(a)}function -lp(a,b){k3(a,b);return}var -d3=zR(0),b2=(4*d3|0)-1|0;function -lq(a){return 1-(typeof -a==="number"?1:0)}var -ls=[q,lr,af(0)];function -lt(a){throw g(ls,1)}function -cG(a){var -d=a[1];a[1]=lt;try{var -c=h(d,0);zJ(a,c);return c}catch(f){var -b=L(f);a[1]=function(a){throw g(b,0)};throw g(b,0)}}function -lu(a){var -b=aw(a);if(b!==aB&&b!==ba&&b!==kf)return a;return zu(a)}function -cH(a){return a?a[1]:t(lv)}function -gr(a){return a?1:0}function -lw(a,b){return b?[0,h(a,b[1])]:0}function -lx(a,b){return a===b?1:0}function -ly(a){a:{if(40<=a){if(92===a)return lz;if(dD>a)break a}else{if(32<=a){if(39<=a)return lA;break a}if(14>a)switch(a){case -8:return lB;case -9:return lC;case -10:return lD;case -13:return lE}}var -b=E(4);A(b,0,92);A(b,1,48+(a/fE|0)|0);A(b,2,48+((a/10|0)%10|0)|0);A(b,3,48+(a%10|0)|0);return dV(b)}var -c=E(1);A(c,0,a);return dV(c)}function -lF(a){return 25>>0?a:a+kz|0}function -lG(a,b){var -d=a,c=b;for(;;){if(!c)return d;d=d+1|0;c=c[2]}}function -gs(a){return lG(0,a)}function -by(a,b){var -c=a,d=b;for(;;){if(!c)return d;var -e=[0,c[1],d];c=c[2];d=e}}function -a1(a){return by(a,0)}function -gt(a,b,c){if(b<=a)return 0;var -d=h(c,a);return[0,d,gt(a+1|0,b,c)]}function -lH(a,b){return[0,a,b]}function -lI(a){return a?a[1]:aI(lJ)}function -lK(a,b,c,d){var -f=a,e=b;for(;;){if(c<=e)return f;f=[0,h(d,e),f];e=e+1|0}}function -d4(a){if(!a)return 0;var -b=a[1];return gp(b,d4(a[2]))}function -cI(a,b){if(!b)return 0;var -c=b[2],d=h(a,b[1]);return[0,d,cI(a,c)]}function -a2(a,b){var -c=b;for(;;){if(!c)return 0;var -d=c[2];h(a,c[1]);c=d}}function -gu(a,b,c){var -e=b,d=c;for(;;){if(!d)return e;var -f=d[2];e=i(a,e,d[1]);d=f}}function -lL(a,b){return 0<=a?50>1,s=p(r,b),D=s[1],t=p(a-r|0,s[2]),E=t[2];return[0,B(D,t[1],0),E]}function -p(a,b){if(2===a){if(b){var -j=b[2];if(j){var -k=j[1],g=b[1],B=j[2],q=i(d,g,k),C=0===q?[0,g,0]:0>1,s=h(r,b),D=s[1],t=h(a-r|0,s[2]),E=t[2];return[0,A(D,t[1],0),E]}var -a=gs(b);return 2<=a?h(a,b)[1]:b}function -gv(a,b){return b<=a?a:b}function -gw(a){return e+a}function -lS(a,b){return kY(a,b)}function -lT(a,b){return a<=b?a:b}function -bh(a,b){var -c=E(a);y4(c,0,a,b);return c}var -lU=E(0);function -gx(a){var -b=aq(a),c=E(b);aX(a,0,c,0,b);return c}function -d5(a,b,c){if(0<=b&&0<=c&&(aq(a)-c|0)>=b){var -d=E(c);aX(a,b,d,0,c);return d}return t(lW)}function -d6(a,b,c){return dV(d5(a,b,c))}function -gy(a,b,c,d,e){if(0<=e&&0<=b&&(aq(a)-e|0)>=b&&0<=d&&(aq(c)-e|0)>=d){aX(a,b,c,d,e);return}return t(lX)}function -aJ(a,b,c,d,e){if(0<=e&&0<=b&&(n(a)-e|0)>=b&&0<=d&&(aq(c)-e|0)>=d){cu(a,b,c,d,e);return}return t(lY)}function -gz(a){var -b=a-9|0;a:{if(4>>0){if(23!==b)break a}else if(2===b)break a;return 1}return 0}function -l1(a,b){var -d=aq(b);if(0===d)return b;var -e=E(d),f=d-1|0,g=0;if(f>=0){var -c=g;for(;;){A(e,c,h(a,bU(b,c)));var -i=c+1|0;if(f===c)break;c=i}}return e}function -gA(a,b,c){yZ(a,b,zf(c));return}function -gB(a,b,c){aY(a,b,c);return}function -gC(a,b){return yY(a,b)}function -cJ(a){return bd(a)}function -aa(a){return dV(a)}function -lV(a){return gx(bd(a))}function -lZ(a){var -d=aq(a),b=[0,0];for(;;){if(b[1]>=d)break;if(!gz(bU(a,b[1])))break;b[1]++}var -c=[0,d-1|0];for(;;){if(b[1]<=c[1]&&gz(bU(a,c[1]))){c[1]--;continue}return b[1]<=c[1]?d5(a,b[1],(c[1]-b[1]|0)+1|0):lU}}function -l0(a){var -b=[0,0],j=aq(a)-1|0,l=0;if(j>=0){var -g=l;for(;;){var -e=bU(a,g);a:{b:{c:{if(32<=e){var -h=e-34|0;if(58>>0){if(93<=h)break c}else if(56>>0)break b;var -i=1;break a}if(11<=e){if(13===e)break b}else if(8<=e)break b}var -i=4;break a}var -i=2}b[1]=b[1]+i|0;var -o=g+1|0;if(j===g)break;g=o}}if(b[1]===aq(a))return gx(a);var -c=E(b[1]);b[1]=0;var -k=aq(a)-1|0,m=0;if(k>=0){var -f=m;for(;;){var -d=bU(a,f);a:{b:{c:{if(35<=d){if(92!==d){if(dD<=d)break c;break b}}else{if(32>d){if(14<=d)break c;switch(d){case -8:A(c,b[1],92);b[1]++;A(c,b[1],98);break a;case -9:A(c,b[1],92);b[1]++;A(c,b[1],116);break a;case -10:A(c,b[1],92);b[1]++;A(c,b[1],110);break a;case -13:A(c,b[1],92);b[1]++;A(c,b[1],114);break a;default:break c}}if(34>d)break b}A(c,b[1],92);b[1]++;A(c,b[1],d);break a}A(c,b[1],92);b[1]++;A(c,b[1],48+(d/fE|0)|0);b[1]++;A(c,b[1],48+((d/10|0)%10|0)|0);b[1]++;A(c,b[1],48+(d%10|0)|0);break a}A(c,b[1],d)}b[1]++;var -n=f+1|0;if(k===f)break;f=n}}return c}function -l2(a){return l1(lF,a)}function -cK(a,b){return aa(bh(a,b))}function -d7(a,b,c){return aa(d5(cJ(a),b,c))}function -gD(a){var -b=a-9|0;a:{if(4>>0){if(23!==b)break a}else if(2===b)break a;return 1}return 0}function -l5(a,b,c,d){var -e=c;for(;;){if(b<=e)throw g(ax,1);if($(a,e)===d)return e;e=e+1|0}}function -l6(a,b,c){var -d=n(a);if(0<=b&&d>=b)try{l5(a,d,b,c);var -f=1;return f}catch(f){var -e=L(f);if(e===ax)return 0;throw g(e,0)}return t(l7)}function -d8(a,b){return k8(a,b)}function -l3(a){if(a==e)return a;if(!gD($(a,0))&&!gD($(a,n(a)-1|0)))return a;return aa(lZ(cJ(a)))}function -l4(a){return function(a,b,c){var -d=c;for(;;){if(b<=d)return a;var -e=$(a,d)+kz|0;a:{if(59>>0){if(33>>0)break a}else if(2===e)break a;d=d+1|0;continue}return aa(l0(cJ(a)))}}(a,n(a),0)}function -l8(a,b){return l6(a,0,b)}function -l9(a){return aa(l2(cJ(a)))}function -l_(a,b){return a==b?1:0}function -gE(a,b){if(0===a)return[0];if(0>a)return t(l$);var -d=ap(a,h(b,0)),e=a-1|0,f=1;if(e>=1){var -c=f;for(;;){d[1+c]=h(b,c);var -g=c+1|0;if(e===c)break;c=g}}return d}function -cL(a,b,c,d,e){if(0<=e&&0<=b&&(a.length-1-e|0)>=b&&0<=d&&(c.length-1-e|0)>=d)return yS(a,b,c,d,e);return t(mc)}function -gF(a,b){var -d=b.length-2|0,e=0;if(d>=0){var -c=e;for(;;){h(a,b[1+c]);var -f=c+1|0;if(d===c)break;c=f}}return 0}function -gG(a,b){var -d=b.length-1;if(0===d)return[0];var -e=ap(d,h(a,b[1])),f=d-1|0,g=1;if(f>=1){var -c=g;for(;;){e[1+c]=h(a,b[1+c]);var -i=c+1|0;if(f===c)break;c=i}}return e}function -md(a,b){var -d=a,c=b;for(;;){if(!c)return d;d=d+1|0;c=c[2]}}function -gH(a){if(!a)return[0];var -b=a[2],c=a[1],e=ap(md(0,a),c);return function(a,b){var -d=a,c=b;for(;;){if(!c)return e;var -f=c[2];e[1+d]=c[1];d=d+1|0;c=f}}(1,b)}function -ma(a,b,c){if(0<=b&&0<=c&&(a.length-1-c|0)>=b)return yT(a,b,c);return t(mb)}function -me(k){function -j(a){return a?a[4]:0}function -d(a,b,c){var -d=a?a[4]:0,e=c?c[4]:0,f=e<=d?d+1|0:e+1|0;return[0,a,b,c,f]}function -l(a,b,c){var -g=a?a[4]:0,h=c?c[4]:0;if((h+2|0)=h){var -w=h<=g?g+1|0:h+1|0;return[0,a,b,c,w]}if(!c)return t(mi);var -k=c[3],m=c[2],f=c[1],r=j(f);if(r<=j(k))return d(d(a,b,f),m,k);if(!f)return t(mh);var -s=f[2],u=f[1],v=d(f[3],m,k);return d(d(a,b,u),s,v)}function -c(a,b){if(!b)return[0,0,a,0,1];var -d=b[3],e=b[2],f=b[1],g=i(k[1],a,e);if(0===g)return b;if(0<=g){var -h=c(a,d);return d===h?b:l(f,e,h)}var -j=c(a,f);return f===j?b:l(j,e,d)}function -b(a){return[0,0,a,0,1]}var -m=0;function -e(a,b){var -c=b;for(;;){if(!c)return;var -d=c[3],f=c[2];e(a,c[1]);h(a,f);c=d}}function -n(a,b){var -d=a,c=b;for(;;){if(!c)return d;var -e=c[2],f=c[1];d=[0,e,n(d,c[3])];c=f}}function -o(a,b,c){var -d=c;for(;;){if(!d)return;var -e=d[3],f=d[1];d=h(b,d[2])?e:f}}function -p(a){function -c(a,b){if(3>=a>>>0)switch(a){case -0:return[0,0,b];case -1:if(b)return[0,[0,0,b[1],0,1],b[2]];break;case -2:if(b){var -h=b[2];if(h)return[0,[0,[0,0,b[1],0,1],h[1],0,2],h[2]]}break;default:if(b){var -i=b[2];if(i){var -j=i[2];if(j)return[0,[0,[0,0,b[1],0,1],i[1],[0,0,j[1],0,1],2],j[2]]}}}var -k=a/2|0,l=c(k,b),e=l[2],n=l[1];if(!e)throw g([0,f,mj],1);var -o=e[1],m=c((a-k|0)-1|0,e[2]),p=m[2];return[0,d(n,o,m[1]),p]}return c(gs(a),a)[1]}return[0,,,,c,,,,,,,,,,,,,m,,,,,,,,,,,,,,e,,,,,,,,function(a){return n(0,a)},,,,,,,,,,,function(a,b){var -c=b;for(;;){if(!c)return;var -d=c[2],e=c[3],f=c[1];if(h(a,d))return o(d,a,e);c=f}},,,,,,,function(a){if(!a)return m;var -f=a[2],d=a[1];if(!f)return b(d);var -g=f[2],e=f[1];if(!g)return c(e,b(d));var -h=g[2],i=g[1];if(!h)return c(i,c(e,b(d)));var -j=h[2],l=h[1];if(!j)return c(l,c(i,c(e,b(d))));if(j[2])return p(lR(k[1],a));var -n=j[1];return c(n,c(l,c(i,c(e,b(d)))))}]}function -mk(a){var -b=me(a);return[0,b[17],,,b[4],,,,,,,,,,b[31],,,,,,,,,b[39],,,,,,,,,,,,,b[50],b[57]]}function -ml(f){function -h(a){return a?a[5]:0}function -e(a,b,c,d){var -e=h(a),f=h(d),g=f<=e?e+1|0:f+1|0;return[0,a,b,c,d,g]}function -d(a,b,c,d){var -i=a?a[5]:0,j=d?d[5]:0;if((j+2|0)=j){var -B=j<=i?i+1|0:j+1|0;return[0,a,b,c,d,B]}if(!d)return t(mp);var -l=d[4],o=d[3],p=d[2],g=d[1],w=h(g);if(w<=h(l))return e(e(a,b,c,g),p,o,l);if(!g)return t(mo);var -x=g[3],y=g[2],z=g[1],A=e(g[4],p,o,l);return e(e(a,b,c,z),y,x,A)}function -j(a,b,c){if(!c)return[0,0,a,b,0,1];var -e=c[4],h=c[3],k=c[2],g=c[1],o=c[5],l=i(f[1],a,k);if(0===l)return h===b?c:[0,g,a,b,e,o];if(0<=l){var -m=j(a,b,e);return e===m?c:d(g,k,h,m)}var -n=j(a,b,g);return g===n?c:d(n,k,h,e)}function -n(a){var -b=a;for(;;){if(!b)throw g(ax,1);var -c=b[1];if(!c)return[0,b[2],b[3]];b=c}}function -c(a){if(!a)return t(mq);var -b=a[1];if(!b)return a[4];var -e=a[4],f=a[3],g=a[2];return d(c(b),g,f,e)}function -o(a,b){if(!a)return b;if(!b)return a;var -e=n(b),f=e[2],g=e[1];return d(a,g,f,c(b))}function -k(a,b){if(!b)return 0;var -c=b[4],h=b[3],g=b[2],e=b[1],j=i(f[1],a,g);if(0===j)return o(e,c);if(0<=j){var -l=k(a,c);return c===l?b:d(e,g,h,l)}var -m=k(a,e);return e===m?b:d(m,g,h,c)}function -l(a,b){var -c=b;for(;;){if(!c)return 0;var -d=c[4],e=c[3],f=c[2];l(a,c[1]);i(a,f,e);c=d}}function -m(a,b,c){var -d=b,e=c;for(;;){if(!d)return e;var -f=d[4],g=d[3],h=d[2],i=x(a,h,g,m(a,d[1],e));d=f;e=i}}return[0,,,,,0,,j,function(a,b){var -c=b;for(;;){if(!c)throw g(ax,1);var -e=c[4],h=c[3],j=c[1],d=i(f[1],a,c[2]);if(0===d)return h;var -k=0<=d?e:j;c=k}},,,,,,,,,function(a,b){var -c=b;for(;;){if(!c)return 0;var -e=c[4],g=c[3],h=c[1],d=i(f[1],a,c[2]);if(0===d)return[0,g];var -j=0<=d?e:h;c=j}},,,,,,,k,,l,,,m]}function -d9(a){var -b=ml(a);return[0,b[5],,,b[7],,,b[24],,,,,b[26],b[29],,,,,,,,,,,,,,,b[8],b[17]]}var -d_=[q,mr,af(0)];function -bz(a){return[0,0,0]}function -b3(a){a[1]=0;a[2]=0;return}function -a3(a,b){b[1]=[0,a,b[1]];b[2]=b[2]+1|0;return 0}function -bA(a){var -b=a[1];if(!b)return 0;var -c=b[1];a[1]=b[2];a[2]=a[2]-1|0;return[0,c]}function -bB(a){var -b=a[1];return b?[0,b[1]]:0}function -ms(a){var -b=a[1];if(!b)throw g(d_,1);a[1]=b[2];a[2]=a[2]-1|0;return}function -mt(a){if(a[1])return;throw g(d_,1)}function -mu(a,b){return a2(a,b[1])}var -mw=[q,mv,af(0)];function -d$(a){return[0,0,0,0]}function -ea(a){a[1]=0;a[2]=0;a[3]=0;return}function -eb(a,b){var -c=[0,a,0],d=b[3];return d?(b[1]=b[1]+1|0,d[2]=c,b[3]=c,0):(b[1]=1,b[2]=c,b[3]=c,0)}function -gI(a){var -b=a[2];if(!b)throw g(mw,1);var -c=b[1];if(b[2]){var -d=b[2];a[1]=a[1]-1|0;a[2]=d;return c}ea(a);return c}function -ec(a){return 0===a[1]?1:0}function -mx(a){var -b=a[2];return b?[0,b[1]]:0}function -my(a){var -b=a[2];if(!b)return 0;var -c=b[1];if(b[2]){var -d=b[2];a[1]=a[1]-1|0;a[2]=d;return[0,c]}ea(a);return[0,c]}function -b4(a){var -b=1<=a?a:1,c=b2=(d+b|0))break;c[1]=2*c[1]|0}if(b2a[3])throw g([0,f,mD],1);if((d+b|0)<=a[3])return;throw g([0,f,mC],1)}function -b5(a,b){var -c=n(b),d=a[2]+c|0;if(a[3]=b)return d6(a[1],b,c);return t(mA)}function -mB(a){return a[2]}function -mF(a,b){var -c=a[2];if(a[3]<=c)ed(a,1);A(a[1],c,b);a[2]=c+1|0;return}function -mG(a,b,c,d){var -e=c<0?1:0;if(e)var -f=e;else -var -h=d<0?1:0,f=h||((n(b)-d|0)e){if(32!==e){if(43>e)break a;switch(e-43|0){case -5:c:if(c<(d+2|0)&&1=(d+1|0))break a;var -f=bh(d+1|0,48);aY(f,0,e);aJ(b,1,f,(d-c|0)+2|0,c-1|0);return aa(f)}if(71<=e){if(5>>0)break a}else if(65>e)break a}if(ca)return b;var -h=[0,0],i=n(b)-1|0,o=0;if(i>=0){var -d=o;for(;;){if(9>=$(b,d)+j9>>>0)h[1]++;var -r=d+1|0;if(i===d)break;d=r}}var -j=h[1],k=E(n(b)+((j-1|0)/3|0)|0),l=[0,0];function -e(a){aY(k,l[1],a);l[1]++;return}var -f=[0,((j-1|0)%3|0)+1|0],m=n(b)-1|0,p=0;if(m>=0){var -c=p;for(;;){var -g=$(b,c);if(9>>0)e(g);else{if(0===f[1]){e(95);f[1]=3}f[1]--;e(g)}var -q=c+1|0;if(m===c)break;c=q}}return aa(k)}function -om(a,b){return cO(a,dN(nt(a),b))}function -on(a,b){return cO(a,dN(nV(a),b))}function -oo(a,b){return cO(a,dN(n9(a),b))}function -op(a,b){return cO(a,zi(nH(a),b))}function -aK(d,b,c){function -a(a){switch(d[1]){case -0:var -e=45;break;case -1:var -e=43;break;default:var -e=32}return zd(c,b,e)}function -e(a){var -b=y0(c);return 3===b?c<0.?or:os:4<=b?ot:a}function -f(b){var -e=n(b);return function(a){var -c=a;for(;;){if(c===e)return 0;var -d=y(b,c)-46|0;a:{if(23>>0){if(55===d)break a}else if(21>>0)break a;c=c+1|0;continue}return 1}}(0)?b:ay(b,oq)}switch(d[2]){case -5:return e(f(f5(gN(d,b),c)));case -6:return a(0);case -7:return l9(a(0));case -8:return e(a(0));default:return f5(gN(d,b),c)}}function -ou(a){var -b=ly(a),c=n(b),d=bh(c+2|0,39);cu(b,0,d,1,c);return aa(d)}function -ov(a){var -b=gJ(16);ef(b,a);return gL(b)}function -ck(a,b,c,d){var -k=b,j=c,e=d;for(;;){if(typeof -e==="number")return h(k,j);switch(e[0]){case -0:var -t=e[1];return function(a){return o(k,[5,j,a],t)};case -1:var -u=e[1];return function(a){return o(k,[4,j,ou(a)],u)};case -2:return eg(k,j,e[2],e[1],function(a){return a});case -3:return eg(k,j,e[2],e[1],ns);case -4:return cP(k,j,e[4],e[2],e[3],om,e[1]);case -5:return cP(k,j,e[4],e[2],e[3],on,e[1]);case -6:return cP(k,j,e[4],e[2],e[3],oo,e[1]);case -7:return cP(k,j,e[4],e[2],e[3],op,e[1]);case -8:return ow(k,j,e[4],e[2],e[3],e[1]);case -9:return eg(k,j,e[2],e[1],lf);case -10:j=[7,j];e=e[1];break;case -11:j=[2,j,e[1]];e=e[2];break;case -12:j=[3,j,e[1]];e=e[2];break;case -13:var -v=e[3],x=ov(e[2]);return function(a){return o(k,[4,j,x],v)};case -14:var -y=e[3],z=e[2];return function(a){return o(k,j,w(nr(a[1],z),y))};case -15:var -A=e[1];return function(c,b){return o(k,[6,j,function(a){return i(c,a,b)}],A)};case -16:var -B=e[1];return function(a){return o(k,[6,j,a],B)};case -17:j=[0,j,e[1]];e=e[2];break;case -18:var -l=e[1];if(0===l[0]){let -b=j,c=k,d=e[2];k=function(a){return o(c,[1,b,[0,a]],d)};j=0;e=l[1][1]}else{let -b=j,c=k,d=e[2];k=function(a){return o(c,[1,b,[1,a]],d)};j=0;e=l[1][1]}break;case -19:throw g([0,f,oy],1);case -20:var -C=e[3],D=[8,j,oz];return function(a){return o(k,D,C)};case -21:var -E=e[2];return function(a){return o(k,[4,j,dN(j3,a)],E)};case -22:var -F=e[1];return function(a){return o(k,[5,j,a],F)};case -23:var -m=e[2],n=e[1];return a<50?i5(a+1|0,k,j,n,m):r(i5,[0,k,j,n,m]);default:var -p=e[3],q=e[1],s=h(e[2],0);return a<50?fn(a+1|0,k,j,p,q,s):r(fn,[0,k,j,p,q,s])}}}function -o(a,b,c){return bx(ck(0,a,b,c))}function -i5(a,b,c,d,e){if(typeof -d==="number")switch(d){case -0:return a<50?s(a+1|0,b,c,e):r(s,[0,b,c,e]);case -1:return a<50?s(a+1|0,b,c,e):r(s,[0,b,c,e]);case -2:throw g([0,f,oA],1);default:return a<50?s(a+1|0,b,c,e):r(s,[0,b,c,e])}switch(d[0]){case -0:return a<50?s(a+1|0,b,c,e):r(s,[0,b,c,e]);case -1:return a<50?s(a+1|0,b,c,e):r(s,[0,b,c,e]);case -2:return a<50?s(a+1|0,b,c,e):r(s,[0,b,c,e]);case -3:return a<50?s(a+1|0,b,c,e):r(s,[0,b,c,e]);case -4:return a<50?s(a+1|0,b,c,e):r(s,[0,b,c,e]);case -5:return a<50?s(a+1|0,b,c,e):r(s,[0,b,c,e]);case -6:return a<50?s(a+1|0,b,c,e):r(s,[0,b,c,e]);case -7:return a<50?s(a+1|0,b,c,e):r(s,[0,b,c,e]);case -8:return a<50?s(a+1|0,b,c,e):r(s,[0,b,c,e]);case -9:var -h=d[2];return a<50?fo(a+1|0,b,c,h,e):r(fo,[0,b,c,h,e]);case -10:return a<50?s(a+1|0,b,c,e):r(s,[0,b,c,e]);default:return a<50?s(a+1|0,b,c,e):r(s,[0,b,c,e])}}function -fo(a,h,c,d,e){if(typeof -d==="number")return a<50?s(a+1|0,h,c,e):r(s,[0,h,c,e]);switch(d[0]){case -0:var -b=d[1];return function(a){return ag(h,c,b,e)};case -1:var -i=d[1];return function(a){return ag(h,c,i,e)};case -2:var -j=d[1];return function(a){return ag(h,c,j,e)};case -3:var -k=d[1];return function(a){return ag(h,c,k,e)};case -4:var -l=d[1];return function(a){return ag(h,c,l,e)};case -5:var -m=d[1];return function(a){return ag(h,c,m,e)};case -6:var -n=d[1];return function(a){return ag(h,c,n,e)};case -7:var -o=d[1];return function(a){return ag(h,c,o,e)};case -8:var -p=d[2];return function(a){return ag(h,c,p,e)};case -9:var -q=d[3],t=d[2],u=H(C(d[1]),t);return function(a){return ag(h,c,V(u,q),e)};case -10:var -v=d[1];return function(a,b){return ag(h,c,v,e)};case -11:var -w=d[1];return function(a){return ag(h,c,w,e)};case -12:var -x=d[1];return function(a){return ag(h,c,x,e)};case -13:throw g([0,f,oB],1);default:throw g([0,f,oC],1)}}function -ag(a,b,c,d){return bx(fo(0,a,b,c,d))}function -s(a,b,c,d){var -e=[8,c,oD];return a<50?ck(a+1|0,b,e,d):r(ck,[0,b,e,d])}function -eg(g,f,c,d,e){if(typeof -d==="number")return function(a){return o(g,[4,f,h(e,a)],c)};if(0===d[0]){var -b=d[2],i=d[1];return function(a){return o(g,[4,f,ac(i,b,h(e,a))],c)}}var -j=d[1];return function(a,b){return o(g,[4,f,ac(j,a,h(e,b))],c)}}function -cP(k,j,h,d,e,f,g){if(typeof -d==="number"){if(typeof -e==="number")return e?function(a,b){return o(k,[4,j,bD(a,i(f,g,b))],h)}:function(a){return o(k,[4,j,i(f,g,a)],h)};var -b=e[1];return function(a){return o(k,[4,j,bD(b,i(f,g,a))],h)}}if(0===d[0]){var -c=d[2],l=d[1];if(typeof -e==="number")return e?function(a,b){return o(k,[4,j,ac(l,c,bD(a,i(f,g,b)))],h)}:function(a){return o(k,[4,j,ac(l,c,i(f,g,a))],h)};var -n=e[1];return function(a){return o(k,[4,j,ac(l,c,bD(n,i(f,g,a)))],h)}}var -m=d[1];if(typeof -e==="number")return e?function(a,b,c){return o(k,[4,j,ac(m,a,bD(b,i(f,g,c)))],h)}:function(a,b){return o(k,[4,j,ac(m,a,i(f,g,b))],h)};var -p=e[1];return function(a,b){return o(k,[4,j,ac(m,a,bD(p,i(f,g,b)))],h)}}function -ow(i,h,g,d,e,f){if(typeof -d==="number"){if(typeof -e==="number")return e?function(a,b){return o(i,[4,h,aK(f,a,b)],g)}:function(a){return o(i,[4,h,aK(f,ee(f),a)],g)};var -b=e[1];return function(a){return o(i,[4,h,aK(f,b,a)],g)}}if(0===d[0]){var -c=d[2],j=d[1];if(typeof -e==="number")return e?function(a,b){return o(i,[4,h,ac(j,c,aK(f,a,b))],g)}:function(a){return o(i,[4,h,ac(j,c,aK(f,ee(f),a))],g)};var -l=e[1];return function(a){return o(i,[4,h,ac(j,c,aK(f,l,a))],g)}}var -k=d[1];if(typeof -e==="number")return e?function(a,b,c){return o(i,[4,h,ac(k,a,aK(f,b,c))],g)}:function(a,b){return o(i,[4,h,ac(k,a,aK(f,ee(f),b))],g)};var -m=e[1];return function(a,b){return o(i,[4,h,ac(k,a,aK(f,m,b))],g)}}function -fn(a,b,c,d,e,f){if(e){var -i=e[1];return function(a){return ox(b,c,d,i,h(f,a))}}var -g=[4,c,f];return a<50?ck(a+1|0,b,g,d):r(ck,[0,b,g,d])}function -ox(a,b,c,d,e){return bx(fn(0,a,b,c,d,e))}function -aL(a,b){var -c=b;for(;;){if(typeof -c==="number")return;switch(c[0]){case -0:var -f=c[1],g=gM(c[2]);aL(a,f);return b1(a,g);case -1:var -d=c[2],e=c[1];if(0===d[0]){var -i=d[1];aL(a,e);b1(a,oE);c=i}else{var -j=d[1];aL(a,e);b1(a,oF);c=j}break;case -6:var -m=c[2];aL(a,c[1]);return h(m,a);case -7:aL(a,c[1]);return cF(a);case -8:var -n=c[2];aL(a,c[1]);return t(n);case -2:case -4:var -k=c[2];aL(a,c[1]);return b1(a,k);default:var -l=c[2];aL(a,c[1]);return lp(a,l)}}}function -aM(a,b){var -c=b;for(;;){if(typeof -c==="number")return;switch(c[0]){case -0:var -f=c[1],g=gM(c[2]);aM(a,f);return b5(a,g);case -1:var -d=c[2],e=c[1];if(0===d[0]){var -i=d[1];aM(a,e);b5(a,oG);c=i}else{var -j=d[1];aM(a,e);b5(a,oH);c=j}break;case -6:var -m=c[2];aM(a,c[1]);return b5(a,h(m,0));case -7:c=c[1];break;case -8:var -n=c[2];aM(a,c[1]);return t(n);case -2:case -4:var -k=c[2];aM(a,c[1]);return b5(a,k);default:var -l=c[2];aM(a,c[1]);return mF(a,l)}}}function -oI(a){var -c=a[1],b=b4(cr);return o(function(a){aM(b,a);return aI(cM(b))},0,c)}function -oJ(c){if(c==e)return oK;var -f=n(c);function -j(a){return h(oI(oL),c)}function -k(a){var -b=a;for(;;){if(b===f)return b;var -d=y(c,b);if(9!==d&&32!==d)return b;b=b+1|0}}var -i=k(0),o=function(a,b){var -d=b;for(;;){if(d===f)return d;if(25>>0)return d;d=d+1|0}}(i,i),a=d7(c,i,o-i|0),d=k(o),l=function(a,b){var -d=b;for(;;){if(d===f)return d;var -e=y(c,d);a:{if(48<=e){if(58>e)break a}else if(45===e)break a;return d}d=d+1|0}}(d,d);if(d===l)var -m=0;else -try{var -r=kZ(d7(c,d,l-d|0)),m=r}catch(f){var -p=L(f);if(p[1]!==bZ)throw g(p,0);var -q=j(0),m=q}if(k(l)!==f)j(0);a:{if(a!==e&&a!==jj){if(a==="h"){var -b=0;break a}if(a==="hov"){var -b=3;break a}if(a==="hv"){var -b=2;break a}if(a!=="v"){var -b=j(0);break a}var -b=1;break a}var -b=4}return[0,m,b]}function -oM(d,b,c){return o(function(a){aL(b,a);return h(d,b)},0,c[1])}function -cQ(a,b){return oM(function(a){return 0},a,b)}function -eh(a){return cQ(at,a)}function -ei(c,b){return o(function(a){var -b=b4(64);aM(b,a);return h(c,cM(b))},0,b[1])}function -B(a){return ei(function(a){return a},a)}var -ej=dY(0);function -el(a,b){var -c=a[1+b];return lq(c)?aw(c)===dv?h(B(oN),c):aw(c)===kf?lk(c):oO:h(B(oP),c)}function -gO(a,b){if(a.length-1<=b)return oQ;var -c=gO(a,b+1|0),d=el(a,b);return i(B(oR),d,c)}function -oS(a){var -b=a.length-1;if(2>=b>>>0)switch(b){case -0:return oU;case -1:return oV;default:var -e=el(a,1);return h(B(oW),e)}var -c=gO(a,2),d=el(a,1);return i(B(oT),d,c)}function -oX(d){return function(a){var -b=a;for(;;){if(!b)return 0;var -e=b[2],f=b[1];a:{try{var -c=h(f,d)}catch(f){break a}if(c)return[0,c[1]]}b=e}}(cC(ej))}function -oY(a){if(a===d0)return oZ;if(a===gm)return o0;if(a[1]===gl){var -b=a[2],e=b[3],i=b[2],j=b[1];return fr(B(ek),j,i,e,e+5|0,o1)}if(a[1]===f){var -c=a[2],g=c[3],k=c[2],l=c[1];return fr(B(ek),l,k,g,g+6|0,o2)}if(a[1]===b0){var -d=a[2],h=d[3],m=d[2],n=d[1];return fr(B(ek),n,m,h,h+6|0,o3)}if(0!==aw(a))return a[1];var -o=a[1][1];return ay(o,oS(a))}function -cR(a){var -b=oX(a);return b?b[1]:oY(a)}function -o4(a){var -b=[0,y1(a)];return b}function -o5(c,b){function -a(a){return a?0===c?o6:o7:0===c?o8:o9}if(0===b[0]){var -d=b[5],e=b[4],f=b[3],g=b[6]?o_:pa,i=b[2],j=b[7],k=a(b[1]);return[0,yO(B(o$),k,j,i,g,f,e,d)]}if(b[1])return 0;var -l=a(0);return[0,h(B(pb),l)]}function -pc(a,b){if(!b)return cQ(a,pe);var -d=b[1],e=d.length-2|0,g=0;if(e>=0){var -c=g;for(;;){var -f=o5(c,j(d,c)[1+c]);if(f){var -i=f[1];h(cQ(a,pd),i)}var -k=c+1|0;if(e===c)break;c=k}}return 0}function -cS(a,b){return pc(a,o4(b))}var -ph=pg.slice();function -pi(a,b){var -e=cR(a);h(eh(pj),e);cS(at,b);var -c=zB(0);if(c<0){var -d=cE(c);gq(j(ph,d)[1+d])}return cF(at)}var -pk=[0];function -gP(a){var -b=kT(0);return b}function -pl(a,b){try{var -d=b?pk:gP(0);try{d2(0)}catch(f){}try{var -f=pi(a,d),e=f}catch(f){var -i=L(f),j=gP(0),k=cR(a);h(eh(pn),k);cS(at,d);var -l=cR(i);h(eh(po),l);cS(at,j);var -e=cF(at)}return e}catch(f){var -c=L(f);if(c===d0)return gq(pm);throw g(c,0)}}gh(kp,function(a,b){try{var -c=pl(a,b);return c}catch(f){return 0}});function -pf(a){for(;;){var -b=cC(ej),c=1-dZ(ej,b,[0,a,b]);if(!c)return c}}function -pp(a){return kT(a)}var -pr=[q,pq,af(0)];pf(function(a){return a[1]===pr?[0,ay(ps,cR(a[2]))]:0});function -pt(a){return zz(a,0,n(a))}function -pu(a){return[0,ap(55,0),0]}function -pv(a,b){function -l(a,b){return pt(ay(a,gw(b)))}function -m(a){var -b=y(a,3)<<24,c=y(a,2)<<16,d=y(a,1)<<8;return((y(a,0)+d|0)+c|0)+b|0}var -g=0===b.length-1?[0,0]:b,h=g.length-1,c=0;for(;;){j(a[1],c)[1+c]=c;var -s=c+1|0;if(54===c)break;c=s}var -f=[0,pw],i=54+gv(55,h)|0,n=0;if(i>=0){var -d=n;for(;;){var -e=d%55|0,k=zG(d,h),o=j(g,k)[1+k];f[1]=l(f[1],o);var -p=m(f[1]),q=(j(a[1],e)[1+e]^p)&jN;j(a[1],e)[1+e]=q;var -r=d+1|0;if(i===d)break;d=r}}a[2]=0;return}function -px(a){var -b=pu(0);pv(b,a);return b}function -gQ(a){return px(zT(0))}function -cT(a){a[2]=(a[2]+1|0)%55|0;var -b=a[2],c=j(a[1],b)[1+b],d=(a[2]+24|0)%55|0,e=(j(a[1],d)[1+d]+(c^(c>>>25|0)&31)|0)&jN,f=a[2];j(a[1],f)[1+f]=e;return e}function -gR(a){var -b=gb(dQ(cT(a)),9),c=gb(dQ(cT(a)),9);return kW(b,kW(kX(c,21),kX(gb(dQ(cT(a)),8),42)))}function -py(a){var -b=a.length-1<4?1:0,c=b||(a[4]<0?1:0);return c}try{var -yM=k9(kg),gV=yM}catch(f){var -gS=L(f);if(gS!==ax)throw g(gS,0);try{var -yL=k9("CAMLRUNPARAM"),gU=yL}catch(f){var -gT=L(f);if(gT!==ax)throw g(gT,0);var -gU=pz}var -gV=gU}var -cU=[ba,function(a){return gQ(0)}],pA=l8(gV,82);function -pB(a,b){var -c=a;for(;;){if(b<=c)return c;if(d3<(c*2|0))return c;c=c*2|0}}function -em(a,b){var -f=a?a[1]:pA,c=pB(16,b);if(f)var -d=aw(cU),g=aB===d?cU[1]:ba===d?cG(cU):cU,e=cT(g);else -var -e=0;return[0,0,ap(c,0),e,c]}function -pC(m,b,c,d){var -g=d.length-1,f=ap(g,0),i=c.length-2|0;function -n(a){var -c=a;for(;;){if(!c)return;var -i=c[1],l=c[2],n=c[3],g=b?c:[0,i,l,0],e=h(m,i),k=j(f,e)[1+e];if(k)k[3]=g;else -j(d,e)[1+e]=g;j(f,e)[1+e]=g;c=n}}var -o=0;if(i>=0){var -e=o;for(;;){n(j(c,e)[1+e]);var -r=e+1|0;if(i===e)break;e=r}}if(b){var -k=g-1|0,p=0;if(k>=0){var -a=p;for(;;){var -l=j(f,a)[1+a];if(l)l[3]=0;var -q=a+1|0;if(k===a)break;a=q}}}return}function -gW(a,b){var -c=b[2],d=(c.length-1)*2|0,e=d>>0)return;return g3(a,d)}function -pO(a){var -b=my(a[28]);if(!b)return;var -c=b[1],d=c[1];a[12]=a[12]-c[3]|0;var -e=al(d);a[9]=a[9]+e|0;return}function -pP(a,b,c){if(typeof -c==="number")switch(c){case -0:var -j=bB(a[3]);if(!j)return;var -k=j[1][1],l=function(a,b){if(!b)return[0,a,0];var -c=b[1],d=b[2];return zv(a,c)?[0,a,b]:[0,c,l(a,d)]};k[1]=l(a[6]-a[9]|0,k[1]);return;case -1:bA(a[2]);return;case -2:bA(a[3]);return;case -3:var -m=bB(a[2]);return m?g3(a,m[1][2]):cW(a);case -4:var -o=a[10]!==(a[6]-a[9]|0)?1:0;return o?pO(a):o;default:var -p=bA(a[5]);if(p)return en(a,h(a[25],p[1]));return}switch(c[0]){case -0:return g2(a,b,c[1]);case -1:var -d=c[2],f=c[1],q=d[1],z=d[2],r=bB(a[2]);if(!r)return;var -s=r[1],e=s[2];switch(s[1]){case -0:return bF(a,f);case -1:return bi(a,d,e);case -2:return bi(a,d,e);case -3:return a[9]<(b+n(q)|0)?bi(a,d,e):bF(a,f);case -4:return a[11]?bF(a,f):a[9]<(b+n(q)|0)?bi(a,d,e):((a[6]-e|0)+z|0)=a[14]){a[13]=g1;g4(a);if(b)cW(a);return p2(a)}g9(a,0)}}function -eq(a,b,c){var -d=a[14]=c)return x(a[17],hb,0,c);x(a[17],hb,0,80);c=c-80|0}}function -qd(a){return a[1]===b7?ay(qf,ay(a[2],qe)):qg}function -qh(a){return a[1]===b7?ay(qj,ay(a[2],qi)):qk}function -ql(a){return 0}function -qm(a){return 0}function -qn(a,b,c,d,e){var -g=d$(0),h=[0,gZ,qo,0];eb(h,g);var -f=bz(0);eo(f);a3([0,1,h],f);var -i=78,j=bz(0),k=bz(0),l=bz(0);return[0,f,bz(0),l,k,j,i,10,68,i,0,1,1,1,1,go,qp,a,b,c,d,e,0,0,qd,qh,ql,qm,g]}function -hd(a,b){var -c=qn(a,b,function(a){return 0},function(a){return 0},function(a){return 0});c[19]=function(a){return qb(c,a)};c[20]=function(a){return hc(c,a)};c[21]=function(a){return hc(c,a)};return c}function -he(d){return hd(function(a,b,c){return lm(d,a,b,c)},function(a){return cF(d)})}function -er(d){return hd(function(a,b,c){return mG(d,a,b,c)},function(a){return 0})}var -qq=dy,qr=function(a){return b4(qq)}(0),qs=he(ll),qt=he(at);er(qr);function -pX(a,b){if(a[22]){a3(b,a[4]);h(a[26],b)}var -c=a[23];return c?b8(a,[0,cV,[5,b],0]):c}function -p4(a,b){return ha(a,n(b),b)}function -p5(a,b){g$(a,1);return h(a[18],0)}function -p6(a,b){var -c=a[14]=0){var -c=g;for(;;){qy(e,c,a,j(b,c)[1+c]);var -h=c+1|0;if(f===c)break;c=h}}return e}function -hh(a,b){if(typeof -b!=="number"&&0===b[0])return hg(a,b[1]);return aI(qz)}function -qA(a,b,c,d){if(typeof -c!=="number"){if(0===c[0])return hi(c[1],a[1+b],d);return}if(2!==c){a[1+b]=d;return}if(0===aw(d)&&4===d.length-1){var -e=0,h=a[1+b];for(;;){h[1+e]=d[1+e];var -i=e+1|0;if(3===e)return;e=i}}throw g([0,f,qB],1)}function -hi(a,b,c){if(0===aw(c)&&a.length-1<=c.length-1){var -e=a.length-2|0,h=0;if(e>=0){var -d=h;for(;;){var -i=c[1+d];qA(b,d,j(a,d)[1+d],i);var -k=d+1|0;if(e===d)break;d=k}}return}throw g([0,f,qC],1)}function -hj(a,b,c){if(typeof -a!=="number"&&0===a[0])return hi(a[1],b,c);return aI(qD)}var -es=[q,qE,af(0)];qw(qF,[0,es,[0]]);(function(a){throw a});function -et(a){return[0,a]}function -Q(a){return[0,a]}function -cY(a){return 0===a[0]?[0,a[1]]:0}var -bH=[0,function(a){return a}(0)];function -bI(a){return[1,0,0,0,a]}function -l(a,b){return 0===a[0]?[0,h(b,a[1])]:bI([0,a,b])}function -b_(a,b,c){if(0===a[0]){var -d=a[1];if(0===b[0])return[0,i(c,d,b[1])]}return bI([1,a,b,c])}function -hk(a){return 0===a[0]?a[1]:bI([4,a,0])}function -hl(a,b,c){switch(c[0]){case -0:throw g([0,f,qI],1);case -1:c[3]=[0,b,a,c[3]];return;default:c[2]=[0,b,a,c[2]];return}}function -eu(a,b){if(!b)throw g([0,f,qJ],1);if(b[2]===a)return[0,b[1],b[3]];var -c=eu(a,b[3]),d=c[1];b[3]=c[2];return[0,d,b]}function -b$(a,b){switch(b[0]){case -0:throw g([0,f,qK],1);case -1:var -c=eu(a,b[3]),e=c[1];b[3]=c[2];return e;default:var -d=eu(a,b[2]),h=d[1];b[2]=d[2];return h}}function -hm(a,b,c,d){var -e=d;for(;;){if(!e)throw g([0,f,qL],1);if(e[1]===b&&e[2]===a){e[1]=c;return}e=e[3]}}function -ev(a,b,c,d){switch(d[0]){case -0:throw g([0,f,qM],1);case -1:return hm(a,b,c,d[3]);default:return hm(a,b,c,d[2])}}function -hn(a,b){var -c=b;for(;;){if(!c)throw g([0,f,qN],1);if(c[2]===a)return c[1];c=c[3]}}function -qO(a,b){switch(b[0]){case -0:throw g([0,f,qP],1);case -1:return hn(a,b[3]);default:return hn(a,b[2])}}function -aS(a,b,c,d){switch(d[0]){case -0:throw g([0,f,qQ],1);case -1:var -j=d[1];if(typeof -j==="number"&&!j){if(!c)return;if(b[1])return;b[1]=1;return}var -k=d[4];if(7===k[0]){var -n=k[2];if(1===n[0]){var -o=n[1];if(typeof -o==="number"){if(!o&&c){if(b[1])return;b[1]=1;return}}else if(c)return}}var -l=d[1];a:{if(typeof -l==="number"&&l){var -e=1;break a}var -e=c}d[1]=0;var -m=d[2];return a<50?i6(a+1|0,b,e,m):r(i6,[0,b,e,m]);default:var -i=d[1];d[1]=0;if(typeof -i==="number"){if(!i)return;b[1]=2;return}var -p=i[1];if(c)b[1]=2;return h(d[3],p)}}function -a4(a,b,c){return bx(aS(0,a,b,c))}function -i6(a,b,c,d){if(typeof -d==="number")return;switch(d[0]){case -0:var -f=d[1];return a<50?aS(a+1|0,b,c,f):r(aS,[0,b,c,f]);case -1:var -g=d[2];a4(b,c,d[1]);return a<50?aS(a+1|0,b,c,g):r(aS,[0,b,c,g]);case -2:var -h=d[3],l=d[2];a4(b,c,d[1]);a4(b,c,l);return a<50?aS(a+1|0,b,c,h):r(aS,[0,b,c,h]);case -3:var -i=d[4],m=d[3],n=d[2];a4(b,c,d[1]);a4(b,c,n);a4(b,c,m);return a<50?aS(a+1|0,b,c,i):r(aS,[0,b,c,i]);default:var -o=d[1];d[1]=0;var -k=o-1|0,p=0;if(k>=0){var -e=p;for(;;){a4(b,c,j(d[3],e)[1+e]);var -q=e+1|0;if(k===e)break;e=q}}return}}function -qR(a){return i(cQ(at,qS),cS,y8(20))}function -cZ(a,b){var -c=[0,0];a4(c,a,b);var -d=2<=c[1]?1:0;return d?qR(0):d}function -am(a){return bI([5,a])}function -aN(a){return a}function -ad(a,b){if(1===a[0]){var -c=a[4];if(5===c[0]){c[1]=b;return cZ(0,a)}}throw g([0,f,qT],1)}function -bJ(a){if(1===a[0]){var -b=a[4];if(5===b[0])return b[1]}throw g([0,f,qU],1)}function -bK(a,b,c){var -k=a,h=b,d=c;for(;;)switch(d[0]){case -0:return k;case -1:var -e=d[2];if(typeof -e==="number")throw g([0,f,qZ],1);switch(e[0]){case -0:if(e[1]!==h)throw g([0,f,q0],1);var -o=0;break;case -1:var -B=e[2],C=e[1];if(C===h)var -D=[0,B];else{if(B!==h)throw g([0,f,q1],1);var -D=[0,C]}var -o=D;break;case -2:var -u=e[3],v=e[2],w=e[1];if(w===h)var -x=[1,v,u];else if(v===h)var -x=[1,w,u];else{if(u!==h)throw g([0,f,q2],1);var -x=[1,w,v]}var -o=x;break;case -3:var -p=e[4],q=e[3],r=e[2],s=e[1];if(s===h)var -t=[2,r,q,p];else if(r===h)var -t=[2,s,q,p];else if(q===h)var -t=[2,s,r,p];else{if(p!==h)throw g([0,f,q3],1);var -t=[2,s,r,q]}var -o=t;break;default:var -n=b$(d,h);if(j(e[3],n)[1+n]!==h)throw g([0,f,q4],1);var -m=e[2]-1|0;e[2]=m;if(n>>2|0))var -U=ma(e[3],0,K>>>1|0),M=[4,e[1],e[2],U];else -var -M=e;var -J=M}var -o=J}d[2]=o;if(typeof -o!=="number")return k;var -y=d[1];d[1]=1;var -l=d[4];switch(l[0]){case -0:h=d;d=l[1];break;case -1:var -N=l[2];k=bK(k,d,l[1]);h=d;d=N;break;case -2:var -O=l[2];k=bK(k,d,l[1]);h=d;d=O;break;case -3:var -P=l[2];k=bK(k,d,l[1]);h=d;d=P;break;case -4:var -z=l[2],A=bK(k,d,l[1]);if(!z)return A;var -Q=z[1];l[2]=0;k=A;h=d;d=Q;break;case -5:return k;case -6:if(typeof -y==="number")return k;var -R=y[1];try{i(l[2],d,R);return k}catch(f){var -S=L(f);return[0,[0,S,pp(0)],k]}default:var -T=l[1];k=bK(k,d,l[2]);h=d;d=T}break;default:throw g([0,f,q5],1)}}function -a5(a,b){var -e=a,c=b;for(;;)switch(c[0]){case -0:return;case -1:var -n=typeof -c[2]==="number"?1:0,d=c[2];if(typeof -d==="number")var -k=[0,e];else -switch(d[0]){case -0:var -k=[1,e,d[1]];break;case -1:var -k=[2,e,d[1],d[2]];break;case -2:var -k=[3,e,d[1],d[2],d[3]];break;case -3:var -o=[0,d[1],d[2],d[3],d[4],e,bH,bH,bH],l=0;for(;;){hl(c,l,j(o,l)[1+l]);var -w=l+1|0;if(4===l)break;l=w}var -k=[4,5,5,o];break;default:var -i=d[2];if(i>>1|0)}function -hv(a,b,c){if(typeof -a!=="number"){if(0!==a[0]){if(a[2]!==b)throw g([0,f,rC],1);a[2]=c;return}if(a[2]===b){a[2]=c;return}if(a[4]===b){a[4]=c;return}}throw g([0,f,rB],1)}function -fq(a,b,c){if(typeof -c!=="number"&&0===c[0]){var -d=c[4];if(typeof -d!=="number"&&1!==d[0]){var -h=c[5],e=d[2];if(typeof -e==="number")var -i=0;else{if(0!==e[0])throw g([0,f,rG],1);e[5]=c;var -i=e}d[2]=c;c[4]=i;c[5]=d;d[5]=h;hv(h,c,d);eC(b,c);return a<50?cl(a+1|0,b,d):r(cl,[0,b,d])}}throw g([0,f,rF],1)}function -rD(a,b){return bx(fq(0,a,b))}function -fp(a,b,c){if(typeof -c!=="number"&&0===c[0]){var -d=c[2];if(typeof -d!=="number"&&1!==d[0]){var -h=c[5],e=d[4];if(typeof -e==="number")var -i=0;else{if(0!==e[0])throw g([0,f,rI],1);e[5]=c;var -i=e}d[4]=c;c[2]=i;c[5]=d;d[5]=h;hv(h,c,d);eC(b,c);return a<50?cl(a+1|0,b,d):r(cl,[0,b,d])}}throw g([0,f,rH],1)}function -rE(a,b){return bx(fp(0,a,b))}function -i8(a,b,c){if(typeof -c!=="number"&&0===c[0]){var -d=c[4];a:if(typeof -d!=="number"&&0===d[0]){var -e=bM(d[2]);if(eB(bM(d[4]),e)){rE(b,d);break a}}return a<50?fq(a+1|0,b,c):r(fq,[0,b,c])}throw g([0,f,rJ],1)}function -i7(a,b,c){if(typeof -c!=="number"&&0===c[0]){var -d=c[2];a:if(typeof -d!=="number"&&0===d[0]){var -e=bM(d[4]);if(eB(bM(d[2]),e)){rD(b,d);break a}}return a<50?fp(a+1|0,b,c):r(fp,[0,b,c])}throw g([0,f,rK],1)}function -cl(a,b,c){if(typeof -c!=="number"&&0===c[0]){var -d=bM(c[2]),e=bM(c[4]);return d>>2|0}function -az(a,b){if(typeof -a==="number")var -c=b;else{if(typeof -b!=="number"){var -d=c4(b);return[1,(hA(c4(a),d)+1|0)<<2,a,b]}var -c=a}return c}function -hB(a){return typeof -a==="number"?0:0===a[0]?[0,a[2]]:[1,a[2],a[3]]}var -eD=1,eE=2,sf=3;function -hC(a){return-1===a?1:0}function -eF(a){return-1!==a?1:0}function -bN(a){return(a&3)===3?1:0}function -hD(a){return(a&3)===1?1:0}function -hE(a){return(a&3)===2?1:0}function -hF(a){return a|3}function -sg(a){return a>>>2|0}function -hG(a){return a<<2|2}function -cd(a){return a&le(sf)}function -hH(a){return a[2]}function -hI(a){return a[3]}function -hJ(a){return[0,0,0,0]}function -c5(a){a[1]=a[1]+1|0;return}function -c6(a){a[2]=a[2]+1|0;return}function -c7(a){a[3]=a[3]+1|0;return}function -eG(a,b,c){var -d=c;for(;;){if(typeof -d==="number")return;if(0===d[0]){var -e=d[1],i=(e&3)!==3?1:0,l=i?0!==(e&3)?1:0:i;if(l){if(0!==(e&b))throw g([0,f,si],1);c5(a);c7(a);d[1]=e|3}return}var -h=d[1],j=(h&3)!==3?1:0,k=j?0!==(h&3)?1:0:j;if(!k)return k;if(0!==(h&b))throw g([0,f,sj],1);c5(a);c7(a);d[1]=h|3;eG(a,b,d[2]);d=d[3]}}function -c8(a,b,c,d){if(typeof -d==="number")return;if(0===d[0]){var -e=d[1];if(0===(e&c)){c5(a);if(0===(e&3))d[1]=e|c;else{d[1]=-1;c7(a);c6(a)}}var -g=-1!==e?1:0,h=g?(e&3)===3?1:0:g;return h?(d[1]=-1,c6(a)):h}var -f=d[1];if(0===(f&c)){c5(a);if(0===(f&3)){d[1]=f|c;eb(d,b)}else{d[1]=-1;c7(a);c6(a);eG(a,c,d[2]);eG(a,c,d[3])}}var -i=-1!==f?1:0,j=i?(f&3)===3?1:0:i;return j?(d[1]=-1,c6(a)):j}function -eH(a,b,c){var -d=gI(b);if(typeof -d!=="number"&&1===d[0]){var -e=(d[1]&3)===c?1:0;return e?(c8(a,b,c,d[2]),c8(a,b,c,d[3])):e}throw g([0,f,sk],1)}function -hK(a,b,c){for(;;){if(ec(b))return;eH(a,b,c)}}function -sl(a,b,c,d){for(;;){if(ec(c))return hK(b,d,eE);if(ec(d))return hK(a,c,eD);eH(a,c,eD);eH(b,d,eE)}}function -eI(a){var -b=a[6];a[6]=b+1|0;return b}function -eJ(a){var -b=a;for(;;){if(typeof -b==="number")return;if(0===b[0]){var -c=b[1];if(typeof -c!=="number"&&0===c[0]){var -e=c[1],i=eF(e),l=i?bN(e):i;if(l)c[1]=cd(e);return}throw g([0,f,sq],1)}var -d=b[1];if(typeof -d!=="number"&&1===d[0]){var -h=d[1],m=b[4],n=b[3],j=eF(h),k=j?bN(h):j;if(!k)return k;d[1]=cd(h);eJ(n);b=m;continue}throw g([0,f,sr],1)}}function -hL(a,b){var -c=b;for(;;){if(typeof -c==="number")return;if(0===c[0]){var -d=c[1];if(typeof -d!=="number"&&0===d[0]){var -e=d[1],u=c[2];if(!hD(e)){if(hC(e)){var -k=eI(a);j(a[4],k)[1+k]=d;j(a[5],k)[1+k]=[0,c,0];d[1]=hG(k);return}if(hE(e)){var -n=sg(e),v=[0,c,j(a[5],n)[1+n]];j(a[5],n)[1+n]=v;return}var -q=bN(e);if(q)throw g([0,f,su],1);return q}var -m=a[2];if(-1a[3])throw g([0,f,st],1)}d[1]=cd(e);return}throw g([0,f,ss],1)}var -h=c[1];if(typeof -h!=="number"&&1===h[0]){var -r=c[4],s=c[3],i=h[1],w=c[2];if(hC(i)){var -l=eI(a);j(a[4],l)[1+l]=h;j(a[5],l)[1+l]=[0,c,0];h[1]=hG(l);eJ(s);return eJ(r)}if(!hD(i)){if(hE(i)){var -o=i>>>2|0,x=[0,c,j(a[5],o)[1+o]];j(a[5],o)[1+o]=x;return}var -t=bN(i);if(t)throw g([0,f,sx],1);return t}if(-1a[3])throw g([0,f,sw],1)}h[1]=cd(i);hL(a,s);c=r;continue}throw g([0,f,sv],1)}}function -ce(a,b){if(typeof -b==="number")return 0;if(0!==b[0]){var -i=b[1];if(-1===i){var -l=eI(a);b[1]=0;j(a[4],l)[1+l]=b;var -p=ce(a,b[2]);return[1,b,0,p,ce(a,b[3])]}if(!bN(i)){b[1]=cd(b[1]);var -r=ce(a,b[2]);return[1,b,0,r,ce(a,b[3])]}var -d=i>>>2|0,k=j(a[5],d)[1+d];if(!k)throw g([0,f,sA],1);var -m=k[2],q=k[1];j(a[5],d)[1+d]=m;if(0===m)b[1]=0;return q}var -e=b[1];if(eF(e)&&bN(e)){var -c=e>>>2|0,h=j(a[5],c)[1+c];if(!h)return[0,b,0];var -n=h[2],o=h[1];j(a[5],c)[1+c]=n;return o}b[1]=0;return[0,b,0]}var -eK=[0,0,[0],0,0];function -sh(a){return a[1]}function -sm(a){return a[1]}function -sn(a){return a[2]}function -so(a,b){var -c=hJ(0),d=hJ(0),e=d$(0),f=d$(0);c8(c,e,eD,a);c8(d,f,eE,b);sl(c,d,e,f);return[0,c,d]}function -sp(a){if(typeof -a==="number")return;if(0===a[0]){a[1]=0;return}var -b=c4(a[3]);a[1]=(hA(c4(a[2]),b)+1|0)<<2;return}function -sy(a){var -e=a[6]-1|0,h=0;if(e>=0){var -b=h;for(;;){var -c=j(a[4],b)[1+b];if(typeof -c!=="number")if(0===c[0])c[1]=hF(c[1]);else -c[1]=hF(c[1]);var -d=j(a[5],b)[1+b];if(!d)throw g([0,f,sz],1);if(d[2]){var -i=a1(d);j(a[5],b)[1+b]=i}var -k=b+1|0;if(e===b)break;b=k}}return}function -hM(a,b,c){if(typeof -b==="number"){if(typeof -c==="number")return[0,eK,0]}else if(b[1]===c)return[0,eK,b];var -t=typeof -b==="number"?cc:b[1],m=so(t,c),i=sm(m),n=sn(m),u=hI(n),v=hI(i)+u|0,o=sh(i)-v|0,w=hH(n),p=hH(i)+w|0,x=0,y=ap(p,0),z=ap(p,0),A=a?o:-1,B=a?0:-1,C=a?ap(o,0):[0],d=[0,C,B,A,z,y,x];hL(d,b);if(d[2]!==d[3])throw g([0,f,sB],1);sy(d);var -q=ce(d,c),r=d[6]-1|0;if(r>=0){var -h=r;for(;;){sp(j(d[4],h)[1+h]);var -F=h-1|0;if(0===h)break;h=F}}if(!a)return[0,eK,q];var -k=[0,0],l=[0,0],s=d[6]-1|0,D=0;if(s>=0){var -e=D;for(;;){a2(function(a){if(typeof -a!=="number")if(0===a[0]){var -b=a[2];if(b){k[1]=[0,b[1],k[1]];return 0}}else{var -c=a[2];if(c){l[1]=[0,c[1],l[1]];return 0}}return 0},j(d[5],e)[1+e]);var -E=e+1|0;if(s===e)break;e=E}}return[0,[0,d[2],d[1],k[1],l[1]],q]}function -sC(d,b){if(typeof -b==="number")return 0;function -c(a){a:if(typeof -a!=="number"){b:{if(0===a[0]){var -b=a[1];if(typeof -b!=="number"&&0===b[0]){var -e=a[2];if(e){var -j=e[1];break b}var -k=h(d[1],b[2]);a[2]=[0,k];return k}break a}var -l=a[2];if(!l){var -n=c(a[3]),o=c(a[4]),m=i(d[2],n,o);a[2]=[0,m];return m}var -j=l[1]}return j}throw g([0,f,sD],1)}return[0,c(b)]}function -c9(a,b){return[0,[0,a,b],0]}function -c_(a){return sC(a[1],a[2])}function -sE(a,b){var -c=a[1];return[0,c,hM(0,a[2],b)[2]]}function -eL(a,b){var -d=a[1],c=hM(1,a[2],b);return[0,c[1],[0,d,c[2]]]}function -c$(a,b,c,d){var -e=[0,d];if(v===a)var -h=c[1],g=0;else if(jW<=a)var -h=c[2].length-1,g=c[1];else -var -h=c[2].length-1,g=0;var -k=h-1|0;if(k>=g){var -f=g;for(;;){var -l=j(c[2],f)[1+f];if(l)e[1]=i(b,l[1],e[1]);var -m=f+1|0;if(k===f)break;f=m}}if(jW>a)a2(function(a){e[1]=i(b,a,e[1]);return 0},c[3]);if(v!==a)a2(function(a){e[1]=i(b,a,e[1]);return 0},c[4]);return}function -eM(a,b,c){if(typeof -c==="number")throw g([0,f,sF],1);if(0===c[0])return h(a,c[2]);var -d=eM(a,b,c[3]);return i(b,eM(a,b,c[2]),d)}function -bj(a,b,c){var -d=b[2],e=b[1],f=cY(c);if(f){var -g=f[1];return typeof -g==="number"?Q(e):Q(eM(a,d,g))}var -h=[0,c9(a,d)];return l(c,function(a){var -b=sE(h[1],a);h[1]=b;var -c=c_(b);return c?c[1]:e})}var -aO=[0,cc,az];function -sG(a,b){return c1(b,aO,a)}function -da(a){return sG(a,I)}function -hN(a){function -e(a,b){var -c=a,d=b;for(;;){if(typeof -c==="number")return d;if(0===c[0])return[0,c[2],d];var -f=e(c[3],d);c=c[2];d=f}}return e(a,0)}var -hO=[0,Q(0),function(a,b){return b_(a,b,az)}];function -eN(c,b){return bj(function(a){return I(h(c,a))},aO,b)}function -sH(a,b){return hk(bj(b,hO,a))}function -bk(a){return sH(a,function(a){return l(a,I)})}var -bl=e;function -sI(a){return a[kD]}function -hP(a,b){var -c=a?a[1]:bl;return zw(b).join(c)}function -eO(a){return 0===sI(a)?1:0}function -db(a,b){return kR(a,b)}p["Number"];var -eP=null,sJ=undefined;function -cf(a){return a===eP?1:0}function -sK(a){return a===sJ?1:0}function -bO(a){var -b=cf(a);return b?b:sK(a)}function -hQ(a){return 1-bO(a)}function -dc(a,b){return bO(b)?0:[0,h(a,b)]}var -k=p;function -eQ(a,b){var -c=a[b];return bO(c)?0:[0,c]}function -eR(a){return new -k[jM](a)}function -hR(a){return a[kD]}function -hS(c,b){return gE(hR(b),function(a){return h(c,b[a])})}function -hT(a,b){var -d=b.length-1,e=eR(d),f=d-1|0,g=0;if(f>=0){var -c=g;for(;;){e[c]=h(a,j(b,c)[1+c]);var -i=c+1|0;if(f===c)break;c=i}}return e}function -hU(f,b){return function(a,b,c){var -e=a,d=c;for(;;){if(!d)return b;var -g=d[2];b[e]=h(f,d[1]);e=e+1|0;d=g}}(0,eR(0),b)}function -sP(a,b){var -c=new -k["Error"](b);return a?(c[cm]=a[1],c):c}var -sR=Symbol.iterator;function -sT(a){return a.next()}function -sU(a){var -b=dc(function(a){return a|0},a["done"]);return b?b[1]:0}function -sV(a){return a[dx]}function -hV(i,g,c,d,e){return function(a,b){var -d=b;for(;;){var -e=sT(a);if(sU(e))return d;var -f=sV(e),j=h(g,f[1]);d=x(c,h(i,f[0]),j,d)}}(d,e)}k["Promise"];function -sN(a){return as(a)}function -bm(a,b,c){return dT(a,sN(b),c)}function -au(a){return as(a)}function -J(a){return G(a)}function -dd(a,b){return a -instanceof -b?1:0}var -sL=true;function -sM(a,b){a[b];return}function -sO(c,b){return lL(hR(b),function(a){return h(c,b[a])})}function -sQ(a,b){return h(function(a){throw a},sP(a,b))}function -sS(a){return a[sR]()}k["Event"];function -eS(a){return a[fs]}function -hW(a,b,c,d){var -e=a?a[1]:{},f=bv(1,c);d.addEventListener(b,f,e);return function(a){d.removeEventListener(b,f,e);return 0}}function -hX(a){return h(a,0)}var -eT="change",de="click";k["ArrayBuffer"];k["DataView"];function -sW(a){a.preventDefault();return 0}var -sX="DOMContentLoaded",sY=j6,sZ="scroll",s0="wheel";k["Blob"];k["File"];var -hY=k["JSON"];k["encodeURI"];k["decodeURI"];k["encodeURIComponent"];k["decodeURIComponent"];k["URL"];k["URLSearchParams"];function -aP(a,b){return[0,a,b]}var -df=[0,bl,bl];function -eU(a){return[0,a,bl]}function -hZ(a){return a}var -cg=ko,eV=jF,h0=cm,h1=jr,eW="type",eX=dx,s4="for";function -a6(a){return aP(cg,a)}function -h2(a){return aP(s4,a)}var -s6=eU(je),s8=eU("required");function -dg(a){return aP(h1,a)}var -s9=eU("selected"),bn=k["document"];function -s1(a){return hY.stringify(a)}function -s2(a){try{var -c=hY.parse(a)}catch(f){var -b=L(f);if(b[1]===es)return[1,b[2]];throw g(b,0)}return[0,c]}function -s3(a,b){return a?b:df}var -s5="placeholder";function -s7(a){return aP(eV,a)}function -s_(a){return aP(eW,a)}function -s$(a){return aP(eX,a)}function -ta(a){return a["ownerDocument"]}if(!bO(bn))bn[jA];function -tb(a,b){a.appendChild(b);return 0}function -tc(a,b,c,d){var -g=b,f=c,e=d;for(;;){if(!e){if(0!==g)a.setAttribute(jr,hP([0,";"],a1(g)));if(0!==f)a.setAttribute(ko,hP([0,aC],a1(f)));return}var -h=e[2],k=e[1],i=k[2],j=k[1];if(eO(j))e=h;else if(db(j,h1)){g=[0,i,g];e=h}else if(db(j,cg)){var -l=eO(i)?f:[0,i,f];f=l;e=h}else{a.setAttribute(j,i);e=h}}}function -h3(a,b,c,d){var -f=a?a[1]:bn,g=b?b[1]:0,e=f.createElement(c);tc(e,0,0,g);a2(function(a){return tb(e,a)},d);return e}function -bo(a,b){var -c=a?a[1]:bn;return c.createTextNode(J(b))}function -h4(a,b,c){return eO(a)?0:b?(c.setAttribute(a,b[1]),0):(c.removeAttribute(a),0)}function -h5(a,b,c){return b?(c[jf].add(a),0):(c[jf].remove(a),0)}var -h6="div";function -tm(a,b,c,d){return h3(b,c,a,d)}function -h7(a){return a[jA]}function -dh(a,b,c){dT(a,b,c);return 0}var -di=k[kG];function -dj(a){return zt(function(a,b,c){var -e=b,d=c;for(;;){if(!d)return a;var -f=d[2];a[e]=d[1];e=e+1|0;d=f}}(eR(0),0,a))}function -W(a){return dh(di,tq,dj(a))}function -eY(a){return dh(di,tv,dj(a))}k[kG];k["navigator"];var -ty=k["performance"],dk=k[kj];sM(k,tz);function -td(a,b){dT(a,kx,gH(b));return}function -te(a,b,c){var -e=a?a[1]:k[kj],d=e.getComputedStyle(c)[b];return bO(d)?bl:d}function -tf(a,b){var -c=a?a[1]:kb,d=kb<=c?1:0;b.scrollIntoView(!!d);return 0}var -tg="button",th="form",ti=j6,tj="label",tk="option",tl="select";function -tn(a,b,c){return tm(h6,a,b,c)}function -to(a){var -b=a["body"];return hQ(b)?b:sQ(0,"Document body is null. Try to defer your script execution.")}function -tp(a){return dc(function(a){return a},a["activeElement"])}function -tr(a){return dh(di,ts,dj(a))}function -tt(a){return dh(di,tu,dj(a))}function -tw(a){return a}function -tx(a){return a.now()}function -tA(a,b){return k.setTimeout(bv(1,b),a)}function -tB(a){k.clearTimeout(a);return}function -tC(a){k.requestAnimationFrame(bv(1,a));return}k["ClipboardItem"];k["FormData"];k["Headers"];k["Request"];k["Response"];k["fetch"];k["MediaStream"];k["MediaRecorder"];k["MessageChannel"];k["BroadcastChannel"];k["Notification"];k["WebSocket"];function -tD(a){return a["localStorage"]}function -tE(a,b){function -c(a){return a}return function(a){return dc(c,a)}(a.getItem(b))}function -tF(a,b,c){try{a.setItem(b,c);return}catch(f){var -d=L(f);if(d[1]===es)return;throw g(d,0)}}function -aA(a,b,c){return[0,a,b,c]}function -h8(a){var -b=a[1];return 82===b?gr(cY(a[2])):83<=b?gr(cY(a[2])):1}function -dl(a){return cH(cY(a))}function -tG(a){return d4(cI(function(a){var -b=a[1];return 82===b?[0,dl(a[2]),0]:83<=b?hN(dl(a[2])):[0,a[2],0]},a))}function -h9(a){if(!a)return tH;var -b=lQ(h8,a),c=b[2];return[0,tG(b[1]),c]}var -h_=kx,eZ="before";function -tK(a){return[0,a]}function -tL(a,b){return[1,eP,a,b]}var -tM="remove",tN="contains";function -h$(a){var -b=tp(ta(a));return b?bm(a,tN,[0,b[1]])|0:0}function -ia(e,b){var -c=[0,c9(tK,tL)];return l(b,function(a){var -b=eL(c[1],a),d=b[2],g=b[1];c[1]=d;c$(v,function(a,b){return 0===a[0]?a[1][dw]=sL:0},g,0);var -h=h$(e),i=c_(d);if(i){var -f=function(d,b){if(0!==b[0]){if(!cf(b[1]))return b[1];var -l=f(d,b[3]),k=f(l,b[2]);b[1]=k;return k}var -c=b[1];delete -c[dw];if(c.parentNode!==e)if(cf(d))bm(e,h_,[0,c]);else -bm(d,eZ,[0,c]);else{var -a=c.nextSibling!==d?1:0;if(a){if(h)var -g=h$(c),i=g?function(a){for(;;){var -b=c.nextSibling;if(b===d)return 1;if(cf(b))return 0;bm(c,eZ,[0,b])}}(0):g;else -var -i=h;var -j=1-i}else -var -j=a;if(j)if(cf(d))bm(e,h_,[0,c]);else -bm(d,eZ,[0,c])}return c};f(eP,i[1])}c$(v,function(a,b){if(0!==a[0])return 0;var -c=a[1],d=hQ(c[dw]),e=d?(delete -c[dw],bm(c,tM,[0]),0):d;return e},g,0);return e})}var -dm=Q(0),e0=[0,bl,bl];function -tI(a){if(!a)return tJ;var -b=a[1],c=b[1];if(82===c){if(!a[2])return[0,0,[0,l(b[2],I)]]}else -if(83<=c){if(!a[2])return[0,0,[0,b[2]]]}else if(!a[2])return[0,[0,b[2],0],0];return lN(h8,a)?[0,d4(cI(function(a){var -b=a[1];return 82===b?[0,dl(a[2]),0]:83<=b?hN(dl(a[2])):[0,a[2],0]},a)),0]:[0,0,[0,c1(function(a){var -b=a[1];return 82===b?l(a[2],I):83<=b?a[2]:Q(I(a[2]))},hO,a)]]}function -ib(c,b){function -d(a){var -b=a[2],d=a[1];return db(d,cg)?h5(b,1,c):h4(d,[0,b],c)}function -e(a){var -b=a[1],d=a[2];return db(b,cg)?h5(d,0,c):h4(b,0,c)}function -h(a){var -b=[0,e0];return function(a){if(b[1]!==e0)e(b[1]);var -c=hZ(a);d(c);b[1]=c;return 0}}return c1(function(a){var -b=a[1];if(82===b){var -i=a[2];return l(i,h(0))}if(83>b)throw g([0,f,tO],1);var -j=a[2],c=[0,c9(function(a){var -b=hZ(a);d(b);return b},function(a,b){return e0})];return l(j,function(a){var -b=eL(c[1],a),d=b[2],f=b[1];c[1]=d;c$(v,function(a,b){return e(a)},f,0);c_(d);return 0})},[0,dm,function(a,b){return dm}],b)}function -e1(a,b){return hW(b[1],b[2],b[3],a)}function -tP(c,b){return c1(function(a){var -b=a[1];if(82===b){var -d=[0,0];return l(a[2],function(a){var -b=d[1];if(b)hX(b[1]);d[1]=[0,e1(c,a)];return 0})}if(83>b)throw g([0,f,tQ],1);var -h=a[2],e=[0,c9(function(a){return e1(c,a)},function(a,b){return a})];return l(h,function(a){var -b=eL(e[1],a),c=b[2],d=b[1];e[1]=c;c$(v,function(a,b){return hX(a)},d,0);c_(c);return 0})},[0,dm,function(a,b){return dm}],b)}function -ic(a,b,c,d,e,f){var -q=b?b[1]:0,r=c?c[1]:0,s=d?d[1]:function(a){return},m=h9(q),k=m[2],t=m[1],n=h9(r),o=n[2],u=n[1],p=tI(f),i=p[2],g=h3(a,[0,t],e,p[1]);h(s,g);if(k)if(i)var -v=ia(g,i[1]),j=b_(ib(g,k),v,function(a,b){return b});else -var -j=l(ib(g,k),function(a){return g});else -var -j=i?ia(g,i[1]):Q(g);a2(function(a){e1(g,a);return 0},u);var -w=o?b_(tP(g,o),j,function(a,b){return b}):j;return w}function -bP(a,b,c,d,e,f){return ic(b,c,d,e,a,f)}function -tR(a,b,c,d,e,f){return ic(b,c,d,e,a,0)}function -e2(a,b,c,d,e){return bP(tg,a,b,c,d,e)}function -X(a,b,c,d,e){return bP(h6,a,b,c,d,e)}function -id(a,b,c,d,e){return tR(ti,a,b,c,d,e)}function -ie(a,b,c,d,e){return bP(tj,a,b,c,d,e)}function -tS(a,b,c,d,e){return bP(th,a,b,c,d,e)}function -tT(a,b,c,d,e){return bP(tk,a,b,c,d,e)}function -tU(a,b,c,d,e){return bP(tl,a,b,c,d,e)}function -dn(a,b){return b=c)return t$;if(b==="bold")return t_;if(b==="cyan")return t9;if(b==="green")return t8;if(b==="magenta")return t7;if(b==="red")return t6;if(b==="reset")return t5;if(b==="white")return t4;if(b==="yellow")return t3}else{if(b==="Black")return ui;if(b==="Blue")return uh;if(b==="Cyan")return ug;if(b==="Green")return uf;if(b==="Magenta")return ue;if(b==="Red")return ud;if(b==="White")return uc;if(b==="Yellow")return ub;if(b==="black")return ua}throw g(e4,1)}function -ii(a,b){a3(b,a);return uk}function -ij(a){try{ms(a);mt(a)}catch(f){var -b=L(f);if(b!==d_)throw g(b,0)}return ul}var -ik=[q,um,af(0)],uj=0;function -un(a,b,c){if(c[1]===ik)return ii(a,c[2]);if(c[1]!==b7)return h(b,c);var -e=c[2];try{var -f=ii(a,ih(e));return f}catch(f){var -d=L(f);if(d===e4)return h(b,c);throw g(d,0)}}function -uo(a,b,c){if(c[1]===ik)return ij(a);if(c[1]!==b7)return h(b,c);var -e=c[2];try{ih(e)}catch(f){var -d=L(f);if(d===e4)return h(b,c);throw g(d,0)}return ij(a)}function -up(a){var -c=bz(0);pZ(a,1);var -b=p0(a,0),d=b[2],e=b[1];return p1(a,[0,function(a){return un(c,e,a)},function(a){return uo(c,d,a)},b[3],b[4]])}function -uq(a,b){var -d=b4(64),c=er(d),e=a?uj:a;if(e)up(c);return qv(function(a){bG(c,0);return cM(d)},c,b)}function -ur(a){return uq(1,a)}function -us(a,b){return lS(a,b)}function -ut(a){try{var -c=[0,kZ(a)];return c}catch(f){var -b=L(f);if(b[1]===bZ)return 0;throw g(b,0)}}function -uu(a){return a|0}function -uw(a,b,c,d){var -g=a,f=b,e=d;for(;;){if(!e){g[1+f]=0;return}var -j=e[2],i=[0,h(c,e[1]),ka];g[1+f]=i;g=i;f=1;e=j}}function -uv(a,b){if(!b)return 0;var -d=b[2],c=[0,h(a,b[1]),ka];uw(c,1,a,d);return c}function -e5(a,b){return b?[0,h(a,b[1])]:0}function -ux(a,b,c){return c?h(b,c[1]):a}function -uy(a,b){if(b)return h(a,b[1]);return}function -uz(a,b){return b?b[1]:a}function -uA(a,b){return a?a[1]:b}function -uB(a){return a?[0,a[1],0]:0}function -uC(a,b){return 0===b[0]?h(a,b[1]):[1,b[1]]}function -uD(a,b){return uC(b,a)}function -uE(a){var -b=mk(a);return[0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,b[37],,,,,,,,,,,b[23]]}function -uF(a){var -b=uE(a);return[0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,b[40],,,,,,,,,,,,,,,,,,,,b[51]]}function -uG(e,b){var -d=n(e);if(dn(d,n(b)))return 0;var -f=n(b)-d|0;return function(a){var -c=a;for(;;){if(tV(c,d))return 1;if($(b,f+c|0)!==$(e,c))return 0;c=c+1|0}}(0)}function -e6(a,b){return uG(a,b)?[0,d7(b,0,n(b)-n(a)|0)]:0}var -il=[q,uI,af(0)];function -im(a){return[0,[0,a]]}function -bp(a,b,c,d){return[1,a,b,c,d]}function -uK(a){if(0===a[0]&&typeof -a[1]==="number")return 1;return 0}function -io(a,b){if(0===b[0]){var -c=b[1];if(typeof -c==="number")return im(a);switch(c[0]){case -0:return[0,[1,a,c[1]]];case -1:return[0,[2,a,c[1],c[2]]];default:return bp(4,[1,a,c[1]],uJ,[1,c[2],c[3]])}}var -d=b[2],f=b[1];if(typeof -d!=="number")switch(d[0]){case -0:break;case -1:return bp(f+1|0,[2,a,d[1],d[2]],b[3],b[4]);default:var -e=b[3],h=d[3],i=d[2],j=d[1],g=aw(e),k=aB===g?e[1]:ba===g?cG(e):e;return bp(f+1|0,[1,a,j],[ba,function(a){return io([0,i,h],k)}],b[4])}return bp(f+1|0,[1,a,d[1]],b[3],b[4])}function -ip(a){if(0===a[0]){var -b=a[1];if(typeof -b==="number")throw g(il,1);switch(b[0]){case -0:return[0,uH,b[1]];case -1:var -n=b[2];return[0,im(b[1]),n];default:return[0,[0,[1,b[1],b[2]]],b[3]]}}var -d=a[3],e=a[2],f=a[1],i=aw(d),j=aB===i?d[1]:ba===i?cG(d):d,h=a[4];if(typeof -h!=="number"&&0!==h[0]){var -c=a[4];if(typeof -c!=="number"&&2===c[0]){var -q=c[3];return[0,bp(f-1|0,e,d,[1,c[1],c[2]]),q]}var -p=c[2];return[0,bp(f-1|0,e,d,[0,c[1]]),p]}var -k=h[1];if(uK(j))return[0,[0,e],k];var -l=ip(j),m=l[2],o=[1,m[1],m[2]];return[0,bp(f-1|0,e,lu(l[1]),o),k]}function -uM(a){if(typeof -a==="number")return 0;switch(a[0]){case -0:return 1;case -1:return 2;default:return 3}}function -uL(a){try{var -c=[0,ip(a)];return c}catch(f){var -b=L(f);if(b===il)return 0;throw g(b,0)}}function -uN(a){return 0===a[0]?uM(a[1]):a[1]}function -uO(a){return a["height"]}function -uP(a){return a}function -uS(a){switch(a){case -0:return uT;case -1:return uU;default:return uV}}function -uQ(a){return uP(a["contentRect"])}function -uR(a){a[fs];return}function -uW(a,b,c){var -d=b?[0,c,{box:J(uS(b[1]))}]:[0,c];dT(a,"observe",d);return 0}function -uX(c){return new -k["ResizeObserver"](function(a,b){return i(c,sO(function(a){return a},a),b)})}var -uY=jn,uZ="pattern",iq=uF([0,d8]);function -u0(a,b){h(a,b);return b}function -u1(a){var -b=e6(u2,a);if(b){var -c=b[1],d=ut(c);if(d)return[0,[0,d[1]]];var -g=function(a){return[0,a]};return function(a){return e5(g,a)}(e3(c))}var -e=e6(u3,a);if(e){var -h=function(a){return[1,a]};return function(a){return e5(h,a)}(e3(e[1]))}var -f=e6(u4,a);if(!f)return 0;function -i(a){return[1,a]}return function(a){return e5(i,a)}(e3(f[1]))}function -ir(a){switch(a[0]){case -0:var -b=a[1];return h(B(u5),b);case -1:var -c=a[1];return h(B(u6),c);default:var -d=a[1];return h(B(u7),d)}}function -is(a){var -c=a?a[1]:h7(bn);function -b(a){var -b=u1(as(te(0,"font-size",a)));if(!b)return 16.;var -c=b[1];return 0===c[0]?c[1]:aI(u8)}return function(a){switch(a[0]){case -0:return a[1];case -1:var -d=a[1];return d*b(h7(bn));default:var -e=a[1];return e*b(c)}}}function -u9(e,b,c,d){function -f(a,b){return b_(d,a,b)}function -g(a,b){return x(e,b[1],b[2],a)}return function(a){return f(a,g)}(b_(b,c,function(a,b){return[0,a,b]}))}var -va=[q,u$,af(0)],vc=[q,vb,af(0)];function -it(a){return[0,0]}function -iu(a,b){if(a[1])throw g(vc,1);a[1]=[0,b];return 0}function -iv(a){var -b=a[1];if(b)return b[1];throw g(va,1)}function -u_(a,b,c){return u9(function(a,b,c){return[0,a,b,c]},a,b,c)}function -vd(a){return s1(a)}function -ve(a){var -b=s2(a);return 0===b[0]?[0,b[1]]:(tr([0,b[1],0]),vf)}var -iw=em(0,64),ix=tD(dk);function -vg(a){return pH(iw,a)?aI(h(B(vh),a)):pE(iw,a,0)}function -iy(c,b){return function(a){return tF(ix,c,a)}(vd(b))}function -vi(a){var -b=tE(ix,a);function -c(a){return ve(a)}var -d=b?[0,b[1]]:vj;return uD(d,c)}function -vk(a,b){var -c=vi(a);if(0===c[0])return c[1];var -d=c[1];return typeof -d==="number"?h(b,0):(tt([0,d[2],0]),h(b,0))}function -vl(d,b){iy(d,b);var -a=am(b),c=ew(0,aN(a));ex(c,function(a){iy(d,bL(c));return 0});bL(c);return a}function -vm(a,b){vg(a);var -c=G(a);return vl(c,vk(c,b))}function -iz(a,b){return vm(a,function(a){return b})}var -vo=iq[49],vn=iq[29];function -vp(a){return uv(function(a){return[0,80,a6(G(a))]},vo(a))}var -vq=0;function -a7(d,b,c){var -a=b[1],e=82===a?[0,82,l(b[2],function(a){return function(a){return aP(d,a)}(G(a))})]:83<=a?aI(vt):[0,80,function(a){return aP(d,a)}(G(b[2]))];return[0,e,c]}function -e7(d,b,c){return b?[0,[0,80,function(a){return aP(d,a)}(G(b[1]))],c]:c}function -iA(a,b){var -c=b[1];return 82===c?[0,82,l(b[2],a)]:83<=c?[0,83,eN(a,b[2])]:[0,80,h(a,b[2])]}function -vv(a){return 0===a[0]?a6(G(a[1])):a[1]}function -e8(a,b){return[0,iA(vv,a),b]}function -aQ(a){return e8(a,0)}function -dp(a,b){return e8(a,b)}function -vr(a,b){var -d=vp(b[1]),e=b[2],c=function(a){return by(e,a)}(d);return a?[0,[0,80,s7(G(a[1]))],c]:c}function -vs(a){return[0,vn(a),vq]}function -vu(a,b,c){return b?[0,[0,80,a],c]:c}function -vw(a){return e8(iA(function(a){return[0,a]},a),0)}function -vx(a,b){return 0===b[0]?(a.scroll(0,b[1]),0):tf(0,b[1])}function -vy(a,b,c,d,e){var -g=a?a[1]:0,h=b?b[1]:0,f=am(1),i=dp(vz,dp([0,82,l(aN(f),function(a){return a?[1,a6("locked")]:[1,df]})],g)),j=vw(vA),k=[0,[0,80,aA(0,de,function(a){return ad(f,1)})],0],m=X(0,[0,j],[0,k],0,[0,[0,82,e2(0,0,0,0,[0,[0,80,bo(0,vB)],0])],0]),n=aA(0,s0,function(a){var -b=bJ(f);return b?ad(f,0):b});return X(0,[0,i],[0,[0,[0,80,n],h]],c,[0,[0,82,l(u_(e,aN(f),d),function(a){var -b=a[1],c=a[3];if(a[2])uy(function(a){return vx(b,a)},c);return b})],[0,[0,82,m],0]])}function -e9(a,b){return typeof -b==="number"?0:0===b[0]?[0,h(a,b[1])]:[1,b[1]]}function -vC(e,b,c){var -d=am(c);return[0,aA(0,b,function(a){return ad(d,h(e,eS(a)[dx]))}),d]}function -iB(a,b,c,d,e,f,g,h,i,j){var -l=d?d[1]:0,m=f?f[1]:0,n=function(a){return e7(uZ,h,a)}(function(a){return vu(s8,m,a)}([0,[0,80,s_(G(i))],l])),o=uA(b,function(a){return[0,a]}),k=vC(a,g,j),p=k[2],q=k[1];return[0,id(c,[0,n],[0,[0,[0,80,q],uB(e)]],0,0),p,o]}function -e_(a,b,c,d,e,f,g,h){var -i=c?c[1]:0,j=function(a){return e7(eX,h,a)}(function(a){return e7(s5,g,a)}(i));return iB(au,a,b,[0,j],d,e,sY,f,vE,uz(vD,h))}function -dq(a,b,c,d){var -e=b?b[1]:0;return iB(function(a){return 0},0,a,[0,a7(eX,d,e)],c,0,eT,0,vF,0)}function -aR(a,b){return l(a,function(a){return[0,a,b]})}function -dr(a,b,c,d){return function(g){var -i=[0,[0,cc,function(a){return a}],function(a,b){var -c=b[2],d=a[2];return[0,az(a[1],b[1]),function(a){return h(c,h(d,a))}]}];function -j(a){var -b=a[1],c=a[2];function -d(a){var -c=bJ(b[2]);return h(b[3],c)}return[0,I(b[1]),function(a){var -b=d(0);return h(h(c,a),b)}]}var -e=function(a){return bj(j,i,a)}(bk(d[2])),f=[0,82,l(e,function(a){var -b=a[2];return aA(0,uY,function(a){h(g,h(b,d[1]));return sW(a)})})],k=l(e,function(a){return a[1]}),m=ux([0,f,0],function(a){return lH(f,a)},c);return tS(a,b,[0,m],0,[0,[0,83,bk(k)],0])}}function -iC(a,b){return a?h(B(vG),b):b}function -vH(a,b,c,d){var -e=a?a[1]:1,f=b?b[1]:0,g=c?c[1]:0;return function(a){var -b=iC(1,d[1]),h=iC(0,d[1]),c=e?iz(b,d[2]):am(d[2]),i=d[3];ie(0,[0,[0,[0,80,h2(G(b))],0]],0,0,i);var -j=[0,80,h],k=function(a){return a7(eW,vI,a)}(function(a){return a7(h0,j,a)}(a7(eV,[0,80,b],f))),m=[0,[0,80,aA(0,eT,function(a){return ad(c,au(eS(a)[dx]))})],g];return[0,tU(0,[0,k],[0,m],0,[0,[0,83,bk(eN(function(a){var -b=a[1],d=a[2],e=aQ([0,80,[1,s$(G(b))]]),f=dp([0,82,l(aN(c),function(a){return[1,s3(tZ(a,b),s9)]})],e);return tT(0,[0,f],0,0,[0,[0,80,bo(0,d)],0])},a))],0]),,c]}}function -iD(a,b,c,d,e,f,g){var -m=b?b[1]:0,n=c?c[1]:function(a){return},j=h(ur(vJ),d);function -k(a){return a?[0,e]:0}a:{if(a&&a[1]){var -o=iz(j,k(g)),i=o;break a}var -i=am(k(g))}var -p=ie(0,[0,[0,[0,80,h2(G(j))],0]],0,0,f),q=[0,80,d],r=function(a){return a7(eW,vK,a)}(function(a){return a7(h0,q,a)}(a7(eV,[0,80,j],0))),s=[0,[0,82,l(aN(i),function(a){return a?s6:df})],r];return[0,X(0,0,0,0,[0,[0,82,id(0,[0,s],[0,[0,[0,80,aA(0,eT,function(a){var -b=k(eS(a)[je]|0);h(n,b);return ad(i,b)})],m]],0,0)],[0,[0,82,p],0]]),i]}function -vL(a){var -d=d9(a);return[0,,function(a){return uN(a[1])},function(a){return},,function(a,b,c){var -e=d[4].call(null,b,c,a[2]);return[0,io(b,a[1]),e]},function(a){var -c=uL(a[1]);if(!c)return[0,a,0];var -e=c[1],b=e[2],f=e[1],g=[0,[0,b,d[28].call(null,b,a[2])]];return[0,[0,f,d[7].call(null,b,a[2])],g]},function(a,b){return d[29].call(null,b,a[2])}]}function -vM(a){var -b=vL(a);return[0,function(a){b[3].call(null,0);b[3].call(null,0);return}]}function -vO(a){return bj(function(a){return I(X(0,0,0,0,a[3]))},aO,a)}function -vP(a){return c0(bj(function(a){return a[2]},[0,vT,function(a,b){return i(B(vS),a,b)}],a),function(a){return i(B(vR),vQ,a)})}is(0)(vX);function -vN(a,b,c){return[0,a,b,c]}function -vU(a){return vP(a[1][1])}function -vV(a){var -b=ir(a[2]),c=[0,[0,80,a6(jd)],0],d=[0,[0,80,a6("lwdui-lazy-table-header")],c],e=[0,[0,80,dg(G(h(B(vW),b)))],d];return X(0,[0,e],0,0,[0,[0,83,bk(vO(a[1][1]))],0])}var -vY=vM([0,us]),e$=k["yjs"];function -vZ(d,b,c){return function(a){var -r=a[3],s=a[2],f=it(0),g=it(0),k=ir(d[2]),u=h(B(v1),k),v=cb(function(a,b){return I([0,eA(a),a,r])},aO,s);em(0,2048);(function(a){return vY[1].call(null,50)}(0));var -e=am(0),m=Q(function(a){return a}),b=ew(0,qG(m,aN(e)));ex(b,function(a){var -c=bL(b);return c[2]?h(c[1],0):0});bL(b);function -t(a){return i(B(v0),k,a)}function -j(a){var -b=[0,a6("row_spacer"),0];return tn(0,[0,[0,dg(G(t(a))),b]],0)}var -w=l(bj(function(a){var -b=a[1],c=a[3],d=a[2],e=a7(cg,v2,0),f=[0,80,dg(G(u))];return b?[0,0,I(X(0,[0,[0,f,e]],0,0,[0,[0,83,bk(i(c,d,b[1]))],0])),0]:[0,1,cc,0]},[0,[0,0,cc,0],function(a,b){var -f=b[3],g=b[2],c=b[1],d=a[3],e=a[2],h=a[1],k=hB(e),i=hB(g);if(typeof -k==="number")return typeof -i==="number"?[0,((h+d|0)+c|0)+f|0,e,0]:[0,(h+d|0)+c|0,g,f];if(typeof -i==="number")return[0,h,e,(d+c|0)+f|0];var -l=dn(d+c|0,0)?function(a){return az(e,a)}(az(I(Q(j(d+c|0))),g)):az(e,g);return[0,h,l,f]}],v),function(a){var -b=a[3],c=a[2],d=a[1],e=dn(d,0)?az(I(Q(j(d))),c):c;return dn(b,0)?az(e,I(Q(j(b)))):e}),x=vV(d),y=uX(function(a,b){var -d=lI(a);uR(d);var -c=uO(uQ(d)),f=bJ(e);return f?tW(f[1],c)?ad(e,[0,c]):0:ad(e,[0,c])}),z=aQ(v3),n=X(0,[0,z],0,[0,function(a){return iu(f,a)}],[0,[0,83,bk(w)],0]),o=aQ(v4),p=[0,[0,82,l(m,function(c){return aA(0,sZ,function(a){var -d=[0,0.],b=[0,-1];function -e(e){var -a=800,f=tx(ty);if(tX(b[1],0))tB(b[1]);b[1]=tA(a,function(a){return h(c,e)});var -g=tY(f-d[1],a);return g?(d[1]=f,h(c,e)):g}iv(g);(function(a){return e(a)}(0));return 0})})],0];function -q(a){return iu(g,a)}var -A=c?vy([0,o],[0,p],[0,q],l(c[1],function(a){var -b=iv(f),c=d[2];return[0,[0,cy(a,uu(is([0,b])(c)))]]}),n):X(0,[0,o],[0,p],[0,q],[0,[0,82,n],0]);function -C(a){return uW(y,0,a)}function -D(a){return u0(C,a)}var -E=function(a){return l(a,D)}(A),F=vr(0,vs(v5));return X(0,[0,[0,[0,82,l(vU(d),function(a){return dg(G(a))})],F]],0,0,[0,[0,82,x],[0,[0,82,E],0]])}}var -fa=d9([0,d8]),fb=e$[jM],fc=e$["Map"],bQ=hh(v9,v8),a8=hh(v$,v_);function -v6(a,b){return[0,a,b]}function -iE(a){return dd(a,fb)?[0,aU,a]:dd(a,fc)?[0,v,a]:[0,S,a]}function -wa(a){var -b=eQ(a,wb);if(b)return[0,b[1]];var -c=eQ(a,wc);if(c)return[1,hS(iE,c[1])];var -d=eQ(a,wd);if(d)return[2,d[1]];throw g([0,f,we],1)}hj(wf,bQ,[0,function(a){return new -fb},function(a,b,c){a.insert(b,hT(function(a){var -b=a[1];return v===b?a[2]:aU<=b?a[2]:a[2]},c));return 0},function(a,b,c){a.delete(b,c);return 0},function(a,b){a.push(hT(function(a){var -b=a[1];return v===b?a[2]:aU<=b?a[2]:a[2]},b));return 0},function(a,d){a.forEach(function(a,b,c){return x(d,b,iE(a),c)});return 0},function(a,b){function -c(a){return h(b,v6(wa,a))}a.observe(c);return c}]);function -fd(a){return dd(a,fb)?[0,aU,a]:dd(a,fc)?[0,v,a]:[0,S,a]}function -iF(a,b){return function(a){return dc(fd,a)}(a.get(J(b)))}function -wg(a){return a}function -wh(a){return wg(a[fs])}function -wi(a){var -b=au(a["action"]);if(b!=="add")if(b!==jx){if(b!=="update")throw g([0,cD,h(B(wj),b)],1);var -c=1}else -var -c=2;else -var -c=0;var -d=a["oldValue"],e=bO(d)?0:[0,fd(d)];return[0,c,0,e]}function -iG(a){return sS(a.entries())}hj(wk,a8,[0,function(a){return new -fc},[0,function(d){var -a=d[jE]["keys"].entries();return hV(au,wi,function(a,b,c){var -e=iF(wh(d),a);return fa[4].call(null,a,[0,b[1],e,b[3]],c)},a,fa[1])}],iF,function(a,b,c){var -d=c[1],e=v===d?c[2]:aU<=d?c[2]:c[2];a.set(J(b),e);return 0},function(a,b){a.delete(J(b));return 0},iG,function(a,d,c){return hV(au,fd,function(a,b,c){return x(d,a,b,c)},iG(a),c)},function(a,b){function -c(a){return h(b,a)}a.observe(c);return c}]);var -wl=e$["Doc"];function -iH(a,b){return a.getArray(J(b))}function -bq(a,b){a.transact(bv(1,b));return 0}function -iI(a){return a}var -ai=a8[4],a9=a8[3],ch=a8[1],ds=bQ[5],fe=bQ[4],iJ=bQ[3],iK=bQ[1];function -v7(a){var -b=a[1];return[0,function(a){return hS(b,a)}(a[2][jE]["delta"])]}function -wm(a){return new -wl}var -wn=a8[8],wo=a8[7],wp=a8[5],wq=a8[2][1],wr=bQ[6],ws=k["IndexeddbPersistence"];function -wt(a,b){var -c=iI(b);new -ws(J(a),c);return}var -wu=k["WebrtcProvider"];function -wv(a,b,c){var -e=lw(function(a){return[0,ww,hU(J,a)]},b),d=[0,[0,wz,{config:{iceServers:hU(function(a){return a},cI(function(a){return{urls:J(h(B(wy),a))}},wx))}}]];W([0,d,0]);var -f=zs(gH(lP(function(a){return a})([0,e,[0,d,0]]))),g=iI(c);return new -wu(J(a),g,f)}function -wA(a,b,c){return x(ei(t,wB),b,c,a)}function -iL(a,b,c){var -d=0<=c?1:0;if(d)var -e=0<=b?1:0,f=e?(b+c|0)<=a?1:0:e;else -var -f=d;var -g=1-f;return g?wA(a,b,c):g}var -wC=[0];function -wD(a,b,c,d){var -e=ap(a,b);cL(c,0,e,0,d);return e}function -iM(a,b){return b<=a?a:b}function -iN(a){return ei(t,a)}function -wE(a,b){var -c=a[1];return i(iN(wF),b,c)}function -wG(a,b){return i(iN(wH),a,b.length-1)}function -ci(a,b){var -c=1-(a<=b.length-1?1:0);return c?wG(a,b):c}function -iO(a){return[0,0,0,wC]}function -cj(a){return a[1]}function -wI(a,b){return a[3][1+b]}function -iP(a){var -b=a[1],c=a[3];ci(b,c);if(0>>4|0)));var -f=b+1|0;function -i(a,b,c){aY(a,b,c);return}return function(a){return i(d,f,a)}(h(g,c&15))}for(;;){if(4<=d[1])break;var -n=y(b,d[1]);f(e,c[1],n);c[1]=c[1]+2|0;d[1]++}c[1]++;for(;;){if(6<=d[1])break;var -m=y(b,d[1]);f(e,c[1],m);c[1]=c[1]+2|0;d[1]++}c[1]++;for(;;){if(8<=d[1])break;var -l=y(b,d[1]);f(e,c[1],l);c[1]=c[1]+2|0;d[1]++}c[1]++;for(;;){if(10<=d[1])break;var -k=y(b,d[1]);f(e,c[1],k);c[1]=c[1]+2|0;d[1]++}c[1]++;for(;;){if(16<=d[1])return aa(e);var -j=y(b,d[1]);f(e,c[1],j);c[1]=c[1]+2|0;d[1]++}}var -wV=gQ(0),an=wm(0),dt=wv(wY,wX,an);wt(wZ,an);dk["yjsdoc"]=an;dk["yjsprovider"]=dt;dt.on(J(w1),bv(1,function(a){return W(w0)}));dt.on(J(w3),bv(1,function(a){return W([0,w2,[0,a,0]])}));dt.on(J(w5),bv(1,function(a){return W([0,w4,[0,a,0]])}));function -wW(a){return wS(wV,0)}function -w6(a,b){var -c=a?a[1]:64,d=hs(0);return[0,d,em(0,c)]}function -iS(a,b,c){var -e=gX(a[2],b);if(e)var -d=e[1];else{var -g=ez(0,a[1]);gY(a[2],b,g);var -d=g}var -f=eA(d);return f?ad(f[1][2],[0,c]):rv(d,[0,b,am([0,c])])}function -fg(a,b){var -c=gX(a[2],b);if(c)var -d=c[1];else{var -f=a[1],e=ez([0,[0,b,am(0)]],f);gY(a[2],b,e);var -d=e}return aN(cH(eA(d))[2])}function -fh(a,b){return l(fg(a,b),function(a){if(!a)return 0;var -b=a[1];if(typeof -b!=="number"&&S===b[1])return[0,au(b[2])];throw g([0,f,w7],1)})}function -w8(a){var -b=hs(0);return[0,b,iO(0)]}function -w9(a){try{var -c=[0,iR(a[2],0)];return c}catch(f){var -b=L(f);if(b[1]===cD)return 0;throw g(b,0)}}function -iT(a,b){var -c=ez(a,b[1]);return wL(b[2],c)}function -iU(a,b,c,d){var -e=[0,b,[0,c,[0,cj(d),0]]];eY([0,w_,[0,cj(a),e]]);var -f=cj(d),g=iR(a,0);ff(d,gE(c,function(a){return g}));return wP(a,b,d,f,c)}function -w$(i,b,c){var -e=[0,0],j=i[2],d=iO(0);gF(function(a){switch(a[0]){case -0:var -m=a[1];iU(j,e[1],m,d);e[1]=e[1]+m|0;return 0;case -1:var -c=a[1];if(0!==cj(d)){var -o=[0,iP(d)];return ff(d,gG(function(a){var -d=h(b,a),c=rr([0,d],o[1]);o[1]=c;return c},c))}var -n=w9(i);if(!n)return gF(function(a){var -c=h(b,a);return iT([0,c],[0,i[1],d])},c);var -s=n[1];return ff(d,gG(function(a){return rp([0,h(b,a)],s)},c));default:var -k=a[1],t=0===e[1]?r_(i[1]):hz(iP(d)),p=[0,t],u=1;if(k>=1){var -l=u;for(;;){var -q=p[1];if(!q)throw g([0,f,xa],1);var -r=q[1];p[1]=hz(r);ry(r);var -v=l+1|0;if(k===l)break;l=v}}e[1]=e[1]+k|0;return 0}},c);var -k=e[1],a=cj(j)-k|0;if(0d[1])return[0,[0,a,iY(d[2])],c];var -e=d[2];W([0,yq,[0,!!e,0]]);return[0,[0,a,iZ(e)],c]}throw g([0,f,yp],1)},a,0))]])})}function -yr(d,b,c){return[0,[0,eN(function(a){var -e=a[1],c=l(a[3],function(a){return bo(0,a)}),f=[0,[0,80,bo(0,yw)],0];return vN(yy,yx,[0,[0,82,c],[0,[0,82,e2(0,0,[0,[0,[0,80,aA(0,de,function(a){function -c(e){var -h=[q,yt,af(0)];try{i(ds,d,function(a,b,c){if(typeof -b!=="number"&&v===b[1]){var -k=b[2];W(yu);var -f=i(a9,k,fl);if(f){var -d=f[1];if(typeof -d!=="number"&&S===d[1]){var -j=d[2];W([0,yv,[0,au(j),[0,e,0]]]);if(l_(e,au(j)))throw g([0,h,a],1)}}return 0}return 0});throw g(ax,1)}catch(f){var -a=L(f);if(a[1]===h)return a[2];throw g(a,0)}}return bq(an,function(a){x(iJ,d,c(e),1);return i(ds,b,function(a,b,c){if(typeof -b!=="number"&&v===b[1])return i(wp,b[2],e);return 0})})})],0]],0,f)],0]])},c)],ys]}function -yz(a){var -b=a[3];if(2!==b[0])return aI(yA);var -d=b[3],c=b[2],e=b[1],f=x1(c,b[4]),g=yg(d,c),h=x5(e,c),i=[0,[0,82,vZ(yr(e,c,cb(function(a,b){return I(b)},aO,d[1])),0,0)(f)],0],j=[0,[0,82,h],[0,[0,82,g],[0,[0,82,X(0,[0,aQ(yB)],0,0,i)],0]]];return X(0,[0,aQ(yC)],0,0,j)}function -xn(a){var -b=h(ch,0);bq(an,function(a){var -c=h(iK,0),d=h(iK,0);x(ai,b,i0,[0,aU,c]);return x(ai,b,i1,[0,aU,d])});return fk(fv,[0,v,b])}function -xq(d,b){var -c=h(ch,0);bq(an,function(a){x(ai,c,xr,[0,S,J(d)]);return x(ai,c,xs,[0,v,b])});return c}var -yD=cb(function(a,b){return I(yz(b))},aO,fj(function(a){if(typeof -a!=="number"&&v===a[1]){var -c=a[2],e=fh(fi(function(a,b){return b},c),xo),d=i(a9,c,xp);if(d){var -b=d[1];if(typeof -b!=="number"&&v===b[1]){var -h=i4(b[2]);return[0,xJ,e,h]}}throw g([0,f,xK],1)}throw g([0,f,xI],1)},iH(an,i3))[1]),yH=dr(0,0,0,[0,0,et(da([0,aR(Q(dq(0,0,0,yG)),function(a,b){return 0}),0]))])(function(a){var -b=function(a){return xq(yE,a)}(xn(0));i(fe,iH(an,i3),[0,[0,v,b]]);return W(yF)}),yI=[0,[0,82,yH],[0,[0,83,bk(yD)],0]],yK=X(0,[0,aQ(yJ)],0,0,yI);hW(0,sX,function(a){var -b=ew(0,yK),c=[0,bL(b),0];td(to(bn),c);return ex(b,function(a){tC(function(a){bL(b);return 0});return 0})},tw(dk));d2(0);return}(globalThis)); diff --git a/yjs/main.css b/yjs/main.css index eee9045..2c728df 100644 --- a/yjs/main.css +++ b/yjs/main.css @@ -1,5 +1,5 @@ body { - margin: 0; + margin: 0; } .flex { @@ -8,6 +8,7 @@ body { /* height: 100vh; */ padding: 1rem; } + .flex .table { flex-grow: 1; } @@ -57,9 +58,24 @@ body { position: relative; } -.lwdui-lazy-table .lwdui-virtual-table-row>div, .cell-edit-overlay { +.lwdui-lazy-table .lwdui-virtual-table-row>div, +.cell-edit-overlay { flex-direction: row; align-items: center; justify-content: space-between; padding: 1rem; } + +.inline-row-form { + display: flex; + flex-direction: row; +} + +.lwdui-virtual-table-row .cell:has(.ql-container) { + padding: 0; +} + +.lwdui-virtual-table-row .ql-container { + width: 100%; + height: 100%; +} \ No newline at end of file