@embedder/embedder 2.0.27 → 2.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,20 +0,0 @@
1
- import e from"events";import t from"https";import n from"http";import r from"net";import o from"tls";import i from"crypto";import a from"stream";import s from"url";import l from"zlib";import{a as u,g as c}from"./_commonjsHelpers-C1uRMj_j.js";import f from"buffer";var d,p,h={exports:{}};function m(){if(p)return d;p=1;const e=["nodebuffer","arraybuffer","fragments"],t="undefined"!=typeof Blob;return t&&e.push("blob"),d={BINARY_TYPES:e,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:t,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}}const v=u(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var y,g,b,_,w;function S(){if(y)return h.exports;y=1;const{EMPTY_BUFFER:e}=m(),t=Buffer[Symbol.species];function n(e,t,n,r,o){for(let i=0;i<o;i++)n[r+i]=e[i]^t[3&i]}function r(e,t){for(let n=0;n<e.length;n++)e[n]^=t[3&n]}if(h.exports={concat:function(n,r){if(0===n.length)return e;if(1===n.length)return n[0];const o=Buffer.allocUnsafe(r);let i=0;for(let e=0;e<n.length;e++){const t=n[e];o.set(t,i),i+=t.length}return i<r?new t(o.buffer,o.byteOffset,i):o},mask:n,toArrayBuffer:function(e){return e.length===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.length)},toBuffer:function e(n){if(e.readOnly=!0,Buffer.isBuffer(n))return n;let r;return n instanceof ArrayBuffer?r=new t(n):ArrayBuffer.isView(n)?r=new t(n.buffer,n.byteOffset,n.byteLength):(r=Buffer.from(n),e.readOnly=!1),r},unmask:r},!process.env.WS_NO_BUFFER_UTIL)try{const e=v;h.exports.mask=function(t,r,o,i,a){a<48?n(t,r,o,i,a):e.mask(t,r,o,i,a)},h.exports.unmask=function(t,n){t.length<32?r(t,n):e.unmask(t,n)}}catch(o){}return h.exports}function E(){if(w)return _;w=1;const e=l,t=S(),n=function(){if(b)return g;b=1;const e=Symbol("kDone"),t=Symbol("kRun");return g=class{constructor(n){this[e]=()=>{this.pending--,this[t]()},this.concurrency=n||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[t]()}[t](){if(this.pending!==this.concurrency&&this.jobs.length){const t=this.jobs.shift();this.pending++,t(this[e])}}}}(),{kStatusCode:r}=m(),o=Buffer[Symbol.species],i=Buffer.from([0,0,255,255]),a=Symbol("permessage-deflate"),s=Symbol("total-length"),u=Symbol("callback"),c=Symbol("buffers"),f=Symbol("error");let d;function p(e){this[c].push(e),this[s]+=e.length}function h(e){this[s]+=e.length,this[a]._maxPayload<1||this[s]<=this[a]._maxPayload?this[c].push(e):(this[f]=new RangeError("Max payload size exceeded"),this[f].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[f][r]=1009,this.removeListener("data",h),this.reset())}function v(e){this[a]._inflate=null,this[f]?this[u](this[f]):(e[r]=1007,this[u](e))}return _=class{constructor(e,t,r){if(this._maxPayload=0|r,this._options=e||{},this._threshold=void 0!==this._options.threshold?this._options.threshold:1024,this._isServer=!!t,this._deflate=null,this._inflate=null,this.params=null,!d){const e=void 0!==this._options.concurrencyLimit?this._options.concurrencyLimit:10;d=new n(e)}}static get extensionName(){return"permessage-deflate"}offer(){const e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:null==this._options.clientMaxWindowBits&&(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){const e=this._deflate[u];this._deflate.close(),this._deflate=null,e&&e(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(e){const t=this._options,n=e.find(e=>!(!1===t.serverNoContextTakeover&&e.server_no_context_takeover||e.server_max_window_bits&&(!1===t.serverMaxWindowBits||"number"==typeof t.serverMaxWindowBits&&t.serverMaxWindowBits>e.server_max_window_bits)||"number"==typeof t.clientMaxWindowBits&&!e.client_max_window_bits));if(!n)throw new Error("None of the extension offers can be accepted");return t.serverNoContextTakeover&&(n.server_no_context_takeover=!0),t.clientNoContextTakeover&&(n.client_no_context_takeover=!0),"number"==typeof t.serverMaxWindowBits&&(n.server_max_window_bits=t.serverMaxWindowBits),"number"==typeof t.clientMaxWindowBits?n.client_max_window_bits=t.clientMaxWindowBits:!0!==n.client_max_window_bits&&!1!==t.clientMaxWindowBits||delete n.client_max_window_bits,n}acceptAsClient(e){const t=e[0];if(!1===this._options.clientNoContextTakeover&&t.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(t.client_max_window_bits){if(!1===this._options.clientMaxWindowBits||"number"==typeof this._options.clientMaxWindowBits&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"')}else"number"==typeof this._options.clientMaxWindowBits&&(t.client_max_window_bits=this._options.clientMaxWindowBits);return t}normalizeParams(e){return e.forEach(e=>{Object.keys(e).forEach(t=>{let n=e[t];if(n.length>1)throw new Error(`Parameter "${t}" must have only a single value`);if(n=n[0],"client_max_window_bits"===t){if(!0!==n){const e=+n;if(!Number.isInteger(e)||e<8||e>15)throw new TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${t}": ${n}`)}else if("server_max_window_bits"===t){const e=+n;if(!Number.isInteger(e)||e<8||e>15)throw new TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else{if("client_no_context_takeover"!==t&&"server_no_context_takeover"!==t)throw new Error(`Unknown parameter "${t}"`);if(!0!==n)throw new TypeError(`Invalid value for parameter "${t}": ${n}`)}e[t]=n})}),e}decompress(e,t,n){d.add(r=>{this._decompress(e,t,(e,t)=>{r(),n(e,t)})})}compress(e,t,n){d.add(r=>{this._compress(e,t,(e,t)=>{r(),n(e,t)})})}_decompress(n,r,o){const l=this._isServer?"client":"server";if(!this._inflate){const t=`${l}_max_window_bits`,n="number"!=typeof this.params[t]?e.Z_DEFAULT_WINDOWBITS:this.params[t];this._inflate=e.createInflateRaw({...this._options.zlibInflateOptions,windowBits:n}),this._inflate[a]=this,this._inflate[s]=0,this._inflate[c]=[],this._inflate.on("error",v),this._inflate.on("data",h)}this._inflate[u]=o,this._inflate.write(n),r&&this._inflate.write(i),this._inflate.flush(()=>{const e=this._inflate[f];if(e)return this._inflate.close(),this._inflate=null,void o(e);const n=t.concat(this._inflate[c],this._inflate[s]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[s]=0,this._inflate[c]=[],r&&this.params[`${l}_no_context_takeover`]&&this._inflate.reset()),o(null,n)})}_compress(n,r,i){const a=this._isServer?"server":"client";if(!this._deflate){const t=`${a}_max_window_bits`,n="number"!=typeof this.params[t]?e.Z_DEFAULT_WINDOWBITS:this.params[t];this._deflate=e.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:n}),this._deflate[s]=0,this._deflate[c]=[],this._deflate.on("data",p)}this._deflate[u]=i,this._deflate.write(n),this._deflate.flush(e.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let e=t.concat(this._deflate[c],this._deflate[s]);r&&(e=new o(e.buffer,e.byteOffset,e.length-4)),this._deflate[u]=null,this._deflate[s]=0,this._deflate[c]=[],r&&this.params[`${a}_no_context_takeover`]&&this._deflate.reset(),i(null,e)})}}}var k={exports:{}};const C=u(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var x,I,O,T,N,P,A,D,R,L,M,j,F;function H(){if(x)return k.exports;x=1;const{isUtf8:e}=f,{hasBlob:t}=m();function n(e){const t=e.length;let n=0;for(;n<t;)if(128&e[n])if(192==(224&e[n])){if(n+1===t||128!=(192&e[n+1])||192==(254&e[n]))return!1;n+=2}else if(224==(240&e[n])){if(n+2>=t||128!=(192&e[n+1])||128!=(192&e[n+2])||224===e[n]&&128==(224&e[n+1])||237===e[n]&&160==(224&e[n+1]))return!1;n+=3}else{if(240!=(248&e[n]))return!1;if(n+3>=t||128!=(192&e[n+1])||128!=(192&e[n+2])||128!=(192&e[n+3])||240===e[n]&&128==(240&e[n+1])||244===e[n]&&e[n+1]>143||e[n]>244)return!1;n+=4}else n++;return!0}if(k.exports={isBlob:function(e){return t&&"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&("Blob"===e[Symbol.toStringTag]||"File"===e[Symbol.toStringTag])},isValidStatusCode:function(e){return e>=1e3&&e<=1014&&1004!==e&&1005!==e&&1006!==e||e>=3e3&&e<=4999},isValidUTF8:n,tokenChars:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0]},e)k.exports.isValidUTF8=function(t){return t.length<24?n(t):e(t)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{const e=C;k.exports.isValidUTF8=function(t){return t.length<32?n(t):e(t)}}catch(r){}return k.exports}function U(){if(O)return I;O=1;const{Writable:e}=a,t=E(),{BINARY_TYPES:n,EMPTY_BUFFER:r,kStatusCode:o,kWebSocket:i}=m(),{concat:s,toArrayBuffer:l,unmask:u}=S(),{isValidStatusCode:c,isValidUTF8:f}=H(),d=Buffer[Symbol.species];return I=class extends e{constructor(e={}){super(),this._allowSynchronousEvents=void 0===e.allowSynchronousEvents||e.allowSynchronousEvents,this._binaryType=e.binaryType||n[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxPayload=0|e.maxPayload,this._skipUTF8Validation=!!e.skipUTF8Validation,this[i]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write(e,t,n){if(8===this._opcode&&0==this._state)return n();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(n)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){const t=this._buffers[0];return this._buffers[0]=new d(t.buffer,t.byteOffset+e,t.length-e),new d(t.buffer,t.byteOffset,e)}const t=Buffer.allocUnsafe(e);do{const n=this._buffers[0],r=t.length-e;e>=n.length?t.set(this._buffers.shift(),r):(t.set(new Uint8Array(n.buffer,n.byteOffset,e),r),this._buffers[0]=new d(n.buffer,n.byteOffset+e,n.length-e)),e-=n.length}while(e>0);return t}startLoop(e){this._loop=!0;do{switch(this._state){case 0:this.getInfo(e);break;case 1:this.getPayloadLength16(e);break;case 2:this.getPayloadLength64(e);break;case 3:this.getMask();break;case 4:this.getData(e);break;case 5:case 6:return void(this._loop=!1)}}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2)return void(this._loop=!1);const n=this.consume(2);if(48&n[0]){return void e(this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3"))}const r=!(64&~n[0]);if(r&&!this._extensions[t.extensionName]){return void e(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"))}if(this._fin=!(128&~n[0]),this._opcode=15&n[0],this._payloadLength=127&n[1],0===this._opcode){if(r){return void e(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"))}if(!this._fragmented){return void e(this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE"))}this._opcode=this._fragmented}else if(1===this._opcode||2===this._opcode){if(this._fragmented){return void e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE"))}this._compressed=r}else{if(!(this._opcode>7&&this._opcode<11)){return void e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE"))}if(!this._fin){return void e(this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN"))}if(r){return void e(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"))}if(this._payloadLength>125||8===this._opcode&&1===this._payloadLength){return void e(this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH"))}}if(this._fin||this._fragmented||(this._fragmented=this._opcode),this._masked=!(128&~n[1]),this._isServer){if(!this._masked){return void e(this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK"))}}else if(this._masked){return void e(this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK"))}126===this._payloadLength?this._state=1:127===this._payloadLength?this._state=2:this.haveLength(e)}getPayloadLength16(e){this._bufferedBytes<2?this._loop=!1:(this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e))}getPayloadLength64(e){if(this._bufferedBytes<8)return void(this._loop=!1);const t=this.consume(8),n=t.readUInt32BE(0);if(n>Math.pow(2,21)-1){return void e(this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH"))}this._payloadLength=n*Math.pow(2,32)+t.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){return void e(this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH"))}this._masked?this._state=3:this._state=4}getMask(){this._bufferedBytes<4?this._loop=!1:(this._mask=this.consume(4),this._state=4)}getData(e){let t=r;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength)return void(this._loop=!1);t=this.consume(this._payloadLength),this._masked&&0!==(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])&&u(t,this._mask)}if(this._opcode>7)this.controlMessage(t,e);else{if(this._compressed)return this._state=5,void this.decompress(t,e);t.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(t)),this.dataMessage(e)}}decompress(e,n){this._extensions[t.extensionName].decompress(e,this._fin,(e,t)=>{if(e)return n(e);if(t.length){if(this._messageLength+=t.length,this._messageLength>this._maxPayload&&this._maxPayload>0){const e=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");return void n(e)}this._fragments.push(t)}this.dataMessage(n),0===this._state&&this.startLoop(n)})}dataMessage(e){if(!this._fin)return void(this._state=0);const t=this._messageLength,n=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],2===this._opcode){let r;r="nodebuffer"===this._binaryType?s(n,t):"arraybuffer"===this._binaryType?l(s(n,t)):"blob"===this._binaryType?new Blob(n):n,this._allowSynchronousEvents?(this.emit("message",r,!0),this._state=0):(this._state=6,setImmediate(()=>{this.emit("message",r,!0),this._state=0,this.startLoop(e)}))}else{const r=s(n,t);if(!this._skipUTF8Validation&&!f(r)){const t=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");return void e(t)}5===this._state||this._allowSynchronousEvents?(this.emit("message",r,!1),this._state=0):(this._state=6,setImmediate(()=>{this.emit("message",r,!1),this._state=0,this.startLoop(e)}))}}controlMessage(e,t){if(8!==this._opcode)this._allowSynchronousEvents?(this.emit(9===this._opcode?"ping":"pong",e),this._state=0):(this._state=6,setImmediate(()=>{this.emit(9===this._opcode?"ping":"pong",e),this._state=0,this.startLoop(t)}));else{if(0===e.length)this._loop=!1,this.emit("conclude",1005,r),this.end();else{const n=e.readUInt16BE(0);if(!c(n)){const e=this.createError(RangeError,`invalid status code ${n}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");return void t(e)}const r=new d(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!f(r)){const e=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");return void t(e)}this._loop=!1,this.emit("conclude",n,r),this.end()}this._state=0}}createError(e,t,n,r,i){this._loop=!1,this._errored=!0;const a=new e(n?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(a,this.createError),a.code=i,a[o]=r,a}}}function B(){if(N)return T;N=1;const{Duplex:e}=a,{randomFillSync:t}=i,n=E(),{EMPTY_BUFFER:r,kWebSocket:o,NOOP:s}=m(),{isBlob:l,isValidStatusCode:u}=H(),{mask:c,toBuffer:f}=S(),d=Symbol("kByteLength"),p=Buffer.alloc(4),h=8192;let v,y=h;class g{constructor(e,t,n){this._extensions=t||{},n&&(this._generateMask=n,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=0,this.onerror=s,this[o]=void 0}static frame(e,n){let r,o,i=!1,a=2,s=!1;n.mask&&(r=n.maskBuffer||p,n.generateMask?n.generateMask(r):(y===h&&(void 0===v&&(v=Buffer.alloc(h)),t(v,0,h),y=0),r[0]=v[y++],r[1]=v[y++],r[2]=v[y++],r[3]=v[y++]),s=0===(r[0]|r[1]|r[2]|r[3]),a=6),"string"==typeof e?o=n.mask&&!s||void 0===n[d]?(e=Buffer.from(e)).length:n[d]:(o=e.length,i=n.mask&&n.readOnly&&!s);let l=o;o>=65536?(a+=8,l=127):o>125&&(a+=2,l=126);const u=Buffer.allocUnsafe(i?o+a:a);return u[0]=n.fin?128|n.opcode:n.opcode,n.rsv1&&(u[0]|=64),u[1]=l,126===l?u.writeUInt16BE(o,2):127===l&&(u[2]=u[3]=0,u.writeUIntBE(o,4,6)),n.mask?(u[1]|=128,u[a-4]=r[0],u[a-3]=r[1],u[a-2]=r[2],u[a-1]=r[3],s?[u,e]:i?(c(e,r,u,a,o),[u]):(c(e,r,e,0,o),[u,e])):[u,e]}close(e,t,n,o){let i;if(void 0===e)i=r;else{if("number"!=typeof e||!u(e))throw new TypeError("First argument must be a valid error code number");if(void 0!==t&&t.length){const n=Buffer.byteLength(t);if(n>123)throw new RangeError("The message must not be greater than 123 bytes");i=Buffer.allocUnsafe(2+n),i.writeUInt16BE(e,0),"string"==typeof t?i.write(t,2):i.set(t,2)}else i=Buffer.allocUnsafe(2),i.writeUInt16BE(e,0)}const a={[d]:i.length,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};0!==this._state?this.enqueue([this.dispatch,i,!1,a,o]):this.sendFrame(g.frame(i,a),o)}ping(e,t,n){let r,o;if("string"==typeof e?(r=Buffer.byteLength(e),o=!1):l(e)?(r=e.size,o=!1):(r=(e=f(e)).length,o=f.readOnly),r>125)throw new RangeError("The data size must not be greater than 125 bytes");const i={[d]:r,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:9,readOnly:o,rsv1:!1};l(e)?0!==this._state?this.enqueue([this.getBlobData,e,!1,i,n]):this.getBlobData(e,!1,i,n):0!==this._state?this.enqueue([this.dispatch,e,!1,i,n]):this.sendFrame(g.frame(e,i),n)}pong(e,t,n){let r,o;if("string"==typeof e?(r=Buffer.byteLength(e),o=!1):l(e)?(r=e.size,o=!1):(r=(e=f(e)).length,o=f.readOnly),r>125)throw new RangeError("The data size must not be greater than 125 bytes");const i={[d]:r,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:10,readOnly:o,rsv1:!1};l(e)?0!==this._state?this.enqueue([this.getBlobData,e,!1,i,n]):this.getBlobData(e,!1,i,n):0!==this._state?this.enqueue([this.dispatch,e,!1,i,n]):this.sendFrame(g.frame(e,i),n)}send(e,t,r){const o=this._extensions[n.extensionName];let i,a,s=t.binary?2:1,u=t.compress;"string"==typeof e?(i=Buffer.byteLength(e),a=!1):l(e)?(i=e.size,a=!1):(i=(e=f(e)).length,a=f.readOnly),this._firstFragment?(this._firstFragment=!1,u&&o&&o.params[o._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(u=i>=o._threshold),this._compress=u):(u=!1,s=0),t.fin&&(this._firstFragment=!0);const c={[d]:i,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:s,readOnly:a,rsv1:u};l(e)?0!==this._state?this.enqueue([this.getBlobData,e,this._compress,c,r]):this.getBlobData(e,this._compress,c,r):0!==this._state?this.enqueue([this.dispatch,e,this._compress,c,r]):this.dispatch(e,this._compress,c,r)}getBlobData(e,t,n,r){this._bufferedBytes+=n[d],this._state=2,e.arrayBuffer().then(e=>{if(this._socket.destroyed){const e=new Error("The socket was closed while the blob was being read");return void process.nextTick(b,this,e,r)}this._bufferedBytes-=n[d];const o=f(e);t?this.dispatch(o,t,n,r):(this._state=0,this.sendFrame(g.frame(o,n),r),this.dequeue())}).catch(e=>{process.nextTick(_,this,e,r)})}dispatch(e,t,r,o){if(!t)return void this.sendFrame(g.frame(e,r),o);const i=this._extensions[n.extensionName];this._bufferedBytes+=r[d],this._state=1,i.compress(e,r.fin,(e,t)=>{if(this._socket.destroyed){return void b(this,new Error("The socket was closed while data was being compressed"),o)}this._bufferedBytes-=r[d],this._state=0,r.readOnly=!1,this.sendFrame(g.frame(t,r),o),this.dequeue()})}dequeue(){for(;0===this._state&&this._queue.length;){const e=this._queue.shift();this._bufferedBytes-=e[3][d],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][d],this._queue.push(e)}sendFrame(e,t){2===e.length?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}}function b(e,t,n){"function"==typeof n&&n(t);for(let r=0;r<e._queue.length;r++){const n=e._queue[r],o=n[n.length-1];"function"==typeof o&&o(t)}}function _(e,t,n){b(e,t,n),e.onerror(t)}return T=g}function V(){if(R)return D;R=1;const{tokenChars:e}=H();function t(e,t,n){void 0===e[t]?e[t]=[n]:e[t].push(n)}return D={format:function(e){return Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>[t].concat(Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>!0===e?t:`${t}=${e}`).join("; ")})).join("; ")).join(", ")}).join(", ")},parse:function(n){const r=Object.create(null);let o,i,a=Object.create(null),s=!1,l=!1,u=!1,c=-1,f=-1,d=-1,p=0;for(;p<n.length;p++)if(f=n.charCodeAt(p),void 0===o)if(-1===d&&1===e[f])-1===c&&(c=p);else if(0===p||32!==f&&9!==f){if(59!==f&&44!==f)throw new SyntaxError(`Unexpected character at index ${p}`);{if(-1===c)throw new SyntaxError(`Unexpected character at index ${p}`);-1===d&&(d=p);const e=n.slice(c,d);44===f?(t(r,e,a),a=Object.create(null)):o=e,c=d=-1}}else-1===d&&-1!==c&&(d=p);else if(void 0===i)if(-1===d&&1===e[f])-1===c&&(c=p);else if(32===f||9===f)-1===d&&-1!==c&&(d=p);else if(59===f||44===f){if(-1===c)throw new SyntaxError(`Unexpected character at index ${p}`);-1===d&&(d=p),t(a,n.slice(c,d),!0),44===f&&(t(r,o,a),a=Object.create(null),o=void 0),c=d=-1}else{if(61!==f||-1===c||-1!==d)throw new SyntaxError(`Unexpected character at index ${p}`);i=n.slice(c,p),c=d=-1}else if(l){if(1!==e[f])throw new SyntaxError(`Unexpected character at index ${p}`);-1===c?c=p:s||(s=!0),l=!1}else if(u)if(1===e[f])-1===c&&(c=p);else if(34===f&&-1!==c)u=!1,d=p;else{if(92!==f)throw new SyntaxError(`Unexpected character at index ${p}`);l=!0}else if(34===f&&61===n.charCodeAt(p-1))u=!0;else if(-1===d&&1===e[f])-1===c&&(c=p);else if(-1===c||32!==f&&9!==f){if(59!==f&&44!==f)throw new SyntaxError(`Unexpected character at index ${p}`);{if(-1===c)throw new SyntaxError(`Unexpected character at index ${p}`);-1===d&&(d=p);let e=n.slice(c,d);s&&(e=e.replace(/\\/g,""),s=!1),t(a,i,e),44===f&&(t(r,o,a),a=Object.create(null),o=void 0),i=void 0,c=d=-1}}else-1===d&&(d=p);if(-1===c||u||32===f||9===f)throw new SyntaxError("Unexpected end of input");-1===d&&(d=p);const h=n.slice(c,d);return void 0===o?t(r,h,a):(void 0===i?t(a,h,!0):t(a,i,s?h.replace(/\\/g,""):h),t(r,o,a)),r}}}function z(){if(M)return L;M=1;const l=e,u=t,c=n,f=r,d=o,{randomBytes:p,createHash:h}=i,{Duplex:v,Readable:y}=a,{URL:g}=s,b=E(),_=U(),w=B(),{isBlob:k}=H(),{BINARY_TYPES:C,EMPTY_BUFFER:x,GUID:I,kForOnEventAttribute:O,kListener:T,kStatusCode:N,kWebSocket:D,NOOP:R}=m(),{EventTarget:{addEventListener:j,removeEventListener:F}}=function(){if(A)return P;A=1;const{kForOnEventAttribute:e,kListener:t}=m(),n=Symbol("kCode"),r=Symbol("kData"),o=Symbol("kError"),i=Symbol("kMessage"),a=Symbol("kReason"),s=Symbol("kTarget"),l=Symbol("kType"),u=Symbol("kWasClean");class c{constructor(e){this[s]=null,this[l]=e}get target(){return this[s]}get type(){return this[l]}}Object.defineProperty(c.prototype,"target",{enumerable:!0}),Object.defineProperty(c.prototype,"type",{enumerable:!0});class f extends c{constructor(e,t={}){super(e),this[n]=void 0===t.code?0:t.code,this[a]=void 0===t.reason?"":t.reason,this[u]=void 0!==t.wasClean&&t.wasClean}get code(){return this[n]}get reason(){return this[a]}get wasClean(){return this[u]}}Object.defineProperty(f.prototype,"code",{enumerable:!0}),Object.defineProperty(f.prototype,"reason",{enumerable:!0}),Object.defineProperty(f.prototype,"wasClean",{enumerable:!0});class d extends c{constructor(e,t={}){super(e),this[o]=void 0===t.error?null:t.error,this[i]=void 0===t.message?"":t.message}get error(){return this[o]}get message(){return this[i]}}Object.defineProperty(d.prototype,"error",{enumerable:!0}),Object.defineProperty(d.prototype,"message",{enumerable:!0});class p extends c{constructor(e,t={}){super(e),this[r]=void 0===t.data?null:t.data}get data(){return this[r]}}Object.defineProperty(p.prototype,"data",{enumerable:!0});const h={addEventListener(n,r,o={}){for(const a of this.listeners(n))if(!o[e]&&a[t]===r&&!a[e])return;let i;if("message"===n)i=function(e,t){const n=new p("message",{data:t?e:e.toString()});n[s]=this,v(r,this,n)};else if("close"===n)i=function(e,t){const n=new f("close",{code:e,reason:t.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});n[s]=this,v(r,this,n)};else if("error"===n)i=function(e){const t=new d("error",{error:e,message:e.message});t[s]=this,v(r,this,t)};else{if("open"!==n)return;i=function(){const e=new c("open");e[s]=this,v(r,this,e)}}i[e]=!!o[e],i[t]=r,o.once?this.once(n,i):this.on(n,i)},removeEventListener(n,r){for(const o of this.listeners(n))if(o[t]===r&&!o[e]){this.removeListener(n,o);break}}};function v(e,t,n){"object"==typeof e&&e.handleEvent?e.handleEvent.call(e,n):e.call(t,n)}return P={CloseEvent:f,ErrorEvent:d,Event:c,EventTarget:h,MessageEvent:p}}(),{format:z,parse:W}=V(),{toBuffer:$}=S(),G=Symbol("kAborted"),q=[8,13],Y=["CONNECTING","OPEN","CLOSING","CLOSED"],K=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class Q extends l{constructor(e,t,n){super(),this._binaryType=C[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=x,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=Q.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,null!==e?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,void 0===t?t=[]:Array.isArray(t)||("object"==typeof t&&null!==t?(n=t,t=[]):t=[t]),X(this,e,t,n)):(this._autoPong=n.autoPong,this._isServer=!0)}get binaryType(){return this._binaryType}set binaryType(e){C.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,t,n){const r=new _({allowSynchronousEvents:n.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:n.maxPayload,skipUTF8Validation:n.skipUTF8Validation}),o=new w(e,this._extensions,n.generateMask);this._receiver=r,this._sender=o,this._socket=e,r[D]=this,o[D]=this,e[D]=this,r.on("conclude",re),r.on("drain",oe),r.on("error",ie),r.on("message",se),r.on("ping",le),r.on("pong",ue),o.onerror=fe,e.setTimeout&&e.setTimeout(0),e.setNoDelay&&e.setNoDelay(),t.length>0&&e.unshift(t),e.on("close",pe),e.on("data",he),e.on("end",me),e.on("error",ve),this._readyState=Q.OPEN,this.emit("open")}emitClose(){if(!this._socket)return this._readyState=Q.CLOSED,void this.emit("close",this._closeCode,this._closeMessage);this._extensions[b.extensionName]&&this._extensions[b.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=Q.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState!==Q.CLOSED){if(this.readyState===Q.CONNECTING){const e="WebSocket was closed before the connection was established";return void te(this,this._req,e)}this.readyState!==Q.CLOSING?(this._readyState=Q.CLOSING,this._sender.close(e,t,!this._isServer,e=>{e||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),de(this)):this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end()}}pause(){this.readyState!==Q.CONNECTING&&this.readyState!==Q.CLOSED&&(this._paused=!0,this._socket.pause())}ping(e,t,n){if(this.readyState===Q.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof e?(n=e,e=t=void 0):"function"==typeof t&&(n=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState===Q.OPEN?(void 0===t&&(t=!this._isServer),this._sender.ping(e||x,t,n)):ne(this,e,n)}pong(e,t,n){if(this.readyState===Q.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof e?(n=e,e=t=void 0):"function"==typeof t&&(n=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState===Q.OPEN?(void 0===t&&(t=!this._isServer),this._sender.pong(e||x,t,n)):ne(this,e,n)}resume(){this.readyState!==Q.CONNECTING&&this.readyState!==Q.CLOSED&&(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(e,t,n){if(this.readyState===Q.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if("function"==typeof t&&(n=t,t={}),"number"==typeof e&&(e=e.toString()),this.readyState!==Q.OPEN)return void ne(this,e,n);const r={binary:"string"!=typeof e,mask:!this._isServer,compress:!0,fin:!0,...t};this._extensions[b.extensionName]||(r.compress=!1),this._sender.send(e||x,r,n)}terminate(){if(this.readyState!==Q.CLOSED){if(this.readyState===Q.CONNECTING){const e="WebSocket was closed before the connection was established";return void te(this,this._req,e)}this._socket&&(this._readyState=Q.CLOSING,this._socket.destroy())}}}function X(e,t,n,r){const o={allowSynchronousEvents:!0,autoPong:!0,protocolVersion:q[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...r,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(e._autoPong=o.autoPong,!q.includes(o.protocolVersion))throw new RangeError(`Unsupported protocol version: ${o.protocolVersion} (supported versions: ${q.join(", ")})`);let i;if(t instanceof g)i=t;else try{i=new g(t)}catch(w){throw new SyntaxError(`Invalid URL: ${t}`)}"http:"===i.protocol?i.protocol="ws:":"https:"===i.protocol&&(i.protocol="wss:"),e._url=i.href;const a="wss:"===i.protocol,s="ws+unix:"===i.protocol;let l;if("ws:"===i.protocol||a||s?s&&!i.pathname?l="The URL's pathname is empty":i.hash&&(l="The URL contains a fragment identifier"):l='The URL\'s protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"',l){const t=new SyntaxError(l);if(0===e._redirects)throw t;return void J(e,t)}const f=a?443:80,d=p(16).toString("base64"),m=a?u.request:c.request,v=new Set;let y,_;if(o.createConnection=o.createConnection||(a?ee:Z),o.defaultPort=o.defaultPort||f,o.port=i.port||f,o.host=i.hostname.startsWith("[")?i.hostname.slice(1,-1):i.hostname,o.headers={...o.headers,"Sec-WebSocket-Version":o.protocolVersion,"Sec-WebSocket-Key":d,Connection:"Upgrade",Upgrade:"websocket"},o.path=i.pathname+i.search,o.timeout=o.handshakeTimeout,o.perMessageDeflate&&(y=new b(!0!==o.perMessageDeflate?o.perMessageDeflate:{},!1,o.maxPayload),o.headers["Sec-WebSocket-Extensions"]=z({[b.extensionName]:y.offer()})),n.length){for(const e of n){if("string"!=typeof e||!K.test(e)||v.has(e))throw new SyntaxError("An invalid or duplicated subprotocol was specified");v.add(e)}o.headers["Sec-WebSocket-Protocol"]=n.join(",")}if(o.origin&&(o.protocolVersion<13?o.headers["Sec-WebSocket-Origin"]=o.origin:o.headers.Origin=o.origin),(i.username||i.password)&&(o.auth=`${i.username}:${i.password}`),s){const e=o.path.split(":");o.socketPath=e[0],o.path=e[1]}if(o.followRedirects){if(0===e._redirects){e._originalIpc=s,e._originalSecure=a,e._originalHostOrSocketPath=s?o.socketPath:i.host;const t=r&&r.headers;if(r={...r,headers:{}},t)for(const[e,n]of Object.entries(t))r.headers[e.toLowerCase()]=n}else if(0===e.listenerCount("redirect")){const t=s?!!e._originalIpc&&o.socketPath===e._originalHostOrSocketPath:!e._originalIpc&&i.host===e._originalHostOrSocketPath;(!t||e._originalSecure&&!a)&&(delete o.headers.authorization,delete o.headers.cookie,t||delete o.headers.host,o.auth=void 0)}o.auth&&!r.headers.authorization&&(r.headers.authorization="Basic "+Buffer.from(o.auth).toString("base64")),_=e._req=m(o),e._redirects&&e.emit("redirect",e.url,_)}else _=e._req=m(o);o.timeout&&_.on("timeout",()=>{te(e,_,"Opening handshake has timed out")}),_.on("error",t=>{null===_||_[G]||(_=e._req=null,J(e,t))}),_.on("response",i=>{const a=i.headers.location,s=i.statusCode;if(a&&o.followRedirects&&s>=300&&s<400){if(++e._redirects>o.maxRedirects)return void te(e,_,"Maximum redirects exceeded");let i;_.abort();try{i=new g(a,t)}catch(w){const n=new SyntaxError(`Invalid URL: ${a}`);return void J(e,n)}X(e,i,n,r)}else e.emit("unexpected-response",_,i)||te(e,_,`Unexpected server response: ${i.statusCode}`)}),_.on("upgrade",(t,n,r)=>{if(e.emit("upgrade",t),e.readyState!==Q.CONNECTING)return;_=e._req=null;const i=t.headers.upgrade;if(void 0===i||"websocket"!==i.toLowerCase())return void te(e,n,"Invalid Upgrade header");const a=h("sha1").update(d+I).digest("base64");if(t.headers["sec-websocket-accept"]!==a)return void te(e,n,"Invalid Sec-WebSocket-Accept header");const s=t.headers["sec-websocket-protocol"];let l;if(void 0!==s?v.size?v.has(s)||(l="Server sent an invalid subprotocol"):l="Server sent a subprotocol but none was requested":v.size&&(l="Server sent no subprotocol"),l)return void te(e,n,l);s&&(e._protocol=s);const u=t.headers["sec-websocket-extensions"];if(void 0!==u){if(!y){return void te(e,n,"Server sent a Sec-WebSocket-Extensions header but no extension was requested")}let t;try{t=W(u)}catch(c){return void te(e,n,"Invalid Sec-WebSocket-Extensions header")}const r=Object.keys(t);if(1!==r.length||r[0]!==b.extensionName){return void te(e,n,"Server indicated an extension that was not requested")}try{y.accept(t[b.extensionName])}catch(c){return void te(e,n,"Invalid Sec-WebSocket-Extensions header")}e._extensions[b.extensionName]=y}e.setSocket(n,r,{allowSynchronousEvents:o.allowSynchronousEvents,generateMask:o.generateMask,maxPayload:o.maxPayload,skipUTF8Validation:o.skipUTF8Validation})}),o.finishRequest?o.finishRequest(_,e):_.end()}function J(e,t){e._readyState=Q.CLOSING,e._errorEmitted=!0,e.emit("error",t),e.emitClose()}function Z(e){return e.path=e.socketPath,f.connect(e)}function ee(e){return e.path=void 0,e.servername||""===e.servername||(e.servername=f.isIP(e.host)?"":e.host),d.connect(e)}function te(e,t,n){e._readyState=Q.CLOSING;const r=new Error(n);Error.captureStackTrace(r,te),t.setHeader?(t[G]=!0,t.abort(),t.socket&&!t.socket.destroyed&&t.socket.destroy(),process.nextTick(J,e,r)):(t.destroy(r),t.once("error",e.emit.bind(e,"error")),t.once("close",e.emitClose.bind(e)))}function ne(e,t,n){if(t){const n=k(t)?t.size:$(t).length;e._socket?e._sender._bufferedBytes+=n:e._bufferedAmount+=n}if(n){const t=new Error(`WebSocket is not open: readyState ${e.readyState} (${Y[e.readyState]})`);process.nextTick(n,t)}}function re(e,t){const n=this[D];n._closeFrameReceived=!0,n._closeMessage=t,n._closeCode=e,void 0!==n._socket[D]&&(n._socket.removeListener("data",he),process.nextTick(ce,n._socket),1005===e?n.close():n.close(e,t))}function oe(){const e=this[D];e.isPaused||e._socket.resume()}function ie(e){const t=this[D];void 0!==t._socket[D]&&(t._socket.removeListener("data",he),process.nextTick(ce,t._socket),t.close(e[N])),t._errorEmitted||(t._errorEmitted=!0,t.emit("error",e))}function ae(){this[D].emitClose()}function se(e,t){this[D].emit("message",e,t)}function le(e){const t=this[D];t._autoPong&&t.pong(e,!this._isServer,R),t.emit("ping",e)}function ue(e){this[D].emit("pong",e)}function ce(e){e.resume()}function fe(e){const t=this[D];t.readyState!==Q.CLOSED&&(t.readyState===Q.OPEN&&(t._readyState=Q.CLOSING,de(t)),this._socket.end(),t._errorEmitted||(t._errorEmitted=!0,t.emit("error",e)))}function de(e){e._closeTimer=setTimeout(e._socket.destroy.bind(e._socket),3e4)}function pe(){const e=this[D];let t;this.removeListener("close",pe),this.removeListener("data",he),this.removeListener("end",me),e._readyState=Q.CLOSING,this._readableState.endEmitted||e._closeFrameReceived||e._receiver._writableState.errorEmitted||null===(t=e._socket.read())||e._receiver.write(t),e._receiver.end(),this[D]=void 0,clearTimeout(e._closeTimer),e._receiver._writableState.finished||e._receiver._writableState.errorEmitted?e.emitClose():(e._receiver.on("error",ae),e._receiver.on("finish",ae))}function he(e){this[D]._receiver.write(e)||this.pause()}function me(){const e=this[D];e._readyState=Q.CLOSING,e._receiver.end(),this.end()}function ve(){const e=this[D];this.removeListener("error",ve),this.on("error",R),e&&(e._readyState=Q.CLOSING,this.destroy())}return Object.defineProperty(Q,"CONNECTING",{enumerable:!0,value:Y.indexOf("CONNECTING")}),Object.defineProperty(Q.prototype,"CONNECTING",{enumerable:!0,value:Y.indexOf("CONNECTING")}),Object.defineProperty(Q,"OPEN",{enumerable:!0,value:Y.indexOf("OPEN")}),Object.defineProperty(Q.prototype,"OPEN",{enumerable:!0,value:Y.indexOf("OPEN")}),Object.defineProperty(Q,"CLOSING",{enumerable:!0,value:Y.indexOf("CLOSING")}),Object.defineProperty(Q.prototype,"CLOSING",{enumerable:!0,value:Y.indexOf("CLOSING")}),Object.defineProperty(Q,"CLOSED",{enumerable:!0,value:Y.indexOf("CLOSED")}),Object.defineProperty(Q.prototype,"CLOSED",{enumerable:!0,value:Y.indexOf("CLOSED")}),["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(e=>{Object.defineProperty(Q.prototype,e,{enumerable:!0})}),["open","error","close","message"].forEach(e=>{Object.defineProperty(Q.prototype,`on${e}`,{enumerable:!0,get(){for(const t of this.listeners(e))if(t[O])return t[T];return null},set(t){for(const n of this.listeners(e))if(n[O]){this.removeListener(e,n);break}"function"==typeof t&&this.addEventListener(e,t,{[O]:!0})}})}),Q.prototype.addEventListener=j,Q.prototype.removeEventListener=F,L=Q}!function(){if(F)return j;F=1,z();const{Duplex:e}=a;function t(e){e.emit("close")}function n(){!this.destroyed&&this._writableState.finished&&this.destroy()}function r(e){this.removeListener("error",r),this.destroy(),0===this.listenerCount("error")&&this.emit("error",e)}j=function(o,i){let a=!0;const s=new e({...i,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return o.on("message",function(e,t){const n=!t&&s._readableState.objectMode?e.toString():e;s.push(n)||o.pause()}),o.once("error",function(e){s.destroyed||(a=!1,s.destroy(e))}),o.once("close",function(){s.destroyed||s.push(null)}),s._destroy=function(e,n){if(o.readyState===o.CLOSED)return n(e),void process.nextTick(t,s);let r=!1;o.once("error",function(e){r=!0,n(e)}),o.once("close",function(){r||n(e),process.nextTick(t,s)}),a&&o.terminate()},s._final=function(e){o.readyState!==o.CONNECTING?null!==o._socket&&(o._socket._writableState.finished?(e(),s._readableState.endEmitted&&s.destroy()):(o._socket.once("finish",function(){e()}),o.close())):o.once("open",function(){s._final(e)})},s._read=function(){o.isPaused&&o.resume()},s._write=function(e,t,n){o.readyState!==o.CONNECTING?o.send(e,n):o.once("open",function(){s._write(e,t,n)})},s.on("end",n),s.on("error",r),s}}(),U(),B();const W=c(z());var $,G,q,Y;!function(){if(Y)return q;Y=1;const t=e,r=n,{Duplex:o}=a,{createHash:s}=i,l=V(),u=E(),c=function(){if(G)return $;G=1;const{tokenChars:e}=H();return $={parse:function(t){const n=new Set;let r=-1,o=-1,i=0;for(;i<t.length;i++){const a=t.charCodeAt(i);if(-1===o&&1===e[a])-1===r&&(r=i);else if(0===i||32!==a&&9!==a){if(44!==a)throw new SyntaxError(`Unexpected character at index ${i}`);{if(-1===r)throw new SyntaxError(`Unexpected character at index ${i}`);-1===o&&(o=i);const e=t.slice(r,o);if(n.has(e))throw new SyntaxError(`The "${e}" subprotocol is duplicated`);n.add(e),r=o=-1}}else-1===o&&-1!==r&&(o=i)}if(-1===r||-1!==o)throw new SyntaxError("Unexpected end of input");const a=t.slice(r,i);if(n.has(a))throw new SyntaxError(`The "${a}" subprotocol is duplicated`);return n.add(a),n}}}(),f=z(),{GUID:d,kWebSocket:p}=m(),h=/^[+/0-9A-Za-z]{22}==$/;function v(e){e._state=2,e.emit("close")}function y(){this.destroy()}function g(e,t,n,o){n=n||r.STATUS_CODES[t],o={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(n),...o},e.once("finish",e.destroy),e.end(`HTTP/1.1 ${t} ${r.STATUS_CODES[t]}\r\n`+Object.keys(o).map(e=>`${e}: ${o[e]}`).join("\r\n")+"\r\n\r\n"+n)}function b(e,t,n,r,o,i){if(e.listenerCount("wsClientError")){const r=new Error(o);Error.captureStackTrace(r,b),e.emit("wsClientError",r,n,t)}else g(n,r,o,i)}q=class extends t{constructor(e,t){if(super(),null==(e={allowSynchronousEvents:!0,autoPong:!0,maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:f,...e}).port&&!e.server&&!e.noServer||null!=e.port&&(e.server||e.noServer)||e.server&&e.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(null!=e.port?(this._server=r.createServer((e,t)=>{const n=r.STATUS_CODES[426];t.writeHead(426,{"Content-Length":n.length,"Content-Type":"text/plain"}),t.end(n)}),this._server.listen(e.port,e.host,e.backlog,t)):e.server&&(this._server=e.server),this._server){const e=this.emit.bind(this,"connection");this._removeListeners=function(e,t){for(const n of Object.keys(t))e.on(n,t[n]);return function(){for(const n of Object.keys(t))e.removeListener(n,t[n])}}(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(t,n,r)=>{this.handleUpgrade(t,n,r,e)}})}!0===e.perMessageDeflate&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=0}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(e){if(2===this._state)return e&&this.once("close",()=>{e(new Error("The server is not running"))}),void process.nextTick(v,this);if(e&&this.once("close",e),1!==this._state)if(this._state=1,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients&&this.clients.size?this._shouldEmitClose=!0:process.nextTick(v,this);else{const e=this._server;this._removeListeners(),this._removeListeners=this._server=null,e.close(()=>{v(this)})}}shouldHandle(e){if(this.options.path){const t=e.url.indexOf("?");if((-1!==t?e.url.slice(0,t):e.url)!==this.options.path)return!1}return!0}handleUpgrade(e,t,n,r){t.on("error",y);const o=e.headers["sec-websocket-key"],i=e.headers.upgrade,a=+e.headers["sec-websocket-version"];if("GET"!==e.method){return void b(this,e,t,405,"Invalid HTTP method")}if(void 0===i||"websocket"!==i.toLowerCase()){return void b(this,e,t,400,"Invalid Upgrade header")}if(void 0===o||!h.test(o)){return void b(this,e,t,400,"Missing or invalid Sec-WebSocket-Key header")}if(13!==a&&8!==a){return void b(this,e,t,400,"Missing or invalid Sec-WebSocket-Version header",{"Sec-WebSocket-Version":"13, 8"})}if(!this.shouldHandle(e))return void g(t,400);const s=e.headers["sec-websocket-protocol"];let f=new Set;if(void 0!==s)try{f=c.parse(s)}catch(m){return void b(this,e,t,400,"Invalid Sec-WebSocket-Protocol header")}const d=e.headers["sec-websocket-extensions"],p={};if(this.options.perMessageDeflate&&void 0!==d){const n=new u(this.options.perMessageDeflate,!0,this.options.maxPayload);try{const e=l.parse(d);e[u.extensionName]&&(n.accept(e[u.extensionName]),p[u.extensionName]=n)}catch(m){return void b(this,e,t,400,"Invalid or unacceptable Sec-WebSocket-Extensions header")}}if(this.options.verifyClient){const i={origin:e.headers[""+(8===a?"sec-websocket-origin":"origin")],secure:!(!e.socket.authorized&&!e.socket.encrypted),req:e};if(2===this.options.verifyClient.length)return void this.options.verifyClient(i,(i,a,s,l)=>{if(!i)return g(t,a||401,s,l);this.completeUpgrade(p,o,f,e,t,n,r)});if(!this.options.verifyClient(i))return g(t,401)}this.completeUpgrade(p,o,f,e,t,n,r)}completeUpgrade(e,t,n,r,o,i,a){if(!o.readable||!o.writable)return o.destroy();if(o[p])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>0)return g(o,503);const c=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${s("sha1").update(t+d).digest("base64")}`],f=new this.options.WebSocket(null,void 0,this.options);if(n.size){const e=this.options.handleProtocols?this.options.handleProtocols(n,r):n.values().next().value;e&&(c.push(`Sec-WebSocket-Protocol: ${e}`),f._protocol=e)}if(e[u.extensionName]){const t=e[u.extensionName].params,n=l.format({[u.extensionName]:[t]});c.push(`Sec-WebSocket-Extensions: ${n}`),f._extensions=e}this.emit("headers",c,r),o.write(c.concat("\r\n").join("\r\n")),o.removeListener("error",y),f.setSocket(o,i,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(f),f.on("close",()=>{this.clients.delete(f),this._shouldEmitClose&&!this.clients.size&&process.nextTick(v,this)})),a(f,r)}}}();const K=global;K.WebSocket||=W,K.window||=global,K.self||=global,K.window.__REACT_DEVTOOLS_COMPONENT_FILTERS__=[{type:1,value:7,isEnabled:!0},{type:2,value:"InternalApp",isEnabled:!0,isValid:!0},{type:2,value:"InternalAppContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalStdoutContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalStderrContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalStdinContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalFocusContext",isEnabled:!0,isValid:!0}];var Q,X={exports:{}};const J=c(Q?X.exports:(Q=1,self,X.exports=(()=>{var e={786:(e,t,n)=>{
2
- /**
3
- * @license React
4
- * react-debug-tools.production.js
5
- *
6
- * Copyright (c) Meta Platforms, Inc. and affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */
11
- function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(206),i=n(189),a=Object.assign,s=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,l=Symbol.for("react.context"),u=Symbol.for("react.memo_cache_sentinel"),c=Object.prototype.hasOwnProperty,f=[],d=null;function p(){if(null===d){var e=new Map;try{if(_.useContext({_currentValue:null}),_.useState(null),_.useReducer(function(e){return e},null),_.useRef(null),"function"==typeof _.useCacheRefresh&&_.useCacheRefresh(),_.useLayoutEffect(function(){}),_.useInsertionEffect(function(){}),_.useEffect(function(){}),_.useImperativeHandle(void 0,function(){return null}),_.useDebugValue(null),_.useCallback(function(){}),_.useTransition(),_.useSyncExternalStore(function(){return function(){}},function(){return null},function(){return null}),_.useDeferredValue(null),_.useMemo(function(){return null}),_.useOptimistic(null,function(e){return e}),_.useFormState(function(e){return e},null),_.useActionState(function(e){return e},null),_.useHostTransitionStatus(),"function"==typeof _.useMemoCache&&_.useMemoCache(0),"function"==typeof _.use){_.use({$$typeof:l,_currentValue:null}),_.use({then:function(){},status:"fulfilled",value:null});try{_.use({then:function(){}})}catch(i){}}_.useId(),"function"==typeof _.useEffectEvent&&_.useEffectEvent(function(){})}finally{var t=f;f=[]}for(var n=0;n<t.length;n++){var r=t[n];e.set(r.primitive,o.parse(r.stackError))}d=e}return d}var h=null,m=null,v=null;function y(){var e=m;return null!==e&&(m=e.next),e}function g(e){if(null===h)return e._currentValue;if(null===v)throw Error("Context reads do not line up with context dependencies. This is a bug in React Debug Tools.");return c.call(v,"memoizedValue")?(e=v.memoizedValue,v=v.next):e=e._currentValue,e}var b=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),_={readContext:g,use:function(e){if(null!==e&&"object"===r(e)){if("function"==typeof e.then){switch(e.status){case"fulfilled":var t=e.value;return f.push({displayName:null,primitive:"Promise",stackError:Error(),value:t,debugInfo:void 0===e._debugInfo?null:e._debugInfo,dispatcherHookName:"Use"}),t;case"rejected":throw e.reason}throw f.push({displayName:null,primitive:"Unresolved",stackError:Error(),value:e,debugInfo:void 0===e._debugInfo?null:e._debugInfo,dispatcherHookName:"Use"}),b}if(e.$$typeof===l)return t=g(e),f.push({displayName:e.displayName||"Context",primitive:"Context (use)",stackError:Error(),value:t,debugInfo:null,dispatcherHookName:"Use"}),t}throw Error("An unsupported type was passed to use(): "+String(e))},useCallback:function(e){var t=y();return f.push({displayName:null,primitive:"Callback",stackError:Error(),value:null!==t?t.memoizedState[0]:e,debugInfo:null,dispatcherHookName:"Callback"}),e},useContext:function(e){var t=g(e);return f.push({displayName:e.displayName||null,primitive:"Context",stackError:Error(),value:t,debugInfo:null,dispatcherHookName:"Context"}),t},useEffect:function(e){y(),f.push({displayName:null,primitive:"Effect",stackError:Error(),value:e,debugInfo:null,dispatcherHookName:"Effect"})},useImperativeHandle:function(e){y();var t=void 0;null!==e&&"object"===r(e)&&(t=e.current),f.push({displayName:null,primitive:"ImperativeHandle",stackError:Error(),value:t,debugInfo:null,dispatcherHookName:"ImperativeHandle"})},useLayoutEffect:function(e){y(),f.push({displayName:null,primitive:"LayoutEffect",stackError:Error(),value:e,debugInfo:null,dispatcherHookName:"LayoutEffect"})},useInsertionEffect:function(e){y(),f.push({displayName:null,primitive:"InsertionEffect",stackError:Error(),value:e,debugInfo:null,dispatcherHookName:"InsertionEffect"})},useMemo:function(e){var t=y();return e=null!==t?t.memoizedState[0]:e(),f.push({displayName:null,primitive:"Memo",stackError:Error(),value:e,debugInfo:null,dispatcherHookName:"Memo"}),e},useReducer:function(e,t,n){return t=null!==(e=y())?e.memoizedState:void 0!==n?n(t):t,f.push({displayName:null,primitive:"Reducer",stackError:Error(),value:t,debugInfo:null,dispatcherHookName:"Reducer"}),[t,function(){}]},useRef:function(e){var t=y();return e=null!==t?t.memoizedState:{current:e},f.push({displayName:null,primitive:"Ref",stackError:Error(),value:e.current,debugInfo:null,dispatcherHookName:"Ref"}),e},useState:function(e){var t=y();return e=null!==t?t.memoizedState:"function"==typeof e?e():e,f.push({displayName:null,primitive:"State",stackError:Error(),value:e,debugInfo:null,dispatcherHookName:"State"}),[e,function(){}]},useDebugValue:function(e,t){f.push({displayName:null,primitive:"DebugValue",stackError:Error(),value:"function"==typeof t?t(e):e,debugInfo:null,dispatcherHookName:"DebugValue"})},useDeferredValue:function(e){var t=y();return e=null!==t?t.memoizedState:e,f.push({displayName:null,primitive:"DeferredValue",stackError:Error(),value:e,debugInfo:null,dispatcherHookName:"DeferredValue"}),e},useTransition:function(){var e=y();return y(),e=null!==e&&e.memoizedState,f.push({displayName:null,primitive:"Transition",stackError:Error(),value:e,debugInfo:null,dispatcherHookName:"Transition"}),[e,function(){}]},useSyncExternalStore:function(e,t){return y(),y(),e=t(),f.push({displayName:null,primitive:"SyncExternalStore",stackError:Error(),value:e,debugInfo:null,dispatcherHookName:"SyncExternalStore"}),e},useId:function(){var e=y();return e=null!==e?e.memoizedState:"",f.push({displayName:null,primitive:"Id",stackError:Error(),value:e,debugInfo:null,dispatcherHookName:"Id"}),e},useHostTransitionStatus:function(){var e=g({_currentValue:null});return f.push({displayName:null,primitive:"HostTransitionStatus",stackError:Error(),value:e,debugInfo:null,dispatcherHookName:"HostTransitionStatus"}),e},useFormState:function(e,t){var n=y();y(),y(),e=Error();var o=null,i=null;if(null!==n)if("object"===r(t=n.memoizedState)&&null!==t&&"function"==typeof t.then)switch(t.status){case"fulfilled":var a=t.value;o=void 0===t._debugInfo?null:t._debugInfo;break;case"rejected":i=t.reason;break;default:i=b,o=void 0===t._debugInfo?null:t._debugInfo,a=t}else a=t;else a=t;if(f.push({displayName:null,primitive:"FormState",stackError:e,value:a,debugInfo:o,dispatcherHookName:"FormState"}),null!==i)throw i;return[a,function(){},!1]},useActionState:function(e,t){var n=y();y(),y(),e=Error();var o=null,i=null;if(null!==n)if("object"===r(t=n.memoizedState)&&null!==t&&"function"==typeof t.then)switch(t.status){case"fulfilled":var a=t.value;o=void 0===t._debugInfo?null:t._debugInfo;break;case"rejected":i=t.reason;break;default:i=b,o=void 0===t._debugInfo?null:t._debugInfo,a=t}else a=t;else a=t;if(f.push({displayName:null,primitive:"ActionState",stackError:e,value:a,debugInfo:o,dispatcherHookName:"ActionState"}),null!==i)throw i;return[a,function(){},!1]},useOptimistic:function(e){var t=y();return e=null!==t?t.memoizedState:e,f.push({displayName:null,primitive:"Optimistic",stackError:Error(),value:e,debugInfo:null,dispatcherHookName:"Optimistic"}),[e,function(){}]},useMemoCache:function(e){var t=h;if(null==t)return[];if(null==(t=null!=t.updateQueue?t.updateQueue.memoCache:null))return[];var n=t.data[t.index];if(void 0===n){n=t.data[t.index]=Array(e);for(var r=0;r<e;r++)n[r]=u}return t.index++,n},useCacheRefresh:function(){var e=y();return f.push({displayName:null,primitive:"CacheRefresh",stackError:Error(),value:null!==e?e.memoizedState:function(){},debugInfo:null,dispatcherHookName:"CacheRefresh"}),function(){}},useEffectEvent:function(e){return y(),f.push({displayName:null,primitive:"EffectEvent",stackError:Error(),value:e,debugInfo:null,dispatcherHookName:"EffectEvent"}),e}},w="undefined"==typeof Proxy?_:new Proxy(_,{get:function(e,t){if(e.hasOwnProperty(t))return e[t];throw(e=Error("Missing method in Dispatcher: "+t)).name="ReactDebugToolsUnsupportedHookError",e}}),S=0;function E(e,t,n){var r=t[n].source,o=0;e:for(;o<e.length;o++)if(e[o].source===r){for(var i=n+1,a=o+1;i<t.length&&a<e.length;i++,a++)if(e[a].source!==t[i].source)continue e;return o}return-1}function k(e,t){return e=C(e),"HostTransitionStatus"===t?e===t||"FormStatus"===e:e===t}function C(e){if(!e)return"";var t=e.lastIndexOf("[as ");if(-1!==t)return C(e.slice(t+4,-1));if(t=-1===(t=e.lastIndexOf("."))?0:t+1,e.slice(t).startsWith("unstable_")&&(t+=9),e.slice(t).startsWith("experimental_")&&(t+=13),"use"===e.slice(t,t+3)){if(3===e.length-t)return"Use";t+=3}return e.slice(t)}function x(e,t){for(var n=[],r=null,i=n,a=0,s=[],l=0;l<t.length;l++){var u=t[l],c=e,f=o.parse(u.stackError);e:{var d=f,h=E(d,c,S);if(-1!==h)c=h;else{for(var m=0;m<c.length&&5>m;m++)if(-1!==(h=E(d,c,m))){S=m,c=h;break e}c=-1}}e:{if(d=f,void 0!==(h=p().get(u.primitive)))for(m=0;m<h.length&&m<d.length;m++)if(h[m].source!==d[m].source){m<d.length-1&&k(d[m].functionName,u.dispatcherHookName)&&m++,m<d.length-1&&k(d[m].functionName,u.dispatcherHookName)&&m++,d=m;break e}d=-1}if(d=(f=-1===c||-1===d||2>c-d?-1===d?[null,null]:[f[d-1],null]:[f[d-1],f.slice(d,c-1)])[0],f=f[1],null===(c=u.displayName)&&null!==d&&(c=C(d.functionName)||C(u.dispatcherHookName)),null!==f){if(d=0,null!==r){for(;d<f.length&&d<r.length&&f[f.length-d-1].source===r[r.length-d-1].source;)d++;for(r=r.length-1;r>d;r--)i=s.pop()}for(r=f.length-d-1;1<=r;r--)d=[],h=f[r],h={id:null,isStateEditable:!1,name:C(f[r-1].functionName),value:void 0,subHooks:d,debugInfo:null,hookSource:{lineNumber:h.lineNumber,columnNumber:h.columnNumber,functionName:h.functionName,fileName:h.fileName}},i.push(h),s.push(i),i=d;r=f}d=u.primitive,h=u.debugInfo,u={id:"Context"===d||"Context (use)"===d||"DebugValue"===d||"Promise"===d||"Unresolved"===d||"HostTransitionStatus"===d?null:a++,isStateEditable:"Reducer"===d||"State"===d,name:c||d,value:u.value,subHooks:[],debugInfo:h,hookSource:null},c={lineNumber:null,functionName:null,fileName:null,columnNumber:null},f&&1<=f.length&&(f=f[0],c.lineNumber=f.lineNumber,c.functionName=f.functionName,c.fileName=f.fileName,c.columnNumber=f.columnNumber),u.hookSource=c,i.push(u)}return I(n,null),n}function I(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r];"DebugValue"===o.name&&0===o.subHooks.length?(e.splice(r,1),r--,n.push(o)):I(o.subHooks,o)}null!==t&&(1===n.length?t.value=n[0].value:1<n.length&&(t.value=n.map(function(e){return e.value})))}function O(e){if(e!==b){if(e instanceof Error&&"ReactDebugToolsUnsupportedHookError"===e.name)throw e;var t=Error("Error rendering inspected component",{cause:e});throw t.name="ReactDebugToolsRenderError",t.cause=e,t}}t.inspectHooksOfFiber=function(e,t){if(null==t&&(t=s),0!==e.tag&&15!==e.tag&&11!==e.tag)throw Error("Unknown Fiber. Needs to be a function component to inspect hooks.");if(p(),m=e.memoizedState,h=e,c.call(h,"dependencies")){var n=h.dependencies;v=null!==n?n.firstContext:null}else if(c.call(h,"dependencies_old"))n=h.dependencies_old,v=null!==n?n.firstContext:null;else if(c.call(h,"dependencies_new"))n=h.dependencies_new,v=null!==n?n.firstContext:null;else{if(!c.call(h,"contextDependencies"))throw Error("Unsupported React version. This is a bug in React Debug Tools.");n=h.contextDependencies,v=null!==n?n.first:null}n=e.type;var r=e.memoizedProps;if(n!==e.elementType&&n&&n.defaultProps){r=a({},r);var i=n.defaultProps;for(l in i)void 0===r[l]&&(r[l]=i[l])}var l=new Map;try{if(null!==v&&!c.call(v,"memoizedValue"))for(i=e;i;){if(10===i.tag){var u=i.type;void 0!==u._context&&(u=u._context),l.has(u)||(l.set(u,u._currentValue),u._currentValue=i.memoizedProps.value)}i=i.return}if(11===e.tag){var d=n.render;u=r;var y=e.ref,g=(e=t).H;e.H=w;try{var b=Error();d(u,y)}catch(S){O(S)}finally{var _=f;f=[],e.H=g}return x(o.parse(b),_)}return function(e,t,n){null==n&&(n=s);var r=n.H;n.H=w;try{var i=Error();e(t)}catch(S){O(S)}finally{e=f,f=[],n.H=r}return x(n=o.parse(i),e)}(n,r,t)}finally{v=m=h=null,l.forEach(function(e,t){return t._currentValue=e})}}},987:(e,t,n)=>{e.exports=n(786)},126:(e,t,n)=>{var r=n(169);
12
- /**
13
- * @license React
14
- * react.production.js
15
- *
16
- * Copyright (c) Meta Platforms, Inc. and affiliates.
17
- *
18
- * This source code is licensed under the MIT license found in the
19
- * LICENSE file in the root directory of this source tree.
20
- */function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),g=Symbol.for("react.postpone"),b=Symbol.for("react.view_transition"),_=Symbol.iterator,w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,E={};function k(e,t,n){this.props=e,this.context=t,this.refs=E,this.updater=n||w}function C(){}function x(e,t,n){this.props=e,this.context=t,this.refs=E,this.updater=n||w}k.prototype.isReactComponent={},k.prototype.setState=function(e,t){if("object"!==o(e)&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},k.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},C.prototype=k.prototype;var I=x.prototype=new C;I.constructor=x,S(I,k.prototype),I.isPureReactComponent=!0;var O=Array.isArray;function T(){}var N={H:null,A:null,T:null,S:null,G:null},P=Object.prototype.hasOwnProperty;function A(e,t,n,r,o,a){return n=a.ref,{$$typeof:i,type:e,key:t,ref:void 0!==n?n:null,props:a}}function D(e){return"object"===o(e)&&null!==e&&e.$$typeof===i}var R=/\/+/g;function L(e,t){return"object"===o(e)&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function M(e,t,n,r,s){var l=o(e);"undefined"!==l&&"boolean"!==l||(e=null);var u,c,f=!1;if(null===e)f=!0;else switch(l){case"bigint":case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case i:case a:f=!0;break;case v:return M((f=e._init)(e._payload),t,n,r,s)}}if(f)return s=s(e),f=""===r?"."+L(e,0):r,O(s)?(n="",null!=f&&(n=f.replace(R,"$&/")+"/"),M(s,t,n,"",function(e){return e})):null!=s&&(D(s)&&(u=s,c=n+(null==s.key||e&&e.key===s.key?"":(""+s.key).replace(R,"$&/")+"/")+f,s=A(u.type,c,void 0,0,0,u.props)),t.push(s)),1;f=0;var d,p=""===r?".":r+":";if(O(e))for(var h=0;h<e.length;h++)f+=M(r=e[h],t,n,l=p+L(r,h),s);else if("function"==typeof(h=null===(d=e)||"object"!==o(d)?null:"function"==typeof(d=_&&d[_]||d["@@iterator"])?d:null))for(e=h.call(e),h=0;!(r=e.next()).done;)f+=M(r=r.value,t,n,l=p+L(r,h++),s);else if("object"===l){if("function"==typeof e.then)return M(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(T,T):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,n,r,s);throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return f}function j(e,t,n){if(null==e)return e;var r=[],o=0;return M(e,r,"","",function(e){return t.call(n,e,o++)}),r}function F(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}function H(e,t){return N.H.useOptimistic(e,t)}var U="function"==typeof reportError?reportError:function(e){if("object"===("undefined"==typeof window?"undefined":o(window))&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===o(e)&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"===(void 0===r?"undefined":o(r))&&"function"==typeof r.emit)return void r.emit("uncaughtException",e);console.error(e)};function B(e){var t=N.T,n={};n.types=null!==t?t.types:null,n.gesture=null,N.T=n;try{var r=e(),i=N.S;null!==i&&i(n,r),"object"===o(r)&&null!==r&&"function"==typeof r.then&&r.then(T,U)}catch(a){U(a)}finally{null!==t&&null!==n.types&&(t.types=n.types),N.T=t}}t.Children={map:j,forEach:function(e,t,n){j(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return j(e,function(){t++}),t},toArray:function(e){return j(e,function(e){return e})||[]},only:function(e){if(!D(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=k,t.Fragment=s,t.Profiler=u,t.PureComponent=x,t.StrictMode=l,t.Suspense=p,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return N.H.useMemoCache(e)}},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cacheSignal=function(){return null},t.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=S({},e.props),o=e.key;if(null!=t)for(i in t.ref,void 0!==t.key&&(o=""+t.key),t)!P.call(t,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===t.ref||(r[i]=t[i]);var i=arguments.length-2;if(1===i)r.children=n;else if(1<i){for(var a=Array(i),s=0;s<i;s++)a[s]=arguments[s+2];r.children=a}return A(e.type,o,void 0,0,0,r)},t.createContext=function(e){return(e={$$typeof:f,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:c,_context:e},e},t.createElement=function(e,t,n){var r,o={},i=null;if(null!=t)for(r in void 0!==t.key&&(i=""+t.key),t)P.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var a=arguments.length-2;if(1===a)o.children=n;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];o.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===o[r]&&(o[r]=a[r]);return A(e,i,void 0,0,0,o)},t.createRef=function(){return{current:null}},t.experimental_useEffectEvent=function(e){return N.H.useEffectEvent(e)},t.experimental_useOptimistic=function(e,t){return H(e,t)},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=D,t.lazy=function(e){return{$$typeof:v,_payload:{_status:-1,_result:e},_init:F}},t.memo=function(e,t){return{$$typeof:m,type:e,compare:void 0===t?null:t}},t.startTransition=B,t.unstable_Activity=y,t.unstable_SuspenseList=h,t.unstable_ViewTransition=b,t.unstable_addTransitionType=function e(t){var n=N.T;if(null!==n){var r=n.types;null===r?n.types=[t]:-1===r.indexOf(t)&&r.push(t)}else B(e.bind(null,t))},t.unstable_getCacheForType=function(e){var t=N.A;return t?t.getCacheForType(e):e()},t.unstable_postpone=function(e){throw(e=Error(e)).$$typeof=g,e},t.unstable_startGestureTransition=function(e,t,n){if(null==e)throw Error("A Timeline is required as the first argument to startGestureTransition.");var r=N.T,o={types:null};o.gesture=e,N.T=o;try{t();var i=N.G;if(null!==i)return i(o,e,n)}catch(a){U(a)}finally{N.T=r}return T},t.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},t.use=function(e){return N.H.use(e)},t.useActionState=function(e,t,n){return N.H.useActionState(e,t,n)},t.useCallback=function(e,t){return N.H.useCallback(e,t)},t.useContext=function(e){return N.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return N.H.useDeferredValue(e,t)},t.useEffect=function(e,t){return N.H.useEffect(e,t)},t.useId=function(){return N.H.useId()},t.useImperativeHandle=function(e,t,n){return N.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return N.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return N.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return N.H.useMemo(e,t)},t.useOptimistic=H,t.useReducer=function(e,t,n){return N.H.useReducer(e,t,n)},t.useRef=function(e){return N.H.useRef(e)},t.useState=function(e){return N.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return N.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return N.H.useTransition()},t.version="19.2.0-experimental-5d87cd22-20250704"},189:(e,t,n)=>{e.exports=n(126)},206:function(e,t,n){var r,o,i;o=[n(430)],void 0===(i="function"==typeof(r=function(e){var t=/(^|@)\S+:\d+/,n=/^\s*at .*(\S+:\d+|\(native\))/m,r=/^(eval@)?(\[native code])?$/;return{parse:function(e){if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(n))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw new Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(t){return t.stack.split("\n").filter(function(e){return!!e.match(n)},this).map(function(t){t.indexOf("(eval ")>-1&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var n=t.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=n.match(/ (\((.+):(\d+):(\d+)\)$)/),o=(n=r?n.replace(r[0],""):n).split(/\s+/).slice(1),i=this.extractLocation(r?r[1]:o.pop()),a=o.join(" ")||void 0,s=["eval","<anonymous>"].indexOf(i[0])>-1?void 0:i[0];return new e({functionName:a,fileName:s,lineNumber:i[1],columnNumber:i[2],source:t})},this)},parseFFOrSafari:function(t){return t.stack.split("\n").filter(function(e){return!e.match(r)},this).map(function(t){if(t.indexOf(" > eval")>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===t.indexOf("@")&&-1===t.indexOf(":"))return new e({functionName:t});var n=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=t.match(n),o=r&&r[1]?r[1]:void 0,i=this.extractLocation(t.replace(n,""));return new e({functionName:o,fileName:i[0],lineNumber:i[1],columnNumber:i[2],source:t})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split("\n"),o=[],i=2,a=r.length;i<a;i+=2){var s=n.exec(r[i]);s&&o.push(new e({fileName:s[2],lineNumber:s[1],source:r[i]}))}return o},parseOpera10:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=t.stacktrace.split("\n"),o=[],i=0,a=r.length;i<a;i+=2){var s=n.exec(r[i]);s&&o.push(new e({functionName:s[3]||void 0,fileName:s[2],lineNumber:s[1],source:r[i]}))}return o},parseOpera11:function(n){return n.stack.split("\n").filter(function(e){return!!e.match(t)&&!e.match(/^Error created at/)},this).map(function(t){var n,r=t.split("@"),o=this.extractLocation(r.pop()),i=r.shift()||"",a=i.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;i.match(/\(([^)]*)\)/)&&(n=i.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var s=void 0===n||"[arguments not available]"===n?void 0:n.split(",");return new e({functionName:a,args:s,fileName:o[0],lineNumber:o[1],columnNumber:o[2],source:t})},this)}}})?r.apply(t,o):r)||(e.exports=i)},730:(e,t,n)=>{function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}var i=n(695),a=Symbol("max"),s=Symbol("length"),l=Symbol("lengthCalculator"),u=Symbol("allowStale"),c=Symbol("maxAge"),f=Symbol("dispose"),d=Symbol("noDisposeOnSet"),p=Symbol("lruList"),h=Symbol("cache"),m=Symbol("updateAgeOnGet"),v=function(){return 1},y=function(){return o(function e(t){if(r(this,e),"number"==typeof t&&(t={max:t}),t||(t={}),t.max&&("number"!=typeof t.max||t.max<0))throw new TypeError("max must be a non-negative number");this[a]=t.max||1/0;var n=t.length||v;if(this[l]="function"!=typeof n?v:n,this[u]=t.stale||!1,t.maxAge&&"number"!=typeof t.maxAge)throw new TypeError("maxAge must be a number");this[c]=t.maxAge||0,this[f]=t.dispose,this[d]=t.noDisposeOnSet||!1,this[m]=t.updateAgeOnGet||!1,this.reset()},[{key:"max",get:function(){return this[a]},set:function(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[a]=e||1/0,_(this)}},{key:"allowStale",get:function(){return this[u]},set:function(e){this[u]=!!e}},{key:"maxAge",get:function(){return this[c]},set:function(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[c]=e,_(this)}},{key:"lengthCalculator",get:function(){return this[l]},set:function(e){var t=this;"function"!=typeof e&&(e=v),e!==this[l]&&(this[l]=e,this[s]=0,this[p].forEach(function(e){e.length=t[l](e.value,e.key),t[s]+=e.length})),_(this)}},{key:"length",get:function(){return this[s]}},{key:"itemCount",get:function(){return this[p].length}},{key:"rforEach",value:function(e,t){t=t||this;for(var n=this[p].tail;null!==n;){var r=n.prev;E(this,e,n,t),n=r}}},{key:"forEach",value:function(e,t){t=t||this;for(var n=this[p].head;null!==n;){var r=n.next;E(this,e,n,t),n=r}}},{key:"keys",value:function(){return this[p].toArray().map(function(e){return e.key})}},{key:"values",value:function(){return this[p].toArray().map(function(e){return e.value})}},{key:"reset",value:function(){var e=this;this[f]&&this[p]&&this[p].length&&this[p].forEach(function(t){return e[f](t.key,t.value)}),this[h]=new Map,this[p]=new i,this[s]=0}},{key:"dump",value:function(){var e=this;return this[p].map(function(t){return!b(e,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}}).toArray().filter(function(e){return e})}},{key:"dumpLru",value:function(){return this[p]}},{key:"set",value:function(e,t,n){if((n=n||this[c])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");var r=n?Date.now():0,o=this[l](t,e);if(this[h].has(e)){if(o>this[a])return w(this,this[h].get(e)),!1;var i=this[h].get(e).value;return this[f]&&(this[d]||this[f](e,i.value)),i.now=r,i.maxAge=n,i.value=t,this[s]+=o-i.length,i.length=o,this.get(e),_(this),!0}var u=new S(e,t,o,r,n);return u.length>this[a]?(this[f]&&this[f](e,t),!1):(this[s]+=u.length,this[p].unshift(u),this[h].set(e,this[p].head),_(this),!0)}},{key:"has",value:function(e){if(!this[h].has(e))return!1;var t=this[h].get(e).value;return!b(this,t)}},{key:"get",value:function(e){return g(this,e,!0)}},{key:"peek",value:function(e){return g(this,e,!1)}},{key:"pop",value:function(){var e=this[p].tail;return e?(w(this,e),e.value):null}},{key:"del",value:function(e){w(this,this[h].get(e))}},{key:"load",value:function(e){this.reset();for(var t=Date.now(),n=e.length-1;n>=0;n--){var r=e[n],o=r.e||0;if(0===o)this.set(r.k,r.v);else{var i=o-t;i>0&&this.set(r.k,r.v,i)}}}},{key:"prune",value:function(){var e=this;this[h].forEach(function(t,n){return g(e,n,!1)})}}])}(),g=function(e,t,n){var r=e[h].get(t);if(r){var o=r.value;if(b(e,o)){if(w(e,r),!e[u])return}else n&&(e[m]&&(r.value.now=Date.now()),e[p].unshiftNode(r));return o.value}},b=function(e,t){if(!t||!t.maxAge&&!e[c])return!1;var n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[c]&&n>e[c]},_=function(e){if(e[s]>e[a])for(var t=e[p].tail;e[s]>e[a]&&null!==t;){var n=t.prev;w(e,t),t=n}},w=function(e,t){if(t){var n=t.value;e[f]&&e[f](n.key,n.value),e[s]-=n.length,e[h].delete(n.key),e[p].removeNode(t)}},S=o(function e(t,n,o,i,a){r(this,e),this.key=t,this.value=n,this.length=o,this.now=i,this.maxAge=a||0}),E=function(e,t,n,r){var o=n.value;b(e,o)&&(w(e,n),e[u]||(o=void 0)),o&&t.call(r,o.value,o.key,e)};e.exports=y},169:e=>{var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,l=[],u=!1,c=-1;function f(){u&&s&&(u=!1,s.length?l=s.concat(l):c=-1,l.length&&d())}function d(){if(!u){var e=a(f);u=!0;for(var t=l.length;t;){for(s=l,l=[];++c<t;)s&&s[c].run();c=-1,t=l.length}s=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(r){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||u||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},430:function(e,t){var n,r,o;r=[],void 0===(o="function"==typeof(n=function(){function e(e){return!isNaN(parseFloat(e))&&isFinite(e)}function t(e){return e.charAt(0).toUpperCase()+e.substring(1)}function n(e){return function(){return this[e]}}var r=["isConstructor","isEval","isNative","isToplevel"],o=["columnNumber","lineNumber"],i=["fileName","functionName","source"],a=["args"],s=r.concat(o,i,a);function l(e){if(e)for(var n=0;n<s.length;n++)void 0!==e[s[n]]&&this["set"+t(s[n])](e[s[n]])}l.prototype={getArgs:function(){return this.args},setArgs:function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("Args must be an Array");this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof l)this.evalOrigin=e;else{if(!(e instanceof Object))throw new TypeError("Eval Origin must be an Object or StackFrame");this.evalOrigin=new l(e)}},toString:function(){var e=this.getFileName()||"",t=this.getLineNumber()||"",n=this.getColumnNumber()||"",r=this.getFunctionName()||"";return this.getIsEval()?e?"[eval] ("+e+":"+t+":"+n+")":"[eval]:"+t+":"+n:r?r+" ("+e+":"+t+":"+n+")":e+":"+t+":"+n}},l.fromString=function(e){var t=e.indexOf("("),n=e.lastIndexOf(")"),r=e.substring(0,t),o=e.substring(t+1,n).split(","),i=e.substring(n+1);if(0===i.indexOf("@"))var a=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(i,""),s=a[1],u=a[2],c=a[3];return new l({functionName:r,args:o||void 0,fileName:s,lineNumber:u||void 0,columnNumber:c||void 0})};for(var u=0;u<r.length;u++)l.prototype["get"+t(r[u])]=n(r[u]),l.prototype["set"+t(r[u])]=function(e){return function(t){this[e]=Boolean(t)}}(r[u]);for(var c=0;c<o.length;c++)l.prototype["get"+t(o[c])]=n(o[c]),l.prototype["set"+t(o[c])]=function(t){return function(n){if(!e(n))throw new TypeError(t+" must be a Number");this[t]=Number(n)}}(o[c]);for(var f=0;f<i.length;f++)l.prototype["get"+t(i[f])]=n(i[f]),l.prototype["set"+t(i[f])]=function(e){return function(t){this[e]=String(t)}}(i[f]);return l})?n.apply(t,r):n)||(e.exports=o)},476:e=>{e.exports=function(e){e.prototype[Symbol.iterator]=regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=this.head;case 1:if(!t){e.next=7;break}return e.next=4,t.value;case 4:t=t.next,e.next=1;break;case 7:case"end":return e.stop()}},e,this)})}},695:(e,t,n)=>{function r(e){var t=this;if(t instanceof r||(t=new r),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e)});else if(arguments.length>0)for(var n=0,o=arguments.length;n<o;n++)t.push(arguments[n]);return t}function o(e,t,n){var r=t===e.head?new s(n,null,t,e):new s(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function i(e,t){e.tail=new s(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function a(e,t){e.head=new s(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function s(e,t,n,r){if(!(this instanceof s))return new s(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}e.exports=r,r.Node=s,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},r.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)i(this,arguments[e]);return this.length},r.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)a(this,arguments[e]);return this.length},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},r.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},r.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},r.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},r.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},r.prototype.map=function(e,t){t=t||this;for(var n=new r,o=this.head;null!==o;)n.push(e.call(t,o.value,this)),o=o.next;return n},r.prototype.mapReverse=function(e,t){t=t||this;for(var n=new r,o=this.tail;null!==o;)n.push(e.call(t,o.value,this)),o=o.prev;return n},r.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var o=0;null!==r;o++)n=e(n,r.value,o),r=r.next;return n},r.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var o=this.length-1;null!==r;o--)n=e(n,r.value,o),r=r.prev;return n},r.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},r.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var o=0,i=this.head;null!==i&&o<e;o++)i=i.next;for(;null!==i&&o<t;o++,i=i.next)n.push(i.value);return n},r.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var o=this.length,i=this.tail;null!==i&&o>t;o--)i=i.prev;for(;null!==i&&o>e;o--,i=i.prev)n.push(i.value);return n},r.prototype.splice=function(e,t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,r=this.head;null!==r&&n<e;n++)r=r.next;var i=[];for(n=0;r&&n<t;n++)i.push(r.value),r=this.removeNode(r);for(null===r&&(r=this.tail),r!==this.head&&r!==this.tail&&(r=r.prev),n=2;n<arguments.length;n++)r=o(this,r,arguments[n]);return i},r.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{n(476)(r)}catch(l){}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{function e(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}n.r(r),n.d(r,{connectToDevTools:()=>Go,connectWithCustomMessagingProtocol:()=>qo,initialize:()=>$o});var t=function(){return e(function e(){var t,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n="listenersMap",r=new Map,n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r},[{key:"addListener",value:function(e,t){var n=this.listenersMap.get(e);void 0===n?this.listenersMap.set(e,[t]):n.indexOf(t)<0&&n.push(t)}},{key:"emit",value:function(e){var t=this.listenersMap.get(e);if(void 0!==t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];if(1===t.length)t[0].apply(null,r);else{for(var i=!1,a=null,s=Array.from(t),l=0;l<s.length;l++){var u=s[l];try{u.apply(null,r)}catch(c){null===a&&(i=!0,a=c)}}if(i)throw a}}}},{key:"removeAllListeners",value:function(){this.listenersMap.clear()}},{key:"removeListener",value:function(e,t){var n=this.listenersMap.get(e);if(void 0!==n){var r=n.indexOf(t);r>=0&&n.splice(r,1)}}}])}(),o=1,i=2,a=3,s=4,l=5,u=7,c=1,f=2,d="React::DevTools::lastSelection",p="%s",h="%s %o";function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var g=function(e,t){var n=_(e),r=_(t),o=n.pop(),i=r.pop(),a=k(n,r);return 0!==a?a:o&&i?k(o.split("."),i.split(".")):o||i?o?-1:1:0},b=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,_=function(e){if("string"!=typeof e)throw new TypeError("Invalid argument expected string");var t=e.match(b);if(!t)throw new Error("Invalid argument not valid semver ('".concat(e,"' received)"));return t.shift(),t},w=function(e){return"*"===e||"x"===e||"X"===e},S=function(e){var t=parseInt(e,10);return isNaN(t)?e:t},E=function(e,t){if(w(e)||w(t))return 0;var n=function(e,t){return m(e)!==m(t)?[String(e),String(t)]:[e,t]}(S(e),S(t)),r=v(n,2),o=r[0],i=r[1];return o>i?1:o<i?-1:0},k=function(e,t){for(var n=0;n<Math.max(e.length,t.length);n++){var r=E(e[n]||"0",t[n]||"0");if(0!==r)return r}return 0},C=n(730),x=n.n(C),I=Symbol.for("react.element"),O=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),R=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),U=Symbol.for("react.tracing_marker"),B=Symbol.for("react.view_transition"),V=1,z=2,W=5,$=6,G=7,q=8,Y=9,K=10,Q=11,X=12,J=13,Z=14,ee=15,te=16,ne=17,re=1,oe=2,ie=3,ae=4,se=5,le=1;const ue=Array.isArray;function ce(e){return(ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fe(e){return function(e){if(Array.isArray(e))return de(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return de(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?de(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function de(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n(169);var pe=Object.prototype.hasOwnProperty,he=new WeakMap,me=new(x())({max:1e3}),ve=Symbol.for("react.provider");function ye(e,t){return e.toString()>t.toString()?1:t.toString()>e.toString()?-1:0}function ge(e){for(var t=new Set,n=e,r=function(){var e=[].concat(fe(Object.keys(n)),fe(Object.getOwnPropertySymbols(n))),r=Object.getOwnPropertyDescriptors(n);e.forEach(function(e){r[e].enumerable&&t.add(e)}),n=Object.getPrototypeOf(n)};null!=n;)r();return t}function be(e,t,n,r){return(null==e?void 0:e.displayName)||"".concat(n,"(").concat(_e(t,r),")")}function _e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Anonymous",n=he.get(e);if(null!=n)return n;var r=t;return"string"==typeof e.displayName?r=e.displayName:"string"==typeof e.name&&""!==e.name&&(r=e.name),he.set(e,r),r}var we=0;function Se(){return++we}function Ee(e,t){return((1023&e)<<10)+(1023&t)+65536}function ke(e){var t=me.get(e);if(void 0!==t)return t;for(var n,r=[],o=0;o<e.length;)55296==(63488&(n=e.charCodeAt(o)))?r.push(Ee(n,e.charCodeAt(++o))):r.push(n),++o;return me.set(e,r),r}function Ce(){return[{type:re,value:G,isEnabled:!0}]}function xe(e,t){return t.reduce(function(e,t){if(e){if(pe.call(e,t))return e[t];if("function"==typeof e[Symbol.iterator])return Array.from(e)[t]}return null},e)}function Ie(e,t){var n=t.length,r=t[n-1];if(null!=e){var o=xe(e,t.slice(0,n-1));o&&(ue(o)?o.splice(r,1):delete o[r])}}function Oe(e,t,n){var r=t.length;if(null!=e){var o=xe(e,t.slice(0,r-1));if(o){var i=t[r-1];o[n[r-1]]=o[i],ue(o)?o.splice(i,1):delete o[i]}}}function Te(e,t,n){var r=t.length,o=t[r-1];if(null!=e){var i=xe(e,t.slice(0,r-1));i&&(i[o]=n)}}function Ne(e){if(null===e)return"null";if(void 0===e)return"undefined";if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return"html_element";switch(ce(e)){case"bigint":return"bigint";case"boolean":return"boolean";case"function":return"function";case"number":return Number.isNaN(e)?"nan":Number.isFinite(e)?"number":"infinity";case"object":if(e.$$typeof===O||e.$$typeof===I)return"react_element";if(ue(e))return"array";if(ArrayBuffer.isView(e))return pe.call(e.constructor,"BYTES_PER_ELEMENT")?"typed_array":"data_view";if(e.constructor&&"ArrayBuffer"===e.constructor.name)return"array_buffer";if("function"==typeof e[Symbol.iterator]){var t=e[Symbol.iterator]();if(t)return t===e?"opaque_iterator":"iterator"}else{if(e.constructor&&"RegExp"===e.constructor.name)return"regexp";if("function"==typeof e.then)return"thenable";if(function(e){if("name"in e&&"message"in e)for(;e;){if("[object Error]"===Object.prototype.toString.call(e))return!0;e=Object.getPrototypeOf(e)}return!1}(e))return"error";var n=Object.prototype.toString.call(e);if("[object Date]"===n)return"date";if("[object HTMLAllCollection]"===n)return"html_all_collection"}return Le(e)?"object":"class_instance";case"string":return"string";case"symbol":return"symbol";case"undefined":return"[object HTMLAllCollection]"===Object.prototype.toString.call(e)?"html_all_collection":"undefined";default:return"unknown"}}function Pe(e){var t=function(e){if("object"===ce(e)&&null!==e){var t=e.$$typeof;switch(t){case O:case I:var n=e.type;switch(n){case N:case A:case P:case M:case j:case B:return n;default:var r=n&&n.$$typeof;switch(r){case R:case L:case H:case F:case D:return r;default:return t}}case T:return t}}}(e);switch(t){case D:return"ContextConsumer";case ve:return"ContextProvider";case R:return"Context";case L:return"ForwardRef";case N:return"Fragment";case H:return"Lazy";case F:return"Memo";case T:return"Portal";case A:return"Profiler";case P:return"StrictMode";case M:return"Suspense";case j:return"SuspenseList";case B:return"ViewTransition";case U:return"TracingMarker";default:var n=e.type;return"string"==typeof n?n:"function"==typeof n?_e(n,"Anonymous"):null!=n?"NotImplementedInDevtools":"Element"}}var Ae=50;function De(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ae;return e.length>t?e.slice(0,t)+"…":e}function Re(e,t){if(null!=e&&pe.call(e,Fe.type))return t?e[Fe.preview_long]:e[Fe.preview_short];switch(Ne(e)){case"html_element":return"<".concat(De(e.tagName.toLowerCase())," />");case"function":return"function"==typeof e.name||""===e.name?"() => {}":"".concat(De(e.name),"() {}");case"string":return'"'.concat(e,'"');case"bigint":return De(e.toString()+"n");case"regexp":case"symbol":return De(e.toString());case"react_element":return"<".concat(De(Pe(e)||"Unknown")," />");case"array_buffer":return"ArrayBuffer(".concat(e.byteLength,")");case"data_view":return"DataView(".concat(e.buffer.byteLength,")");case"array":if(t){for(var n="",r=0;r<e.length&&(r>0&&(n+=", "),!((n+=Re(e[r],!1)).length>Ae));r++);return"[".concat(De(n),"]")}var o=pe.call(e,Fe.size)?e[Fe.size]:e.length;return"Array(".concat(o,")");case"typed_array":var i="".concat(e.constructor.name,"(").concat(e.length,")");if(t){for(var a="",s=0;s<e.length&&(s>0&&(a+=", "),!((a+=e[s]).length>Ae));s++);return"".concat(i," [").concat(De(a),"]")}return i;case"iterator":var l=e.constructor.name;if(t){for(var u=Array.from(e),c="",f=0;f<u.length;f++){var d=u[f];if(f>0&&(c+=", "),ue(d)){var p=Re(d[0],!0),h=Re(d[1],!1);c+="".concat(p," => ").concat(h)}else c+=Re(d,!1);if(c.length>Ae)break}return"".concat(l,"(").concat(e.size,") {").concat(De(c),"}")}return"".concat(l,"(").concat(e.size,")");case"opaque_iterator":return e[Symbol.toStringTag];case"date":return e.toString();case"class_instance":try{var m=e.constructor.name;if("string"==typeof m)return m;if("string"==typeof(m=Object.getPrototypeOf(e).constructor.name))return m;try{return De(String(e))}catch(k){return"unserializable"}}catch(k){return"unserializable"}case"thenable":var v;if(Le(e))v="Thenable";else{var y=e.constructor.name;"string"!=typeof y&&(y=Object.getPrototypeOf(e).constructor.name),v="string"==typeof y?y:"Thenable"}switch(e.status){case"pending":return"pending ".concat(v);case"fulfilled":if(t){var g=Re(e.value,!1);return"fulfilled ".concat(v," {").concat(De(g),"}")}return"fulfilled ".concat(v," {…}");case"rejected":if(t){var b=Re(e.reason,!1);return"rejected ".concat(v," {").concat(De(b),"}")}return"rejected ".concat(v," {…}");default:return v}case"object":if(t){for(var _=Array.from(ge(e)).sort(ye),w="",S=0;S<_.length;S++){var E=_[S];if(S>0&&(w+=", "),(w+="".concat(E.toString(),": ").concat(Re(e[E],!1))).length>Ae)break}return"{".concat(De(w),"}")}return"{…}";case"error":return De(String(e));case"boolean":case"number":case"infinity":case"nan":case"null":case"undefined":return String(e);default:try{return De(String(e))}catch(k){return"unserializable"}}}var Le=function(e){var t=Object.getPrototypeOf(e);return!t||!Object.getPrototypeOf(t)};function Me(){var e=!1;try{localStorage.getItem("test"),e=!0}catch(t){}return e&&!!(window.document&&window.document.featurePolicy&&window.document.featurePolicy.allowsFeature("sync-xhr"))}function je(e){return(je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Fe={preview_long:Symbol("preview_long"),preview_short:Symbol("preview_short"),size:Symbol("size"),type:Symbol("type")},He=2;function Ue(e,t,n,r,o){r.push(o);var i={inspectable:t,type:e,preview_long:Re(n,!0),preview_short:Re(n,!1),name:"function"!=typeof n.constructor||"string"!=typeof n.constructor.name||"Object"===n.constructor.name?"":n.constructor.name};return"array"===e||"typed_array"===e?i.size=n.length:"object"===e&&(i.size=Object.keys(n).length),"iterator"!==e&&"typed_array"!==e||(i.readonly=!0),i}function Be(e,t,n,r,o){var i,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,s=Ne(e);switch(s){case"html_element":return t.push(r),{inspectable:!1,preview_short:Re(e,!1),preview_long:Re(e,!0),name:e.tagName,type:s};case"function":return t.push(r),{inspectable:!1,preview_short:Re(e,!1),preview_long:Re(e,!0),name:"function"!=typeof e.name&&e.name?e.name:"function",type:s};case"string":return(i=o(r))||e.length<=500?e:e.slice(0,500)+"...";case"bigint":case"symbol":return t.push(r),{inspectable:!1,preview_short:Re(e,!1),preview_long:Re(e,!0),name:e.toString(),type:s};case"react_element":return t.push(r),{inspectable:!1,preview_short:Re(e,!1),preview_long:Re(e,!0),name:Pe(e)||"Unknown",type:s};case"array_buffer":case"data_view":return t.push(r),{inspectable:!1,preview_short:Re(e,!1),preview_long:Re(e,!0),name:"data_view"===s?"DataView":"ArrayBuffer",size:e.byteLength,type:s};case"array":if(i=o(r),a>=He&&!i)return Ue(s,!0,e,t,r);for(var l=[],u=0;u<e.length;u++)l[u]=Ve(e,u,t,n,r.concat([u]),o,i?1:a+1);return l;case"html_all_collection":case"typed_array":case"iterator":if(i=o(r),a>=He&&!i)return Ue(s,!0,e,t,r);var c={unserializable:!0,type:s,readonly:!0,size:"typed_array"===s?e.length:void 0,preview_short:Re(e,!1),preview_long:Re(e,!0),name:"function"!=typeof e.constructor||"string"!=typeof e.constructor.name||"Object"===e.constructor.name?"":e.constructor.name};return Array.from(e).forEach(function(e,s){return c[s]=Be(e,t,n,r.concat([s]),o,i?1:a+1)}),n.push(r),c;case"opaque_iterator":return t.push(r),{inspectable:!1,preview_short:Re(e,!1),preview_long:Re(e,!0),name:e[Symbol.toStringTag],type:s};case"date":case"regexp":return t.push(r),{inspectable:!1,preview_short:Re(e,!1),preview_long:Re(e,!0),name:e.toString(),type:s};case"thenable":if(i=o(r),a>=He&&!i)return{inspectable:"fulfilled"===e.status||"rejected"===e.status,preview_short:Re(e,!1),preview_long:Re(e,!0),name:e.toString(),type:s};switch(e.status){case"fulfilled":var f={unserializable:!0,type:s,preview_short:Re(e,!1),preview_long:Re(e,!0),name:"fulfilled Thenable"};return f.value=Be(e.value,t,n,r.concat(["value"]),o,i?1:a+1),n.push(r),f;case"rejected":var d={unserializable:!0,type:s,preview_short:Re(e,!1),preview_long:Re(e,!0),name:"rejected Thenable"};return d.reason=Be(e.reason,t,n,r.concat(["reason"]),o,i?1:a+1),n.push(r),d;default:return t.push(r),{inspectable:!1,preview_short:Re(e,!1),preview_long:Re(e,!0),name:e.toString(),type:s}}case"object":if(i=o(r),a>=He&&!i)return Ue(s,!0,e,t,r);var p={};return ge(e).forEach(function(s){var l=s.toString();p[l]=Ve(e,s,t,n,r.concat([l]),o,i?1:a+1)}),p;case"class_instance":if(i=o(r),a>=He&&!i)return Ue(s,!0,e,t,r);var h={unserializable:!0,type:s,readonly:!0,preview_short:Re(e,!1),preview_long:Re(e,!0),name:"function"!=typeof e.constructor||"string"!=typeof e.constructor.name?"":e.constructor.name};return ge(e).forEach(function(s){var l=s.toString();h[l]=Be(e[s],t,n,r.concat([l]),o,i?1:a+1)}),n.push(r),h;case"error":if(i=o(r),a>=He&&!i)return Ue(s,!0,e,t,r);var m={unserializable:!0,type:s,readonly:!0,preview_short:Re(e,!1),preview_long:Re(e,!0),name:e.name};return m.message=Be(e.message,t,n,r.concat(["message"]),o,i?1:a+1),m.stack=Be(e.stack,t,n,r.concat(["stack"]),o,i?1:a+1),"cause"in e&&(m.cause=Be(e.cause,t,n,r.concat(["cause"]),o,i?1:a+1)),ge(e).forEach(function(s){var l=s.toString();m[l]=Be(e[s],t,n,r.concat([l]),o,i?1:a+1)}),n.push(r),m;case"infinity":case"nan":case"undefined":return t.push(r),{type:s};default:return e}}function Ve(e,t,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;try{return Be(e[t],n,r,o,i,a)}catch(l){var s="";return"object"===je(l)&&null!==l&&"string"==typeof l.stack?s=l.stack:"string"==typeof l&&(s=l),n.push(o),{inspectable:!1,preview_short:"[Exception]",preview_long:s?"[Exception: "+s+"]":"[Exception]",name:s,type:"unknown"}}}var ze=Array.isArray;const We=function(e){return ze(e)};function $e(e){var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var n=e.stack;return Error.prepareStackTrace=t,Ge(n)}function Ge(e){e.startsWith("Error: react-stack-top-frame\n")&&(e=e.slice(29));var t=e.indexOf("\n");return-1!==t&&(e=e.slice(t+1)),-1===(t=e.indexOf("react_stack_bottom_frame"))&&(t=e.indexOf("react-stack-bottom-frame")),-1!==t&&(t=e.lastIndexOf("\n",t)),-1===t?"":e=e.slice(0,t)}function qe(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=Ke(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Ye(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||Ke(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ke(e,t){if(e){if("string"==typeof e)return Qe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qe(e,t):void 0}}function Qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Xe(e){return(Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(n),!0).forEach(function(t){et(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Je(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function et(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tt="999.9.9";function nt(e,t){if(null!==e){var n=[],r=[];return{data:Be(e,n,r,arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],t),cleaned:n,unserializable:r}}return null}function rt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=t[n],o=We(e)?e.slice():Ze({},e);return n+1===t.length?We(o)?o.splice(r,1):delete o[r]:o[r]=rt(e[r],t,n+1),o}function ot(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=t[r],i=We(e)?e.slice():Ze({},e);return r+1===t.length?(i[n[r]]=i[o],We(i)?i.splice(o,1):delete i[o]):i[o]=ot(e[o],t,n,r+1),i}function it(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(r>=t.length)return n;var o=t[r],i=We(e)?e.slice():Ze({},e);return i[o]=it(e[o],t,n,r+1),i}function at(e){if(void 0===e)return"undefined";if("function"==typeof e)return e.toString();var t=new Set;return JSON.stringify(e,function(e,n){if("object"===Xe(n)&&null!==n){if(t.has(n))return;t.add(n)}return"bigint"==typeof n?n.toString()+"n":n},2)}function st(e){try{return String(e)}catch(t){if("object"===Xe(e))return"[object Object]";throw t}}function lt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=n.slice(),i=st(e);if("string"==typeof e&&o.length&&(i=i.replace(/(%?)(%([jds]))/g,function(e,t,n,r){var i=o.shift();switch(r){case"s":i+="";break;case"d":case"i":i=parseInt(i,10).toString();break;case"f":i=parseFloat(i).toString()}return t?(o.unshift(i),e):i})),o.length)for(var a=0;a<o.length;a++)i+=" "+st(o[a]);return i=i.replace(/%{2,2}/g,"%"),String(i)}function ut(){return 1===g(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",arguments.length>1&&void 0!==arguments[1]?arguments[1]:"")}function ct(){return g(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",arguments.length>1&&void 0!==arguments[1]?arguments[1]:"")>-1}var ft=function(){return null==window.document};function dt(e){if(-1===e.indexOf(":"))return null;var t=e.replace(/^\(+/,"").replace(/\)+$/,""),n=/(at )?(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t);if(null==n)return null;var r=Ye(n,5);return{sourceURL:r[2],line:r[3],column:r[4]}}var pt=/^\s*at .*(\S+:\d+|\(native\))/m;function ht(e){return e.match(pt)?function(e){var t,n=qe(e.split("\n"));try{for(n.s();!(t=n.n()).done;){var r=t.value.trim(),o=r.match(/ (\(.+\)$)/),i=dt(o?o[1]:r);if(null!=i){var a=i.sourceURL,s=i.line,l=void 0===s?"1":s,u=i.column,c=void 0===u?"1":u;return{sourceURL:a,line:parseInt(l,10),column:parseInt(c,10)}}}}catch(f){n.e(f)}finally{n.f()}return null}(e):function(e){var t,n=qe(e.split("\n"));try{for(n.s();!(t=n.n()).done;){var r=dt(t.value.trim().replace(/((.*".+"[^@]*)?[^@]*)(?:@)/,""));if(null!=r){var o=r.sourceURL,i=r.line,a=void 0===i?"1":i,s=r.column,l=void 0===s?"1":s;return{sourceURL:o,line:parseInt(a,10),column:parseInt(l,10)}}}}catch(u){n.e(u)}finally{n.f()}return null}(e)}var mt=null;function vt(e,t){for(var n=null,r=0;r<t.length;r++){var o=t[r],i=o.getFunctionName();if(null!=i&&(i.includes("react_stack_bottom_frame")||i.includes("react-stack-bottom-frame"))){mt=n;break}var a=o.getScriptNameOrSourceURL(),s="function"==typeof o.getEnclosingLineNumber?o.getEnclosingLineNumber():o.getLineNumber(),l="function"==typeof o.getEnclosingColumnNumber?o.getEnclosingColumnNumber():o.getColumnNumber();a&&s&&l&&(n={sourceURL:a,line:s,column:l})}for(var u=(e.name||"Error")+": "+(e.message||""),c=0;c<t.length;c++)u+="\n at "+t[c].toString();return u}function yt(e){return Math.round(1e3*e)/1e3}function gt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return bt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _t(e){return e.ownerDocument?e.ownerDocument.defaultView:null}function wt(e){var t=_t(e);return t?t.frameElement:null}function St(e){var t=Ct(e);return Et([e.getBoundingClientRect(),{top:t.borderTop,left:t.borderLeft,bottom:t.borderBottom,right:t.borderRight,width:0,height:0}])}function Et(e){return e.reduce(function(e,t){return null==e?t:{top:e.top+t.top,left:e.left+t.left,width:e.width,height:e.height,bottom:e.bottom+t.bottom,right:e.right+t.right}})}function kt(e,t){var n=wt(e);if(n&&n!==t){for(var r=[e.getBoundingClientRect()],o=n,i=!1;o;){var a=St(o);if(r.push(a),o=wt(o),i)break;o&&_t(o)===t&&(i=!0)}return Et(r)}return e.getBoundingClientRect()}function Ct(e){var t=window.getComputedStyle(e);return{borderLeft:parseInt(t.borderLeftWidth,10),borderRight:parseInt(t.borderRightWidth,10),borderTop:parseInt(t.borderTopWidth,10),borderBottom:parseInt(t.borderBottomWidth,10),marginLeft:parseInt(t.marginLeft,10),marginRight:parseInt(t.marginRight,10),marginTop:parseInt(t.marginTop,10),marginBottom:parseInt(t.marginBottom,10),paddingLeft:parseInt(t.paddingLeft,10),paddingRight:parseInt(t.paddingRight,10),paddingTop:parseInt(t.paddingTop,10),paddingBottom:parseInt(t.paddingBottom,10)}}function xt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function It(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}var Ot=Object.assign,Tt=function(){return It(function e(t,n){xt(this,e),this.node=t.createElement("div"),this.border=t.createElement("div"),this.padding=t.createElement("div"),this.content=t.createElement("div"),this.border.style.borderColor=Dt.border,this.padding.style.borderColor=Dt.padding,this.content.style.backgroundColor=Dt.background,Ot(this.node.style,{borderColor:Dt.margin,pointerEvents:"none",position:"fixed"}),this.node.style.zIndex="10000000",this.node.appendChild(this.border),this.border.appendChild(this.padding),this.padding.appendChild(this.content),n.appendChild(this.node)},[{key:"remove",value:function(){this.node.parentNode&&this.node.parentNode.removeChild(this.node)}},{key:"update",value:function(e,t){At(t,"margin",this.node),At(t,"border",this.border),At(t,"padding",this.padding),Ot(this.content.style,{height:e.height-t.borderTop-t.borderBottom-t.paddingTop-t.paddingBottom+"px",width:e.width-t.borderLeft-t.borderRight-t.paddingLeft-t.paddingRight+"px"}),Ot(this.node.style,{top:e.top-t.marginTop+"px",left:e.left-t.marginLeft+"px"})}}])}(),Nt=function(){return It(function e(t,n){xt(this,e),this.tip=t.createElement("div"),Ot(this.tip.style,{display:"flex",flexFlow:"row nowrap",backgroundColor:"#333740",borderRadius:"2px",fontFamily:'"SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace',fontWeight:"bold",padding:"3px 5px",pointerEvents:"none",position:"fixed",fontSize:"12px",whiteSpace:"nowrap"}),this.nameSpan=t.createElement("span"),this.tip.appendChild(this.nameSpan),Ot(this.nameSpan.style,{color:"#ee78e6",borderRight:"1px solid #aaaaaa",paddingRight:"0.5rem",marginRight:"0.5rem"}),this.dimSpan=t.createElement("span"),this.tip.appendChild(this.dimSpan),Ot(this.dimSpan.style,{color:"#d7d7d7"}),this.tip.style.zIndex="10000000",n.appendChild(this.tip)},[{key:"remove",value:function(){this.tip.parentNode&&this.tip.parentNode.removeChild(this.tip)}},{key:"updateText",value:function(e,t,n){this.nameSpan.textContent=e,this.dimSpan.textContent=Math.round(t)+"px × "+Math.round(n)+"px"}},{key:"updatePosition",value:function(e,t){var n=this.tip.getBoundingClientRect(),r=function(e,t,n){var r,o=Math.max(n.height,20),i=Math.max(n.width,60),a=5;r=e.top+e.height+o<=t.top+t.height?e.top+e.height<t.top+0?t.top+a:e.top+e.height+a:e.top-o<=t.top+t.height?e.top-o-a<t.top+a?t.top+a:e.top-o-a:t.top+t.height-o-a;var s=e.left+a;return e.left<t.left&&(s=t.left+a),e.left+i>t.left+t.width&&(s=t.left+t.width-i-a),{style:{top:r+="px",left:s+="px"}}}(e,t,{width:n.width,height:n.height});Ot(this.tip.style,r.style)}}])}(),Pt=function(){return It(function e(t){xt(this,e);var n=window.__REACT_DEVTOOLS_TARGET_WINDOW__||window;this.window=n;var r=window.__REACT_DEVTOOLS_TARGET_WINDOW__||window;this.tipBoundsWindow=r;var o=n.document;this.container=o.createElement("div"),this.container.style.zIndex="10000000",this.tip=new Nt(o,this.container),this.rects=[],this.agent=t,o.body.appendChild(this.container)},[{key:"remove",value:function(){this.tip.remove(),this.rects.forEach(function(e){e.remove()}),this.rects.length=0,this.container.parentNode&&this.container.parentNode.removeChild(this.container)}},{key:"inspect",value:function(e,t){for(var n=this,r=e.filter(function(e){return e.nodeType===Node.ELEMENT_NODE});this.rects.length>r.length;)this.rects.pop().remove();if(0!==r.length){for(;this.rects.length<r.length;)this.rects.push(new Tt(this.window.document,this.container));var o={top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY,left:Number.POSITIVE_INFINITY};if(r.forEach(function(e,t){var r=kt(e,n.window),i=Ct(e);o.top=Math.min(o.top,r.top-i.marginTop),o.right=Math.max(o.right,r.left+r.width+i.marginRight),o.bottom=Math.max(o.bottom,r.top+r.height+i.marginBottom),o.left=Math.min(o.left,r.left-i.marginLeft),n.rects[t].update(r,i)}),!t){t=r[0].nodeName.toLowerCase();var i=r[0],a=this.agent.getComponentNameForHostInstance(i);a&&(t+=" (in "+a+")")}this.tip.updateText(t,o.right-o.left,o.bottom-o.top);var s=kt(this.tipBoundsWindow.document.documentElement,this.window);this.tip.updatePosition({top:o.top,left:o.left,height:o.bottom-o.top,width:o.right-o.left},{top:s.top+this.tipBoundsWindow.scrollY,left:s.left+this.tipBoundsWindow.scrollX,height:this.tipBoundsWindow.innerHeight,width:this.tipBoundsWindow.innerWidth})}}}])}();function At(e,t,n){Ot(n.style,{borderTopWidth:e[t+"Top"]+"px",borderLeftWidth:e[t+"Left"]+"px",borderRightWidth:e[t+"Right"]+"px",borderBottomWidth:e[t+"Bottom"]+"px",borderStyle:"solid"})}var Dt={background:"rgba(120, 170, 210, 0.7)",padding:"rgba(77, 200, 0, 0.3)",margin:"rgba(255, 155, 0, 0.3)",border:"rgba(255, 200, 50, 0.3)"},Rt=null,Lt=null;function Mt(e){return ft()?function(e){e.emit("hideNativeHighlight")}(e):(Rt=null,void(null!==Lt&&(Lt.remove(),Lt=null)))}function jt(e,t,n,r){return ft()?function(e,t){t.emit("showNativeHighlight",e)}(e,n):function(e,t,n,r){null!==Rt&&clearTimeout(Rt),null===Lt&&(Lt=new Pt(n)),Lt.inspect(e,t),r&&(Rt=setTimeout(function(){return Mt(n)},2e3))}(e,t,n,r)}var Ft=new Set;function Ht(e){return function(e){if(Array.isArray(e))return Ut(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ut(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ut(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ut(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Bt=["#37afa9","#63b19e","#80b393","#97b488","#abb67d","#beb771","#cfb965","#dfba57","#efbb49","#febc38"],Vt=null;function zt(e){null===Vt&&function(){(Vt=window.document.createElement("canvas")).setAttribute("popover","manual"),Vt.style.cssText="\n xx-background-color: red;\n xx-opacity: 0.5;\n bottom: 0;\n left: 0;\n pointer-events: none;\n position: fixed;\n right: 0;\n top: 0;\n background-color: transparent;\n outline: none;\n box-shadow: none;\n border: none;\n ";var e=window.document.documentElement;e.insertBefore(Vt,e.firstChild)}();var t=window.devicePixelRatio||1,n=Vt;n.width=window.innerWidth*t,n.height=window.innerHeight*t,n.style.width="".concat(window.innerWidth,"px"),n.style.height="".concat(window.innerHeight,"px");var r=n.getContext("2d");if(r.scale(t,t),r.clearRect(0,0,n.width/t,n.height/t),Wt(e).forEach(function(e){!function(e,t){t.forEach(function(t){var n=t.color,r=t.rect;e.beginPath(),e.strokeStyle=n,e.rect(r.left,r.top,r.width-1,r.height-1),e.stroke()})}(r,e),function(e,t){var n=t.map(function(e){var t=e.displayName,n=e.count;return t?"".concat(t).concat(n>1?" x".concat(n):""):""}).filter(Boolean).join(", ");n&&function(e,t,n,r){var o=t.left,i=t.top;e.font="10px monospace",e.textBaseline="middle",e.textAlign="center";var a=2,s=14,l=e.measureText(n),u=l.width+2*a,c=s,f=o,d=i-c;e.fillStyle=r,e.fillRect(f,d,u,c),e.fillStyle="#000000",e.fillText(n,f+u/2,d+c/2)}(e,t[0].rect,n,t[0].color)}(r,e)}),null!==Vt){if(0===e.size&&Vt.matches(":popover-open"))return void Vt.hidePopover();Vt.matches(":popover-open")&&Vt.hidePopover(),Vt.showPopover()}}function Wt(e){var t=new Map;return Gt(e,function(e){var n,r=e.rect,o=e.color,i=e.displayName,a=e.count;if(r){var s="".concat(r.left,",").concat(r.top);t.has(s)||t.set(s,[]),null===(n=t.get(s))||void 0===n||n.push({rect:r,color:o,displayName:i,count:a})}}),Array.from(t.values()).sort(function(e,t){return Math.max.apply(Math,Ht(e.map(function(e){return e.count})))-Math.max.apply(Math,Ht(t.map(function(e){return e.count})))})}function $t(e,t){return ft()?function(e,t){var n=[];Gt(e,function(e){var t=e.color,r=e.node;n.push({node:r,color:t})}),t.emit("drawTraceUpdates",n);var r=Wt(e);t.emit("drawGroupedTraceUpdatesWithNames",r)}(e,t):zt(e)}function Gt(e,t){e.forEach(function(e,n){var r=Math.min(Bt.length-1,e.count-1);t({color:Bt[r],node:n,count:e.count,displayName:e.displayName,expirationTime:e.expirationTime,lastMeasuredAt:e.lastMeasuredAt,rect:e.rect})})}function qt(e){return ft()?function(e){e.emit("disableTraceUpdates")}(e):void(null!==Vt&&(Vt.matches(":popover-open")&&Vt.hidePopover(),null!=Vt.parentNode&&Vt.parentNode.removeChild(Vt),Vt=null))}function Yt(e){return(Yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Kt=new Map([["Forget","✨"],["Memo","🧠"]]),Qt="object"===("undefined"==typeof performance?"undefined":Yt(performance))&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()},Xt=new Map,Jt=null,Zt=null,en=!1,tn=null;function nn(e){en&&(e.forEach(function(e){var t=Xt.get(e),n=Qt(),r=null!=t?t.lastMeasuredAt:0,o=null!=t?t.rect:null;(null===o||r+250<n)&&(r=n,o=function(e){if(!e||"function"!=typeof e.getBoundingClientRect)return null;var t=window.__REACT_DEVTOOLS_TARGET_WINDOW__||window;return kt(e,t)}(e));var i=Jt.getComponentNameForHostInstance(e);if(i){var a=function(e){if(!e)return{baseComponentName:"",hocNames:[]};for(var t,n=/([A-Z][a-zA-Z0-9]*?)\((.*)\)/g,r=[],o=e;null!=(t=n.exec(o));)if(Array.isArray(t)){var i=gt(t,3),a=i[1],s=i[2];r.push(a),o=s}return{baseComponentName:o,hocNames:r}}(i),s=a.baseComponentName,l=a.hocNames.map(function(e){return Kt.get(e)||""}).join("");i=l?"".concat(l).concat(s):s}Xt.set(e,{count:null!=t?t.count+1:1,expirationTime:null!=t?Math.min(n+3e3,t.expirationTime+250):n+250,lastMeasuredAt:r,rect:o,displayName:i})}),null!==tn&&(clearTimeout(tn),tn=null),null===Zt&&(Zt=requestAnimationFrame(rn)))}function rn(){Zt=null,tn=null;var e=Qt(),t=Number.MAX_VALUE;Xt.forEach(function(n,r){n.expirationTime<e?Xt.delete(r):t=Math.min(t,n.expirationTime)}),$t(Xt,Jt),t!==Number.MAX_VALUE&&(tn=setTimeout(rn,t-e))}function on(e){return(on="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function an(e){return function(e){if(Array.isArray(e))return sn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return sn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sn(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ln(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function un(e,t,n){return t=cn(t),r=e,!(o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){return!1}}()?Reflect.construct(t,[],cn(e).constructor):t.apply(e,n))||"object"!==on(o)&&"function"!=typeof o?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r):o;var r,o}function cn(e){return(cn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fn(e,t){return(fn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pn=[{version:0,minNpmVersion:'"<4.11.0"',maxNpmVersion:'"<4.11.0"'},{version:1,minNpmVersion:"4.13.0",maxNpmVersion:"4.21.0"},{version:2,minNpmVersion:"4.22.0",maxNpmVersion:null}],hn=pn[pn.length-1],mn=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),dn(n=un(this,t),"_isShutdown",!1),dn(n,"_messageQueue",[]),dn(n,"_scheduledFlush",!1),dn(n,"_wallUnlisten",null),dn(n,"_flush",function(){try{if(n._messageQueue.length){for(var e=0;e<n._messageQueue.length;e+=2){var t;(t=n._wall).send.apply(t,[n._messageQueue[e]].concat(an(n._messageQueue[e+1])))}n._messageQueue.length=0}}finally{n._scheduledFlush=!1}}),dn(n,"overrideValueAtPath",function(e){var t=e.id,r=e.path,o=e.rendererID,i=e.type,a=e.value;switch(i){case"context":n.send("overrideContext",{id:t,path:r,rendererID:o,wasForwarded:!0,value:a});break;case"hooks":n.send("overrideHookState",{id:t,path:r,rendererID:o,wasForwarded:!0,value:a});break;case"props":n.send("overrideProps",{id:t,path:r,rendererID:o,wasForwarded:!0,value:a});break;case"state":n.send("overrideState",{id:t,path:r,rendererID:o,wasForwarded:!0,value:a})}}),n._wall=e,n._wallUnlisten=e.listen(function(e){e&&e.event&&n.emit(e.event,e.payload)})||null,n.addListener("overrideValueAtPath",n.overrideValueAtPath),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fn(e,t)}(t,e),ln(t,[{key:"wall",get:function(){return this._wall}},{key:"send",value:function(e){if(this._isShutdown)console.warn('Cannot send message "'.concat(e,'" through a Bridge that has been shutdown.'));else{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this._messageQueue.push(e,n),this._scheduledFlush||(this._scheduledFlush=!0,"function"==typeof devtoolsJestTestScheduler?devtoolsJestTestScheduler(this._flush):queueMicrotask(this._flush))}}},{key:"shutdown",value:function(){if(this._isShutdown)console.warn("Bridge was already shutdown.");else{this.emit("shutdown"),this.send("shutdown"),this._isShutdown=!0,this.addListener=function(){},this.emit=function(){},this.removeAllListeners();var e=this._wallUnlisten;e&&e();do{this._flush()}while(this._messageQueue.length)}}}])}(t);const vn=mn;function yn(e){return(yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gn(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function bn(e,t,n){return t=_n(t),r=e,!(o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){return!1}}()?Reflect.construct(t,[],_n(e).constructor):t.apply(e,n))||"object"!==yn(o)&&"function"!=typeof o?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r):o;var r,o}function _n(e){return(_n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function wn(e,t){return(wn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Sn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var En=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2?arguments[2]:void 0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Sn(n=bn(this,t),"_isProfiling",!1),Sn(n,"_rendererInterfaces",{}),Sn(n,"_persistedSelection",null),Sn(n,"_persistedSelectionMatch",null),Sn(n,"_traceUpdatesEnabled",!1),Sn(n,"clearErrorsAndWarnings",function(e){var t=e.rendererID,r=n._rendererInterfaces[t];null==r?console.warn('Invalid renderer id "'.concat(t,'"')):r.clearErrorsAndWarnings()}),Sn(n,"clearErrorsForElementID",function(e){var t=e.id,r=e.rendererID,o=n._rendererInterfaces[r];null==o?console.warn('Invalid renderer id "'.concat(r,'"')):o.clearErrorsForElementID(t)}),Sn(n,"clearWarningsForElementID",function(e){var t=e.id,r=e.rendererID,o=n._rendererInterfaces[r];null==o?console.warn('Invalid renderer id "'.concat(r,'"')):o.clearWarningsForElementID(t)}),Sn(n,"copyElementPath",function(e){var t=e.id,r=e.path,o=e.rendererID,i=n._rendererInterfaces[o];if(null==i)console.warn('Invalid renderer id "'.concat(o,'" for element "').concat(t,'"'));else{var a=i.getSerializedElementValueByPath(t,r);null!=a?n._bridge.send("saveToClipboard",a):console.warn('Unable to obtain serialized value for element "'.concat(t,'"'))}}),Sn(n,"deletePath",function(e){var t=e.hookID,r=e.id,o=e.path,i=e.rendererID,a=e.type,s=n._rendererInterfaces[i];null==s?console.warn('Invalid renderer id "'.concat(i,'" for element "').concat(r,'"')):s.deletePath(a,r,t,o)}),Sn(n,"getBackendVersion",function(){n._bridge.send("backendVersion","6.1.5-5d87cd2244")}),Sn(n,"getBridgeProtocol",function(){n._bridge.send("bridgeProtocol",hn)}),Sn(n,"getProfilingData",function(e){var t=e.rendererID,r=n._rendererInterfaces[t];null==r&&console.warn('Invalid renderer id "'.concat(t,'"')),n._bridge.send("profilingData",r.getProfilingData())}),Sn(n,"getProfilingStatus",function(){n._bridge.send("profilingStatus",n._isProfiling)}),Sn(n,"getOwnersList",function(e){var t=e.id,r=e.rendererID,o=n._rendererInterfaces[r];if(null==o)console.warn('Invalid renderer id "'.concat(r,'" for element "').concat(t,'"'));else{var i=o.getOwnersList(t);n._bridge.send("ownersList",{id:t,owners:i})}}),Sn(n,"inspectElement",function(e){var t=e.forceFullData,r=e.id,o=e.path,i=e.rendererID,a=e.requestID,s=n._rendererInterfaces[i];null==s?console.warn('Invalid renderer id "'.concat(i,'" for element "').concat(r,'"')):(n._bridge.send("inspectedElement",s.inspectElement(a,r,o,t)),null!==n._persistedSelectionMatch&&n._persistedSelectionMatch.id===r||(n._persistedSelection=null,n._persistedSelectionMatch=null,s.setTrackedPath(null),n._lastSelectedElementID=r,n._lastSelectedRendererID=i,n._persistSelectionTimerScheduled||(n._persistSelectionTimerScheduled=!0,setTimeout(n._persistSelection,1e3))))}),Sn(n,"logElementToConsole",function(e){var t=e.id,r=e.rendererID,o=n._rendererInterfaces[r];null==o?console.warn('Invalid renderer id "'.concat(r,'" for element "').concat(t,'"')):o.logElementToConsole(t)}),Sn(n,"overrideError",function(e){var t=e.id,r=e.rendererID,o=e.forceError,i=n._rendererInterfaces[r];null==i?console.warn('Invalid renderer id "'.concat(r,'" for element "').concat(t,'"')):i.overrideError(t,o)}),Sn(n,"overrideSuspense",function(e){var t=e.id,r=e.rendererID,o=e.forceFallback,i=n._rendererInterfaces[r];null==i?console.warn('Invalid renderer id "'.concat(r,'" for element "').concat(t,'"')):i.overrideSuspense(t,o)}),Sn(n,"overrideValueAtPath",function(e){var t=e.hookID,r=e.id,o=e.path,i=e.rendererID,a=e.type,s=e.value,l=n._rendererInterfaces[i];null==l?console.warn('Invalid renderer id "'.concat(i,'" for element "').concat(r,'"')):l.overrideValueAtPath(a,r,t,o,s)}),Sn(n,"overrideContext",function(e){var t=e.id,r=e.path,o=e.rendererID,i=e.wasForwarded,a=e.value;i||n.overrideValueAtPath({id:t,path:r,rendererID:o,type:"context",value:a})}),Sn(n,"overrideHookState",function(e){var t=e.id;e.hookID;var r=e.path,o=e.rendererID,i=e.wasForwarded,a=e.value;i||n.overrideValueAtPath({id:t,path:r,rendererID:o,type:"hooks",value:a})}),Sn(n,"overrideProps",function(e){var t=e.id,r=e.path,o=e.rendererID,i=e.wasForwarded,a=e.value;i||n.overrideValueAtPath({id:t,path:r,rendererID:o,type:"props",value:a})}),Sn(n,"overrideState",function(e){var t=e.id,r=e.path,o=e.rendererID,i=e.wasForwarded,a=e.value;i||n.overrideValueAtPath({id:t,path:r,rendererID:o,type:"state",value:a})}),Sn(n,"onReloadAndProfileSupportedByHost",function(){n._bridge.send("isReloadAndProfileSupportedByBackend",!0)}),Sn(n,"reloadAndProfile",function(e){var t=e.recordChangeDescriptions,r=e.recordTimeline;"function"==typeof n._onReloadAndProfile&&n._onReloadAndProfile(t,r),n._bridge.send("reloadAppForProfiling")}),Sn(n,"renamePath",function(e){var t=e.hookID,r=e.id,o=e.newPath,i=e.oldPath,a=e.rendererID,s=e.type,l=n._rendererInterfaces[a];null==l?console.warn('Invalid renderer id "'.concat(a,'" for element "').concat(r,'"')):l.renamePath(s,r,t,i,o)}),Sn(n,"setTraceUpdatesEnabled",function(e){for(var t in n._traceUpdatesEnabled=e,(en=e)||(Xt.clear(),null!==Zt&&(cancelAnimationFrame(Zt),Zt=null),null!==tn&&(clearTimeout(tn),tn=null),qt(Jt)),n._rendererInterfaces)n._rendererInterfaces[t].setTraceUpdatesEnabled(e)}),Sn(n,"syncSelectionFromBuiltinElementsPanel",function(){var e=window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$0;null!=e&&n.selectNode(e)}),Sn(n,"shutdown",function(){n.emit("shutdown"),n._bridge.removeAllListeners(),n.removeAllListeners()}),Sn(n,"startProfiling",function(e){var t=e.recordChangeDescriptions,r=e.recordTimeline;for(var o in n._isProfiling=!0,n._rendererInterfaces)n._rendererInterfaces[o].startProfiling(t,r);n._bridge.send("profilingStatus",n._isProfiling)}),Sn(n,"stopProfiling",function(){for(var e in n._isProfiling=!1,n._rendererInterfaces)n._rendererInterfaces[e].stopProfiling();n._bridge.send("profilingStatus",n._isProfiling)}),Sn(n,"stopInspectingNative",function(e){n._bridge.send("stopInspectingHost",e)}),Sn(n,"storeAsGlobal",function(e){var t=e.count,r=e.id,o=e.path,i=e.rendererID,a=n._rendererInterfaces[i];null==a?console.warn('Invalid renderer id "'.concat(i,'" for element "').concat(r,'"')):a.storeAsGlobal(r,o,t)}),Sn(n,"updateHookSettings",function(e){n.emit("updateHookSettings",e)}),Sn(n,"getHookSettings",function(){n.emit("getHookSettings")}),Sn(n,"onHookSettings",function(e){n._bridge.send("hookSettings",e)}),Sn(n,"updateComponentFilters",function(e){for(var t in n._rendererInterfaces){var r=+t,o=n._rendererInterfaces[r];if(n._lastSelectedRendererID===r){var i=o.getPathForElement(n._lastSelectedElementID);null!==i&&(o.setTrackedPath(i),n._persistedSelection={rendererID:r,path:i})}o.updateComponentFilters(e)}}),Sn(n,"getEnvironmentNames",function(){var e=null;for(var t in n._rendererInterfaces){var r=n._rendererInterfaces[+t].getEnvironmentNames();if(null===e)e=r;else for(var o=0;o<r.length;o++)-1===e.indexOf(r[o])&&e.push(r[o])}n._bridge.send("environmentNames",e||[])}),Sn(n,"onTraceUpdates",function(e){n.emit("traceUpdates",e)}),Sn(n,"onFastRefreshScheduled",function(){n._bridge.send("fastRefreshScheduled")}),Sn(n,"onHookOperations",function(e){if(n._bridge.send("operations",e),null!==n._persistedSelection){var t=e[0];if(n._persistedSelection.rendererID===t){var r=n._rendererInterfaces[t];if(null==r)console.warn('Invalid renderer id "'.concat(t,'"'));else{var o=n._persistedSelectionMatch,i=r.getBestMatchForTrackedPath();n._persistedSelectionMatch=i;var a=null!==o?o.id:null,s=null!==i?i.id:null;a!==s&&null!==s&&n._bridge.send("selectElement",s),null!==i&&i.isFullMatch&&(n._persistedSelection=null,n._persistedSelectionMatch=null,r.setTrackedPath(null))}}}}),Sn(n,"getIfHasUnsupportedRendererVersion",function(){n.emit("getIfHasUnsupportedRendererVersion")}),Sn(n,"_persistSelectionTimerScheduled",!1),Sn(n,"_lastSelectedRendererID",-1),Sn(n,"_lastSelectedElementID",-1),Sn(n,"_persistSelection",function(){n._persistSelectionTimerScheduled=!1;var e=n._lastSelectedRendererID,t=n._lastSelectedElementID,r=n._rendererInterfaces[e],o=null!=r?r.getPathForElement(t):null;null!==o?function(e,t){try{return sessionStorage.setItem(e,t)}catch(n){}}(d,JSON.stringify({rendererID:e,path:o})):function(e){try{sessionStorage.removeItem(e)}catch(t){}}(d)}),n._isProfiling=r,n._onReloadAndProfile=o;var i=function(e){try{return sessionStorage.getItem(e)}catch(t){return null}}(d);return null!=i&&(n._persistedSelection=JSON.parse(i)),n._bridge=e,e.addListener("clearErrorsAndWarnings",n.clearErrorsAndWarnings),e.addListener("clearErrorsForElementID",n.clearErrorsForElementID),e.addListener("clearWarningsForElementID",n.clearWarningsForElementID),e.addListener("copyElementPath",n.copyElementPath),e.addListener("deletePath",n.deletePath),e.addListener("getBackendVersion",n.getBackendVersion),e.addListener("getBridgeProtocol",n.getBridgeProtocol),e.addListener("getProfilingData",n.getProfilingData),e.addListener("getProfilingStatus",n.getProfilingStatus),e.addListener("getOwnersList",n.getOwnersList),e.addListener("inspectElement",n.inspectElement),e.addListener("logElementToConsole",n.logElementToConsole),e.addListener("overrideError",n.overrideError),e.addListener("overrideSuspense",n.overrideSuspense),e.addListener("overrideValueAtPath",n.overrideValueAtPath),e.addListener("reloadAndProfile",n.reloadAndProfile),e.addListener("renamePath",n.renamePath),e.addListener("setTraceUpdatesEnabled",n.setTraceUpdatesEnabled),e.addListener("startProfiling",n.startProfiling),e.addListener("stopProfiling",n.stopProfiling),e.addListener("storeAsGlobal",n.storeAsGlobal),e.addListener("syncSelectionFromBuiltinElementsPanel",n.syncSelectionFromBuiltinElementsPanel),e.addListener("shutdown",n.shutdown),e.addListener("updateHookSettings",n.updateHookSettings),e.addListener("getHookSettings",n.getHookSettings),e.addListener("updateComponentFilters",n.updateComponentFilters),e.addListener("getEnvironmentNames",n.getEnvironmentNames),e.addListener("getIfHasUnsupportedRendererVersion",n.getIfHasUnsupportedRendererVersion),e.addListener("overrideContext",n.overrideContext),e.addListener("overrideHookState",n.overrideHookState),e.addListener("overrideProps",n.overrideProps),e.addListener("overrideState",n.overrideState),function(e,t){function n(e){e&&"function"==typeof e.addEventListener?(e.addEventListener("click",i,!0),e.addEventListener("mousedown",a,!0),e.addEventListener("mouseover",a,!0),e.addEventListener("mouseup",a,!0),e.addEventListener("pointerdown",s,!0),e.addEventListener("pointermove",u,!0),e.addEventListener("pointerup",c,!0)):t.emit("startInspectingNative")}function r(){Mt(t),o(window),Ft.forEach(function(e){try{o(e.contentWindow)}catch(t){}}),Ft=new Set}function o(e){e&&"function"==typeof e.removeEventListener?(e.removeEventListener("click",i,!0),e.removeEventListener("mousedown",a,!0),e.removeEventListener("mouseover",a,!0),e.removeEventListener("mouseup",a,!0),e.removeEventListener("pointerdown",s,!0),e.removeEventListener("pointermove",u,!0),e.removeEventListener("pointerup",c,!0)):t.emit("stopInspectingNative")}function i(t){t.preventDefault(),t.stopPropagation(),r(),e.send("stopInspectingHost",!0)}function a(e){e.preventDefault(),e.stopPropagation()}function s(e){e.preventDefault(),e.stopPropagation(),f(d(e))}e.addListener("clearHostInstanceHighlight",function(){Mt(t)}),e.addListener("highlightHostInstance",function(n){var r=n.displayName,o=n.hideAfterTimeout,i=n.id,a=n.openBuiltinElementsPanel,s=n.rendererID,l=n.scrollIntoView,u=t.rendererInterfaces[s];if(null==u)return console.warn('Invalid renderer id "'.concat(s,'" for element "').concat(i,'"')),void Mt(t);if(u.hasElementWithId(i)){var c=u.findHostInstancesForElementID(i);if(null!=c&&null!=c[0]){var f=c[0];l&&"function"==typeof f.scrollIntoView&&f.scrollIntoView({block:"nearest",inline:"nearest"}),jt(c,r,t,o),a&&(window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$0=f,e.send("syncSelectionToBuiltinElementsPanel"))}else Mt(t)}else Mt(t)}),e.addListener("shutdown",r),e.addListener("startInspectingHost",function(){n(window)}),e.addListener("stopInspectingHost",r);var l=null;function u(e){e.preventDefault(),e.stopPropagation();var r=d(e);if(l!==r){if(l=r,"IFRAME"===r.tagName){var o=r;try{Ft.has(o)||(n(o.contentWindow),Ft.add(o))}catch(i){}}jt([r],null,t,!1),f(r)}}function c(e){e.preventDefault(),e.stopPropagation()}var f=function(n){var r=t.getIDForHostInstance(n);null!==r&&e.send("selectElement",r)};function d(e){return e.composed?e.composedPath()[0]:e.target}}(e,n),(Jt=n).addListener("traceUpdates",nn),e.send("backendInitialized"),n._isProfiling&&e.send("profilingStatus",!0),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wn(e,t)}(t,e),gn(t,[{key:"rendererInterfaces",get:function(){return this._rendererInterfaces}},{key:"getInstanceAndStyle",value:function(e){var t=e.id,n=e.rendererID,r=this._rendererInterfaces[n];return null==r?(console.warn('Invalid renderer id "'.concat(n,'"')),null):r.getInstanceAndStyle(t)}},{key:"getIDForHostInstance",value:function(e){if(ft()||"number"!=typeof e.nodeType){for(var t in this._rendererInterfaces){var n=this._rendererInterfaces[t];try{var r=n.getElementIDForHostInstance(e);if(null!=r)return r}catch(u){}}return null}var o=null,i=null;for(var a in this._rendererInterfaces){var s=this._rendererInterfaces[a],l=s.getNearestMountedDOMNode(e);if(null!==l){if(l===e){o=l,i=s;break}(null===o||o.contains(l))&&(o=l,i=s)}}if(null!=i&&null!=o)try{return i.getElementIDForHostInstance(o)}catch(u){}return null}},{key:"getComponentNameForHostInstance",value:function(e){if(ft()||"number"!=typeof e.nodeType){for(var t in this._rendererInterfaces){var n=this._rendererInterfaces[t];try{var r=n.getElementIDForHostInstance(e);if(r)return n.getDisplayNameForElementID(r)}catch(c){}}return null}var o=null,i=null;for(var a in this._rendererInterfaces){var s=this._rendererInterfaces[a],l=s.getNearestMountedDOMNode(e);if(null!==l){if(l===e){o=l,i=s;break}(null===o||o.contains(l))&&(o=l,i=s)}}if(null!=i&&null!=o)try{var u=i.getElementIDForHostInstance(o);if(u)return i.getDisplayNameForElementID(u)}catch(c){}return null}},{key:"selectNode",value:function(e){var t=this.getIDForHostInstance(e);null!==t&&this._bridge.send("selectElement",t)}},{key:"registerRendererInterface",value:function(e,t){this._rendererInterfaces[e]=t,t.setTraceUpdatesEnabled(this._traceUpdatesEnabled);var n=this._persistedSelection;null!==n&&n.rendererID===e&&t.setTrackedPath(n.path)}},{key:"onUnsupportedRenderer",value:function(){this._bridge.send("unsupportedRendererVersion")}}])}(t);function kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Cn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(n),!0).forEach(function(t){xn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var In,On,Tn,Nn,Pn,An,Dn,Rn,Ln=0;function Mn(){}function jn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Fn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hn(e){return(Hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Un(e){if(void 0===Rn)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Rn=t&&t[1]||""}return"\n"+Rn+e+" (<anonymous>)"}function Bn(e,t){return Un(e+(t?" ["+t+"]":""))}Mn.__reactDisabledLog=!0;var Vn=!1;function zn(e,t,n){if(!e||Vn)return"";var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0,Vn=!0;var o=n.H;n.H=null,function(){if(0===Ln){In=console.log,On=console.info,Tn=console.warn,Nn=console.error,Pn=console.group,An=console.groupCollapsed,Dn=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Mn,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Ln++}();try{var i={DetermineComponentFrameRoot:function(){var n;try{if(t){var r=function(){throw Error()};if(Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),"object"===("undefined"==typeof Reflect?"undefined":Hn(Reflect))&&Reflect.construct){try{Reflect.construct(r,[])}catch(i){n=i}Reflect.construct(e,[],r)}else{try{r.call()}catch(i){n=i}e.call(r.prototype)}}else{try{throw Error()}catch(i){n=i}var o=e();o&&"function"==typeof o.catch&&o.catch(function(){})}}catch(a){if(a&&n&&"string"==typeof a.stack)return[a.stack,n.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=jn(i.DetermineComponentFrameRoot(),2),l=s[0],u=s[1];if(l&&u){for(var c=l.split("\n"),f=u.split("\n"),d=0,p=0;d<c.length&&!c[d].includes("DetermineComponentFrameRoot");)d++;for(;p<f.length&&!f[p].includes("DetermineComponentFrameRoot");)p++;if(d===c.length||p===f.length)for(d=c.length-1,p=f.length-1;d>=1&&p>=0&&c[d]!==f[p];)p--;for(;d>=1&&p>=0;d--,p--)if(c[d]!==f[p]){if(1!==d||1!==p)do{if(d--,--p<0||c[d]!==f[p]){var h="\n"+c[d].replace(" at new "," at ");return e.displayName&&h.includes("<anonymous>")&&(h=h.replace("<anonymous>",e.displayName)),h}}while(d>=1&&p>=0);break}}}finally{Vn=!1,Error.prepareStackTrace=r,n.H=o,function(){if(0===--Ln){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Cn(Cn({},e),{},{value:In}),info:Cn(Cn({},e),{},{value:On}),warn:Cn(Cn({},e),{},{value:Tn}),error:Cn(Cn({},e),{},{value:Nn}),group:Cn(Cn({},e),{},{value:Pn}),groupCollapsed:Cn(Cn({},e),{},{value:An}),groupEnd:Cn(Cn({},e),{},{value:Dn})})}Ln<0&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}()}var m=e?e.displayName||e.name:"";return m?Un(m):""}function Wn(e,t){return zn(e,!1,t)}var $n=new WeakMap;function Gn(e){return function(e){if(Array.isArray(e))return qn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return qn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qn(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Yn(e,t,n,r){var o=n.getCurrentComponentInfo;return{cleanup:function(){},clearErrorsAndWarnings:function(){},clearErrorsForElementID:function(){},clearWarningsForElementID:function(){},getSerializedElementValueByPath:function(){},deletePath:function(){},findHostInstancesForElementID:function(){return null},flushInitialOperations:function(){},getBestMatchForTrackedPath:function(){return null},getComponentStack:function(e){if(void 0===o)return null;var t=o();if(null===t)return null;if(t.debugTask)return null;var n=null!=t.debugStack,r="";if(n){var i=$e(e);i&&(r+="\n"+i),r+=function(e){try{var t="";if(!e.owner&&"string"==typeof e.name)return Un(e.name);for(var n=e;n;){var r=n.debugStack;if(null==r)break;(n=n.owner)&&(t+="\n"+$e(r))}return t}catch(o){return"\nError generating stack: "+o.message+"\n"+o.stack}}(t)}return{enableOwnerStacks:n,componentStack:r}},getDisplayNameForElementID:function(){return null},getNearestMountedDOMNode:function(){return null},getElementIDForHostInstance:function(){return null},getInstanceAndStyle:function(){return{instance:null,style:null}},getOwnersList:function(){return null},getPathForElement:function(){return null},getProfilingData:function(){throw new Error("getProfilingData not supported by this renderer")},handleCommitFiberRoot:function(){},handleCommitFiberUnmount:function(){},handlePostCommitFiberRoot:function(){},hasElementWithId:function(){return!1},inspectElement:function(e,t,n){return{id:t,responseID:e,type:"not-found"}},logElementToConsole:function(){},getElementAttributeByPath:function(){},getElementSourceFunctionById:function(){},onErrorOrWarning:function(e,t){if(void 0!==o){var n=o();if(null!==n){if(t.length>3&&"string"==typeof t[0]&&t[0].startsWith("%c%s%c ")&&"string"==typeof t[1]&&"string"==typeof t[2]&&"string"==typeof t[3]){var r=t[0].slice(7),i=t[2].trim();t=t.slice(4),i!==n.env?t.unshift("["+i+"] "+r):t.unshift(r)}var a=lt.apply(void 0,Gn(t)),s=$n.get(n);void 0===s&&(s={errors:new Map,errorsCount:0,warnings:new Map,warningsCount:0},$n.set(n,s));var l="error"===e?s.errors:s.warnings,u=l.get(a)||0;l.set(a,u+1),"error"===e?s.errorsCount++:s.warningsCount++}}},overrideError:function(){},overrideSuspense:function(){},overrideValueAtPath:function(){},renamePath:function(){},renderer:n,setTraceUpdatesEnabled:function(){},setTrackedPath:function(){},startProfiling:function(){},stopProfiling:function(){},storeAsGlobal:function(){},updateComponentFilters:function(){},getEnvironmentNames:function(){return[]}}}var Kn=n(987),Qn=60111,Xn="Symbol(react.concurrent_mode)",Jn=60110,Zn="Symbol(react.context)",er="Symbol(react.server_context)",tr="Symbol(react.async_mode)",nr=60112,rr="Symbol(react.forward_ref)",or=60115,ir="Symbol(react.memo)",ar=60114,sr="Symbol(react.profiler)",lr=60109,ur="Symbol(react.provider)",cr="Symbol(react.consumer)",fr=60119,dr="Symbol(react.scope)",pr=60108,hr="Symbol(react.strict_mode)",mr=Symbol.for("react.memo_cache_sentinel");const vr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},yr=Object.prototype.hasOwnProperty;function gr(e,t,n){var r=e.HostHoistable,o=e.HostSingleton,i=e.HostComponent,a=e.LazyComponent,s=e.SuspenseComponent,l=e.SuspenseListComponent,u=e.FunctionComponent,c=e.IndeterminateComponent,f=e.SimpleMemoComponent,d=e.ForwardRef,p=e.ClassComponent,h=e.ViewTransitionComponent,m=e.ActivityComponent;switch(t.tag){case r:case o:case i:return Un(t.type);case a:return Un("Lazy");case s:return Un("Suspense");case l:return Un("SuspenseList");case h:return Un("ViewTransition");case m:return Un("Activity");case u:case c:case f:return Wn(t.type,n);case d:return Wn(t.type.render,n);case p:return function(e,t){return zn(e,!0,t)}(t.type,n);default:return""}}var br=31,_r=1;function wr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Sr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Er(e){return(Er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var kr=10,Cr=null,xr="undefined"!=typeof performance&&"function"==typeof performance.mark&&"function"==typeof performance.clearMarks,Ir=!1;if(xr){var Or="__v3",Tr={};Object.defineProperty(Tr,"startTime",{get:function(){return Ir=!0,0},set:function(){}});try{performance.mark(Or,Tr)}catch(Yo){}finally{performance.clearMarks(Or)}}Ir&&(Cr=performance);var Nr="object"===("undefined"==typeof performance?"undefined":Er(performance))&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Pr(e){var t=e.getDisplayNameForFiber,n=e.getLaneLabelMap,r=e.workTagMap,o=e.currentDispatcherRef,i=e.reactVersion,a=0,s=null,l=[],u=null,c=new Map,f=!1,d=!1;function p(){var e=Nr();return u?(0===u.startTime&&(u.startTime=e-kr),e-u.startTime):0}function h(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.getInternalModuleRanges){var e=__REACT_DEVTOOLS_GLOBAL_HOOK__.getInternalModuleRanges();if(We(e))return e}return null}function m(e){for(var t=[],n=1,r=0;r<br;r++)n&e&&t.push(n),n*=2;return t}var v="function"==typeof n?n():null;function y(e){Cr.mark(e),Cr.clearMarks(e)}function g(e,t){var n=0;if(l.length>0){var r=l[l.length-1];n="render-idle"===r.type?r.depth:r.depth+1}var o=m(t),i={type:e,batchUID:a,depth:n,lanes:o,timestamp:p(),duration:0};if(l.push(i),u){var s=u,c=s.batchUIDToMeasuresMap,f=s.laneToReactMeasureMap,d=c.get(a);null!=d?d.push(i):c.set(a,[i]),o.forEach(function(e){(d=f.get(e))&&d.push(i)})}}function b(e){var t=p();if(0!==l.length){var n=l.pop();n.type!==e&&console.error('Unexpected type "%s" completed at %sms before "%s" completed.',e,t,n.type),n.duration=t-n.timestamp,u&&(u.duration=p()+kr)}else console.error('Unexpected type "%s" completed at %sms while currentReactMeasuresStack is empty.',e,t)}var _=new("function"==typeof WeakMap?WeakMap:Map),w=0;return{getTimelineData:function(){return u},profilingHooks:{markCommitStarted:function(e){f&&(g("commit",e),d=!0,Ir&&(y("--commit-start-".concat(e)),function(){y("--react-version-".concat(i)),y("--profiler-version-".concat(_r));var e=h();if(e)for(var t=0;t<e.length;t++){var n=e[t];if(We(n)&&2===n.length){var r=wr(e[t],2),o=r[0],a=r[1];y("--react-internal-module-start-".concat(o)),y("--react-internal-module-stop-".concat(a))}}if(null!=v){var s=Array.from(v.values()).join(",");y("--react-lane-labels-".concat(s))}}()))},markCommitStopped:function(){f&&(b("commit"),b("render-idle"),Ir&&y("--commit-stop"))},markComponentRenderStarted:function(e){if(f){var n=t(e)||"Unknown";s={componentName:n,duration:0,timestamp:p(),type:"render",warning:null},Ir&&y("--component-render-start-".concat(n))}},markComponentRenderStopped:function(){f&&(s&&(u&&u.componentMeasures.push(s),s.duration=p()-s.timestamp,s=null),Ir&&y("--component-render-stop"))},markComponentPassiveEffectMountStarted:function(e){if(f){var n=t(e)||"Unknown";s={componentName:n,duration:0,timestamp:p(),type:"passive-effect-mount",warning:null},Ir&&y("--component-passive-effect-mount-start-".concat(n))}},markComponentPassiveEffectMountStopped:function(){f&&(s&&(u&&u.componentMeasures.push(s),s.duration=p()-s.timestamp,s=null),Ir&&y("--component-passive-effect-mount-stop"))},markComponentPassiveEffectUnmountStarted:function(e){if(f){var n=t(e)||"Unknown";s={componentName:n,duration:0,timestamp:p(),type:"passive-effect-unmount",warning:null},Ir&&y("--component-passive-effect-unmount-start-".concat(n))}},markComponentPassiveEffectUnmountStopped:function(){f&&(s&&(u&&u.componentMeasures.push(s),s.duration=p()-s.timestamp,s=null),Ir&&y("--component-passive-effect-unmount-stop"))},markComponentLayoutEffectMountStarted:function(e){if(f){var n=t(e)||"Unknown";s={componentName:n,duration:0,timestamp:p(),type:"layout-effect-mount",warning:null},Ir&&y("--component-layout-effect-mount-start-".concat(n))}},markComponentLayoutEffectMountStopped:function(){f&&(s&&(u&&u.componentMeasures.push(s),s.duration=p()-s.timestamp,s=null),Ir&&y("--component-layout-effect-mount-stop"))},markComponentLayoutEffectUnmountStarted:function(e){if(f){var n=t(e)||"Unknown";s={componentName:n,duration:0,timestamp:p(),type:"layout-effect-unmount",warning:null},Ir&&y("--component-layout-effect-unmount-start-".concat(n))}},markComponentLayoutEffectUnmountStopped:function(){f&&(s&&(u&&u.componentMeasures.push(s),s.duration=p()-s.timestamp,s=null),Ir&&y("--component-layout-effect-unmount-stop"))},markComponentErrored:function(e,n,r){if(f){var o=t(e)||"Unknown",i=null===e.alternate?"mount":"update",a="";null!==n&&"object"===Er(n)&&"string"==typeof n.message?a=n.message:"string"==typeof n&&(a=n),u&&u.thrownErrors.push({componentName:o,message:a,phase:i,timestamp:p(),type:"thrown-error"}),Ir&&y("--error-".concat(o,"-").concat(i,"-").concat(a))}},markComponentSuspended:function(e,n,r){if(f){var o=_.has(n)?"resuspend":"suspend",i=function(e){return _.has(e)||_.set(e,w++),_.get(e)}(n),a=t(e)||"Unknown",s=null===e.alternate?"mount":"update",l=n.displayName||"",c=null;c={componentName:a,depth:0,duration:0,id:"".concat(i),phase:s,promiseName:l,resolution:"unresolved",timestamp:p(),type:"suspense",warning:null},u&&u.suspenseEvents.push(c),Ir&&(y("--suspense-".concat(o,"-").concat(i,"-").concat(a,"-").concat(s,"-").concat(r,"-").concat(l)),n.then(function(){c&&(c.duration=p()-c.timestamp,c.resolution="resolved"),Ir&&y("--suspense-resolved-".concat(i,"-").concat(a))},function(){c&&(c.duration=p()-c.timestamp,c.resolution="rejected"),Ir&&y("--suspense-rejected-".concat(i,"-").concat(a))}))}},markLayoutEffectsStarted:function(e){f&&(g("layout-effects",e),Ir&&y("--layout-effects-start-".concat(e)))},markLayoutEffectsStopped:function(){f&&(b("layout-effects"),Ir&&y("--layout-effects-stop"))},markPassiveEffectsStarted:function(e){f&&(g("passive-effects",e),Ir&&y("--passive-effects-start-".concat(e)))},markPassiveEffectsStopped:function(){f&&(b("passive-effects"),Ir&&y("--passive-effects-stop"))},markRenderStarted:function(e){f&&(d&&(d=!1,a++),0!==l.length&&"render-idle"===l[l.length-1].type||g("render-idle",e),g("render",e),Ir&&y("--render-start-".concat(e)))},markRenderYielded:function(){f&&(b("render"),Ir&&y("--render-yield"))},markRenderStopped:function(){f&&(b("render"),Ir&&y("--render-stop"))},markRenderScheduled:function(e){f&&(u&&u.schedulingEvents.push({lanes:m(e),timestamp:p(),type:"schedule-render",warning:null}),Ir&&y("--schedule-render-".concat(e)))},markForceUpdateScheduled:function(e,n){if(f){var r=t(e)||"Unknown";u&&u.schedulingEvents.push({componentName:r,lanes:m(n),timestamp:p(),type:"schedule-force-update",warning:null}),Ir&&y("--schedule-forced-update-".concat(n,"-").concat(r))}},markStateUpdateScheduled:function(e,n){if(f){var r=t(e)||"Unknown";if(u){var o={componentName:r,lanes:m(n),timestamp:p(),type:"schedule-state-update",warning:null};c.set(o,function(e){for(var t=[],n=e;null!==n;)t.push(n),n=n.return;return t}(e)),u.schedulingEvents.push(o)}Ir&&y("--schedule-state-update-".concat(n,"-").concat(r))}}},toggleProfilingStatus:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(f!==e)if(f=e){var n=new Map;if(Ir){var p=h();if(p)for(var m=0;m<p.length;m++){var g=p[m];if(We(g)&&2===g.length){var b=wr(p[m],2),_=b[0],w=b[1];y("--react-internal-module-start-".concat(_)),y("--react-internal-module-stop-".concat(w))}}}for(var S=new Map,E=1,k=0;k<br;k++)S.set(E,[]),E*=2;a=0,s=null,l=[],c=new Map,t&&(u={internalModuleSourceToRanges:n,laneToLabelMap:v||new Map,reactVersion:i,componentMeasures:[],schedulingEvents:[],suspenseEvents:[],thrownErrors:[],batchUIDToMeasuresMap:new Map,duration:0,laneToReactMeasureMap:S,startTime:0,flamechart:[],nativeEvents:[],networkMeasures:[],otherUserTimingMarks:[],snapshots:[],snapshotHeight:0}),d=!0}else null!==u&&u.schedulingEvents.forEach(function(e){if("schedule-state-update"===e.type){var t=c.get(e);t&&null!=o&&(e.componentStack=t.reduce(function(e,t){return e+gr(r,t,o)},""))}}),c.clear()}}}function Ar(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Dr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Rr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dr(Object(n),!0).forEach(function(t){Lr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Lr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mr(e){return function(e){if(Array.isArray(e))return Hr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Fr(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jr(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=Fr(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Fr(e,t){if(e){if("string"==typeof e)return Hr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hr(e,t):void 0}}function Hr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ur(e){return(Ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Br=Object.prototype.toString,Vr=0,zr=1,Wr=2;function $r(e){return{kind:Vr,id:Se(),parent:null,firstChild:null,nextSibling:null,source:null,logCount:0,treeBaseDuration:0,data:e}}function Gr(e){return{kind:zr,id:Se(),parent:null,firstChild:null,nextSibling:null,source:null,logCount:0,treeBaseDuration:0,data:e}}function qr(e){if(void 0!==e.currentDispatcherRef){var t=e.currentDispatcherRef;return void 0===t.H&&void 0!==t.current?{get H(){return t.current},set H(e){t.current=e}}:t}}var Yr="object"===("undefined"==typeof performance?"undefined":Ur(performance))&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Kr(e){var t={ImmediatePriority:99,UserBlockingPriority:98,NormalPriority:97,LowPriority:96,IdlePriority:95,NoPriority:90};ut(e,"17.0.2")&&(t={ImmediatePriority:1,UserBlockingPriority:2,NormalPriority:3,LowPriority:4,IdlePriority:5,NoPriority:0});var n=0;ct(e,"18.0.0-alpha")?n=24:ct(e,"16.9.0")?n=1:ct(e,"16.3.0")&&(n=2);var r=null;function o(e){var t="object"===Ur(e)&&null!==e?e.$$typeof:e;return"symbol"===Ur(t)?t.toString():t}var i=r=ut(e,"17.0.1")?{CacheComponent:24,ClassComponent:1,ContextConsumer:9,ContextProvider:10,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:18,ForwardRef:11,Fragment:7,FunctionComponent:0,HostComponent:5,HostPortal:4,HostRoot:3,HostHoistable:26,HostSingleton:27,HostText:6,IncompleteClassComponent:17,IncompleteFunctionComponent:28,IndeterminateComponent:2,LazyComponent:16,LegacyHiddenComponent:23,MemoComponent:14,Mode:8,OffscreenComponent:22,Profiler:12,ScopeComponent:21,SimpleMemoComponent:15,SuspenseComponent:13,SuspenseListComponent:19,TracingMarkerComponent:25,YieldComponent:-1,Throw:29,ViewTransitionComponent:30,ActivityComponent:31}:ct(e,"17.0.0-alpha")?{CacheComponent:-1,ClassComponent:1,ContextConsumer:9,ContextProvider:10,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:18,ForwardRef:11,Fragment:7,FunctionComponent:0,HostComponent:5,HostPortal:4,HostRoot:3,HostHoistable:-1,HostSingleton:-1,HostText:6,IncompleteClassComponent:17,IncompleteFunctionComponent:-1,IndeterminateComponent:2,LazyComponent:16,LegacyHiddenComponent:24,MemoComponent:14,Mode:8,OffscreenComponent:23,Profiler:12,ScopeComponent:21,SimpleMemoComponent:15,SuspenseComponent:13,SuspenseListComponent:19,TracingMarkerComponent:-1,YieldComponent:-1,Throw:-1,ViewTransitionComponent:-1,ActivityComponent:-1}:ct(e,"16.6.0-beta.0")?{CacheComponent:-1,ClassComponent:1,ContextConsumer:9,ContextProvider:10,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:18,ForwardRef:11,Fragment:7,FunctionComponent:0,HostComponent:5,HostPortal:4,HostRoot:3,HostHoistable:-1,HostSingleton:-1,HostText:6,IncompleteClassComponent:17,IncompleteFunctionComponent:-1,IndeterminateComponent:2,LazyComponent:16,LegacyHiddenComponent:-1,MemoComponent:14,Mode:8,OffscreenComponent:-1,Profiler:12,ScopeComponent:-1,SimpleMemoComponent:15,SuspenseComponent:13,SuspenseListComponent:19,TracingMarkerComponent:-1,YieldComponent:-1,Throw:-1,ViewTransitionComponent:-1,ActivityComponent:-1}:ct(e,"16.4.3-alpha")?{CacheComponent:-1,ClassComponent:2,ContextConsumer:11,ContextProvider:12,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:-1,ForwardRef:13,Fragment:9,FunctionComponent:0,HostComponent:7,HostPortal:6,HostRoot:5,HostHoistable:-1,HostSingleton:-1,HostText:8,IncompleteClassComponent:-1,IncompleteFunctionComponent:-1,IndeterminateComponent:4,LazyComponent:-1,LegacyHiddenComponent:-1,MemoComponent:-1,Mode:10,OffscreenComponent:-1,Profiler:15,ScopeComponent:-1,SimpleMemoComponent:-1,SuspenseComponent:16,SuspenseListComponent:-1,TracingMarkerComponent:-1,YieldComponent:-1,Throw:-1,ViewTransitionComponent:-1,ActivityComponent:-1}:{CacheComponent:-1,ClassComponent:2,ContextConsumer:12,ContextProvider:13,CoroutineComponent:7,CoroutineHandlerPhase:8,DehydratedSuspenseComponent:-1,ForwardRef:14,Fragment:10,FunctionComponent:1,HostComponent:5,HostPortal:4,HostRoot:3,HostHoistable:-1,HostSingleton:-1,HostText:6,IncompleteClassComponent:-1,IncompleteFunctionComponent:-1,IndeterminateComponent:0,LazyComponent:-1,LegacyHiddenComponent:-1,MemoComponent:-1,Mode:11,OffscreenComponent:-1,Profiler:15,ScopeComponent:-1,SimpleMemoComponent:-1,SuspenseComponent:16,SuspenseListComponent:-1,TracingMarkerComponent:-1,YieldComponent:9,Throw:-1,ViewTransitionComponent:-1,ActivityComponent:-1},a=i.CacheComponent,s=i.ClassComponent,l=i.IncompleteClassComponent,u=i.IncompleteFunctionComponent,c=i.FunctionComponent,f=i.IndeterminateComponent,d=i.ForwardRef,p=i.HostRoot,h=i.HostHoistable,m=i.HostSingleton,v=i.HostComponent,y=i.HostPortal,g=i.HostText,b=i.Fragment,_=i.LazyComponent,w=i.LegacyHiddenComponent,S=i.MemoComponent,E=i.OffscreenComponent,k=i.Profiler,C=i.ScopeComponent,x=i.SimpleMemoComponent,I=i.SuspenseComponent,O=i.SuspenseListComponent,T=i.TracingMarkerComponent,N=i.Throw,P=i.ViewTransitionComponent,A=i.ActivityComponent;function D(e){switch(o(e)){case or:case ir:return D(e.type);case nr:case rr:return e.render;default:return e}}return{getDisplayNameForFiber:function e(t){var n,r,i,R,L,M=arguments.length>1&&void 0!==arguments[1]&&arguments[1],j=t.elementType,F=t.type,H=t.tag,U=F;"object"===Ur(F)&&null!==F&&(U=D(F));var B=null;if(!M&&(null!=(null===(n=t.updateQueue)||void 0===n?void 0:n.memoCache)||Array.isArray(null===(r=t.memoizedState)||void 0===r?void 0:r.memoizedState)&&(null===(i=t.memoizedState.memoizedState[0])||void 0===i?void 0:i[mr])||(null===(R=t.memoizedState)||void 0===R||null===(L=R.memoizedState)||void 0===L?void 0:L[mr]))){var V=e(t,!0);return null==V?null:"Forget(".concat(V,")")}switch(H){case A:return"Activity";case a:return"Cache";case s:case l:case u:case c:case f:return _e(U);case d:return be(j,U,"ForwardRef","Anonymous");case p:var z=t.stateNode;return null!=z&&null!==z._debugRootType?z._debugRootType:null;case v:case m:case h:return F;case y:case g:return null;case b:return"Fragment";case _:return"Lazy";case S:case x:return be(j,U,"Memo","Anonymous");case I:return"Suspense";case w:return"LegacyHidden";case E:return"Offscreen";case C:return"Scope";case O:return"SuspenseList";case k:return"Profiler";case T:return"TracingMarker";case P:return"ViewTransition";case N:return"Error";default:switch(o(F)){case Qn:case Xn:case tr:return null;case lr:case ur:return B=t.type._context||t.type.context,"".concat(B.displayName||"Context",".Provider");case Jn:case Zn:case er:return void 0===t.type._context&&t.type.Provider===t.type?(B=t.type,"".concat(B.displayName||"Context",".Provider")):(B=t.type._context||t.type,"".concat(B.displayName||"Context",".Consumer"));case cr:return B=t.type._context,"".concat(B.displayName||"Context",".Consumer");case pr:case hr:return null;case ar:case sr:return"Profiler(".concat(t.memoizedProps.id,")");case fr:case dr:return"Scope";default:return null}}},getTypeSymbol:o,ReactPriorityLevels:t,ReactTypeOfWork:r,StrictModeBits:n}}var Qr=new Set,Xr=new Map,Jr=new Map,Zr=new Map,eo=new Map;function to(e){if("object"===Ur(e)&&null!==e){if("object"===Ur(e.canonical)&&null!==e.canonical&&"object"===Ur(e.canonical.publicInstance)&&null!==e.canonical.publicInstance)return e.canonical.publicInstance;if("number"==typeof e._nativeTag)return e._nativeTag}return e}function no(e,t){var n=to(t);Zr.set(n,e)}function ro(e,t){var n=to(t);Zr.get(n)===e&&Zr.delete(n)}function oo(e,t){var n=t&&t.instance;if(n){var r=to(n),o=eo.get(r);void 0===o&&(o=new Set,eo.set(r,o),Zr.set(r,e)),o.add(e)}}function io(e,t){var n=t&&t.instance;if(n){var r=to(n),o=eo.get(r);if(void 0!==o)if(o.delete(e),0===o.size)eo.delete(r),Zr.delete(r);else if(Zr.get(r)===e){var i,a=jr(o);try{for(a.s();!(i=a.n()).done;){var s=i.value;Zr.set(s,e);break}}catch(l){a.e(l)}finally{a.f()}}}}function ao(e,t,n,r,d,p){var h=n.reconcilerVersion||n.version,m=Kr(h),v=m.getDisplayNameForFiber,y=m.getTypeSymbol,g=m.ReactPriorityLevels,b=m.ReactTypeOfWork,_=m.StrictModeBits,w=b.ActivityComponent,S=b.CacheComponent,E=b.ClassComponent,k=b.ContextConsumer,C=b.DehydratedSuspenseComponent,x=b.ForwardRef,I=b.Fragment,O=b.FunctionComponent,T=b.HostRoot,N=b.HostHoistable,P=b.HostSingleton,A=b.HostPortal,D=b.HostComponent,R=b.HostText,L=b.IncompleteClassComponent,M=b.IncompleteFunctionComponent,j=b.IndeterminateComponent,F=b.LegacyHiddenComponent,H=b.MemoComponent,U=b.OffscreenComponent,B=b.SimpleMemoComponent,ue=b.SuspenseComponent,ce=b.SuspenseListComponent,fe=b.TracingMarkerComponent,de=b.Throw,pe=b.ViewTransitionComponent,he=g.ImmediatePriority,me=g.UserBlockingPriority,ve=g.NormalPriority,ye=g.LowPriority,ge=g.IdlePriority,be=(g.NoPriority,n.getLaneLabelMap),_e=n.injectProfilingHooks,we=n.overrideHookState,Se=n.overrideHookStateDeletePath,Ee=n.overrideHookStateRenamePath,Ne=n.overrideProps,Pe=n.overridePropsDeletePath,Ae=n.overridePropsRenamePath,De=n.scheduleRefresh,Re=n.setErrorHandler,Le=n.setSuspenseHandler,Me=n.scheduleUpdate,je=n.getCurrentFiber,Fe="function"==typeof Re&&"function"==typeof Me,He="function"==typeof Le&&"function"==typeof Me;"function"==typeof De&&(n.scheduleRefresh=function(){try{e.emit("fastRefreshScheduled")}finally{return De.apply(void 0,arguments)}});var Ue=null,Be=null;if("function"==typeof _e){var Ve=Pr({getDisplayNameForFiber:v,getLaneLabelMap:be,currentDispatcherRef:qr(n),workTagMap:b,reactVersion:h});_e(Ve.profilingHooks),Ue=Ve.getTimelineData,Be=Ve.toggleProfilingStatus}var ze=new WeakMap,We=!1;function qe(e,t){var n=Jr.get(e);if(void 0!==n){var r;if(n.kind===Vr){var o=n.data;void 0===(r=ze.get(o))&&null!==o.alternate&&(r=ze.get(o.alternate))}else{var i=n.data;r=$n.get(i)}void 0!==r&&("error"===t?(r.errors.clear(),r.errorsCount=0):(r.warnings.clear(),r.warningsCount=0),Pt(n,r)&&(At(),Ye(n.id)))}}function Ye(e){null!==hn&&hn.id===e&&(mn=!0)}var Ke,Qe=new Set,Xe=new Set,Je=new Set,Ze=new Set,et=!1,tt=new Set;function st(e){Je.clear(),Qe.clear(),Xe.clear(),Ze.clear(),e.forEach(function(e){if(e.isEnabled)switch(e.type){case oe:e.isValid&&""!==e.value&&Qe.add(new RegExp(e.value,"i"));break;case re:Je.add(e.value);break;case ie:e.isValid&&""!==e.value&&Xe.add(new RegExp(e.value,"i"));break;case ae:Qe.add(new RegExp("\\("));break;case se:Ze.add(e.value);break;default:console.warn('Invalid component filter type "'.concat(e.type,'"'))}})}function ut(e,t){if(Je.has(W))return!0;if(Qe.size>0){var n=e.name;if(null!=n){var r,o=jr(Qe);try{for(o.s();!(r=o.n()).done;)if(r.value.test(n))return!0}catch(i){o.e(i)}finally{o.f()}}}return!(null!=e.env&&!Ze.has(e.env)||null!==t&&!Ze.has(t))}function ct(e){var t=e.tag,n=e.type,r=e.key;switch(t){case C:case A:case R:case F:case U:case de:return!0;case T:return!1;case I:return null===r;default:switch(y(n)){case Qn:case Xn:case tr:case pr:case hr:return!0}}var o=ft(e);if(Je.has(o))return!0;if(Qe.size>0){var i=v(e);if(null!=i){var a,s=jr(Qe);try{for(s.s();!(a=s.n()).done;)if(a.value.test(i))return!0}catch(l){s.e(l)}finally{s.f()}}}if(Ze.has("Client"))switch(t){case E:case L:case M:case O:case j:case x:case H:case B:return!0}return!1}function ft(e){var t=e.type;switch(e.tag){case w:return ne;case E:case L:return V;case M:case O:case j:return W;case x:return $;case T:return Q;case D:case N:case P:return G;case A:case R:case I:return Y;case H:case B:return q;case ue:return X;case ce:return J;case fe:return Z;case pe:return te;default:switch(y(t)){case Qn:case Xn:case tr:return Y;case lr:case ur:case Jn:case Zn:return z;case pr:case hr:return Y;case ar:case sr:return K;default:return Y}}}null!=window.__REACT_DEVTOOLS_COMPONENT_FILTERS__?st((Ke=window.__REACT_DEVTOOLS_COMPONENT_FILTERS__,Array.isArray(Ke)?Ke.filter(function(e){return e.type!==ie}):Ke)):st(Ce());var dt=null;function pt(e,t){Pn.size>0&&(Pn.delete(t),t.alternate&&Pn.delete(t.alternate),0===Pn.size&&null!=Re&&Re(Nn)),Rn.size>0&&(Rn.delete(t),t.alternate&&Rn.delete(t.alternate),0===Rn.size&&null!=Le&&Le(Dn)),t.tag===N?io(e,t.memoizedState):t.tag!==D&&t.tag!==R&&t.tag!==P||ro(e,t.stateNode);for(var n=t.child;null!==n;n=n.sibling)ct(n)&&pt(e,n)}function gt(e,t){switch(t.tag){case E:return null===e?{context:null,didHooksChange:!1,isFirstMount:!0,props:null,state:null}:{context:bt(e,t),didHooksChange:!1,isFirstMount:!1,props:wt(e.memoizedProps,t.memoizedProps),state:wt(e.memoizedState,t.memoizedState)};case M:case O:case j:case x:case H:case B:if(null===e)return{context:null,didHooksChange:!1,isFirstMount:!0,props:null,state:null};var n=function(e,t){if(null==e||null==t)return null;for(var n=[],r=0;null!==t;)_t(e,t)&&n.push(r),t=t.next,e=e.next,r++;return n}(e.memoizedState,t.memoizedState);return{context:bt(e,t),didHooksChange:null!==n&&n.length>0,isFirstMount:!1,props:wt(e.memoizedProps,t.memoizedProps),state:null,hooks:n};default:return null}}function bt(e,t){for(var n=e.dependencies&&e.dependencies.firstContext,r=t.dependencies&&t.dependencies.firstContext;n&&r;){if(n.context!==r.context)return!1;if(!vr(n.memoizedValue,r.memoizedValue))return!0;n=n.next,r=r.next}return!1}function _t(e,t){var n=e.memoizedState,r=t.memoizedState;return!!function(e){var t=e.queue;if(!t)return!1;var n=yr.bind(t);return!!n("pending")||n("value")&&n("getSnapshot")&&"function"==typeof t.getSnapshot}(e)&&n!==r}function wt(e,t){if(null==e||null==t)return null;var n,r=[],o=jr(new Set([].concat(Mr(Object.keys(e)),Mr(Object.keys(t)))));try{for(o.s();!(n=o.n()).done;){var i=n.value;e[i]!==t[i]&&r.push(i)}}catch(a){o.e(a)}finally{o.f()}return r}function St(e,t){switch(t.tag){case E:case O:case k:case H:case B:case x:return!(1&(n=t,~(void 0!==n.flags?n.flags:n.effectTag)));default:return e.memoizedProps!==t.memoizedProps||e.memoizedState!==t.memoizedState||e.ref!==t.ref}var n}var Et=[],kt=[],Ct=[],xt=new Map,It=0,Ot=null;function Tt(e){Et.push(e)}function Nt(){return!(Sn&&null!=bn&&bn.durations.length>0)&&0===Et.length&&0===kt.length&&null===Ot}function Pt(e,t){if(void 0===t)return 0!==e.logCount&&(e.logCount=0,Tt(l),Tt(e.id),Tt(0),Tt(0),!0);var n=t.errorsCount+t.warningsCount;return e.logCount!==n&&(e.logCount=n,Tt(l),Tt(e.id),Tt(t.errorsCount),Tt(t.warningsCount),!0)}function At(n){if(!Nt()){var r=kt.length+(null===Ot?0:1),o=new Array(3+It+(r>0?2+r:0)+Et.length),a=0;if(o[a++]=t,o[a++]=null===dt?-1:dt.id,o[a++]=It,xt.forEach(function(e,t){var n=e.encodedString,r=n.length;o[a++]=r;for(var i=0;i<r;i++)o[a+i]=n[i];a+=r}),r>0){o[a++]=i,o[a++]=r;for(var s=0;s<kt.length;s++)o[a++]=kt[s];null!==Ot&&(o[a]=Ot,a++)}for(var l=0;l<Et.length;l++)o[a+l]=Et[l];a+=Et.length,function(t){Nt()||(null!==Ct?Ct.push(t):e.emit("operations",t))}(o),Et.length=0,kt.length=0,Ot=null,xt.clear(),It=0}}function Dt(e){if(null===e)return 0;var t=xt.get(e);if(void 0!==t)return t.id;var n=xt.size+1,r=ke(e);return xt.set(e,{encodedString:r,id:n}),It+=r.length+1,n}function Rt(e,t,n){var r=e.id;Jr.set(r,e);var i=e.data,a="string"==typeof i.key?i.key:null,s=i.env,l=i.name||"";"string"==typeof s&&(null!==n&&(l=n+"("+l+")"),l=s+"("+l+")");var u=ee,c=cn(i),f=fn(t,c);null!==f&&c===i.owner&&null!=i.debugStack&&null===f.source&&(f.source=i.debugStack);var d=null===f?0:f.id,p=t?t.kind===Wr?t.parent.id:t.id:0,h=Dt(l),m=Dt(null===a?null:String(a));Tt(o),Tt(r),Tt(u),Tt(p),Tt(d),Tt(h),Tt(m),Pt(e,$n.get(i))}var Lt=null,Mt=null,jt=null;function Ft(e){var t=jt;null!==t&&(e.parent=t,null===Mt?(Mt=e,t.firstChild=e):(Mt.nextSibling=e,Mt=e),e.nextSibling=null)}function Ht(e,t){Ut(e,t),Ft(e)}function Ut(e,t){if(null!==e.parent){var n=jt;if(null===n)throw new Error("Should not have a parent if we are at the root");if(e.parent!==n)throw new Error("Cannot remove a node from a different parent than is being reconciled.");if(null===t){if(Lt!==e)throw new Error("Expected a placed child to be moved from the remaining set.");Lt=e.nextSibling}else t.nextSibling=e.nextSibling;e.nextSibling=null,e.parent=null}else{if(Lt===e)throw new Error("Remaining children should not have items with no parent");if(null!==e.nextSibling)throw new Error("A deleted instance should not have next siblings")}}function Bt(){for(var e=Lt;null!==e;)qt(e),e=Lt}function Vt(e,t,n,r,o){var i=function(e,t){if(null===Mn||!Vn)return!1;if(Fn===t){var n=or(e),r=Mn[Hn+1];if(void 0===r)throw new Error("Expected to see a frame at the next depth.");if(n.index===r.index&&n.key===r.key&&n.displayName===r.displayName)return jn=null,Fn=e,Hn++,Vn=Hn!==Mn.length-1,!1}return null!==jn||(Vn=!1),!0}(e,jt),a=jt,s=Mt,l=Lt;jt=e,Mt=null,Lt=null;try{Wt(t,n,r,o+1),Kt(e)}finally{jt=a,Mt=s,Lt=l,Gn(i)}}function zt(e,t){if(null!=e)for(var n=e[t],r=t+1;r<e.length;r++){var o=e[r];if("string"==typeof o.env)return n.env!==o.env?o.env:null}return null}function Wt(e,t,n,r){for(var o=e,i=null,a=e;null!==o&&o!==t;){var s=0;if(o._debugInfo)for(var l=0;l<o._debugInfo.length;l++){var u=o._debugInfo[l];if("string"==typeof u.name){var c=u,f=zt(o._debugInfo,l);if(null!=c.env&&Qr.add(c.env),null!==f&&Qr.add(f),!ut(c,f)){if(s===r){null!==i&&i.data===u||(null!==i&&Vt(i,a,o,n,r),Rt(i=Gr(c),jt,f),Ft(i),a=o),s++;break}s++}}}s===r&&(null!==i&&(Vt(i,a,o,n,r),i=null),Gt(o,n)),o=o.sibling}null!==i&&Vt(i,a,null,n,r)}function $t(e,t){Wt(e,null,t,0)}function Gt(e,t){var r=null;ct(e)?null!==jt&&jt.kind===zr&&(jt.data===e._debugOwner&&null!=e._debugStack&&null===jt.source&&(jt.source=e._debugStack),r=function(e){return{kind:Wr,id:0,parent:null,firstChild:null,nextSibling:null,source:null,logCount:0,treeBaseDuration:0,data:e}}(e),Ft(r)):(r=function(e,t){var r,i=e.tag===T;if(i){var a=Xr.get(e.stateNode);if(void 0===a)throw new Error("The root should have been registered at this point");r=a}else r=$r(e);Jr.set(r.id,r);var s=r.id,l=e.hasOwnProperty("treeBaseDuration");if(i){var d=e.hasOwnProperty("_debugOwner"),p=0;l&&(p=c,"function"==typeof _e&&(p|=f));var h=0===n.bundleType;Tt(o),Tt(s),Tt(Q),Tt(0!==(e.mode&_)?1:0),Tt(p),Tt(h||0===_?0:1),Tt(d?1:0),Sn&&null!==_n&&_n.set(s,nr(e))}else{var m=e.key,y=v(e),g=ft(e),b=cn(e),w=fn(t,b);null!==w&&b===e._debugOwner&&null!=e._debugStack&&null===w.source&&(w.source=e._debugStack);var S=null===w?0:w.id,E=t?t.kind===Wr?t.parent.id:t.id:0,k=Dt(y),C=Dt(null===m?null:String(m));if(Tt(o),Tt(s),Tt(g),Tt(E),Tt(S),Tt(k),Tt(C),0!==(e.mode&_)){for(var x=null,I=t;null!==I;){if(I.kind===Vr){x=I.data;break}I=I.parent}null!==x&&0!==(x.mode&_)||(Tt(u),Tt(s),Tt(le))}}var O=ze.get(e);return void 0===O&&null!==e.alternate&&(O=ze.get(e.alternate)),Pt(r,O),l&&Yt(r,null),r}(e,jt),Ft(r));var i=Wn(e,r),a=jt,s=Mt,l=Lt;null!==r&&(jt=r,Mt=null,Lt=null);try{if(et&&t&&ft(e)===G&&(tt.add(e.stateNode),t=!1),e.tag===N){var d=jt;if(null===d)throw new Error("Did not expect a host hoistable to be the root");oo(d,e.memoizedState)}else if(e.tag===D||e.tag===R||e.tag===P){var p=jt;if(null===p)throw new Error("Did not expect a host hoistable to be the root");no(p,e.stateNode)}if(e.tag===ue)if(null!==e.memoizedState){var h=e.child,m=h?h.sibling:null;if(m){var y=m.child;null!==y&&(Wn(m,null),$t(y,t))}}else{var g=null;-1===U?g=e.child:null!==e.child&&(g=e.child.child,Wn(e.child,null)),null!==g&&$t(g,t)}else null!==e.child&&$t(e.child,t)}finally{null!==r&&(jt=a,Mt=s,Lt=l)}Gn(i)}function qt(e){var t=jt,n=Mt,r=Lt;jt=e,Mt=null,Lt=e.firstChild,e.firstChild=null;try{Bt()}finally{jt=t,Mt=n,Lt=r}e.kind===Vr?function(e){var t=e.data;Fn===e&&zn(null);var n=e.id;t.tag===T?Ot=n:kt.push(n),Jr.delete(e.id),pt(e,t)}(e):e.kind===zr?function(e){Fn===e&&zn(null);var t=e.id;kt.push(t)}(e):pt(e,e.data),Ut(e,null)}function Yt(e,t){var n=e.id,r=e.data,o=r.actualDuration,i=r.treeBaseDuration;if(e.treeBaseDuration=i||0,Sn){if(null==t||i!==t.treeBaseDuration){var a=Math.floor(1e3*(i||0));Tt(s),Tt(n),Tt(a)}if((null==t||St(t,r))&&null!=o){for(var l=o,u=r.child;null!==u;)l-=u.actualDuration||0,u=u.sibling;var c=bn;if(c.durations.push(n,o,l),c.maxActualDuration=Math.max(c.maxActualDuration,o),kn){var f=gt(t,r);null!==f&&null!==c.changeDescriptions&&c.changeDescriptions.set(n,f)}}var d=dt.data.stateNode.memoizedUpdaters;if(null!=d&&(d.has(r)||null!==r.alternate&&d.has(r.alternate))){var p=bn;null===p.updaters&&(p.updaters=[]),p.updaters.push(ln(e))}}}function Kt(e){for(var t=e.id,n=0,r=e.firstChild;null!==r;r=r.nextSibling)n+=r.treeBaseDuration;if(Sn&&n!==e.treeBaseDuration){var o=Math.floor(1e3*(n||0));Tt(s),Tt(t),Tt(o)}e.treeBaseDuration=n}function Qt(e){for(var t=[],n=e.firstChild;null!==n;){if(n.kind===Wr)for(var r=e.firstChild;null!==r;r=r.nextSibling)t.push(r.id);else t.push(n.id);n=n.nextSibling}var o=t.length;if(!(o<2)){Tt(a),Tt(e.id),Tt(o);for(var i=0;i<t.length;i++)Tt(t[i])}}function Xt(e,t,n,r,o,i){var a=jt,s=Mt,l=Lt;jt=e,Mt=null,Lt=e.firstChild,e.firstChild=null;try{Jt(t,n,r,o,i+1)&&Qt(e),Pt(e,$n.get(e.data)),Kt(e)}finally{Bt(),jt=a,Mt=s,Lt=l}}function Jt(e,t,n,r,o){for(var i=!1,a=e,s=n,l=null,u=!1,c=e,f=n;null!==a&&a!==t;){var d=0;if(a._debugInfo)for(var p=0;p<a._debugInfo.length;p++){var h=a._debugInfo[p];if("string"==typeof h.name){var m=h,v=zt(a._debugInfo,p);if(null!=m.env&&Qr.add(m.env),null!==v&&Qr.add(v),!ut(m,v)){if(d===o){if(null===l||l.data!==m){null!==l&&(u?Vt(l,c,a,r,o):Xt(l,c,a,f,r,o));var y=null,g=Lt;if(null!=m.key)for(g=Lt;null!==g&&(g.kind!==zr||g.data.key!==m.key);)y=g,g=g.nextSibling;if(null!==g&&g.kind===zr&&g.data.name===m.name&&g.data.env===m.env&&g.data.key===m.key)g.data=m,Ht(g,y),l=g,u=!1;else{var b=Gr(m);Rt(b,jt,v),Ft(b),l=b,u=!0,i=!0}c=a,f=s}d++;break}d++}}}if(d===o){null!==l&&(u?Vt(l,c,a,r,o):Xt(l,c,a,f,r,o),l=null);var _=void 0,w=null,S=null;if(null!==(_=s===a?a:a.alternate))for(S=Lt;null!==S&&S.data!==_;)w=S,S=S.nextSibling;if(null!==S){var E=S;_!==s&&(i=!0),Ht(E,w),en(E,a,_,r)&&(i=!0)}else null!==_&&ct(a)?en(null,a,_,r)&&(i=!0):(Gt(a,r),i=!0)}a=a.sibling,i||null===s||(s=s.sibling)}return null!==l&&(u?Vt(l,c,null,r,o):Xt(l,c,null,f,r,o)),null!==s&&(i=!0),i}function Zt(e,t,n){return null===e?null!==t:Jt(e,null,t,n,0)}function en(e,t,n,r){if(et){var o=ft(t);r?o===G&&(tt.add(t.stateNode),r=!1):o!==W&&o!==V&&o!==z&&o!==q&&o!==$||(r=St(n,t))}var i=jt,a=Mt,s=Lt;null!==e&&(e.data=t,null!==hn&&hn.id===e.id&&St(n,t)&&(mn=!0),jt=e,Mt=null,Lt=e.firstChild,e.firstChild=null);try{if(t.tag===N&&n.memoizedState!==t.memoizedState){var l=jt;if(null===l)throw new Error("Did not expect a host hoistable to be the root");io(l,n.memoizedState),oo(l,t.memoizedState)}else if((t.tag===D||t.tag===R||t.tag===P)&&n.stateNode!==t.stateNode){var u=jt;if(null===u)throw new Error("Did not expect a host hoistable to be the root");ro(u,n.stateNode),no(u,t.stateNode)}var c=t.tag===ue,f=!1,d=c&&null!==n.memoizedState,p=c&&null!==t.memoizedState;if(d&&p){var h=t.child,m=h?h.sibling:null,v=n.child,y=v?v.sibling:null;null==y&&null!=m&&($t(m,r),f=!0),null!=m&&null!=y&&Zt(m,y,r)&&(f=!0)}else if(d&&!p){var g=t.child;null!==g&&$t(g,r),f=!0}else if(!d&&p){var b=t.child,_=b?b.sibling:null;null!=_&&($t(_,r),f=!0)}else if(t.child!==n.child)Zt(t.child,n.child,r)&&(f=!0);else if(null!==e)e.firstChild=Lt,Lt=null,et&&r&&on(e).forEach(function(e){tt.add(e)});else if(Zt(t.child,n.child,!1))throw new Error("The children should not have changed if we pass in the same set.");if(null!==e){var w=ze.get(e.data);void 0===w&&e.data.alternate&&(w=ze.get(e.data.alternate)),Pt(e,w),t.hasOwnProperty("treeBaseDuration")&&Yt(e,n)}return!(!f||null!==e&&(Qt(e),1))}finally{null!==e&&(Bt(),jt=i,Mt=a,Lt=s)}}function tn(e){return null!=e.memoizedInteractions||!(null==e.current||!e.current.hasOwnProperty("treeBaseDuration"))}function nn(e){if(e.tag===N){var t=e.memoizedState;if("object"===Ur(t)&&null!==t&&null!=t.instance)return t.instance}return null}function rn(e,t){if(e.kind===zr)for(var n=e.firstChild;null!==n;n=n.nextSibling)rn(n,t);else!function(e,t){for(var n=e;;){if(n.tag===D||n.tag===R||n.tag===P||n.tag===N){var r=n.stateNode||nn(n);r&&t.push(r)}else if(n.child){n.child.return=n,n=n.child;continue}if(n===e)return;for(;!n.sibling;){if(!n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}(e.data,t)}function on(e){var t=[];return rn(e,t),t}function an(e){try{var t=Jr.get(e);return void 0===t?(console.warn('Could not find DevToolsInstance with id "'.concat(e,'"')),null):on(t)}catch(n){return null}}function sn(e){var t=Jr.get(e);return void 0===t?null:t.kind===Vr?v(t.data):t.data.name||""}function ln(e){if(e.kind===Vr){var t=e.data;return{displayName:v(t)||"Anonymous",id:e.id,key:t.key,type:ft(t)}}var n=e.data;return{displayName:n.name||"Anonymous",id:e.id,key:null==n.key?null:n.key,type:ee}}function un(e){var t=cn(e.data);if(null===t)return null;for(var n=[],r=e.parent;null!==r&&null!==t;){var o=fn(r,t);if(null===o)break;n.push(ln(o)),t=cn(t),r=o.parent}return n}function cn(e){if(null==e)return null;for(e="number"==typeof e.tag?e._debugOwner:e.owner;e;)if("number"==typeof e.tag){var t=e;if(!ct(t))return t;e=t._debugOwner}else{var n=e;if(!ut(n,null))return n;e=n.owner}return null}function fn(e,t){if(null==t)return null;for(;null!==e;){if(e.data===t||e.data===t.alternate)return e.kind===Wr?null:e;e=e.parent}return null}function dn(e){var t=e.tag,n=e.type;switch(t){case E:case L:var r=e.stateNode;return"function"==typeof n.getDerivedStateFromError||null!==r&&"function"==typeof r.componentDidCatch;default:return!1}}function pn(e){var t=Jr.get(e);if(void 0===t)return console.warn('Could not find DevToolsInstance with id "'.concat(e,'"')),null;if(t.kind===zr)return function(e){var t=!0,r=fr(e),o=e.data,i="string"==typeof o.key?o.key:null,a=null==o.props?null:o.props,s=un(e),l=null,u=!1,c=!1,f=Tn(e);if(null!==f){for(var d=f;null!==d.return;){var p=d;d=d.return,p.tag===ue?c=!0:dn(p)&&(u=!0)}var h=d.stateNode;null!=h&&null!==h._debugRootType&&(l=h._debugRootType)}var m={stylex:null},v=$n.get(o);return{id:e.id,canEditHooks:!1,canEditFunctionProps:!1,canEditHooksAndDeletePaths:!1,canEditHooksAndRenamePaths:!1,canEditFunctionPropsDeletePaths:!1,canEditFunctionPropsRenamePaths:!1,canToggleError:Fe&&u,isErrored:!1,canToggleSuspense:He&&c,canViewSource:t,source:r,hasLegacyContext:!1,key:i,type:ee,context:null,hooks:null,props:a,state:null,errors:void 0===v?[]:Array.from(v.errors.entries()),warnings:void 0===v?[]:Array.from(v.warnings.entries()),owners:s,rootType:l,rendererPackageName:n.rendererPackageName,rendererVersion:n.version,plugins:m,nativeTag:null}}(t);if(t.kind===Vr)return function(e){var t=e.data;if(null==t)return null;var r=t.stateNode,o=t.key,i=t.memoizedProps,a=t.memoizedState,s=t.dependencies,l=t.tag,u=t.type,c=ft(t),f=!(l!==O&&l!==B&&l!==x||!a&&!s),d=!f&&l!==S,p=y(u),h=!1,m=null;if(l===E||l===O||l===L||l===M||l===j||l===H||l===x||l===B)h=!0,r&&null!=r.context&&(c===V&&!u.contextTypes&&!u.contextType||(m=r.context));else if(p!==Jn&&p!==Zn||void 0===u._context&&u.Provider===u){if(p===cr){var v=u._context;m=v._currentValue||null;for(var g=t.return;null!==g;){var _=g.type;if(y(_)===Zn&&_===v){m=g.memoizedProps.value;break}g=g.return}}}else{var w=u._context||u;m=w._currentValue||null;for(var k=t.return;null!==k;){var C=k.type,I=y(C);if((I===lr||I===ur)&&(C._context||C.context)===w){m=k.memoizedProps.value;break}k=k.return}}var T=!1;null!==m&&(T=!!u.contextTypes,m={value:m});var N=un(e),P=null;if(f){var A={};for(var D in console)try{A[D]=console[D],console[D]=function(){}}catch(Yo){}try{P=(0,Kn.inspectHooksOfFiber)(t,qr(n))}finally{for(var R in A)try{console[R]=A[R]}catch(Yo){}}}for(var F=null,U=t,z=!1,W=!1;null!==U.return;){var $=U;U=U.return,$.tag===ue?W=!0:dn($)&&(z=!0)}var q=U.stateNode;null!=q&&null!==q._debugRootType&&(F=q._debugRootType);var Y=l===ue&&null!==a,K=!1;if(dn(t)){var Q=128;K=0!==(t.flags&Q)||!0===Pn.get(t)||null!==t.alternate&&!0===Pn.get(t.alternate)}var X={stylex:null},J=null;h&&(J=function(e){var t=fr(e);if(null!==t)return t;var r=qr(n),o=null==r?null:function(e,t,n){try{var r=gr(e,t,n);if(""!==r)return r.slice(1)}catch(o){console.error(o)}return null}(b,e.data,r);if(null===o)return null;var i=ht(o);return e.source=i,i}(e));var Z=ze.get(t);void 0===Z&&null!==t.alternate&&(Z=ze.get(t.alternate));var ee,te=null;return c===G&&(te="object"!==Ur(ee=t.stateNode)||null===ee?null:null!=ee.canonical&&"number"==typeof ee.canonical.nativeTag?ee.canonical.nativeTag:"number"==typeof ee._nativeTag?ee._nativeTag:null),{id:e.id,canEditHooks:"function"==typeof we,canEditFunctionProps:"function"==typeof Ne,canEditHooksAndDeletePaths:"function"==typeof Se,canEditHooksAndRenamePaths:"function"==typeof Ee,canEditFunctionPropsDeletePaths:"function"==typeof Pe,canEditFunctionPropsRenamePaths:"function"==typeof Ae,canToggleError:Fe&&z,isErrored:K,canToggleSuspense:He&&W&&(!Y||Rn.has(t)||null!==t.alternate&&Rn.has(t.alternate)),canViewSource:h,source:J,hasLegacyContext:T,key:null!=o?o:null,type:c,context:m,hooks:P,props:i,state:d?a:null,errors:void 0===Z?[]:Array.from(Z.errors.entries()),warnings:void 0===Z?[]:Array.from(Z.warnings.entries()),owners:N,rootType:F,rendererPackageName:n.rendererPackageName,rendererVersion:n.version,plugins:X,nativeTag:te}}(t);throw new Error("Unsupported instance kind")}var hn=null,mn=!1,vn={};function yn(e){return null!==hn&&hn.id===e}function gn(e,t){return function(n){if("hooks"===t){if(1===n.length)return!0;if("hookSource"===n[n.length-2]&&"fileName"===n[n.length-1])return!0;if("subHooks"===n[n.length-1]||"subHooks"===n[n.length-2])return!0}var r=null===e?vn:vn[e];if(!r)return!1;for(var o=0;o<n.length;o++)if(!(r=r[n[o]]))return!1;return!0}}var bn=null,_n=null,wn=null,Sn=!1,En=0,kn=!1,Cn=!1,xn=null;function In(e,t){e.kind!==Wr&&t.push([e.id,e.treeBaseDuration]);for(var n=e.firstChild;null!==n;n=n.nextSibling)In(n,t)}function On(n,r){Sn||(kn=n,Cn=r,_n=new Map,wn=new Map,e.getFiberRoots(t).forEach(function(e){var t=Xr.get(e);if(void 0===t)throw new Error("Expected the root instance to already exist when starting profiling");var n=t.id;_n.set(n,nr(e.current));var r=[];In(t,r),wn.set(n,r)}),Sn=!0,En=Yr(),xn=new Map,null!==Be&&Be(!0,Cn))}function Tn(e){if(e.kind===zr){for(var t=e;t.kind===zr;){if(null===t.firstChild)return null;t=t.firstChild}return t.data.return}return e.data}function Nn(){return null}d&&On(p.recordChangeDescriptions,p.recordTimeline);var Pn=new Map;function An(e){if("function"!=typeof Re)throw new Error("Expected overrideError() to not get called for earlier React versions.");var t=Pn.get(e);return!1===t?(Pn.delete(e),0===Pn.size&&Re(Nn),!1):(void 0===t&&null!==e.alternate&&!1===(t=Pn.get(e.alternate))&&(Pn.delete(e.alternate),0===Pn.size&&Re(Nn)),void 0!==t&&t)}function Dn(){return!1}var Rn=new Set;function Ln(e){return Rn.has(e)||null!==e.alternate&&Rn.has(e.alternate)}var Mn=null,jn=null,Fn=null,Hn=-1,Vn=!1;function zn(e){null===e&&(jn=null,Fn=null,Hn=-1,Vn=!1),Mn=e}function Wn(e,t){if(null===Mn||!Vn)return!1;var n=e.return,r=null!==n?n.alternate:null;if(jn===n||jn===r&&null!==r){var o=rr(e),i=Mn[Hn+1];if(void 0===i)throw new Error("Expected to see a frame at the next depth.");if(o.index===i.index&&o.key===i.key&&o.displayName===i.displayName)return jn=e,null!==t&&t.kind===Vr&&(Fn=t),Hn++,Vn=Hn!==Mn.length-1,!1}return null===jn&&null===t||(Vn=!1),!0}function Gn(e){Vn=e}var qn=new Map,Yn=new Map;function er(e,t){var n=nr(t),r=Yn.get(n)||0;Yn.set(n,r+1);var o="".concat(n,":").concat(r);qn.set(e,o)}function nr(e){for(var t=null,n=null,r=e.child,o=0;o<3&&null!==r;o++){var i=v(r);if(null!==i&&("function"==typeof r.type?t=i:null===n&&(n=i)),null!==t)break;r=r.child}return t||n||"Anonymous"}function rr(e){var t=e.key,n=v(e),r=e.index;switch(e.tag){case T:var o=Xr.get(e.stateNode);if(void 0===o)throw new Error("Expected the root instance to exist when computing a path");var i=qn.get(o.id);if(void 0===i)throw new Error("Expected mounted root to have known pseudo key.");n=i;break;case D:n=e.type}return{displayName:n,key:t,index:r}}function or(e){return{displayName:e.data.name||"",key:null==e.data.key?null:e.data.key,index:-1}}var ir=function(e){if(null==e)return"Unknown";switch(e){case he:return"Immediate";case me:return"User-Blocking";case ve:return"Normal";case ye:return"Low";case ge:return"Idle";default:return"Unknown"}};function fr(e){var t,n=e.source;if(null===n)return null;if(e.kind===zr){var r=e.data.debugLocation;null!=r&&(n=r)}if(t=n,"[object Error]"===Br.call(t))return e.source=function(e){mt=null;var t,n=Error.prepareStackTrace;Error.prepareStackTrace=vt;try{t=e.stack}catch(r){Error.prepareStackTrace=void 0,t=e.stack}finally{Error.prepareStackTrace=n}return null!==mt?mt:null==t?null:ht(Ge(t))}(n);if("string"==typeof n){var o=n.lastIndexOf("\n"),i=-1===o?n:n.slice(o+1);return e.source=ht(i)}return n}return Rr({cleanup:function(){Sn=!1},clearErrorsAndWarnings:function(){var e,t=jr(Jr.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;if(n.kind===Vr){var r=n.data;ze.delete(r),r.alternate&&ze.delete(r.alternate)}else $n.delete(n.data);Pt(n,void 0)&&Ye(n.id)}}catch(o){t.e(o)}finally{t.f()}At()},clearErrorsForElementID:function(e){qe(e,"error")},clearWarningsForElementID:function(e){qe(e,"warn")},getSerializedElementValueByPath:function(e,t){if(yn(e))return at(xe(hn,t))},deletePath:function(e,t,n,r){var o=Jr.get(t);if(void 0!==o){if(o.kind===Vr){var i=o.data;if(null!==i){var a=i.stateNode;switch(e){case"context":r=r.slice(1),i.tag===E&&(0===r.length||Ie(a.context,r),a.forceUpdate());break;case"hooks":"function"==typeof Se&&Se(i,n,r);break;case"props":null===a?"function"==typeof Pe&&Pe(i,r):(i.pendingProps=rt(a.props,r),a.forceUpdate());break;case"state":Ie(a.state,r),a.forceUpdate()}}}}else console.warn('Could not find DevToolsInstance with id "'.concat(t,'"'))},findHostInstancesForElementID:an,flushInitialOperations:function(){var n=Ct;Ct=null,null!==n&&n.length>0?n.forEach(function(t){e.emit("operations",t)}):(null!==Mn&&(Vn=!0),e.getFiberRoots(t).forEach(function(e){var t=$r(e.current);Xr.set(e,t),Jr.set(t.id,t),er((dt=t).id,e.current),Sn&&tn(e)&&(bn={changeDescriptions:kn?new Map:null,durations:[],commitTime:Yr()-En,maxActualDuration:0,priorityLevel:null,updaters:null,effectDuration:null,passiveEffectDuration:null}),Gt(e.current,!1),At(),We=!1,dt=null}))},getBestMatchForTrackedPath:function(){return null===Mn||null===Fn?null:{id:Fn.id,isFullMatch:Hn===Mn.length-1}},getDisplayNameForElementID:sn,getNearestMountedDOMNode:function(e){for(var t=e;t&&!Zr.has(t);)t=t.parentNode;return t},getElementIDForHostInstance:function(e){var t=Zr.get(e);return void 0!==t?t.kind===Wr?t.parent.id:t.id:null},getInstanceAndStyle:function(e){var t=null,n=null,r=Jr.get(e);if(void 0===r)return console.warn('Could not find DevToolsInstance with id "'.concat(e,'"')),{instance:t,style:n};if(r.kind!==Vr)return{instance:t,style:n};var o=r.data;return null!==o&&(t=o.stateNode,null!==o.memoizedProps&&(n=o.memoizedProps.style)),{instance:t,style:n}},getOwnersList:function(e){var t=Jr.get(e);if(void 0===t)return console.warn('Could not find DevToolsInstance with id "'.concat(e,'"')),null;var n=ln(t),r=un(t);return null===r?[n]:(r.unshift(n),r.reverse(),r)},getPathForElement:function(e){var t=Jr.get(e);if(void 0===t)return null;for(var n=[],r=t;r.kind===zr;){if(n.push(or(r)),null===r.parent)return null;r=r.parent}for(var o=r.data;null!==o;)n.push(rr(o)),o=o.return;return n.reverse(),n},getProfilingData:function(){var e=[];if(null===xn)throw Error("getProfilingData() called before any profiling data was recorded");xn.forEach(function(t,n){var r=[],o=null!==_n&&_n.get(n)||"Unknown",i=null!==wn&&wn.get(n)||[];t.forEach(function(e,t){for(var n=e.changeDescriptions,o=e.durations,i=e.effectDuration,a=e.maxActualDuration,s=e.passiveEffectDuration,l=e.priorityLevel,u=e.commitTime,c=e.updaters,f=[],d=[],p=0;p<o.length;p+=3){var h=o[p];f.push([h,yt(o[p+1])]),d.push([h,yt(o[p+2])])}r.push({changeDescriptions:null!==n?Array.from(n.entries()):null,duration:yt(a),effectDuration:null!==i?yt(i):null,fiberActualDurations:f,fiberSelfDurations:d,passiveEffectDuration:null!==s?yt(s):null,priorityLevel:l,timestamp:u,updaters:c})}),e.push({commitData:r,displayName:o,initialTreeBaseDurations:i,rootID:n})});var n=null;if("function"==typeof Ue){var r=Ue();if(r){var o=r.batchUIDToMeasuresMap,i=r.internalModuleSourceToRanges,a=r.laneToLabelMap,s=r.laneToReactMeasureMap;n=Rr(Rr({},Ar(r,["batchUIDToMeasuresMap","internalModuleSourceToRanges","laneToLabelMap","laneToReactMeasureMap"])),{},{batchUIDToMeasuresKeyValueArray:Array.from(o.entries()),internalModuleSourceToRanges:Array.from(i.entries()),laneToLabelKeyValueArray:Array.from(a.entries()),laneToReactMeasureKeyValueArray:Array.from(s.entries())})}}return{dataForRoots:e,rendererID:t,timelineData:n}},handleCommitFiberRoot:function(t,n){var r=t.current,o=null,i=Xr.get(t);i?o=i.data:(i=$r(r),Xr.set(t,i),Jr.set(i.id,i)),dt=i,null!==Mn&&(Vn=!0),et&&tt.clear();var a=tn(t);if(Sn&&a&&(bn={changeDescriptions:kn?new Map:null,durations:[],commitTime:Yr()-En,maxActualDuration:0,priorityLevel:null==n?null:ir(n),updaters:null,effectDuration:null,passiveEffectDuration:null}),null!==o){var s=null!=o.memoizedState&&null!=o.memoizedState.element&&!0!==o.memoizedState.isDehydrated,l=null!=r.memoizedState&&null!=r.memoizedState.element&&!0!==r.memoizedState.isDehydrated;!s&&l?(er(dt.id,r),Gt(r,!1)):s&&l?en(i,r,o,!1):s&&!l&&(qt(i),function(e){var t=qn.get(e);if(void 0===t)throw new Error("Expected root pseudo key to be known.");var n=t.slice(0,t.lastIndexOf(":")),r=Yn.get(n);if(void 0===r)throw new Error("Expected counter to be known.");r>1?Yn.set(n,r-1):Yn.delete(n),qn.delete(e)}(dt.id),Xr.delete(t))}else er(dt.id,r),Gt(r,!1);if(Sn&&a&&!Nt()){var u=xn.get(dt.id);null!=u?u.push(bn):xn.set(dt.id,[bn])}At(),We=!1,et&&e.emit("traceUpdates",tt),dt=null},handleCommitFiberUnmount:function(e){},handlePostCommitFiberRoot:function(e){if(Sn&&tn(e)&&null!==bn){var t=function(e){var t=null,n=null,r=e.current;if(null!=r){var o=r.stateNode;null!=o&&(t=null!=o.effectDuration?o.effectDuration:null,n=null!=o.passiveEffectDuration?o.passiveEffectDuration:null)}return{effectDuration:t,passiveEffectDuration:n}}(e),n=t.effectDuration,r=t.passiveEffectDuration;bn.effectDuration=n,bn.passiveEffectDuration=r}We&&function(){var e,t=!1,n=jr(Jr.values());try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.kind===Vr){var o=r.data;Pt(r,ze.get(o))&&(t=!0,Ye(r.id))}}}catch(i){n.e(i)}finally{n.f()}t&&At()}()},hasElementWithId:function(e){return Jr.has(e)},inspectElement:function(e,t,n,o){if(null!==n&&function(e){var t=vn;e.forEach(function(e){t[e]||(t[e]={}),t=t[e]})}(n),yn(t)&&!o){if(!mn){if(null!==n){var i=null;return"hooks"===n[0]&&(i="hooks"),{id:t,responseID:e,type:"hydrated-path",path:n,value:nt(xe(hn,n),gn(null,i),n)}}return{id:t,responseID:e,type:"no-change"}}}else vn={};mn=!1;try{hn=pn(t)}catch(Yo){if("ReactDebugToolsRenderError"===Yo.name){var a,s="Error rendering inspected element.";if(console.error(s+"\n\n",Yo),null!=Yo.cause){var l=sn(t);console.error("React DevTools encountered an error while trying to inspect hooks. This is most likely caused by an error in current inspected component"+(null!=l?': "'.concat(l,'".'):".")+"\nThe error thrown in the component is: \n\n",Yo.cause),Yo.cause instanceof Error&&(s=Yo.cause.message||s,a=Yo.cause.stack)}return{type:"error",errorType:"user",id:t,responseID:e,message:s,stack:a}}return"ReactDebugToolsUnsupportedHookError"===Yo.name?{type:"error",errorType:"unknown-hook",id:t,responseID:e,message:"Unsupported hook in the react-debug-tools package: "+Yo.message}:(console.error("Error inspecting element.\n\n",Yo),{type:"error",errorType:"uncaught",id:t,responseID:e,message:Yo.message,stack:Yo.stack})}if(null===hn)return{id:t,responseID:e,type:"not-found"};!function(e){var t=e.hooks,n=e.id,o=e.props,i=Jr.get(n);if(void 0!==i){if(i.kind===Vr){var a=i.data,s=a.elementType,l=a.stateNode,u=a.tag,c=a.type;switch(u){case E:case L:case j:r.$r=l;break;case M:case O:r.$r={hooks:t,props:o,type:c};break;case x:r.$r={hooks:t,props:o,type:c.render};break;case H:case B:r.$r={hooks:t,props:o,type:null!=s&&null!=s.type?s.type:c};break;default:r.$r=null}}}else console.warn('Could not find DevToolsInstance with id "'.concat(n,'"'))}(hn);var u=Rr({},hn);return u.context=nt(u.context,gn("context",null)),u.hooks=nt(u.hooks,gn("hooks","hooks")),u.props=nt(u.props,gn("props",null)),u.state=nt(u.state,gn("state",null)),{id:t,responseID:e,type:"full-data",value:u}},logElementToConsole:function(e){var t=function(e){return yn(e)&&!mn}(e)?hn:pn(e);if(null!==t){var n=sn(e),r="function"==typeof console.groupCollapsed;r&&console.groupCollapsed("[Click to expand] %c<".concat(n||"Component"," />"),"color: var(--dom-tag-name-color); font-weight: normal;"),null!==t.props&&console.log("Props:",t.props),null!==t.state&&console.log("State:",t.state),null!==t.hooks&&console.log("Hooks:",t.hooks);var o=an(e);null!==o&&console.log("Nodes:",o),(window.chrome||/firefox/i.test(navigator.userAgent))&&console.log("Right-click any value to save it as a global variable for further inspection."),r&&console.groupEnd()}else console.warn('Could not find DevToolsInstance with id "'.concat(e,'"'))},getComponentStack:function(e){if(null==je)return null;var t=je();if(null===t)return null;if(t._debugTask)return null;var r=qr(n);if(void 0===r)return null;var o=function(e){return void 0!==e._debugStack}(t),i="";if(o){var a=$e(e);a&&(i+="\n"+a),i+=function(e,t){var n=e.HostHoistable,r=e.HostSingleton,o=e.HostText,i=e.HostComponent,a=e.SuspenseComponent,s=e.SuspenseListComponent,l=e.ViewTransitionComponent,u=e.ActivityComponent;try{var c="";switch(t.tag===o&&(t=t.return),t.tag){case n:case r:case i:c+=Un(t.type);break;case a:c+=Un("Suspense");break;case s:c+=Un("SuspenseList");break;case l:c+=Un("ViewTransition");break;case u:c+=Un("Activity")}for(var f=t;f;)if("number"==typeof f.tag){var d=f;f=d._debugOwner;var p=d._debugStack;f&&p&&("string"!=typeof p&&(p=$e(p)),""!==p&&(c+="\n"+p))}else{if(null==f.debugStack)break;var h=f.debugStack;(f=f.owner)&&h&&(c+="\n"+$e(h))}return c}catch(m){return"\nError generating stack: "+m.message+"\n"+m.stack}}(b,t)}else i=function(e,t,n){try{var r="",o=t;do{r+=gr(e,o,n);var i=o._debugInfo;if(i)for(var a=i.length-1;a>=0;a--){var s=i[a];"string"==typeof s.name&&(r+=Bn(s.name,s.env))}o=o.return}while(o);return r}catch(l){return"\nError generating stack: "+l.message+"\n"+l.stack}}(b,t,r);return{enableOwnerStacks:o,componentStack:i}},getElementAttributeByPath:function(e,t){if(yn(e))return xe(hn,t)},getElementSourceFunctionById:function(e){var t=Jr.get(e);if(void 0===t)return console.warn('Could not find DevToolsInstance with id "'.concat(e,'"')),null;if(t.kind!==Vr)return null;var n=t.data,r=n.elementType,o=n.tag,i=n.type;switch(o){case E:case L:case M:case j:case O:return i;case x:return i.render;case H:case B:return null!=r&&null!=r.type?r.type:i;default:return null}},onErrorOrWarning:function(e,t){if(null!=je){var n=je();if(null!==n&&("error"!==e||!0!==Pn.get(n)&&(null===n.alternate||!0!==Pn.get(n.alternate)))){var r=lt.apply(void 0,Mr(t)),o=ze.get(n);void 0===o&&null!==n.alternate&&void 0!==(o=ze.get(n.alternate))&&ze.set(n,o),void 0===o&&(o={errors:new Map,errorsCount:0,warnings:new Map,warningsCount:0},ze.set(n,o));var i="error"===e?o.errors:o.warnings,a=i.get(r)||0;i.set(r,a+1),"error"===e?o.errorsCount++:o.warningsCount++,We=!0}}},overrideError:function(e,t){if("function"!=typeof Re||"function"!=typeof Me)throw new Error("Expected overrideError() to not get called for earlier React versions.");var n=Jr.get(e);if(void 0!==n){var r=Tn(n);if(null!==r){for(var o=r;!dn(o);){if(null===o.return)return;o=o.return}Pn.set(o,t),null!==o.alternate&&Pn.delete(o.alternate),1===Pn.size&&Re(An),Me(o)}}},overrideSuspense:function(e,t){if("function"!=typeof Le||"function"!=typeof Me)throw new Error("Expected overrideSuspense() to not get called for earlier React versions.");var n=Jr.get(e);if(void 0!==n){var r=Tn(n);if(null!==r){for(var o=r;o.tag!==ue;){if(null===o.return)return;o=o.return}null!==o.alternate&&Rn.delete(o.alternate),t?(Rn.add(o),1===Rn.size&&Le(Ln)):(Rn.delete(o),0===Rn.size&&Le(Dn)),Me(o)}}},overrideValueAtPath:function(e,t,n,r,o){var i=Jr.get(t);if(void 0!==i){if(i.kind===Vr){var a=i.data;if(null!==a){var s=a.stateNode;switch(e){case"context":r=r.slice(1),a.tag===E&&(0===r.length?s.context=o:Te(s.context,r,o),s.forceUpdate());break;case"hooks":"function"==typeof we&&we(a,n,r,o);break;case"props":a.tag===E?(a.pendingProps=it(s.props,r,o),s.forceUpdate()):"function"==typeof Ne&&Ne(a,r,o);break;case"state":a.tag===E&&(Te(s.state,r,o),s.forceUpdate())}}}}else console.warn('Could not find DevToolsInstance with id "'.concat(t,'"'))},renamePath:function(e,t,n,r,o){var i=Jr.get(t);if(void 0!==i){if(i.kind===Vr){var a=i.data;if(null!==a){var s=a.stateNode;switch(e){case"context":r=r.slice(1),o=o.slice(1),a.tag===E&&(0===r.length||Oe(s.context,r,o),s.forceUpdate());break;case"hooks":"function"==typeof Ee&&Ee(a,n,r,o);break;case"props":null===s?"function"==typeof Ae&&Ae(a,r,o):(a.pendingProps=ot(s.props,r,o),s.forceUpdate());break;case"state":Oe(s.state,r,o),s.forceUpdate()}}}}else console.warn('Could not find DevToolsInstance with id "'.concat(t,'"'))},renderer:n,setTraceUpdatesEnabled:function(e){et=e},setTrackedPath:zn,startProfiling:On,stopProfiling:function(){Sn=!1,kn=!1,null!==Be&&Be(!1,Cn),Cn=!1},storeAsGlobal:function(e,t,n){if(yn(e)){var r=xe(hn,t),o="$reactTemp".concat(n);window[o]=r,console.log(o),console.log(r)}},updateComponentFilters:function(n){if(Sn)throw Error("Cannot modify filter preferences while profiling");e.getFiberRoots(t).forEach(function(e){var t=Xr.get(e);if(void 0===t)throw new Error("Expected the root instance to already exist when applying filters");dt=t,qt(t),Xr.delete(e),At(),dt=null}),st(n),Yn.clear(),e.getFiberRoots(t).forEach(function(e){var t=$r(e.current);Xr.set(e,t),Jr.set(t.id,t),null!==Mn&&(Vn=!0),er((dt=t).id,e.current),Gt(e.current,!1),At(),dt=null}),At(),We=!1},getEnvironmentNames:function(){return Array.from(Qr)}},{})}function so(e,t,n){var r=e[t];return e[t]=function(e){return n.call(this,r,arguments)},r}function lo(e,t){for(var n in t)e[n]=t[n]}function uo(e){"function"==typeof e.forceUpdate?e.forceUpdate():null!=e.updater&&"function"==typeof e.updater.enqueueForceUpdate&&e.updater.enqueueForceUpdate(this,function(){},"forceUpdate")}function co(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?co(Object(n),!0).forEach(function(t){po(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):co(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function po(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ho(e){return(ho="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mo(e){var t=null,n=null;if(null!=e._currentElement){e._currentElement.key&&(n=String(e._currentElement.key));var r=e._currentElement.type;"string"==typeof r?t=r:"function"==typeof r&&(t=_e(r))}return{displayName:t,key:n}}function vo(e){if(null!=e._currentElement){var t=e._currentElement.type;if("function"==typeof t)return null!==e.getPublicInstance()?V:W;if("string"==typeof t)return G}return Y}function yo(e){var t=[];if("object"!==ho(e));else if(null===e._currentElement||!1===e._currentElement);else if(e._renderedComponent){var n=e._renderedComponent;vo(n)!==Y&&t.push(n)}else if(e._renderedChildren){var r=e._renderedChildren;for(var o in r){var i=r[o];vo(i)!==Y&&t.push(i)}}return t}function go(e,t,n,r){var s,l=new Map,u=new WeakMap,c=new WeakMap,f=null,d=function(e){return null};function p(e){var t=l.get(e);return t?mo(t).displayName:null}function h(e){if("object"!==ho(e)||null===e)throw new Error("Invalid internal instance: "+e);if(!u.has(e)){var t=Se();u.set(e,t),l.set(t,e)}return u.get(e)}function m(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}n.ComponentTree?(f=function(e){var t=n.ComponentTree.getClosestInstanceFromNode(e);return u.get(t)||null},s=function(e){var t=l.get(e);return n.ComponentTree.getNodeFromInstance(t)},d=function(e){var t=n.ComponentTree.getClosestInstanceFromNode(e);return null!=t?n.ComponentTree.getNodeFromInstance(t):null}):n.Mount.getID&&n.Mount.getNode&&(f=function(e){return null},s=function(e){return null});var v=[],y=null;function g(e,t,n){if(0===n){var r=null!=e._currentElement&&null!=e._currentElement._owner;I(o),I(t),I(Q),I(0),I(0),I(0),I(r?1:0)}else{var i=vo(e),a=mo(e),s=a.displayName,l=a.key,u=null!=e._currentElement&&null!=e._currentElement._owner?h(e._currentElement._owner):0,c=O(s),f=O(l);I(o),I(t),I(i),I(n),I(u),I(c),I(f)}}function b(e,t,n){I(a),I(t);var r=n.map(h);I(r.length);for(var o=0;o<r.length;o++)I(r[o])}function _(e,t,n){var r=l.get(e);null!=r&&(c.set(r,n),g(r,e,t),yo(r).forEach(function(t){return _(h(t),e,n)}))}n.Reconciler&&(y=function(e,t){var n={};for(var r in t)n[r]=so(e,r,t[r]);return n}(n.Reconciler,{mountComponent:function(e,t){var n=t[0],r=t[3];if(vo(n)===Y)return e.apply(this,t);if(void 0===r._topLevelWrapper)return e.apply(this,t);var o=h(n);g(n,o,v.length>0?v[v.length-1]:0),v.push(o),c.set(n,h(r._topLevelWrapper));try{var i=e.apply(this,t);return v.pop(),i}catch(s){throw v=[],s}finally{if(0===v.length){var a=c.get(n);if(void 0===a)throw new Error("Expected to find root ID.");x(a)}}},performUpdateIfNecessary:function(e,t){var n=t[0];if(vo(n)===Y)return e.apply(this,t);var r=h(n);v.push(r);var o=yo(n);try{var i=e.apply(this,t),a=yo(n);return m(o,a)||b(0,r,a),v.pop(),i}catch(l){throw v=[],l}finally{if(0===v.length){var s=c.get(n);if(void 0===s)throw new Error("Expected to find root ID.");x(s)}}},receiveComponent:function(e,t){var n=t[0];if(vo(n)===Y)return e.apply(this,t);var r=h(n);v.push(r);var o=yo(n);try{var i=e.apply(this,t),a=yo(n);return m(o,a)||b(0,r,a),v.pop(),i}catch(l){throw v=[],l}finally{if(0===v.length){var s=c.get(n);if(void 0===s)throw new Error("Expected to find root ID.");x(s)}}},unmountComponent:function(e,t){var n=t[0];if(vo(n)===Y)return e.apply(this,t);var r=h(n);v.push(r);try{var o=e.apply(this,t);return v.pop(),function(e,t){E.push(t),l.delete(t)}(0,r),o}catch(a){throw v=[],a}finally{if(0===v.length){var i=c.get(n);if(void 0===i)throw new Error("Expected to find root ID.");x(i)}}}}));var w=[],S=new Map,E=[],k=0,C=null;function x(n){if(0!==w.length||0!==E.length||null!==C){var r=E.length+(null===C?0:1),o=new Array(3+k+(r>0?2+r:0)+w.length),a=0;if(o[a++]=t,o[a++]=n,o[a++]=k,S.forEach(function(e,t){o[a++]=t.length;for(var n=ke(t),r=0;r<n.length;r++)o[a+r]=n[r];a+=t.length}),r>0){o[a++]=i,o[a++]=r;for(var s=0;s<E.length;s++)o[a++]=E[s];null!==C&&(o[a]=C,a++)}for(var l=0;l<w.length;l++)o[a+l]=w[l];a+=w.length,e.emit("operations",o),w.length=0,E=[],C=null,S.clear(),k=0}}function I(e){w.push(e)}function O(e){if(null===e)return 0;var t=S.get(e);if(void 0!==t)return t;var n=S.size+1;return S.set(e,n),k+=e.length+1,n}var T=null,N={};function P(e){return function(t){var n=N[e];if(!n)return!1;for(var r=0;r<t.length;r++)if(!(n=n[t[r]]))return!1;return!0}}function A(e){var t=l.get(e);if(null==t)return null;var n=mo(t).key,r=vo(t),o=null,i=null,a=null,s=null,u=t._currentElement;if(null!==u){a=u.props;var c=u._owner;if(c)for(i=[];null!=c;)i.push({displayName:mo(c).displayName||"Unknown",id:h(c),key:u.key,type:vo(c)}),c._currentElement&&(c=c._currentElement._owner)}var f=t._instance;return null!=f&&(o=f.context||null,s=f.state||null),{id:e,canEditHooks:!1,canEditFunctionProps:!1,canEditHooksAndDeletePaths:!1,canEditHooksAndRenamePaths:!1,canEditFunctionPropsDeletePaths:!1,canEditFunctionPropsRenamePaths:!1,canToggleError:!1,isErrored:!1,canToggleSuspense:!1,canViewSource:r===V||r===W,source:null,hasLegacyContext:!0,type:r,key:null!=n?n:null,context:o,hooks:null,props:a,state:s,errors:[],warnings:[],owners:i,rootType:null,rendererPackageName:null,rendererVersion:null,plugins:{stylex:null},nativeTag:null}}return{clearErrorsAndWarnings:function(){},clearErrorsForElementID:function(e){},clearWarningsForElementID:function(e){},cleanup:function(){null!==y&&(n.Component?lo(n.Component.Mixin,y):lo(n.Reconciler,y)),y=null},getSerializedElementValueByPath:function(e,t){var n=A(e);if(null!==n)return at(xe(n,t))},deletePath:function(e,t,n,r){var o=l.get(t);if(null!=o){var i=o._instance;if(null!=i)switch(e){case"context":Ie(i.context,r),uo(i);break;case"hooks":throw new Error("Hooks not supported by this renderer");case"props":var a=o._currentElement;o._currentElement=fo(fo({},a),{},{props:rt(a.props,r)}),uo(i);break;case"state":Ie(i.state,r),uo(i)}}},flushInitialOperations:function(){var e=n.Mount._instancesByReactRootID||n.Mount._instancesByContainerID;for(var t in e){var r=h(e[t]);_(r,0,r),x(r)}},getBestMatchForTrackedPath:function(){return null},getDisplayNameForElementID:p,getNearestMountedDOMNode:d,getElementIDForHostInstance:f,getInstanceAndStyle:function(e){var t=null,n=null,r=l.get(e);if(null!=r){t=r._instance||null;var o=r._currentElement;null!=o&&null!=o.props&&(n=o.props.style||null)}return{instance:t,style:n}},findHostInstancesForElementID:function(e){var t=s(e);return null==t?null:[t]},getOwnersList:function(e){return null},getPathForElement:function(e){return null},getProfilingData:function(){throw new Error("getProfilingData not supported by this renderer")},handleCommitFiberRoot:function(){throw new Error("handleCommitFiberRoot not supported by this renderer")},handleCommitFiberUnmount:function(){throw new Error("handleCommitFiberUnmount not supported by this renderer")},handlePostCommitFiberRoot:function(){throw new Error("handlePostCommitFiberRoot not supported by this renderer")},hasElementWithId:function(e){return l.has(e)},inspectElement:function(e,t,n,o){(o||T!==t)&&(T=t,N={});var i=A(t);return null===i?{id:t,responseID:e,type:"not-found"}:(null!==n&&function(e){var t=N;e.forEach(function(e){t[e]||(t[e]={}),t=t[e]})}(n),function(e){var t=l.get(e);if(null!=t)switch(vo(t)){case V:r.$r=t._instance;break;case W:var n=t._currentElement;if(null==n)return void console.warn('Could not find element with id "'.concat(e,'"'));r.$r={props:n.props,type:n.type};break;default:r.$r=null}else console.warn('Could not find instance with id "'.concat(e,'"'))}(t),i.context=nt(i.context,P("context")),i.props=nt(i.props,P("props")),i.state=nt(i.state,P("state")),{id:t,responseID:e,type:"full-data",value:i})},logElementToConsole:function(e){var t=A(e);if(null!==t){var n=p(e),r="function"==typeof console.groupCollapsed;r&&console.groupCollapsed("[Click to expand] %c<".concat(n||"Component"," />"),"color: var(--dom-tag-name-color); font-weight: normal;"),null!==t.props&&console.log("Props:",t.props),null!==t.state&&console.log("State:",t.state),null!==t.context&&console.log("Context:",t.context);var o=s(e);null!==o&&console.log("Node:",o),(window.chrome||/firefox/i.test(navigator.userAgent))&&console.log("Right-click any value to save it as a global variable for further inspection."),r&&console.groupEnd()}else console.warn('Could not find element with id "'.concat(e,'"'))},overrideError:function(){throw new Error("overrideError not supported by this renderer")},overrideSuspense:function(){throw new Error("overrideSuspense not supported by this renderer")},overrideValueAtPath:function(e,t,n,r,o){var i=l.get(t);if(null!=i){var a=i._instance;if(null!=a)switch(e){case"context":Te(a.context,r,o),uo(a);break;case"hooks":throw new Error("Hooks not supported by this renderer");case"props":var s=i._currentElement;i._currentElement=fo(fo({},s),{},{props:it(s.props,r,o)}),uo(a);break;case"state":Te(a.state,r,o),uo(a)}}},renamePath:function(e,t,n,r,o){var i=l.get(t);if(null!=i){var a=i._instance;if(null!=a)switch(e){case"context":Oe(a.context,r,o),uo(a);break;case"hooks":throw new Error("Hooks not supported by this renderer");case"props":var s=i._currentElement;i._currentElement=fo(fo({},s),{},{props:ot(s.props,r,o)}),uo(a);break;case"state":Oe(a.state,r,o),uo(a)}}},getElementAttributeByPath:function(e,t){var n=A(e);if(null!==n)return xe(n,t)},getElementSourceFunctionById:function(e){var t=l.get(e);if(null==t)return console.warn('Could not find instance with id "'.concat(e,'"')),null;var n=t._currentElement;return null==n?(console.warn('Could not find element with id "'.concat(e,'"')),null):n.type},renderer:n,setTraceUpdatesEnabled:function(e){},setTrackedPath:function(e){},startProfiling:function(){},stopProfiling:function(){},storeAsGlobal:function(e,t,n){var r=A(e);if(null!==r){var o=xe(r,t),i="$reactTemp".concat(n);window[i]=o,console.log(i),console.log(o)}},updateComponentFilters:function(e){},getEnvironmentNames:function(){return[]}}}function bo(e){return!function(e){return null!=e&&""!==e&&ct(e,tt)}(e)}function _o(e){return function(e){if(Array.isArray(e))return Eo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||So(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||So(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function So(e,t){if(e){if("string"==typeof e)return Eo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Eo(e,t):void 0}}function Eo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ko(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0===n.length||"string"!=typeof e)return[e].concat(n);for(var o=n.slice(),i="",a=0,s=0;s<e.length;++s){var l=e[s];if("%"===l){var u=e[s+1];switch(++s,u){case"c":case"O":case"o":++a,i+="%".concat(u);break;case"d":case"i":var c=wo(o.splice(a,1),1)[0];i+=parseInt(c,10).toString();break;case"f":var f=wo(o.splice(a,1),1)[0];i+=parseFloat(f).toString();break;case"s":var d=wo(o.splice(a,1),1)[0];i+=String(d);break;default:i+="%".concat(u)}}else i+=l}return[i].concat(_o(o))}function Co(e){return function(e){if(Array.isArray(e))return Io(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||xo(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xo(e,t){if(e){if("string"==typeof e)return Io(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Io(e,t):void 0}}function Io(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Oo=/\s{4}(in|at)\s{1}/,To=/:\d+:\d+(\n|$)/,No=/ \(\<anonymous\>\)$|\@unknown\:0\:0$|\(|\)|\[|\]/gm;function Po(e,t){return e.replace(No,"")===t.replace(No,"")}var Ao=console,Do={recordChangeDescriptions:!1,recordTimeline:!1};function Ro(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Do;if(e.hasOwnProperty("__REACT_DEVTOOLS_GLOBAL_HOOK__"))return null;var o=n,i=0,a=!1,s=!1,l=[],u=[],c=[];function f(e){var t=e.stack.split("\n");return t.length>1?t[1]:null}function d(){if(b.settings)for(var e=function(){var e=n[t],r=Ao[e];Ao[e]=function(){for(var t=b.settings,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];if(null!=t){if(!s||!t.hideConsoleLogsInStrictMode){var a,l=!1,u=!1;if(t.appendComponentStack){var c=o.length>0?o[o.length-1]:null;u="string"==typeof c&&(a=c,Oo.test(a)||To.test(a))}var f,d=t.showInlineWarningsAndErrors&&("error"===e||"warn"===e),m=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=xo(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(b.rendererInterfaces.values());try{for(m.s();!(f=m.n()).done;){var v=f.value,y=v.onErrorOrWarning,g=v.getComponentStack;try{d&&null!=y&&y(e,o.slice())}catch(Yo){setTimeout(function(){throw Yo},0)}try{if(t.appendComponentStack&&null!=g){var _=g(Error("react-stack-top-frame"));if(null!==_){var w=_.enableOwnerStacks,S=_.componentStack;if(""!==S){var E=new Error("");if(E.name=w?"Stack":"Component Stack",E.stack=(w?"Error Stack:":"Error Component Stack:")+S,u){if(Po(o[o.length-1],S)){var k=o[0];o.length>1&&"string"==typeof k&&k.endsWith("%s")&&(o[0]=k.slice(0,k.length-2)),o[o.length-1]=E,l=!0}}else o.push(E),l=!0}break}}}catch(Yo){setTimeout(function(){throw Yo},0)}}}catch(C){m.e(C)}finally{m.f()}t.breakOnConsoleErrors,s?r.apply(void 0,[l?h:p].concat(Co(ko.apply(void 0,o)))):r.apply(void 0,o)}}else r.apply(void 0,o)}},t=0,n=["error","trace","warn"];t<n.length;t++)e()}var m={},v=new Map,y={},g=new Map,b={rendererInterfaces:v,listeners:y,backends:new Map,renderers:g,hasUnsupportedRendererAttached:!1,emit:function(e,t){y[e]&&y[e].map(function(e){return e(t)})},getFiberRoots:function(e){var t=m;return t[e]||(t[e]=new Set),t[e]},inject:function(t){var n=++i;g.set(n,t);var s=a?"deadcode":function(e){try{if("string"==typeof e.version)return e.bundleType>0?"development":"production";var t=Function.prototype.toString;if(e.Mount&&e.Mount._renderNewRootComponent){var n=t.call(e.Mount._renderNewRootComponent);return 0!==n.indexOf("function")?"production":-1!==n.indexOf("storedMeasure")?"development":-1!==n.indexOf("should be a pure function")?-1!==n.indexOf("NODE_ENV")||-1!==n.indexOf("development")||-1!==n.indexOf("true")?"development":-1!==n.indexOf("nextElement")||-1!==n.indexOf("nextComponent")?"unminified":"development":-1!==n.indexOf("nextElement")||-1!==n.indexOf("nextComponent")?"unminified":"outdated"}}catch(r){}return"production"}(t);b.emit("renderer",{id:n,renderer:t,reactBuildType:s});var l=function(e,t,n,r,o,i){if(bo(n.reconcilerVersion||n.version)){var a=e.rendererInterfaces.get(t);return null==a&&("function"==typeof n.getCurrentComponentInfo?a=Yn(0,0,n):"function"==typeof n.findFiberByHostInstance||null!=n.currentDispatcherRef?a=ao(e,t,n,r,o,i):n.ComponentTree&&(a=go(e,t,n,r))),a}}(b,n,t,e,o,r);return null!=l?(b.rendererInterfaces.set(n,l),b.emit("renderer-attached",{id:n,rendererInterface:l})):(b.hasUnsupportedRendererAttached=!0,b.emit("unsupported-renderer-version")),n},on:function(e,t){y[e]||(y[e]=[]),y[e].push(t)},off:function(e,t){if(y[e]){var n=y[e].indexOf(t);-1!==n&&y[e].splice(n,1),y[e].length||delete y[e]}},sub:function(e,t){return b.on(e,t),function(){return b.off(e,t)}},supportsFiber:!0,supportsFlight:!0,checkDCE:function(e){try{Function.prototype.toString.call(e).indexOf("^_^")>-1&&(a=!0,setTimeout(function(){throw new Error("React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://react.dev/link/perf-use-production-build")}))}catch(t){}},onCommitFiberUnmount:function(e,t){var n=v.get(e);null!=n&&n.handleCommitFiberUnmount(t)},onCommitFiberRoot:function(e,t,n){var r=b.getFiberRoots(e),o=t.current,i=r.has(t),a=null==o.memoizedState||null==o.memoizedState.element;i||a?i&&a&&r.delete(t):r.add(t);var s=v.get(e);null!=s&&s.handleCommitFiberRoot(t,n)},onPostCommitFiberRoot:function(e,t){var n=v.get(e);null!=n&&n.handlePostCommitFiberRoot(t)},setStrictMode:function(e,t){s=t,t?function(){if(b.settings&&!(l.length>0))for(var e=function(){var e=n[t],r=Ao[e],o=function(){for(var e=b.settings,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];null!=e?e.hideConsoleLogsInStrictMode||r.apply(void 0,[p].concat(Co(ko.apply(void 0,n)))):r.apply(void 0,n)};Ao[e]=o,l.push(function(){Ao[e]=r})},t=0,n=["group","groupCollapsed","info","log"];t<n.length;t++)e()}():(l.forEach(function(e){return e()}),l.length=0)},getInternalModuleRanges:function(){return c},registerInternalModuleStart:function(e){var t=f(e);null!==t&&u.push(t)},registerInternalModuleStop:function(e){if(u.length>0){var t=u.pop(),n=f(e);null!==n&&c.push([t,n])}}};return null==t?(b.settings={appendComponentStack:!0,breakOnConsoleErrors:!1,showInlineWarningsAndErrors:!0,hideConsoleLogsInStrictMode:!1},d()):Promise.resolve(t).then(function(e){b.settings=e,b.emit("settingsInitialized",e),d()}).catch(function(){Ao.error("React DevTools failed to get Console Patching settings. Console won't be patched and some console features will not work.")}),Object.defineProperty(e,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{configurable:!1,enumerable:!1,get:function(){return b}}),b}function Lo(e,t,n,r){if(null==e)return function(){};function o(e,n){t.registerRendererInterface(e,n),n.flushInitialOperations()}var i=[e.sub("renderer-attached",function(e){o(e.id,e.rendererInterface)}),e.sub("unsupported-renderer-version",function(){t.onUnsupportedRenderer()}),e.sub("fastRefreshScheduled",t.onFastRefreshScheduled),e.sub("operations",t.onHookOperations),e.sub("traceUpdates",t.onTraceUpdates),e.sub("settingsInitialized",t.onHookSettings)];return t.addListener("getIfHasUnsupportedRendererVersion",function(){e.hasUnsupportedRendererAttached&&t.onUnsupportedRenderer()}),e.rendererInterfaces.forEach(function(e,t){o(t,e)}),e.emit("react-devtools",t),e.reactDevtoolsAgent=t,t.addListener("shutdown",function(){i.forEach(function(e){return e()}),e.rendererInterfaces.forEach(function(e){e.cleanup()}),e.reactDevtoolsAgent=null}),t.addListener("updateHookSettings",function(t){e.settings=t}),t.addListener("getHookSettings",function(){null!=e.settings&&t.onHookSettings(e.settings)}),r&&t.onReloadAndProfileSupportedByHost(),function(){i.forEach(function(e){return e()})}}function Mo(e,t){var n=!1,r={bottom:0,left:0,right:0,top:0},o=t[e];if(null!=o){for(var i=0,a=Object.keys(r);i<a.length;i++)r[a[i]]=o;n=!0}var s=t[e+"Horizontal"];if(null!=s)r.left=s,r.right=s,n=!0;else{var l=t[e+"Left"];null!=l&&(r.left=l,n=!0);var u=t[e+"Right"];null!=u&&(r.right=u,n=!0);var c=t[e+"End"];null!=c&&(r.right=c,n=!0);var f=t[e+"Start"];null!=f&&(r.left=f,n=!0)}var d=t[e+"Vertical"];if(null!=d)r.bottom=d,r.top=d,n=!0;else{var p=t[e+"Bottom"];null!=p&&(r.bottom=p,n=!0);var h=t[e+"Top"];null!=h&&(r.top=h,n=!0)}return n?r:null}function jo(e){return(jo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ho(e,t,n,r){e.addListener("NativeStyleEditor_measure",function(r){var o=r.id,i=r.rendererID;Vo(t,e,n,o,i)}),e.addListener("NativeStyleEditor_renameAttribute",function(r){var o=r.id,i=r.rendererID,a=r.oldName,s=r.newName,l=r.value;!function(e,t,n,r,o,i){var a,s=e.getInstanceAndStyle({id:t,rendererID:n});if(s&&s.style){var l,u=s.instance,c=s.style,f=o?(Fo(a={},r,void 0),Fo(a,o,i),a):Fo({},r,void 0);if(null!==u&&"function"==typeof u.setNativeProps){var d=Bo.get(t);d?Object.assign(d,f):Bo.set(t,f),u.setNativeProps({style:f})}else if(ue(c)){var p=c.length-1;"object"!==jo(c[p])||ue(c[p])?e.overrideValueAtPath({type:"props",id:t,rendererID:n,path:["style"],value:c.concat([f])}):(delete(l=zo(c[p]))[r],o?l[o]=i:l[r]=void 0,e.overrideValueAtPath({type:"props",id:t,rendererID:n,path:["style",p],value:l}))}else"object"===jo(c)?(delete(l=zo(c))[r],o?l[o]=i:l[r]=void 0,e.overrideValueAtPath({type:"props",id:t,rendererID:n,path:["style"],value:l})):e.overrideValueAtPath({type:"props",id:t,rendererID:n,path:["style"],value:[c,f]});e.emit("hideNativeHighlight")}}(t,o,i,a,s,l),setTimeout(function(){return Vo(t,e,n,o,i)})}),e.addListener("NativeStyleEditor_setValue",function(r){var o=r.id,i=r.rendererID,a=r.name,s=r.value;!function(e,t,n,r,o){var i=e.getInstanceAndStyle({id:t,rendererID:n});if(i&&i.style){var a=i.instance,s=i.style,l=Fo({},r,o);if(null!==a&&"function"==typeof a.setNativeProps){var u=Bo.get(t);u?Object.assign(u,l):Bo.set(t,l),a.setNativeProps({style:l})}else if(ue(s)){var c=s.length-1;"object"!==jo(s[c])||ue(s[c])?e.overrideValueAtPath({type:"props",id:t,rendererID:n,path:["style"],value:s.concat([l])}):e.overrideValueAtPath({type:"props",id:t,rendererID:n,path:["style",c,r],value:o})}else e.overrideValueAtPath({type:"props",id:t,rendererID:n,path:["style"],value:[s,l]});e.emit("hideNativeHighlight")}}(t,o,i,a,s),setTimeout(function(){return Vo(t,e,n,o,i)})}),e.send("isNativeStyleEditorSupported",{isSupported:!0,validAttributes:r})}var Uo={top:0,left:0,right:0,bottom:0},Bo=new Map;function Vo(e,t,n,r,o){var i=e.getInstanceAndStyle({id:r,rendererID:o});if(i&&i.style){var a=i.instance,s=n(i.style),l=Bo.get(r);null!=l&&(s=Object.assign({},s,l)),a&&"function"==typeof a.measure?a.measure(function(e,n,o,i,a,l){if("number"==typeof e){var u=null!=s&&Mo("margin",s)||Uo,c=null!=s&&Mo("padding",s)||Uo;t.send("NativeStyleEditor_styleAndLayout",{id:r,layout:{x:e,y:n,width:o,height:i,left:a,top:l,margin:u,padding:c},style:s||null})}else t.send("NativeStyleEditor_styleAndLayout",{id:r,layout:null,style:s||null})}):t.send("NativeStyleEditor_styleAndLayout",{id:r,layout:null,style:s||null})}else t.send("NativeStyleEditor_styleAndLayout",{id:r,layout:null,style:null})}function zo(e){var t={};for(var n in e)t[n]=e[n];return t}var Wo=Ce();function $o(e){Ro(window,e,arguments.length>1&&void 0!==arguments[1]&&arguments[1],arguments.length>2?arguments[2]:void 0)}function Go(e){var t=window.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(null!=t){var n=e||{},r=n.host,o=void 0===r?"localhost":r,i=n.nativeStyleEditorValidAttributes,a=n.useHttps,s=void 0!==a&&a,l=n.port,u=void 0===l?8097:l,c=n.websocket,f=n.resolveRNStyle,d=void 0===f?null:f,p=n.retryConnectionDelay,h=void 0===p?2e3:p,m=n.isAppActive,v=void 0===m?function(){return!0}:m,y=n.onSettingsUpdated,g=n.isReloadAndProfileSupported,b=void 0===g?Me():g,_=n.isProfiling,w=n.onReloadAndProfile,S=n.onReloadAndProfileFlagsReset,E=s?"wss":"ws",k=null;if(v()){var C=null,x=[],I=E+"://"+o+":"+u,O=c||new window.WebSocket(I);O.onclose=function(){null!==C&&C.emit("shutdown"),T()},O.onerror=function(){T()},O.onmessage=function(e){var t;try{if("string"!=typeof e.data)throw Error();t=JSON.parse(e.data)}catch(n){return void console.error("[React DevTools] Failed to parse JSON: "+e.data)}x.forEach(function(e){try{e(t)}catch(Yo){throw console.log("[React DevTools] Error calling listener",t),console.log("error:",Yo),Yo}})},O.onopen=function(){(C=new vn({listen:function(e){return x.push(e),function(){var t=x.indexOf(e);t>=0&&x.splice(t,1)}},send:function(e,t,n){O.readyState===O.OPEN?O.send(JSON.stringify({event:e,payload:t})):(null!==C&&C.shutdown(),T())}})).addListener("updateComponentFilters",function(e){Wo=e}),null==window.__REACT_DEVTOOLS_COMPONENT_FILTERS__&&C.send("overrideComponentFilters",Wo);var e=new En(C,_,w);if("function"==typeof S&&S(),null!=y&&e.addListener("updateHookSettings",y),e.addListener("shutdown",function(){null!=y&&e.removeListener("updateHookSettings",y),t.emit("shutdown")}),Lo(t,e,window,b),null!=d||null!=t.resolveRNStyle)Ho(C,e,d||t.resolveRNStyle,i||t.nativeStyleEditorValidAttributes||null);else{var n,r,o=function(){null!==C&&Ho(C,e,n,r)};t.hasOwnProperty("resolveRNStyle")||Object.defineProperty(t,"resolveRNStyle",{enumerable:!1,get:function(){return n},set:function(e){n=e,o()}}),t.hasOwnProperty("nativeStyleEditorValidAttributes")||Object.defineProperty(t,"nativeStyleEditorValidAttributes",{enumerable:!1,get:function(){return r},set:function(e){r=e,o()}})}}}else T()}function T(){null===k&&(k=setTimeout(function(){return Go(e)},h))}}function qo(e){var t=e.onSubscribe,n=e.onUnsubscribe,r=e.onMessage,o=e.nativeStyleEditorValidAttributes,i=e.resolveRNStyle,a=e.onSettingsUpdated,s=e.isReloadAndProfileSupported,l=void 0===s?Me():s,u=e.isProfiling,c=e.onReloadAndProfile,f=e.onReloadAndProfileFlagsReset,d=window.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(null!=d){var p=new vn({listen:function(e){return t(e),function(){n(e)}},send:function(e,t){r(e,t)}});p.addListener("updateComponentFilters",function(e){Wo=e}),null==window.__REACT_DEVTOOLS_COMPONENT_FILTERS__&&p.send("overrideComponentFilters",Wo);var h=new En(p,u,c);"function"==typeof f&&f(),null!=a&&h.addListener("updateHookSettings",a),h.addListener("shutdown",function(){null!=a&&h.removeListener("updateHookSettings",a),d.emit("shutdown")});var m=Lo(d,h,window,l),v=i||d.resolveRNStyle;if(null!=v){var y=o||d.nativeStyleEditorValidAttributes||null;Ho(p,h,v,y)}return m}}})(),r})()));J.initialize(),J.connectToDevTools();