diff --git a/browser-main.css b/browser-main.css
new file mode 100644
index 0000000..252827e
--- /dev/null
+++ b/browser-main.css
@@ -0,0 +1 @@
+html,body{margin:0;padding:0;font-family:"Calibri","Arial","Helvetica Neue",sans-serif;overflow:hidden}.page{display:grid;column-gap:8px;padding:8px;box-sizing:border-box;height:100vh;width:100vw;grid-template-columns:auto 20em;grid-template-rows:3em auto 3em;grid-template-areas:"header header" "canvas sidebar" "footer footer"}header{grid-area:header;display:flex}header h1{margin:0;flex-grow:1}.MSlogo{height:50px;vertical-align:middle;margin-bottom:3px}.sidebar{grid-area:sidebar;overflow-y:auto}footer{grid-area:footer}select,input[type=text]{padding:8px}.thingy{margin-top:10px;margin-bottom:10px}.thingy:first-child{margin-top:0}ul.navbar{display:flex;list-style-type:none;margin:0;padding:0;justify-content:flex-end}ul.navbar li{border-right:1px solid gray;margin-right:8px;padding-right:8px}ul.navbar li:last-child{border-right:none;padding-right:0;margin-right:0}.flex-widget{display:flex;flex-direction:column}.flex-widget label{margin-bottom:8px}.canvas{grid-area:canvas;display:flex;align-items:center;justify-content:center;overflow:hidden}.canvas.scrollable{display:block;overflow:auto}.sidebar .disabled{color:gray}.sidebar label.checkbox{display:block;margin-top:10px;margin-bottom:10px}.sidebar .color-widget{display:flex}.sidebar .color-widget label{flex-grow:1}.hover-debug-helper{font-family:"Consolas","Monaco",monospace;color:#fff;background:rgba(0,0,0,.75);padding:4px;margin-top:4px;margin-left:4px}.checkerboard-bg{background:#eee url('data:image/svg+xml,');background-size:20px 20px}.overlay-wrapper{position:fixed;display:flex;background-color:#000000e6;flex-direction:column;align-items:center;justify-content:center;color:#fff;top:0;left:0;bottom:0;right:0}
diff --git a/browser-main.js b/browser-main.js
index cdeab30..bfea570 100644
--- a/browser-main.js
+++ b/browser-main.js
@@ -1,14 +1,14 @@
-(()=>{var hc=Object.create;var ae=Object.defineProperty;var mc=Object.getOwnPropertyDescriptor;var kc=Object.getOwnPropertyNames;var yc=Object.getPrototypeOf,gc=Object.prototype.hasOwnProperty;var xc=e=>ae(e,"__esModule",{value:!0});var s1=e=>{if(typeof require!="undefined")return require(e);throw new Error('Dynamic require of "'+e+'" is not supported')};var Mc=(e,n)=>()=>(e&&(n=e(e=0)),n);var $=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports);var vc=(e,n,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of kc(n))!gc.call(e,o)&&o!=="default"&&ae(e,o,{get:()=>n[o],enumerable:!(r=mc(n,o))||r.enumerable});return e},J=e=>vc(xc(ae(e!=null?hc(yc(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var ri=$(l9=>{_();"use strict";l9.byteLength=_c;l9.toByteArray=wc;l9.fromByteArray=Sc;var s4=[],Z2=[],Lc=typeof Uint8Array!="undefined"?Uint8Array:Array,le="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var C1=0,Nc=le.length;C10)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=n);var o=r===n?0:4-r%4;return[r,o]}function _c(e){var n=ni(e),r=n[0],o=n[1];return(r+o)*3/4-o}function bc(e,n,r){return(n+r)*3/4-r}function wc(e){var n,r=ni(e),o=r[0],i=r[1],a=new Lc(bc(e,o,i)),l=0,s=i>0?o-4:o,C;for(C=0;C>16&255,a[l++]=n>>8&255,a[l++]=n&255;return i===2&&(n=Z2[e.charCodeAt(C)]<<2|Z2[e.charCodeAt(C+1)]>>4,a[l++]=n&255),i===1&&(n=Z2[e.charCodeAt(C)]<<10|Z2[e.charCodeAt(C+1)]<<4|Z2[e.charCodeAt(C+2)]>>2,a[l++]=n>>8&255,a[l++]=n&255),a}function jc(e){return s4[e>>18&63]+s4[e>>12&63]+s4[e>>6&63]+s4[e&63]}function Wc(e,n,r){for(var o,i=[],a=n;as?s:l+a));return o===1?(n=e[r-1],i.push(s4[n>>2]+s4[n<<4&63]+"==")):o===2&&(n=(e[r-2]<<8)+e[r-1],i.push(s4[n>>10]+s4[n>>4&63]+s4[n<<2&63]+"=")),i.join("")}});var oi=$(se=>{_();se.read=function(e,n,r,o,i){var a,l,s=i*8-o-1,C=(1<>1,p=-7,c=r?i-1:0,h=r?-1:1,g=e[n+c];for(c+=h,a=g&(1<<-p)-1,g>>=-p,p+=s;p>0;a=a*256+e[n+c],c+=h,p-=8);for(l=a&(1<<-p)-1,a>>=-p,p+=o;p>0;l=l*256+e[n+c],c+=h,p-=8);if(a===0)a=1-d;else{if(a===C)return l?NaN:(g?-1:1)*(1/0);l=l+Math.pow(2,o),a=a-d}return(g?-1:1)*l*Math.pow(2,a-o)};se.write=function(e,n,r,o,i,a){var l,s,C,d=a*8-i-1,p=(1<>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=o?0:a-1,w=o?1:-1,N=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(s=isNaN(n)?1:0,l=p):(l=Math.floor(Math.log(n)/Math.LN2),n*(C=Math.pow(2,-l))<1&&(l--,C*=2),l+c>=1?n+=h/C:n+=h*Math.pow(2,1-c),n*C>=2&&(l++,C/=2),l+c>=p?(s=0,l=p):l+c>=1?(s=(n*C-1)*Math.pow(2,i),l=l+c):(s=n*Math.pow(2,c-1)*Math.pow(2,i),l=0));i>=8;e[r+g]=s&255,g+=w,s/=256,i-=8);for(l=l<0;e[r+g]=l&255,g+=w,l/=256,d-=8);e[r+g-w]|=N*128}});var f9=$(u1=>{_();"use strict";var Ce=ri(),f1=oi(),ii=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;u1.Buffer=A;u1.SlowBuffer=Bc;u1.INSPECT_MAX_BYTES=50;var s9=2147483647;u1.kMaxLength=s9;A.TYPED_ARRAY_SUPPORT=Ec();!A.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&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.");function Ec(){try{let e=new Uint8Array(1),n={foo:function(){return 42}};return Object.setPrototypeOf(n,Uint8Array.prototype),Object.setPrototypeOf(e,n),e.foo()===42}catch(e){return!1}}Object.defineProperty(A.prototype,"parent",{enumerable:!0,get:function(){if(!!A.isBuffer(this))return this.buffer}});Object.defineProperty(A.prototype,"offset",{enumerable:!0,get:function(){if(!!A.isBuffer(this))return this.byteOffset}});function b4(e){if(e>s9)throw new RangeError('The value "'+e+'" is invalid for option "size"');let n=new Uint8Array(e);return Object.setPrototypeOf(n,A.prototype),n}function A(e,n,r){if(typeof e=="number"){if(typeof n=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return fe(e)}return ai(e,n,r)}A.poolSize=8192;function ai(e,n,r){if(typeof e=="string")return Ac(e,n);if(ArrayBuffer.isView(e))return Zc(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(C4(e,ArrayBuffer)||e&&C4(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(C4(e,SharedArrayBuffer)||e&&C4(e.buffer,SharedArrayBuffer)))return pe(e,n,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let o=e.valueOf&&e.valueOf();if(o!=null&&o!==e)return A.from(o,n,r);let i=Fc(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return A.from(e[Symbol.toPrimitive]("string"),n,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}A.from=function(e,n,r){return ai(e,n,r)};Object.setPrototypeOf(A.prototype,Uint8Array.prototype);Object.setPrototypeOf(A,Uint8Array);function li(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Rc(e,n,r){return li(e),e<=0?b4(e):n!==void 0?typeof r=="string"?b4(e).fill(n,r):b4(e).fill(n):b4(e)}A.alloc=function(e,n,r){return Rc(e,n,r)};function fe(e){return li(e),b4(e<0?0:ue(e)|0)}A.allocUnsafe=function(e){return fe(e)};A.allocUnsafeSlow=function(e){return fe(e)};function Ac(e,n){if((typeof n!="string"||n==="")&&(n="utf8"),!A.isEncoding(n))throw new TypeError("Unknown encoding: "+n);let r=si(e,n)|0,o=b4(r),i=o.write(e,n);return i!==r&&(o=o.slice(0,i)),o}function de(e){let n=e.length<0?0:ue(e.length)|0,r=b4(n);for(let o=0;o=s9)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s9.toString(16)+" bytes");return e|0}function Bc(e){return+e!=e&&(e=0),A.alloc(+e)}A.isBuffer=function(n){return n!=null&&n._isBuffer===!0&&n!==A.prototype};A.compare=function(n,r){if(C4(n,Uint8Array)&&(n=A.from(n,n.offset,n.byteLength)),C4(r,Uint8Array)&&(r=A.from(r,r.offset,r.byteLength)),!A.isBuffer(n)||!A.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(n===r)return 0;let o=n.length,i=r.length;for(let a=0,l=Math.min(o,i);ai.length?(A.isBuffer(l)||(l=A.from(l)),l.copy(i,a)):Uint8Array.prototype.set.call(i,l,a);else if(A.isBuffer(l))l.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=l.length}return i};function si(e,n){if(A.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||C4(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&r===0)return 0;let i=!1;for(;;)switch(n){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return he(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return xi(e).length;default:if(i)return o?-1:he(e).length;n=(""+n).toLowerCase(),i=!0}}A.byteLength=si;function Tc(e,n,r){let o=!1;if((n===void 0||n<0)&&(n=0),n>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,n>>>=0,r<=n))return"";for(e||(e="utf8");;)switch(e){case"hex":return $c(this,n,r);case"utf8":case"utf-8":return di(this,n,r);case"ascii":return Hc(this,n,r);case"latin1":case"binary":return Vc(this,n,r);case"base64":return Uc(this,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qc(this,n,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}A.prototype._isBuffer=!0;function w0(e,n,r){let o=e[n];e[n]=e[r],e[r]=o}A.prototype.swap16=function(){let n=this.length;if(n%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;rr&&(n+=" ... "),""};ii&&(A.prototype[ii]=A.prototype.inspect);A.prototype.compare=function(n,r,o,i,a){if(C4(n,Uint8Array)&&(n=A.from(n,n.offset,n.byteLength)),!A.isBuffer(n))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof n);if(r===void 0&&(r=0),o===void 0&&(o=n?n.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||o>n.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=o)return 0;if(i>=a)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,i>>>=0,a>>>=0,this===n)return 0;let l=a-i,s=o-r,C=Math.min(l,s),d=this.slice(i,a),p=n.slice(r,o);for(let c=0;c2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,me(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof n=="string"&&(n=A.from(n,o)),A.isBuffer(n))return n.length===0?-1:fi(e,n,r,o,i);if(typeof n=="number")return n=n&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,n,r):Uint8Array.prototype.lastIndexOf.call(e,n,r):fi(e,[n],r,o,i);throw new TypeError("val must be string, number or Buffer")}function fi(e,n,r,o,i){let a=1,l=e.length,s=n.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(e.length<2||n.length<2)return-1;a=2,l/=2,s/=2,r/=2}function C(p,c){return a===1?p[c]:p.readUInt16BE(c*a)}let d;if(i){let p=-1;for(d=r;dl&&(r=l-s),d=r;d>=0;d--){let p=!0;for(let c=0;ci&&(o=i)):o=i;let a=n.length;o>a/2&&(o=a/2);let l;for(l=0;l>>0,isFinite(o)?(o=o>>>0,i===void 0&&(i="utf8")):(i=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-r;if((o===void 0||o>a)&&(o=a),n.length>0&&(o<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let l=!1;for(;;)switch(i){case"hex":return Dc(this,n,r,o);case"utf8":case"utf-8":return Pc(this,n,r,o);case"ascii":case"latin1":case"binary":return Ic(this,n,r,o);case"base64":return Oc(this,n,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return zc(this,n,r,o);default:if(l)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),l=!0}};A.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Uc(e,n,r){return n===0&&r===e.length?Ce.fromByteArray(e):Ce.fromByteArray(e.slice(n,r))}function di(e,n,r){r=Math.min(e.length,r);let o=[],i=n;for(;i239?4:a>223?3:a>191?2:1;if(i+s<=r){let C,d,p,c;switch(s){case 1:a<128&&(l=a);break;case 2:C=e[i+1],(C&192)==128&&(c=(a&31)<<6|C&63,c>127&&(l=c));break;case 3:C=e[i+1],d=e[i+2],(C&192)==128&&(d&192)==128&&(c=(a&15)<<12|(C&63)<<6|d&63,c>2047&&(c<55296||c>57343)&&(l=c));break;case 4:C=e[i+1],d=e[i+2],p=e[i+3],(C&192)==128&&(d&192)==128&&(p&192)==128&&(c=(a&15)<<18|(C&63)<<12|(d&63)<<6|p&63,c>65535&&c<1114112&&(l=c))}}l===null?(l=65533,s=1):l>65535&&(l-=65536,o.push(l>>>10&1023|55296),l=56320|l&1023),o.push(l),i+=s}return Gc(o)}var pi=4096;function Gc(e){let n=e.length;if(n<=pi)return String.fromCharCode.apply(String,e);let r="",o=0;for(;oo)&&(r=o);let i="";for(let a=n;ao&&(n=o),r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),rr)throw new RangeError("Trying to access beyond buffer length")}A.prototype.readUintLE=A.prototype.readUIntLE=function(n,r,o){n=n>>>0,r=r>>>0,o||G3(n,r,this.length);let i=this[n],a=1,l=0;for(;++l>>0,r=r>>>0,o||G3(n,r,this.length);let i=this[n+--r],a=1;for(;r>0&&(a*=256);)i+=this[n+--r]*a;return i};A.prototype.readUint8=A.prototype.readUInt8=function(n,r){return n=n>>>0,r||G3(n,1,this.length),this[n]};A.prototype.readUint16LE=A.prototype.readUInt16LE=function(n,r){return n=n>>>0,r||G3(n,2,this.length),this[n]|this[n+1]<<8};A.prototype.readUint16BE=A.prototype.readUInt16BE=function(n,r){return n=n>>>0,r||G3(n,2,this.length),this[n]<<8|this[n+1]};A.prototype.readUint32LE=A.prototype.readUInt32LE=function(n,r){return n=n>>>0,r||G3(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+this[n+3]*16777216};A.prototype.readUint32BE=A.prototype.readUInt32BE=function(n,r){return n=n>>>0,r||G3(n,4,this.length),this[n]*16777216+(this[n+1]<<16|this[n+2]<<8|this[n+3])};A.prototype.readBigUInt64LE=O4(function(n){n=n>>>0,p1(n,"offset");let r=this[n],o=this[n+7];(r===void 0||o===void 0)&&x5(n,this.length-8);let i=r+this[++n]*2**8+this[++n]*2**16+this[++n]*2**24,a=this[++n]+this[++n]*2**8+this[++n]*2**16+o*2**24;return BigInt(i)+(BigInt(a)<>>0,p1(n,"offset");let r=this[n],o=this[n+7];(r===void 0||o===void 0)&&x5(n,this.length-8);let i=r*2**24+this[++n]*2**16+this[++n]*2**8+this[++n],a=this[++n]*2**24+this[++n]*2**16+this[++n]*2**8+o;return(BigInt(i)<>>0,r=r>>>0,o||G3(n,r,this.length);let i=this[n],a=1,l=0;for(;++l=a&&(i-=Math.pow(2,8*r)),i};A.prototype.readIntBE=function(n,r,o){n=n>>>0,r=r>>>0,o||G3(n,r,this.length);let i=r,a=1,l=this[n+--i];for(;i>0&&(a*=256);)l+=this[n+--i]*a;return a*=128,l>=a&&(l-=Math.pow(2,8*r)),l};A.prototype.readInt8=function(n,r){return n=n>>>0,r||G3(n,1,this.length),this[n]&128?(255-this[n]+1)*-1:this[n]};A.prototype.readInt16LE=function(n,r){n=n>>>0,r||G3(n,2,this.length);let o=this[n]|this[n+1]<<8;return o&32768?o|4294901760:o};A.prototype.readInt16BE=function(n,r){n=n>>>0,r||G3(n,2,this.length);let o=this[n+1]|this[n]<<8;return o&32768?o|4294901760:o};A.prototype.readInt32LE=function(n,r){return n=n>>>0,r||G3(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24};A.prototype.readInt32BE=function(n,r){return n=n>>>0,r||G3(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]};A.prototype.readBigInt64LE=O4(function(n){n=n>>>0,p1(n,"offset");let r=this[n],o=this[n+7];(r===void 0||o===void 0)&&x5(n,this.length-8);let i=this[n+4]+this[n+5]*2**8+this[n+6]*2**16+(o<<24);return(BigInt(i)<>>0,p1(n,"offset");let r=this[n],o=this[n+7];(r===void 0||o===void 0)&&x5(n,this.length-8);let i=(r<<24)+this[++n]*2**16+this[++n]*2**8+this[++n];return(BigInt(i)<>>0,r||G3(n,4,this.length),f1.read(this,n,!0,23,4)};A.prototype.readFloatBE=function(n,r){return n=n>>>0,r||G3(n,4,this.length),f1.read(this,n,!1,23,4)};A.prototype.readDoubleLE=function(n,r){return n=n>>>0,r||G3(n,8,this.length),f1.read(this,n,!0,52,8)};A.prototype.readDoubleBE=function(n,r){return n=n>>>0,r||G3(n,8,this.length),f1.read(this,n,!1,52,8)};function M2(e,n,r,o,i,a){if(!A.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>i||ne.length)throw new RangeError("Index out of range")}A.prototype.writeUintLE=A.prototype.writeUIntLE=function(n,r,o,i){if(n=+n,r=r>>>0,o=o>>>0,!i){let s=Math.pow(2,8*o)-1;M2(this,n,r,o,s,0)}let a=1,l=0;for(this[r]=n&255;++l>>0,o=o>>>0,!i){let s=Math.pow(2,8*o)-1;M2(this,n,r,o,s,0)}let a=o-1,l=1;for(this[r+a]=n&255;--a>=0&&(l*=256);)this[r+a]=n/l&255;return r+o};A.prototype.writeUint8=A.prototype.writeUInt8=function(n,r,o){return n=+n,r=r>>>0,o||M2(this,n,r,1,255,0),this[r]=n&255,r+1};A.prototype.writeUint16LE=A.prototype.writeUInt16LE=function(n,r,o){return n=+n,r=r>>>0,o||M2(this,n,r,2,65535,0),this[r]=n&255,this[r+1]=n>>>8,r+2};A.prototype.writeUint16BE=A.prototype.writeUInt16BE=function(n,r,o){return n=+n,r=r>>>0,o||M2(this,n,r,2,65535,0),this[r]=n>>>8,this[r+1]=n&255,r+2};A.prototype.writeUint32LE=A.prototype.writeUInt32LE=function(n,r,o){return n=+n,r=r>>>0,o||M2(this,n,r,4,4294967295,0),this[r+3]=n>>>24,this[r+2]=n>>>16,this[r+1]=n>>>8,this[r]=n&255,r+4};A.prototype.writeUint32BE=A.prototype.writeUInt32BE=function(n,r,o){return n=+n,r=r>>>0,o||M2(this,n,r,4,4294967295,0),this[r]=n>>>24,this[r+1]=n>>>16,this[r+2]=n>>>8,this[r+3]=n&255,r+4};function ui(e,n,r,o,i){gi(n,o,i,e,r,7);let a=Number(n&BigInt(4294967295));e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a;let l=Number(n>>BigInt(32)&BigInt(4294967295));return e[r++]=l,l=l>>8,e[r++]=l,l=l>>8,e[r++]=l,l=l>>8,e[r++]=l,r}function ci(e,n,r,o,i){gi(n,o,i,e,r,7);let a=Number(n&BigInt(4294967295));e[r+7]=a,a=a>>8,e[r+6]=a,a=a>>8,e[r+5]=a,a=a>>8,e[r+4]=a;let l=Number(n>>BigInt(32)&BigInt(4294967295));return e[r+3]=l,l=l>>8,e[r+2]=l,l=l>>8,e[r+1]=l,l=l>>8,e[r]=l,r+8}A.prototype.writeBigUInt64LE=O4(function(n,r=0){return ui(this,n,r,BigInt(0),BigInt("0xffffffffffffffff"))});A.prototype.writeBigUInt64BE=O4(function(n,r=0){return ci(this,n,r,BigInt(0),BigInt("0xffffffffffffffff"))});A.prototype.writeIntLE=function(n,r,o,i){if(n=+n,r=r>>>0,!i){let C=Math.pow(2,8*o-1);M2(this,n,r,o,C-1,-C)}let a=0,l=1,s=0;for(this[r]=n&255;++a>0)-s&255;return r+o};A.prototype.writeIntBE=function(n,r,o,i){if(n=+n,r=r>>>0,!i){let C=Math.pow(2,8*o-1);M2(this,n,r,o,C-1,-C)}let a=o-1,l=1,s=0;for(this[r+a]=n&255;--a>=0&&(l*=256);)n<0&&s===0&&this[r+a+1]!==0&&(s=1),this[r+a]=(n/l>>0)-s&255;return r+o};A.prototype.writeInt8=function(n,r,o){return n=+n,r=r>>>0,o||M2(this,n,r,1,127,-128),n<0&&(n=255+n+1),this[r]=n&255,r+1};A.prototype.writeInt16LE=function(n,r,o){return n=+n,r=r>>>0,o||M2(this,n,r,2,32767,-32768),this[r]=n&255,this[r+1]=n>>>8,r+2};A.prototype.writeInt16BE=function(n,r,o){return n=+n,r=r>>>0,o||M2(this,n,r,2,32767,-32768),this[r]=n>>>8,this[r+1]=n&255,r+2};A.prototype.writeInt32LE=function(n,r,o){return n=+n,r=r>>>0,o||M2(this,n,r,4,2147483647,-2147483648),this[r]=n&255,this[r+1]=n>>>8,this[r+2]=n>>>16,this[r+3]=n>>>24,r+4};A.prototype.writeInt32BE=function(n,r,o){return n=+n,r=r>>>0,o||M2(this,n,r,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),this[r]=n>>>24,this[r+1]=n>>>16,this[r+2]=n>>>8,this[r+3]=n&255,r+4};A.prototype.writeBigInt64LE=O4(function(n,r=0){return ui(this,n,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});A.prototype.writeBigInt64BE=O4(function(n,r=0){return ci(this,n,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function hi(e,n,r,o,i,a){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function mi(e,n,r,o,i){return n=+n,r=r>>>0,i||hi(e,n,r,4,34028234663852886e22,-34028234663852886e22),f1.write(e,n,r,o,23,4),r+4}A.prototype.writeFloatLE=function(n,r,o){return mi(this,n,r,!0,o)};A.prototype.writeFloatBE=function(n,r,o){return mi(this,n,r,!1,o)};function ki(e,n,r,o,i){return n=+n,r=r>>>0,i||hi(e,n,r,8,17976931348623157e292,-17976931348623157e292),f1.write(e,n,r,o,52,8),r+8}A.prototype.writeDoubleLE=function(n,r,o){return ki(this,n,r,!0,o)};A.prototype.writeDoubleBE=function(n,r,o){return ki(this,n,r,!1,o)};A.prototype.copy=function(n,r,o,i){if(!A.isBuffer(n))throw new TypeError("argument should be a Buffer");if(o||(o=0),!i&&i!==0&&(i=this.length),r>=n.length&&(r=n.length),r||(r=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),n.length-r>>0,o=o===void 0?this.length:o>>>0,n||(n=0);let a;if(typeof n=="number")for(a=r;a2**32?i=yi(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=yi(i)),i+="n"),o+=` It must be ${n}. Received ${i}`,o},RangeError);function yi(e){let n="",r=e.length,o=e[0]==="-"?1:0;for(;r>=o+4;r-=3)n=`_${e.slice(r-3,r)}${n}`;return`${e.slice(0,r)}${n}`}function Yc(e,n,r){p1(n,"offset"),(e[n]===void 0||e[n+r]===void 0)&&x5(n,e.length-(r+1))}function gi(e,n,r,o,i,a){if(e>r||e3?n===0||n===BigInt(0)?s=`>= 0${l} and < 2${l} ** ${(a+1)*8}${l}`:s=`>= -(2${l} ** ${(a+1)*8-1}${l}) and < 2 ** ${(a+1)*8-1}${l}`:s=`>= ${n}${l} and <= ${r}${l}`,new d1.ERR_OUT_OF_RANGE("value",s,e)}Yc(o,i,a)}function p1(e,n){if(typeof e!="number")throw new d1.ERR_INVALID_ARG_TYPE(n,"number",e)}function x5(e,n,r){throw Math.floor(e)!==e?(p1(e,r),new d1.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):n<0?new d1.ERR_BUFFER_OUT_OF_BOUNDS:new d1.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${n}`,e)}var Xc=/[^+/0-9A-Za-z-_]/g;function Jc(e){if(e=e.split("=")[0],e=e.trim().replace(Xc,""),e.length<2)return"";for(;e.length%4!=0;)e=e+"=";return e}function he(e,n){n=n||1/0;let r,o=e.length,i=null,a=[];for(let l=0;l55295&&r<57344){if(!i){if(r>56319){(n-=3)>-1&&a.push(239,191,189);continue}else if(l+1===o){(n-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(n-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(n-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((n-=1)<0)break;a.push(r)}else if(r<2048){if((n-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((n-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((n-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function Qc(e){let n=[];for(let r=0;r>8,i=r%256,a.push(i),a.push(o);return a}function xi(e){return Ce.toByteArray(Jc(e))}function C9(e,n,r,o){let i;for(i=0;i=n.length||i>=e.length);++i)n[i+r]=e[i];return i}function C4(e,n){return e instanceof n||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===n.name}function me(e){return e!==e}var eh=function(){let e="0123456789abcdef",n=new Array(256);for(let r=0;r<16;++r){let o=r*16;for(let i=0;i<16;++i)n[o+i]=e[r]+e[i]}return n}();function O4(e){return typeof BigInt=="undefined"?th:e}function th(){throw new Error("BigInt not supported")}});var Mi,T,B,_=Mc(()=>{Mi=J(f9()),T={env:{}},B=Mi.Buffer});var M5=$((JM,Li)=>{_();"use strict";var vi=Object.getOwnPropertySymbols,nh=Object.prototype.hasOwnProperty,rh=Object.prototype.propertyIsEnumerable;function oh(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function ih(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var n={},r=0;r<10;r++)n["_"+String.fromCharCode(r)]=r;var o=Object.getOwnPropertyNames(n).map(function(a){return n[a]});if(o.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch(a){return!1}}Li.exports=ih()?Object.assign:function(e,n){for(var r,o=oh(e),i,a=1;a{_();"use strict";var ke=M5(),c1=60103,Ni=60106;s3.Fragment=60107;s3.StrictMode=60108;s3.Profiler=60114;var _i=60109,bi=60110,wi=60112;s3.Suspense=60113;var ji=60115,Wi=60116;typeof Symbol=="function"&&Symbol.for&&(F2=Symbol.for,c1=F2("react.element"),Ni=F2("react.portal"),s3.Fragment=F2("react.fragment"),s3.StrictMode=F2("react.strict_mode"),s3.Profiler=F2("react.profiler"),_i=F2("react.provider"),bi=F2("react.context"),wi=F2("react.forward_ref"),s3.Suspense=F2("react.suspense"),ji=F2("react.memo"),Wi=F2("react.lazy"));var F2,Si=typeof Symbol=="function"&&Symbol.iterator;function ah(e){return e===null||typeof e!="object"?null:(e=Si&&e[Si]||e["@@iterator"],typeof e=="function"?e:null)}function v5(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r{_();"use strict";Ii.exports=Pi()});var Vi=$(p3=>{_();"use strict";var m1,L5,u9,Le;typeof performance=="object"&&typeof performance.now=="function"?(Oi=performance,p3.unstable_now=function(){return Oi.now()}):(Ne=Date,zi=Ne.now(),p3.unstable_now=function(){return Ne.now()-zi});var Oi,Ne,zi;typeof window=="undefined"||typeof MessageChannel!="function"?(k1=null,_e=null,be=function(){if(k1!==null)try{var e=p3.unstable_now();k1(!0,e),k1=null}catch(n){throw setTimeout(be,0),n}},m1=function(e){k1!==null?setTimeout(m1,0,e):(k1=e,setTimeout(be,0))},L5=function(e,n){_e=setTimeout(e,n)},u9=function(){clearTimeout(_e)},p3.unstable_shouldYield=function(){return!1},Le=p3.unstable_forceFrameRate=function(){}):(Ui=window.setTimeout,Gi=window.clearTimeout,typeof console!="undefined"&&(Hi=window.cancelAnimationFrame,typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof Hi!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")),N5=!1,_5=null,c9=-1,we=5,je=0,p3.unstable_shouldYield=function(){return p3.unstable_now()>=je},Le=function(){},p3.unstable_forceFrameRate=function(e){0>e||125>>1,i=e[o];if(i!==void 0&&0k9(l,r))C!==void 0&&0>k9(C,l)?(e[o]=C,e[s]=r,o=s):(e[o]=l,e[a]=r,o=a);else if(C!==void 0&&0>k9(C,r))e[o]=C,e[s]=r,o=s;else break e}}return n}return null}function k9(e,n){var r=e.sortIndex-n.sortIndex;return r!==0?r:e.id-n.id}var f4=[],z4=[],dh=1,B2=null,K3=3,y9=!1,j0=!1,b5=!1;function Ee(e){for(var n=J2(z4);n!==null;){if(n.callback===null)m9(z4);else if(n.startTime<=e)m9(z4),n.sortIndex=n.expirationTime,Se(f4,n);else break;n=J2(z4)}}function Re(e){if(b5=!1,Ee(e),!j0)if(J2(f4)!==null)j0=!0,m1(Ae);else{var n=J2(z4);n!==null&&L5(Re,n.startTime-e)}}function Ae(e,n){j0=!1,b5&&(b5=!1,u9()),y9=!0;var r=K3;try{for(Ee(n),B2=J2(f4);B2!==null&&(!(B2.expirationTime>n)||e&&!p3.unstable_shouldYield());){var o=B2.callback;if(typeof o=="function"){B2.callback=null,K3=B2.priorityLevel;var i=o(B2.expirationTime<=n);n=p3.unstable_now(),typeof i=="function"?B2.callback=i:B2===J2(f4)&&m9(f4),Ee(n)}else m9(f4);B2=J2(f4)}if(B2!==null)var a=!0;else{var l=J2(z4);l!==null&&L5(Re,l.startTime-n),a=!1}return a}finally{B2=null,K3=r,y9=!1}}var ph=Le;p3.unstable_IdlePriority=5;p3.unstable_ImmediatePriority=1;p3.unstable_LowPriority=4;p3.unstable_NormalPriority=3;p3.unstable_Profiling=null;p3.unstable_UserBlockingPriority=2;p3.unstable_cancelCallback=function(e){e.callback=null};p3.unstable_continueExecution=function(){j0||y9||(j0=!0,m1(Ae))};p3.unstable_getCurrentPriorityLevel=function(){return K3};p3.unstable_getFirstCallbackNode=function(){return J2(f4)};p3.unstable_next=function(e){switch(K3){case 1:case 2:case 3:var n=3;break;default:n=K3}var r=K3;K3=n;try{return e()}finally{K3=r}};p3.unstable_pauseExecution=function(){};p3.unstable_requestPaint=ph;p3.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=K3;K3=e;try{return n()}finally{K3=r}};p3.unstable_scheduleCallback=function(e,n,r){var o=p3.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0o?(e.sortIndex=r,Se(z4,e),J2(f4)===null&&e===J2(z4)&&(b5?u9():b5=!0,L5(Re,r-o))):(e.sortIndex=i,Se(f4,e),j0||y9||(j0=!0,m1(Ae))),e};p3.unstable_wrapCallback=function(e){var n=K3;return function(){var r=K3;K3=n;try{return e.apply(this,arguments)}finally{K3=r}}}});var qi=$((tv,$i)=>{_();"use strict";$i.exports=Vi()});var Fs=$(z2=>{_();"use strict";var g9=C3(),L3=M5(),H3=qi();function P(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;rn}return!1}function f2(e,n,r,o,i,a,l){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=o,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=n,this.sanitizeURL=a,this.removeEmptyString=l}var $3={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){$3[e]=new f2(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];$3[n]=new f2(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){$3[e]=new f2(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){$3[e]=new f2(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){$3[e]=new f2(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){$3[e]=new f2(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){$3[e]=new f2(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){$3[e]=new f2(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){$3[e]=new f2(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ze=/[\-:]([a-z])/g;function Fe(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(Ze,Fe);$3[n]=new f2(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(Ze,Fe);$3[n]=new f2(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(Ze,Fe);$3[n]=new f2(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){$3[e]=new f2(e,1,!1,e.toLowerCase(),null,!1,!1)});$3.xlinkHref=new f2("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){$3[e]=new f2(e,1,!1,e.toLowerCase(),null,!0,!0)});function Be(e,n,r,o){var i=$3.hasOwnProperty(n)?$3[n]:null,a=i!==null?i.type===0:o?!1:!(!(2{var hc=Object.create;var ae=Object.defineProperty;var mc=Object.getOwnPropertyDescriptor;var kc=Object.getOwnPropertyNames;var yc=Object.getPrototypeOf,gc=Object.prototype.hasOwnProperty;var xc=e=>ae(e,"__esModule",{value:!0});var s1=e=>{if(typeof require!="undefined")return require(e);throw new Error('Dynamic require of "'+e+'" is not supported')};var Mc=(e,n)=>()=>(e&&(n=e(e=0)),n);var $=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports);var vc=(e,n,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of kc(n))!gc.call(e,o)&&o!=="default"&&ae(e,o,{get:()=>n[o],enumerable:!(r=mc(n,o))||r.enumerable});return e},J=e=>vc(xc(ae(e!=null?hc(yc(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var ri=$(l9=>{_();"use strict";l9.byteLength=_c;l9.toByteArray=wc;l9.fromByteArray=Sc;var s4=[],Z2=[],Lc=typeof Uint8Array!="undefined"?Uint8Array:Array,le="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var C1=0,Nc=le.length;C10)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=n);var o=r===n?0:4-r%4;return[r,o]}function _c(e){var n=ni(e),r=n[0],o=n[1];return(r+o)*3/4-o}function bc(e,n,r){return(n+r)*3/4-r}function wc(e){var n,r=ni(e),o=r[0],i=r[1],a=new Lc(bc(e,o,i)),l=0,s=i>0?o-4:o,C;for(C=0;C>16&255,a[l++]=n>>8&255,a[l++]=n&255;return i===2&&(n=Z2[e.charCodeAt(C)]<<2|Z2[e.charCodeAt(C+1)]>>4,a[l++]=n&255),i===1&&(n=Z2[e.charCodeAt(C)]<<10|Z2[e.charCodeAt(C+1)]<<4|Z2[e.charCodeAt(C+2)]>>2,a[l++]=n>>8&255,a[l++]=n&255),a}function jc(e){return s4[e>>18&63]+s4[e>>12&63]+s4[e>>6&63]+s4[e&63]}function Wc(e,n,r){for(var o,i=[],a=n;as?s:l+a));return o===1?(n=e[r-1],i.push(s4[n>>2]+s4[n<<4&63]+"==")):o===2&&(n=(e[r-2]<<8)+e[r-1],i.push(s4[n>>10]+s4[n>>4&63]+s4[n<<2&63]+"=")),i.join("")}});var oi=$(se=>{_();se.read=function(e,n,r,o,i){var a,l,s=i*8-o-1,C=(1<>1,p=-7,c=r?i-1:0,h=r?-1:1,g=e[n+c];for(c+=h,a=g&(1<<-p)-1,g>>=-p,p+=s;p>0;a=a*256+e[n+c],c+=h,p-=8);for(l=a&(1<<-p)-1,a>>=-p,p+=o;p>0;l=l*256+e[n+c],c+=h,p-=8);if(a===0)a=1-d;else{if(a===C)return l?NaN:(g?-1:1)*(1/0);l=l+Math.pow(2,o),a=a-d}return(g?-1:1)*l*Math.pow(2,a-o)};se.write=function(e,n,r,o,i,a){var l,s,C,d=a*8-i-1,p=(1<>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=o?0:a-1,w=o?1:-1,N=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(s=isNaN(n)?1:0,l=p):(l=Math.floor(Math.log(n)/Math.LN2),n*(C=Math.pow(2,-l))<1&&(l--,C*=2),l+c>=1?n+=h/C:n+=h*Math.pow(2,1-c),n*C>=2&&(l++,C/=2),l+c>=p?(s=0,l=p):l+c>=1?(s=(n*C-1)*Math.pow(2,i),l=l+c):(s=n*Math.pow(2,c-1)*Math.pow(2,i),l=0));i>=8;e[r+g]=s&255,g+=w,s/=256,i-=8);for(l=l<0;e[r+g]=l&255,g+=w,l/=256,d-=8);e[r+g-w]|=N*128}});var f9=$(u1=>{_();"use strict";var Ce=ri(),f1=oi(),ii=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;u1.Buffer=A;u1.SlowBuffer=Bc;u1.INSPECT_MAX_BYTES=50;var s9=2147483647;u1.kMaxLength=s9;A.TYPED_ARRAY_SUPPORT=Ec();!A.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&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.");function Ec(){try{let e=new Uint8Array(1),n={foo:function(){return 42}};return Object.setPrototypeOf(n,Uint8Array.prototype),Object.setPrototypeOf(e,n),e.foo()===42}catch(e){return!1}}Object.defineProperty(A.prototype,"parent",{enumerable:!0,get:function(){if(!!A.isBuffer(this))return this.buffer}});Object.defineProperty(A.prototype,"offset",{enumerable:!0,get:function(){if(!!A.isBuffer(this))return this.byteOffset}});function b4(e){if(e>s9)throw new RangeError('The value "'+e+'" is invalid for option "size"');let n=new Uint8Array(e);return Object.setPrototypeOf(n,A.prototype),n}function A(e,n,r){if(typeof e=="number"){if(typeof n=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return fe(e)}return ai(e,n,r)}A.poolSize=8192;function ai(e,n,r){if(typeof e=="string")return Ac(e,n);if(ArrayBuffer.isView(e))return Zc(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(C4(e,ArrayBuffer)||e&&C4(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(C4(e,SharedArrayBuffer)||e&&C4(e.buffer,SharedArrayBuffer)))return pe(e,n,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let o=e.valueOf&&e.valueOf();if(o!=null&&o!==e)return A.from(o,n,r);let i=Fc(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return A.from(e[Symbol.toPrimitive]("string"),n,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}A.from=function(e,n,r){return ai(e,n,r)};Object.setPrototypeOf(A.prototype,Uint8Array.prototype);Object.setPrototypeOf(A,Uint8Array);function li(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Rc(e,n,r){return li(e),e<=0?b4(e):n!==void 0?typeof r=="string"?b4(e).fill(n,r):b4(e).fill(n):b4(e)}A.alloc=function(e,n,r){return Rc(e,n,r)};function fe(e){return li(e),b4(e<0?0:ue(e)|0)}A.allocUnsafe=function(e){return fe(e)};A.allocUnsafeSlow=function(e){return fe(e)};function Ac(e,n){if((typeof n!="string"||n==="")&&(n="utf8"),!A.isEncoding(n))throw new TypeError("Unknown encoding: "+n);let r=si(e,n)|0,o=b4(r),i=o.write(e,n);return i!==r&&(o=o.slice(0,i)),o}function de(e){let n=e.length<0?0:ue(e.length)|0,r=b4(n);for(let o=0;o=s9)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s9.toString(16)+" bytes");return e|0}function Bc(e){return+e!=e&&(e=0),A.alloc(+e)}A.isBuffer=function(n){return n!=null&&n._isBuffer===!0&&n!==A.prototype};A.compare=function(n,r){if(C4(n,Uint8Array)&&(n=A.from(n,n.offset,n.byteLength)),C4(r,Uint8Array)&&(r=A.from(r,r.offset,r.byteLength)),!A.isBuffer(n)||!A.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(n===r)return 0;let o=n.length,i=r.length;for(let a=0,l=Math.min(o,i);ai.length?(A.isBuffer(l)||(l=A.from(l)),l.copy(i,a)):Uint8Array.prototype.set.call(i,l,a);else if(A.isBuffer(l))l.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=l.length}return i};function si(e,n){if(A.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||C4(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&r===0)return 0;let i=!1;for(;;)switch(n){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return he(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return xi(e).length;default:if(i)return o?-1:he(e).length;n=(""+n).toLowerCase(),i=!0}}A.byteLength=si;function Tc(e,n,r){let o=!1;if((n===void 0||n<0)&&(n=0),n>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,n>>>=0,r<=n))return"";for(e||(e="utf8");;)switch(e){case"hex":return $c(this,n,r);case"utf8":case"utf-8":return di(this,n,r);case"ascii":return Hc(this,n,r);case"latin1":case"binary":return Vc(this,n,r);case"base64":return Uc(this,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qc(this,n,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}A.prototype._isBuffer=!0;function w0(e,n,r){let o=e[n];e[n]=e[r],e[r]=o}A.prototype.swap16=function(){let n=this.length;if(n%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;rr&&(n+=" ... "),""};ii&&(A.prototype[ii]=A.prototype.inspect);A.prototype.compare=function(n,r,o,i,a){if(C4(n,Uint8Array)&&(n=A.from(n,n.offset,n.byteLength)),!A.isBuffer(n))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof n);if(r===void 0&&(r=0),o===void 0&&(o=n?n.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||o>n.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=o)return 0;if(i>=a)return-1;if(r>=o)return 1;if(r>>>=0,o>>>=0,i>>>=0,a>>>=0,this===n)return 0;let l=a-i,s=o-r,C=Math.min(l,s),d=this.slice(i,a),p=n.slice(r,o);for(let c=0;c2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,me(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof n=="string"&&(n=A.from(n,o)),A.isBuffer(n))return n.length===0?-1:fi(e,n,r,o,i);if(typeof n=="number")return n=n&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,n,r):Uint8Array.prototype.lastIndexOf.call(e,n,r):fi(e,[n],r,o,i);throw new TypeError("val must be string, number or Buffer")}function fi(e,n,r,o,i){let a=1,l=e.length,s=n.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(e.length<2||n.length<2)return-1;a=2,l/=2,s/=2,r/=2}function C(p,c){return a===1?p[c]:p.readUInt16BE(c*a)}let d;if(i){let p=-1;for(d=r;dl&&(r=l-s),d=r;d>=0;d--){let p=!0;for(let c=0;ci&&(o=i)):o=i;let a=n.length;o>a/2&&(o=a/2);let l;for(l=0;l>>0,isFinite(o)?(o=o>>>0,i===void 0&&(i="utf8")):(i=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-r;if((o===void 0||o>a)&&(o=a),n.length>0&&(o<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let l=!1;for(;;)switch(i){case"hex":return Dc(this,n,r,o);case"utf8":case"utf-8":return Pc(this,n,r,o);case"ascii":case"latin1":case"binary":return Ic(this,n,r,o);case"base64":return Oc(this,n,r,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return zc(this,n,r,o);default:if(l)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),l=!0}};A.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Uc(e,n,r){return n===0&&r===e.length?Ce.fromByteArray(e):Ce.fromByteArray(e.slice(n,r))}function di(e,n,r){r=Math.min(e.length,r);let o=[],i=n;for(;i239?4:a>223?3:a>191?2:1;if(i+s<=r){let C,d,p,c;switch(s){case 1:a<128&&(l=a);break;case 2:C=e[i+1],(C&192)==128&&(c=(a&31)<<6|C&63,c>127&&(l=c));break;case 3:C=e[i+1],d=e[i+2],(C&192)==128&&(d&192)==128&&(c=(a&15)<<12|(C&63)<<6|d&63,c>2047&&(c<55296||c>57343)&&(l=c));break;case 4:C=e[i+1],d=e[i+2],p=e[i+3],(C&192)==128&&(d&192)==128&&(p&192)==128&&(c=(a&15)<<18|(C&63)<<12|(d&63)<<6|p&63,c>65535&&c<1114112&&(l=c))}}l===null?(l=65533,s=1):l>65535&&(l-=65536,o.push(l>>>10&1023|55296),l=56320|l&1023),o.push(l),i+=s}return Gc(o)}var pi=4096;function Gc(e){let n=e.length;if(n<=pi)return String.fromCharCode.apply(String,e);let r="",o=0;for(;oo)&&(r=o);let i="";for(let a=n;ao&&(n=o),r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),rr)throw new RangeError("Trying to access beyond buffer length")}A.prototype.readUintLE=A.prototype.readUIntLE=function(n,r,o){n=n>>>0,r=r>>>0,o||G3(n,r,this.length);let i=this[n],a=1,l=0;for(;++l>>0,r=r>>>0,o||G3(n,r,this.length);let i=this[n+--r],a=1;for(;r>0&&(a*=256);)i+=this[n+--r]*a;return i};A.prototype.readUint8=A.prototype.readUInt8=function(n,r){return n=n>>>0,r||G3(n,1,this.length),this[n]};A.prototype.readUint16LE=A.prototype.readUInt16LE=function(n,r){return n=n>>>0,r||G3(n,2,this.length),this[n]|this[n+1]<<8};A.prototype.readUint16BE=A.prototype.readUInt16BE=function(n,r){return n=n>>>0,r||G3(n,2,this.length),this[n]<<8|this[n+1]};A.prototype.readUint32LE=A.prototype.readUInt32LE=function(n,r){return n=n>>>0,r||G3(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+this[n+3]*16777216};A.prototype.readUint32BE=A.prototype.readUInt32BE=function(n,r){return n=n>>>0,r||G3(n,4,this.length),this[n]*16777216+(this[n+1]<<16|this[n+2]<<8|this[n+3])};A.prototype.readBigUInt64LE=O4(function(n){n=n>>>0,p1(n,"offset");let r=this[n],o=this[n+7];(r===void 0||o===void 0)&&x5(n,this.length-8);let i=r+this[++n]*2**8+this[++n]*2**16+this[++n]*2**24,a=this[++n]+this[++n]*2**8+this[++n]*2**16+o*2**24;return BigInt(i)+(BigInt(a)<>>0,p1(n,"offset");let r=this[n],o=this[n+7];(r===void 0||o===void 0)&&x5(n,this.length-8);let i=r*2**24+this[++n]*2**16+this[++n]*2**8+this[++n],a=this[++n]*2**24+this[++n]*2**16+this[++n]*2**8+o;return(BigInt(i)<>>0,r=r>>>0,o||G3(n,r,this.length);let i=this[n],a=1,l=0;for(;++l=a&&(i-=Math.pow(2,8*r)),i};A.prototype.readIntBE=function(n,r,o){n=n>>>0,r=r>>>0,o||G3(n,r,this.length);let i=r,a=1,l=this[n+--i];for(;i>0&&(a*=256);)l+=this[n+--i]*a;return a*=128,l>=a&&(l-=Math.pow(2,8*r)),l};A.prototype.readInt8=function(n,r){return n=n>>>0,r||G3(n,1,this.length),this[n]&128?(255-this[n]+1)*-1:this[n]};A.prototype.readInt16LE=function(n,r){n=n>>>0,r||G3(n,2,this.length);let o=this[n]|this[n+1]<<8;return o&32768?o|4294901760:o};A.prototype.readInt16BE=function(n,r){n=n>>>0,r||G3(n,2,this.length);let o=this[n+1]|this[n]<<8;return o&32768?o|4294901760:o};A.prototype.readInt32LE=function(n,r){return n=n>>>0,r||G3(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24};A.prototype.readInt32BE=function(n,r){return n=n>>>0,r||G3(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]};A.prototype.readBigInt64LE=O4(function(n){n=n>>>0,p1(n,"offset");let r=this[n],o=this[n+7];(r===void 0||o===void 0)&&x5(n,this.length-8);let i=this[n+4]+this[n+5]*2**8+this[n+6]*2**16+(o<<24);return(BigInt(i)<>>0,p1(n,"offset");let r=this[n],o=this[n+7];(r===void 0||o===void 0)&&x5(n,this.length-8);let i=(r<<24)+this[++n]*2**16+this[++n]*2**8+this[++n];return(BigInt(i)<>>0,r||G3(n,4,this.length),f1.read(this,n,!0,23,4)};A.prototype.readFloatBE=function(n,r){return n=n>>>0,r||G3(n,4,this.length),f1.read(this,n,!1,23,4)};A.prototype.readDoubleLE=function(n,r){return n=n>>>0,r||G3(n,8,this.length),f1.read(this,n,!0,52,8)};A.prototype.readDoubleBE=function(n,r){return n=n>>>0,r||G3(n,8,this.length),f1.read(this,n,!1,52,8)};function M2(e,n,r,o,i,a){if(!A.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>i||ne.length)throw new RangeError("Index out of range")}A.prototype.writeUintLE=A.prototype.writeUIntLE=function(n,r,o,i){if(n=+n,r=r>>>0,o=o>>>0,!i){let s=Math.pow(2,8*o)-1;M2(this,n,r,o,s,0)}let a=1,l=0;for(this[r]=n&255;++l>>0,o=o>>>0,!i){let s=Math.pow(2,8*o)-1;M2(this,n,r,o,s,0)}let a=o-1,l=1;for(this[r+a]=n&255;--a>=0&&(l*=256);)this[r+a]=n/l&255;return r+o};A.prototype.writeUint8=A.prototype.writeUInt8=function(n,r,o){return n=+n,r=r>>>0,o||M2(this,n,r,1,255,0),this[r]=n&255,r+1};A.prototype.writeUint16LE=A.prototype.writeUInt16LE=function(n,r,o){return n=+n,r=r>>>0,o||M2(this,n,r,2,65535,0),this[r]=n&255,this[r+1]=n>>>8,r+2};A.prototype.writeUint16BE=A.prototype.writeUInt16BE=function(n,r,o){return n=+n,r=r>>>0,o||M2(this,n,r,2,65535,0),this[r]=n>>>8,this[r+1]=n&255,r+2};A.prototype.writeUint32LE=A.prototype.writeUInt32LE=function(n,r,o){return n=+n,r=r>>>0,o||M2(this,n,r,4,4294967295,0),this[r+3]=n>>>24,this[r+2]=n>>>16,this[r+1]=n>>>8,this[r]=n&255,r+4};A.prototype.writeUint32BE=A.prototype.writeUInt32BE=function(n,r,o){return n=+n,r=r>>>0,o||M2(this,n,r,4,4294967295,0),this[r]=n>>>24,this[r+1]=n>>>16,this[r+2]=n>>>8,this[r+3]=n&255,r+4};function ui(e,n,r,o,i){gi(n,o,i,e,r,7);let a=Number(n&BigInt(4294967295));e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a;let l=Number(n>>BigInt(32)&BigInt(4294967295));return e[r++]=l,l=l>>8,e[r++]=l,l=l>>8,e[r++]=l,l=l>>8,e[r++]=l,r}function ci(e,n,r,o,i){gi(n,o,i,e,r,7);let a=Number(n&BigInt(4294967295));e[r+7]=a,a=a>>8,e[r+6]=a,a=a>>8,e[r+5]=a,a=a>>8,e[r+4]=a;let l=Number(n>>BigInt(32)&BigInt(4294967295));return e[r+3]=l,l=l>>8,e[r+2]=l,l=l>>8,e[r+1]=l,l=l>>8,e[r]=l,r+8}A.prototype.writeBigUInt64LE=O4(function(n,r=0){return ui(this,n,r,BigInt(0),BigInt("0xffffffffffffffff"))});A.prototype.writeBigUInt64BE=O4(function(n,r=0){return ci(this,n,r,BigInt(0),BigInt("0xffffffffffffffff"))});A.prototype.writeIntLE=function(n,r,o,i){if(n=+n,r=r>>>0,!i){let C=Math.pow(2,8*o-1);M2(this,n,r,o,C-1,-C)}let a=0,l=1,s=0;for(this[r]=n&255;++a>0)-s&255;return r+o};A.prototype.writeIntBE=function(n,r,o,i){if(n=+n,r=r>>>0,!i){let C=Math.pow(2,8*o-1);M2(this,n,r,o,C-1,-C)}let a=o-1,l=1,s=0;for(this[r+a]=n&255;--a>=0&&(l*=256);)n<0&&s===0&&this[r+a+1]!==0&&(s=1),this[r+a]=(n/l>>0)-s&255;return r+o};A.prototype.writeInt8=function(n,r,o){return n=+n,r=r>>>0,o||M2(this,n,r,1,127,-128),n<0&&(n=255+n+1),this[r]=n&255,r+1};A.prototype.writeInt16LE=function(n,r,o){return n=+n,r=r>>>0,o||M2(this,n,r,2,32767,-32768),this[r]=n&255,this[r+1]=n>>>8,r+2};A.prototype.writeInt16BE=function(n,r,o){return n=+n,r=r>>>0,o||M2(this,n,r,2,32767,-32768),this[r]=n>>>8,this[r+1]=n&255,r+2};A.prototype.writeInt32LE=function(n,r,o){return n=+n,r=r>>>0,o||M2(this,n,r,4,2147483647,-2147483648),this[r]=n&255,this[r+1]=n>>>8,this[r+2]=n>>>16,this[r+3]=n>>>24,r+4};A.prototype.writeInt32BE=function(n,r,o){return n=+n,r=r>>>0,o||M2(this,n,r,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),this[r]=n>>>24,this[r+1]=n>>>16,this[r+2]=n>>>8,this[r+3]=n&255,r+4};A.prototype.writeBigInt64LE=O4(function(n,r=0){return ui(this,n,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});A.prototype.writeBigInt64BE=O4(function(n,r=0){return ci(this,n,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function hi(e,n,r,o,i,a){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function mi(e,n,r,o,i){return n=+n,r=r>>>0,i||hi(e,n,r,4,34028234663852886e22,-34028234663852886e22),f1.write(e,n,r,o,23,4),r+4}A.prototype.writeFloatLE=function(n,r,o){return mi(this,n,r,!0,o)};A.prototype.writeFloatBE=function(n,r,o){return mi(this,n,r,!1,o)};function ki(e,n,r,o,i){return n=+n,r=r>>>0,i||hi(e,n,r,8,17976931348623157e292,-17976931348623157e292),f1.write(e,n,r,o,52,8),r+8}A.prototype.writeDoubleLE=function(n,r,o){return ki(this,n,r,!0,o)};A.prototype.writeDoubleBE=function(n,r,o){return ki(this,n,r,!1,o)};A.prototype.copy=function(n,r,o,i){if(!A.isBuffer(n))throw new TypeError("argument should be a Buffer");if(o||(o=0),!i&&i!==0&&(i=this.length),r>=n.length&&(r=n.length),r||(r=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),n.length-r>>0,o=o===void 0?this.length:o>>>0,n||(n=0);let a;if(typeof n=="number")for(a=r;a2**32?i=yi(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=yi(i)),i+="n"),o+=` It must be ${n}. Received ${i}`,o},RangeError);function yi(e){let n="",r=e.length,o=e[0]==="-"?1:0;for(;r>=o+4;r-=3)n=`_${e.slice(r-3,r)}${n}`;return`${e.slice(0,r)}${n}`}function Yc(e,n,r){p1(n,"offset"),(e[n]===void 0||e[n+r]===void 0)&&x5(n,e.length-(r+1))}function gi(e,n,r,o,i,a){if(e>r||e3?n===0||n===BigInt(0)?s=`>= 0${l} and < 2${l} ** ${(a+1)*8}${l}`:s=`>= -(2${l} ** ${(a+1)*8-1}${l}) and < 2 ** ${(a+1)*8-1}${l}`:s=`>= ${n}${l} and <= ${r}${l}`,new d1.ERR_OUT_OF_RANGE("value",s,e)}Yc(o,i,a)}function p1(e,n){if(typeof e!="number")throw new d1.ERR_INVALID_ARG_TYPE(n,"number",e)}function x5(e,n,r){throw Math.floor(e)!==e?(p1(e,r),new d1.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):n<0?new d1.ERR_BUFFER_OUT_OF_BOUNDS:new d1.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${n}`,e)}var Xc=/[^+/0-9A-Za-z-_]/g;function Jc(e){if(e=e.split("=")[0],e=e.trim().replace(Xc,""),e.length<2)return"";for(;e.length%4!=0;)e=e+"=";return e}function he(e,n){n=n||1/0;let r,o=e.length,i=null,a=[];for(let l=0;l55295&&r<57344){if(!i){if(r>56319){(n-=3)>-1&&a.push(239,191,189);continue}else if(l+1===o){(n-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(n-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(n-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((n-=1)<0)break;a.push(r)}else if(r<2048){if((n-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((n-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((n-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function Qc(e){let n=[];for(let r=0;r>8,i=r%256,a.push(i),a.push(o);return a}function xi(e){return Ce.toByteArray(Jc(e))}function C9(e,n,r,o){let i;for(i=0;i=n.length||i>=e.length);++i)n[i+r]=e[i];return i}function C4(e,n){return e instanceof n||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===n.name}function me(e){return e!==e}var eh=function(){let e="0123456789abcdef",n=new Array(256);for(let r=0;r<16;++r){let o=r*16;for(let i=0;i<16;++i)n[o+i]=e[r]+e[i]}return n}();function O4(e){return typeof BigInt=="undefined"?th:e}function th(){throw new Error("BigInt not supported")}});var Mi,T,B,_=Mc(()=>{Mi=J(f9()),T={env:{}},B=Mi.Buffer});var M5=$((JM,Li)=>{_();"use strict";var vi=Object.getOwnPropertySymbols,nh=Object.prototype.hasOwnProperty,rh=Object.prototype.propertyIsEnumerable;function oh(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function ih(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var n={},r=0;r<10;r++)n["_"+String.fromCharCode(r)]=r;var o=Object.getOwnPropertyNames(n).map(function(a){return n[a]});if(o.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch(a){return!1}}Li.exports=ih()?Object.assign:function(e,n){for(var r,o=oh(e),i,a=1;a{_();"use strict";var ke=M5(),c1=60103,Ni=60106;s3.Fragment=60107;s3.StrictMode=60108;s3.Profiler=60114;var _i=60109,bi=60110,wi=60112;s3.Suspense=60113;var ji=60115,Wi=60116;typeof Symbol=="function"&&Symbol.for&&(F2=Symbol.for,c1=F2("react.element"),Ni=F2("react.portal"),s3.Fragment=F2("react.fragment"),s3.StrictMode=F2("react.strict_mode"),s3.Profiler=F2("react.profiler"),_i=F2("react.provider"),bi=F2("react.context"),wi=F2("react.forward_ref"),s3.Suspense=F2("react.suspense"),ji=F2("react.memo"),Wi=F2("react.lazy"));var F2,Si=typeof Symbol=="function"&&Symbol.iterator;function ah(e){return e===null||typeof e!="object"?null:(e=Si&&e[Si]||e["@@iterator"],typeof e=="function"?e:null)}function v5(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r{_();"use strict";Ii.exports=Pi()});var Vi=$(p3=>{_();"use strict";var m1,L5,u9,Le;typeof performance=="object"&&typeof performance.now=="function"?(Oi=performance,p3.unstable_now=function(){return Oi.now()}):(Ne=Date,zi=Ne.now(),p3.unstable_now=function(){return Ne.now()-zi});var Oi,Ne,zi;typeof window=="undefined"||typeof MessageChannel!="function"?(k1=null,_e=null,be=function(){if(k1!==null)try{var e=p3.unstable_now();k1(!0,e),k1=null}catch(n){throw setTimeout(be,0),n}},m1=function(e){k1!==null?setTimeout(m1,0,e):(k1=e,setTimeout(be,0))},L5=function(e,n){_e=setTimeout(e,n)},u9=function(){clearTimeout(_e)},p3.unstable_shouldYield=function(){return!1},Le=p3.unstable_forceFrameRate=function(){}):(Ui=window.setTimeout,Gi=window.clearTimeout,typeof console!="undefined"&&(Hi=window.cancelAnimationFrame,typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof Hi!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")),N5=!1,_5=null,c9=-1,we=5,je=0,p3.unstable_shouldYield=function(){return p3.unstable_now()>=je},Le=function(){},p3.unstable_forceFrameRate=function(e){0>e||125>>1,i=e[o];if(i!==void 0&&0k9(l,r))C!==void 0&&0>k9(C,l)?(e[o]=C,e[s]=r,o=s):(e[o]=l,e[a]=r,o=a);else if(C!==void 0&&0>k9(C,r))e[o]=C,e[s]=r,o=s;else break e}}return n}return null}function k9(e,n){var r=e.sortIndex-n.sortIndex;return r!==0?r:e.id-n.id}var f4=[],z4=[],dh=1,B2=null,K3=3,y9=!1,j0=!1,b5=!1;function Ee(e){for(var n=J2(z4);n!==null;){if(n.callback===null)m9(z4);else if(n.startTime<=e)m9(z4),n.sortIndex=n.expirationTime,Se(f4,n);else break;n=J2(z4)}}function Re(e){if(b5=!1,Ee(e),!j0)if(J2(f4)!==null)j0=!0,m1(Ae);else{var n=J2(z4);n!==null&&L5(Re,n.startTime-e)}}function Ae(e,n){j0=!1,b5&&(b5=!1,u9()),y9=!0;var r=K3;try{for(Ee(n),B2=J2(f4);B2!==null&&(!(B2.expirationTime>n)||e&&!p3.unstable_shouldYield());){var o=B2.callback;if(typeof o=="function"){B2.callback=null,K3=B2.priorityLevel;var i=o(B2.expirationTime<=n);n=p3.unstable_now(),typeof i=="function"?B2.callback=i:B2===J2(f4)&&m9(f4),Ee(n)}else m9(f4);B2=J2(f4)}if(B2!==null)var a=!0;else{var l=J2(z4);l!==null&&L5(Re,l.startTime-n),a=!1}return a}finally{B2=null,K3=r,y9=!1}}var ph=Le;p3.unstable_IdlePriority=5;p3.unstable_ImmediatePriority=1;p3.unstable_LowPriority=4;p3.unstable_NormalPriority=3;p3.unstable_Profiling=null;p3.unstable_UserBlockingPriority=2;p3.unstable_cancelCallback=function(e){e.callback=null};p3.unstable_continueExecution=function(){j0||y9||(j0=!0,m1(Ae))};p3.unstable_getCurrentPriorityLevel=function(){return K3};p3.unstable_getFirstCallbackNode=function(){return J2(f4)};p3.unstable_next=function(e){switch(K3){case 1:case 2:case 3:var n=3;break;default:n=K3}var r=K3;K3=n;try{return e()}finally{K3=r}};p3.unstable_pauseExecution=function(){};p3.unstable_requestPaint=ph;p3.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=K3;K3=e;try{return n()}finally{K3=r}};p3.unstable_scheduleCallback=function(e,n,r){var o=p3.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0o?(e.sortIndex=r,Se(z4,e),J2(f4)===null&&e===J2(z4)&&(b5?u9():b5=!0,L5(Re,r-o))):(e.sortIndex=i,Se(f4,e),j0||y9||(j0=!0,m1(Ae))),e};p3.unstable_wrapCallback=function(e){var n=K3;return function(){var r=K3;K3=n;try{return e.apply(this,arguments)}finally{K3=r}}}});var qi=$((tv,$i)=>{_();"use strict";$i.exports=Vi()});var Fs=$(z2=>{_();"use strict";var g9=C3(),v3=M5(),H3=qi();function P(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;rn}return!1}function f2(e,n,r,o,i,a,l){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=o,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=n,this.sanitizeURL=a,this.removeEmptyString=l}var $3={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){$3[e]=new f2(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];$3[n]=new f2(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){$3[e]=new f2(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){$3[e]=new f2(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){$3[e]=new f2(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){$3[e]=new f2(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){$3[e]=new f2(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){$3[e]=new f2(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){$3[e]=new f2(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ze=/[\-:]([a-z])/g;function Fe(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(Ze,Fe);$3[n]=new f2(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(Ze,Fe);$3[n]=new f2(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(Ze,Fe);$3[n]=new f2(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){$3[e]=new f2(e,1,!1,e.toLowerCase(),null,!1,!1)});$3.xlinkHref=new f2("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){$3[e]=new f2(e,1,!1,e.toLowerCase(),null,!0,!0)});function Be(e,n,r,o){var i=$3.hasOwnProperty(n)?$3[n]:null,a=i!==null?i.type===0:o?!1:!(!(2s||i[l]!==a[s])return`
-`+i[l].replace(" at new "," at ");while(1<=l&&0<=s);break}}}finally{Ve=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?R5(e):""}function kh(e){switch(e.tag){case 5:return R5(e.type);case 16:return R5("Lazy");case 13:return R5("Suspense");case 19:return R5("SuspenseList");case 0:case 2:case 15:return e=L9(e.type,!1),e;case 11:return e=L9(e.type.render,!1),e;case 22:return e=L9(e.type._render,!1),e;case 1:return e=L9(e.type,!0),e;default:return""}}function g1(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case U4:return"Fragment";case E0:return"Portal";case W5:return"Profiler";case Te:return"StrictMode";case S5:return"Suspense";case M9:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Pe:return(e.displayName||"Context")+".Consumer";case De:return(e._context.displayName||"Context")+".Provider";case x9:var n=e.render;return n=n.displayName||n.name||"",e.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case v9:return g1(e.type);case Oe:return g1(e._render);case Ie:n=e._payload,e=e._init;try{return g1(e(n))}catch(r){}}return null}function G4(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ta(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function yh(e){var n=ta(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),o=""+e[n];if(!e.hasOwnProperty(n)&&typeof r!="undefined"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return i.call(this)},set:function(l){o=""+l,a.call(this,l)}}),Object.defineProperty(e,n,{enumerable:r.enumerable}),{getValue:function(){return o},setValue:function(l){o=""+l},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function N9(e){e._valueTracker||(e._valueTracker=yh(e))}function na(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var r=n.getValue(),o="";return e&&(o=ta(e)?e.checked?"true":"false":e.value),e=o,e!==r?(n.setValue(e),!0):!1}function _9(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(n){return e.body}}function $e(e,n){var r=n.checked;return L3({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:e._wrapperState.initialChecked})}function ra(e,n){var r=n.defaultValue==null?"":n.defaultValue,o=n.checked!=null?n.checked:n.defaultChecked;r=G4(n.value!=null?n.value:r),e._wrapperState={initialChecked:o,initialValue:r,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function oa(e,n){n=n.checked,n!=null&&Be(e,"checked",n,!1)}function qe(e,n){oa(e,n);var r=G4(n.value),o=n.type;if(r!=null)o==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?Ye(e,n.type,r):n.hasOwnProperty("defaultValue")&&Ye(e,n.type,G4(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function ia(e,n,r){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var o=n.type;if(!(o!=="submit"&&o!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,r||n===e.value||(e.value=n),e.defaultValue=n}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Ye(e,n,r){(n!=="number"||_9(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function gh(e){var n="";return g9.Children.forEach(e,function(r){r!=null&&(n+=r)}),n}function Xe(e,n){return e=L3({children:void 0},n),(n=gh(n.children))&&(e.children=n),e}function x1(e,n,r,o){if(e=e.options,n){n={};for(var i=0;i=r.length))throw Error(P(93));r=r[0]}n=r}n==null&&(n=""),r=n}e._wrapperState={initialValue:G4(r)}}function la(e,n){var r=G4(n.value),o=G4(n.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),n.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),o!=null&&(e.defaultValue=""+o)}function sa(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}var Qe={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Ca(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ke(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?Ca(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var b9,fa=function(e){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(n,r,o,i){MSApp.execUnsafeLocalFunction(function(){return e(n,r,o,i)})}:e}(function(e,n){if(e.namespaceURI!==Qe.svg||"innerHTML"in e)e.innerHTML=n;else{for(b9=b9||document.createElement("div"),b9.innerHTML="",n=b9.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function A5(e,n){if(n){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=n;return}}e.textContent=n}var Z5={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xh=["Webkit","ms","Moz","O"];Object.keys(Z5).forEach(function(e){xh.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Z5[n]=Z5[e]})});function da(e,n,r){return n==null||typeof n=="boolean"||n===""?"":r||typeof n!="number"||n===0||Z5.hasOwnProperty(e)&&Z5[e]?(""+n).trim():n+"px"}function pa(e,n){e=e.style;for(var r in n)if(n.hasOwnProperty(r)){var o=r.indexOf("--")===0,i=da(r,n[r],o);r==="float"&&(r="cssFloat"),o?e.setProperty(r,i):e[r]=i}}var Mh=L3({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function et(e,n){if(n){if(Mh[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(P(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(P(60));if(!(typeof n.dangerouslySetInnerHTML=="object"&&"__html"in n.dangerouslySetInnerHTML))throw Error(P(61))}if(n.style!=null&&typeof n.style!="object")throw Error(P(62))}}function tt(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function nt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rt=null,M1=null,v1=null;function ua(e){if(e=Q5(e)){if(typeof rt!="function")throw Error(P(280));var n=e.stateNode;n&&(n=V9(n),rt(e.stateNode,e.type,n))}}function ca(e){M1?v1?v1.push(e):v1=[e]:M1=e}function ha(){if(M1){var e=M1,n=v1;if(v1=M1=null,ua(e),n)for(e=0;eo?0:1<r;r++)n.push(e);return n}function A9(e,n,r){e.pendingLanes|=n;var o=n-1;e.suspendedLanes&=o,e.pingedLanes&=o,e=e.eventTimes,n=31-q4(n),e[n]=r}var q4=Math.clz32?Math.clz32:Th,Fh=Math.log,Bh=Math.LN2;function Th(e){return e===0?32:31-(Fh(e)/Bh|0)|0}var Dh=H3.unstable_UserBlockingPriority,Ph=H3.unstable_runWithPriority,Z9=!0;function Ih(e,n,r,o){R0||it();var i=kt,a=R0;R0=!0;try{ma(i,e,n,r,o)}finally{(R0=a)||lt()}}function Oh(e,n,r,o){Ph(Dh,kt.bind(null,e,n,r,o))}function kt(e,n,r,o){if(Z9){var i;if((i=(n&4)==0)&&0=H5),za=String.fromCharCode(32),Ua=!1;function Ga(e,n){switch(e){case"keyup":return fm.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ha(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var j1=!1;function pm(e,n){switch(e){case"compositionend":return Ha(n);case"keypress":return n.which!==32?null:(Ua=!0,za);case"textInput":return e=n.data,e===za&&Ua?null:e;default:return null}}function um(e,n){if(j1)return e==="compositionend"||!_t&&Ga(e,n)?(e=Ba(),F9=gt=Y4=null,j1=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:r,offset:n-e};e=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Ja(r)}}function Ka(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Ka(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function el(){for(var e=window,n=_9();n instanceof e.HTMLIFrameElement;){try{var r=typeof n.contentWindow.location.href=="string"}catch(o){r=!1}if(r)e=n.contentWindow;else break;n=_9(e.document)}return n}function wt(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var Lm=j4&&"documentMode"in document&&11>=document.documentMode,W1=null,jt=null,Y5=null,Wt=!1;function tl(e,n,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Wt||W1==null||W1!==_9(o)||(o=W1,"selectionStart"in o&&wt(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Y5&&q5(Y5,o)||(Y5=o,o=z9(jt,"onSelect"),0Z1||(e.current=Bt[Z1],Bt[Z1]=null,Z1--)}function W3(e,n){Z1++,Bt[Z1]=e.current,e.current=n}var Q4={},e2=J4(Q4),v2=J4(!1),F0=Q4;function F1(e,n){var r=e.type.contextTypes;if(!r)return Q4;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===n)return o.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=n[a];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=i),i}function L2(e){return e=e.childContextTypes,e!=null}function $9(){y3(v2),y3(e2)}function kl(e,n,r){if(e2.current!==Q4)throw Error(P(168));W3(e2,n),W3(v2,r)}function yl(e,n,r){var o=e.stateNode;if(e=n.childContextTypes,typeof o.getChildContext!="function")return r;o=o.getChildContext();for(var i in o)if(!(i in e))throw Error(P(108,g1(n)||"Unknown",i));return L3({},r,o)}function q9(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Q4,F0=e2.current,W3(e2,e),W3(v2,v2.current),!0}function gl(e,n,r){var o=e.stateNode;if(!o)throw Error(P(169));r?(e=yl(e,n,F0),o.__reactInternalMemoizedMergedChildContext=e,y3(v2),y3(e2),W3(e2,e)):y3(v2),W3(v2,r)}var Tt=null,B0=null,bm=H3.unstable_runWithPriority,Dt=H3.unstable_scheduleCallback,Pt=H3.unstable_cancelCallback,wm=H3.unstable_shouldYield,xl=H3.unstable_requestPaint,It=H3.unstable_now,jm=H3.unstable_getCurrentPriorityLevel,Y9=H3.unstable_ImmediatePriority,Ml=H3.unstable_UserBlockingPriority,vl=H3.unstable_NormalPriority,Ll=H3.unstable_LowPriority,Nl=H3.unstable_IdlePriority,Ot={},Wm=xl!==void 0?xl:function(){},W4=null,X9=null,zt=!1,_l=It(),t2=1e4>_l?It:function(){return It()-_l};function B1(){switch(jm()){case Y9:return 99;case Ml:return 98;case vl:return 97;case Ll:return 96;case Nl:return 95;default:throw Error(P(332))}}function bl(e){switch(e){case 99:return Y9;case 98:return Ml;case 97:return vl;case 96:return Ll;case 95:return Nl;default:throw Error(P(332))}}function T0(e,n){return e=bl(e),bm(e,n)}function K5(e,n,r){return e=bl(e),Dt(e,n,r)}function p4(){if(X9!==null){var e=X9;X9=null,Pt(e)}wl()}function wl(){if(!zt&&W4!==null){zt=!0;var e=0;try{var n=W4;T0(99,function(){for(;eE?(F=S,S=null):F=S.sibling;var D=h(k,S,y[E],x);if(D===null){S===null&&(S=F);break}e&&S&&D.alternate===null&&n(k,S),m=a(D,m,E),W===null?M=D:W.sibling=D,W=D,S=F}if(E===y.length)return r(k,S),M;if(S===null){for(;EE?(F=S,S=null):F=S.sibling;var U=h(k,S,D.value,x);if(U===null){S===null&&(S=F);break}e&&S&&U.alternate===null&&n(k,S),m=a(U,m,E),W===null?M=U:W.sibling=U,W=U,S=F}if(D.done)return r(k,S),M;if(S===null){for(;!D.done;E++,D=y.next())D=c(k,D.value,x),D!==null&&(m=a(D,m,E),W===null?M=D:W.sibling=D,W=D);return M}for(S=o(k,S);!D.done;E++,D=y.next())D=g(S,k,E,D.value,x),D!==null&&(e&&D.alternate!==null&&S.delete(D.key===null?E:D.key),m=a(D,m,E),W===null?M=D:W.sibling=D,W=D);return e&&S.forEach(function(o3){return n(k,o3)}),M}return function(k,m,y,x){var M=typeof y=="object"&&y!==null&&y.type===U4&&y.key===null;M&&(y=y.props.children);var W=typeof y=="object"&&y!==null;if(W)switch(y.$$typeof){case j5:e:{for(W=y.key,M=m;M!==null;){if(M.key===W){switch(M.tag){case 7:if(y.type===U4){r(k,M.sibling),m=i(M,y.props.children),m.return=k,k=m;break e}break;default:if(M.elementType===y.type){r(k,M.sibling),m=i(M,y.props),m.ref=t6(k,M,y),m.return=k,k=m;break e}}r(k,M);break}else n(k,M);M=M.sibling}y.type===U4?(m=V1(y.props.children,k.mode,x,y.key),m.return=k,k=m):(x=M7(y.type,y.key,y.props,null,k.mode,x),x.ref=t6(k,m,y),x.return=k,k=x)}return l(k);case E0:e:{for(M=y.key;m!==null;){if(m.key===M)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){r(k,m.sibling),m=i(m,y.children||[]),m.return=k,k=m;break e}else{r(k,m);break}else n(k,m);m=m.sibling}m=Sn(y,k.mode,x),m.return=k,k=m}return l(k)}if(typeof y=="string"||typeof y=="number")return y=""+y,m!==null&&m.tag===6?(r(k,m.sibling),m=i(m,y),m.return=k,k=m):(r(k,m),m=Wn(y,k.mode,x),m.return=k,k=m),l(k);if(n7(y))return w(k,m,y,x);if(E5(y))return N(k,m,y,x);if(W&&r7(k,y),typeof y=="undefined"&&!M)switch(k.tag){case 1:case 22:case 0:case 11:case 15:throw Error(P(152,g1(k.type)||"Component"))}return r(k,m)}}var o7=Bl(!0),Tl=Bl(!1),n6={},u4=J4(n6),r6=J4(n6),o6=J4(n6);function D0(e){if(e===n6)throw Error(P(174));return e}function $t(e,n){switch(W3(o6,n),W3(r6,e),W3(u4,n6),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Ke(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=Ke(n,e)}y3(u4),W3(u4,n)}function P1(){y3(u4),y3(r6),y3(o6)}function Dl(e){D0(o6.current);var n=D0(u4.current),r=Ke(n,e.type);n!==r&&(W3(r6,e),W3(u4,r))}function qt(e){r6.current===e&&(y3(u4),y3(r6))}var S3=J4(0);function i7(e){for(var n=e;n!==null;){if(n.tag===13){var r=n.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&64)!=0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var S4=null,n0=null,c4=!1;function Pl(e,n){var r=O2(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=n,r.return=e,r.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function Il(e,n){switch(e.tag){case 5:var r=e.type;return n=n.nodeType!==1||r.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,!0):!1;case 13:return!1;default:return!1}}function Yt(e){if(c4){var n=n0;if(n){var r=n;if(!Il(e,n)){if(n=E1(r.nextSibling),!n||!Il(e,n)){e.flags=e.flags&-1025|2,c4=!1,S4=e;return}Pl(S4,r)}S4=e,n0=E1(n.firstChild)}else e.flags=e.flags&-1025|2,c4=!1,S4=e}}function Ol(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;S4=e}function a7(e){if(e!==S4)return!1;if(!c4)return Ol(e),c4=!0,!1;var n=e.type;if(e.tag!==5||n!=="head"&&n!=="body"&&!At(n,e.memoizedProps))for(n=n0;n;)Pl(e,n),n=E1(n.nextSibling);if(Ol(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(P(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(n===0){n0=E1(e.nextSibling);break e}n--}else r!=="$"&&r!=="$!"&&r!=="$?"||n++}e=e.nextSibling}n0=null}}else n0=S4?E1(e.stateNode.nextSibling):null;return!0}function Xt(){n0=S4=null,c4=!1}var I1=[];function Jt(){for(var e=0;ea))throw Error(P(301));a+=1,q3=n2=null,n.updateQueue=null,i6.current=Zm,e=r(o,i)}while(l6)}if(i6.current=d7,n=n2!==null&&n2.next!==null,a6=0,q3=n2=A3=null,l7=!1,n)throw Error(P(300));return e}function P0(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return q3===null?A3.memoizedState=q3=e:q3=q3.next=e,q3}function I0(){if(n2===null){var e=A3.alternate;e=e!==null?e.memoizedState:null}else e=n2.next;var n=q3===null?A3.memoizedState:q3.next;if(n!==null)q3=n,n2=e;else{if(e===null)throw Error(P(310));n2=e,e={memoizedState:n2.memoizedState,baseState:n2.baseState,baseQueue:n2.baseQueue,queue:n2.queue,next:null},q3===null?A3.memoizedState=q3=e:q3=q3.next=e}return q3}function h4(e,n){return typeof n=="function"?n(e):n}function s6(e){var n=I0(),r=n.queue;if(r===null)throw Error(P(311));r.lastRenderedReducer=e;var o=n2,i=o.baseQueue,a=r.pending;if(a!==null){if(i!==null){var l=i.next;i.next=a.next,a.next=l}o.baseQueue=i=a,r.pending=null}if(i!==null){i=i.next,o=o.baseState;var s=l=a=null,C=i;do{var d=C.lane;if((a6&d)===d)s!==null&&(s=s.next={lane:0,action:C.action,eagerReducer:C.eagerReducer,eagerState:C.eagerState,next:null}),o=C.eagerReducer===e?C.eagerState:e(o,C.action);else{var p={lane:d,action:C.action,eagerReducer:C.eagerReducer,eagerState:C.eagerState,next:null};s===null?(l=s=p,a=o):s=s.next=p,A3.lanes|=d,p6|=d}C=C.next}while(C!==null&&C!==i);s===null?a=o:s.next=l,T2(o,n.memoizedState)||(K2=!0),n.memoizedState=o,n.baseState=a,n.baseQueue=s,r.lastRenderedState=o}return[n.memoizedState,r.dispatch]}function C6(e){var n=I0(),r=n.queue;if(r===null)throw Error(P(311));r.lastRenderedReducer=e;var o=r.dispatch,i=r.pending,a=n.memoizedState;if(i!==null){r.pending=null;var l=i=i.next;do a=e(a,l.action),l=l.next;while(l!==i);T2(a,n.memoizedState)||(K2=!0),n.memoizedState=a,n.baseQueue===null&&(n.baseState=a),r.lastRenderedState=a}return[a,o]}function zl(e,n,r){var o=n._getVersion;o=o(n._source);var i=n._workInProgressVersionPrimary;if(i!==null?e=i===o:(e=e.mutableReadLanes,(e=(a6&e)===e)&&(n._workInProgressVersionPrimary=o,I1.push(n))),e)return r(n._source);throw I1.push(n),Error(P(350))}function Ul(e,n,r,o){var i=d2;if(i===null)throw Error(P(349));var a=n._getVersion,l=a(n._source),s=i6.current,C=s.useState(function(){return zl(i,n,r)}),d=C[1],p=C[0];C=q3;var c=e.memoizedState,h=c.refs,g=h.getSnapshot,w=c.source;c=c.subscribe;var N=A3;return e.memoizedState={refs:h,source:n,subscribe:o},s.useEffect(function(){h.getSnapshot=r,h.setSnapshot=d;var k=a(n._source);if(!T2(l,k)){k=r(n._source),T2(p,k)||(d(k),k=o0(N),i.mutableReadLanes|=k&i.pendingLanes),k=i.mutableReadLanes,i.entangledLanes|=k;for(var m=i.entanglements,y=k;0r?98:r,function(){e(!0)}),T0(97<\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=l.createElement(r,{is:o.is}):(e=l.createElement(r),r==="select"&&(l=e,o.multiple?l.multiple=!0:o.size&&(l.size=o.size))):e=l.createElementNS(e,r),e[X4]=n,e[H9]=o,fs(e,n,!1,!1),n.stateNode=e,l=tt(r,o),r){case"dialog":k3("cancel",e),k3("close",e),i=o;break;case"iframe":case"object":case"embed":k3("load",e),i=o;break;case"video":case"audio":for(i=0;ixn&&(n.flags|=64,a=!0,d6(o,!1),n.lanes=33554432)}else{if(!a)if(e=i7(l),e!==null){if(n.flags|=64,a=!0,r=e.updateQueue,r!==null&&(n.updateQueue=r,n.flags|=4),d6(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!c4)return n=n.lastEffect=o.lastEffect,n!==null&&(n.nextEffect=null),null}else 2*t2()-o.renderingStartTime>xn&&r!==1073741824&&(n.flags|=64,a=!0,d6(o,!1),n.lanes=33554432);o.isBackwards?(l.sibling=n.child,n.child=l):(r=o.last,r!==null?r.sibling=l:n.child=l,o.last=l)}return o.tail!==null?(r=o.tail,o.rendering=r,o.tail=r.sibling,o.lastEffect=n.lastEffect,o.renderingStartTime=t2(),r.sibling=null,n=S3.current,W3(S3,a?n&1|2:n&1),r):null;case 23:case 24:return bn(),e!==null&&e.memoizedState!==null!=(n.memoizedState!==null)&&o.mode!=="unstable-defer-without-hiding"&&(n.flags|=4),null}throw Error(P(156,n.tag))}function Tm(e){switch(e.tag){case 1:L2(e.type)&&$9();var n=e.flags;return n&4096?(e.flags=n&-4097|64,e):null;case 3:if(P1(),y3(v2),y3(e2),Jt(),n=e.flags,(n&64)!=0)throw Error(P(285));return e.flags=n&-4097|64,e;case 5:return qt(e),null;case 13:return y3(S3),n=e.flags,n&4096?(e.flags=n&-4097|64,e):null;case 19:return y3(S3),null;case 4:return P1(),null;case 10:return Gt(e),null;case 23:case 24:return bn(),null;default:return null}}function fn(e,n){try{var r="",o=n;do r+=kh(o),o=o.return;while(o);var i=r}catch(a){i=`
+`+i[l].replace(" at new "," at ");while(1<=l&&0<=s);break}}}finally{Ve=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?R5(e):""}function kh(e){switch(e.tag){case 5:return R5(e.type);case 16:return R5("Lazy");case 13:return R5("Suspense");case 19:return R5("SuspenseList");case 0:case 2:case 15:return e=L9(e.type,!1),e;case 11:return e=L9(e.type.render,!1),e;case 22:return e=L9(e.type._render,!1),e;case 1:return e=L9(e.type,!0),e;default:return""}}function g1(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case U4:return"Fragment";case E0:return"Portal";case W5:return"Profiler";case Te:return"StrictMode";case S5:return"Suspense";case M9:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Pe:return(e.displayName||"Context")+".Consumer";case De:return(e._context.displayName||"Context")+".Provider";case x9:var n=e.render;return n=n.displayName||n.name||"",e.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case v9:return g1(e.type);case Oe:return g1(e._render);case Ie:n=e._payload,e=e._init;try{return g1(e(n))}catch(r){}}return null}function G4(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ta(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function yh(e){var n=ta(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),o=""+e[n];if(!e.hasOwnProperty(n)&&typeof r!="undefined"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return i.call(this)},set:function(l){o=""+l,a.call(this,l)}}),Object.defineProperty(e,n,{enumerable:r.enumerable}),{getValue:function(){return o},setValue:function(l){o=""+l},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function N9(e){e._valueTracker||(e._valueTracker=yh(e))}function na(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var r=n.getValue(),o="";return e&&(o=ta(e)?e.checked?"true":"false":e.value),e=o,e!==r?(n.setValue(e),!0):!1}function _9(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(n){return e.body}}function $e(e,n){var r=n.checked;return v3({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:e._wrapperState.initialChecked})}function ra(e,n){var r=n.defaultValue==null?"":n.defaultValue,o=n.checked!=null?n.checked:n.defaultChecked;r=G4(n.value!=null?n.value:r),e._wrapperState={initialChecked:o,initialValue:r,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function oa(e,n){n=n.checked,n!=null&&Be(e,"checked",n,!1)}function qe(e,n){oa(e,n);var r=G4(n.value),o=n.type;if(r!=null)o==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?Ye(e,n.type,r):n.hasOwnProperty("defaultValue")&&Ye(e,n.type,G4(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function ia(e,n,r){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var o=n.type;if(!(o!=="submit"&&o!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,r||n===e.value||(e.value=n),e.defaultValue=n}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Ye(e,n,r){(n!=="number"||_9(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function gh(e){var n="";return g9.Children.forEach(e,function(r){r!=null&&(n+=r)}),n}function Xe(e,n){return e=v3({children:void 0},n),(n=gh(n.children))&&(e.children=n),e}function x1(e,n,r,o){if(e=e.options,n){n={};for(var i=0;i=r.length))throw Error(P(93));r=r[0]}n=r}n==null&&(n=""),r=n}e._wrapperState={initialValue:G4(r)}}function la(e,n){var r=G4(n.value),o=G4(n.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),n.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),o!=null&&(e.defaultValue=""+o)}function sa(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}var Qe={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Ca(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ke(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?Ca(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var b9,fa=function(e){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(n,r,o,i){MSApp.execUnsafeLocalFunction(function(){return e(n,r,o,i)})}:e}(function(e,n){if(e.namespaceURI!==Qe.svg||"innerHTML"in e)e.innerHTML=n;else{for(b9=b9||document.createElement("div"),b9.innerHTML="",n=b9.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function A5(e,n){if(n){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=n;return}}e.textContent=n}var Z5={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xh=["Webkit","ms","Moz","O"];Object.keys(Z5).forEach(function(e){xh.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Z5[n]=Z5[e]})});function da(e,n,r){return n==null||typeof n=="boolean"||n===""?"":r||typeof n!="number"||n===0||Z5.hasOwnProperty(e)&&Z5[e]?(""+n).trim():n+"px"}function pa(e,n){e=e.style;for(var r in n)if(n.hasOwnProperty(r)){var o=r.indexOf("--")===0,i=da(r,n[r],o);r==="float"&&(r="cssFloat"),o?e.setProperty(r,i):e[r]=i}}var Mh=v3({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function et(e,n){if(n){if(Mh[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(P(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(P(60));if(!(typeof n.dangerouslySetInnerHTML=="object"&&"__html"in n.dangerouslySetInnerHTML))throw Error(P(61))}if(n.style!=null&&typeof n.style!="object")throw Error(P(62))}}function tt(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function nt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rt=null,M1=null,v1=null;function ua(e){if(e=Q5(e)){if(typeof rt!="function")throw Error(P(280));var n=e.stateNode;n&&(n=V9(n),rt(e.stateNode,e.type,n))}}function ca(e){M1?v1?v1.push(e):v1=[e]:M1=e}function ha(){if(M1){var e=M1,n=v1;if(v1=M1=null,ua(e),n)for(e=0;eo?0:1<r;r++)n.push(e);return n}function A9(e,n,r){e.pendingLanes|=n;var o=n-1;e.suspendedLanes&=o,e.pingedLanes&=o,e=e.eventTimes,n=31-q4(n),e[n]=r}var q4=Math.clz32?Math.clz32:Th,Fh=Math.log,Bh=Math.LN2;function Th(e){return e===0?32:31-(Fh(e)/Bh|0)|0}var Dh=H3.unstable_UserBlockingPriority,Ph=H3.unstable_runWithPriority,Z9=!0;function Ih(e,n,r,o){R0||it();var i=kt,a=R0;R0=!0;try{ma(i,e,n,r,o)}finally{(R0=a)||lt()}}function Oh(e,n,r,o){Ph(Dh,kt.bind(null,e,n,r,o))}function kt(e,n,r,o){if(Z9){var i;if((i=(n&4)==0)&&0=H5),za=String.fromCharCode(32),Ua=!1;function Ga(e,n){switch(e){case"keyup":return fm.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ha(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var j1=!1;function pm(e,n){switch(e){case"compositionend":return Ha(n);case"keypress":return n.which!==32?null:(Ua=!0,za);case"textInput":return e=n.data,e===za&&Ua?null:e;default:return null}}function um(e,n){if(j1)return e==="compositionend"||!_t&&Ga(e,n)?(e=Ba(),F9=gt=Y4=null,j1=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:r,offset:n-e};e=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Ja(r)}}function Ka(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Ka(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function el(){for(var e=window,n=_9();n instanceof e.HTMLIFrameElement;){try{var r=typeof n.contentWindow.location.href=="string"}catch(o){r=!1}if(r)e=n.contentWindow;else break;n=_9(e.document)}return n}function wt(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var Lm=j4&&"documentMode"in document&&11>=document.documentMode,W1=null,jt=null,Y5=null,Wt=!1;function tl(e,n,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Wt||W1==null||W1!==_9(o)||(o=W1,"selectionStart"in o&&wt(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Y5&&q5(Y5,o)||(Y5=o,o=z9(jt,"onSelect"),0Z1||(e.current=Bt[Z1],Bt[Z1]=null,Z1--)}function j3(e,n){Z1++,Bt[Z1]=e.current,e.current=n}var Q4={},e2=J4(Q4),v2=J4(!1),F0=Q4;function F1(e,n){var r=e.type.contextTypes;if(!r)return Q4;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===n)return o.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=n[a];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=i),i}function L2(e){return e=e.childContextTypes,e!=null}function $9(){y3(v2),y3(e2)}function kl(e,n,r){if(e2.current!==Q4)throw Error(P(168));j3(e2,n),j3(v2,r)}function yl(e,n,r){var o=e.stateNode;if(e=n.childContextTypes,typeof o.getChildContext!="function")return r;o=o.getChildContext();for(var i in o)if(!(i in e))throw Error(P(108,g1(n)||"Unknown",i));return v3({},r,o)}function q9(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Q4,F0=e2.current,j3(e2,e),j3(v2,v2.current),!0}function gl(e,n,r){var o=e.stateNode;if(!o)throw Error(P(169));r?(e=yl(e,n,F0),o.__reactInternalMemoizedMergedChildContext=e,y3(v2),y3(e2),j3(e2,e)):y3(v2),j3(v2,r)}var Tt=null,B0=null,bm=H3.unstable_runWithPriority,Dt=H3.unstable_scheduleCallback,Pt=H3.unstable_cancelCallback,wm=H3.unstable_shouldYield,xl=H3.unstable_requestPaint,It=H3.unstable_now,jm=H3.unstable_getCurrentPriorityLevel,Y9=H3.unstable_ImmediatePriority,Ml=H3.unstable_UserBlockingPriority,vl=H3.unstable_NormalPriority,Ll=H3.unstable_LowPriority,Nl=H3.unstable_IdlePriority,Ot={},Wm=xl!==void 0?xl:function(){},W4=null,X9=null,zt=!1,_l=It(),t2=1e4>_l?It:function(){return It()-_l};function B1(){switch(jm()){case Y9:return 99;case Ml:return 98;case vl:return 97;case Ll:return 96;case Nl:return 95;default:throw Error(P(332))}}function bl(e){switch(e){case 99:return Y9;case 98:return Ml;case 97:return vl;case 96:return Ll;case 95:return Nl;default:throw Error(P(332))}}function T0(e,n){return e=bl(e),bm(e,n)}function K5(e,n,r){return e=bl(e),Dt(e,n,r)}function p4(){if(X9!==null){var e=X9;X9=null,Pt(e)}wl()}function wl(){if(!zt&&W4!==null){zt=!0;var e=0;try{var n=W4;T0(99,function(){for(;eE?(F=S,S=null):F=S.sibling;var D=h(k,S,y[E],x);if(D===null){S===null&&(S=F);break}e&&S&&D.alternate===null&&n(k,S),m=a(D,m,E),W===null?M=D:W.sibling=D,W=D,S=F}if(E===y.length)return r(k,S),M;if(S===null){for(;EE?(F=S,S=null):F=S.sibling;var U=h(k,S,D.value,x);if(U===null){S===null&&(S=F);break}e&&S&&U.alternate===null&&n(k,S),m=a(U,m,E),W===null?M=U:W.sibling=U,W=U,S=F}if(D.done)return r(k,S),M;if(S===null){for(;!D.done;E++,D=y.next())D=c(k,D.value,x),D!==null&&(m=a(D,m,E),W===null?M=D:W.sibling=D,W=D);return M}for(S=o(k,S);!D.done;E++,D=y.next())D=g(S,k,E,D.value,x),D!==null&&(e&&D.alternate!==null&&S.delete(D.key===null?E:D.key),m=a(D,m,E),W===null?M=D:W.sibling=D,W=D);return e&&S.forEach(function(o3){return n(k,o3)}),M}return function(k,m,y,x){var M=typeof y=="object"&&y!==null&&y.type===U4&&y.key===null;M&&(y=y.props.children);var W=typeof y=="object"&&y!==null;if(W)switch(y.$$typeof){case j5:e:{for(W=y.key,M=m;M!==null;){if(M.key===W){switch(M.tag){case 7:if(y.type===U4){r(k,M.sibling),m=i(M,y.props.children),m.return=k,k=m;break e}break;default:if(M.elementType===y.type){r(k,M.sibling),m=i(M,y.props),m.ref=t6(k,M,y),m.return=k,k=m;break e}}r(k,M);break}else n(k,M);M=M.sibling}y.type===U4?(m=V1(y.props.children,k.mode,x,y.key),m.return=k,k=m):(x=M7(y.type,y.key,y.props,null,k.mode,x),x.ref=t6(k,m,y),x.return=k,k=x)}return l(k);case E0:e:{for(M=y.key;m!==null;){if(m.key===M)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){r(k,m.sibling),m=i(m,y.children||[]),m.return=k,k=m;break e}else{r(k,m);break}else n(k,m);m=m.sibling}m=Sn(y,k.mode,x),m.return=k,k=m}return l(k)}if(typeof y=="string"||typeof y=="number")return y=""+y,m!==null&&m.tag===6?(r(k,m.sibling),m=i(m,y),m.return=k,k=m):(r(k,m),m=Wn(y,k.mode,x),m.return=k,k=m),l(k);if(n7(y))return w(k,m,y,x);if(E5(y))return N(k,m,y,x);if(W&&r7(k,y),typeof y=="undefined"&&!M)switch(k.tag){case 1:case 22:case 0:case 11:case 15:throw Error(P(152,g1(k.type)||"Component"))}return r(k,m)}}var o7=Bl(!0),Tl=Bl(!1),n6={},u4=J4(n6),r6=J4(n6),o6=J4(n6);function D0(e){if(e===n6)throw Error(P(174));return e}function $t(e,n){switch(j3(o6,n),j3(r6,e),j3(u4,n6),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Ke(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=Ke(n,e)}y3(u4),j3(u4,n)}function P1(){y3(u4),y3(r6),y3(o6)}function Dl(e){D0(o6.current);var n=D0(u4.current),r=Ke(n,e.type);n!==r&&(j3(r6,e),j3(u4,r))}function qt(e){r6.current===e&&(y3(u4),y3(r6))}var W3=J4(0);function i7(e){for(var n=e;n!==null;){if(n.tag===13){var r=n.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&64)!=0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var S4=null,n0=null,c4=!1;function Pl(e,n){var r=O2(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=n,r.return=e,r.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function Il(e,n){switch(e.tag){case 5:var r=e.type;return n=n.nodeType!==1||r.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,!0):!1;case 13:return!1;default:return!1}}function Yt(e){if(c4){var n=n0;if(n){var r=n;if(!Il(e,n)){if(n=E1(r.nextSibling),!n||!Il(e,n)){e.flags=e.flags&-1025|2,c4=!1,S4=e;return}Pl(S4,r)}S4=e,n0=E1(n.firstChild)}else e.flags=e.flags&-1025|2,c4=!1,S4=e}}function Ol(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;S4=e}function a7(e){if(e!==S4)return!1;if(!c4)return Ol(e),c4=!0,!1;var n=e.type;if(e.tag!==5||n!=="head"&&n!=="body"&&!At(n,e.memoizedProps))for(n=n0;n;)Pl(e,n),n=E1(n.nextSibling);if(Ol(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(P(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(n===0){n0=E1(e.nextSibling);break e}n--}else r!=="$"&&r!=="$!"&&r!=="$?"||n++}e=e.nextSibling}n0=null}}else n0=S4?E1(e.stateNode.nextSibling):null;return!0}function Xt(){n0=S4=null,c4=!1}var I1=[];function Jt(){for(var e=0;ea))throw Error(P(301));a+=1,q3=n2=null,n.updateQueue=null,i6.current=Zm,e=r(o,i)}while(l6)}if(i6.current=d7,n=n2!==null&&n2.next!==null,a6=0,q3=n2=A3=null,l7=!1,n)throw Error(P(300));return e}function P0(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return q3===null?A3.memoizedState=q3=e:q3=q3.next=e,q3}function I0(){if(n2===null){var e=A3.alternate;e=e!==null?e.memoizedState:null}else e=n2.next;var n=q3===null?A3.memoizedState:q3.next;if(n!==null)q3=n,n2=e;else{if(e===null)throw Error(P(310));n2=e,e={memoizedState:n2.memoizedState,baseState:n2.baseState,baseQueue:n2.baseQueue,queue:n2.queue,next:null},q3===null?A3.memoizedState=q3=e:q3=q3.next=e}return q3}function h4(e,n){return typeof n=="function"?n(e):n}function s6(e){var n=I0(),r=n.queue;if(r===null)throw Error(P(311));r.lastRenderedReducer=e;var o=n2,i=o.baseQueue,a=r.pending;if(a!==null){if(i!==null){var l=i.next;i.next=a.next,a.next=l}o.baseQueue=i=a,r.pending=null}if(i!==null){i=i.next,o=o.baseState;var s=l=a=null,C=i;do{var d=C.lane;if((a6&d)===d)s!==null&&(s=s.next={lane:0,action:C.action,eagerReducer:C.eagerReducer,eagerState:C.eagerState,next:null}),o=C.eagerReducer===e?C.eagerState:e(o,C.action);else{var p={lane:d,action:C.action,eagerReducer:C.eagerReducer,eagerState:C.eagerState,next:null};s===null?(l=s=p,a=o):s=s.next=p,A3.lanes|=d,p6|=d}C=C.next}while(C!==null&&C!==i);s===null?a=o:s.next=l,T2(o,n.memoizedState)||(K2=!0),n.memoizedState=o,n.baseState=a,n.baseQueue=s,r.lastRenderedState=o}return[n.memoizedState,r.dispatch]}function C6(e){var n=I0(),r=n.queue;if(r===null)throw Error(P(311));r.lastRenderedReducer=e;var o=r.dispatch,i=r.pending,a=n.memoizedState;if(i!==null){r.pending=null;var l=i=i.next;do a=e(a,l.action),l=l.next;while(l!==i);T2(a,n.memoizedState)||(K2=!0),n.memoizedState=a,n.baseQueue===null&&(n.baseState=a),r.lastRenderedState=a}return[a,o]}function zl(e,n,r){var o=n._getVersion;o=o(n._source);var i=n._workInProgressVersionPrimary;if(i!==null?e=i===o:(e=e.mutableReadLanes,(e=(a6&e)===e)&&(n._workInProgressVersionPrimary=o,I1.push(n))),e)return r(n._source);throw I1.push(n),Error(P(350))}function Ul(e,n,r,o){var i=d2;if(i===null)throw Error(P(349));var a=n._getVersion,l=a(n._source),s=i6.current,C=s.useState(function(){return zl(i,n,r)}),d=C[1],p=C[0];C=q3;var c=e.memoizedState,h=c.refs,g=h.getSnapshot,w=c.source;c=c.subscribe;var N=A3;return e.memoizedState={refs:h,source:n,subscribe:o},s.useEffect(function(){h.getSnapshot=r,h.setSnapshot=d;var k=a(n._source);if(!T2(l,k)){k=r(n._source),T2(p,k)||(d(k),k=o0(N),i.mutableReadLanes|=k&i.pendingLanes),k=i.mutableReadLanes,i.entangledLanes|=k;for(var m=i.entanglements,y=k;0r?98:r,function(){e(!0)}),T0(97<\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=l.createElement(r,{is:o.is}):(e=l.createElement(r),r==="select"&&(l=e,o.multiple?l.multiple=!0:o.size&&(l.size=o.size))):e=l.createElementNS(e,r),e[X4]=n,e[H9]=o,fs(e,n,!1,!1),n.stateNode=e,l=tt(r,o),r){case"dialog":k3("cancel",e),k3("close",e),i=o;break;case"iframe":case"object":case"embed":k3("load",e),i=o;break;case"video":case"audio":for(i=0;ixn&&(n.flags|=64,a=!0,d6(o,!1),n.lanes=33554432)}else{if(!a)if(e=i7(l),e!==null){if(n.flags|=64,a=!0,r=e.updateQueue,r!==null&&(n.updateQueue=r,n.flags|=4),d6(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!c4)return n=n.lastEffect=o.lastEffect,n!==null&&(n.nextEffect=null),null}else 2*t2()-o.renderingStartTime>xn&&r!==1073741824&&(n.flags|=64,a=!0,d6(o,!1),n.lanes=33554432);o.isBackwards?(l.sibling=n.child,n.child=l):(r=o.last,r!==null?r.sibling=l:n.child=l,o.last=l)}return o.tail!==null?(r=o.tail,o.rendering=r,o.tail=r.sibling,o.lastEffect=n.lastEffect,o.renderingStartTime=t2(),r.sibling=null,n=W3.current,j3(W3,a?n&1|2:n&1),r):null;case 23:case 24:return bn(),e!==null&&e.memoizedState!==null!=(n.memoizedState!==null)&&o.mode!=="unstable-defer-without-hiding"&&(n.flags|=4),null}throw Error(P(156,n.tag))}function Tm(e){switch(e.tag){case 1:L2(e.type)&&$9();var n=e.flags;return n&4096?(e.flags=n&-4097|64,e):null;case 3:if(P1(),y3(v2),y3(e2),Jt(),n=e.flags,(n&64)!=0)throw Error(P(285));return e.flags=n&-4097|64,e;case 5:return qt(e),null;case 13:return y3(W3),n=e.flags,n&4096?(e.flags=n&-4097|64,e):null;case 19:return y3(W3),null;case 4:return P1(),null;case 10:return Gt(e),null;case 23:case 24:return bn(),null;default:return null}}function fn(e,n){try{var r="",o=n;do r+=kh(o),o=o.return;while(o);var i=r}catch(a){i=`
Error generating stack: `+a.message+`
-`+a.stack}return{value:e,source:n,stack:i}}function dn(e,n){try{console.error(n.value)}catch(r){setTimeout(function(){throw r})}}var Dm=typeof WeakMap=="function"?WeakMap:Map;function us(e,n,r){r=e0(-1,r),r.tag=3,r.payload={element:null};var o=n.value;return r.callback=function(){h7||(h7=!0,Mn=o),dn(e,n)},r}function cs(e,n,r){r=e0(-1,r),r.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var i=n.value;r.payload=function(){return dn(e,n),o(i)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){typeof o!="function"&&(m4===null?m4=new Set([this]):m4.add(this),dn(e,n));var l=n.stack;this.componentDidCatch(n.value,{componentStack:l!==null?l:""})}),r}var Pm=typeof WeakSet=="function"?WeakSet:Set;function hs(e){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){l0(e,r)}else n.current=null}function Im(e,n){switch(n.tag){case 0:case 11:case 15:case 22:return;case 1:if(n.flags&256&&e!==null){var r=e.memoizedProps,o=e.memoizedState;e=n.stateNode,n=e.getSnapshotBeforeUpdate(n.elementType===n.type?r:Q2(n.type,r),o),e.__reactInternalSnapshotBeforeUpdate=n}return;case 3:n.flags&256&&Zt(n.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(P(163))}function Om(e,n,r){switch(r.tag){case 0:case 11:case 15:case 22:if(n=r.updateQueue,n=n!==null?n.lastEffect:null,n!==null){e=n=n.next;do{if((e.tag&3)==3){var o=e.create;e.destroy=o()}e=e.next}while(e!==n)}if(n=r.updateQueue,n=n!==null?n.lastEffect:null,n!==null){e=n=n.next;do{var i=e;o=i.next,i=i.tag,(i&4)!=0&&(i&1)!=0&&(Ss(r,e),Ym(r,e)),e=o}while(e!==n)}return;case 1:e=r.stateNode,r.flags&4&&(n===null?e.componentDidMount():(o=r.elementType===r.type?n.memoizedProps:Q2(r.type,n.memoizedProps),e.componentDidUpdate(o,n.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),n=r.updateQueue,n!==null&&El(r,n,e);return;case 3:if(n=r.updateQueue,n!==null){if(e=null,r.child!==null)switch(r.child.tag){case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}El(r,n,e)}return;case 5:e=r.stateNode,n===null&&r.flags&4&&pl(r.type,r.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:r.memoizedState===null&&(r=r.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&ja(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(P(163))}function ms(e,n){for(var r=e;;){if(r.tag===5){var o=r.stateNode;if(n)o=o.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{o=r.stateNode;var i=r.memoizedProps.style;i=i!=null&&i.hasOwnProperty("display")?i.display:null,o.style.display=da("display",i)}}else if(r.tag===6)r.stateNode.nodeValue=n?"":r.memoizedProps;else if((r.tag!==23&&r.tag!==24||r.memoizedState===null||r===e)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function ks(e,n){if(B0&&typeof B0.onCommitFiberUnmount=="function")try{B0.onCommitFiberUnmount(Tt,n)}catch(a){}switch(n.tag){case 0:case 11:case 14:case 15:case 22:if(e=n.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var r=e=e.next;do{var o=r,i=o.destroy;if(o=o.tag,i!==void 0)if((o&4)!=0)Ss(n,r);else{o=n;try{i()}catch(a){l0(o,a)}}r=r.next}while(r!==e)}break;case 1:if(hs(n),e=n.stateNode,typeof e.componentWillUnmount=="function")try{e.props=n.memoizedProps,e.state=n.memoizedState,e.componentWillUnmount()}catch(a){l0(n,a)}break;case 5:hs(n);break;case 4:Ms(e,n)}}function ys(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function gs(e){return e.tag===5||e.tag===3||e.tag===4}function xs(e){e:{for(var n=e.return;n!==null;){if(gs(n))break e;n=n.return}throw Error(P(160))}var r=n;switch(n=r.stateNode,r.tag){case 5:var o=!1;break;case 3:n=n.containerInfo,o=!0;break;case 4:n=n.containerInfo,o=!0;break;default:throw Error(P(161))}r.flags&16&&(A5(n,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||gs(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue t;r.child.return=r,r=r.child}if(!(r.flags&2)){r=r.stateNode;break e}}o?pn(e,r,n):un(e,r,n)}function pn(e,n,r){var o=e.tag,i=o===5||o===6;if(i)e=i?e.stateNode:e.stateNode.instance,n?r.nodeType===8?r.parentNode.insertBefore(e,n):r.insertBefore(e,n):(r.nodeType===8?(n=r.parentNode,n.insertBefore(e,r)):(n=r,n.appendChild(e)),r=r._reactRootContainer,r!=null||n.onclick!==null||(n.onclick=U9));else if(o!==4&&(e=e.child,e!==null))for(pn(e,n,r),e=e.sibling;e!==null;)pn(e,n,r),e=e.sibling}function un(e,n,r){var o=e.tag,i=o===5||o===6;if(i)e=i?e.stateNode:e.stateNode.instance,n?r.insertBefore(e,n):r.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(un(e,n,r),e=e.sibling;e!==null;)un(e,n,r),e=e.sibling}function Ms(e,n){for(var r=n,o=!1,i,a;;){if(!o){o=r.return;e:for(;;){if(o===null)throw Error(P(160));switch(i=o.stateNode,o.tag){case 5:a=!1;break e;case 3:i=i.containerInfo,a=!0;break e;case 4:i=i.containerInfo,a=!0;break e}o=o.return}o=!0}if(r.tag===5||r.tag===6){e:for(var l=e,s=r,C=s;;)if(ks(l,C),C.child!==null&&C.tag!==4)C.child.return=C,C=C.child;else{if(C===s)break e;for(;C.sibling===null;){if(C.return===null||C.return===s)break e;C=C.return}C.sibling.return=C.return,C=C.sibling}a?(l=i,s=r.stateNode,l.nodeType===8?l.parentNode.removeChild(s):l.removeChild(s)):i.removeChild(r.stateNode)}else if(r.tag===4){if(r.child!==null){i=r.stateNode.containerInfo,a=!0,r.child.return=r,r=r.child;continue}}else if(ks(e,r),r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return;r=r.return,r.tag===4&&(o=!1)}r.sibling.return=r.return,r=r.sibling}}function cn(e,n){switch(n.tag){case 0:case 11:case 14:case 15:case 22:var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do(o.tag&3)==3&&(e=o.destroy,o.destroy=void 0,e!==void 0&&e()),o=o.next;while(o!==r)}return;case 1:return;case 5:if(r=n.stateNode,r!=null){o=n.memoizedProps;var i=e!==null?e.memoizedProps:o;e=n.type;var a=n.updateQueue;if(n.updateQueue=null,a!==null){for(r[H9]=o,e==="input"&&o.type==="radio"&&o.name!=null&&oa(r,o),tt(e,i),n=tt(e,o),i=0;ii&&(i=l),r&=~a}if(r=i,r=t2()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Um(r/1960))-r,10i&&(i=l),r&=~a}if(r=i,r=t2()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Um(r/1960))-r,10 component higher in the tree to provide a loading indicator or placeholder to display.`)}Y3!==5&&(Y3=2),C=fn(C,s),h=l;do{switch(h.tag){case 3:a=C,h.flags|=4096,n&=-n,h.lanes|=n;var W=us(h,a,n);Sl(h,W);break e;case 1:a=C;var S=h.type,E=h.stateNode;if((h.flags&64)==0&&(typeof S.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(m4===null||!m4.has(E)))){h.flags|=4096,n&=-n,h.lanes|=n;var F=cs(h,a,n);Sl(h,F);break e}}h=h.return}while(h!==null)}Ws(r)}catch(D){n=D,P3===r&&r!==null&&(P3=r=r.return);continue}break}while(1)}function ws(){var e=u7.current;return u7.current=d7,e===null?d7:e}function k6(e,n){var r=Y;Y|=16;var o=ws();d2===e&&r2===n||H1(e,n);do try{Hm();break}catch(i){bs(e,i)}while(1);if(Ut(),Y=r,u7.current=o,P3!==null)throw Error(P(261));return d2=null,r2=0,Y3}function Hm(){for(;P3!==null;)js(P3)}function Vm(){for(;P3!==null&&!wm();)js(P3)}function js(e){var n=Rs(e.alternate,e,O0);e.memoizedProps=e.pendingProps,n===null?Ws(e):P3=n,hn.current=null}function Ws(e){var n=e;do{var r=n.alternate;if(e=n.return,(n.flags&2048)==0){if(r=Bm(r,n,O0),r!==null){P3=r;return}if(r=n,r.tag!==24&&r.tag!==23||r.memoizedState===null||(O0&1073741824)!=0||(r.mode&4)==0){for(var o=0,i=r.child;i!==null;)o|=i.lanes|i.childLanes,i=i.sibling;r.childLanes=o}e!==null&&(e.flags&2048)==0&&(e.firstEffect===null&&(e.firstEffect=n.firstEffect),n.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=n.firstEffect),e.lastEffect=n.lastEffect),1l&&(s=l,l=W,W=s),s=Qa(y,W),a=Qa(y,l),s&&a&&(M.rangeCount!==1||M.anchorNode!==s.node||M.anchorOffset!==s.offset||M.focusNode!==a.node||M.focusOffset!==a.offset)&&(x=x.createRange(),x.setStart(s.node,s.offset),M.removeAllRanges(),W>l?(M.addRange(x),M.extend(a.node,a.offset)):(x.setEnd(a.node,a.offset),M.addRange(x)))))),x=[],M=y;M=M.parentNode;)M.nodeType===1&&x.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;yt2()-gn?H1(e,0):kn|=r),I2(e,n)}function Qm(e,n){var r=e.stateNode;r!==null&&r.delete(n),n=0,n===0&&(n=e.mode,(n&2)==0?n=1:(n&4)==0?n=B1()===99?1:2:(A4===0&&(A4=O1),n=b1(62914560&~A4),n===0&&(n=4194304))),r=S2(),e=g7(e,n),e!==null&&(A9(e,n,r),I2(e,r))}var Rs;Rs=function(e,n,r){var o=n.lanes;if(e!==null)if(e.memoizedProps!==n.pendingProps||v2.current)K2=!0;else if((r&o)!=0)K2=(e.flags&16384)!=0;else{switch(K2=!1,n.tag){case 3:rs(n),Xt();break;case 5:Dl(n);break;case 1:L2(n.type)&&q9(n);break;case 4:$t(n,n.stateNode.containerInfo);break;case 10:o=n.memoizedProps.value;var i=n.type._context;W3(J9,i._currentValue),i._currentValue=o;break;case 13:if(n.memoizedState!==null)return(r&n.child.childLanes)!=0?os(e,n,r):(W3(S3,S3.current&1),n=E4(e,n,r),n!==null?n.sibling:null);W3(S3,S3.current&1);break;case 19:if(o=(r&n.childLanes)!=0,(e.flags&64)!=0){if(o)return Cs(e,n,r);n.flags|=64}if(i=n.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),W3(S3,S3.current),o)break;return null;case 23:case 24:return n.lanes=0,on(e,n,r)}return E4(e,n,r)}else K2=!1;switch(n.lanes=0,n.tag){case 2:if(o=n.type,e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2),e=n.pendingProps,i=F1(n,e2.current),D1(n,r),i=Kt(null,n,o,e,i,r),n.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(n.tag=1,n.memoizedState=null,n.updateQueue=null,L2(o)){var a=!0;q9(n)}else a=!1;n.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Ht(n);var l=o.getDerivedStateFromProps;typeof l=="function"&&e7(n,o,l,e),i.updater=t7,n.stateNode=i,i._reactInternals=n,Vt(n,o,e,r),n=ln(null,n,o,!0,a,r)}else n.tag=0,_2(null,n,i,r),n=n.child;return n;case 16:i=n.elementType;e:{switch(e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2),e=n.pendingProps,a=i._init,i=a(i._payload),n.type=i,a=n.tag=ek(i),e=Q2(i,e),a){case 0:n=an(null,n,i,e,r);break e;case 1:n=ns(null,n,i,e,r);break e;case 11:n=Ql(null,n,i,e,r);break e;case 14:n=Kl(null,n,i,Q2(i.type,e),o,r);break e}throw Error(P(306,i,""))}return n;case 0:return o=n.type,i=n.pendingProps,i=n.elementType===o?i:Q2(o,i),an(e,n,o,i,r);case 1:return o=n.type,i=n.pendingProps,i=n.elementType===o?i:Q2(o,i),ns(e,n,o,i,r);case 3:if(rs(n),o=n.updateQueue,e===null||o===null)throw Error(P(282));if(o=n.pendingProps,i=n.memoizedState,i=i!==null?i.element:null,Wl(e,n),e6(n,o,null,r),o=n.memoizedState.element,o===i)Xt(),n=E4(e,n,r);else{if(i=n.stateNode,(a=i.hydrate)&&(n0=E1(n.stateNode.containerInfo.firstChild),S4=n,a=c4=!0),a){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i{_();"use strict";function Bs(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Bs)}catch(e){console.error(e)}}Bs(),Ts.exports=Fs()});var Is=$((ov,Ps)=>{_();"use strict";var lk="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Ps.exports=lk});var Gs=$((iv,Us)=>{_();"use strict";var sk=Is();function Os(){}function zs(){}zs.resetWarningCache=Os;Us.exports=function(){function e(o,i,a,l,s,C){if(C!==sk){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}e.isRequired=e;function n(){return e}var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:zs,resetWarningCache:Os};return r.PropTypes=r,r}});var Vs=$((sv,Hs)=>{_();Hs.exports=Gs()();var av,lv});var Xs=$((Cv,Ys)=>{_();"use strict";function Ck(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var $s=C3(),fk=Ck($s);function qs(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function dk(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n}var pk=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function uk(e,n,r){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof n!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof r!="undefined"&&typeof r!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function o(i){return i.displayName||i.name||"Component"}return function(a){if(typeof a!="function")throw new Error("Expected WrappedComponent to be a React component.");var l=[],s;function C(){s=e(l.map(function(p){return p.props})),d.canUseDOM?n(s):r&&(s=r(s))}var d=function(p){dk(c,p);function c(){return p.apply(this,arguments)||this}c.peek=function(){return s},c.rewind=function(){if(c.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var w=s;return s=void 0,l=[],w};var h=c.prototype;return h.UNSAFE_componentWillMount=function(){l.push(this),C()},h.componentDidUpdate=function(){C()},h.componentWillUnmount=function(){var w=l.indexOf(this);l.splice(w,1),C()},h.render=function(){return fk.createElement(a,this.props)},c}($s.PureComponent);return qs(d,"displayName","SideEffect("+o(a)+")"),qs(d,"canUseDOM",pk),d}}Ys.exports=uk});var Qs=$((fv,Js)=>{_();var ck=typeof Element!="undefined",hk=typeof Map=="function",mk=typeof Set=="function",kk=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function N7(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(o=r;o--!=0;)if(!N7(e[o],n[o]))return!1;return!0}var a;if(hk&&e instanceof Map&&n instanceof Map){if(e.size!==n.size)return!1;for(a=e.entries();!(o=a.next()).done;)if(!n.has(o.value[0]))return!1;for(a=e.entries();!(o=a.next()).done;)if(!N7(o.value[1],n.get(o.value[0])))return!1;return!0}if(mk&&e instanceof Set&&n instanceof Set){if(e.size!==n.size)return!1;for(a=e.entries();!(o=a.next()).done;)if(!n.has(o.value[0]))return!1;return!0}if(kk&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(n)){if(r=e.length,r!=n.length)return!1;for(o=r;o--!=0;)if(e[o]!==n[o])return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(i=Object.keys(e),r=i.length,r!==Object.keys(n).length)return!1;for(o=r;o--!=0;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;if(ck&&e instanceof Element)return!1;for(o=r;o--!=0;)if(!((i[o]==="_owner"||i[o]==="__v"||i[o]==="__o")&&e.$$typeof)&&!N7(e[i[o]],n[i[o]]))return!1;return!0}return e!==e&&n!==n}Js.exports=function(n,r){try{return N7(n,r)}catch(o){if((o.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw o}}});var Dn=$((mv,w7)=>{_();(function(){"use strict";var e={}.hasOwnProperty;function n(){for(var r=[],o=0;o{_();"use strict";Object.defineProperty(Z7,"__esModule",{value:!0});Z7.Bezier=void 0;var{abs:j6,cos:F4,sin:K1,acos:ry,atan2:W6,sqrt:f0,pow:U2}=Math;function S6(e){return e<0?-U2(-e,1/3):U2(e,1/3)}var kC=Math.PI,A7=2*kC,d0=kC/2,oy=1e-6,Gn=Number.MAX_SAFE_INTEGER||9007199254740991,Hn=Number.MIN_SAFE_INTEGER||-9007199254740991,iy={x:0,y:0,z:0},I={Tvalues:[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213],Cvalues:[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872],arcfn:function(e,n){let r=n(e),o=r.x*r.x+r.y*r.y;return typeof r.z!="undefined"&&(o+=r.z*r.z),f0(o)},compute:function(e,n,r){if(e===0)return n[0].t=0,n[0];let o=n.length-1;if(e===1)return n[o].t=1,n[o];let i=1-e,a=n;if(o===0)return n[0].t=e,n[0];if(o===1){let s={x:i*a[0].x+e*a[1].x,y:i*a[0].y+e*a[1].y,t:e};return r&&(s.z=i*a[0].z+e*a[1].z),s}if(o<4){let s=i*i,C=e*e,d,p,c,h=0;o===2?(a=[a[0],a[1],a[2],iy],d=s,p=i*e*2,c=C):o===3&&(d=s*i,p=s*e*3,c=i*C*3,h=e*C);let g={x:d*a[0].x+p*a[1].x+c*a[2].x+h*a[3].x,y:d*a[0].y+p*a[1].y+c*a[2].y+h*a[3].y,t:e};return r&&(g.z=d*a[0].z+p*a[1].z+c*a[2].z+h*a[3].z),g}let l=JSON.parse(JSON.stringify(n));for(;l.length>1;){for(let s=0;s1;i--,a--){let l=[];for(let s=0,C;sl.x.min&&(n=l.x.min),r>l.y.min&&(r=l.y.min),o0&&(p.c1=C,p.c2=d,p.s1=e,p.s2=r,a.push(p))})}),a},makeshape:function(e,n,r){let o=n.points.length,i=e.points.length,a=I.makeline(n.points[o-1],e.points[0]),l=I.makeline(e.points[i-1],n.points[0]),s={startcap:a,forward:e,back:n,endcap:l,bbox:I.findbbox([a,e,n,l])};return s.intersections=function(C){return I.shapeintersections(s,s.bbox,C,C.bbox,r)},s},getminmax:function(e,n,r){if(!r)return{min:0,max:0};let o=Gn,i=Hn,a,l;r.indexOf(0)===-1&&(r=[0].concat(r)),r.indexOf(1)===-1&&r.push(1);for(let s=0,C=r.length;si&&(i=l[n]);return{min:o,mid:(o+i)/2,max:i,size:i-o}},align:function(e,n){let r=n.p1.x,o=n.p1.y,i=-W6(n.p2.y-o,n.p2.x-r),a=function(l){return{x:(l.x-r)*F4(i)-(l.y-o)*K1(i),y:(l.x-r)*K1(i)+(l.y-o)*F4(i)}};return e.map(a)},roots:function(e,n){n=n||{p1:{x:0,y:0},p2:{x:1,y:0}};let r=e.length-1,o=I.align(e,n),i=function(E){return 0<=E&&E<=1};if(r===2){let E=o[0].y,F=o[1].y,D=o[2].y,U=E-2*F+D;if(U!==0){let o3=-f0(F*F-E*D),i3=-E+F,Z3=-(o3+i3)/U,v3=-(-o3+i3)/U;return[Z3,v3].filter(i)}else if(F!==D&&U===0)return[(2*F-D)/(2*F-2*D)].filter(i);return[]}let a=o[0].y,l=o[1].y,s=o[2].y,C=o[3].y,d=-a+3*l-3*s+C,p=3*a-6*l+3*s,c=-3*a+3*l,h=a;if(I.approximately(d,0)){if(I.approximately(p,0))return I.approximately(c,0)?[]:[-h/c].filter(i);let E=f0(c*c-4*p*h),F=2*p;return[(E-c)/F,(-c-E)/F].filter(i)}p/=d,c/=d,h/=d;let g=(3*c-p*p)/3,w=g/3,N=(2*p*p*p-9*p*c+27*h)/27,k=N/2,m=k*k+w*w*w,y,x,M,W,S;if(m<0){let E=-g/3,F=E*E*E,D=f0(F),U=-N/(2*D),o3=U<-1?-1:U>1?1:U,i3=ry(o3),Z3=S6(D),v3=2*Z3;return M=v3*F4(i3/3)-p/3,W=v3*F4((i3+A7)/3)-p/3,S=v3*F4((i3+2*A7)/3)-p/3,[M,W,S].filter(i)}else{if(m===0)return y=k<0?S6(-k):-S6(k),M=2*y-p/3,W=-y-p/3,[M,W].filter(i);{let E=f0(m);return y=S6(-k+E),x=S6(k+E),[y-x-p/3].filter(i)}}},droots:function(e){if(e.length===3){let n=e[0],r=e[1],o=e[2],i=n-2*r+o;if(i!==0){let a=-f0(r*r-n*o),l=-n+r,s=-(a+l)/i,C=-(-a+l)/i;return[s,C]}else if(r!==o&&i===0)return[(2*r-o)/(2*(r-o))];return[]}if(e.length===2){let n=e[0],r=e[1];return n!==r?[n/(n-r)]:[]}return[]},curvature:function(e,n,r,o,i){let a,l,s,C,d=0,p=0,c=I.compute(e,n),h=I.compute(e,r),g=c.x*c.x+c.y*c.y;if(o?(a=f0(U2(c.y*h.z-h.y*c.z,2)+U2(c.z*h.x-h.z*c.x,2)+U2(c.x*h.y-h.x*c.y,2)),l=U2(g+c.z*c.z,3/2)):(a=c.x*h.y-c.y*h.x,l=U2(g,3/2)),a===0||l===0)return{k:0,r:0};if(d=a/l,p=l/a,!i){let w=I.curvature(e-.001,n,r,o,!0).k,N=I.curvature(e+.001,n,r,o,!0).k;C=(N-d+(d-w))/2,s=(j6(N-d)+j6(d-w))/2}return{k:d,r:p,dk:C,adk:s}},inflections:function(e){if(e.length<4)return[];let n=I.align(e,{p1:e[0],p2:e.slice(-1)[0]}),r=n[2].x*n[1].y,o=n[3].x*n[1].y,i=n[1].x*n[2].y,a=n[3].x*n[2].y,l=18*(-3*r+2*o+3*i-a),s=18*(3*r-o-3*i),C=18*(i-r);if(I.approximately(l,0)){if(!I.approximately(s,0)){let h=-C/s;if(0<=h&&h<=1)return[h]}return[]}let d=s*s-4*l*C,p=Math.sqrt(d),c=2*l;return I.approximately(c,0)?[]:[(p-s)/c,-(s+p)/c].filter(function(h){return 0<=h&&h<=1})},bboxoverlap:function(e,n){let r=["x","y"],o=r.length;for(let i=0,a,l,s,C;i=C)return!1;return!0},expandbox:function(e,n){n.x.mine.x.max&&(e.x.max=n.x.max),n.y.max>e.y.max&&(e.y.max=n.y.max),n.z&&n.z.max>e.z.max&&(e.z.max=n.z.max),e.x.mid=(e.x.min+e.x.max)/2,e.y.mid=(e.y.min+e.y.max)/2,e.z&&(e.z.mid=(e.z.min+e.z.max)/2),e.x.size=e.x.max-e.x.min,e.y.size=e.y.max-e.y.min,e.z&&(e.z.size=e.z.max-e.z.min)},pairiteration:function(e,n,r){let o=e.bbox(),i=n.bbox(),a=1e5,l=r||.5;if(o.x.size+o.y.sizeS||S>E)&&(W+=A7),W>E&&(F=E,E=W,W=F)):E4){if(arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");i=!0}}else if(a!==6&&a!==8&&a!==9&&a!==12&&arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");let l=this._3d=!i&&(a===9||a===12)||n&&n[0]&&typeof n[0].z!="undefined",s=this.points=[];for(let h=0,g=l?3:2;hR6(h.y)>1e-4),this._lut=[],this._t1=0,this._t2=1,this.update()}static quadraticFromPoints(n,r,o,i){if(typeof i=="undefined"&&(i=.5),i===0)return new E3(r,r,o);if(i===1)return new E3(n,r,r);let a=E3.getABC(2,n,r,o,i);return new E3(n,a.A,o)}static cubicFromPoints(n,r,o,i,a){typeof i=="undefined"&&(i=.5);let l=E3.getABC(3,n,r,o,i);typeof a=="undefined"&&(a=I.dist(r,l.C));let s=a*(1-i)/i,C=I.dist(n,o),d=(o.x-n.x)/C,p=(o.y-n.y)/C,c=a*d,h=a*p,g=s*d,w=s*p,N={x:r.x-c,y:r.y-h},k={x:r.x+g,y:r.y+w},m=l.A,y={x:m.x+(N.x-m.x)/(1-i),y:m.y+(N.y-m.y)/(1-i)},x={x:m.x+(k.x-m.x)/i,y:m.y+(k.y-m.y)/i},M={x:n.x+(y.x-n.x)/i,y:n.y+(y.y-n.y)/i},W={x:o.x+(x.x-o.x)/(1-i),y:o.y+(x.y-o.y)/(1-i)};return new E3(n,M,W,o)}static getUtils(){return I}getUtils(){return E3.getUtils()}static get PolyBezier(){return E6}valueOf(){return this.toString()}toString(){return I.pointsToString(this.points)}toSVG(){if(this._3d)return!1;let n=this.points,r=n[0].x,o=n[0].y,i=["M",r,o,this.order===2?"Q":"C"];for(let a=1,l=n.length;a0}length(){return I.length(this.derivative.bind(this))}static getABC(n=2,r,o,i,a=.5){let l=I.projectionratio(a,n),s=1-l,C={x:l*r.x+s*i.x,y:l*r.y+s*i.y},d=I.abcratio(a,n);return{A:{x:o.x+(o.x-C.x)/d,y:o.y+(o.y-C.y)/d},B:o,C,S:r,E:i}}getABC(n,r){r=r||this.get(n);let o=this.points[0],i=this.points[this.order];return E3.getABC(this.order,o,r,i,n)}getLUT(n){if(this.verify(),n=n||100,this._lut.length===n)return this._lut;this._lut=[],n--;for(let r=0,o,i;r1?1:c,h=this.compute(c),h.t=c,h.d=d,h}get(n){return this.compute(n)}point(n){return this.points[n]}compute(n){return this.ratios?I.computeWithRatios(n,this.points,this.ratios,this._3d):I.compute(n,this.points,this._3d,this.ratios)}raise(){let n=this.points,r=[n[0]],o=n.length;for(let i=1,a,l;i1;){o=[];for(let l=0,s,C=r.length-1;l=0&&l<=1}),r=r.concat(n[o].sort(I.numberSort))}.bind(this)),n.values=r.sort(I.numberSort).filter(function(o,i){return r.indexOf(o)===i}),n}bbox(){let n=this.extrema(),r={};return this.dims.forEach(function(o){r[o]=I.getminmax(this,o,n[o])}.bind(this)),r}overlaps(n){let r=this.bbox(),o=n.bbox();return I.bboxoverlap(r,o)}offset(n,r){if(typeof r!="undefined"){let o=this.get(n),i=this.normal(n),a={c:o,n:i,x:o.x+i.x*r,y:o.y+i.y*r};return this._3d&&(a.z=o.z+i.z*r),a}if(this._linear){let o=this.normal(0),i=this.points.map(function(a){let l={x:a.x+n*o.x,y:a.y+n*o.y};return a.z&&o.z&&(l.z=a.z+n*o.z),l});return[new E3(i)]}return this.reduce().map(function(o){return o._linear?o.offset(n)[0]:o.scale(n)})}simple(){if(this.order===3){let i=I.angle(this.points[0],this.points[3],this.points[1]),a=I.angle(this.points[0],this.points[3],this.points[2]);if(i>0&&a<0||i<0&&a>0)return!1}let n=this.normal(0),r=this.normal(1),o=n.x*r.x+n.y*r.y;return this._3d&&(o+=n.z*r.z),R6(sy(o)){if(r===2&&!!c)return;let h=d[c*r],g=this.derivative(c),w={x:h.x+g.x,y:h.y+g.y};d[c+1]=I.lli4(h,w,p,C[c+1])}),new E3(d))}outline(n,r,o,i){r=typeof r=="undefined"?n:r;let a=this.reduce(),l=a.length,s=[],C=[],d,p=0,c=this.length(),h=typeof o!="undefined"&&typeof i!="undefined";function g(W,S,E,F,D){return function(U){let o3=F/E,i3=(F+D)/E,Z3=S-W;return I.map(U,0,1,W+o3*Z3,W+i3*Z3)}}a.forEach(function(W){let S=W.length();h?(s.push(W.scale(g(n,o,c,p,S))),C.push(W.scale(g(-r,-i,c,p,S)))):(s.push(W.scale(n)),C.push(W.scale(-r))),p+=S}),C=C.map(function(W){return d=W.points,d[3]?W.points=[d[3],d[2],d[1],d[0]]:W.points=[d[2],d[1],d[0]],W}).reverse();let w=s[0].points[0],N=s[l-1].points[s[l-1].points.length-1],k=C[l-1].points[C[l-1].points.length-1],m=C[0].points[0],y=I.makeline(k,w),x=I.makeline(N,m),M=[y].concat(s).concat([x]).concat(C);return new E6(M)}outlineshapes(n,r,o){r=r||n;let i=this.outline(n,r).curves,a=[];for(let l=1,s=i.length;l1,C.endcap.virtual=l{var s=this.get(l);return I.between(s.x,r,i)&&I.between(s.y,o,a)})}selfintersects(n){let r=this.reduce(),o=r.length-2,i=[];for(let a=0,l,s,C;a0&&(a=a.concat(s))}),a}arcs(n){return n=n||.5,this._iterate(n,[])}_error(n,r,o,i){let a=(i-o)/4,l=this.get(o+a),s=this.get(i-a),C=I.dist(n,r),d=I.dist(n,l),p=I.dist(n,s);return R6(d-C)+R6(p-C)}_iterate(n,r){let o=0,i=1,a;do{a=0,i=1;let l=this.get(o),s,C,d,p,c=!1,h=!1,g,w=i,N=1;do if(h=c,p=d,w=(o+i)/2,s=this.get(w),C=this.get(i),d=I.getccenter(l,s,C),d.interval={start:o,end:i},c=this._error(d,l,o,i)<=n,g=h&&!c,g||(N=i),c){if(i>=1){if(d.interval.end=N=1,p=d,i>1){let m={x:d.x+d.r*ay(d.e),y:d.y+d.r*ly(d.e)};d.e+=I.angle({x:d.x,y:d.y},m,this.get(1))}break}i=i+(i-o)/2}else i=w;while(!g&&a++<100);if(a>=100)break;p=p||d,r.push(p),o=N}while(i<1);return r}};Z7.Bezier=E3});var sf=$(n5=>{_();"use strict";var n4=M5(),T4=C3();function b3(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;rU7;U7++)o2[U7]=U7+1;o2[15]=0;var Sy=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,HC=Object.prototype.hasOwnProperty,VC={},$C={};function qC(e){return HC.call($C,e)?!0:HC.call(VC,e)?!1:Sy.test(e)?$C[e]=!0:(VC[e]=!0,!1)}function Ey(e,n,r,o){if(r!==null&&r.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return o?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ry(e,n,r,o){if(n===null||typeof n=="undefined"||Ey(e,n,r,o))return!0;if(o)return!1;if(r!==null)switch(r.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function u2(e,n,r,o,i,a,l){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=o,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=n,this.sanitizeURL=a,this.removeEmptyString=l}var J3={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){J3[e]=new u2(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];J3[n]=new u2(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){J3[e]=new u2(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){J3[e]=new u2(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){J3[e]=new u2(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){J3[e]=new u2(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){J3[e]=new u2(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){J3[e]=new u2(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){J3[e]=new u2(e,5,!1,e.toLowerCase(),null,!1,!1)});var ir=/[\-:]([a-z])/g;function ar(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(ir,ar);J3[n]=new u2(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(ir,ar);J3[n]=new u2(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(ir,ar);J3[n]=new u2(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){J3[e]=new u2(e,1,!1,e.toLowerCase(),null,!1,!1)});J3.xlinkHref=new u2("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){J3[e]=new u2(e,1,!1,e.toLowerCase(),null,!0,!0)});var Ay=/["'&<>]/;function $0(e){if(typeof e=="boolean"||typeof e=="number")return""+e;e=""+e;var n=Ay.exec(e);if(n){var r="",o,i=0;for(o=n.index;oV7))throw Error(b3(301));if(e===g4)if(H7=!0,e={action:r,next:null},h0===null&&(h0=new Map),r=h0.get(n),r===void 0)h0.set(n,e);else{for(n=r;n.next!==null;)n=n.next;n.next=e}}function sr(){}var Y0=null,Dy={readContext:function(e){var n=Y0.threadID;return z6(e,n),e[n]},useContext:function(e){q0();var n=Y0.threadID;return z6(e,n),e[n]},useMemo:ef,useReducer:KC,useRef:function(e){g4=q0(),m3=lr();var n=m3.memoizedState;return n===null?(e={current:e},m3.memoizedState=e):n},useState:function(e){return KC(QC,e)},useLayoutEffect:function(){},useCallback:function(e,n){return ef(function(){return e},n)},useImperativeHandle:sr,useEffect:sr,useDebugValue:sr,useDeferredValue:function(e){return q0(),e},useTransition:function(){return q0(),[function(e){e()},!1]},useOpaqueIdentifier:function(){return(Y0.identifierPrefix||"")+"R:"+(Y0.uniqueID++).toString(36)},useMutableSource:function(e,n){return q0(),n(e._source)}},tf={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function nf(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var rf={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Py=n4({menuitem:!0},rf),G6={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Iy=["Webkit","ms","Moz","O"];Object.keys(G6).forEach(function(e){Iy.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),G6[n]=G6[e]})});var Oy=/([A-Z])/g,zy=/^ms-/,m0=T4.Children.toArray,Cr=jy.ReactCurrentDispatcher,Uy={listing:!0,pre:!0,textarea:!0},Gy=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,of={},fr={};function Hy(e){if(e==null)return e;var n="";return T4.Children.forEach(e,function(r){r!=null&&(n+=r)}),n}var Vy=Object.prototype.hasOwnProperty,$y={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function af(e,n){if(e===void 0)throw Error(b3(152,O6(n)||"Component"))}function qy(e,n,r){function o(l,s){var C=s.prototype&&s.prototype.isReactComponent,d=Wy(s,n,r,C),p=[],c=!1,h={isMounted:function(){return!1},enqueueForceUpdate:function(){if(p===null)return null},enqueueReplaceState:function(x,M){c=!0,p=[M]},enqueueSetState:function(x,M){if(p===null)return null;p.push(M)}};if(C){if(C=new s(l.props,d,h),typeof s.getDerivedStateFromProps=="function"){var g=s.getDerivedStateFromProps.call(null,l.props,C.state);g!=null&&(C.state=n4({},C.state,g))}}else if(g4={},C=s(l.props,d,h),C=XC(s,l.props,C,d),C==null||C.render==null){e=C,af(e,s);return}if(C.props=l.props,C.context=d,C.updater=h,h=C.state,h===void 0&&(C.state=h=null),typeof C.UNSAFE_componentWillMount=="function"||typeof C.componentWillMount=="function")if(typeof C.componentWillMount=="function"&&typeof s.getDerivedStateFromProps!="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&typeof s.getDerivedStateFromProps!="function"&&C.UNSAFE_componentWillMount(),p.length){h=p;var w=c;if(p=null,c=!1,w&&h.length===1)C.state=h[0];else{g=w?h[0]:C.state;var N=!0;for(w=w?1:0;w=s))throw Error(b3(304));var C=new Uint16Array(s);for(C.set(l),o2=C,o2[0]=a+1,l=a;l=C.children.length){var d=C.footer;if(d!==""&&(this.previousWasTextNode=!1),this.stack.pop(),C.type==="select")this.currentSelectValue=null;else if(C.type!=null&&C.type.type!=null&&C.type.type.$$typeof===O7)this.popProvider(C.type);else if(C.type===z7){this.suspenseDepth--;var p=a.pop();if(l){l=!1;var c=C.fallbackFrame;if(!c)throw Error(b3(303));this.stack.push(c),a[this.suspenseDepth]+="";continue}else a[this.suspenseDepth]+=p}a[this.suspenseDepth]+=d}else{var h=C.children[C.childIndex++],g="";try{g+=this.render(h,C.context,C.domNamespace)}catch(w){throw w!=null&&typeof w.then=="function"?Error(b3(294)):w}finally{}a.length<=this.suspenseDepth&&a.push(""),a[this.suspenseDepth]+=g}}return a[0]}finally{Cr.current=i,Y0=o,JC()}},n.render=function(r,o,i){if(typeof r=="string"||typeof r=="number")return i=""+r,i===""?"":this.makeStaticMarkup?$0(i):this.previousWasTextNode?""+$0(i):(this.previousWasTextNode=!0,$0(i));if(o=qy(r,o,this.threadID),r=o.child,o=o.context,r===null||r===!1)return"";if(!T4.isValidElement(r)){if(r!=null&&r.$$typeof!=null)throw i=r.$$typeof,Error(i===Jn?b3(257):b3(258,i.toString()));return r=m0(r),this.stack.push({type:null,domNamespace:i,children:r,childIndex:0,context:o,footer:""}),""}var a=r.type;if(typeof a=="string")return this.renderDOM(r,o,i);switch(a){case UC:case zC:case Qn:case Kn:case nr:case I7:return r=m0(r.props.children),this.stack.push({type:null,domNamespace:i,children:r,childIndex:0,context:o,footer:""}),"";case z7:throw Error(b3(294));case OC:throw Error(b3(343))}if(typeof a=="object"&&a!==null)switch(a.$$typeof){case tr:g4={};var l=a.render(r.props,r.ref);return l=XC(a.render,r.props,l,r.ref),l=m0(l),this.stack.push({type:null,domNamespace:i,children:l,childIndex:0,context:o,footer:""}),"";case rr:return r=[T4.createElement(a.type,n4({ref:r.ref},r.props))],this.stack.push({type:null,domNamespace:i,children:r,childIndex:0,context:o,footer:""}),"";case O7:return a=m0(r.props.children),i={type:r,domNamespace:i,children:a,childIndex:0,context:o,footer:""},this.pushProvider(r),this.stack.push(i),"";case er:a=r.type,l=r.props;var s=this.threadID;return z6(a,s),a=m0(l.children(a[s])),this.stack.push({type:r,domNamespace:i,children:a,childIndex:0,context:o,footer:""}),"";case IC:throw Error(b3(338));case or:return a=r.type,l=a._init,a=l(a._payload),r=[T4.createElement(a,n4({ref:r.ref},r.props))],this.stack.push({type:null,domNamespace:i,children:r,childIndex:0,context:o,footer:""}),""}throw Error(b3(130,a==null?a:typeof a,""))},n.renderDOM=function(r,o,i){var a=r.type.toLowerCase();if(i===tf.html&&nf(a),!of.hasOwnProperty(a)){if(!Gy.test(a))throw Error(b3(65,a));of[a]=!0}var l=r.props;if(a==="input")l=n4({type:void 0},l,{defaultChecked:void 0,defaultValue:void 0,value:l.value!=null?l.value:l.defaultValue,checked:l.checked!=null?l.checked:l.defaultChecked});else if(a==="textarea"){var s=l.value;if(s==null){s=l.defaultValue;var C=l.children;if(C!=null){if(s!=null)throw Error(b3(92));if(Array.isArray(C)){if(!(1>=C.length))throw Error(b3(93));C=C[0]}s=""+C}s==null&&(s="")}l=n4({},l,{value:void 0,children:""+s})}else if(a==="select")this.currentSelectValue=l.value!=null?l.value:l.defaultValue,l=n4({},l,{value:void 0});else if(a==="option"){C=this.currentSelectValue;var d=Hy(l.children);if(C!=null){var p=l.value!=null?l.value+"":d;if(s=!1,Array.isArray(C)){for(var c=0;c":(M+=">",s=""+r.type+">");e:{if(C=l.dangerouslySetInnerHTML,C!=null){if(C.__html!=null){C=C.__html;break e}}else if(C=l.children,typeof C=="string"||typeof C=="number"){C=$0(C);break e}C=null}return C!=null?(l=[],Uy.hasOwnProperty(a)&&C.charAt(0)===`
+Add a component higher in the tree to provide a loading indicator or placeholder to display.`)}Y3!==5&&(Y3=2),C=fn(C,s),h=l;do{switch(h.tag){case 3:a=C,h.flags|=4096,n&=-n,h.lanes|=n;var W=us(h,a,n);Sl(h,W);break e;case 1:a=C;var S=h.type,E=h.stateNode;if((h.flags&64)==0&&(typeof S.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(m4===null||!m4.has(E)))){h.flags|=4096,n&=-n,h.lanes|=n;var F=cs(h,a,n);Sl(h,F);break e}}h=h.return}while(h!==null)}Ws(r)}catch(D){n=D,P3===r&&r!==null&&(P3=r=r.return);continue}break}while(1)}function ws(){var e=u7.current;return u7.current=d7,e===null?d7:e}function k6(e,n){var r=Y;Y|=16;var o=ws();d2===e&&r2===n||H1(e,n);do try{Hm();break}catch(i){bs(e,i)}while(1);if(Ut(),Y=r,u7.current=o,P3!==null)throw Error(P(261));return d2=null,r2=0,Y3}function Hm(){for(;P3!==null;)js(P3)}function Vm(){for(;P3!==null&&!wm();)js(P3)}function js(e){var n=Rs(e.alternate,e,O0);e.memoizedProps=e.pendingProps,n===null?Ws(e):P3=n,hn.current=null}function Ws(e){var n=e;do{var r=n.alternate;if(e=n.return,(n.flags&2048)==0){if(r=Bm(r,n,O0),r!==null){P3=r;return}if(r=n,r.tag!==24&&r.tag!==23||r.memoizedState===null||(O0&1073741824)!=0||(r.mode&4)==0){for(var o=0,i=r.child;i!==null;)o|=i.lanes|i.childLanes,i=i.sibling;r.childLanes=o}e!==null&&(e.flags&2048)==0&&(e.firstEffect===null&&(e.firstEffect=n.firstEffect),n.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=n.firstEffect),e.lastEffect=n.lastEffect),1l&&(s=l,l=W,W=s),s=Qa(y,W),a=Qa(y,l),s&&a&&(M.rangeCount!==1||M.anchorNode!==s.node||M.anchorOffset!==s.offset||M.focusNode!==a.node||M.focusOffset!==a.offset)&&(x=x.createRange(),x.setStart(s.node,s.offset),M.removeAllRanges(),W>l?(M.addRange(x),M.extend(a.node,a.offset)):(x.setEnd(a.node,a.offset),M.addRange(x)))))),x=[],M=y;M=M.parentNode;)M.nodeType===1&&x.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;yt2()-gn?H1(e,0):kn|=r),I2(e,n)}function Qm(e,n){var r=e.stateNode;r!==null&&r.delete(n),n=0,n===0&&(n=e.mode,(n&2)==0?n=1:(n&4)==0?n=B1()===99?1:2:(A4===0&&(A4=O1),n=b1(62914560&~A4),n===0&&(n=4194304))),r=S2(),e=g7(e,n),e!==null&&(A9(e,n,r),I2(e,r))}var Rs;Rs=function(e,n,r){var o=n.lanes;if(e!==null)if(e.memoizedProps!==n.pendingProps||v2.current)K2=!0;else if((r&o)!=0)K2=(e.flags&16384)!=0;else{switch(K2=!1,n.tag){case 3:rs(n),Xt();break;case 5:Dl(n);break;case 1:L2(n.type)&&q9(n);break;case 4:$t(n,n.stateNode.containerInfo);break;case 10:o=n.memoizedProps.value;var i=n.type._context;j3(J9,i._currentValue),i._currentValue=o;break;case 13:if(n.memoizedState!==null)return(r&n.child.childLanes)!=0?os(e,n,r):(j3(W3,W3.current&1),n=E4(e,n,r),n!==null?n.sibling:null);j3(W3,W3.current&1);break;case 19:if(o=(r&n.childLanes)!=0,(e.flags&64)!=0){if(o)return Cs(e,n,r);n.flags|=64}if(i=n.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),j3(W3,W3.current),o)break;return null;case 23:case 24:return n.lanes=0,on(e,n,r)}return E4(e,n,r)}else K2=!1;switch(n.lanes=0,n.tag){case 2:if(o=n.type,e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2),e=n.pendingProps,i=F1(n,e2.current),D1(n,r),i=Kt(null,n,o,e,i,r),n.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(n.tag=1,n.memoizedState=null,n.updateQueue=null,L2(o)){var a=!0;q9(n)}else a=!1;n.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Ht(n);var l=o.getDerivedStateFromProps;typeof l=="function"&&e7(n,o,l,e),i.updater=t7,n.stateNode=i,i._reactInternals=n,Vt(n,o,e,r),n=ln(null,n,o,!0,a,r)}else n.tag=0,_2(null,n,i,r),n=n.child;return n;case 16:i=n.elementType;e:{switch(e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2),e=n.pendingProps,a=i._init,i=a(i._payload),n.type=i,a=n.tag=ek(i),e=Q2(i,e),a){case 0:n=an(null,n,i,e,r);break e;case 1:n=ns(null,n,i,e,r);break e;case 11:n=Ql(null,n,i,e,r);break e;case 14:n=Kl(null,n,i,Q2(i.type,e),o,r);break e}throw Error(P(306,i,""))}return n;case 0:return o=n.type,i=n.pendingProps,i=n.elementType===o?i:Q2(o,i),an(e,n,o,i,r);case 1:return o=n.type,i=n.pendingProps,i=n.elementType===o?i:Q2(o,i),ns(e,n,o,i,r);case 3:if(rs(n),o=n.updateQueue,e===null||o===null)throw Error(P(282));if(o=n.pendingProps,i=n.memoizedState,i=i!==null?i.element:null,Wl(e,n),e6(n,o,null,r),o=n.memoizedState.element,o===i)Xt(),n=E4(e,n,r);else{if(i=n.stateNode,(a=i.hydrate)&&(n0=E1(n.stateNode.containerInfo.firstChild),S4=n,a=c4=!0),a){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i{_();"use strict";function Bs(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Bs)}catch(e){console.error(e)}}Bs(),Ts.exports=Fs()});var Is=$((ov,Ps)=>{_();"use strict";var lk="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Ps.exports=lk});var Gs=$((iv,Us)=>{_();"use strict";var sk=Is();function Os(){}function zs(){}zs.resetWarningCache=Os;Us.exports=function(){function e(o,i,a,l,s,C){if(C!==sk){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}e.isRequired=e;function n(){return e}var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:zs,resetWarningCache:Os};return r.PropTypes=r,r}});var Vs=$((sv,Hs)=>{_();Hs.exports=Gs()();var av,lv});var Xs=$((Cv,Ys)=>{_();"use strict";function Ck(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var $s=C3(),fk=Ck($s);function qs(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function dk(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n}var pk=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function uk(e,n,r){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof n!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof r!="undefined"&&typeof r!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function o(i){return i.displayName||i.name||"Component"}return function(a){if(typeof a!="function")throw new Error("Expected WrappedComponent to be a React component.");var l=[],s;function C(){s=e(l.map(function(p){return p.props})),d.canUseDOM?n(s):r&&(s=r(s))}var d=function(p){dk(c,p);function c(){return p.apply(this,arguments)||this}c.peek=function(){return s},c.rewind=function(){if(c.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var w=s;return s=void 0,l=[],w};var h=c.prototype;return h.UNSAFE_componentWillMount=function(){l.push(this),C()},h.componentDidUpdate=function(){C()},h.componentWillUnmount=function(){var w=l.indexOf(this);l.splice(w,1),C()},h.render=function(){return fk.createElement(a,this.props)},c}($s.PureComponent);return qs(d,"displayName","SideEffect("+o(a)+")"),qs(d,"canUseDOM",pk),d}}Ys.exports=uk});var Qs=$((fv,Js)=>{_();var ck=typeof Element!="undefined",hk=typeof Map=="function",mk=typeof Set=="function",kk=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function N7(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(o=r;o--!=0;)if(!N7(e[o],n[o]))return!1;return!0}var a;if(hk&&e instanceof Map&&n instanceof Map){if(e.size!==n.size)return!1;for(a=e.entries();!(o=a.next()).done;)if(!n.has(o.value[0]))return!1;for(a=e.entries();!(o=a.next()).done;)if(!N7(o.value[1],n.get(o.value[0])))return!1;return!0}if(mk&&e instanceof Set&&n instanceof Set){if(e.size!==n.size)return!1;for(a=e.entries();!(o=a.next()).done;)if(!n.has(o.value[0]))return!1;return!0}if(kk&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(n)){if(r=e.length,r!=n.length)return!1;for(o=r;o--!=0;)if(e[o]!==n[o])return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(i=Object.keys(e),r=i.length,r!==Object.keys(n).length)return!1;for(o=r;o--!=0;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;if(ck&&e instanceof Element)return!1;for(o=r;o--!=0;)if(!((i[o]==="_owner"||i[o]==="__v"||i[o]==="__o")&&e.$$typeof)&&!N7(e[i[o]],n[i[o]]))return!1;return!0}return e!==e&&n!==n}Js.exports=function(n,r){try{return N7(n,r)}catch(o){if((o.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw o}}});var Dn=$((gv,w7)=>{_();(function(){"use strict";var e={}.hasOwnProperty;function n(){for(var r=[],o=0;o{_();"use strict";Object.defineProperty(Z7,"__esModule",{value:!0});Z7.Bezier=void 0;var{abs:j6,cos:F4,sin:K1,acos:ry,atan2:W6,sqrt:f0,pow:U2}=Math;function S6(e){return e<0?-U2(-e,1/3):U2(e,1/3)}var kC=Math.PI,A7=2*kC,d0=kC/2,oy=1e-6,Gn=Number.MAX_SAFE_INTEGER||9007199254740991,Hn=Number.MIN_SAFE_INTEGER||-9007199254740991,iy={x:0,y:0,z:0},I={Tvalues:[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213],Cvalues:[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872],arcfn:function(e,n){let r=n(e),o=r.x*r.x+r.y*r.y;return typeof r.z!="undefined"&&(o+=r.z*r.z),f0(o)},compute:function(e,n,r){if(e===0)return n[0].t=0,n[0];let o=n.length-1;if(e===1)return n[o].t=1,n[o];let i=1-e,a=n;if(o===0)return n[0].t=e,n[0];if(o===1){let s={x:i*a[0].x+e*a[1].x,y:i*a[0].y+e*a[1].y,t:e};return r&&(s.z=i*a[0].z+e*a[1].z),s}if(o<4){let s=i*i,C=e*e,d,p,c,h=0;o===2?(a=[a[0],a[1],a[2],iy],d=s,p=i*e*2,c=C):o===3&&(d=s*i,p=s*e*3,c=i*C*3,h=e*C);let g={x:d*a[0].x+p*a[1].x+c*a[2].x+h*a[3].x,y:d*a[0].y+p*a[1].y+c*a[2].y+h*a[3].y,t:e};return r&&(g.z=d*a[0].z+p*a[1].z+c*a[2].z+h*a[3].z),g}let l=JSON.parse(JSON.stringify(n));for(;l.length>1;){for(let s=0;s1;i--,a--){let l=[];for(let s=0,C;sl.x.min&&(n=l.x.min),r>l.y.min&&(r=l.y.min),o0&&(p.c1=C,p.c2=d,p.s1=e,p.s2=r,a.push(p))})}),a},makeshape:function(e,n,r){let o=n.points.length,i=e.points.length,a=I.makeline(n.points[o-1],e.points[0]),l=I.makeline(e.points[i-1],n.points[0]),s={startcap:a,forward:e,back:n,endcap:l,bbox:I.findbbox([a,e,n,l])};return s.intersections=function(C){return I.shapeintersections(s,s.bbox,C,C.bbox,r)},s},getminmax:function(e,n,r){if(!r)return{min:0,max:0};let o=Gn,i=Hn,a,l;r.indexOf(0)===-1&&(r=[0].concat(r)),r.indexOf(1)===-1&&r.push(1);for(let s=0,C=r.length;si&&(i=l[n]);return{min:o,mid:(o+i)/2,max:i,size:i-o}},align:function(e,n){let r=n.p1.x,o=n.p1.y,i=-W6(n.p2.y-o,n.p2.x-r),a=function(l){return{x:(l.x-r)*F4(i)-(l.y-o)*K1(i),y:(l.x-r)*K1(i)+(l.y-o)*F4(i)}};return e.map(a)},roots:function(e,n){n=n||{p1:{x:0,y:0},p2:{x:1,y:0}};let r=e.length-1,o=I.align(e,n),i=function(E){return 0<=E&&E<=1};if(r===2){let E=o[0].y,F=o[1].y,D=o[2].y,U=E-2*F+D;if(U!==0){let o3=-f0(F*F-E*D),i3=-E+F,Z3=-(o3+i3)/U,M3=-(-o3+i3)/U;return[Z3,M3].filter(i)}else if(F!==D&&U===0)return[(2*F-D)/(2*F-2*D)].filter(i);return[]}let a=o[0].y,l=o[1].y,s=o[2].y,C=o[3].y,d=-a+3*l-3*s+C,p=3*a-6*l+3*s,c=-3*a+3*l,h=a;if(I.approximately(d,0)){if(I.approximately(p,0))return I.approximately(c,0)?[]:[-h/c].filter(i);let E=f0(c*c-4*p*h),F=2*p;return[(E-c)/F,(-c-E)/F].filter(i)}p/=d,c/=d,h/=d;let g=(3*c-p*p)/3,w=g/3,N=(2*p*p*p-9*p*c+27*h)/27,k=N/2,m=k*k+w*w*w,y,x,M,W,S;if(m<0){let E=-g/3,F=E*E*E,D=f0(F),U=-N/(2*D),o3=U<-1?-1:U>1?1:U,i3=ry(o3),Z3=S6(D),M3=2*Z3;return M=M3*F4(i3/3)-p/3,W=M3*F4((i3+A7)/3)-p/3,S=M3*F4((i3+2*A7)/3)-p/3,[M,W,S].filter(i)}else{if(m===0)return y=k<0?S6(-k):-S6(k),M=2*y-p/3,W=-y-p/3,[M,W].filter(i);{let E=f0(m);return y=S6(-k+E),x=S6(k+E),[y-x-p/3].filter(i)}}},droots:function(e){if(e.length===3){let n=e[0],r=e[1],o=e[2],i=n-2*r+o;if(i!==0){let a=-f0(r*r-n*o),l=-n+r,s=-(a+l)/i,C=-(-a+l)/i;return[s,C]}else if(r!==o&&i===0)return[(2*r-o)/(2*(r-o))];return[]}if(e.length===2){let n=e[0],r=e[1];return n!==r?[n/(n-r)]:[]}return[]},curvature:function(e,n,r,o,i){let a,l,s,C,d=0,p=0,c=I.compute(e,n),h=I.compute(e,r),g=c.x*c.x+c.y*c.y;if(o?(a=f0(U2(c.y*h.z-h.y*c.z,2)+U2(c.z*h.x-h.z*c.x,2)+U2(c.x*h.y-h.x*c.y,2)),l=U2(g+c.z*c.z,3/2)):(a=c.x*h.y-c.y*h.x,l=U2(g,3/2)),a===0||l===0)return{k:0,r:0};if(d=a/l,p=l/a,!i){let w=I.curvature(e-.001,n,r,o,!0).k,N=I.curvature(e+.001,n,r,o,!0).k;C=(N-d+(d-w))/2,s=(j6(N-d)+j6(d-w))/2}return{k:d,r:p,dk:C,adk:s}},inflections:function(e){if(e.length<4)return[];let n=I.align(e,{p1:e[0],p2:e.slice(-1)[0]}),r=n[2].x*n[1].y,o=n[3].x*n[1].y,i=n[1].x*n[2].y,a=n[3].x*n[2].y,l=18*(-3*r+2*o+3*i-a),s=18*(3*r-o-3*i),C=18*(i-r);if(I.approximately(l,0)){if(!I.approximately(s,0)){let h=-C/s;if(0<=h&&h<=1)return[h]}return[]}let d=s*s-4*l*C,p=Math.sqrt(d),c=2*l;return I.approximately(c,0)?[]:[(p-s)/c,-(s+p)/c].filter(function(h){return 0<=h&&h<=1})},bboxoverlap:function(e,n){let r=["x","y"],o=r.length;for(let i=0,a,l,s,C;i=C)return!1;return!0},expandbox:function(e,n){n.x.mine.x.max&&(e.x.max=n.x.max),n.y.max>e.y.max&&(e.y.max=n.y.max),n.z&&n.z.max>e.z.max&&(e.z.max=n.z.max),e.x.mid=(e.x.min+e.x.max)/2,e.y.mid=(e.y.min+e.y.max)/2,e.z&&(e.z.mid=(e.z.min+e.z.max)/2),e.x.size=e.x.max-e.x.min,e.y.size=e.y.max-e.y.min,e.z&&(e.z.size=e.z.max-e.z.min)},pairiteration:function(e,n,r){let o=e.bbox(),i=n.bbox(),a=1e5,l=r||.5;if(o.x.size+o.y.sizeS||S>E)&&(W+=A7),W>E&&(F=E,E=W,W=F)):E4){if(arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");i=!0}}else if(a!==6&&a!==8&&a!==9&&a!==12&&arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");let l=this._3d=!i&&(a===9||a===12)||n&&n[0]&&typeof n[0].z!="undefined",s=this.points=[];for(let h=0,g=l?3:2;hR6(h.y)>1e-4),this._lut=[],this._t1=0,this._t2=1,this.update()}static quadraticFromPoints(n,r,o,i){if(typeof i=="undefined"&&(i=.5),i===0)return new E3(r,r,o);if(i===1)return new E3(n,r,r);let a=E3.getABC(2,n,r,o,i);return new E3(n,a.A,o)}static cubicFromPoints(n,r,o,i,a){typeof i=="undefined"&&(i=.5);let l=E3.getABC(3,n,r,o,i);typeof a=="undefined"&&(a=I.dist(r,l.C));let s=a*(1-i)/i,C=I.dist(n,o),d=(o.x-n.x)/C,p=(o.y-n.y)/C,c=a*d,h=a*p,g=s*d,w=s*p,N={x:r.x-c,y:r.y-h},k={x:r.x+g,y:r.y+w},m=l.A,y={x:m.x+(N.x-m.x)/(1-i),y:m.y+(N.y-m.y)/(1-i)},x={x:m.x+(k.x-m.x)/i,y:m.y+(k.y-m.y)/i},M={x:n.x+(y.x-n.x)/i,y:n.y+(y.y-n.y)/i},W={x:o.x+(x.x-o.x)/(1-i),y:o.y+(x.y-o.y)/(1-i)};return new E3(n,M,W,o)}static getUtils(){return I}getUtils(){return E3.getUtils()}static get PolyBezier(){return E6}valueOf(){return this.toString()}toString(){return I.pointsToString(this.points)}toSVG(){if(this._3d)return!1;let n=this.points,r=n[0].x,o=n[0].y,i=["M",r,o,this.order===2?"Q":"C"];for(let a=1,l=n.length;a0}length(){return I.length(this.derivative.bind(this))}static getABC(n=2,r,o,i,a=.5){let l=I.projectionratio(a,n),s=1-l,C={x:l*r.x+s*i.x,y:l*r.y+s*i.y},d=I.abcratio(a,n);return{A:{x:o.x+(o.x-C.x)/d,y:o.y+(o.y-C.y)/d},B:o,C,S:r,E:i}}getABC(n,r){r=r||this.get(n);let o=this.points[0],i=this.points[this.order];return E3.getABC(this.order,o,r,i,n)}getLUT(n){if(this.verify(),n=n||100,this._lut.length===n)return this._lut;this._lut=[],n--;for(let r=0,o,i;r1?1:c,h=this.compute(c),h.t=c,h.d=d,h}get(n){return this.compute(n)}point(n){return this.points[n]}compute(n){return this.ratios?I.computeWithRatios(n,this.points,this.ratios,this._3d):I.compute(n,this.points,this._3d,this.ratios)}raise(){let n=this.points,r=[n[0]],o=n.length;for(let i=1,a,l;i1;){o=[];for(let l=0,s,C=r.length-1;l=0&&l<=1}),r=r.concat(n[o].sort(I.numberSort))}.bind(this)),n.values=r.sort(I.numberSort).filter(function(o,i){return r.indexOf(o)===i}),n}bbox(){let n=this.extrema(),r={};return this.dims.forEach(function(o){r[o]=I.getminmax(this,o,n[o])}.bind(this)),r}overlaps(n){let r=this.bbox(),o=n.bbox();return I.bboxoverlap(r,o)}offset(n,r){if(typeof r!="undefined"){let o=this.get(n),i=this.normal(n),a={c:o,n:i,x:o.x+i.x*r,y:o.y+i.y*r};return this._3d&&(a.z=o.z+i.z*r),a}if(this._linear){let o=this.normal(0),i=this.points.map(function(a){let l={x:a.x+n*o.x,y:a.y+n*o.y};return a.z&&o.z&&(l.z=a.z+n*o.z),l});return[new E3(i)]}return this.reduce().map(function(o){return o._linear?o.offset(n)[0]:o.scale(n)})}simple(){if(this.order===3){let i=I.angle(this.points[0],this.points[3],this.points[1]),a=I.angle(this.points[0],this.points[3],this.points[2]);if(i>0&&a<0||i<0&&a>0)return!1}let n=this.normal(0),r=this.normal(1),o=n.x*r.x+n.y*r.y;return this._3d&&(o+=n.z*r.z),R6(sy(o)){if(r===2&&!!c)return;let h=d[c*r],g=this.derivative(c),w={x:h.x+g.x,y:h.y+g.y};d[c+1]=I.lli4(h,w,p,C[c+1])}),new E3(d))}outline(n,r,o,i){r=typeof r=="undefined"?n:r;let a=this.reduce(),l=a.length,s=[],C=[],d,p=0,c=this.length(),h=typeof o!="undefined"&&typeof i!="undefined";function g(W,S,E,F,D){return function(U){let o3=F/E,i3=(F+D)/E,Z3=S-W;return I.map(U,0,1,W+o3*Z3,W+i3*Z3)}}a.forEach(function(W){let S=W.length();h?(s.push(W.scale(g(n,o,c,p,S))),C.push(W.scale(g(-r,-i,c,p,S)))):(s.push(W.scale(n)),C.push(W.scale(-r))),p+=S}),C=C.map(function(W){return d=W.points,d[3]?W.points=[d[3],d[2],d[1],d[0]]:W.points=[d[2],d[1],d[0]],W}).reverse();let w=s[0].points[0],N=s[l-1].points[s[l-1].points.length-1],k=C[l-1].points[C[l-1].points.length-1],m=C[0].points[0],y=I.makeline(k,w),x=I.makeline(N,m),M=[y].concat(s).concat([x]).concat(C);return new E6(M)}outlineshapes(n,r,o){r=r||n;let i=this.outline(n,r).curves,a=[];for(let l=1,s=i.length;l1,C.endcap.virtual=l{var s=this.get(l);return I.between(s.x,r,i)&&I.between(s.y,o,a)})}selfintersects(n){let r=this.reduce(),o=r.length-2,i=[];for(let a=0,l,s,C;a0&&(a=a.concat(s))}),a}arcs(n){return n=n||.5,this._iterate(n,[])}_error(n,r,o,i){let a=(i-o)/4,l=this.get(o+a),s=this.get(i-a),C=I.dist(n,r),d=I.dist(n,l),p=I.dist(n,s);return R6(d-C)+R6(p-C)}_iterate(n,r){let o=0,i=1,a;do{a=0,i=1;let l=this.get(o),s,C,d,p,c=!1,h=!1,g,w=i,N=1;do if(h=c,p=d,w=(o+i)/2,s=this.get(w),C=this.get(i),d=I.getccenter(l,s,C),d.interval={start:o,end:i},c=this._error(d,l,o,i)<=n,g=h&&!c,g||(N=i),c){if(i>=1){if(d.interval.end=N=1,p=d,i>1){let m={x:d.x+d.r*ay(d.e),y:d.y+d.r*ly(d.e)};d.e+=I.angle({x:d.x,y:d.y},m,this.get(1))}break}i=i+(i-o)/2}else i=w;while(!g&&a++<100);if(a>=100)break;p=p||d,r.push(p),o=N}while(i<1);return r}};Z7.Bezier=E3});var sf=$(n5=>{_();"use strict";var n4=M5(),T4=C3();function _3(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;rU7;U7++)o2[U7]=U7+1;o2[15]=0;var Sy=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,HC=Object.prototype.hasOwnProperty,VC={},$C={};function qC(e){return HC.call($C,e)?!0:HC.call(VC,e)?!1:Sy.test(e)?$C[e]=!0:(VC[e]=!0,!1)}function Ey(e,n,r,o){if(r!==null&&r.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return o?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ry(e,n,r,o){if(n===null||typeof n=="undefined"||Ey(e,n,r,o))return!0;if(o)return!1;if(r!==null)switch(r.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function u2(e,n,r,o,i,a,l){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=o,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=n,this.sanitizeURL=a,this.removeEmptyString=l}var J3={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){J3[e]=new u2(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];J3[n]=new u2(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){J3[e]=new u2(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){J3[e]=new u2(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){J3[e]=new u2(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){J3[e]=new u2(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){J3[e]=new u2(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){J3[e]=new u2(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){J3[e]=new u2(e,5,!1,e.toLowerCase(),null,!1,!1)});var ir=/[\-:]([a-z])/g;function ar(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(ir,ar);J3[n]=new u2(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(ir,ar);J3[n]=new u2(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(ir,ar);J3[n]=new u2(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){J3[e]=new u2(e,1,!1,e.toLowerCase(),null,!1,!1)});J3.xlinkHref=new u2("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){J3[e]=new u2(e,1,!1,e.toLowerCase(),null,!0,!0)});var Ay=/["'&<>]/;function $0(e){if(typeof e=="boolean"||typeof e=="number")return""+e;e=""+e;var n=Ay.exec(e);if(n){var r="",o,i=0;for(o=n.index;oV7))throw Error(_3(301));if(e===g4)if(H7=!0,e={action:r,next:null},h0===null&&(h0=new Map),r=h0.get(n),r===void 0)h0.set(n,e);else{for(n=r;n.next!==null;)n=n.next;n.next=e}}function sr(){}var Y0=null,Dy={readContext:function(e){var n=Y0.threadID;return z6(e,n),e[n]},useContext:function(e){q0();var n=Y0.threadID;return z6(e,n),e[n]},useMemo:ef,useReducer:KC,useRef:function(e){g4=q0(),m3=lr();var n=m3.memoizedState;return n===null?(e={current:e},m3.memoizedState=e):n},useState:function(e){return KC(QC,e)},useLayoutEffect:function(){},useCallback:function(e,n){return ef(function(){return e},n)},useImperativeHandle:sr,useEffect:sr,useDebugValue:sr,useDeferredValue:function(e){return q0(),e},useTransition:function(){return q0(),[function(e){e()},!1]},useOpaqueIdentifier:function(){return(Y0.identifierPrefix||"")+"R:"+(Y0.uniqueID++).toString(36)},useMutableSource:function(e,n){return q0(),n(e._source)}},tf={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function nf(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var rf={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Py=n4({menuitem:!0},rf),G6={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Iy=["Webkit","ms","Moz","O"];Object.keys(G6).forEach(function(e){Iy.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),G6[n]=G6[e]})});var Oy=/([A-Z])/g,zy=/^ms-/,m0=T4.Children.toArray,Cr=jy.ReactCurrentDispatcher,Uy={listing:!0,pre:!0,textarea:!0},Gy=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,of={},fr={};function Hy(e){if(e==null)return e;var n="";return T4.Children.forEach(e,function(r){r!=null&&(n+=r)}),n}var Vy=Object.prototype.hasOwnProperty,$y={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function af(e,n){if(e===void 0)throw Error(_3(152,O6(n)||"Component"))}function qy(e,n,r){function o(l,s){var C=s.prototype&&s.prototype.isReactComponent,d=Wy(s,n,r,C),p=[],c=!1,h={isMounted:function(){return!1},enqueueForceUpdate:function(){if(p===null)return null},enqueueReplaceState:function(x,M){c=!0,p=[M]},enqueueSetState:function(x,M){if(p===null)return null;p.push(M)}};if(C){if(C=new s(l.props,d,h),typeof s.getDerivedStateFromProps=="function"){var g=s.getDerivedStateFromProps.call(null,l.props,C.state);g!=null&&(C.state=n4({},C.state,g))}}else if(g4={},C=s(l.props,d,h),C=XC(s,l.props,C,d),C==null||C.render==null){e=C,af(e,s);return}if(C.props=l.props,C.context=d,C.updater=h,h=C.state,h===void 0&&(C.state=h=null),typeof C.UNSAFE_componentWillMount=="function"||typeof C.componentWillMount=="function")if(typeof C.componentWillMount=="function"&&typeof s.getDerivedStateFromProps!="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&typeof s.getDerivedStateFromProps!="function"&&C.UNSAFE_componentWillMount(),p.length){h=p;var w=c;if(p=null,c=!1,w&&h.length===1)C.state=h[0];else{g=w?h[0]:C.state;var N=!0;for(w=w?1:0;w=s))throw Error(_3(304));var C=new Uint16Array(s);for(C.set(l),o2=C,o2[0]=a+1,l=a;l=C.children.length){var d=C.footer;if(d!==""&&(this.previousWasTextNode=!1),this.stack.pop(),C.type==="select")this.currentSelectValue=null;else if(C.type!=null&&C.type.type!=null&&C.type.type.$$typeof===O7)this.popProvider(C.type);else if(C.type===z7){this.suspenseDepth--;var p=a.pop();if(l){l=!1;var c=C.fallbackFrame;if(!c)throw Error(_3(303));this.stack.push(c),a[this.suspenseDepth]+="";continue}else a[this.suspenseDepth]+=p}a[this.suspenseDepth]+=d}else{var h=C.children[C.childIndex++],g="";try{g+=this.render(h,C.context,C.domNamespace)}catch(w){throw w!=null&&typeof w.then=="function"?Error(_3(294)):w}finally{}a.length<=this.suspenseDepth&&a.push(""),a[this.suspenseDepth]+=g}}return a[0]}finally{Cr.current=i,Y0=o,JC()}},n.render=function(r,o,i){if(typeof r=="string"||typeof r=="number")return i=""+r,i===""?"":this.makeStaticMarkup?$0(i):this.previousWasTextNode?""+$0(i):(this.previousWasTextNode=!0,$0(i));if(o=qy(r,o,this.threadID),r=o.child,o=o.context,r===null||r===!1)return"";if(!T4.isValidElement(r)){if(r!=null&&r.$$typeof!=null)throw i=r.$$typeof,Error(i===Jn?_3(257):_3(258,i.toString()));return r=m0(r),this.stack.push({type:null,domNamespace:i,children:r,childIndex:0,context:o,footer:""}),""}var a=r.type;if(typeof a=="string")return this.renderDOM(r,o,i);switch(a){case UC:case zC:case Qn:case Kn:case nr:case I7:return r=m0(r.props.children),this.stack.push({type:null,domNamespace:i,children:r,childIndex:0,context:o,footer:""}),"";case z7:throw Error(_3(294));case OC:throw Error(_3(343))}if(typeof a=="object"&&a!==null)switch(a.$$typeof){case tr:g4={};var l=a.render(r.props,r.ref);return l=XC(a.render,r.props,l,r.ref),l=m0(l),this.stack.push({type:null,domNamespace:i,children:l,childIndex:0,context:o,footer:""}),"";case rr:return r=[T4.createElement(a.type,n4({ref:r.ref},r.props))],this.stack.push({type:null,domNamespace:i,children:r,childIndex:0,context:o,footer:""}),"";case O7:return a=m0(r.props.children),i={type:r,domNamespace:i,children:a,childIndex:0,context:o,footer:""},this.pushProvider(r),this.stack.push(i),"";case er:a=r.type,l=r.props;var s=this.threadID;return z6(a,s),a=m0(l.children(a[s])),this.stack.push({type:r,domNamespace:i,children:a,childIndex:0,context:o,footer:""}),"";case IC:throw Error(_3(338));case or:return a=r.type,l=a._init,a=l(a._payload),r=[T4.createElement(a,n4({ref:r.ref},r.props))],this.stack.push({type:null,domNamespace:i,children:r,childIndex:0,context:o,footer:""}),""}throw Error(_3(130,a==null?a:typeof a,""))},n.renderDOM=function(r,o,i){var a=r.type.toLowerCase();if(i===tf.html&&nf(a),!of.hasOwnProperty(a)){if(!Gy.test(a))throw Error(_3(65,a));of[a]=!0}var l=r.props;if(a==="input")l=n4({type:void 0},l,{defaultChecked:void 0,defaultValue:void 0,value:l.value!=null?l.value:l.defaultValue,checked:l.checked!=null?l.checked:l.defaultChecked});else if(a==="textarea"){var s=l.value;if(s==null){s=l.defaultValue;var C=l.children;if(C!=null){if(s!=null)throw Error(_3(92));if(Array.isArray(C)){if(!(1>=C.length))throw Error(_3(93));C=C[0]}s=""+C}s==null&&(s="")}l=n4({},l,{value:void 0,children:""+s})}else if(a==="select")this.currentSelectValue=l.value!=null?l.value:l.defaultValue,l=n4({},l,{value:void 0});else if(a==="option"){C=this.currentSelectValue;var d=Hy(l.children);if(C!=null){var p=l.value!=null?l.value+"":d;if(s=!1,Array.isArray(C)){for(var c=0;c":(M+=">",s=""+r.type+">");e:{if(C=l.dangerouslySetInnerHTML,C!=null){if(C.__html!=null){C=C.__html;break e}}else if(C=l.children,typeof C=="string"||typeof C=="number"){C=$0(C);break e}C=null}return C!=null?(l=[],Uy.hasOwnProperty(a)&&C.charAt(0)===`
`&&(M+=`
-`),M+=C):l=m0(l.children),r=r.type,i=i==null||i==="http://www.w3.org/1999/xhtml"?nf(r):i==="http://www.w3.org/2000/svg"&&r==="foreignObject"?"http://www.w3.org/1999/xhtml":i,this.stack.push({domNamespace:i,type:a,children:l,childIndex:0,context:o,footer:s}),this.previousWasTextNode=!1,M},e}();n5.renderToNodeStream=function(){throw Error(b3(207))};n5.renderToStaticMarkup=function(e,n){e=new lf(e,!0,n);try{return e.read(1/0)}finally{e.destroy()}};n5.renderToStaticNodeStream=function(){throw Error(b3(208))};n5.renderToString=function(e,n){e=new lf(e,!1,n);try{return e.read(1/0)}finally{e.destroy()}};n5.version="17.0.2"});var ff=$((PL,Cf)=>{_();"use strict";Cf.exports=sf()});var pf=$((df,dr)=>{_();(function(e){if(typeof df=="object"&&typeof dr!="undefined")dr.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var n;typeof window!="undefined"||typeof window!="undefined"?n=window:typeof self!="undefined"?n=self:n=this,n.GIF=e()}})(function(){var e,n,r;return function o(i,a,l){function s(p,c){if(!a[p]){if(!i[p]){var h=typeof s1=="function"&&s1;if(!c&&h)return h(p,!0);if(C)return C(p,!0);var g=new Error("Cannot find module '"+p+"'");throw g.code="MODULE_NOT_FOUND",g}var w=a[p]={exports:{}};i[p][0].call(w.exports,function(N){var k=i[p][1][N];return s(k||N)},w,w.exports,o,i,a,l)}return a[p].exports}for(var C=typeof s1=="function"&&s1,d=0;d0&&this._events[c].length>g&&(this._events[c].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[c].length),typeof console.trace=="function"&&console.trace())),this},l.prototype.on=l.prototype.addListener,l.prototype.once=function(c,h){if(!s(h))throw TypeError("listener must be a function");var g=!1;function w(){this.removeListener(c,w),g||(g=!0,h.apply(this,arguments))}return w.listener=h,this.on(c,w),this},l.prototype.removeListener=function(c,h){var g,w,N,k;if(!s(h))throw TypeError("listener must be a function");if(!this._events||!this._events[c])return this;if(g=this._events[c],N=g.length,w=-1,g===h||s(g.listener)&&g.listener===h)delete this._events[c],this._events.removeListener&&this.emit("removeListener",c,h);else if(d(g)){for(k=N;k-- >0;)if(g[k]===h||g[k].listener&&g[k].listener===h){w=k;break}if(w<0)return this;g.length===1?(g.length=0,delete this._events[c]):g.splice(w,1),this._events.removeListener&&this.emit("removeListener",c,h)}return this},l.prototype.removeAllListeners=function(c){var h,g;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[c]&&delete this._events[c],this;if(arguments.length===0){for(h in this._events)h!=="removeListener"&&this.removeAllListeners(h);return this.removeAllListeners("removeListener"),this._events={},this}if(g=this._events[c],s(g))this.removeListener(c,g);else if(g)for(;g.length;)this.removeListener(c,g[g.length-1]);return delete this._events[c],this},l.prototype.listeners=function(c){var h;return!this._events||!this._events[c]?h=[]:s(this._events[c])?h=[this._events[c]]:h=this._events[c].slice(),h},l.prototype.listenerCount=function(c){if(this._events){var h=this._events[c];if(s(h))return 1;if(h)return h.length}return 0},l.listenerCount=function(c,h){return c.listenerCount(h)};function s(c){return typeof c=="function"}function C(c){return typeof c=="number"}function d(c){return typeof c=="object"&&c!==null}function p(c){return c===void 0}},{}],2:[function(o,i,a){var l,s,C,d,p;p=navigator.userAgent.toLowerCase(),d=navigator.platform.toLowerCase(),l=p.match(/(opera|ie|firefox|chrome|version)[\s\/:]([\w\d\.]+)?.*?(safari|version[\s\/:]([\w\d\.]+)|$)/)||[null,"unknown",0],C=l[1]==="ie"&&document.documentMode,s={name:l[1]==="version"?l[3]:l[1],version:C||parseFloat(l[1]==="opera"&&l[4]?l[4]:l[2]),platform:{name:p.match(/ip(?:ad|od|hone)/)?"ios":(p.match(/(?:webos|android)/)||d.match(/mac|win|linux/)||["other"])[0]}},s[s.name]=!0,s[s.name+parseInt(s.version,10)]=!0,s.platform[s.platform.name]=!0,i.exports=s},{}],3:[function(o,i,a){var l,s,C,d=function(g,w){for(var N in w)p.call(w,N)&&(g[N]=w[N]);function k(){this.constructor=g}return k.prototype=w.prototype,g.prototype=new k,g.__super__=w.prototype,g},p={}.hasOwnProperty,c=[].indexOf||function(g){for(var w=0,N=this.length;wS;m=0<=S?++W:--W)E.push(null);return E}.call(this),x=this.spawnWorkers(),this.options.globalPalette===!0)this.renderNextFrame();else for(m=y=0,M=x;0<=M?yM;m=0<=M?++y:--y)this.renderNextFrame();return this.emit("start"),this.emit("progress",0)},k.prototype.abort=function(){for(var m;m=this.activeWorkers.shift(),m!=null;)this.log("killing active worker"),m.terminate();return this.running=!1,this.emit("abort")},k.prototype.spawnWorkers=function(){var m,y,x,M;return y=Math.min(this.options.workers,this.frames.length),function(){M=[];for(var W=x=this.freeWorkers.length;x<=y?Wy;x<=y?W++:W--)M.push(W);return M}.apply(this).forEach(function(W){return function(S){var E;return W.log("spawning worker "+S),E=new Worker(W.options.workerScript),E.onmessage=function(F){return W.activeWorkers.splice(W.activeWorkers.indexOf(E),1),W.freeWorkers.push(E),W.frameFinished(F.data)},W.freeWorkers.push(E)}}(this)),y},k.prototype.frameFinished=function(m){var y,x,M;if(this.log("frame "+m.index+" finished - "+this.activeWorkers.length+" active"),this.finishedFrames++,this.emit("progress",this.finishedFrames/this.frames.length),this.imageParts[m.index]=m,this.options.globalPalette===!0&&(this.options.globalPalette=m.globalPalette,this.log("global palette analyzed"),this.frames.length>2))for(y=x=1,M=this.freeWorkers.length;1<=M?xM;y=1<=M?++x:--x)this.renderNextFrame();return c.call(this.imageParts,null)>=0?this.renderNextFrame():this.finishRendering()},k.prototype.finishRendering=function(){var m,y,x,M,W,S,E,F,D,U,o3,i3,Z3,v3,R3,P4;for(F=0,v3=this.imageParts,W=0,D=v3.length;W=this.frames.length))return m=this.frames[this.nextFrame++],x=this.freeWorkers.shift(),y=this.getTask(m),this.log("starting frame "+(y.index+1)+" of "+this.frames.length),this.activeWorkers.push(x),x.postMessage(y)},k.prototype.getContextData=function(m){return m.getImageData(0,0,this.options.width,this.options.height).data},k.prototype.getImageData=function(m){var y;return this._canvas==null&&(this._canvas=document.createElement("canvas"),this._canvas.width=this.options.width,this._canvas.height=this.options.height),y=this._canvas.getContext("2d"),y.setFill=this.options.background,y.fillRect(0,0,this.options.width,this.options.height),y.drawImage(m,0,0),this.getContextData(y)},k.prototype.getTask=function(m){var y,x;if(y=this.frames.indexOf(m),x={index:y,last:y===this.frames.length-1,delay:m.delay,transparent:m.transparent,width:this.options.width,height:this.options.height,quality:this.options.quality,dither:this.options.dither,globalPalette:this.options.globalPalette,repeat:this.options.repeat,canTransfer:C.name==="chrome"},m.data!=null)x.data=m.data;else if(m.context!=null)x.data=this.getContextData(m.context);else if(m.image!=null)x.data=this.getImageData(m.image);else throw new Error("Invalid frame");return x},k.prototype.log=function(){var m;if(m=1<=arguments.length?h.call(arguments,0):[],!!this.options.debug)return console.log.apply(console,m)},k}(l),i.exports=s},{"./browser.coffee":2,events:1}]},{},[3])(3)})});var _f=$((pN,J7)=>{_();(function(){var e=function(M,W){for(var S=0,E=y(0,M.length-1,!0),F=0;FW[F][1])return!1}return!0},o=.95047,i=1,a=1.08883,l=4*o/(o+15*i+3*a),s=9*i/(o+15*i+3*a),C=.008856,d=903.3,p=function(M){return M>C?Math.pow(M,1/3):7.787*M+16/116},c=function(M){return Math.pow(M,3)>C?Math.pow(M,3):(116*M-16)/d},h={CIEXYZ:{},CIExyY:{},CIELAB:{},CIELCH:{},CIELUV:{},CIELCHuv:{},sRGB:{},hex:{}};h.CIEXYZ.sRGB=function(x){var M=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],W=function(U){var o3=.055;return U<=.0031308?12.92*U:1.055*Math.pow(U,1/2.4)-.055},S=W(e(M[0],x)),E=W(e(M[1],x)),F=W(e(M[2],x));return[S,E,F]},h.sRGB.CIEXYZ=function(x){var M=x[0],W=x[1],S=x[2],E=function(v3){var R3=.055;return v3>.04045?Math.pow((v3+R3)/(1+R3),2.4):v3/12.92},F=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],D=[E(M),E(W),E(S)],U=e(F[0],D),o3=e(F[1],D),i3=e(F[2],D);return[U,o3,i3]},h.CIEXYZ.CIExyY=function(x){var M=x[0],W=x[1],S=x[2],E=M+W+S;return E===0?[0,0,W]:[M/E,W/E,W]},h.CIExyY.CIEXYZ=function(x){var M=x[0],W=x[1],S=x[2];if(W===0)return[0,0,0];var E=M*S/W,F=(1-M-W)*S/W;return[E,S,F]},h.CIEXYZ.CIELAB=function(x){var M=x[0],W=x[1],S=x[2],E=p(M/o),F=p(W/i),D=p(S/a),U=116*F-16,o3=500*(E-F),i3=200*(F-D);return[U,o3,i3]},h.CIELAB.CIEXYZ=function(x){var M=x[0],W=x[1],S=x[2],E=(M+16)/116,F=E-S/200,D=W/500+E,U=o*c(D),o3=i*c(E),i3=a*c(F);return[U,o3,i3]},h.CIEXYZ.CIELUV=function(x){var M=x[0],W=x[1],S=x[2],E=4*M/(M+15*W+3*S),F=9*W/(M+15*W+3*S),D=116*p(W/i)-16;if(D===0)return[0,0,0];var U=13*D*(E-l),o3=13*D*(F-s);return[D,U,o3]},h.CIELUV.CIEXYZ=function(x){var M=x[0],W=x[1],S=x[2];if(M===0)return[0,0,0];var E=c((M+16)/116),F=W/(13*M)+l,D=S/(13*M)+s,U=E*i,o3=0-9*U*F/((F-4)*D-F*D),i3=(9*U-15*D*U-D*o3)/(3*D);return[o3,U,i3]};var g=function(M){var W=M[0],S=M[1],E=M[2],F=Math.pow(Math.pow(S,2)+Math.pow(E,2),1/2),D=Math.atan2(E,S),U=D*360/2/Math.PI;return U<0&&(U=360+U),[W,F,U]};h.CIELAB.CIELCH=g,h.CIELUV.CIELCHuv=g;var w=function(M){var W=M[0],S=M[1],E=M[2],F=E/360*2*Math.PI,D=Math.cos(F)*S,U=Math.sin(F)*S;return[W,D,U]};h.CIELCH.CIELAB=w,h.CIELCHuv.CIELUV=w;var N=function(M){M=M.map(function(E){return n(E,3)});for(var W=0;W1)throw new Error("Illegal sRGB value")}return M.map(function(E){return Math.round(E*255)})};h.sRGB.hex=function(x){var M="#";x=N(x);for(var W=0;WF;E?D++:D--)S.push(D);return S}})()});var wf=$((uN,bf)=>{_();var R=R||{};R.Geometry=function(){};R.Geometry.intersectLineLine=function(e,n){var r=(e.intercept-n.intercept)/(n.slope-e.slope),o=e.slope*r+e.intercept;return{x:r,y:o}};R.Geometry.distanceFromOrigin=function(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))};R.Geometry.distanceLineFromOrigin=function(e){return Math.abs(e.intercept)/Math.sqrt(Math.pow(e.slope,2)+1)};R.Geometry.perpendicularThroughPoint=function(e,n){var r=-1/e.slope,o=n.y-r*n.x;return{slope:r,intercept:o}};R.Geometry.angleFromOrigin=function(e){return Math.atan2(e.y,e.x)};R.Geometry.normalizeAngle=function(e){var n=2*Math.PI;return(e%n+n)%n};R.Geometry.lengthOfRayUntilIntersect=function(e,n){return n.intercept/(Math.sin(e)-n.slope*Math.cos(e))};R.Hsluv=function(){};R.Hsluv.getBounds=function(e){for(var n=[],r=Math.pow(e+16,3)/1560896,o=r>R.Hsluv.epsilon?r:e/R.Hsluv.kappa,i=0;i<3;)for(var a=i++,l=R.Hsluv.m[a][0],s=R.Hsluv.m[a][1],C=R.Hsluv.m[a][2],d=0;d<2;){var p=d++,c=(284517*l-94839*C)*o,h=(838422*C+769860*s+731718*l)*e*o-769860*p*e,g=(632260*C-126452*s)*o+126452*p;n.push({slope:c/g,intercept:h/g})}return n};R.Hsluv.maxSafeChromaForL=function(e){for(var n=R.Hsluv.getBounds(e),r=1/0,o=0;o=0&&(i=Math.min(i,s))}return i};R.Hsluv.dotProduct=function(e,n){for(var r=0,o=0,i=e.length;o.04045?Math.pow((e+.055)/1.055,2.4):e/12.92};R.Hsluv.xyzToRgb=function(e){return[R.Hsluv.fromLinear(R.Hsluv.dotProduct(R.Hsluv.m[0],e)),R.Hsluv.fromLinear(R.Hsluv.dotProduct(R.Hsluv.m[1],e)),R.Hsluv.fromLinear(R.Hsluv.dotProduct(R.Hsluv.m[2],e))]};R.Hsluv.rgbToXyz=function(e){var n=[R.Hsluv.toLinear(e[0]),R.Hsluv.toLinear(e[1]),R.Hsluv.toLinear(e[2])];return[R.Hsluv.dotProduct(R.Hsluv.minv[0],n),R.Hsluv.dotProduct(R.Hsluv.minv[1],n),R.Hsluv.dotProduct(R.Hsluv.minv[2],n)]};R.Hsluv.yToL=function(e){return e<=R.Hsluv.epsilon?e/R.Hsluv.refY*R.Hsluv.kappa:116*Math.pow(e/R.Hsluv.refY,.3333333333333333)-16};R.Hsluv.lToY=function(e){return e<=8?R.Hsluv.refY*e/R.Hsluv.kappa:R.Hsluv.refY*Math.pow((e+16)/116,3)};R.Hsluv.xyzToLuv=function(e){var n=e[0],r=e[1],o=e[2],i=n+15*r+3*o,a=4*n,l=9*r;i!=0?(a/=i,l/=i):(a=NaN,l=NaN);var s=R.Hsluv.yToL(r);if(s==0)return[0,0,0];var C=13*s*(a-R.Hsluv.refU),d=13*s*(l-R.Hsluv.refV);return[s,C,d]};R.Hsluv.luvToXyz=function(e){var n=e[0],r=e[1],o=e[2];if(n==0)return[0,0,0];var i=r/(13*n)+R.Hsluv.refU,a=o/(13*n)+R.Hsluv.refV,l=R.Hsluv.lToY(n),s=0-9*l*i/((i-4)*a-i*a),C=(9*l-15*a*l-a*s)/(3*a);return[s,l,C]};R.Hsluv.luvToLch=function(e){var n=e[0],r=e[1],o=e[2],i=Math.sqrt(r*r+o*o),a;if(i<1e-8)a=0;else{var l=Math.atan2(o,r);a=l*180/Math.PI,a<0&&(a=360+a)}return[n,i,a]};R.Hsluv.lchToLuv=function(e){var n=e[0],r=e[1],o=e[2],i=o/360*2*Math.PI,a=Math.cos(i)*r,l=Math.sin(i)*r;return[n,a,l]};R.Hsluv.hsluvToLch=function(e){var n=e[0],r=e[1],o=e[2];if(o>99.9999999)return[100,0,n];if(o<1e-8)return[0,0,n];var i=R.Hsluv.maxChromaForLH(o,n),a=i/100*r;return[o,a,n]};R.Hsluv.lchToHsluv=function(e){var n=e[0],r=e[1],o=e[2];if(n>99.9999999)return[o,0,100];if(n<1e-8)return[o,0,0];var i=R.Hsluv.maxChromaForLH(n,o),a=r/i*100;return[o,a,n]};R.Hsluv.hpluvToLch=function(e){var n=e[0],r=e[1],o=e[2];if(o>99.9999999)return[100,0,n];if(o<1e-8)return[0,0,n];var i=R.Hsluv.maxSafeChromaForL(o),a=i/100*r;return[o,a,n]};R.Hsluv.lchToHpluv=function(e){var n=e[0],r=e[1],o=e[2];if(n>99.9999999)return[o,0,100];if(n<1e-8)return[o,0,0];var i=R.Hsluv.maxSafeChromaForL(n),a=r/i*100;return[o,a,n]};R.Hsluv.rgbToHex=function(e){for(var n="#",r=0;r<3;){var o=r++,i=e[o],a=Math.round(i*255),l=a%16,s=(a-l)/16|0;n+=R.Hsluv.hexChars.charAt(s)+R.Hsluv.hexChars.charAt(l)}return n};R.Hsluv.hexToRgb=function(e){e=e.toLowerCase();for(var n=[],r=0;r<3;){var o=r++,i=R.Hsluv.hexChars.indexOf(e.charAt(o*2+1)),a=R.Hsluv.hexChars.indexOf(e.charAt(o*2+2)),l=i*16+a;n.push(l/255)}return n};R.Hsluv.lchToRgb=function(e){return R.Hsluv.xyzToRgb(R.Hsluv.luvToXyz(R.Hsluv.lchToLuv(e)))};R.Hsluv.rgbToLch=function(e){return R.Hsluv.luvToLch(R.Hsluv.xyzToLuv(R.Hsluv.rgbToXyz(e)))};R.Hsluv.hsluvToRgb=function(e){return R.Hsluv.lchToRgb(R.Hsluv.hsluvToLch(e))};R.Hsluv.rgbToHsluv=function(e){return R.Hsluv.lchToHsluv(R.Hsluv.rgbToLch(e))};R.Hsluv.hpluvToRgb=function(e){return R.Hsluv.lchToRgb(R.Hsluv.hpluvToLch(e))};R.Hsluv.rgbToHpluv=function(e){return R.Hsluv.lchToHpluv(R.Hsluv.rgbToLch(e))};R.Hsluv.hsluvToHex=function(e){return R.Hsluv.rgbToHex(R.Hsluv.hsluvToRgb(e))};R.Hsluv.hpluvToHex=function(e){return R.Hsluv.rgbToHex(R.Hsluv.hpluvToRgb(e))};R.Hsluv.hexToHsluv=function(e){return R.Hsluv.rgbToHsluv(R.Hsluv.hexToRgb(e))};R.Hsluv.hexToHpluv=function(e){return R.Hsluv.rgbToHpluv(R.Hsluv.hexToRgb(e))};R.Hsluv.m=[[3.240969941904521,-1.537383177570093,-.498610760293],[-.96924363628087,1.87596750150772,.041555057407175],[.055630079696993,-.20397695888897,1.056971514242878]];R.Hsluv.minv=[[.41239079926595,.35758433938387,.18048078840183],[.21263900587151,.71516867876775,.072192315360733],[.019330818715591,.11919477979462,.95053215224966]];R.Hsluv.refY=1;R.Hsluv.refU=.19783000664283;R.Hsluv.refV=.46831999493879;R.Hsluv.kappa=903.2962962;R.Hsluv.epsilon=.0088564516;R.Hsluv.hexChars="0123456789abcdef";var lg={hsluvToRgb:R.Hsluv.hsluvToRgb,rgbToHsluv:R.Hsluv.rgbToHsluv,hpluvToRgb:R.Hsluv.hpluvToRgb,rgbToHpluv:R.Hsluv.rgbToHpluv,hsluvToHex:R.Hsluv.hsluvToHex,hexToHsluv:R.Hsluv.hexToHsluv,hpluvToHex:R.Hsluv.hpluvToHex,hexToHpluv:R.Hsluv.hexToHpluv,lchToHpluv:R.Hsluv.lchToHpluv,hpluvToLch:R.Hsluv.hpluvToLch,lchToHsluv:R.Hsluv.lchToHsluv,hsluvToLch:R.Hsluv.hsluvToLch,lchToLuv:R.Hsluv.lchToLuv,luvToLch:R.Hsluv.luvToLch,xyzToLuv:R.Hsluv.xyzToLuv,luvToXyz:R.Hsluv.luvToXyz,xyzToRgb:R.Hsluv.xyzToRgb,rgbToXyz:R.Hsluv.rgbToXyz,lchToRgb:R.Hsluv.lchToRgb,rgbToLch:R.Hsluv.rgbToLch};bf.exports=lg});var Qf=$((E_,Jf)=>{_();"use strict";function Tg(){throw new Error("fingerprinting not supported in the browser")}Jf.exports={createHash:Tg}});var xr=$((R_,Kf)=>{_();"use strict";var Dg=Qf();function Pg(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Ig(e,n){return e===n?0:e=0)return-2;r=o}return r}function Ug(e,n){var r={},o,i;for(o=0;o-1&&(r+="abcdefghijklmnopqrstuvwxyz"),n.indexOf("A")>-1&&(r+="ABCDEFGHIJKLMNOPQRSTUVWXYZ"),n.indexOf("#")>-1&&(r+="0123456789"),n.indexOf("!")>-1&&(r+="~`!@#$%^&*()_+-={}[]:\";'<>?,./|\\");for(var o=[],i=0;i0&&n[r].index>1].index;)e=n[r],n[r]=n[o],n[o]=e,r=o};yr.prototype.pop=function(){var e=this._items,n=e.length-1|0,r=e[0];if(!r||r.index>this._index)return null;if(this._index++,!n)return e.pop(),r;e[0]=e.pop();for(var o=n>>1,i=0,a,l,s,C,d,p,c;i=C.index));)e[s]=C,e[i]=d,i=s;return r};function e3(e,n){this.buf=e,this.pos=n|0}e3.prototype.isValid=function(){return this.pos<=this.buf.length};e3.prototype.getValue=function(){return this.buf.slice(0,this.pos)};e3.prototype.readBoolean=function(){return!!this.buf[this.pos++]};e3.prototype.skipBoolean=function(){this.pos++};e3.prototype.writeBoolean=function(e){this.buf[this.pos++]=!!e};e3.prototype.readInt=e3.prototype.readLong=function(){var e=0,n=0,r=this.buf,o,i,a,l;do o=r[this.pos++],i=o&128,e|=(o&127)<>1^-(e&1)};e3.prototype.skipInt=e3.prototype.skipLong=function(){for(var e=this.buf;e[this.pos++]&128;);};e3.prototype.writeInt=e3.prototype.writeLong=function(e){var n=this.buf,r,o;if(e>=-1073741824&&e<1073741824){o=e>=0?e<<1:~e<<1|1;do n[this.pos]=o&127,o>>=7;while(o&&(n[this.pos++]|=128))}else{r=e>=0?e*2:-e*2-1;do n[this.pos]=r&127,r/=128;while(r>=1&&(n[this.pos++]|=128))}this.pos++};e3.prototype.readFloat=function(){var e=this.buf,n=this.pos;if(this.pos+=4,!(this.pos>e.length))return this.buf.readFloatLE(n)};e3.prototype.skipFloat=function(){this.pos+=4};e3.prototype.writeFloat=function(e){var n=this.buf,r=this.pos;if(this.pos+=4,!(this.pos>n.length))return this.buf.writeFloatLE(e,r)};e3.prototype.readDouble=function(){var e=this.buf,n=this.pos;if(this.pos+=8,!(this.pos>e.length))return this.buf.readDoubleLE(n)};e3.prototype.skipDouble=function(){this.pos+=8};e3.prototype.writeDouble=function(e){var n=this.buf,r=this.pos;if(this.pos+=8,!(this.pos>n.length))return this.buf.writeDoubleLE(e,r)};e3.prototype.readFixed=function(e){var n=this.pos;if(this.pos+=e,!(this.pos>this.buf.length)){var r=new B(e);return this.buf.copy(r,0,n,n+e),r}};e3.prototype.skipFixed=function(e){this.pos+=e};e3.prototype.writeFixed=function(e,n){n=n||e.length;var r=this.pos;this.pos+=n,!(this.pos>this.buf.length)&&e.copy(this.buf,r,0,n)};e3.prototype.readBytes=function(){return this.readFixed(this.readLong())};e3.prototype.skipBytes=function(){var e=this.readLong();this.pos+=e};e3.prototype.writeBytes=function(e){var n=e.length;this.writeLong(n),this.writeFixed(e,n)};e3.prototype.readString=function(){var e=this.readLong(),n=this.pos,r=this.buf;if(this.pos+=e,!(this.pos>r.length))return this.buf.utf8Slice(n,n+e)};e3.prototype.skipString=function(){var e=this.readLong();this.pos+=e};e3.prototype.writeString=function(e){var n=B.byteLength(e);this.writeLong(n);var r=this.pos;this.pos+=n,!(this.pos>this.buf.length)&&this.buf.utf8Write(e,r,n)};e3.prototype.writeBinary=function(e,n){var r=this.pos;this.pos+=n,!(this.pos>this.buf.length)&&this.buf.write(e,r,n,"binary")};e3.prototype.matchBoolean=function(e){return this.buf[this.pos++]-e.buf[e.pos++]};e3.prototype.matchInt=e3.prototype.matchLong=function(e){var n=this.readLong(),r=e.readLong();return n===r?0:n>1;a&128;)a=i[this.pos++],n|=(a&127)<=8&&(o-=8,e[r++]=n,n>>=8);return e[r]=n,l&&gr(e,8),e};e3.prototype.packLongBytes=function(e){var n=(e[7]&128)>>7,r=this.buf,o=1,i=0,a=3,l;n?(gr(e,8),l=1):l=0;for(var s=[e.readUIntLE(0,3),e.readUIntLE(3,3),e.readUIntLE(6,2)];a&&!s[--a];);for(;i7;)r[this.pos++]=l&127|128,l>>=7,o-=7;l|=s[a]<>=7;while(l&&(r[this.pos++]|=128));this.pos++,n&&gr(e,8)};function gr(e,n){for(;n--;)e[n]=~e[n]}Kf.exports={abstractFunction:Hg,capitalize:Pg,compare:Ig,getHash:Og,toMap:Ug,singleIndexOf:zg,hasDuplicates:Gg,Lcg:J0,OrderedQueue:yr,Tap:e3}});var td=$((A_,ed)=>{_();"use strict";ed.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var n={},r=Symbol("test"),o=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var i=42;n[r]=i;for(r in n)return!1;if(typeof Object.keys=="function"&&Object.keys(n).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(n).length!==0)return!1;var a=Object.getOwnPropertySymbols(n);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(n,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(n,r);if(l.value!==i||l.enumerable!==!0)return!1}return!0}});var l8=$((Z_,rd)=>{_();"use strict";var nd=typeof Symbol!="undefined"&&Symbol,Vg=td();rd.exports=function(){return typeof nd!="function"||typeof Symbol!="function"||typeof nd("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Vg()}});var id=$((F_,od)=>{_();"use strict";var $g="Function.prototype.bind called on incompatible ",Mr=Array.prototype.slice,qg=Object.prototype.toString,Yg="[object Function]";od.exports=function(n){var r=this;if(typeof r!="function"||qg.call(r)!==Yg)throw new TypeError($g+r);for(var o=Mr.call(arguments,1),i,a=function(){if(this instanceof i){var p=r.apply(this,o.concat(Mr.call(arguments)));return Object(p)===p?p:this}else return r.apply(n,o.concat(Mr.call(arguments)))},l=Math.max(0,r.length-o.length),s=[],C=0;C{_();"use strict";var Xg=id();ad.exports=Function.prototype.bind||Xg});var sd=$((T_,ld)=>{_();"use strict";var Jg=s8();ld.exports=Jg.call(Function.call,Object.prototype.hasOwnProperty)});var p8=$((D_,pd)=>{_();"use strict";var l3,Y6=SyntaxError,Cd=Function,i5=TypeError,vr=function(e){try{return Cd('"use strict"; return ('+e+").constructor;")()}catch(n){}},Q0=Object.getOwnPropertyDescriptor;if(Q0)try{Q0({},"")}catch(e){Q0=null}var Lr=function(){throw new i5},Qg=Q0?function(){try{return arguments.callee,Lr}catch(e){try{return Q0(arguments,"callee").get}catch(n){return Lr}}}():Lr,a5=l8()(),y0=Object.getPrototypeOf||function(e){return e.__proto__},l5={},Kg=typeof Uint8Array=="undefined"?l3:y0(Uint8Array),s5={"%AggregateError%":typeof AggregateError=="undefined"?l3:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?l3:ArrayBuffer,"%ArrayIteratorPrototype%":a5?y0([][Symbol.iterator]()):l3,"%AsyncFromSyncIteratorPrototype%":l3,"%AsyncFunction%":l5,"%AsyncGenerator%":l5,"%AsyncGeneratorFunction%":l5,"%AsyncIteratorPrototype%":l5,"%Atomics%":typeof Atomics=="undefined"?l3:Atomics,"%BigInt%":typeof BigInt=="undefined"?l3:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?l3:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?l3:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?l3:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?l3:FinalizationRegistry,"%Function%":Cd,"%GeneratorFunction%":l5,"%Int8Array%":typeof Int8Array=="undefined"?l3:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?l3:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?l3:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":a5?y0(y0([][Symbol.iterator]())):l3,"%JSON%":typeof JSON=="object"?JSON:l3,"%Map%":typeof Map=="undefined"?l3:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!a5?l3:y0(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?l3:Promise,"%Proxy%":typeof Proxy=="undefined"?l3:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?l3:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?l3:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!a5?l3:y0(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?l3:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":a5?y0(""[Symbol.iterator]()):l3,"%Symbol%":a5?Symbol:l3,"%SyntaxError%":Y6,"%ThrowTypeError%":Qg,"%TypedArray%":Kg,"%TypeError%":i5,"%Uint8Array%":typeof Uint8Array=="undefined"?l3:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?l3:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?l3:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?l3:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?l3:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?l3:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?l3:WeakSet},ex=function e(n){var r;if(n==="%AsyncFunction%")r=vr("async function () {}");else if(n==="%GeneratorFunction%")r=vr("function* () {}");else if(n==="%AsyncGeneratorFunction%")r=vr("async function* () {}");else if(n==="%AsyncGenerator%"){var o=e("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if(n==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&(r=y0(i.prototype))}return s5[n]=r,r},fd={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C8=s8(),f8=sd(),tx=C8.call(Function.call,Array.prototype.concat),nx=C8.call(Function.apply,Array.prototype.splice),dd=C8.call(Function.call,String.prototype.replace),d8=C8.call(Function.call,String.prototype.slice),rx=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ox=/\\(\\)?/g,ix=function(n){var r=d8(n,0,1),o=d8(n,-1);if(r==="%"&&o!=="%")throw new Y6("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&r!=="%")throw new Y6("invalid intrinsic syntax, expected opening `%`");var i=[];return dd(n,rx,function(a,l,s,C){i[i.length]=s?dd(C,ox,"$1"):l||a}),i},ax=function(n,r){var o=n,i;if(f8(fd,o)&&(i=fd[o],o="%"+i[0]+"%"),f8(s5,o)){var a=s5[o];if(a===l5&&(a=ex(o)),typeof a=="undefined"&&!r)throw new i5("intrinsic "+n+" exists, but is not available. Please file an issue!");return{alias:i,name:o,value:a}}throw new Y6("intrinsic "+n+" does not exist!")};pd.exports=function(n,r){if(typeof n!="string"||n.length===0)throw new i5("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new i5('"allowMissing" argument must be a boolean');var o=ix(n),i=o.length>0?o[0]:"",a=ax("%"+i+"%",r),l=a.name,s=a.value,C=!1,d=a.alias;d&&(i=d[0],nx(o,tx([0,1],d)));for(var p=1,c=!0;p=o.length){var N=Q0(s,h);c=!!N,c&&"get"in N&&!("originalValue"in N.get)?s=N.get:s=s[h]}else c=f8(s,h),s=s[h];c&&!C&&(s5[l]=s)}}return s}});var yd=$((P_,u8)=>{_();"use strict";var Nr=s8(),C5=p8(),ud=C5("%Function.prototype.apply%"),cd=C5("%Function.prototype.call%"),hd=C5("%Reflect.apply%",!0)||Nr.call(cd,ud),md=C5("%Object.getOwnPropertyDescriptor%",!0),K0=C5("%Object.defineProperty%",!0),lx=C5("%Math.max%");if(K0)try{K0({},"a",{value:1})}catch(e){K0=null}u8.exports=function(n){var r=hd(Nr,cd,arguments);if(md&&K0){var o=md(r,"length");o.configurable&&K0(r,"length",{value:1+lx(0,n.length-(arguments.length-1))})}return r};var kd=function(){return hd(Nr,ud,arguments)};K0?K0(u8.exports,"apply",{value:kd}):u8.exports.apply=kd});var c8=$((I_,Md)=>{_();"use strict";var gd=p8(),xd=yd(),sx=xd(gd("String.prototype.indexOf"));Md.exports=function(n,r){var o=gd(n,!!r);return typeof o=="function"&&sx(n,".prototype.")>-1?xd(o):o}});var Nd=$((O_,Ld)=>{_();"use strict";var Cx=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",fx=c8(),_r=fx("Object.prototype.toString"),h8=function(n){return Cx&&n&&typeof n=="object"&&Symbol.toStringTag in n?!1:_r(n)==="[object Arguments]"},vd=function(n){return h8(n)?!0:n!==null&&typeof n=="object"&&typeof n.length=="number"&&n.length>=0&&_r(n)!=="[object Array]"&&_r(n.callee)==="[object Function]"},dx=function(){return h8(arguments)}();h8.isLegacyArguments=vd;Ld.exports=dx?h8:vd});var wd=$((z_,bd)=>{_();"use strict";var px=Object.prototype.toString,ux=Function.prototype.toString,cx=/^\s*(?:function)?\*/,_d=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",br=Object.getPrototypeOf,hx=function(){if(!_d)return!1;try{return Function("return function*() {}")()}catch(e){}},wr;bd.exports=function(n){if(typeof n!="function")return!1;if(cx.test(ux.call(n)))return!0;if(!_d){var r=px.call(n);return r==="[object GeneratorFunction]"}if(!br)return!1;if(typeof wr=="undefined"){var o=hx();wr=o?br(o):!1}return br(n)===wr}});var jr=$((U_,jd)=>{_();var mx=Object.prototype.hasOwnProperty,kx=Object.prototype.toString;jd.exports=function(n,r,o){if(kx.call(r)!=="[object Function]")throw new TypeError("iterator must be a function");var i=n.length;if(i===+i)for(var a=0;a{_();"use strict";var Wr=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"];Wd.exports=function(){for(var n=[],r=0;r{_();"use strict";var yx=p8(),m8=yx("%Object.getOwnPropertyDescriptor%");if(m8)try{m8([],"length")}catch(e){m8=null}Sd.exports=m8});var Zr=$((V_,Fd)=>{_();"use strict";var Ed=jr(),gx=Sr(),Rr=c8(),xx=Rr("Object.prototype.toString"),Mx=l8()(),Rd=Mx&&typeof Symbol.toStringTag=="symbol",Ad=gx(),vx=Rr("Array.prototype.indexOf",!0)||function(n,r){for(var o=0;o-1}return k8?Nx(n):!1}});var Od=$(($_,Id)=>{_();"use strict";var Bd=jr(),_x=Sr(),Td=c8(),bx=Td("Object.prototype.toString"),wx=l8()(),Dd=wx&&typeof Symbol.toStringTag=="symbol",jx=_x(),Wx=Td("String.prototype.slice"),Pd={},Fr=Er(),Br=Object.getPrototypeOf;Dd&&Fr&&Br&&Bd(jx,function(e){if(typeof window[e]=="function"){var n=new window[e];if(!(Symbol.toStringTag in n))throw new EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var r=Br(n),o=Fr(r,Symbol.toStringTag);if(!o){var i=Br(r);o=Fr(i,Symbol.toStringTag)}Pd[e]=o.get}});var Sx=function(n){var r=!1;return Bd(Pd,function(o,i){if(!r)try{var a=o.call(n);a===i&&(r=a)}catch(l){}}),r},Ex=Zr();Id.exports=function(n){return Ex(n)?Dd?Sx(n):Wx(bx(n),8,-1):!1}});var tp=$(t3=>{_();"use strict";var Rx=Nd(),Ax=wd(),i4=Od(),zd=Zr();function f5(e){return e.call.bind(e)}var Ud=typeof BigInt!="undefined",Gd=typeof Symbol!="undefined",V2=f5(Object.prototype.toString),Zx=f5(Number.prototype.valueOf),Fx=f5(String.prototype.valueOf),Bx=f5(Boolean.prototype.valueOf);Ud&&(Hd=f5(BigInt.prototype.valueOf));var Hd;Gd&&(Vd=f5(Symbol.prototype.valueOf));var Vd;function X6(e,n){if(typeof e!="object")return!1;try{return n(e),!0}catch(r){return!1}}t3.isArgumentsObject=Rx;t3.isGeneratorFunction=Ax;t3.isTypedArray=zd;function Tx(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}t3.isPromise=Tx;function Dx(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):zd(e)||qd(e)}t3.isArrayBufferView=Dx;function Px(e){return i4(e)==="Uint8Array"}t3.isUint8Array=Px;function Ix(e){return i4(e)==="Uint8ClampedArray"}t3.isUint8ClampedArray=Ix;function Ox(e){return i4(e)==="Uint16Array"}t3.isUint16Array=Ox;function zx(e){return i4(e)==="Uint32Array"}t3.isUint32Array=zx;function Ux(e){return i4(e)==="Int8Array"}t3.isInt8Array=Ux;function Gx(e){return i4(e)==="Int16Array"}t3.isInt16Array=Gx;function Hx(e){return i4(e)==="Int32Array"}t3.isInt32Array=Hx;function Vx(e){return i4(e)==="Float32Array"}t3.isFloat32Array=Vx;function $x(e){return i4(e)==="Float64Array"}t3.isFloat64Array=$x;function qx(e){return i4(e)==="BigInt64Array"}t3.isBigInt64Array=qx;function Yx(e){return i4(e)==="BigUint64Array"}t3.isBigUint64Array=Yx;function y8(e){return V2(e)==="[object Map]"}y8.working=typeof Map!="undefined"&&y8(new Map);function Xx(e){return typeof Map=="undefined"?!1:y8.working?y8(e):e instanceof Map}t3.isMap=Xx;function g8(e){return V2(e)==="[object Set]"}g8.working=typeof Set!="undefined"&&g8(new Set);function Jx(e){return typeof Set=="undefined"?!1:g8.working?g8(e):e instanceof Set}t3.isSet=Jx;function x8(e){return V2(e)==="[object WeakMap]"}x8.working=typeof WeakMap!="undefined"&&x8(new WeakMap);function Qx(e){return typeof WeakMap=="undefined"?!1:x8.working?x8(e):e instanceof WeakMap}t3.isWeakMap=Qx;function Tr(e){return V2(e)==="[object WeakSet]"}Tr.working=typeof WeakSet!="undefined"&&Tr(new WeakSet);function Kx(e){return Tr(e)}t3.isWeakSet=Kx;function M8(e){return V2(e)==="[object ArrayBuffer]"}M8.working=typeof ArrayBuffer!="undefined"&&M8(new ArrayBuffer);function $d(e){return typeof ArrayBuffer=="undefined"?!1:M8.working?M8(e):e instanceof ArrayBuffer}t3.isArrayBuffer=$d;function v8(e){return V2(e)==="[object DataView]"}v8.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&v8(new DataView(new ArrayBuffer(1),0,1));function qd(e){return typeof DataView=="undefined"?!1:v8.working?v8(e):e instanceof DataView}t3.isDataView=qd;var Dr=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function J6(e){return V2(e)==="[object SharedArrayBuffer]"}function Yd(e){return typeof Dr=="undefined"?!1:(typeof J6.working=="undefined"&&(J6.working=J6(new Dr)),J6.working?J6(e):e instanceof Dr)}t3.isSharedArrayBuffer=Yd;function eM(e){return V2(e)==="[object AsyncFunction]"}t3.isAsyncFunction=eM;function tM(e){return V2(e)==="[object Map Iterator]"}t3.isMapIterator=tM;function nM(e){return V2(e)==="[object Set Iterator]"}t3.isSetIterator=nM;function rM(e){return V2(e)==="[object Generator]"}t3.isGeneratorObject=rM;function oM(e){return V2(e)==="[object WebAssembly.Module]"}t3.isWebAssemblyCompiledModule=oM;function Xd(e){return X6(e,Zx)}t3.isNumberObject=Xd;function Jd(e){return X6(e,Fx)}t3.isStringObject=Jd;function Qd(e){return X6(e,Bx)}t3.isBooleanObject=Qd;function Kd(e){return Ud&&X6(e,Hd)}t3.isBigIntObject=Kd;function ep(e){return Gd&&X6(e,Vd)}t3.isSymbolObject=ep;function iM(e){return Xd(e)||Jd(e)||Qd(e)||Kd(e)||ep(e)}t3.isBoxedPrimitive=iM;function aM(e){return typeof Uint8Array!="undefined"&&($d(e)||Yd(e))}t3.isAnyArrayBuffer=aM;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t3,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var rp=$((Y_,np)=>{_();np.exports=function(n){return n&&typeof n=="object"&&typeof n.copy=="function"&&typeof n.fill=="function"&&typeof n.readUInt8=="function"}});var op=$((X_,Pr)=>{_();typeof Object.create=="function"?Pr.exports=function(n,r){r&&(n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:Pr.exports=function(n,r){if(r){n.super_=r;var o=function(){};o.prototype=r.prototype,n.prototype=new o,n.prototype.constructor=n}}});var Hr=$(n3=>{_();var ip=Object.getOwnPropertyDescriptors||function(n){for(var r=Object.keys(n),o={},i=0;i=i)return s;switch(s){case"%s":return String(o[r++]);case"%d":return Number(o[r++]);case"%j":try{return JSON.stringify(o[r++])}catch(C){return"[Circular]"}default:return s}}),l=o[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),zr(n)?r.showHidden=n:n&&n3._extend(r,n),e1(r.showHidden)&&(r.showHidden=!1),e1(r.depth)&&(r.depth=2),e1(r.colors)&&(r.colors=!1),e1(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=sM),_8(r,e,r.depth)}n3.inspect=g0;g0.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};g0.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function sM(e,n){var r=g0.styles[n];return r?"["+g0.colors[r][0]+"m"+e+"["+g0.colors[r][1]+"m":e}function CM(e,n){return e}function fM(e){var n={};return e.forEach(function(r,o){n[r]=!0}),n}function _8(e,n,r){if(e.customInspect&&n&&W8(n.inspect)&&n.inspect!==n3.inspect&&!(n.constructor&&n.constructor.prototype===n)){var o=n.inspect(r,e);return w8(o)||(o=_8(e,o,r)),o}var i=dM(e,n);if(i)return i;var a=Object.keys(n),l=fM(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),K6(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return Ir(n);if(a.length===0){if(W8(n)){var s=n.name?": "+n.name:"";return e.stylize("[Function"+s+"]","special")}if(Q6(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(j8(n))return e.stylize(Date.prototype.toString.call(n),"date");if(K6(n))return Ir(n)}var C="",d=!1,p=["{","}"];if(lp(n)&&(d=!0,p=["[","]"]),W8(n)){var c=n.name?": "+n.name:"";C=" [Function"+c+"]"}if(Q6(n)&&(C=" "+RegExp.prototype.toString.call(n)),j8(n)&&(C=" "+Date.prototype.toUTCString.call(n)),K6(n)&&(C=" "+Ir(n)),a.length===0&&(!d||n.length==0))return p[0]+C+p[1];if(r<0)return Q6(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special");e.seen.push(n);var h;return d?h=pM(e,n,r,l,a):h=a.map(function(g){return Or(e,n,r,l,g,d)}),e.seen.pop(),uM(h,C,p)}function dM(e,n){if(e1(n))return e.stylize("undefined","undefined");if(w8(n)){var r="'"+JSON.stringify(n).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(sp(n))return e.stylize(""+n,"number");if(zr(n))return e.stylize(""+n,"boolean");if(b8(n))return e.stylize("null","null")}function Ir(e){return"["+Error.prototype.toString.call(e)+"]"}function pM(e,n,r,o,i){for(var a=[],l=0,s=n.length;l{_();"use strict";Cf.exports=sf()});var pf=$((df,dr)=>{_();(function(e){if(typeof df=="object"&&typeof dr!="undefined")dr.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var n;typeof window!="undefined"||typeof window!="undefined"?n=window:typeof self!="undefined"?n=self:n=this,n.GIF=e()}})(function(){var e,n,r;return function o(i,a,l){function s(p,c){if(!a[p]){if(!i[p]){var h=typeof s1=="function"&&s1;if(!c&&h)return h(p,!0);if(C)return C(p,!0);var g=new Error("Cannot find module '"+p+"'");throw g.code="MODULE_NOT_FOUND",g}var w=a[p]={exports:{}};i[p][0].call(w.exports,function(N){var k=i[p][1][N];return s(k||N)},w,w.exports,o,i,a,l)}return a[p].exports}for(var C=typeof s1=="function"&&s1,d=0;d0&&this._events[c].length>g&&(this._events[c].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[c].length),typeof console.trace=="function"&&console.trace())),this},l.prototype.on=l.prototype.addListener,l.prototype.once=function(c,h){if(!s(h))throw TypeError("listener must be a function");var g=!1;function w(){this.removeListener(c,w),g||(g=!0,h.apply(this,arguments))}return w.listener=h,this.on(c,w),this},l.prototype.removeListener=function(c,h){var g,w,N,k;if(!s(h))throw TypeError("listener must be a function");if(!this._events||!this._events[c])return this;if(g=this._events[c],N=g.length,w=-1,g===h||s(g.listener)&&g.listener===h)delete this._events[c],this._events.removeListener&&this.emit("removeListener",c,h);else if(d(g)){for(k=N;k-- >0;)if(g[k]===h||g[k].listener&&g[k].listener===h){w=k;break}if(w<0)return this;g.length===1?(g.length=0,delete this._events[c]):g.splice(w,1),this._events.removeListener&&this.emit("removeListener",c,h)}return this},l.prototype.removeAllListeners=function(c){var h,g;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[c]&&delete this._events[c],this;if(arguments.length===0){for(h in this._events)h!=="removeListener"&&this.removeAllListeners(h);return this.removeAllListeners("removeListener"),this._events={},this}if(g=this._events[c],s(g))this.removeListener(c,g);else if(g)for(;g.length;)this.removeListener(c,g[g.length-1]);return delete this._events[c],this},l.prototype.listeners=function(c){var h;return!this._events||!this._events[c]?h=[]:s(this._events[c])?h=[this._events[c]]:h=this._events[c].slice(),h},l.prototype.listenerCount=function(c){if(this._events){var h=this._events[c];if(s(h))return 1;if(h)return h.length}return 0},l.listenerCount=function(c,h){return c.listenerCount(h)};function s(c){return typeof c=="function"}function C(c){return typeof c=="number"}function d(c){return typeof c=="object"&&c!==null}function p(c){return c===void 0}},{}],2:[function(o,i,a){var l,s,C,d,p;p=navigator.userAgent.toLowerCase(),d=navigator.platform.toLowerCase(),l=p.match(/(opera|ie|firefox|chrome|version)[\s\/:]([\w\d\.]+)?.*?(safari|version[\s\/:]([\w\d\.]+)|$)/)||[null,"unknown",0],C=l[1]==="ie"&&document.documentMode,s={name:l[1]==="version"?l[3]:l[1],version:C||parseFloat(l[1]==="opera"&&l[4]?l[4]:l[2]),platform:{name:p.match(/ip(?:ad|od|hone)/)?"ios":(p.match(/(?:webos|android)/)||d.match(/mac|win|linux/)||["other"])[0]}},s[s.name]=!0,s[s.name+parseInt(s.version,10)]=!0,s.platform[s.platform.name]=!0,i.exports=s},{}],3:[function(o,i,a){var l,s,C,d=function(g,w){for(var N in w)p.call(w,N)&&(g[N]=w[N]);function k(){this.constructor=g}return k.prototype=w.prototype,g.prototype=new k,g.__super__=w.prototype,g},p={}.hasOwnProperty,c=[].indexOf||function(g){for(var w=0,N=this.length;wS;m=0<=S?++W:--W)E.push(null);return E}.call(this),x=this.spawnWorkers(),this.options.globalPalette===!0)this.renderNextFrame();else for(m=y=0,M=x;0<=M?yM;m=0<=M?++y:--y)this.renderNextFrame();return this.emit("start"),this.emit("progress",0)},k.prototype.abort=function(){for(var m;m=this.activeWorkers.shift(),m!=null;)this.log("killing active worker"),m.terminate();return this.running=!1,this.emit("abort")},k.prototype.spawnWorkers=function(){var m,y,x,M;return y=Math.min(this.options.workers,this.frames.length),function(){M=[];for(var W=x=this.freeWorkers.length;x<=y?Wy;x<=y?W++:W--)M.push(W);return M}.apply(this).forEach(function(W){return function(S){var E;return W.log("spawning worker "+S),E=new Worker(W.options.workerScript),E.onmessage=function(F){return W.activeWorkers.splice(W.activeWorkers.indexOf(E),1),W.freeWorkers.push(E),W.frameFinished(F.data)},W.freeWorkers.push(E)}}(this)),y},k.prototype.frameFinished=function(m){var y,x,M;if(this.log("frame "+m.index+" finished - "+this.activeWorkers.length+" active"),this.finishedFrames++,this.emit("progress",this.finishedFrames/this.frames.length),this.imageParts[m.index]=m,this.options.globalPalette===!0&&(this.options.globalPalette=m.globalPalette,this.log("global palette analyzed"),this.frames.length>2))for(y=x=1,M=this.freeWorkers.length;1<=M?xM;y=1<=M?++x:--x)this.renderNextFrame();return c.call(this.imageParts,null)>=0?this.renderNextFrame():this.finishRendering()},k.prototype.finishRendering=function(){var m,y,x,M,W,S,E,F,D,U,o3,i3,Z3,M3,R3,P4;for(F=0,M3=this.imageParts,W=0,D=M3.length;W=this.frames.length))return m=this.frames[this.nextFrame++],x=this.freeWorkers.shift(),y=this.getTask(m),this.log("starting frame "+(y.index+1)+" of "+this.frames.length),this.activeWorkers.push(x),x.postMessage(y)},k.prototype.getContextData=function(m){return m.getImageData(0,0,this.options.width,this.options.height).data},k.prototype.getImageData=function(m){var y;return this._canvas==null&&(this._canvas=document.createElement("canvas"),this._canvas.width=this.options.width,this._canvas.height=this.options.height),y=this._canvas.getContext("2d"),y.setFill=this.options.background,y.fillRect(0,0,this.options.width,this.options.height),y.drawImage(m,0,0),this.getContextData(y)},k.prototype.getTask=function(m){var y,x;if(y=this.frames.indexOf(m),x={index:y,last:y===this.frames.length-1,delay:m.delay,transparent:m.transparent,width:this.options.width,height:this.options.height,quality:this.options.quality,dither:this.options.dither,globalPalette:this.options.globalPalette,repeat:this.options.repeat,canTransfer:C.name==="chrome"},m.data!=null)x.data=m.data;else if(m.context!=null)x.data=this.getContextData(m.context);else if(m.image!=null)x.data=this.getImageData(m.image);else throw new Error("Invalid frame");return x},k.prototype.log=function(){var m;if(m=1<=arguments.length?h.call(arguments,0):[],!!this.options.debug)return console.log.apply(console,m)},k}(l),i.exports=s},{"./browser.coffee":2,events:1}]},{},[3])(3)})});var _f=$((wN,J7)=>{_();(function(){var e=function(M,W){for(var S=0,E=y(0,M.length-1,!0),F=0;FW[F][1])return!1}return!0},o=.95047,i=1,a=1.08883,l=4*o/(o+15*i+3*a),s=9*i/(o+15*i+3*a),C=.008856,d=903.3,p=function(M){return M>C?Math.pow(M,1/3):7.787*M+16/116},c=function(M){return Math.pow(M,3)>C?Math.pow(M,3):(116*M-16)/d},h={CIEXYZ:{},CIExyY:{},CIELAB:{},CIELCH:{},CIELUV:{},CIELCHuv:{},sRGB:{},hex:{}};h.CIEXYZ.sRGB=function(x){var M=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],W=function(U){var o3=.055;return U<=.0031308?12.92*U:1.055*Math.pow(U,1/2.4)-.055},S=W(e(M[0],x)),E=W(e(M[1],x)),F=W(e(M[2],x));return[S,E,F]},h.sRGB.CIEXYZ=function(x){var M=x[0],W=x[1],S=x[2],E=function(M3){var R3=.055;return M3>.04045?Math.pow((M3+R3)/(1+R3),2.4):M3/12.92},F=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],D=[E(M),E(W),E(S)],U=e(F[0],D),o3=e(F[1],D),i3=e(F[2],D);return[U,o3,i3]},h.CIEXYZ.CIExyY=function(x){var M=x[0],W=x[1],S=x[2],E=M+W+S;return E===0?[0,0,W]:[M/E,W/E,W]},h.CIExyY.CIEXYZ=function(x){var M=x[0],W=x[1],S=x[2];if(W===0)return[0,0,0];var E=M*S/W,F=(1-M-W)*S/W;return[E,S,F]},h.CIEXYZ.CIELAB=function(x){var M=x[0],W=x[1],S=x[2],E=p(M/o),F=p(W/i),D=p(S/a),U=116*F-16,o3=500*(E-F),i3=200*(F-D);return[U,o3,i3]},h.CIELAB.CIEXYZ=function(x){var M=x[0],W=x[1],S=x[2],E=(M+16)/116,F=E-S/200,D=W/500+E,U=o*c(D),o3=i*c(E),i3=a*c(F);return[U,o3,i3]},h.CIEXYZ.CIELUV=function(x){var M=x[0],W=x[1],S=x[2],E=4*M/(M+15*W+3*S),F=9*W/(M+15*W+3*S),D=116*p(W/i)-16;if(D===0)return[0,0,0];var U=13*D*(E-l),o3=13*D*(F-s);return[D,U,o3]},h.CIELUV.CIEXYZ=function(x){var M=x[0],W=x[1],S=x[2];if(M===0)return[0,0,0];var E=c((M+16)/116),F=W/(13*M)+l,D=S/(13*M)+s,U=E*i,o3=0-9*U*F/((F-4)*D-F*D),i3=(9*U-15*D*U-D*o3)/(3*D);return[o3,U,i3]};var g=function(M){var W=M[0],S=M[1],E=M[2],F=Math.pow(Math.pow(S,2)+Math.pow(E,2),1/2),D=Math.atan2(E,S),U=D*360/2/Math.PI;return U<0&&(U=360+U),[W,F,U]};h.CIELAB.CIELCH=g,h.CIELUV.CIELCHuv=g;var w=function(M){var W=M[0],S=M[1],E=M[2],F=E/360*2*Math.PI,D=Math.cos(F)*S,U=Math.sin(F)*S;return[W,D,U]};h.CIELCH.CIELAB=w,h.CIELCHuv.CIELUV=w;var N=function(M){M=M.map(function(E){return n(E,3)});for(var W=0;W1)throw new Error("Illegal sRGB value")}return M.map(function(E){return Math.round(E*255)})};h.sRGB.hex=function(x){var M="#";x=N(x);for(var W=0;WF;E?D++:D--)S.push(D);return S}})()});var wf=$((jN,bf)=>{_();var R=R||{};R.Geometry=function(){};R.Geometry.intersectLineLine=function(e,n){var r=(e.intercept-n.intercept)/(n.slope-e.slope),o=e.slope*r+e.intercept;return{x:r,y:o}};R.Geometry.distanceFromOrigin=function(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))};R.Geometry.distanceLineFromOrigin=function(e){return Math.abs(e.intercept)/Math.sqrt(Math.pow(e.slope,2)+1)};R.Geometry.perpendicularThroughPoint=function(e,n){var r=-1/e.slope,o=n.y-r*n.x;return{slope:r,intercept:o}};R.Geometry.angleFromOrigin=function(e){return Math.atan2(e.y,e.x)};R.Geometry.normalizeAngle=function(e){var n=2*Math.PI;return(e%n+n)%n};R.Geometry.lengthOfRayUntilIntersect=function(e,n){return n.intercept/(Math.sin(e)-n.slope*Math.cos(e))};R.Hsluv=function(){};R.Hsluv.getBounds=function(e){for(var n=[],r=Math.pow(e+16,3)/1560896,o=r>R.Hsluv.epsilon?r:e/R.Hsluv.kappa,i=0;i<3;)for(var a=i++,l=R.Hsluv.m[a][0],s=R.Hsluv.m[a][1],C=R.Hsluv.m[a][2],d=0;d<2;){var p=d++,c=(284517*l-94839*C)*o,h=(838422*C+769860*s+731718*l)*e*o-769860*p*e,g=(632260*C-126452*s)*o+126452*p;n.push({slope:c/g,intercept:h/g})}return n};R.Hsluv.maxSafeChromaForL=function(e){for(var n=R.Hsluv.getBounds(e),r=1/0,o=0;o=0&&(i=Math.min(i,s))}return i};R.Hsluv.dotProduct=function(e,n){for(var r=0,o=0,i=e.length;o.04045?Math.pow((e+.055)/1.055,2.4):e/12.92};R.Hsluv.xyzToRgb=function(e){return[R.Hsluv.fromLinear(R.Hsluv.dotProduct(R.Hsluv.m[0],e)),R.Hsluv.fromLinear(R.Hsluv.dotProduct(R.Hsluv.m[1],e)),R.Hsluv.fromLinear(R.Hsluv.dotProduct(R.Hsluv.m[2],e))]};R.Hsluv.rgbToXyz=function(e){var n=[R.Hsluv.toLinear(e[0]),R.Hsluv.toLinear(e[1]),R.Hsluv.toLinear(e[2])];return[R.Hsluv.dotProduct(R.Hsluv.minv[0],n),R.Hsluv.dotProduct(R.Hsluv.minv[1],n),R.Hsluv.dotProduct(R.Hsluv.minv[2],n)]};R.Hsluv.yToL=function(e){return e<=R.Hsluv.epsilon?e/R.Hsluv.refY*R.Hsluv.kappa:116*Math.pow(e/R.Hsluv.refY,.3333333333333333)-16};R.Hsluv.lToY=function(e){return e<=8?R.Hsluv.refY*e/R.Hsluv.kappa:R.Hsluv.refY*Math.pow((e+16)/116,3)};R.Hsluv.xyzToLuv=function(e){var n=e[0],r=e[1],o=e[2],i=n+15*r+3*o,a=4*n,l=9*r;i!=0?(a/=i,l/=i):(a=NaN,l=NaN);var s=R.Hsluv.yToL(r);if(s==0)return[0,0,0];var C=13*s*(a-R.Hsluv.refU),d=13*s*(l-R.Hsluv.refV);return[s,C,d]};R.Hsluv.luvToXyz=function(e){var n=e[0],r=e[1],o=e[2];if(n==0)return[0,0,0];var i=r/(13*n)+R.Hsluv.refU,a=o/(13*n)+R.Hsluv.refV,l=R.Hsluv.lToY(n),s=0-9*l*i/((i-4)*a-i*a),C=(9*l-15*a*l-a*s)/(3*a);return[s,l,C]};R.Hsluv.luvToLch=function(e){var n=e[0],r=e[1],o=e[2],i=Math.sqrt(r*r+o*o),a;if(i<1e-8)a=0;else{var l=Math.atan2(o,r);a=l*180/Math.PI,a<0&&(a=360+a)}return[n,i,a]};R.Hsluv.lchToLuv=function(e){var n=e[0],r=e[1],o=e[2],i=o/360*2*Math.PI,a=Math.cos(i)*r,l=Math.sin(i)*r;return[n,a,l]};R.Hsluv.hsluvToLch=function(e){var n=e[0],r=e[1],o=e[2];if(o>99.9999999)return[100,0,n];if(o<1e-8)return[0,0,n];var i=R.Hsluv.maxChromaForLH(o,n),a=i/100*r;return[o,a,n]};R.Hsluv.lchToHsluv=function(e){var n=e[0],r=e[1],o=e[2];if(n>99.9999999)return[o,0,100];if(n<1e-8)return[o,0,0];var i=R.Hsluv.maxChromaForLH(n,o),a=r/i*100;return[o,a,n]};R.Hsluv.hpluvToLch=function(e){var n=e[0],r=e[1],o=e[2];if(o>99.9999999)return[100,0,n];if(o<1e-8)return[0,0,n];var i=R.Hsluv.maxSafeChromaForL(o),a=i/100*r;return[o,a,n]};R.Hsluv.lchToHpluv=function(e){var n=e[0],r=e[1],o=e[2];if(n>99.9999999)return[o,0,100];if(n<1e-8)return[o,0,0];var i=R.Hsluv.maxSafeChromaForL(n),a=r/i*100;return[o,a,n]};R.Hsluv.rgbToHex=function(e){for(var n="#",r=0;r<3;){var o=r++,i=e[o],a=Math.round(i*255),l=a%16,s=(a-l)/16|0;n+=R.Hsluv.hexChars.charAt(s)+R.Hsluv.hexChars.charAt(l)}return n};R.Hsluv.hexToRgb=function(e){e=e.toLowerCase();for(var n=[],r=0;r<3;){var o=r++,i=R.Hsluv.hexChars.indexOf(e.charAt(o*2+1)),a=R.Hsluv.hexChars.indexOf(e.charAt(o*2+2)),l=i*16+a;n.push(l/255)}return n};R.Hsluv.lchToRgb=function(e){return R.Hsluv.xyzToRgb(R.Hsluv.luvToXyz(R.Hsluv.lchToLuv(e)))};R.Hsluv.rgbToLch=function(e){return R.Hsluv.luvToLch(R.Hsluv.xyzToLuv(R.Hsluv.rgbToXyz(e)))};R.Hsluv.hsluvToRgb=function(e){return R.Hsluv.lchToRgb(R.Hsluv.hsluvToLch(e))};R.Hsluv.rgbToHsluv=function(e){return R.Hsluv.lchToHsluv(R.Hsluv.rgbToLch(e))};R.Hsluv.hpluvToRgb=function(e){return R.Hsluv.lchToRgb(R.Hsluv.hpluvToLch(e))};R.Hsluv.rgbToHpluv=function(e){return R.Hsluv.lchToHpluv(R.Hsluv.rgbToLch(e))};R.Hsluv.hsluvToHex=function(e){return R.Hsluv.rgbToHex(R.Hsluv.hsluvToRgb(e))};R.Hsluv.hpluvToHex=function(e){return R.Hsluv.rgbToHex(R.Hsluv.hpluvToRgb(e))};R.Hsluv.hexToHsluv=function(e){return R.Hsluv.rgbToHsluv(R.Hsluv.hexToRgb(e))};R.Hsluv.hexToHpluv=function(e){return R.Hsluv.rgbToHpluv(R.Hsluv.hexToRgb(e))};R.Hsluv.m=[[3.240969941904521,-1.537383177570093,-.498610760293],[-.96924363628087,1.87596750150772,.041555057407175],[.055630079696993,-.20397695888897,1.056971514242878]];R.Hsluv.minv=[[.41239079926595,.35758433938387,.18048078840183],[.21263900587151,.71516867876775,.072192315360733],[.019330818715591,.11919477979462,.95053215224966]];R.Hsluv.refY=1;R.Hsluv.refU=.19783000664283;R.Hsluv.refV=.46831999493879;R.Hsluv.kappa=903.2962962;R.Hsluv.epsilon=.0088564516;R.Hsluv.hexChars="0123456789abcdef";var lg={hsluvToRgb:R.Hsluv.hsluvToRgb,rgbToHsluv:R.Hsluv.rgbToHsluv,hpluvToRgb:R.Hsluv.hpluvToRgb,rgbToHpluv:R.Hsluv.rgbToHpluv,hsluvToHex:R.Hsluv.hsluvToHex,hexToHsluv:R.Hsluv.hexToHsluv,hpluvToHex:R.Hsluv.hpluvToHex,hexToHpluv:R.Hsluv.hexToHpluv,lchToHpluv:R.Hsluv.lchToHpluv,hpluvToLch:R.Hsluv.hpluvToLch,lchToHsluv:R.Hsluv.lchToHsluv,hsluvToLch:R.Hsluv.hsluvToLch,lchToLuv:R.Hsluv.lchToLuv,luvToLch:R.Hsluv.luvToLch,xyzToLuv:R.Hsluv.xyzToLuv,luvToXyz:R.Hsluv.luvToXyz,xyzToRgb:R.Hsluv.xyzToRgb,rgbToXyz:R.Hsluv.rgbToXyz,lchToRgb:R.Hsluv.lchToRgb,rgbToLch:R.Hsluv.rgbToLch};bf.exports=lg});var Qf=$((V_,Jf)=>{_();"use strict";function Tg(){throw new Error("fingerprinting not supported in the browser")}Jf.exports={createHash:Tg}});var xr=$(($_,Kf)=>{_();"use strict";var Dg=Qf();function Pg(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Ig(e,n){return e===n?0:e=0)return-2;r=o}return r}function Ug(e,n){var r={},o,i;for(o=0;o-1&&(r+="abcdefghijklmnopqrstuvwxyz"),n.indexOf("A")>-1&&(r+="ABCDEFGHIJKLMNOPQRSTUVWXYZ"),n.indexOf("#")>-1&&(r+="0123456789"),n.indexOf("!")>-1&&(r+="~`!@#$%^&*()_+-={}[]:\";'<>?,./|\\");for(var o=[],i=0;i0&&n[r].index>1].index;)e=n[r],n[r]=n[o],n[o]=e,r=o};yr.prototype.pop=function(){var e=this._items,n=e.length-1|0,r=e[0];if(!r||r.index>this._index)return null;if(this._index++,!n)return e.pop(),r;e[0]=e.pop();for(var o=n>>1,i=0,a,l,s,C,d,p,c;i=C.index));)e[s]=C,e[i]=d,i=s;return r};function e3(e,n){this.buf=e,this.pos=n|0}e3.prototype.isValid=function(){return this.pos<=this.buf.length};e3.prototype.getValue=function(){return this.buf.slice(0,this.pos)};e3.prototype.readBoolean=function(){return!!this.buf[this.pos++]};e3.prototype.skipBoolean=function(){this.pos++};e3.prototype.writeBoolean=function(e){this.buf[this.pos++]=!!e};e3.prototype.readInt=e3.prototype.readLong=function(){var e=0,n=0,r=this.buf,o,i,a,l;do o=r[this.pos++],i=o&128,e|=(o&127)<>1^-(e&1)};e3.prototype.skipInt=e3.prototype.skipLong=function(){for(var e=this.buf;e[this.pos++]&128;);};e3.prototype.writeInt=e3.prototype.writeLong=function(e){var n=this.buf,r,o;if(e>=-1073741824&&e<1073741824){o=e>=0?e<<1:~e<<1|1;do n[this.pos]=o&127,o>>=7;while(o&&(n[this.pos++]|=128))}else{r=e>=0?e*2:-e*2-1;do n[this.pos]=r&127,r/=128;while(r>=1&&(n[this.pos++]|=128))}this.pos++};e3.prototype.readFloat=function(){var e=this.buf,n=this.pos;if(this.pos+=4,!(this.pos>e.length))return this.buf.readFloatLE(n)};e3.prototype.skipFloat=function(){this.pos+=4};e3.prototype.writeFloat=function(e){var n=this.buf,r=this.pos;if(this.pos+=4,!(this.pos>n.length))return this.buf.writeFloatLE(e,r)};e3.prototype.readDouble=function(){var e=this.buf,n=this.pos;if(this.pos+=8,!(this.pos>e.length))return this.buf.readDoubleLE(n)};e3.prototype.skipDouble=function(){this.pos+=8};e3.prototype.writeDouble=function(e){var n=this.buf,r=this.pos;if(this.pos+=8,!(this.pos>n.length))return this.buf.writeDoubleLE(e,r)};e3.prototype.readFixed=function(e){var n=this.pos;if(this.pos+=e,!(this.pos>this.buf.length)){var r=new B(e);return this.buf.copy(r,0,n,n+e),r}};e3.prototype.skipFixed=function(e){this.pos+=e};e3.prototype.writeFixed=function(e,n){n=n||e.length;var r=this.pos;this.pos+=n,!(this.pos>this.buf.length)&&e.copy(this.buf,r,0,n)};e3.prototype.readBytes=function(){return this.readFixed(this.readLong())};e3.prototype.skipBytes=function(){var e=this.readLong();this.pos+=e};e3.prototype.writeBytes=function(e){var n=e.length;this.writeLong(n),this.writeFixed(e,n)};e3.prototype.readString=function(){var e=this.readLong(),n=this.pos,r=this.buf;if(this.pos+=e,!(this.pos>r.length))return this.buf.utf8Slice(n,n+e)};e3.prototype.skipString=function(){var e=this.readLong();this.pos+=e};e3.prototype.writeString=function(e){var n=B.byteLength(e);this.writeLong(n);var r=this.pos;this.pos+=n,!(this.pos>this.buf.length)&&this.buf.utf8Write(e,r,n)};e3.prototype.writeBinary=function(e,n){var r=this.pos;this.pos+=n,!(this.pos>this.buf.length)&&this.buf.write(e,r,n,"binary")};e3.prototype.matchBoolean=function(e){return this.buf[this.pos++]-e.buf[e.pos++]};e3.prototype.matchInt=e3.prototype.matchLong=function(e){var n=this.readLong(),r=e.readLong();return n===r?0:n>1;a&128;)a=i[this.pos++],n|=(a&127)<=8&&(o-=8,e[r++]=n,n>>=8);return e[r]=n,l&&gr(e,8),e};e3.prototype.packLongBytes=function(e){var n=(e[7]&128)>>7,r=this.buf,o=1,i=0,a=3,l;n?(gr(e,8),l=1):l=0;for(var s=[e.readUIntLE(0,3),e.readUIntLE(3,3),e.readUIntLE(6,2)];a&&!s[--a];);for(;i7;)r[this.pos++]=l&127|128,l>>=7,o-=7;l|=s[a]<>=7;while(l&&(r[this.pos++]|=128));this.pos++,n&&gr(e,8)};function gr(e,n){for(;n--;)e[n]=~e[n]}Kf.exports={abstractFunction:Hg,capitalize:Pg,compare:Ig,getHash:Og,toMap:Ug,singleIndexOf:zg,hasDuplicates:Gg,Lcg:J0,OrderedQueue:yr,Tap:e3}});var td=$((q_,ed)=>{_();"use strict";ed.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var n={},r=Symbol("test"),o=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var i=42;n[r]=i;for(r in n)return!1;if(typeof Object.keys=="function"&&Object.keys(n).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(n).length!==0)return!1;var a=Object.getOwnPropertySymbols(n);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(n,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(n,r);if(l.value!==i||l.enumerable!==!0)return!1}return!0}});var l8=$((Y_,rd)=>{_();"use strict";var nd=typeof Symbol!="undefined"&&Symbol,Vg=td();rd.exports=function(){return typeof nd!="function"||typeof Symbol!="function"||typeof nd("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Vg()}});var id=$((X_,od)=>{_();"use strict";var $g="Function.prototype.bind called on incompatible ",Mr=Array.prototype.slice,qg=Object.prototype.toString,Yg="[object Function]";od.exports=function(n){var r=this;if(typeof r!="function"||qg.call(r)!==Yg)throw new TypeError($g+r);for(var o=Mr.call(arguments,1),i,a=function(){if(this instanceof i){var p=r.apply(this,o.concat(Mr.call(arguments)));return Object(p)===p?p:this}else return r.apply(n,o.concat(Mr.call(arguments)))},l=Math.max(0,r.length-o.length),s=[],C=0;C{_();"use strict";var Xg=id();ad.exports=Function.prototype.bind||Xg});var sd=$((Q_,ld)=>{_();"use strict";var Jg=s8();ld.exports=Jg.call(Function.call,Object.prototype.hasOwnProperty)});var p8=$((K_,pd)=>{_();"use strict";var l3,Y6=SyntaxError,Cd=Function,i5=TypeError,vr=function(e){try{return Cd('"use strict"; return ('+e+").constructor;")()}catch(n){}},Q0=Object.getOwnPropertyDescriptor;if(Q0)try{Q0({},"")}catch(e){Q0=null}var Lr=function(){throw new i5},Qg=Q0?function(){try{return arguments.callee,Lr}catch(e){try{return Q0(arguments,"callee").get}catch(n){return Lr}}}():Lr,a5=l8()(),y0=Object.getPrototypeOf||function(e){return e.__proto__},l5={},Kg=typeof Uint8Array=="undefined"?l3:y0(Uint8Array),s5={"%AggregateError%":typeof AggregateError=="undefined"?l3:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?l3:ArrayBuffer,"%ArrayIteratorPrototype%":a5?y0([][Symbol.iterator]()):l3,"%AsyncFromSyncIteratorPrototype%":l3,"%AsyncFunction%":l5,"%AsyncGenerator%":l5,"%AsyncGeneratorFunction%":l5,"%AsyncIteratorPrototype%":l5,"%Atomics%":typeof Atomics=="undefined"?l3:Atomics,"%BigInt%":typeof BigInt=="undefined"?l3:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?l3:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?l3:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?l3:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?l3:FinalizationRegistry,"%Function%":Cd,"%GeneratorFunction%":l5,"%Int8Array%":typeof Int8Array=="undefined"?l3:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?l3:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?l3:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":a5?y0(y0([][Symbol.iterator]())):l3,"%JSON%":typeof JSON=="object"?JSON:l3,"%Map%":typeof Map=="undefined"?l3:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!a5?l3:y0(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?l3:Promise,"%Proxy%":typeof Proxy=="undefined"?l3:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?l3:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?l3:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!a5?l3:y0(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?l3:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":a5?y0(""[Symbol.iterator]()):l3,"%Symbol%":a5?Symbol:l3,"%SyntaxError%":Y6,"%ThrowTypeError%":Qg,"%TypedArray%":Kg,"%TypeError%":i5,"%Uint8Array%":typeof Uint8Array=="undefined"?l3:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?l3:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?l3:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?l3:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?l3:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?l3:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?l3:WeakSet},ex=function e(n){var r;if(n==="%AsyncFunction%")r=vr("async function () {}");else if(n==="%GeneratorFunction%")r=vr("function* () {}");else if(n==="%AsyncGeneratorFunction%")r=vr("async function* () {}");else if(n==="%AsyncGenerator%"){var o=e("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if(n==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&(r=y0(i.prototype))}return s5[n]=r,r},fd={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C8=s8(),f8=sd(),tx=C8.call(Function.call,Array.prototype.concat),nx=C8.call(Function.apply,Array.prototype.splice),dd=C8.call(Function.call,String.prototype.replace),d8=C8.call(Function.call,String.prototype.slice),rx=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ox=/\\(\\)?/g,ix=function(n){var r=d8(n,0,1),o=d8(n,-1);if(r==="%"&&o!=="%")throw new Y6("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&r!=="%")throw new Y6("invalid intrinsic syntax, expected opening `%`");var i=[];return dd(n,rx,function(a,l,s,C){i[i.length]=s?dd(C,ox,"$1"):l||a}),i},ax=function(n,r){var o=n,i;if(f8(fd,o)&&(i=fd[o],o="%"+i[0]+"%"),f8(s5,o)){var a=s5[o];if(a===l5&&(a=ex(o)),typeof a=="undefined"&&!r)throw new i5("intrinsic "+n+" exists, but is not available. Please file an issue!");return{alias:i,name:o,value:a}}throw new Y6("intrinsic "+n+" does not exist!")};pd.exports=function(n,r){if(typeof n!="string"||n.length===0)throw new i5("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new i5('"allowMissing" argument must be a boolean');var o=ix(n),i=o.length>0?o[0]:"",a=ax("%"+i+"%",r),l=a.name,s=a.value,C=!1,d=a.alias;d&&(i=d[0],nx(o,tx([0,1],d)));for(var p=1,c=!0;p=o.length){var N=Q0(s,h);c=!!N,c&&"get"in N&&!("originalValue"in N.get)?s=N.get:s=s[h]}else c=f8(s,h),s=s[h];c&&!C&&(s5[l]=s)}}return s}});var yd=$((eb,u8)=>{_();"use strict";var Nr=s8(),C5=p8(),ud=C5("%Function.prototype.apply%"),cd=C5("%Function.prototype.call%"),hd=C5("%Reflect.apply%",!0)||Nr.call(cd,ud),md=C5("%Object.getOwnPropertyDescriptor%",!0),K0=C5("%Object.defineProperty%",!0),lx=C5("%Math.max%");if(K0)try{K0({},"a",{value:1})}catch(e){K0=null}u8.exports=function(n){var r=hd(Nr,cd,arguments);if(md&&K0){var o=md(r,"length");o.configurable&&K0(r,"length",{value:1+lx(0,n.length-(arguments.length-1))})}return r};var kd=function(){return hd(Nr,ud,arguments)};K0?K0(u8.exports,"apply",{value:kd}):u8.exports.apply=kd});var c8=$((tb,Md)=>{_();"use strict";var gd=p8(),xd=yd(),sx=xd(gd("String.prototype.indexOf"));Md.exports=function(n,r){var o=gd(n,!!r);return typeof o=="function"&&sx(n,".prototype.")>-1?xd(o):o}});var Nd=$((nb,Ld)=>{_();"use strict";var Cx=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",fx=c8(),_r=fx("Object.prototype.toString"),h8=function(n){return Cx&&n&&typeof n=="object"&&Symbol.toStringTag in n?!1:_r(n)==="[object Arguments]"},vd=function(n){return h8(n)?!0:n!==null&&typeof n=="object"&&typeof n.length=="number"&&n.length>=0&&_r(n)!=="[object Array]"&&_r(n.callee)==="[object Function]"},dx=function(){return h8(arguments)}();h8.isLegacyArguments=vd;Ld.exports=dx?h8:vd});var wd=$((rb,bd)=>{_();"use strict";var px=Object.prototype.toString,ux=Function.prototype.toString,cx=/^\s*(?:function)?\*/,_d=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",br=Object.getPrototypeOf,hx=function(){if(!_d)return!1;try{return Function("return function*() {}")()}catch(e){}},wr;bd.exports=function(n){if(typeof n!="function")return!1;if(cx.test(ux.call(n)))return!0;if(!_d){var r=px.call(n);return r==="[object GeneratorFunction]"}if(!br)return!1;if(typeof wr=="undefined"){var o=hx();wr=o?br(o):!1}return br(n)===wr}});var jr=$((ob,jd)=>{_();var mx=Object.prototype.hasOwnProperty,kx=Object.prototype.toString;jd.exports=function(n,r,o){if(kx.call(r)!=="[object Function]")throw new TypeError("iterator must be a function");var i=n.length;if(i===+i)for(var a=0;a{_();"use strict";var Wr=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"];Wd.exports=function(){for(var n=[],r=0;r{_();"use strict";var yx=p8(),m8=yx("%Object.getOwnPropertyDescriptor%");if(m8)try{m8([],"length")}catch(e){m8=null}Sd.exports=m8});var Zr=$((lb,Fd)=>{_();"use strict";var Ed=jr(),gx=Sr(),Rr=c8(),xx=Rr("Object.prototype.toString"),Mx=l8()(),Rd=Mx&&typeof Symbol.toStringTag=="symbol",Ad=gx(),vx=Rr("Array.prototype.indexOf",!0)||function(n,r){for(var o=0;o-1}return k8?Nx(n):!1}});var Od=$((sb,Id)=>{_();"use strict";var Bd=jr(),_x=Sr(),Td=c8(),bx=Td("Object.prototype.toString"),wx=l8()(),Dd=wx&&typeof Symbol.toStringTag=="symbol",jx=_x(),Wx=Td("String.prototype.slice"),Pd={},Fr=Er(),Br=Object.getPrototypeOf;Dd&&Fr&&Br&&Bd(jx,function(e){if(typeof window[e]=="function"){var n=new window[e];if(!(Symbol.toStringTag in n))throw new EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var r=Br(n),o=Fr(r,Symbol.toStringTag);if(!o){var i=Br(r);o=Fr(i,Symbol.toStringTag)}Pd[e]=o.get}});var Sx=function(n){var r=!1;return Bd(Pd,function(o,i){if(!r)try{var a=o.call(n);a===i&&(r=a)}catch(l){}}),r},Ex=Zr();Id.exports=function(n){return Ex(n)?Dd?Sx(n):Wx(bx(n),8,-1):!1}});var tp=$(t3=>{_();"use strict";var Rx=Nd(),Ax=wd(),i4=Od(),zd=Zr();function f5(e){return e.call.bind(e)}var Ud=typeof BigInt!="undefined",Gd=typeof Symbol!="undefined",V2=f5(Object.prototype.toString),Zx=f5(Number.prototype.valueOf),Fx=f5(String.prototype.valueOf),Bx=f5(Boolean.prototype.valueOf);Ud&&(Hd=f5(BigInt.prototype.valueOf));var Hd;Gd&&(Vd=f5(Symbol.prototype.valueOf));var Vd;function X6(e,n){if(typeof e!="object")return!1;try{return n(e),!0}catch(r){return!1}}t3.isArgumentsObject=Rx;t3.isGeneratorFunction=Ax;t3.isTypedArray=zd;function Tx(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}t3.isPromise=Tx;function Dx(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):zd(e)||qd(e)}t3.isArrayBufferView=Dx;function Px(e){return i4(e)==="Uint8Array"}t3.isUint8Array=Px;function Ix(e){return i4(e)==="Uint8ClampedArray"}t3.isUint8ClampedArray=Ix;function Ox(e){return i4(e)==="Uint16Array"}t3.isUint16Array=Ox;function zx(e){return i4(e)==="Uint32Array"}t3.isUint32Array=zx;function Ux(e){return i4(e)==="Int8Array"}t3.isInt8Array=Ux;function Gx(e){return i4(e)==="Int16Array"}t3.isInt16Array=Gx;function Hx(e){return i4(e)==="Int32Array"}t3.isInt32Array=Hx;function Vx(e){return i4(e)==="Float32Array"}t3.isFloat32Array=Vx;function $x(e){return i4(e)==="Float64Array"}t3.isFloat64Array=$x;function qx(e){return i4(e)==="BigInt64Array"}t3.isBigInt64Array=qx;function Yx(e){return i4(e)==="BigUint64Array"}t3.isBigUint64Array=Yx;function y8(e){return V2(e)==="[object Map]"}y8.working=typeof Map!="undefined"&&y8(new Map);function Xx(e){return typeof Map=="undefined"?!1:y8.working?y8(e):e instanceof Map}t3.isMap=Xx;function g8(e){return V2(e)==="[object Set]"}g8.working=typeof Set!="undefined"&&g8(new Set);function Jx(e){return typeof Set=="undefined"?!1:g8.working?g8(e):e instanceof Set}t3.isSet=Jx;function x8(e){return V2(e)==="[object WeakMap]"}x8.working=typeof WeakMap!="undefined"&&x8(new WeakMap);function Qx(e){return typeof WeakMap=="undefined"?!1:x8.working?x8(e):e instanceof WeakMap}t3.isWeakMap=Qx;function Tr(e){return V2(e)==="[object WeakSet]"}Tr.working=typeof WeakSet!="undefined"&&Tr(new WeakSet);function Kx(e){return Tr(e)}t3.isWeakSet=Kx;function M8(e){return V2(e)==="[object ArrayBuffer]"}M8.working=typeof ArrayBuffer!="undefined"&&M8(new ArrayBuffer);function $d(e){return typeof ArrayBuffer=="undefined"?!1:M8.working?M8(e):e instanceof ArrayBuffer}t3.isArrayBuffer=$d;function v8(e){return V2(e)==="[object DataView]"}v8.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&v8(new DataView(new ArrayBuffer(1),0,1));function qd(e){return typeof DataView=="undefined"?!1:v8.working?v8(e):e instanceof DataView}t3.isDataView=qd;var Dr=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function J6(e){return V2(e)==="[object SharedArrayBuffer]"}function Yd(e){return typeof Dr=="undefined"?!1:(typeof J6.working=="undefined"&&(J6.working=J6(new Dr)),J6.working?J6(e):e instanceof Dr)}t3.isSharedArrayBuffer=Yd;function eM(e){return V2(e)==="[object AsyncFunction]"}t3.isAsyncFunction=eM;function tM(e){return V2(e)==="[object Map Iterator]"}t3.isMapIterator=tM;function nM(e){return V2(e)==="[object Set Iterator]"}t3.isSetIterator=nM;function rM(e){return V2(e)==="[object Generator]"}t3.isGeneratorObject=rM;function oM(e){return V2(e)==="[object WebAssembly.Module]"}t3.isWebAssemblyCompiledModule=oM;function Xd(e){return X6(e,Zx)}t3.isNumberObject=Xd;function Jd(e){return X6(e,Fx)}t3.isStringObject=Jd;function Qd(e){return X6(e,Bx)}t3.isBooleanObject=Qd;function Kd(e){return Ud&&X6(e,Hd)}t3.isBigIntObject=Kd;function ep(e){return Gd&&X6(e,Vd)}t3.isSymbolObject=ep;function iM(e){return Xd(e)||Jd(e)||Qd(e)||Kd(e)||ep(e)}t3.isBoxedPrimitive=iM;function aM(e){return typeof Uint8Array!="undefined"&&($d(e)||Yd(e))}t3.isAnyArrayBuffer=aM;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t3,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var rp=$((fb,np)=>{_();np.exports=function(n){return n&&typeof n=="object"&&typeof n.copy=="function"&&typeof n.fill=="function"&&typeof n.readUInt8=="function"}});var op=$((db,Pr)=>{_();typeof Object.create=="function"?Pr.exports=function(n,r){r&&(n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:Pr.exports=function(n,r){if(r){n.super_=r;var o=function(){};o.prototype=r.prototype,n.prototype=new o,n.prototype.constructor=n}}});var Hr=$(n3=>{_();var ip=Object.getOwnPropertyDescriptors||function(n){for(var r=Object.keys(n),o={},i=0;i=i)return s;switch(s){case"%s":return String(o[r++]);case"%d":return Number(o[r++]);case"%j":try{return JSON.stringify(o[r++])}catch(C){return"[Circular]"}default:return s}}),l=o[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),zr(n)?r.showHidden=n:n&&n3._extend(r,n),e1(r.showHidden)&&(r.showHidden=!1),e1(r.depth)&&(r.depth=2),e1(r.colors)&&(r.colors=!1),e1(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=sM),_8(r,e,r.depth)}n3.inspect=g0;g0.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};g0.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function sM(e,n){var r=g0.styles[n];return r?"["+g0.colors[r][0]+"m"+e+"["+g0.colors[r][1]+"m":e}function CM(e,n){return e}function fM(e){var n={};return e.forEach(function(r,o){n[r]=!0}),n}function _8(e,n,r){if(e.customInspect&&n&&W8(n.inspect)&&n.inspect!==n3.inspect&&!(n.constructor&&n.constructor.prototype===n)){var o=n.inspect(r,e);return w8(o)||(o=_8(e,o,r)),o}var i=dM(e,n);if(i)return i;var a=Object.keys(n),l=fM(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),K6(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return Ir(n);if(a.length===0){if(W8(n)){var s=n.name?": "+n.name:"";return e.stylize("[Function"+s+"]","special")}if(Q6(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(j8(n))return e.stylize(Date.prototype.toString.call(n),"date");if(K6(n))return Ir(n)}var C="",d=!1,p=["{","}"];if(lp(n)&&(d=!0,p=["[","]"]),W8(n)){var c=n.name?": "+n.name:"";C=" [Function"+c+"]"}if(Q6(n)&&(C=" "+RegExp.prototype.toString.call(n)),j8(n)&&(C=" "+Date.prototype.toUTCString.call(n)),K6(n)&&(C=" "+Ir(n)),a.length===0&&(!d||n.length==0))return p[0]+C+p[1];if(r<0)return Q6(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special");e.seen.push(n);var h;return d?h=pM(e,n,r,l,a):h=a.map(function(g){return Or(e,n,r,l,g,d)}),e.seen.pop(),uM(h,C,p)}function dM(e,n){if(e1(n))return e.stylize("undefined","undefined");if(w8(n)){var r="'"+JSON.stringify(n).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(sp(n))return e.stylize(""+n,"number");if(zr(n))return e.stylize(""+n,"boolean");if(b8(n))return e.stylize("null","null")}function Ir(e){return"["+Error.prototype.toString.call(e)+"]"}function pM(e,n,r,o,i){for(var a=[],l=0,s=n.length;l-1&&(a?s=s.split(`
`).map(function(d){return" "+d}).join(`
`).substr(2):s=`
@@ -17,7 +17,7 @@ Add a component higher in the tree to provide a loading
`))):s=e.stylize("[Circular]","special")),e1(l)){if(a&&i.match(/^\d+$/))return s;l=JSON.stringify(""+i),l.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(l=l.substr(1,l.length-2),l=e.stylize(l,"name")):(l=l.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),l=e.stylize(l,"string"))}return l+": "+s}function uM(e,n,r){var o=0,i=e.reduce(function(a,l){return o++,l.indexOf(`
`)>=0&&o++,a+l.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(n===""?"":n+`
`)+" "+e.join(`,
- `)+" "+r[1]:r[0]+n+" "+e.join(", ")+" "+r[1]}n3.types=tp();function lp(e){return Array.isArray(e)}n3.isArray=lp;function zr(e){return typeof e=="boolean"}n3.isBoolean=zr;function b8(e){return e===null}n3.isNull=b8;function cM(e){return e==null}n3.isNullOrUndefined=cM;function sp(e){return typeof e=="number"}n3.isNumber=sp;function w8(e){return typeof e=="string"}n3.isString=w8;function hM(e){return typeof e=="symbol"}n3.isSymbol=hM;function e1(e){return e===void 0}n3.isUndefined=e1;function Q6(e){return d5(e)&&Ur(e)==="[object RegExp]"}n3.isRegExp=Q6;n3.types.isRegExp=Q6;function d5(e){return typeof e=="object"&&e!==null}n3.isObject=d5;function j8(e){return d5(e)&&Ur(e)==="[object Date]"}n3.isDate=j8;n3.types.isDate=j8;function K6(e){return d5(e)&&(Ur(e)==="[object Error]"||e instanceof Error)}n3.isError=K6;n3.types.isNativeError=K6;function W8(e){return typeof e=="function"}n3.isFunction=W8;function mM(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}n3.isPrimitive=mM;n3.isBuffer=rp();function Ur(e){return Object.prototype.toString.call(e)}function Gr(e){return e<10?"0"+e.toString(10):e.toString(10)}var kM=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function yM(){var e=new Date,n=[Gr(e.getHours()),Gr(e.getMinutes()),Gr(e.getSeconds())].join(":");return[e.getDate(),kM[e.getMonth()],n].join(" ")}n3.log=function(){console.log("%s - %s",yM(),n3.format.apply(n3,arguments))};n3.inherits=op();n3._extend=function(e,n){if(!n||!d5(n))return e;for(var r=Object.keys(n),o=r.length;o--;)e[r[o]]=n[r[o]];return e};function Cp(e,n){return Object.prototype.hasOwnProperty.call(e,n)}var t1=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;n3.promisify=function(n){if(typeof n!="function")throw new TypeError('The "original" argument must be of type Function');if(t1&&n[t1]){var r=n[t1];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,t1,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var o,i,a=new Promise(function(C,d){o=C,i=d}),l=[],s=0;s{_();"use strict";var u3=xr(),fp=f9(),O3=Hr(),p5=u3.Tap,a3=O3.format,S8={array:j2,boolean:D4,bytes:c2,double:a4,enum:h2,error:B3,fixed:m2,float:Y2,int:q2,long:Q3,map:k2,null:$2,record:B3,request:B3,string:X2,union:a2},Vr=/^[A-Za-z_][A-Za-z0-9_]*$/,i2=new u3.Lcg,v4=new p5(new fp.SlowBuffer(1024)),c3=[],e9=null;function n1(e,n){if(e instanceof X)return e;n=r1(e,n);var r;if(typeof e=="string"){if(n.namespace&&!~e.indexOf(".")&&!qr(e)&&(e=n.namespace+"."+e),r=n.registry[e],r)return r;if(qr(e))return r=n.registry[e]=n1({type:e},n),r;throw new Error(a3("undefined type name: %s",e))}if(n.typeHook&&(r=n.typeHook(e,n))){if(!(r instanceof X))throw new Error(a3("invalid typehook return value: %j",r));return r}if(e.logicalType&&!e9){var o=n.logicalTypes[e.logicalType];if(o){var i={};Object.keys(n.registry).forEach(function(a){i[a]=n.registry[a]});try{return new o(e,n)}catch(a){if(n.assertLogicalTypes)throw a;e9=null,n.registry=i}}}return e instanceof Array?r=new a2(e,n):r=function(a){var l=S8[a];if(l===void 0)throw new Error(a3("unknown type: %j",a));return new l(e,n)}(e.type),r}function X(e){var n=this._name,r=e9||this;if(e9=null,!(e===void 0||n===void 0)){var o=e[n];if(o!==void 0)throw new Error(a3("duplicate type name: %s",n));e[n]=r}}X.__reset=function(e){v4.buf=new fp.SlowBuffer(e)};X.prototype.createResolver=function(e,n){if(!(e instanceof X))throw new Error(a3("not a type: %j",e));if(e instanceof l2&&!(this instanceof l2))return this.createResolver(e._underlyingType,n);n=n||{},n.registry=n.registry||{};var r,o;if(this instanceof B3&&e instanceof B3&&(o=this._name+":"+e._name,r=n.registry[o],r))return r;if(r=new dp(this),o&&(n.registry[o]=r),e instanceof a2){var i=e._types.map(function(a){return this.createResolver(a,n)},this);r._read=function(a){var l=a.readLong(),s=i[l];if(s===void 0)throw new Error(a3("invalid union index: %s",l));return i[l]._read(a)}}else this._updateResolver(r,e,n);if(!r._read)throw new Error(a3("cannot read %s as %s",e,this));return r};X.prototype.decode=function(e,n,r){var o=new p5(e);o.pos=n|0;var i=pp(this,o,r);return o.isValid()?{value:i,offset:o.pos}:{value:void 0,offset:-1}};X.prototype.encode=function(e,n,r){var o=new p5(n);return o.pos=r|0,this._write(o,e),o.isValid()?o.pos:n.length-o.pos};X.prototype.fromBuffer=function(e,n,r){var o=new p5(e),i=pp(this,o,n,r);if(!o.isValid())throw new Error("truncated buffer");if(!r&&o.pos",this.constructor.name);var e=JSON.parse(this.getSchema(!0));return typeof e=="object"&&(e.type=void 0),a3("<%s %j>",this.constructor.name,e)};X.prototype._check=u3.abstractFunction;X.prototype._copy=u3.abstractFunction;X.prototype._match=u3.abstractFunction;X.prototype._read=u3.abstractFunction;X.prototype._skip=u3.abstractFunction;X.prototype._updateResolver=u3.abstractFunction;X.prototype._write=u3.abstractFunction;X.prototype.compare=u3.abstractFunction;X.prototype.random=u3.abstractFunction;function j3(){X.call(this)}O3.inherits(j3,X);j3.prototype._updateResolver=function(e,n){n.constructor===this.constructor&&(e._read=this._read)};j3.prototype._copy=function(e){return this._check(e,_3),e};j3.prototype.compare=u3.compare;function $2(){j3.call(this)}O3.inherits($2,j3);$2.prototype._check=function(e,n){var r=e===null;return!r&&n&&n(c3.slice(),e,this),r};$2.prototype._read=function(){return null};$2.prototype._skip=function(){};$2.prototype._write=function(e,n){n!==null&&_3(null,n,this)};$2.prototype._match=function(){return 0};$2.prototype.compare=$2.prototype._match;$2.prototype.random=$2.prototype._read;$2.prototype.toJSON=function(){return"null"};function D4(){j3.call(this)}O3.inherits(D4,j3);D4.prototype._check=function(e,n){var r=typeof e=="boolean";return!r&&n&&n(c3.slice(),e,this),r};D4.prototype._read=function(e){return e.readBoolean()};D4.prototype._skip=function(e){e.skipBoolean()};D4.prototype._write=function(e,n){typeof n!="boolean"&&_3(null,n,this),e.writeBoolean(n)};D4.prototype._match=function(e,n){return e.matchBoolean(n)};D4.prototype.random=function(){return i2.nextBoolean()};D4.prototype.toJSON=function(){return"boolean"};function q2(){j3.call(this)}O3.inherits(q2,j3);q2.prototype._check=function(e,n){var r=e===(e|0);return!r&&n&&n(c3.slice(),e,this),r};q2.prototype._read=function(e){return e.readInt()};q2.prototype._skip=function(e){e.skipInt()};q2.prototype._write=function(e,n){n!==(n|0)&&_3(null,n,this),e.writeInt(n)};q2.prototype._match=function(e,n){return e.matchInt(n)};q2.prototype.random=function(){return i2.nextInt(1e3)|0};q2.prototype.toJSON=function(){return"int"};function Q3(){j3.call(this)}O3.inherits(Q3,j3);Q3.prototype._check=function(e,n){var r=typeof e=="number"&&e%1==0&&Xr(e);return!r&&n&&n(c3.slice(),e,this),r};Q3.prototype._read=function(e){var n=e.readLong();if(!Xr(n))throw new Error("potential precision loss");return n};Q3.prototype._skip=function(e){e.skipLong()};Q3.prototype._write=function(e,n){(typeof n!="number"||n%1||!Xr(n))&&_3(null,n,this),e.writeLong(n)};Q3.prototype._match=function(e,n){return e.matchLong(n)};Q3.prototype._updateResolver=function(e,n){(n instanceof Q3||n instanceof q2)&&(e._read=n._read)};Q3.prototype.random=function(){return i2.nextInt()};Q3.prototype.toJSON=function(){return"long"};Q3.using=function(e,n){e=e||{};var r={toBuffer:"_toBuffer",fromBuffer:"_fromBuffer",fromJSON:"_fromJSON",toJSON:"_toJSON",isValid:"_isValid",compare:"compare"},o=new A2(n);return Object.keys(r).forEach(function(i){if(e[i]===void 0)throw new Error(a3("missing method implementation: %s",i));o[r[i]]=e[i]}),o};function Y2(){j3.call(this)}O3.inherits(Y2,j3);Y2.prototype._check=function(e,n){var r=typeof e=="number";return!r&&n&&n(c3.slice(),e,this),r};Y2.prototype._read=function(e){return e.readFloat()};Y2.prototype._skip=function(e){e.skipFloat()};Y2.prototype._write=function(e,n){typeof n!="number"&&_3(null,n,this),e.writeFloat(n)};Y2.prototype._match=function(e,n){return e.matchFloat(n)};Y2.prototype._updateResolver=function(e,n){(n instanceof Y2||n instanceof Q3||n instanceof q2)&&(e._read=n._read)};Y2.prototype.random=function(){return i2.nextFloat(1e3)};Y2.prototype.toJSON=function(){return"float"};function a4(){j3.call(this)}O3.inherits(a4,j3);a4.prototype._check=function(e,n){var r=typeof e=="number";return!r&&n&&n(c3.slice(),e,this),r};a4.prototype._read=function(e){return e.readDouble()};a4.prototype._skip=function(e){e.skipDouble()};a4.prototype._write=function(e,n){typeof n!="number"&&_3(null,n,this),e.writeDouble(n)};a4.prototype._match=function(e,n){return e.matchDouble(n)};a4.prototype._updateResolver=function(e,n){(n instanceof a4||n instanceof Y2||n instanceof Q3||n instanceof q2)&&(e._read=n._read)};a4.prototype.random=function(){return i2.nextFloat()};a4.prototype.toJSON=function(){return"double"};function X2(){j3.call(this)}O3.inherits(X2,j3);X2.prototype._check=function(e,n){var r=typeof e=="string";return!r&&n&&n(c3.slice(),e,this),r};X2.prototype._read=function(e){return e.readString()};X2.prototype._skip=function(e){e.skipString()};X2.prototype._write=function(e,n){typeof n!="string"&&_3(null,n,this),e.writeString(n)};X2.prototype._match=function(e,n){return e.matchString(n)};X2.prototype._updateResolver=function(e,n){(n instanceof X2||n instanceof c2)&&(e._read=this._read)};X2.prototype.random=function(){return i2.nextString(i2.nextInt(32))};X2.prototype.toJSON=function(){return"string"};function c2(){j3.call(this)}O3.inherits(c2,j3);c2.prototype._check=function(e,n){var r=B.isBuffer(e);return!r&&n&&n(c3.slice(),e,this),r};c2.prototype._read=function(e){return e.readBytes()};c2.prototype._skip=function(e){e.skipBytes()};c2.prototype._write=function(e,n){B.isBuffer(n)||_3(null,n,this),e.writeBytes(n)};c2.prototype._match=function(e,n){return e.matchBytes(n)};c2.prototype._updateResolver=X2.prototype._updateResolver;c2.prototype._copy=function(e,n){var r;switch((n&&n.coerce)|0){case 3:return this._check(e,_3),e.toString("binary");case 2:if(typeof e!="string")throw new Error(a3("cannot coerce to buffer: %j",e));return r=new B(e,"binary"),this._check(r,_3),r;case 1:if(!e||e.type!=="Buffer"||!(e.data instanceof Array))throw new Error(a3("cannot coerce to buffer: %j",e));return r=new B(e.data),this._check(r,_3),r;default:return this._check(e,_3),new B(e)}};c2.prototype.compare=B.compare;c2.prototype.random=function(){return i2.nextBuffer(i2.nextInt(32))};c2.prototype.toJSON=function(){return"bytes"};function a2(e,n){if(!(e instanceof Array))throw new Error(a3("non-array union schema: %j",e));if(!e.length)throw new Error("empty union");n=r1(e,n),X.call(this),this._types=e.map(function(r){return n1(r,n)}),this._indices={},this._types.forEach(function(r,o){if(r instanceof a2)throw new Error("unions cannot be directly nested");var i=r._name||$r(r);if(this._indices[i]!==void 0)throw new Error(a3("duplicate union name: %j",i));this._indices[i]=o},this),this._constructors=this._types.map(function(r){var o=r._name||$r(r);if(o==="null")return null;var i;return~o.indexOf(".")?i="this['"+o+"'] = val;":i="this."+o+" = val;",new Function("val",i)})}O3.inherits(a2,X);a2.prototype._check=function(e,n){var r=!1;if(e===null)r=this._indices.null!==void 0;else if(typeof e=="object"){var o=Object.keys(e);if(o.length===1){var i=o[0],a=this._indices[i];if(a!==void 0)return c3.push(i),r=this._types[a]._check(e[i],n),c3.pop(),r}}return!r&&n&&n(c3.slice(),e,this),r};a2.prototype._read=function(e){var n=e.readLong(),r=this._constructors[n];if(r)return new r(this._types[n]._read(e));if(r===null)return null;throw new Error(a3("invalid union index: %s",n))};a2.prototype._skip=function(e){this._types[e.readLong()]._skip(e)};a2.prototype._write=function(e,n){var r,o,i;n===null?(r=this._indices.null,r===void 0&&_3(null,n,this),e.writeLong(r)):(o=Object.keys(n),o.length===1&&(i=o[0],r=this._indices[i]),r===void 0&&_3(null,n,this),e.writeLong(r),this._types[r]._write(e,n[i]))};a2.prototype._match=function(e,n){var r=e.readLong(),o=n.readLong();return r===o?this._types[r]._match(e,n):r{_();"use strict";var u3=xr(),fp=f9(),O3=Hr(),p5=u3.Tap,a3=O3.format,S8={array:j2,boolean:D4,bytes:c2,double:a4,enum:h2,error:B3,fixed:m2,float:Y2,int:q2,long:Q3,map:k2,null:$2,record:B3,request:B3,string:X2,union:a2},Vr=/^[A-Za-z_][A-Za-z0-9_]*$/,i2=new u3.Lcg,v4=new p5(new fp.SlowBuffer(1024)),c3=[],e9=null;function n1(e,n){if(e instanceof X)return e;n=r1(e,n);var r;if(typeof e=="string"){if(n.namespace&&!~e.indexOf(".")&&!qr(e)&&(e=n.namespace+"."+e),r=n.registry[e],r)return r;if(qr(e))return r=n.registry[e]=n1({type:e},n),r;throw new Error(a3("undefined type name: %s",e))}if(n.typeHook&&(r=n.typeHook(e,n))){if(!(r instanceof X))throw new Error(a3("invalid typehook return value: %j",r));return r}if(e.logicalType&&!e9){var o=n.logicalTypes[e.logicalType];if(o){var i={};Object.keys(n.registry).forEach(function(a){i[a]=n.registry[a]});try{return new o(e,n)}catch(a){if(n.assertLogicalTypes)throw a;e9=null,n.registry=i}}}return e instanceof Array?r=new a2(e,n):r=function(a){var l=S8[a];if(l===void 0)throw new Error(a3("unknown type: %j",a));return new l(e,n)}(e.type),r}function X(e){var n=this._name,r=e9||this;if(e9=null,!(e===void 0||n===void 0)){var o=e[n];if(o!==void 0)throw new Error(a3("duplicate type name: %s",n));e[n]=r}}X.__reset=function(e){v4.buf=new fp.SlowBuffer(e)};X.prototype.createResolver=function(e,n){if(!(e instanceof X))throw new Error(a3("not a type: %j",e));if(e instanceof l2&&!(this instanceof l2))return this.createResolver(e._underlyingType,n);n=n||{},n.registry=n.registry||{};var r,o;if(this instanceof B3&&e instanceof B3&&(o=this._name+":"+e._name,r=n.registry[o],r))return r;if(r=new dp(this),o&&(n.registry[o]=r),e instanceof a2){var i=e._types.map(function(a){return this.createResolver(a,n)},this);r._read=function(a){var l=a.readLong(),s=i[l];if(s===void 0)throw new Error(a3("invalid union index: %s",l));return i[l]._read(a)}}else this._updateResolver(r,e,n);if(!r._read)throw new Error(a3("cannot read %s as %s",e,this));return r};X.prototype.decode=function(e,n,r){var o=new p5(e);o.pos=n|0;var i=pp(this,o,r);return o.isValid()?{value:i,offset:o.pos}:{value:void 0,offset:-1}};X.prototype.encode=function(e,n,r){var o=new p5(n);return o.pos=r|0,this._write(o,e),o.isValid()?o.pos:n.length-o.pos};X.prototype.fromBuffer=function(e,n,r){var o=new p5(e),i=pp(this,o,n,r);if(!o.isValid())throw new Error("truncated buffer");if(!r&&o.pos",this.constructor.name);var e=JSON.parse(this.getSchema(!0));return typeof e=="object"&&(e.type=void 0),a3("<%s %j>",this.constructor.name,e)};X.prototype._check=u3.abstractFunction;X.prototype._copy=u3.abstractFunction;X.prototype._match=u3.abstractFunction;X.prototype._read=u3.abstractFunction;X.prototype._skip=u3.abstractFunction;X.prototype._updateResolver=u3.abstractFunction;X.prototype._write=u3.abstractFunction;X.prototype.compare=u3.abstractFunction;X.prototype.random=u3.abstractFunction;function w3(){X.call(this)}O3.inherits(w3,X);w3.prototype._updateResolver=function(e,n){n.constructor===this.constructor&&(e._read=this._read)};w3.prototype._copy=function(e){return this._check(e,N3),e};w3.prototype.compare=u3.compare;function $2(){w3.call(this)}O3.inherits($2,w3);$2.prototype._check=function(e,n){var r=e===null;return!r&&n&&n(c3.slice(),e,this),r};$2.prototype._read=function(){return null};$2.prototype._skip=function(){};$2.prototype._write=function(e,n){n!==null&&N3(null,n,this)};$2.prototype._match=function(){return 0};$2.prototype.compare=$2.prototype._match;$2.prototype.random=$2.prototype._read;$2.prototype.toJSON=function(){return"null"};function D4(){w3.call(this)}O3.inherits(D4,w3);D4.prototype._check=function(e,n){var r=typeof e=="boolean";return!r&&n&&n(c3.slice(),e,this),r};D4.prototype._read=function(e){return e.readBoolean()};D4.prototype._skip=function(e){e.skipBoolean()};D4.prototype._write=function(e,n){typeof n!="boolean"&&N3(null,n,this),e.writeBoolean(n)};D4.prototype._match=function(e,n){return e.matchBoolean(n)};D4.prototype.random=function(){return i2.nextBoolean()};D4.prototype.toJSON=function(){return"boolean"};function q2(){w3.call(this)}O3.inherits(q2,w3);q2.prototype._check=function(e,n){var r=e===(e|0);return!r&&n&&n(c3.slice(),e,this),r};q2.prototype._read=function(e){return e.readInt()};q2.prototype._skip=function(e){e.skipInt()};q2.prototype._write=function(e,n){n!==(n|0)&&N3(null,n,this),e.writeInt(n)};q2.prototype._match=function(e,n){return e.matchInt(n)};q2.prototype.random=function(){return i2.nextInt(1e3)|0};q2.prototype.toJSON=function(){return"int"};function Q3(){w3.call(this)}O3.inherits(Q3,w3);Q3.prototype._check=function(e,n){var r=typeof e=="number"&&e%1==0&&Xr(e);return!r&&n&&n(c3.slice(),e,this),r};Q3.prototype._read=function(e){var n=e.readLong();if(!Xr(n))throw new Error("potential precision loss");return n};Q3.prototype._skip=function(e){e.skipLong()};Q3.prototype._write=function(e,n){(typeof n!="number"||n%1||!Xr(n))&&N3(null,n,this),e.writeLong(n)};Q3.prototype._match=function(e,n){return e.matchLong(n)};Q3.prototype._updateResolver=function(e,n){(n instanceof Q3||n instanceof q2)&&(e._read=n._read)};Q3.prototype.random=function(){return i2.nextInt()};Q3.prototype.toJSON=function(){return"long"};Q3.using=function(e,n){e=e||{};var r={toBuffer:"_toBuffer",fromBuffer:"_fromBuffer",fromJSON:"_fromJSON",toJSON:"_toJSON",isValid:"_isValid",compare:"compare"},o=new A2(n);return Object.keys(r).forEach(function(i){if(e[i]===void 0)throw new Error(a3("missing method implementation: %s",i));o[r[i]]=e[i]}),o};function Y2(){w3.call(this)}O3.inherits(Y2,w3);Y2.prototype._check=function(e,n){var r=typeof e=="number";return!r&&n&&n(c3.slice(),e,this),r};Y2.prototype._read=function(e){return e.readFloat()};Y2.prototype._skip=function(e){e.skipFloat()};Y2.prototype._write=function(e,n){typeof n!="number"&&N3(null,n,this),e.writeFloat(n)};Y2.prototype._match=function(e,n){return e.matchFloat(n)};Y2.prototype._updateResolver=function(e,n){(n instanceof Y2||n instanceof Q3||n instanceof q2)&&(e._read=n._read)};Y2.prototype.random=function(){return i2.nextFloat(1e3)};Y2.prototype.toJSON=function(){return"float"};function a4(){w3.call(this)}O3.inherits(a4,w3);a4.prototype._check=function(e,n){var r=typeof e=="number";return!r&&n&&n(c3.slice(),e,this),r};a4.prototype._read=function(e){return e.readDouble()};a4.prototype._skip=function(e){e.skipDouble()};a4.prototype._write=function(e,n){typeof n!="number"&&N3(null,n,this),e.writeDouble(n)};a4.prototype._match=function(e,n){return e.matchDouble(n)};a4.prototype._updateResolver=function(e,n){(n instanceof a4||n instanceof Y2||n instanceof Q3||n instanceof q2)&&(e._read=n._read)};a4.prototype.random=function(){return i2.nextFloat()};a4.prototype.toJSON=function(){return"double"};function X2(){w3.call(this)}O3.inherits(X2,w3);X2.prototype._check=function(e,n){var r=typeof e=="string";return!r&&n&&n(c3.slice(),e,this),r};X2.prototype._read=function(e){return e.readString()};X2.prototype._skip=function(e){e.skipString()};X2.prototype._write=function(e,n){typeof n!="string"&&N3(null,n,this),e.writeString(n)};X2.prototype._match=function(e,n){return e.matchString(n)};X2.prototype._updateResolver=function(e,n){(n instanceof X2||n instanceof c2)&&(e._read=this._read)};X2.prototype.random=function(){return i2.nextString(i2.nextInt(32))};X2.prototype.toJSON=function(){return"string"};function c2(){w3.call(this)}O3.inherits(c2,w3);c2.prototype._check=function(e,n){var r=B.isBuffer(e);return!r&&n&&n(c3.slice(),e,this),r};c2.prototype._read=function(e){return e.readBytes()};c2.prototype._skip=function(e){e.skipBytes()};c2.prototype._write=function(e,n){B.isBuffer(n)||N3(null,n,this),e.writeBytes(n)};c2.prototype._match=function(e,n){return e.matchBytes(n)};c2.prototype._updateResolver=X2.prototype._updateResolver;c2.prototype._copy=function(e,n){var r;switch((n&&n.coerce)|0){case 3:return this._check(e,N3),e.toString("binary");case 2:if(typeof e!="string")throw new Error(a3("cannot coerce to buffer: %j",e));return r=new B(e,"binary"),this._check(r,N3),r;case 1:if(!e||e.type!=="Buffer"||!(e.data instanceof Array))throw new Error(a3("cannot coerce to buffer: %j",e));return r=new B(e.data),this._check(r,N3),r;default:return this._check(e,N3),new B(e)}};c2.prototype.compare=B.compare;c2.prototype.random=function(){return i2.nextBuffer(i2.nextInt(32))};c2.prototype.toJSON=function(){return"bytes"};function a2(e,n){if(!(e instanceof Array))throw new Error(a3("non-array union schema: %j",e));if(!e.length)throw new Error("empty union");n=r1(e,n),X.call(this),this._types=e.map(function(r){return n1(r,n)}),this._indices={},this._types.forEach(function(r,o){if(r instanceof a2)throw new Error("unions cannot be directly nested");var i=r._name||$r(r);if(this._indices[i]!==void 0)throw new Error(a3("duplicate union name: %j",i));this._indices[i]=o},this),this._constructors=this._types.map(function(r){var o=r._name||$r(r);if(o==="null")return null;var i;return~o.indexOf(".")?i="this['"+o+"'] = val;":i="this."+o+" = val;",new Function("val",i)})}O3.inherits(a2,X);a2.prototype._check=function(e,n){var r=!1;if(e===null)r=this._indices.null!==void 0;else if(typeof e=="object"){var o=Object.keys(e);if(o.length===1){var i=o[0],a=this._indices[i];if(a!==void 0)return c3.push(i),r=this._types[a]._check(e[i],n),c3.pop(),r}}return!r&&n&&n(c3.slice(),e,this),r};a2.prototype._read=function(e){var n=e.readLong(),r=this._constructors[n];if(r)return new r(this._types[n]._read(e));if(r===null)return null;throw new Error(a3("invalid union index: %s",n))};a2.prototype._skip=function(e){this._types[e.readLong()]._skip(e)};a2.prototype._write=function(e,n){var r,o,i;n===null?(r=this._indices.null,r===void 0&&N3(null,n,this),e.writeLong(r)):(o=Object.keys(n),o.length===1&&(i=o[0],r=this._indices[i]),r===void 0&&N3(null,n,this),e.writeLong(r),this._types[r]._write(e,n[i]))};a2.prototype._match=function(e,n){var r=e.readLong(),o=n.readLong();return r===o?this._types[r]._match(e,n):r component higher in the tree to provide a loading
`):(k.push("t"+C),m.push(s[c].resolver),y+="var "+s[c].name+" = ",y+="t"+C+`._read(tap);
`);~w&&(y+=` }
`),y+=" return new "+N+"("+l.join()+`);
-};`,e._read=new Function(k.join(),y).apply(void 0,m)};B3.prototype._match=function(e,n){var r=this._fields,o,i,a,l,s;for(o=0,i=r.length;o",this._name)};function dp(e){this._readerType=e,this._items=null,this._read=null,this._size=0,this._symbols=null,this._values=null}dp.prototype.inspect=function(){return""};function pp(e,n,r,o){if(r){if(r._readerType!==e)throw new Error("invalid resolver");return r._read(n,o)}else return e._read(n)}function r1(e,n){if(e===null)throw new Error('invalid type: null (did you mean "null"?)');return n=n||{},n.registry=n.registry||{},n.namespace=e.namespace||n.namespace,n.logicalTypes=n.logicalTypes||{},n}function E8(e,n,r){n=e.namespace||n,r=r||"name";var o=e[r];if(!o)throw new Error(a3("missing %s property in schema: %j",r,e));return{name:i(o),aliases:e.aliases?e.aliases.map(i):[]};function i(a){!~a.indexOf(".")&&n&&(a=n+"."+a);var l=M0(a);if(qr(l))throw new Error(a3("cannot rename primitive type: %j",l));return a.split(".").forEach(function(s){if(!Vr.test(s))throw new Error(a3("invalid name: %j",a))}),a}}function M0(e){var n=e.split(".");return n[n.length-1]}function R8(e){var n=[e._name],r=e._aliases,o,i;for(o=0,i=r.length;o=-9007199254740990&&e<=9007199254740990}function _3(e,n,r){throw new Error(a3("invalid %s: %j",r,n))}cp.exports={createType:n1,resolveNames:E8,stringify:up,types:function(){var e={Type:X,LogicalType:l2},n=Object.keys(S8),r,o,i;for(r=0,o=n.length;r{_();(function(e,n){typeof Jr=="object"&&typeof Qr!="undefined"?Qr.exports=n():typeof define=="function"&&define.amd?define("underscore",n):(e=typeof globalThis!="undefined"?globalThis:e||self,function(){var r=e._,o=e._=n();o.noConflict=function(){return e._=r,o}}())})(Jr,function(){var e="1.13.1",n=typeof self=="object"&&self.self===self&&self||typeof window=="object"&&window.global===window&&window||Function("return this")()||{},r=Array.prototype,o=Object.prototype,i=typeof Symbol!="undefined"?Symbol.prototype:null,a=r.push,l=r.slice,s=o.toString,C=o.hasOwnProperty,d=typeof ArrayBuffer!="undefined",p=typeof DataView!="undefined",c=Array.isArray,h=Object.keys,g=Object.create,w=d&&ArrayBuffer.isView,N=isNaN,k=isFinite,m=!{toString:null}.propertyIsEnumerable("toString"),y=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],x=Math.pow(2,53)-1;function M(f,u){return u=u==null?f.length-1:+u,function(){for(var v=Math.max(arguments.length-u,0),L=Array(v),j=0;j=0&&v<=x}}function uo(f){return function(u){return u==null?void 0:u[f]}}var r9=uo("byteLength"),Kp=po(r9),eu=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function tu(f){return w?w(f)&&!n9(f):Kp(f)&&eu.test(s.call(f))}var co=d?tu:fo(!1),y2=uo("length");function nu(f){for(var u={},v=f.length,L=0;L":">",'"':""","'":"'","`":"`"},gu=Ro(Ao),xu=Lo(Ao),Mu=Ro(xu),vu=d3.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Y8=/(.)^/,Lu={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Nu=/\\|'|\r|\n|\u2028|\u2029/g;function _u(f){return"\\"+Lu[f]}var bu=/^\s*(\w|\$)+\s*$/;function wu(f,u,v){!u&&v&&(u=v),u=_o({},u,d3.templateSettings);var L=RegExp([(u.escape||Y8).source,(u.interpolate||Y8).source,(u.evaluate||Y8).source].join("|")+"|$","g"),j=0,b="__p+='";f.replace(L,function(q,U3,C2,ei,ti){return b+=f.slice(j,ti).replace(Nu,_u),j=ti+q.length,U3?b+=`'+
+};`,e._read=new Function(k.join(),y).apply(void 0,m)};B3.prototype._match=function(e,n){var r=this._fields,o,i,a,l,s;for(o=0,i=r.length;o",this._name)};function dp(e){this._readerType=e,this._items=null,this._read=null,this._size=0,this._symbols=null,this._values=null}dp.prototype.inspect=function(){return""};function pp(e,n,r,o){if(r){if(r._readerType!==e)throw new Error("invalid resolver");return r._read(n,o)}else return e._read(n)}function r1(e,n){if(e===null)throw new Error('invalid type: null (did you mean "null"?)');return n=n||{},n.registry=n.registry||{},n.namespace=e.namespace||n.namespace,n.logicalTypes=n.logicalTypes||{},n}function E8(e,n,r){n=e.namespace||n,r=r||"name";var o=e[r];if(!o)throw new Error(a3("missing %s property in schema: %j",r,e));return{name:i(o),aliases:e.aliases?e.aliases.map(i):[]};function i(a){!~a.indexOf(".")&&n&&(a=n+"."+a);var l=M0(a);if(qr(l))throw new Error(a3("cannot rename primitive type: %j",l));return a.split(".").forEach(function(s){if(!Vr.test(s))throw new Error(a3("invalid name: %j",a))}),a}}function M0(e){var n=e.split(".");return n[n.length-1]}function R8(e){var n=[e._name],r=e._aliases,o,i;for(o=0,i=r.length;o=-9007199254740990&&e<=9007199254740990}function N3(e,n,r){throw new Error(a3("invalid %s: %j",r,n))}cp.exports={createType:n1,resolveNames:E8,stringify:up,types:function(){var e={Type:X,LogicalType:l2},n=Object.keys(S8),r,o,i;for(r=0,o=n.length;r{_();(function(e,n){typeof Jr=="object"&&typeof Qr!="undefined"?Qr.exports=n():typeof define=="function"&&define.amd?define("underscore",n):(e=typeof globalThis!="undefined"?globalThis:e||self,function(){var r=e._,o=e._=n();o.noConflict=function(){return e._=r,o}}())})(Jr,function(){var e="1.13.1",n=typeof self=="object"&&self.self===self&&self||typeof window=="object"&&window.global===window&&window||Function("return this")()||{},r=Array.prototype,o=Object.prototype,i=typeof Symbol!="undefined"?Symbol.prototype:null,a=r.push,l=r.slice,s=o.toString,C=o.hasOwnProperty,d=typeof ArrayBuffer!="undefined",p=typeof DataView!="undefined",c=Array.isArray,h=Object.keys,g=Object.create,w=d&&ArrayBuffer.isView,N=isNaN,k=isFinite,m=!{toString:null}.propertyIsEnumerable("toString"),y=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],x=Math.pow(2,53)-1;function M(f,u){return u=u==null?f.length-1:+u,function(){for(var v=Math.max(arguments.length-u,0),L=Array(v),j=0;j=0&&v<=x}}function uo(f){return function(u){return u==null?void 0:u[f]}}var r9=uo("byteLength"),Kp=po(r9),eu=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function tu(f){return w?w(f)&&!n9(f):Kp(f)&&eu.test(s.call(f))}var co=d?tu:fo(!1),y2=uo("length");function nu(f){for(var u={},v=f.length,L=0;L":">",'"':""","'":"'","`":"`"},gu=Ro(Ao),xu=Lo(Ao),Mu=Ro(xu),vu=d3.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Y8=/(.)^/,Lu={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Nu=/\\|'|\r|\n|\u2028|\u2029/g;function _u(f){return"\\"+Lu[f]}var bu=/^\s*(\w|\$)+\s*$/;function wu(f,u,v){!u&&v&&(u=v),u=_o({},u,d3.templateSettings);var L=RegExp([(u.escape||Y8).source,(u.interpolate||Y8).source,(u.evaluate||Y8).source].join("|")+"|$","g"),j=0,b="__p+='";f.replace(L,function(q,U3,C2,ei,ti){return b+=f.slice(j,ti).replace(Nu,_u),j=ti+q.length,U3?b+=`'+
((__t=(`+U3+`))==null?'':_.escape(__t))+
'`:C2?b+=`'+
((__t=(`+C2+`))==null?'':__t)+
@@ -68,11 +68,11 @@ __p+='`),q}),b+=`';
`,Z="obj";b=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
`+b+`return __p;
`;var O;try{O=new Function(Z,"_",b)}catch(q){throw q.source=b,q}var Q=function(q){return O.call(this,q,d3)};return Q.source="function("+Z+`){
-`+b+"}",Q}function ju(f,u,v){u=m5(u);var L=u.length;if(!L)return s2(v)?v.call(f):v;for(var j=0;j1)_0(O,u-1,v,L),j=L.length;else for(var Q=0,q=O.length;Qu?(L&&(clearTimeout(L),L=null),O=U3,Z=f.apply(j,b),L||(j=b=null)):!L&&v.trailing!==!1&&(L=setTimeout(Q,C2)),Z};return q.cancel=function(){clearTimeout(L),O=0,L=j=b=null},q}function Bu(f,u,v){var L,j,b,Z,O,Q=function(){var U3=g5()-j;u>U3?L=setTimeout(Q,u-U3):(L=null,v||(Z=f.apply(O,b)),L||(b=O=null))},q=M(function(U3){return O=this,b=U3,j=g5(),L||(L=setTimeout(Q,u),v&&(Z=f.apply(O,b))),Z});return q.cancel=function(){clearTimeout(L),L=b=O=null},q}function Tu(f,u){return a1(u,f)}function X8(f){return function(){return!f.apply(this,arguments)}}function Du(){var f=arguments,u=f.length-1;return function(){for(var v=u,L=f[u].apply(this,arguments);v--;)L=f[v].call(this,L);return L}}function Pu(f,u){return function(){if(--f<1)return u.apply(this,arguments)}}function To(f,u){var v;return function(){return--f>0&&(v=u.apply(this,arguments)),f<=1&&(u=null),v}}var Iu=a1(To,2);function Do(f,u,v){u=g2(u,v);for(var L=z3(f),j,b=0,Z=L.length;b0?0:j-1;b>=0&&b0?Z=b>=0?b:Math.max(b+O,Z):O=b>=0?Math.min(b+1,O):b+O+1;else if(v&&b&&O)return b=v(L,j),L[b]===j?b:-1;if(j!==j)return b=u(l.call(L,Z,O),Co),b>=0?b+Z:-1;for(b=f>0?Z:O-1;b>=0&&b0?0:O-1;for(b||(j=v[Z?Z[Q]:Q],Q+=f);Q>=0&&Q=3;return u(v,y5(L,b,4),j,Z)}}var K8=Go(1),Ho=Go(-1);function l1(f,u,v){var L=[];return u=g2(u,v),N4(f,function(j,b,Z){u(j,b,Z)&&L.push(j)}),L}function Uu(f,u,v){return l1(f,X8(g2(u)),v)}function Vo(f,u,v){u=g2(u,v);for(var L=!x2(f)&&z3(f),j=(L||f).length,b=0;b=0}var Gu=M(function(f,u,v){var L,j;return s2(u)?j=u:(u=m5(u),L=u.slice(0,-1),u=u[u.length-1]),b0(f,function(b){var Z=j;if(!Z){if(L&&L.length&&(b=G8(b,L)),b==null)return;Z=b[u]}return Z==null?Z:Z.apply(b,v)})});function ee(f,u){return b0(f,V8(u))}function Hu(f,u){return l1(f,k5(u))}function qo(f,u,v){var L=-1/0,j=-1/0,b,Z;if(u==null||typeof u=="number"&&typeof f[0]!="object"&&f!=null){f=x2(f)?f:N0(f);for(var O=0,Q=f.length;OL&&(L=b)}else u=g2(u,v),N4(f,function(q,U3,C2){Z=u(q,U3,C2),(Z>j||Z===-1/0&&L===-1/0)&&(L=q,j=Z)});return L}function Vu(f,u,v){var L=1/0,j=1/0,b,Z;if(u==null||typeof u=="number"&&typeof f[0]!="object"&&f!=null){f=x2(f)?f:N0(f);for(var O=0,Q=f.length;OO||Z===void 0)return 1;if(Z1&&(L=y5(L,u[1])),u=h5(f)):(L=nc,u=_0(u,!1,!1),f=Object(f));for(var j=0,b=u.length;j1&&(L=u[1])):(u=b0(_0(u,!1,!1),String),v=function(j,b){return!_4(u,b)}),Xo(f,v,L)});function Jo(f,u,v){return l.call(f,0,Math.max(0,f.length-(u==null||v?1:u)))}function te(f,u,v){return f==null||f.length<1?u==null||v?void 0:[]:u==null||v?f[0]:Jo(f,f.length-u)}function a9(f,u,v){return l.call(f,u==null||v?1:u)}function oc(f,u,v){return f==null||f.length<1?u==null||v?void 0:[]:u==null||v?f[f.length-1]:a9(f,Math.max(0,f.length-u))}function ic(f){return l1(f,Boolean)}function ac(f,u){return _0(f,u,!1)}var Qo=M(function(f,u){return u=_0(u,!0,!0),l1(f,function(v){return!_4(u,v)})}),lc=M(function(f,u){return Qo(f,u)});function ne(f,u,v,L){F(u)||(L=v,v=u,u=!1),v!=null&&(v=g2(v,L));for(var j=[],b=[],Z=0,O=y2(f);Z{_();var z=mp(),kp=Hr(),yp="Validator API is deprecated. Please use the type API instead.";u5=kp.deprecate(u5,yp);t9=kp.deprecate(t9,yp);var v0={PrimitiveTypes:["null","boolean","int","long","float","double","bytes","string"],ComplexTypes:["record","enum","array","map","union","fixed"]};v0.Types=v0.PrimitiveTypes.concat(v0.ComplexTypes);var M3=function(e){return new Error("InvalidSchemaError: "+e)},MM=function(e){return new Error("InvalidProtocolError: "+e)},T3=function(e){return new Error("ValidationError: "+e)},vM=function(e){return new Error("ProtocolValidationError: "+e)};function gp(e,n,r){function o(i,a,l){if(!z.isString(i))throw new M3("Record name must be string");if(!z.isNull(a)&&!z.isUndefined(a)&&!z.isString(a))throw new M3("Record namespace must be string or null");if(!z.isArray(l))throw new M3("Record name must be string")}o(e,n,r),this.name=e,this.namespace=n,this.fields=r}function o1(e,n){var r=null;if(z.isString(e))r=e;else if(z.isObject(e))z.isString(e.namespace)&&(n=e.namespace),z.isString(e.name)?r=e.name:z.isString(e.type)&&(r=e.type);else throw new M3("unable to determine fully qualified type name from schema "+JSON.stringify(e)+" in namespace "+n);if(!z.isString(r))throw new M3("unable to determine type name from schema "+JSON.stringify(e)+" in namespace "+n);return r.indexOf(".")!==-1||z.contains(v0.PrimitiveTypes,r)?r:z.isString(n)?n+"."+r:r}function xp(e,n){this.branchNames=function(){return z.map(e,function(o){return o1(o,n)})};function r(o){if(!z.isArray(o)||z.isEmpty(o))throw new M3("Union must have at least 1 branch")}r(e),this.typeSchemas=e,this.namespace=n}function Mp(e){function n(r){if(!z.isArray(r))throw new M3("Enum must have array of symbols, got "+JSON.stringify(r));if(!z.all(r,function(o){return z.isString(o)}))throw new M3("Enum symbols must be strings, got "+JSON.stringify(r))}n(e),this.symbols=e}function vp(e){function n(r){if(z.isNull(r)||z.isUndefined(r))throw new M3('Array "items" schema should not be null or undefined')}n(e),this.itemSchema=e}function Lp(e){function n(r){if(z.isNull(r)||z.isUndefined(r))throw new M3('Map "values" schema should not be null or undefined')}n(e),this.valueSchema=e}function LM(e,n){function r(o,i){if(!z.isString(o))throw new M3("Field name must be string")}this.name=e,this.schema=n}function Np(e){function n(r){if(!z.isString(r))throw new M3("Primitive type name must be a string");if(!z.contains(v0.PrimitiveTypes,r))throw new M3("Primitive type must be one of: "+JSON.stringify(v0.PrimitiveTypes)+"; got "+r)}n(e),this.type=e}function u5(e,n,r){this.validate=function(N){return o(this.schema,N)};var o=function(N,k){if(N instanceof gp)return i(N,k);if(N instanceof xp)return a(N,k);if(N instanceof Mp)return l(N,k);if(N instanceof vp)return s(N,k);if(N instanceof Lp)return C(N,k);if(N instanceof Np)return d(N,k);throw new M3("validation not yet implemented: "+JSON.stringify(N))},i=function(N,k){if(!z.isObject(k)||z.isArray(k))throw new T3("Expected record Javascript type to be non-array object, got "+JSON.stringify(k));var m=z.pluck(N.fields,"name").sort(),y=z.keys(k).sort();if(!z.isEqual(m,y))throw new T3("Expected record fields "+JSON.stringify(m)+"; got "+JSON.stringify(y));return z.all(N.fields,function(x){return o(x.schema,k[x.name])})},a=function(N,k){if(z.isObject(k)){if(z.isArray(k))throw new T3("Expected union Javascript type to be non-array object (or null), got "+JSON.stringify(k));if(z.size(k)!==1)throw new T3("Expected union Javascript object to be object with exactly 1 key (or null), got "+JSON.stringify(k));var m=z.keys(k)[0];if(m==="")throw new T3("Expected union Javascript object to contain non-empty string branch, got "+JSON.stringify(k));if(z.contains(N.branchNames(),m))return!0;throw new T3("Expected union branch to be one of "+JSON.stringify(N.branchNames())+"; got "+JSON.stringify(m))}else if(z.isNull(k)){if(z.contains(N.branchNames(),"null"))return!0;throw new T3("Expected union branch to be one of "+JSON.stringify(N.branchNames())+"; got "+JSON.stringify(k))}else throw new T3("Expected union Javascript object to be non-array object of size 1 or null, got "+JSON.stringify(k))},l=function(N,k){if(z.isString(k)){if(z.contains(N.symbols,k))return!0;throw new T3("Expected enum value to be one of "+JSON.stringify(N.symbols)+"; got "+JSON.stringify(k))}else throw new T3("Expected enum Javascript object to be string, got "+JSON.stringify(k))},s=function(N,k){if(z.isArray(k))return z.all(k,function(m){return o(N.itemSchema,m)});throw new T3("Expected array Javascript object to be array, got "+JSON.stringify(k))},C=function(N,k){if(z.isObject(k)&&!z.isArray(k))return z.all(k,function(m){return o(N.valueSchema,m)});throw z.isArray(k)?new T3("Expected map Javascript object to be non-array object, got array "+JSON.stringify(k)):new T3("Expected map Javascript object to be non-array object, got "+JSON.stringify(k))},d=function(N,k){switch(N.type){case"null":if(z.isNull(k)||z.isUndefined(k))return!0;throw new T3("Expected Javascript null or undefined for Avro null, got "+JSON.stringify(k));case"boolean":if(z.isBoolean(k))return!0;throw new T3("Expected Javascript boolean for Avro boolean, got "+JSON.stringify(k));case"int":if(z.isNumber(k)&&Math.floor(k)===k&&Math.abs(k)<=Math.pow(2,31))return!0;throw new T3("Expected Javascript int32 number for Avro int, got "+JSON.stringify(k));case"long":if(z.isNumber(k)&&Math.floor(k)===k&&Math.abs(k)<=Math.pow(2,63))return!0;throw new T3("Expected Javascript int64 number for Avro long, got "+JSON.stringify(k));case"float":if(z.isNumber(k))return!0;throw new T3("Expected Javascript float number for Avro float, got "+JSON.stringify(k));case"double":if(z.isNumber(k))return!0;throw new T3("Expected Javascript double number for Avro double, got "+JSON.stringify(k));case"bytes":throw new M3("not yet implemented: "+N.type);case"string":if(z.isString(k))return!0;throw new T3("Expected Javascript string for Avro string, got "+JSON.stringify(k));default:throw new M3("unrecognized primitive type: "+N.type)}},p=r||{},c=function(N,k){if(z.has(p,N)){if(!z.isEqual(p[N],k))throw new M3("conflicting definitions for type "+N+": "+JSON.stringify(p[N])+" and "+JSON.stringify(k))}else p[N]=k},h=function(N){return z.has(p,N)?p[N]:null},g=function(N,k){if(z.contains(v0.PrimitiveTypes,N))return new Np(N);if(z.isNull(h(o1(N,k))))throw new M3("unknown type name: "+JSON.stringify(N)+"; known type names are "+JSON.stringify(z.keys(p)));return h(o1(N,k))},w=function(N,k,m){if(z.isNull(N)||z.isUndefined(N))throw new M3("schema is null, in parentSchema: "+JSON.stringify(k));if(z.isString(N))return g(N,m);if(z.isObject(N)&&!z.isArray(N))if(N.type==="record"){var y=new gp(N.name,N.namespace,z.map(N.fields,function(W){return new LM(W.name,w(W.type,N,N.namespace||m))}));return c(o1(N,m),y),y}else if(N.type==="enum")if(z.has(N,"symbols")){var x=new Mp(N.symbols);return c(o1(N,m),x),x}else throw new M3("enum must specify symbols, got "+JSON.stringify(N));else if(N.type==="array"){if(z.has(N,"items"))return new vp(w(N.items,N,m));throw new M3('array must specify "items" schema, got '+JSON.stringify(N))}else if(N.type==="map"){if(z.has(N,"values"))return new Lp(w(N.values,N,m));throw new M3('map must specify "values" schema, got '+JSON.stringify(N))}else{if(z.has(N,"type")&&z.contains(v0.PrimitiveTypes,N.type))return g(N.type,m);throw new M3("not yet implemented: "+N.type)}else if(z.isArray(N)){if(z.isEmpty(N))throw new M3("unions must have at least 1 branch");var M=z.map(N,function(W){return w(W,N,m)});return new xp(M,m)}else throw new M3("unexpected Javascript type for schema: "+typeof N)};this.rawSchema=e,this.schema=w(e,null,n)}u5.validate=function(e,n){return new u5(e).validate(n)};function t9(e){this.validate=function(o,i){var a=o1(o,e.namespace);if(!z.has(n,a))throw new vM("Protocol does not contain definition for type "+JSON.stringify(a)+' (fully qualified from input "'+o+'"); known types are '+JSON.stringify(z.keys(n)));return n[a].validate(i)};var n={},r=function(o){var i={};if(!z.has(o,"protocol")||!z.isString(o.protocol))throw new MM('Protocol must contain a "protocol" attribute with a string value');z.isArray(o.types)&&z.each(o.types,function(a){var l=new u5(a,o.namespace,i),s=o1(a,o.namespace);n[s]=l})};r(e)}t9.validate=function(e,n,r){return new t9(e).validate(n,r)};typeof A8!="undefined"&&(A8.Validator=u5,A8.ProtocolValidator=t9)});var Wp=$((eb,jp)=>{_();"use strict";var Kr=xr().Tap,bp=hp(),wp=_p();function NM(e,n){var r;if(typeof e=="string")try{r=JSON.parse(e)}catch(o){}return r===void 0&&(r=e),bp.createType(r,n)}Kr.prototype.readString=function(){var e=this.readLong(),n=this.pos,r=this.buf;if(this.pos+=e,!(this.pos>r.length))return this.buf.slice(n,n+e).toString()};Kr.prototype.writeString=function(e){var n=B.byteLength(e);this.writeLong(n);var r=this.pos;this.pos+=n,!(this.pos>this.buf.length)&&this.buf.write(e,r)};Kr.prototype.writeBinary=function(e,n){var r=this.pos;this.pos+=n,!(this.pos>this.buf.length)&&this.buf.write(e,r,n,"binary")};jp.exports={parse:NM,types:bp.types,Validator:wp.Validator,ProtocolValidator:wp.ProtocolValidator}});_();var l4=J(C3()),Hp=J(Ds());_();var x3=J(C3());_();var g3=J(Vs()),Ks=J(Xs()),eC=J(Qs()),$1=J(C3()),tC=J(M5()),U0={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},K={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},dv=Object.keys(K).map(function(e){return K[e]}),N3={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},_7={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},M6={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},yk=Object.keys(_7).reduce(function(e,n){return e[_7[n]]=n,e},{}),gk=[K.NOSCRIPT,K.SCRIPT,K.STYLE],e4="data-react-helmet",xk=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mk=function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")},vk=function(){function e(n,r){for(var o=0;o=0||!Object.prototype.hasOwnProperty.call(e,o)||(r[o]=e[o]);return r},Nk=function(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:e},Zn=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r===!1?String(n):String(n).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},_k=function(n){var r=q1(n,K.TITLE),o=q1(n,M6.TITLE_TEMPLATE);if(o&&r)return o.replace(/%s/g,function(){return Array.isArray(r)?r.join(""):r});var i=q1(n,M6.DEFAULT_TITLE);return r||i||void 0},bk=function(n){return q1(n,M6.ON_CHANGE_CLIENT_STATE)||function(){}},Fn=function(n,r){return r.filter(function(o){return typeof o[n]!="undefined"}).map(function(o){return o[n]}).reduce(function(o,i){return b2({},o,i)},{})},wk=function(n,r){return r.filter(function(o){return typeof o[K.BASE]!="undefined"}).map(function(o){return o[K.BASE]}).reverse().reduce(function(o,i){if(!o.length)for(var a=Object.keys(i),l=0;l=0;o--){var i=n[o];if(i.hasOwnProperty(r))return i[r]}return null},jk=function(n){return{baseTag:wk([N3.HREF,N3.TARGET],n),bodyAttributes:Fn(U0.BODY,n),defer:q1(n,M6.DEFER),encode:q1(n,M6.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Fn(U0.HTML,n),linkTags:v6(K.LINK,[N3.REL,N3.HREF],n),metaTags:v6(K.META,[N3.NAME,N3.CHARSET,N3.HTTPEQUIV,N3.PROPERTY,N3.ITEM_PROP],n),noscriptTags:v6(K.NOSCRIPT,[N3.INNER_HTML],n),onChangeClientState:bk(n),scriptTags:v6(K.SCRIPT,[N3.SRC,N3.INNER_HTML],n),styleTags:v6(K.STYLE,[N3.CSS_TEXT],n),title:_k(n),titleAttributes:Fn(U0.TITLE,n)}},Bn=function(){var e=Date.now();return function(n){var r=Date.now();r-e>16?(e=r,n(r)):setTimeout(function(){Bn(n)},0)}}(),rC=function(n){return clearTimeout(n)},Wk=typeof window!="undefined"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Bn:window.requestAnimationFrame||Bn,Sk=typeof window!="undefined"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||rC:window.cancelAnimationFrame||rC,Ek=function(n){return console&&typeof console.warn=="function"&&console.warn(n)},L6=null,Rk=function(n){L6&&Sk(L6),n.defer?L6=Wk(function(){oC(n,function(){L6=null})}):(oC(n),L6=null)},oC=function(n,r){var o=n.baseTag,i=n.bodyAttributes,a=n.htmlAttributes,l=n.linkTags,s=n.metaTags,C=n.noscriptTags,d=n.onChangeClientState,p=n.scriptTags,c=n.styleTags,h=n.title,g=n.titleAttributes;Tn(K.BODY,i),Tn(K.HTML,a),Ak(h,g);var w={baseTag:Y1(K.BASE,o),linkTags:Y1(K.LINK,l),metaTags:Y1(K.META,s),noscriptTags:Y1(K.NOSCRIPT,C),scriptTags:Y1(K.SCRIPT,p),styleTags:Y1(K.STYLE,c)},N={},k={};Object.keys(w).forEach(function(m){var y=w[m],x=y.newTags,M=y.oldTags;x.length&&(N[m]=x),M.length&&(k[m]=w[m].oldTags)}),r&&r(),d(n,N,k)},iC=function(n){return Array.isArray(n)?n.join(""):n},Ak=function(n,r){typeof n!="undefined"&&document.title!==n&&(document.title=iC(n)),Tn(K.TITLE,r)},Tn=function(n,r){var o=document.getElementsByTagName(n)[0];if(!!o){for(var i=o.getAttribute(e4),a=i?i.split(","):[],l=[].concat(a),s=Object.keys(r),C=0;C=0;h--)o.removeAttribute(l[h]);a.length===l.length?o.removeAttribute(e4):o.getAttribute(e4)!==s.join(",")&&o.setAttribute(e4,s.join(","))}},Y1=function(n,r){var o=document.head||document.querySelector(K.HEAD),i=o.querySelectorAll(n+"["+e4+"]"),a=Array.prototype.slice.call(i),l=[],s=void 0;return r&&r.length&&r.forEach(function(C){var d=document.createElement(n);for(var p in C)if(C.hasOwnProperty(p))if(p===N3.INNER_HTML)d.innerHTML=C.innerHTML;else if(p===N3.CSS_TEXT)d.styleSheet?d.styleSheet.cssText=C.cssText:d.appendChild(document.createTextNode(C.cssText));else{var c=typeof C[p]=="undefined"?"":C[p];d.setAttribute(p,c)}d.setAttribute(e4,"true"),a.some(function(h,g){return s=g,d.isEqualNode(h)})?a.splice(s,1):l.push(d)}),a.forEach(function(C){return C.parentNode.removeChild(C)}),l.forEach(function(C){return o.appendChild(C)}),{oldTags:a,newTags:l}},aC=function(n){return Object.keys(n).reduce(function(r,o){var i=typeof n[o]!="undefined"?o+'="'+n[o]+'"':""+o;return r?r+" "+i:i},"")},Zk=function(n,r,o,i){var a=aC(o),l=iC(r);return a?"<"+n+" "+e4+'="true" '+a+">"+Zn(l,i)+""+n+">":"<"+n+" "+e4+'="true">'+Zn(l,i)+""+n+">"},Fk=function(n,r,o){return r.reduce(function(i,a){var l=Object.keys(a).filter(function(d){return!(d===N3.INNER_HTML||d===N3.CSS_TEXT)}).reduce(function(d,p){var c=typeof a[p]=="undefined"?p:p+'="'+Zn(a[p],o)+'"';return d?d+" "+c:c},""),s=a.innerHTML||a.cssText||"",C=gk.indexOf(n)===-1;return i+"<"+n+" "+e4+'="true" '+l+(C?"/>":">"+s+""+n+">")},"")},lC=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(n).reduce(function(o,i){return o[_7[i]||i]=n[i],o},r)},Bk=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(n).reduce(function(o,i){return o[yk[i]||i]=n[i],o},r)},Tk=function(n,r,o){var i,a=(i={key:r},i[e4]=!0,i),l=lC(o,a);return[$1.default.createElement(K.TITLE,l,r)]},Dk=function(n,r){return r.map(function(o,i){var a,l=(a={key:i},a[e4]=!0,a);return Object.keys(o).forEach(function(s){var C=_7[s]||s;if(C===N3.INNER_HTML||C===N3.CSS_TEXT){var d=o.innerHTML||o.cssText;l.dangerouslySetInnerHTML={__html:d}}else l[C]=o[s]}),$1.default.createElement(n,l)})},Z4=function(n,r,o){switch(n){case K.TITLE:return{toComponent:function(){return Tk(n,r.title,r.titleAttributes,o)},toString:function(){return Zk(n,r.title,r.titleAttributes,o)}};case U0.BODY:case U0.HTML:return{toComponent:function(){return lC(r)},toString:function(){return aC(r)}};default:return{toComponent:function(){return Dk(n,r)},toString:function(){return Fk(n,r,o)}}}},sC=function(n){var r=n.baseTag,o=n.bodyAttributes,i=n.encode,a=n.htmlAttributes,l=n.linkTags,s=n.metaTags,C=n.noscriptTags,d=n.scriptTags,p=n.styleTags,c=n.title,h=c===void 0?"":c,g=n.titleAttributes;return{base:Z4(K.BASE,r,i),bodyAttributes:Z4(U0.BODY,o,i),htmlAttributes:Z4(U0.HTML,a,i),link:Z4(K.LINK,l,i),meta:Z4(K.META,s,i),noscript:Z4(K.NOSCRIPT,C,i),script:Z4(K.SCRIPT,d,i),style:Z4(K.STYLE,p,i),title:Z4(K.TITLE,{title:h,titleAttributes:g},i)}},Pk=function(n){var r,o;return o=r=function(i){Lk(a,i);function a(){return Mk(this,a),Nk(this,i.apply(this,arguments))}return a.prototype.shouldComponentUpdate=function(s){return!(0,eC.default)(this.props,s)},a.prototype.mapNestedChildrenToProps=function(s,C){if(!C)return null;switch(s.type){case K.SCRIPT:case K.NOSCRIPT:return{innerHTML:C};case K.STYLE:return{cssText:C}}throw new Error("<"+s.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},a.prototype.flattenArrayTypeChildren=function(s){var C,d=s.child,p=s.arrayTypeChildren,c=s.newChildProps,h=s.nestedChildren;return b2({},p,(C={},C[d.type]=[].concat(p[d.type]||[],[b2({},c,this.mapNestedChildrenToProps(d,h))]),C))},a.prototype.mapObjectTypeChildren=function(s){var C,d,p=s.child,c=s.newProps,h=s.newChildProps,g=s.nestedChildren;switch(p.type){case K.TITLE:return b2({},c,(C={},C[p.type]=g,C.titleAttributes=b2({},h),C));case K.BODY:return b2({},c,{bodyAttributes:b2({},h)});case K.HTML:return b2({},c,{htmlAttributes:b2({},h)})}return b2({},c,(d={},d[p.type]=b2({},h),d))},a.prototype.mapArrayTypeChildrenToProps=function(s,C){var d=b2({},C);return Object.keys(s).forEach(function(p){var c;d=b2({},d,(c={},c[p]=s[p],c))}),d},a.prototype.warnOnInvalidChildren=function(s,C){return!0},a.prototype.mapChildrenToProps=function(s,C){var d=this,p={};return $1.default.Children.forEach(s,function(c){if(!(!c||!c.props)){var h=c.props,g=h.children,w=nC(h,["children"]),N=Bk(w);switch(d.warnOnInvalidChildren(c,g),c.type){case K.LINK:case K.META:case K.NOSCRIPT:case K.SCRIPT:case K.STYLE:p=d.flattenArrayTypeChildren({child:c,arrayTypeChildren:p,newChildProps:N,nestedChildren:g});break;default:C=d.mapObjectTypeChildren({child:c,newProps:C,newChildProps:N,nestedChildren:g});break}}}),C=this.mapArrayTypeChildrenToProps(p,C),C},a.prototype.render=function(){var s=this.props,C=s.children,d=nC(s,["children"]),p=b2({},d);return C&&(p=this.mapChildrenToProps(C,p)),$1.default.createElement(n,p)},vk(a,null,[{key:"canUseDOM",set:function(s){n.canUseDOM=s}}]),a}($1.default.Component),r.propTypes={base:g3.default.object,bodyAttributes:g3.default.object,children:g3.default.oneOfType([g3.default.arrayOf(g3.default.node),g3.default.node]),defaultTitle:g3.default.string,defer:g3.default.bool,encodeSpecialCharacters:g3.default.bool,htmlAttributes:g3.default.object,link:g3.default.arrayOf(g3.default.object),meta:g3.default.arrayOf(g3.default.object),noscript:g3.default.arrayOf(g3.default.object),onChangeClientState:g3.default.func,script:g3.default.arrayOf(g3.default.object),style:g3.default.arrayOf(g3.default.object),title:g3.default.string,titleAttributes:g3.default.object,titleTemplate:g3.default.string},r.defaultProps={defer:!0,encodeSpecialCharacters:!0},r.peek=n.peek,r.rewind=function(){var i=n.rewind();return i||(i=sC({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),i},o},Ik=function(){return null},Ok=(0,Ks.default)(jk,Rk,sC)(Ik),b7=Pk(Ok);b7.renderStatic=b7.rewind;var X1=x3.default.createContext({currPage:"vocabulary",allPages:[],search:new URLSearchParams,pushState:()=>{throw new Error("No page context is defined!")}}),N6="p";function zk(e){return!e.shiftKey&&!e.altKey&&!e.metaKey&&!e.ctrlKey&&e.button===0}var Uk=({page:e})=>{let n=`?${N6}=${encodeURIComponent(e)}`,{pushState:r}=(0,x3.useContext)(X1);return x3.default.createElement("a",{href:n,onClick:i=>{zk(i)&&(r(n),i.preventDefault())}},e)},Gk=e=>{let n=(0,x3.useContext)(X1);return x3.default.createElement("nav",null,x3.default.createElement("ul",{className:"navbar"},n.allPages.map(r=>x3.default.createElement("li",{key:r},n.currPage===r?r:x3.default.createElement(Uk,{page:r})))))},k4=({title:e,children:n})=>{let r=` Mystic Symbolic ${e}`;return x3.default.createElement("div",{className:"page"},x3.default.createElement(b7,null,x3.default.createElement("meta",{charSet:"utf-8"}),x3.default.createElement("title",null,r),x3.default.createElement("link",{rel:"icon",href:"img/mystic-symbolic-icon.png"}),x3.default.createElement("link",{rel:"stylesheet",href:"css/style.css"})),x3.default.createElement("header",null,x3.default.createElement("h1",null,x3.default.createElement("img",{src:"img/mysticsymbolic-logo-sun.svg",alt:"Mystic Symbolic",title:"Mystic Symbolic",className:"MSlogo"})," ",e),x3.default.createElement(Gk,null)),n,x3.default.createElement("footer",null,x3.default.createElement("p",null,"For more details about this project, see its"," ",x3.default.createElement("a",{href:"https://github.com/toolness/mystic-symbolic",target:"_blank",rel:"noopener noreferrer"},"GitHub repository")," ","and"," ",x3.default.createElement("a",{href:"https://blog.ninapaley.com/category/mysticsymbolic/",target:"_blank",rel:"noopener noreferrer"},"Nina Paley's blog"),". You can also"," ",x3.default.createElement("a",{href:"https://www.gofundme.com/f/mysticsymbolic-development",target:"_blank",rel:"noopener noreferrer"},"donate to the project"),".")))};_();_();var V=J(C3());_();var CC=J(Dn()),Pn=J(C3()),w2=e=>Pn.default.createElement("label",{className:(0,CC.default)("checkbox",{disabled:e.disabled})},Pn.default.createElement("input",{type:"checkbox",checked:e.value,disabled:e.disabled,onChange:n=>e.onChange(n.target.checked)})," ",e.label);_();_();function j7(e){if(typeof e=="number")return e;e===void 0&&(e="");let n=parseFloat(e);if(isNaN(n))throw new Error(`Expected '${e}' to be a float!`);return n}function fC(e){return e*180/Math.PI}function In({min:e,max:n,step:r}){let o=[];for(let i=e;i<=n;i+=r)o.push(i);return o}function On(e,n,r){return Math.max(n,Math.min(e,r))}function E2(e){return In({min:0,max:e-1,step:1})}function J1(e){return e.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}function _6(e){return e%2==0}function zn(e){return Math.floor(e*1e3)}function dC(e,n=2){let r=e.toString(),o=e.toFixed(n);return r.length255&&(e=255);let n=e.toString(16);return n.length===1&&(n="0"+n),n}function b6(e){return"#"+e.map(Hk).join("")}function S7(e){let n=parseInt(e.substring(1,3),16),r=parseInt(e.substring(3,5),16),o=parseInt(e.substring(5,7),16);return[n,r,o]}function w6(e,n,r){let o=S7(e),i=S7(n);return b6(o.map((a,l)=>Math.floor(W7(a,i[l],r))))}_();var E7=J(C3());var C0=e=>{let n=e.id||J1(e.label);return E7.default.createElement("span",{className:"color-widget"},E7.default.createElement("label",{htmlFor:n},e.label,": "),E7.default.createElement("input",{id:n,type:"color",value:e.value,onChange:r=>e.onChange(r.target.value)}))};_();var pC=J(Dn()),Q1=J(C3());var V3=e=>{let n=e.id||J1(e.label);return Q1.default.createElement("div",{className:(0,pC.default)("thingy","numeric-slider",{disabled:e.disabled})},Q1.default.createElement("label",{htmlFor:n},e.label,": "),Q1.default.createElement("span",{className:"slider"},Q1.default.createElement("input",{type:"range",id:n,min:e.min,max:e.max,value:e.value,step:e.step,disabled:e.disabled,onChange:r=>e.onChange(j7(r.target.value))}),Q1.default.createElement("span",{className:"slider-value"}," ",dC(e.value),e.valueSuffix)))};_();var Vk={modulus:Math.pow(2,32),multiplier:1664525,increment:1013904223},R2=class{constructor(n=Date.now(),r=Vk){this.seed=n;this.params=r;this.latestSeed=n}clone(){return new R2(this.latestSeed,this.params)}next(){return this.latestSeed=(this.params.multiplier*this.latestSeed+this.params.increment)%this.params.modulus,this.latestSeed/this.params.modulus}bool(n=.5){return this.next()