(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[929],{34699:function(t,e){"use strict";e.byteLength=function(t){var e=c(t),r=e[0],n=e[1];return(r+n)*3/4-n},e.toByteArray=function(t){var e,r,s=c(t),o=s[0],a=s[1],u=new i((o+a)*3/4-a),l=0,h=a>0?o-4:o;for(r=0;r<h;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],u[l++]=e>>16&255,u[l++]=e>>8&255,u[l++]=255&e;return 2===a&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,u[l++]=255&e),1===a&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e),u},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,s=[],o=0,a=n-i;o<a;o+=16383)s.push(function(t,e,n){for(var i,s=[],o=e;o<n;o+=3)s.push(r[(i=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]))>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return s.join("")}(t,o,o+16383>a?a:o+16383));return 1===i?s.push(r[(e=t[n-1])>>2]+r[e<<4&63]+"=="):2===i&&s.push(r[(e=(t[n-2]<<8)+t[n-1])>>10]+r[e>>4&63]+r[e<<2&63]+"="),s.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=s.length;o<a;++o)r[o]=s[o],n[s.charCodeAt(o)]=o;function c(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},67133:function(t,e,r){"use strict";/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */var n=r(34699),i=r(19087),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(t){if(t>2147483647)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,a.prototype),e}function a(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return l(t)}return c(t,e,r)}function c(t,e,r){if("string"==typeof t)return function(t,e){if(("string"!=typeof e||""===e)&&(e="utf8"),!a.isEncoding(e))throw TypeError("Unknown encoding: "+e);var r=0|d(t,e),n=o(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(C(t,Uint8Array)){var e=new Uint8Array(t);return f(e.buffer,e.byteOffset,e.byteLength)}return h(t)}(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(C(t,ArrayBuffer)||t&&C(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(C(t,SharedArrayBuffer)||t&&C(t.buffer,SharedArrayBuffer)))return f(t,e,r);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return a.from(n,e,r);var i=function(t){if(a.isBuffer(t)){var e,r=0|p(t.length),n=o(r);return 0===n.length||t.copy(n,0,0,r),n}return void 0!==t.length?"number"!=typeof t.length||(e=t.length)!=e?o(0):h(t):"Buffer"===t.type&&Array.isArray(t.data)?h(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive]("string"),e,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return u(t),o(t<0?0:0|p(t))}function h(t){for(var e=t.length<0?0:0|p(t.length),r=o(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function f(t,e,r){var n;if(e<0||t.byteLength<e)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),a.prototype),n}function p(t){if(t>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function d(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||C(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return S(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return A(t).length;default:if(i)return n?-1:S(t).length;e=(""+e).toLowerCase(),i=!0}}function y(t,e,r){var i,s,o=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",s=e;s<r;++s)i+=_[t[s]];return i}(this,e,r);case"utf8":case"utf-8":return v(this,e,r);case"ascii":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}(this,e,r);case"latin1":case"binary":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}(this,e,r);case"base64":return i=e,s=r,0===i&&s===this.length?n.fromByteArray(this):n.fromByteArray(this.slice(i,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,r){for(var n=t.slice(e,r),i="",s=0;s<n.length-1;s+=2)i+=String.fromCharCode(n[s]+256*n[s+1]);return i}(this,e,r);default:if(o)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),o=!0}}function g(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function m(t,e,r,n,i){var s;if(0===t.length)return -1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(s=r=+r)!=s&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return -1;r=t.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof e&&(e=a.from(e,n)),a.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,i);if("number"==typeof e)return(e&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):b(t,[e],r,n,i);throw TypeError("val must be string, number or Buffer")}function b(t,e,r,n,i){var s,o=1,a=t.length,c=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;o=2,a/=2,c/=2,r/=2}function u(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var l=-1;for(s=r;s<a;s++)if(u(t,s)===u(e,-1===l?0:s-l)){if(-1===l&&(l=s),s-l+1===c)return l*o}else -1!==l&&(s-=s-l),l=-1}else for(r+c>a&&(r=a-c),s=r;s>=0;s--){for(var h=!0,f=0;f<c;f++)if(u(t,s+f)!==u(e,f)){h=!1;break}if(h)return s}return -1}function v(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var s,o,a,c,u=t[i],l=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=r)switch(h){case 1:u<128&&(l=u);break;case 2:(192&(s=t[i+1]))==128&&(c=(31&u)<<6|63&s)>127&&(l=c);break;case 3:s=t[i+1],o=t[i+2],(192&s)==128&&(192&o)==128&&(c=(15&u)<<12|(63&s)<<6|63&o)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:s=t[i+1],o=t[i+2],a=t[i+3],(192&s)==128&&(192&o)==128&&(192&a)==128&&(c=(15&u)<<18|(63&s)<<12|(63&o)<<6|63&a)>65535&&c<1114112&&(l=c)}null===l?(l=65533,h=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=h}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}function w(t,e,r){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>r)throw RangeError("Trying to access beyond buffer length")}function E(t,e,r,n,i,s){if(!a.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<s)throw RangeError('"value" argument is out of bounds');if(r+n>t.length)throw RangeError("Index out of range")}function x(t,e,r,n,i,s){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function O(t,e,r,n,s){return e=+e,r>>>=0,s||x(t,e,r,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,r,n,23,4),r+4}function R(t,e,r,n,s){return e=+e,r>>>=0,s||x(t,e,r,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,r,n,52,8),r+8}e.lW=a,e.h2=50,a.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(t,e,r){return c(t,e,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(t,e,r){return(u(t),t<=0)?o(t):void 0!==e?"string"==typeof r?o(t).fill(e,r):o(t).fill(e):o(t)},a.allocUnsafe=function(t){return l(t)},a.allocUnsafeSlow=function(t){return l(t)},a.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==a.prototype},a.compare=function(t,e){if(C(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),C(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(t)||!a.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,s=Math.min(r,n);i<s;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},a.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(t,e){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);if(void 0===e)for(r=0,e=0;r<t.length;++r)e+=t[r].length;var r,n=a.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var s=t[r];if(C(s,Uint8Array))i+s.length>n.length?a.from(s).copy(n,i):Uint8Array.prototype.set.call(n,s,i);else if(a.isBuffer(s))s.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=s.length}return n},a.byteLength=d,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},a.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},a.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},a.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?v(this,0,t):y.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(t){if(!a.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){var t="",r=e.h2;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},s&&(a.prototype[s]=a.prototype.inspect),a.prototype.compare=function(t,e,r,n,i){if(C(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var s=i-n,o=r-e,c=Math.min(s,o),u=this.slice(n,i),l=t.slice(e,r),h=0;h<c;++h)if(u[h]!==l[h]){s=u[h],o=l[h];break}return s<o?-1:o<s?1:0},a.prototype.includes=function(t,e,r){return -1!==this.indexOf(t,e,r)},a.prototype.indexOf=function(t,e,r){return m(this,t,e,r,!0)},a.prototype.lastIndexOf=function(t,e,r){return m(this,t,e,r,!1)},a.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,s,o,a,c,u,l,h,f=this.length-e;if((void 0===r||r>f)&&(r=f),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var s=e.length;n>s/2&&(n=s/2);for(var o=0;o<n;++o){var a=parseInt(e.substr(2*o,2),16);if(a!=a)break;t[r+o]=a}return o}(this,t,e,r);case"utf8":case"utf-8":return i=e,s=r,T(S(t,this.length-i),this,i,s);case"ascii":case"latin1":case"binary":return o=e,a=r,T(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(t),this,o,a);case"base64":return c=e,u=r,T(A(t),this,c,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l=e,h=r,T(function(t,e){for(var r,n,i=[],s=0;s<t.length&&!((e-=2)<0);++s)n=(r=t.charCodeAt(s))>>8,i.push(r%256),i.push(n);return i}(t,this.length-l),this,l,h);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return Object.setPrototypeOf(n,a.prototype),n},a.prototype.readUintLE=a.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||w(t,e,this.length);for(var n=this[t],i=1,s=0;++s<e&&(i*=256);)n+=this[t+s]*i;return n},a.prototype.readUintBE=a.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||w(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},a.prototype.readUint8=a.prototype.readUInt8=function(t,e){return t>>>=0,e||w(t,1,this.length),this[t]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(t,e){return t>>>=0,e||w(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(t,e){return t>>>=0,e||w(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(t,e){return t>>>=0,e||w(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(t,e){return t>>>=0,e||w(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||w(t,e,this.length);for(var n=this[t],i=1,s=0;++s<e&&(i*=256);)n+=this[t+s]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},a.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||w(t,e,this.length);for(var n=e,i=1,s=this[t+--n];n>0&&(i*=256);)s+=this[t+--n]*i;return s>=(i*=128)&&(s-=Math.pow(2,8*e)),s},a.prototype.readInt8=function(t,e){return(t>>>=0,e||w(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},a.prototype.readInt16LE=function(t,e){t>>>=0,e||w(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(t,e){t>>>=0,e||w(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(t,e){return t>>>=0,e||w(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,e){return t>>>=0,e||w(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readFloatLE=function(t,e){return t>>>=0,e||w(t,4,this.length),i.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t>>>=0,e||w(t,4,this.length),i.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t>>>=0,e||w(t,8,this.length),i.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t>>>=0,e||w(t,8,this.length),i.read(this,t,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;E(this,t,e,r,i,0)}var s=1,o=0;for(this[e]=255&t;++o<r&&(s*=256);)this[e+o]=t/s&255;return e+r},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;E(this,t,e,r,i,0)}var s=r-1,o=1;for(this[e+s]=255&t;--s>=0&&(o*=256);)this[e+s]=t/o&255;return e+r},a.prototype.writeUint8=a.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||E(this,t,e,1,255,0),this[e]=255&t,e+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||E(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||E(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||E(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||E(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);E(this,t,e,r,i-1,-i)}var s=0,o=1,a=0;for(this[e]=255&t;++s<r&&(o*=256);)t<0&&0===a&&0!==this[e+s-1]&&(a=1),this[e+s]=(t/o>>0)-a&255;return e+r},a.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);E(this,t,e,r,i-1,-i)}var s=r-1,o=1,a=0;for(this[e+s]=255&t;--s>=0&&(o*=256);)t<0&&0===a&&0!==this[e+s+1]&&(a=1),this[e+s]=(t/o>>0)-a&255;return e+r},a.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||E(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},a.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||E(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||E(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||E(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},a.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||E(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeFloatLE=function(t,e,r){return O(this,t,e,!0,r)},a.prototype.writeFloatBE=function(t,e,r){return O(this,t,e,!1,r)},a.prototype.writeDoubleLE=function(t,e,r){return R(this,t,e,!0,r)},a.prototype.writeDoubleBE=function(t,e,r){return R(this,t,e,!1,r)},a.prototype.copy=function(t,e,r,n){if(!a.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i=n-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),i},a.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var i,s=t.charCodeAt(0);("utf8"===n&&s<128||"latin1"===n)&&(t=s)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw RangeError("Out of range index");if(r<=e)return this;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var o=a.isBuffer(t)?t:a.from(t,n),c=o.length;if(0===c)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=o[i%c]}return this};var k=/[^+/0-9A-Za-z-_]/g;function S(t,e){e=e||1/0;for(var r,n=t.length,i=null,s=[],o=0;o<n;++o){if((r=t.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319||o+1===n){(e-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&s.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;s.push(r)}else if(r<2048){if((e-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return s}function A(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(k,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function T(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length)&&!(i>=t.length);++i)e[i+r]=t[i];return i}function C(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var _=function(){for(var t="0123456789abcdef",e=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},34482:function(t,e){"use strict";/*!
 * cookie
 * Copyright(c) 2012-2014 Roman Shtylman
 * Copyright(c) 2015 Douglas Christopher Wilson
 * MIT Licensed
 */e.parse=function(t,e){if("string"!=typeof t)throw TypeError("argument str must be a string");for(var r={},n=(e||{}).decode||i,s=0;s<t.length;){var o=t.indexOf("=",s);if(-1===o)break;var a=t.indexOf(";",s);if(-1===a)a=t.length;else if(a<o){s=t.lastIndexOf(";",o-1)+1;continue}var c=t.slice(s,o).trim();if(void 0===r[c]){var u=t.slice(o+1,a).trim();34===u.charCodeAt(0)&&(u=u.slice(1,-1)),r[c]=function(t,e){try{return e(t)}catch(e){return t}}(u,n)}s=a+1}return r},e.serialize=function(t,e,i){var o=i||{},a=o.encode||s;if("function"!=typeof a)throw TypeError("option encode is invalid");if(!n.test(t))throw TypeError("argument name is invalid");var c=a(e);if(c&&!n.test(c))throw TypeError("argument val is invalid");var u=t+"="+c;if(null!=o.maxAge){var l=o.maxAge-0;if(isNaN(l)||!isFinite(l))throw TypeError("option maxAge is invalid");u+="; Max-Age="+Math.floor(l)}if(o.domain){if(!n.test(o.domain))throw TypeError("option domain is invalid");u+="; Domain="+o.domain}if(o.path){if(!n.test(o.path))throw TypeError("option path is invalid");u+="; Path="+o.path}if(o.expires){var h=o.expires;if("[object Date]"!==r.call(h)&&!(h instanceof Date)||isNaN(h.valueOf()))throw TypeError("option expires is invalid");u+="; Expires="+h.toUTCString()}if(o.httpOnly&&(u+="; HttpOnly"),o.secure&&(u+="; Secure"),o.partitioned&&(u+="; Partitioned"),o.priority)switch("string"==typeof o.priority?o.priority.toLowerCase():o.priority){case"low":u+="; Priority=Low";break;case"medium":u+="; Priority=Medium";break;case"high":u+="; Priority=High";break;default:throw TypeError("option priority is invalid")}if(o.sameSite)switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:case"strict":u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"none":u+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return u};var r=Object.prototype.toString,n=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function i(t){return -1!==t.indexOf("%")?decodeURIComponent(t):t}function s(t){return encodeURIComponent(t)}},47713:function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)0>e.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r};Object.defineProperty(e,"__esModule",{value:!0}),e.hasCookie=e.deleteCookie=e.setCookie=e.getCookie=e.getCookies=void 0;var s=r(34482),o=function(){return"undefined"!=typeof window},a=function(t){return!!t&&"getAll"in t&&"set"in t&&"function"==typeof t.getAll&&"function"==typeof t.set},c=function(t){return!!(null==t?void 0:t.req)&&"cookies"in t.req&&a(null==t?void 0:t.req.cookies)||!!(null==t?void 0:t.res)&&"cookies"in t.res&&a(null==t?void 0:t.res.cookies)||!!(null==t?void 0:t.cookies)&&a(t.cookies())},u=function(t){var e={};return t.getAll().forEach(function(t){var r=t.name,n=t.value;e[r]=n}),e},l=function(t){try{if("string"==typeof t)return t;return JSON.stringify(t)}catch(e){return t}};e.getCookies=function(t){if(c(t)){if(null==t?void 0:t.req)return u(t.req.cookies);if(null==t?void 0:t.cookies)return u(t.cookies())}if(t&&(e=t.req),!o())return e&&e.cookies?e.cookies:e&&e.headers.cookie?(0,s.parse)(e.headers.cookie):{};for(var e,r={},n=document.cookie?document.cookie.split("; "):[],i=0,a=n.length;i<a;i++){var l=n[i].split("="),h=l.slice(1).join("=");r[l[0]]=h}return r},e.getCookie=function(t,r){var n=(0,e.getCookies)(r)[t];if(void 0!==n)return n?n.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent):n},e.setCookie=function(t,e,r){if(c(r)){var a,u,h,f=r.req,p=r.res,d=r.cookies,y=i(r,["req","res","cookies"]),g=n({name:t,value:l(e)},y);f&&f.cookies.set(g),p&&p.cookies.set(g),d&&d().set(g);return}if(r){var f=r.req,p=r.res,m=i(r,["req","res"]);u=f,h=p,a=m}var b=(0,s.serialize)(t,l(e),n({path:"/"},a));if(o())document.cookie=b;else if(h&&u){var v=h.getHeader("Set-Cookie");if(Array.isArray(v)||(v=v?[String(v)]:[]),h.setHeader("Set-Cookie",v.concat(b)),u&&u.cookies){var w=u.cookies;""===e?delete w[t]:w[t]=l(e)}if(u&&u.headers&&u.headers.cookie){var w=(0,s.parse)(u.headers.cookie);""===e?delete w[t]:w[t]=l(e),u.headers.cookie=Object.entries(w).reduce(function(t,e){return t.concat("".concat(e[0],"=").concat(e[1],";"))},"")}}},e.deleteCookie=function(t,r){return(0,e.setCookie)(t,"",n(n({},r),{maxAge:-1}))},e.hasCookie=function(t,r){return!!t&&(0,e.getCookies)(r).hasOwnProperty(t)}},19087:function(t,e){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */e.read=function(t,e,r,n,i){var s,o,a=8*i-n-1,c=(1<<a)-1,u=c>>1,l=-7,h=r?i-1:0,f=r?-1:1,p=t[e+h];for(h+=f,s=p&(1<<-l)-1,p>>=-l,l+=a;l>0;s=256*s+t[e+h],h+=f,l-=8);for(o=s&(1<<-l)-1,s>>=-l,l+=n;l>0;o=256*o+t[e+h],h+=f,l-=8);if(0===s)s=1-u;else{if(s===c)return o?NaN:(p?-1:1)*(1/0);o+=Math.pow(2,n),s-=u}return(p?-1:1)*o*Math.pow(2,s-n)},e.write=function(t,e,r,n,i,s){var o,a,c,u=8*s-i-1,l=(1<<u)-1,h=l>>1,f=23===i?5960464477539062e-23:0,p=n?0:s-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(isNaN(e=Math.abs(e))||e===1/0?(a=isNaN(e)?1:0,o=l):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+h>=1?e+=f/c:e+=f*Math.pow(2,1-h),e*c>=2&&(o++,c/=2),o+h>=l?(a=0,o=l):o+h>=1?(a=(e*c-1)*Math.pow(2,i),o+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;t[r+p]=255&a,p+=d,a/=256,i-=8);for(o=o<<i|a,u+=i;u>0;t[r+p]=255&o,p+=d,o/=256,u-=8);t[r+p-d]|=128*y}},62601:function(t,e,r){"use strict";var n,i;t.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(i=r.g.process)?void 0:i.env)?r.g.process:r(58960)},31162:function(t,e,r){"use strict";Object.defineProperty(e,"$",{enumerable:!0,get:function(){return i}});let n=r(15231);function i(t){let{createServerReference:e}=r(6671);return e(t,n.callServer)}},470:function(t,e){"use strict";Symbol.for("react.server.reference")},58960:function(t){!function(){var e={229:function(t){var e,r,n,i=t.exports={};function s(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===s||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:s}catch(t){e=s}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(t){r=o}}();var c=[],u=!1,l=-1;function h(){u&&n&&(u=!1,n.length?c=n.concat(c):l=-1,c.length&&f())}function f(){if(!u){var t=a(h);u=!0;for(var e=c.length;e;){for(n=c,c=[];++l<e;)n&&n[l].run();l=-1,e=c.length}n=null,u=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function d(){}i.nextTick=function(t){var e=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];c.push(new p(t,e)),1!==c.length||u||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=d,i.addListener=d,i.once=d,i.off=d,i.removeListener=d,i.removeAllListeners=d,i.emit=d,i.prependListener=d,i.prependOnceListener=d,i.listeners=function(t){return[]},i.binding=function(t){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},r={};function n(t){var i=r[t];if(void 0!==i)return i.exports;var s=r[t]={exports:{}},o=!0;try{e[t](s,s.exports,n),o=!1}finally{o&&delete r[t]}return s.exports}n.ab="//";var i=n(229);t.exports=i}()},91623:function(t,e){"use strict";e.J=void 0,e.J=(t={})=>{if("undefined"==typeof window)return{persistAtom:()=>{}};let{key:e="recoil-persist",storage:r=localStorage,converter:n=JSON}=t,i=(t,e,r,n)=>{n?delete e[r]:e[r]=t,a(e)},s=()=>{let t=r.getItem(e);return null==t?{}:"string"==typeof t?o(t):"function"==typeof t.then?t.then(o):{}},o=t=>{if(void 0===t)return{};try{return n.parse(t)}catch(t){return console.error(t),{}}},a=t=>{try{"function"==typeof r.mergeItem?r.mergeItem(e,n.stringify(t)):r.setItem(e,n.stringify(t))}catch(t){console.error(t)}};return{persistAtom:({onSet:t,node:e,trigger:r,setSelf:n})=>{if("get"===r){let t=s();"function"==typeof t.then&&t.then(t=>{t.hasOwnProperty(e.key)&&n(t[e.key])}),t.hasOwnProperty(e.key)&&n(t[e.key])}t(async(t,r,n)=>{let o=s();"function"==typeof o.then?o.then(r=>i(t,r,e.key,n)):i(t,o,e.key,n)})}}}},79198:function(t,e,r){"use strict";r.d(e,{j:function(){return s}});var n=r(42996),i=r(40300),s=new class extends n.l{#t;#e;#r;constructor(){super(),this.#r=t=>{if(!i.sk&&window.addEventListener){let e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#e||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(t){this.#r=t,this.#e?.(),this.#e=t(t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()})}setFocused(t){let e=this.#t!==t;e&&(this.#t=t,this.onFocus())}onFocus(){let t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return"boolean"==typeof this.#t?this.#t:globalThis.document?.visibilityState!=="hidden"}}},17987:function(t,e,r){"use strict";r.d(e,{V:function(){return n}});var n=function(){let t=[],e=0,r=t=>{t()},n=t=>{t()},i=t=>setTimeout(t,0),s=n=>{e?t.push(n):i(()=>{r(n)})},o=()=>{let e=t;t=[],e.length&&i(()=>{n(()=>{e.forEach(t=>{r(t)})})})};return{batch:t=>{let r;e++;try{r=t()}finally{--e||o()}return r},batchCalls:t=>(...e)=>{s(()=>{t(...e)})},schedule:s,setNotifyFunction:t=>{r=t},setBatchNotifyFunction:t=>{n=t},setScheduler:t=>{i=t}}}()},20436:function(t,e,r){"use strict";r.d(e,{N:function(){return s}});var n=r(42996),i=r(40300),s=new class extends n.l{#n=!0;#e;#r;constructor(){super(),this.#r=t=>{if(!i.sk&&window.addEventListener){let e=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#e||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(t){this.#r=t,this.#e?.(),this.#e=t(this.setOnline.bind(this))}setOnline(t){let e=this.#n!==t;e&&(this.#n=t,this.listeners.forEach(e=>{e(t)}))}isOnline(){return this.#n}}},33002:function(t,e,r){"use strict";r.d(e,{A:function(){return a},z:function(){return c}});var n=r(40300),i=r(17987),s=r(11640),o=r(99024),a=class extends o.F{#i;#s;#o;#a;#c;#u;constructor(t){super(),this.#u=!1,this.#c=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#o=t.cache,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#i=t.state||function(t){let e="function"==typeof t.initialData?t.initialData():t.initialData,r=void 0!==e,n=r?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=this.#i,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(t){this.options={...this.#c,...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#o.remove(this)}setData(t,e){let r=(0,n.oE)(this.state.data,t,this.options);return this.#l({data:r,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),r}setState(t,e){this.#l({type:"setState",state:t,setStateOptions:e})}cancel(t){let e=this.#a?.promise;return this.#a?.cancel(t),e?e.then(n.ZT).catch(n.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#i)}isActive(){return this.observers.some(t=>!1!==t.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(t=0){return this.state.isInvalidated||void 0===this.state.data||!(0,n.Kp)(this.state.dataUpdatedAt,t)}onFocus(){let t=this.observers.find(t=>t.shouldFetchOnWindowFocus());t?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){let t=this.observers.find(t=>t.shouldFetchOnReconnect());t?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#o.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.#a&&(this.#u?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#o.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}fetch(t,e){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(t&&this.setOptions(t),!this.options.queryFn){let t=this.observers.find(t=>t.options.queryFn);t&&this.setOptions(t.options)}let r=new AbortController,i=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(this.#u=!0,r.signal)})},o={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{let t=(0,n.cG)(this.options,e),r={queryKey:this.queryKey,meta:this.meta};return(i(r),this.#u=!1,this.options.persister)?this.options.persister(t,r,this):t(r)}};i(o),this.options.behavior?.onFetch(o,this),this.#s=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#l({type:"fetch",meta:o.fetchOptions?.meta});let a=t=>{(0,s.DV)(t)&&t.silent||this.#l({type:"error",error:t}),(0,s.DV)(t)||(this.#o.config.onError?.(t,this),this.#o.config.onSettled?.(this.state.data,t,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.#a=(0,s.Mz)({initialPromise:e?.initialPromise,fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:t=>{if(void 0===t){a(Error(`${this.queryHash} data is undefined`));return}this.setData(t),this.#o.config.onSuccess?.(t,this),this.#o.config.onSettled?.(t,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:a,onFail:(t,e)=>{this.#l({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0}),this.#a.start()}#l(t){this.state=(e=>{switch(t.type){case"failed":return{...e,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":return{...e,...c(e.data,this.options),fetchMeta:t.meta??null};case"success":return{...e,data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let r=t.error;if((0,s.DV)(r)&&r.revert&&this.#s)return{...this.#s,fetchStatus:"idle"};return{...e,error:r,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}})(this.state),i.V.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate()}),this.#o.notify({query:this,type:"updated",action:t})})}};function c(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,s.Kw)(e.networkMode)?"fetching":"paused",...void 0===t&&{error:null,status:"pending"}}}},99024:function(t,e,r){"use strict";r.d(e,{F:function(){return i}});var n=r(40300),i=class{#h;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,n.PN)(this.gcTime)&&(this.#h=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(n.sk?1/0:3e5))}clearGcTimeout(){this.#h&&(clearTimeout(this.#h),this.#h=void 0)}}},11640:function(t,e,r){"use strict";r.d(e,{DV:function(){return u},Kw:function(){return a},Mz:function(){return l}});var n=r(79198),i=r(20436),s=r(40300);function o(t){return Math.min(1e3*2**t,3e4)}function a(t){return(t??"online")!=="online"||i.N.isOnline()}var c=class{constructor(t){this.revert=t?.revert,this.silent=t?.silent}};function u(t){return t instanceof c}function l(t){let e,r,u,l=!1,h=0,f=!1,p=new Promise((t,e)=>{r=t,u=e}),d=()=>n.j.isFocused()&&("always"===t.networkMode||i.N.isOnline())&&t.canRun(),y=()=>a(t.networkMode)&&t.canRun(),g=n=>{f||(f=!0,t.onSuccess?.(n),e?.(),r(n))},m=r=>{f||(f=!0,t.onError?.(r),e?.(),u(r))},b=()=>new Promise(r=>{e=t=>{(f||d())&&r(t)},t.onPause?.()}).then(()=>{e=void 0,f||t.onContinue?.()}),v=()=>{let e;if(f)return;let r=0===h?t.initialPromise:void 0;try{e=r??t.fn()}catch(t){e=Promise.reject(t)}Promise.resolve(e).then(g).catch(e=>{if(f)return;let r=t.retry??(s.sk?0:3),n=t.retryDelay??o,i="function"==typeof n?n(h,e):n,a=!0===r||"number"==typeof r&&h<r||"function"==typeof r&&r(h,e);if(l||!a){m(e);return}h++,t.onFail?.(h,e),(0,s._v)(i).then(()=>d()?void 0:b()).then(()=>{l?m(e):v()})})};return{promise:p,cancel:e=>{f||(m(new c(e)),t.abort?.())},continue:()=>(e?.(),p),cancelRetry:()=>{l=!0},continueRetry:()=>{l=!1},canStart:y,start:()=>(y()?v():b().then(v),p)}}},42996:function(t,e,r){"use strict";r.d(e,{l:function(){return n}});var n=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},40300:function(t,e,r){"use strict";r.d(e,{CN:function(){return x},Ht:function(){return E},KC:function(){return c},Kp:function(){return a},PN:function(){return o},Rm:function(){return h},SE:function(){return s},VS:function(){return d},VX:function(){return w},X7:function(){return l},Ym:function(){return f},ZT:function(){return i},_v:function(){return b},_x:function(){return u},cG:function(){return O},oE:function(){return v},sk:function(){return n},to:function(){return p}});var n="undefined"==typeof window||"Deno"in globalThis;function i(){}function s(t,e){return"function"==typeof t?t(e):t}function o(t){return"number"==typeof t&&t>=0&&t!==1/0}function a(t,e){return Math.max(t+(e||0)-Date.now(),0)}function c(t,e){return"function"==typeof t?t(e):t}function u(t,e){let{type:r="all",exact:n,fetchStatus:i,predicate:s,queryKey:o,stale:a}=t;if(o){if(n){if(e.queryHash!==h(o,e.options))return!1}else if(!p(e.queryKey,o))return!1}if("all"!==r){let t=e.isActive();if("active"===r&&!t||"inactive"===r&&t)return!1}return("boolean"!=typeof a||e.isStale()===a)&&(!i||i===e.state.fetchStatus)&&(!s||!!s(e))}function l(t,e){let{exact:r,status:n,predicate:i,mutationKey:s}=t;if(s){if(!e.options.mutationKey)return!1;if(r){if(f(e.options.mutationKey)!==f(s))return!1}else if(!p(e.options.mutationKey,s))return!1}return(!n||e.state.status===n)&&(!i||!!i(e))}function h(t,e){let r=e?.queryKeyHashFn||f;return r(t)}function f(t){return JSON.stringify(t,(t,e)=>g(e)?Object.keys(e).sort().reduce((t,r)=>(t[r]=e[r],t),{}):e)}function p(t,e){return t===e||typeof t==typeof e&&!!t&&!!e&&"object"==typeof t&&"object"==typeof e&&!Object.keys(e).some(r=>!p(t[r],e[r]))}function d(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(let r in t)if(t[r]!==e[r])return!1;return!0}function y(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function g(t){if(!m(t))return!1;let e=t.constructor;if(void 0===e)return!0;let r=e.prototype;return!!(m(r)&&r.hasOwnProperty("isPrototypeOf"))&&Object.getPrototypeOf(t)===Object.prototype}function m(t){return"[object Object]"===Object.prototype.toString.call(t)}function b(t){return new Promise(e=>{setTimeout(e,t)})}function v(t,e,r){return"function"==typeof r.structuralSharing?r.structuralSharing(t,e):!1!==r.structuralSharing?function t(e,r){if(e===r)return e;let n=y(e)&&y(r);if(n||g(e)&&g(r)){let i=n?e:Object.keys(e),s=i.length,o=n?r:Object.keys(r),a=o.length,c=n?[]:{},u=0;for(let s=0;s<a;s++){let a=n?s:o[s];(!n&&i.includes(a)||n)&&void 0===e[a]&&void 0===r[a]?(c[a]=void 0,u++):(c[a]=t(e[a],r[a]),c[a]===e[a]&&void 0!==e[a]&&u++)}return s===a&&u===s?e:c}return r}(t,e):e}function w(t,e,r=0){let n=[...t,e];return r&&n.length>r?n.slice(1):n}function E(t,e,r=0){let n=[e,...t];return r&&n.length>r?n.slice(0,-1):n}var x=Symbol(),O=(t,e)=>!t.queryFn&&e?.initialPromise?()=>e.initialPromise:t.queryFn&&t.queryFn!==x?t.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${t.queryHash}'`))},38038:function(t,e,r){"use strict";r.d(e,{NL:function(){return o},aH:function(){return a}});var n=r(2265),i=r(57437),s=n.createContext(void 0),o=t=>{let e=n.useContext(s);if(t)return t;if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},a=({client:t,children:e})=>(n.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,i.jsx)(s.Provider,{value:t,children:e}))},67663:function(t,e,r){"use strict";let n;r.d(e,{a:function(){return A}});var i=r(40300),s=r(17987),o=r(79198),a=r(42996),c=r(33002),u=class extends a.l{constructor(t,e){super(),this.options=e,this.#f=t,this.#p=null,this.bindMethods(),this.setOptions(e)}#f;#d=void 0;#y=void 0;#g=void 0;#m;#b;#p;#v;#w;#E;#x;#O;#R;#k=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#d.addObserver(this),l(this.#d,this.options)?this.#S():this.updateResult(),this.#A())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return h(this.#d,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return h(this.#d,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#T(),this.#C(),this.#d.removeObserver(this)}setOptions(t,e){let r=this.options,n=this.#d;if(this.options=this.#f.defaultQueryOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.#_(),this.#d.setOptions(this.options),r._defaulted&&!(0,i.VS)(this.options,r)&&this.#f.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#d,observer:this});let s=this.hasListeners();s&&f(this.#d,n,this.options,r)&&this.#S(),this.updateResult(e),s&&(this.#d!==n||this.options.enabled!==r.enabled||(0,i.KC)(this.options.staleTime,this.#d)!==(0,i.KC)(r.staleTime,this.#d))&&this.#B();let o=this.#L();s&&(this.#d!==n||this.options.enabled!==r.enabled||o!==this.#R)&&this.#U(o)}getOptimisticResult(t){let e=this.#f.getQueryCache().build(this.#f,t),r=this.createResult(e,t);return(0,i.VS)(this.getCurrentResult(),r)||(this.#g=r,this.#b=this.options,this.#m=this.#d.state),r}getCurrentResult(){return this.#g}trackResult(t,e){let r={};return Object.keys(t).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(n),e?.(n),t[n])})}),r}trackProp(t){this.#k.add(t)}getCurrentQuery(){return this.#d}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){let e=this.#f.defaultQueryOptions(t),r=this.#f.getQueryCache().build(this.#f,e);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,e))}fetch(t){return this.#S({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#g))}#S(t){this.#_();let e=this.#d.fetch(this.options,t);return t?.throwOnError||(e=e.catch(i.ZT)),e}#B(){this.#T();let t=(0,i.KC)(this.options.staleTime,this.#d);if(i.sk||this.#g.isStale||!(0,i.PN)(t))return;let e=(0,i.Kp)(this.#g.dataUpdatedAt,t);this.#x=setTimeout(()=>{this.#g.isStale||this.updateResult()},e+1)}#L(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#d):this.options.refetchInterval)??!1}#U(t){this.#C(),this.#R=t,!i.sk&&!1!==this.options.enabled&&(0,i.PN)(this.#R)&&0!==this.#R&&(this.#O=setInterval(()=>{(this.options.refetchIntervalInBackground||o.j.isFocused())&&this.#S()},this.#R))}#A(){this.#B(),this.#U(this.#L())}#T(){this.#x&&(clearTimeout(this.#x),this.#x=void 0)}#C(){this.#O&&(clearInterval(this.#O),this.#O=void 0)}createResult(t,e){let r;let n=this.#d,s=this.options,o=this.#g,a=this.#m,u=this.#b,h=t!==n,d=h?t.state:this.#y,{state:y}=t,g={...y},m=!1;if(e._optimisticResults){let r=this.hasListeners(),i=!r&&l(t,e),o=r&&f(t,n,e,s);(i||o)&&(g={...g,...(0,c.z)(y.data,t.options)}),"isRestoring"===e._optimisticResults&&(g.fetchStatus="idle")}let{error:b,errorUpdatedAt:v,status:w}=g;if(e.select&&void 0!==g.data){if(o&&g.data===a?.data&&e.select===this.#v)r=this.#w;else try{this.#v=e.select,r=e.select(g.data),r=(0,i.oE)(o?.data,r,e),this.#w=r,this.#p=null}catch(t){this.#p=t}}else r=g.data;if(void 0!==e.placeholderData&&void 0===r&&"pending"===w){let t;if(o?.isPlaceholderData&&e.placeholderData===u?.placeholderData)t=o.data;else if(t="function"==typeof e.placeholderData?e.placeholderData(this.#E?.state.data,this.#E):e.placeholderData,e.select&&void 0!==t)try{t=e.select(t),this.#p=null}catch(t){this.#p=t}void 0!==t&&(w="success",r=(0,i.oE)(o?.data,t,e),m=!0)}this.#p&&(b=this.#p,r=this.#w,v=Date.now(),w="error");let E="fetching"===g.fetchStatus,x="pending"===w,O="error"===w,R=x&&E,k=void 0!==r,S={status:w,fetchStatus:g.fetchStatus,isPending:x,isSuccess:"success"===w,isError:O,isInitialLoading:R,isLoading:R,data:r,dataUpdatedAt:g.dataUpdatedAt,error:b,errorUpdatedAt:v,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>d.dataUpdateCount||g.errorUpdateCount>d.errorUpdateCount,isFetching:E,isRefetching:E&&!x,isLoadingError:O&&!k,isPaused:"paused"===g.fetchStatus,isPlaceholderData:m,isRefetchError:O&&k,isStale:p(t,e),refetch:this.refetch};return S}updateResult(t){let e=this.#g,r=this.createResult(this.#d,this.options);if(this.#m=this.#d.state,this.#b=this.options,void 0!==this.#m.data&&(this.#E=this.#d),(0,i.VS)(r,e))return;this.#g=r;let n={};t?.listeners!==!1&&(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#k.size)return!0;let n=new Set(r??this.#k);return this.options.throwOnError&&n.add("error"),Object.keys(this.#g).some(t=>{let r=this.#g[t]!==e[t];return r&&n.has(t)})})()&&(n.listeners=!0),this.#N({...n,...t})}#_(){let t=this.#f.getQueryCache().build(this.#f,this.options);if(t===this.#d)return;let e=this.#d;this.#d=t,this.#y=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#A()}#N(t){s.V.batch(()=>{t.listeners&&this.listeners.forEach(t=>{t(this.#g)}),this.#f.getQueryCache().notify({query:this.#d,type:"observerResultsUpdated"})})}};function l(t,e){return!1!==e.enabled&&void 0===t.state.data&&!("error"===t.state.status&&!1===e.retryOnMount)||void 0!==t.state.data&&h(t,e,e.refetchOnMount)}function h(t,e,r){if(!1!==e.enabled){let n="function"==typeof r?r(t):r;return"always"===n||!1!==n&&p(t,e)}return!1}function f(t,e,r,n){return(t!==e||!1===n.enabled)&&(!r.suspense||"error"!==t.state.status)&&p(t,r)}function p(t,e){return!1!==e.enabled&&t.isStaleByTime((0,i.KC)(e.staleTime,t))}var d=r(2265);r(57437);var y=d.createContext((n=!1,{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n})),g=()=>d.useContext(y),m=r(38038),b=d.createContext(!1),v=()=>d.useContext(b);b.Provider;var w=r(14805),E=(t,e)=>{(t.suspense||t.throwOnError)&&!e.isReset()&&(t.retryOnMount=!1)},x=t=>{d.useEffect(()=>{t.clearReset()},[t])},O=({result:t,errorResetBoundary:e,throwOnError:r,query:n})=>t.isError&&!e.isReset()&&!t.isFetching&&n&&(0,w.L)(r,[t.error,n]),R=t=>{t.suspense&&"number"!=typeof t.staleTime&&(t.staleTime=1e3)},k=(t,e)=>t?.suspense&&e.isPending,S=(t,e,r)=>e.fetchOptimistic(t).catch(()=>{r.clearReset()});function A(t,e){return function(t,e,r){let n=(0,m.NL)(r),i=v(),o=g(),a=n.defaultQueryOptions(t);a._optimisticResults=i?"isRestoring":"optimistic",R(a),E(a,o),x(o);let[c]=d.useState(()=>new e(n,a)),u=c.getOptimisticResult(a);if(d.useSyncExternalStore(d.useCallback(t=>{let e=i?()=>void 0:c.subscribe(s.V.batchCalls(t));return c.updateResult(),e},[c,i]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),d.useEffect(()=>{c.setOptions(a,{listeners:!1})},[a,c]),k(a,u))throw S(a,c,o);if(O({result:u,errorResetBoundary:o,throwOnError:a.throwOnError,query:n.getQueryCache().get(a.queryHash)}))throw u.error;return a.notifyOnChangeProps?u:c.trackResult(u)}(t,u,e)}},14805:function(t,e,r){"use strict";function n(t,e){return"function"==typeof t?t(...e):!!t}function i(){}r.d(e,{L:function(){return n},Z:function(){return i}})},54829:function(t,e,r){"use strict";r.d(e,{Z:function(){return eo}});var n,i,s,o,a,c={};function u(t,e){return function(){return t.apply(e,arguments)}}r.r(c),r.d(c,{hasBrowserEnv:function(){return th},hasStandardBrowserEnv:function(){return tf},hasStandardBrowserWebWorkerEnv:function(){return tp},origin:function(){return td}});let{toString:l}=Object.prototype,{getPrototypeOf:h}=Object,f=(n=Object.create(null),t=>{let e=l.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())}),p=t=>(t=t.toLowerCase(),e=>f(e)===t),d=t=>e=>typeof e===t,{isArray:y}=Array,g=d("undefined"),m=p("ArrayBuffer"),b=d("string"),v=d("function"),w=d("number"),E=t=>null!==t&&"object"==typeof t,x=t=>{if("object"!==f(t))return!1;let e=h(t);return(null===e||e===Object.prototype||null===Object.getPrototypeOf(e))&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},O=p("Date"),R=p("File"),k=p("Blob"),S=p("FileList"),A=p("URLSearchParams"),[T,C,_,B]=["ReadableStream","Request","Response","Headers"].map(p);function L(t,e,{allOwnKeys:r=!1}={}){let n,i;if(null!=t){if("object"!=typeof t&&(t=[t]),y(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{let i;let s=r?Object.getOwnPropertyNames(t):Object.keys(t),o=s.length;for(n=0;n<o;n++)i=s[n],e.call(null,t[i],i,t)}}}function U(t,e){let r;e=e.toLowerCase();let n=Object.keys(t),i=n.length;for(;i-- >0;)if(e===(r=n[i]).toLowerCase())return r;return null}let N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,P=t=>!g(t)&&t!==N,j=(i="undefined"!=typeof Uint8Array&&h(Uint8Array),t=>i&&t instanceof i),F=p("HTMLFormElement"),I=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),D=p("RegExp"),q=(t,e)=>{let r=Object.getOwnPropertyDescriptors(t),n={};L(r,(r,i)=>{let s;!1!==(s=e(r,i,t))&&(n[i]=s||r)}),Object.defineProperties(t,n)},M="abcdefghijklmnopqrstuvwxyz",z="0123456789",V={DIGIT:z,ALPHA:M,ALPHA_DIGIT:M+M.toUpperCase()+z},H=p("AsyncFunction");var Q={isArray:y,isArrayBuffer:m,isBuffer:function(t){return null!==t&&!g(t)&&null!==t.constructor&&!g(t.constructor)&&v(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||v(t.append)&&("formdata"===(e=f(t))||"object"===e&&v(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&m(t.buffer)},isString:b,isNumber:w,isBoolean:t=>!0===t||!1===t,isObject:E,isPlainObject:x,isReadableStream:T,isRequest:C,isResponse:_,isHeaders:B,isUndefined:g,isDate:O,isFile:R,isBlob:k,isRegExp:D,isFunction:v,isStream:t=>E(t)&&v(t.pipe),isURLSearchParams:A,isTypedArray:j,isFileList:S,forEach:L,merge:function t(){let{caseless:e}=P(this)&&this||{},r={},n=(n,i)=>{let s=e&&U(r,i)||i;x(r[s])&&x(n)?r[s]=t(r[s],n):x(n)?r[s]=t({},n):y(n)?r[s]=n.slice():r[s]=n};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&L(arguments[t],n);return r},extend:(t,e,r,{allOwnKeys:n}={})=>(L(e,(e,n)=>{r&&v(e)?t[n]=u(e,r):t[n]=e},{allOwnKeys:n}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},toFlatObject:(t,e,r,n)=>{let i,s,o;let a={};if(e=e||{},null==t)return e;do{for(s=(i=Object.getOwnPropertyNames(t)).length;s-- >0;)o=i[s],(!n||n(o,t,e))&&!a[o]&&(e[o]=t[o],a[o]=!0);t=!1!==r&&h(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:f,kindOfTest:p,endsWith:(t,e,r)=>{t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;let n=t.indexOf(e,r);return -1!==n&&n===r},toArray:t=>{if(!t)return null;if(y(t))return t;let e=t.length;if(!w(e))return null;let r=Array(e);for(;e-- >0;)r[e]=t[e];return r},forEachEntry:(t,e)=>{let r;let n=t&&t[Symbol.iterator],i=n.call(t);for(;(r=i.next())&&!r.done;){let n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let r;let n=[];for(;null!==(r=t.exec(e));)n.push(r);return n},isHTMLForm:F,hasOwnProperty:I,hasOwnProp:I,reduceDescriptors:q,freezeMethods:t=>{q(t,(e,r)=>{if(v(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;let n=t[r];if(v(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(t,e)=>{let r={};return(t=>{t.forEach(t=>{r[t]=!0})})(y(t)?t:String(t).split(e)),r},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,r){return e.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:U,global:N,isContextDefined:P,ALPHABET:V,generateString:(t=16,e=V.ALPHA_DIGIT)=>{let r="",{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r},isSpecCompliantForm:function(t){return!!(t&&v(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{let e=Array(10),r=(t,n)=>{if(E(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;let i=y(t)?[]:{};return L(t,(t,e)=>{let s=r(t,n+1);g(s)||(i[e]=s)}),e[n]=void 0,i}}return t};return r(t,0)},isAsyncFn:H,isThenable:t=>t&&(E(t)||v(t))&&v(t.then)&&v(t.catch)};function W(t,e,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}Q.inherits(W,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Q.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let K=W.prototype,J={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{J[t]={value:t}}),Object.defineProperties(W,J),Object.defineProperty(K,"isAxiosError",{value:!0}),W.from=(t,e,r,n,i,s)=>{let o=Object.create(K);return Q.toFlatObject(t,o,function(t){return t!==Error.prototype},t=>"isAxiosError"!==t),W.call(o,t.message,e,r,n,i),o.cause=t,o.name=t.name,s&&Object.assign(o,s),o};var $=r(67133).lW;function G(t){return Q.isPlainObject(t)||Q.isArray(t)}function X(t){return Q.endsWith(t,"[]")?t.slice(0,-2):t}function Y(t,e,r){return t?t.concat(e).map(function(t,e){return t=X(t),!r&&e?"["+t+"]":t}).join(r?".":""):e}let Z=Q.toFlatObject(Q,{},null,function(t){return/^is[A-Z]/.test(t)});var tt=function(t,e,r){if(!Q.isObject(t))throw TypeError("target must be an object");e=e||new FormData,r=Q.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,e){return!Q.isUndefined(e[t])});let n=r.metaTokens,i=r.visitor||l,s=r.dots,o=r.indexes,a=r.Blob||"undefined"!=typeof Blob&&Blob,c=a&&Q.isSpecCompliantForm(e);if(!Q.isFunction(i))throw TypeError("visitor must be a function");function u(t){if(null===t)return"";if(Q.isDate(t))return t.toISOString();if(!c&&Q.isBlob(t))throw new W("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(t)||Q.isTypedArray(t)?c&&"function"==typeof Blob?new Blob([t]):$.from(t):t}function l(t,r,i){let a=t;if(t&&!i&&"object"==typeof t){if(Q.endsWith(r,"{}"))r=n?r:r.slice(0,-2),t=JSON.stringify(t);else{var c;if(Q.isArray(t)&&(c=t,Q.isArray(c)&&!c.some(G))||(Q.isFileList(t)||Q.endsWith(r,"[]"))&&(a=Q.toArray(t)))return r=X(r),a.forEach(function(t,n){Q.isUndefined(t)||null===t||e.append(!0===o?Y([r],n,s):null===o?r:r+"[]",u(t))}),!1}}return!!G(t)||(e.append(Y(i,r,s),u(t)),!1)}let h=[],f=Object.assign(Z,{defaultVisitor:l,convertValue:u,isVisitable:G});if(!Q.isObject(t))throw TypeError("data must be an object");return!function t(r,n){if(!Q.isUndefined(r)){if(-1!==h.indexOf(r))throw Error("Circular reference detected in "+n.join("."));h.push(r),Q.forEach(r,function(r,s){let o=!(Q.isUndefined(r)||null===r)&&i.call(e,r,Q.isString(s)?s.trim():s,n,f);!0===o&&t(r,n?n.concat(s):[s])}),h.pop()}}(t),e};function te(t){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function tr(t,e){this._pairs=[],t&&tt(t,this,e)}let tn=tr.prototype;function ti(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ts(t,e,r){let n;if(!e)return t;let i=r&&r.encode||ti,s=r&&r.serialize;if(n=s?s(e,r):Q.isURLSearchParams(e)?e.toString():new tr(e,r).toString(i)){let e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+n}return t}tn.append=function(t,e){this._pairs.push([t,e])},tn.toString=function(t){let e=t?function(e){return t.call(this,e,te)}:te;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};class to{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Q.forEach(this.handlers,function(e){null!==e&&t(e)})}}var ta={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},tc="undefined"!=typeof URLSearchParams?URLSearchParams:tr,tu="undefined"!=typeof FormData?FormData:null,tl="undefined"!=typeof Blob?Blob:null;let th="undefined"!=typeof window&&"undefined"!=typeof document,tf=(s="undefined"!=typeof navigator&&navigator.product,th&&0>["ReactNative","NativeScript","NS"].indexOf(s)),tp="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,td=th&&window.location.href||"http://localhost";var ty={...c,isBrowser:!0,classes:{URLSearchParams:tc,FormData:tu,Blob:tl},protocols:["http","https","file","blob","url","data"]},tg=function(t){if(Q.isFormData(t)&&Q.isFunction(t.entries)){let e={};return Q.forEachEntry(t,(t,r)=>{!function t(e,r,n,i){let s=e[i++];if("__proto__"===s)return!0;let o=Number.isFinite(+s),a=i>=e.length;if(s=!s&&Q.isArray(n)?n.length:s,a)return Q.hasOwnProp(n,s)?n[s]=[n[s],r]:n[s]=r,!o;n[s]&&Q.isObject(n[s])||(n[s]=[]);let c=t(e,r,n[s],i);return c&&Q.isArray(n[s])&&(n[s]=function(t){let e,r;let n={},i=Object.keys(t),s=i.length;for(e=0;e<s;e++)n[r=i[e]]=t[r];return n}(n[s])),!o}(Q.matchAll(/\w+|\[(\w*)]/g,t).map(t=>"[]"===t[0]?"":t[1]||t[0]),r,e,0)}),e}return null};let tm={transitional:ta,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){let r;let n=e.getContentType()||"",i=n.indexOf("application/json")>-1,s=Q.isObject(t);s&&Q.isHTMLForm(t)&&(t=new FormData(t));let o=Q.isFormData(t);if(o)return i?JSON.stringify(tg(t)):t;if(Q.isArrayBuffer(t)||Q.isBuffer(t)||Q.isStream(t)||Q.isFile(t)||Q.isBlob(t)||Q.isReadableStream(t))return t;if(Q.isArrayBufferView(t))return t.buffer;if(Q.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1){var a,c;return(a=t,c=this.formSerializer,tt(a,new ty.classes.URLSearchParams,Object.assign({visitor:function(t,e,r,n){return ty.isNode&&Q.isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},c))).toString()}if((r=Q.isFileList(t))||n.indexOf("multipart/form-data")>-1){let e=this.env&&this.env.FormData;return tt(r?{"files[]":t}:t,e&&new e,this.formSerializer)}}return s||i?(e.setContentType("application/json",!1),function(t,e,r){if(Q.isString(t))try{return(0,JSON.parse)(t),Q.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){let e=this.transitional||tm.transitional,r=e&&e.forcedJSONParsing,n="json"===this.responseType;if(Q.isResponse(t)||Q.isReadableStream(t))return t;if(t&&Q.isString(t)&&(r&&!this.responseType||n)){let r=e&&e.silentJSONParsing;try{return JSON.parse(t)}catch(t){if(!r&&n){if("SyntaxError"===t.name)throw W.from(t,W.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ty.classes.FormData,Blob:ty.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],t=>{tm.headers[t]={}});let tb=Q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var tv=t=>{let e,r,n;let i={};return t&&t.split("\n").forEach(function(t){n=t.indexOf(":"),e=t.substring(0,n).trim().toLowerCase(),r=t.substring(n+1).trim(),!e||i[e]&&tb[e]||("set-cookie"===e?i[e]?i[e].push(r):i[e]=[r]:i[e]=i[e]?i[e]+", "+r:r)}),i};let tw=Symbol("internals");function tE(t){return t&&String(t).trim().toLowerCase()}function tx(t){return!1===t||null==t?t:Q.isArray(t)?t.map(tx):String(t)}let tO=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function tR(t,e,r,n,i){if(Q.isFunction(n))return n.call(this,e,r);if(i&&(e=r),Q.isString(e)){if(Q.isString(n))return -1!==e.indexOf(n);if(Q.isRegExp(n))return n.test(e)}}class tk{constructor(t){t&&this.set(t)}set(t,e,r){let n=this;function i(t,e,r){let i=tE(e);if(!i)throw Error("header name must be a non-empty string");let s=Q.findKey(n,i);s&&void 0!==n[s]&&!0!==r&&(void 0!==r||!1===n[s])||(n[s||e]=tx(t))}let s=(t,e)=>Q.forEach(t,(t,r)=>i(t,r,e));if(Q.isPlainObject(t)||t instanceof this.constructor)s(t,e);else if(Q.isString(t)&&(t=t.trim())&&!tO(t))s(tv(t),e);else if(Q.isHeaders(t))for(let[e,n]of t.entries())i(n,e,r);else null!=t&&i(e,t,r);return this}get(t,e){if(t=tE(t)){let r=Q.findKey(this,t);if(r){let t=this[r];if(!e)return t;if(!0===e)return function(t){let e;let r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;e=n.exec(t);)r[e[1]]=e[2];return r}(t);if(Q.isFunction(e))return e.call(this,t,r);if(Q.isRegExp(e))return e.exec(t);throw TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=tE(t)){let r=Q.findKey(this,t);return!!(r&&void 0!==this[r]&&(!e||tR(this,this[r],r,e)))}return!1}delete(t,e){let r=this,n=!1;function i(t){if(t=tE(t)){let i=Q.findKey(r,t);i&&(!e||tR(r,r[i],i,e))&&(delete r[i],n=!0)}}return Q.isArray(t)?t.forEach(i):i(t),n}clear(t){let e=Object.keys(this),r=e.length,n=!1;for(;r--;){let i=e[r];(!t||tR(this,this[i],i,t,!0))&&(delete this[i],n=!0)}return n}normalize(t){let e=this,r={};return Q.forEach(this,(n,i)=>{let s=Q.findKey(r,i);if(s){e[s]=tx(n),delete e[i];return}let o=t?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,r)=>e.toUpperCase()+r):String(i).trim();o!==i&&delete e[i],e[o]=tx(n),r[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let e=Object.create(null);return Q.forEach(this,(r,n)=>{null!=r&&!1!==r&&(e[n]=t&&Q.isArray(r)?r.join(", "):r)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){let r=new this(t);return e.forEach(t=>r.set(t)),r}static accessor(t){let e=this[tw]=this[tw]={accessors:{}},r=e.accessors,n=this.prototype;function i(t){let e=tE(t);r[e]||(!function(t,e){let r=Q.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(t,r,i){return this[n].call(this,e,t,r,i)},configurable:!0})})}(n,t),r[e]=!0)}return Q.isArray(t)?t.forEach(i):i(t),this}}function tS(t,e){let r=this||tm,n=e||r,i=tk.from(n.headers),s=n.data;return Q.forEach(t,function(t){s=t.call(r,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function tA(t){return!!(t&&t.__CANCEL__)}function tT(t,e,r){W.call(this,null==t?"canceled":t,W.ERR_CANCELED,e,r),this.name="CanceledError"}function tC(t,e,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new W("Request failed with status code "+r.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}tk.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Q.reduceDescriptors(tk.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[r]=t}}}),Q.freezeMethods(tk),Q.inherits(tT,W,{__CANCEL__:!0});var t_=function(t,e){let r;t=t||10;let n=Array(t),i=Array(t),s=0,o=0;return e=void 0!==e?e:1e3,function(a){let c=Date.now(),u=i[o];r||(r=c),n[s]=a,i[s]=c;let l=o,h=0;for(;l!==s;)h+=n[l++],l%=t;if((s=(s+1)%t)===o&&(o=(o+1)%t),c-r<e)return;let f=u&&c-u;return f?Math.round(1e3*h/f):void 0}},tB=function(t,e){let r=0,n=1e3/e,i=null;return function(){let e=Date.now();if(this===!0||e-r>n)return i&&(clearTimeout(i),i=null),r=e,t.apply(null,arguments);i||(i=setTimeout(()=>(i=null,r=Date.now(),t.apply(null,arguments)),n-(e-r)))}},tL=(t,e,r=3)=>{let n=0,i=t_(50,250);return tB(r=>{let s=r.loaded,o=r.lengthComputable?r.total:void 0,a=s-n,c=i(a);n=s;let u={loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:c||void 0,estimated:c&&o&&s<=o?(o-s)/c:void 0,event:r,lengthComputable:null!=o};u[e?"download":"upload"]=!0,t(u)},r)},tU=ty.hasStandardBrowserEnv?function(){let t;let e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(t){let n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=n(window.location.href),function(e){let r=Q.isString(e)?n(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0},tN=ty.hasStandardBrowserEnv?{write(t,e,r,n,i,s){let o=[t+"="+encodeURIComponent(e)];Q.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),Q.isString(n)&&o.push("path="+n),Q.isString(i)&&o.push("domain="+i),!0===s&&o.push("secure"),document.cookie=o.join("; ")},read(t){let e=document.cookie.match(RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function tP(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t:e}let tj=t=>t instanceof tk?{...t}:t;function tF(t,e){e=e||{};let r={};function n(t,e,r){return Q.isPlainObject(t)&&Q.isPlainObject(e)?Q.merge.call({caseless:r},t,e):Q.isPlainObject(e)?Q.merge({},e):Q.isArray(e)?e.slice():e}function i(t,e,r){return Q.isUndefined(e)?Q.isUndefined(t)?void 0:n(void 0,t,r):n(t,e,r)}function s(t,e){if(!Q.isUndefined(e))return n(void 0,e)}function o(t,e){return Q.isUndefined(e)?Q.isUndefined(t)?void 0:n(void 0,t):n(void 0,e)}function a(r,i,s){return s in e?n(r,i):s in t?n(void 0,r):void 0}let c={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(t,e)=>i(tj(t),tj(e),!0)};return Q.forEach(Object.keys(Object.assign({},t,e)),function(n){let s=c[n]||i,o=s(t[n],e[n],n);Q.isUndefined(o)&&s!==a||(r[n]=o)}),r}var tI=t=>{let e;let r=tF({},t),{data:n,withXSRFToken:i,xsrfHeaderName:s,xsrfCookieName:o,headers:a,auth:c}=r;if(r.headers=a=tk.from(a),r.url=ts(tP(r.baseURL,r.url),t.params,t.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),Q.isFormData(n)){if(ty.hasStandardBrowserEnv||ty.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(e=a.getContentType())){let[t,...r]=e?e.split(";").map(t=>t.trim()).filter(Boolean):[];a.setContentType([t||"multipart/form-data",...r].join("; "))}}if(ty.hasStandardBrowserEnv&&(i&&Q.isFunction(i)&&(i=i(r)),i||!1!==i&&tU(r.url))){let t=s&&o&&tN.read(o);t&&a.set(s,t)}return r};let tD="undefined"!=typeof XMLHttpRequest;var tq=tD&&function(t){return new Promise(function(e,r){let n;let i=tI(t),s=i.data,o=tk.from(i.headers).normalize(),{responseType:a}=i;function c(){i.cancelToken&&i.cancelToken.unsubscribe(n),i.signal&&i.signal.removeEventListener("abort",n)}let u=new XMLHttpRequest;function l(){if(!u)return;let n=tk.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),i=a&&"text"!==a&&"json"!==a?u.response:u.responseText,s={data:i,status:u.status,statusText:u.statusText,headers:n,config:t,request:u};tC(function(t){e(t),c()},function(t){r(t),c()},s),u=null}u.open(i.method.toUpperCase(),i.url,!0),u.timeout=i.timeout,"onloadend"in u?u.onloadend=l:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(l)},u.onabort=function(){u&&(r(new W("Request aborted",W.ECONNABORTED,i,u)),u=null)},u.onerror=function(){r(new W("Network Error",W.ERR_NETWORK,i,u)),u=null},u.ontimeout=function(){let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded",e=i.transitional||ta;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),r(new W(t,e.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,i,u)),u=null},void 0===s&&o.setContentType(null),"setRequestHeader"in u&&Q.forEach(o.toJSON(),function(t,e){u.setRequestHeader(e,t)}),Q.isUndefined(i.withCredentials)||(u.withCredentials=!!i.withCredentials),a&&"json"!==a&&(u.responseType=i.responseType),"function"==typeof i.onDownloadProgress&&u.addEventListener("progress",tL(i.onDownloadProgress,!0)),"function"==typeof i.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",tL(i.onUploadProgress)),(i.cancelToken||i.signal)&&(n=e=>{u&&(r(!e||e.type?new tT(null,t,u):e),u.abort(),u=null)},i.cancelToken&&i.cancelToken.subscribe(n),i.signal&&(i.signal.aborted?n():i.signal.addEventListener("abort",n)));let h=function(t){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(i.url);if(h&&-1===ty.protocols.indexOf(h)){r(new W("Unsupported protocol "+h+":",W.ERR_BAD_REQUEST,t));return}u.send(s||null)})},tM=(t,e)=>{let r,n=new AbortController,i=function(t){if(!r){r=!0,o();let e=t instanceof Error?t:this.reason;n.abort(e instanceof W?e:new tT(e instanceof Error?e.message:e))}},s=e&&setTimeout(()=>{i(new W(`timeout ${e} of ms exceeded`,W.ETIMEDOUT))},e),o=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(t=>{t&&(t.removeEventListener?t.removeEventListener("abort",i):t.unsubscribe(i))}),t=null)};t.forEach(t=>t&&t.addEventListener&&t.addEventListener("abort",i));let{signal:a}=n;return a.unsubscribe=o,[a,()=>{s&&clearTimeout(s),s=null}]};let tz=function*(t,e){let r,n=t.byteLength;if(!e||n<e){yield t;return}let i=0;for(;i<n;)r=i+e,yield t.slice(i,r),i=r},tV=async function*(t,e,r){for await(let n of t)yield*tz(ArrayBuffer.isView(n)?n:await r(String(n)),e)},tH=(t,e,r,n,i)=>{let s=tV(t,e,i),o=0;return new ReadableStream({type:"bytes",async pull(t){let{done:e,value:i}=await s.next();if(e){t.close(),n();return}let a=i.byteLength;r&&r(o+=a),t.enqueue(new Uint8Array(i))},cancel:t=>(n(t),s.return())},{highWaterMark:2})},tQ=(t,e)=>{let r=null!=t;return n=>setTimeout(()=>e({lengthComputable:r,total:t,loaded:n}))},tW="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,tK=tW&&"function"==typeof ReadableStream,tJ=tW&&("function"==typeof TextEncoder?(o=new TextEncoder,t=>o.encode(t)):async t=>new Uint8Array(await new Response(t).arrayBuffer())),t$=tK&&(()=>{let t=!1,e=new Request(ty.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})(),tG=tK&&!!(()=>{try{return Q.isReadableStream(new Response("").body)}catch(t){}})(),tX={stream:tG&&(t=>t.body)};tW&&(a=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(t=>{tX[t]||(tX[t]=Q.isFunction(a[t])?e=>e[t]():(e,r)=>{throw new W(`Response type '${t}' is not supported`,W.ERR_NOT_SUPPORT,r)})}));let tY=async t=>null==t?0:Q.isBlob(t)?t.size:Q.isSpecCompliantForm(t)?(await new Request(t).arrayBuffer()).byteLength:Q.isArrayBufferView(t)?t.byteLength:(Q.isURLSearchParams(t)&&(t+=""),Q.isString(t))?(await tJ(t)).byteLength:void 0,tZ=async(t,e)=>{let r=Q.toFiniteNumber(t.getContentLength());return null==r?tY(e):r};var t0=tW&&(async t=>{let e,r,n,{url:i,method:s,data:o,signal:a,cancelToken:c,timeout:u,onDownloadProgress:l,onUploadProgress:h,responseType:f,headers:p,withCredentials:d="same-origin",fetchOptions:y}=tI(t);f=f?(f+"").toLowerCase():"text";let[g,m]=a||c||u?tM([a,c],u):[],b=()=>{e||setTimeout(()=>{g&&g.unsubscribe()}),e=!0};try{if(h&&t$&&"get"!==s&&"head"!==s&&0!==(n=await tZ(p,o))){let t,e=new Request(i,{method:"POST",body:o,duplex:"half"});Q.isFormData(o)&&(t=e.headers.get("content-type"))&&p.setContentType(t),e.body&&(o=tH(e.body,65536,tQ(n,tL(h)),null,tJ))}Q.isString(d)||(d=d?"cors":"omit"),r=new Request(i,{...y,signal:g,method:s.toUpperCase(),headers:p.normalize().toJSON(),body:o,duplex:"half",withCredentials:d});let e=await fetch(r),a=tG&&("stream"===f||"response"===f);if(tG&&(l||a)){let t={};["status","statusText","headers"].forEach(r=>{t[r]=e[r]});let r=Q.toFiniteNumber(e.headers.get("content-length"));e=new Response(tH(e.body,65536,l&&tQ(r,tL(l,!0)),a&&b,tJ),t)}f=f||"text";let c=await tX[Q.findKey(tX,f)||"text"](e,t);return a||b(),m&&m(),await new Promise((n,i)=>{tC(n,i,{data:c,headers:tk.from(e.headers),status:e.status,statusText:e.statusText,config:t,request:r})})}catch(e){if(b(),e&&"TypeError"===e.name&&/fetch/i.test(e.message))throw Object.assign(new W("Network Error",W.ERR_NETWORK,t,r),{cause:e.cause||e});throw W.from(e,e&&e.code,t,r)}});let t1={http:null,xhr:tq,fetch:t0};Q.forEach(t1,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}});let t2=t=>`- ${t}`,t4=t=>Q.isFunction(t)||null===t||!1===t;var t6={getAdapter:t=>{let e,r;t=Q.isArray(t)?t:[t];let{length:n}=t,i={};for(let s=0;s<n;s++){let n;if(r=e=t[s],!t4(e)&&void 0===(r=t1[(n=String(e)).toLowerCase()]))throw new W(`Unknown adapter '${n}'`);if(r)break;i[n||"#"+s]=r}if(!r){let t=Object.entries(i).map(([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build"));throw new W("There is no suitable adapter to dispatch the request "+(n?t.length>1?"since :\n"+t.map(t2).join("\n"):" "+t2(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r},adapters:t1};function t3(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new tT(null,t)}function t8(t){t3(t),t.headers=tk.from(t.headers),t.data=tS.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);let e=t6.getAdapter(t.adapter||tm.adapter);return e(t).then(function(e){return t3(t),e.data=tS.call(t,t.transformResponse,e),e.headers=tk.from(e.headers),e},function(e){return!tA(e)&&(t3(t),e&&e.response&&(e.response.data=tS.call(t,t.transformResponse,e.response),e.response.headers=tk.from(e.response.headers))),Promise.reject(e)})}let t5="1.7.2",t7={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{t7[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});let t9={};t7.transitional=function(t,e,r){function n(t,e){return"[Axios v"+t5+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return(r,i,s)=>{if(!1===t)throw new W(n(i," has been removed"+(e?" in "+e:"")),W.ERR_DEPRECATED);return e&&!t9[i]&&(t9[i]=!0,console.warn(n(i," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,i,s)}};var et={assertOptions:function(t,e,r){if("object"!=typeof t)throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);let n=Object.keys(t),i=n.length;for(;i-- >0;){let s=n[i],o=e[s];if(o){let e=t[s],r=void 0===e||o(e,s,t);if(!0!==r)throw new W("option "+s+" must be "+r,W.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new W("Unknown option "+s,W.ERR_BAD_OPTION)}},validators:t7};let ee=et.validators;class er{constructor(t){this.defaults=t,this.interceptors={request:new to,response:new to}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=Error();let r=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?r&&!String(t.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+r):t.stack=r}catch(t){}}throw t}}_request(t,e){let r,n;"string"==typeof t?(e=e||{}).url=t:e=t||{},e=tF(this.defaults,e);let{transitional:i,paramsSerializer:s,headers:o}=e;void 0!==i&&et.assertOptions(i,{silentJSONParsing:ee.transitional(ee.boolean),forcedJSONParsing:ee.transitional(ee.boolean),clarifyTimeoutError:ee.transitional(ee.boolean)},!1),null!=s&&(Q.isFunction(s)?e.paramsSerializer={serialize:s}:et.assertOptions(s,{encode:ee.function,serialize:ee.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let a=o&&Q.merge(o.common,o[e.method]);o&&Q.forEach(["delete","get","head","post","put","patch","common"],t=>{delete o[t]}),e.headers=tk.concat(a,o);let c=[],u=!0;this.interceptors.request.forEach(function(t){("function"!=typeof t.runWhen||!1!==t.runWhen(e))&&(u=u&&t.synchronous,c.unshift(t.fulfilled,t.rejected))});let l=[];this.interceptors.response.forEach(function(t){l.push(t.fulfilled,t.rejected)});let h=0;if(!u){let t=[t8.bind(this),void 0];for(t.unshift.apply(t,c),t.push.apply(t,l),n=t.length,r=Promise.resolve(e);h<n;)r=r.then(t[h++],t[h++]);return r}n=c.length;let f=e;for(h=0;h<n;){let t=c[h++],e=c[h++];try{f=t(f)}catch(t){e.call(this,t);break}}try{r=t8.call(this,f)}catch(t){return Promise.reject(t)}for(h=0,n=l.length;h<n;)r=r.then(l[h++],l[h++]);return r}getUri(t){t=tF(this.defaults,t);let e=tP(t.baseURL,t.url);return ts(e,t.params,t.paramsSerializer)}}Q.forEach(["delete","get","head","options"],function(t){er.prototype[t]=function(e,r){return this.request(tF(r||{},{method:t,url:e,data:(r||{}).data}))}}),Q.forEach(["post","put","patch"],function(t){function e(e){return function(r,n,i){return this.request(tF(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}er.prototype[t]=e(),er.prototype[t+"Form"]=e(!0)});class en{constructor(t){let e;if("function"!=typeof t)throw TypeError("executor must be a function.");this.promise=new Promise(function(t){e=t});let r=this;this.promise.then(t=>{if(!r._listeners)return;let e=r._listeners.length;for(;e-- >0;)r._listeners[e](t);r._listeners=null}),this.promise.then=t=>{let e;let n=new Promise(t=>{r.subscribe(t),e=t}).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t(function(t,n,i){r.reason||(r.reason=new tT(t,n,i),e(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;let e=new en(function(e){t=e});return{token:e,cancel:t}}}let ei={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ei).forEach(([t,e])=>{ei[e]=t});let es=function t(e){let r=new er(e),n=u(er.prototype.request,r);return Q.extend(n,er.prototype,r,{allOwnKeys:!0}),Q.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return t(tF(e,r))},n}(tm);es.Axios=er,es.CanceledError=tT,es.CancelToken=en,es.isCancel=tA,es.VERSION=t5,es.toFormData=tt,es.AxiosError=W,es.Cancel=es.CanceledError,es.all=function(t){return Promise.all(t)},es.spread=function(t){return function(e){return t.apply(null,e)}},es.isAxiosError=function(t){return Q.isObject(t)&&!0===t.isAxiosError},es.mergeConfig=tF,es.AxiosHeaders=tk,es.formToJSON=t=>tg(Q.isHTMLForm(t)?new FormData(t):t),es.getAdapter=t6.getAdapter,es.HttpStatusCode=ei,es.default=es;var eo=es},57042:function(t,e,r){"use strict";function n(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=function t(e){var r,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e){if(Array.isArray(e)){var s=e.length;for(r=0;r<s;r++)e[r]&&(n=t(e[r]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n)}return i}(t))&&(n&&(n+=" "),n+=e);return n}r.d(e,{W:function(){return n}}),e.Z=n},22635:function(t,e,r){"use strict";r(57437);var n=r(2265);class i extends Error{constructor(t,e){t instanceof Error?super(void 0,{cause:{err:t,...t.cause,...e}}):"string"==typeof t?(e instanceof Error&&(e={err:e,...e.cause}),super(t,e)):super(void 0,t),this.name=this.constructor.name,this.type=this.constructor.type??"AuthError",this.kind=this.constructor.kind??"error",Error.captureStackTrace?.(this,this.constructor);let r=`https://errors.authjs.dev#${this.type.toLowerCase()}`;this.message+=`${this.message?". ":""}Read more at ${r}`}}class s extends i{}s.kind="signIn";class o extends i{}o.type="AdapterError";class a extends i{}a.type="AccessDenied";class c extends i{}c.type="CallbackRouteError";class u extends i{}u.type="ErrorPageLoop";class l extends i{}l.type="EventError";class h extends i{}h.type="InvalidCallbackUrl";class f extends Error{constructor(){super(...arguments),this.code="credentials"}}f.type="CredentialsSignin";class p extends i{}p.type="InvalidEndpoints";class d extends i{}d.type="InvalidCheck";class y extends i{}y.type="JWTSessionError";class g extends i{}g.type="MissingAdapter";class m extends i{}m.type="MissingAdapterMethods";class b extends i{}b.type="MissingAuthorize";class v extends i{}v.type="MissingSecret";class w extends s{}w.type="OAuthAccountNotLinked";class E extends s{}E.type="OAuthCallbackError";class x extends i{}x.type="OAuthProfileParseError";class O extends i{}O.type="SessionTokenError";class R extends s{}R.type="OAuthSignInError";class k extends s{}k.type="EmailSignInError";class S extends i{}S.type="SignOutError";class A extends i{}A.type="UnknownAction";class T extends i{}T.type="UnsupportedStrategy";class C extends i{}C.type="InvalidProvider";class _ extends i{}_.type="UntrustedHost";class B extends i{}B.type="Verification";class L extends s{}L.type="MissingCSRF";class U extends i{}U.type="DuplicateConditionalUI";class N extends i{}N.type="MissingWebAuthnAutocomplete";class P extends i{}P.type="WebAuthnVerificationError";class j extends s{}j.type="AccountNotLinked";class F extends i{}function I(t){let e=new URL("http://localhost:3000/api/auth");t&&!t.startsWith("http")&&(t=`https://${t}`);let r=new URL(t||e),n=("/"===r.pathname?e.pathname:r.pathname).replace(/\/$/,""),i=`${r.origin}${n}`;return{origin:r.origin,host:r.host,path:n,base:i,toString:()=>i}}F.type="ExperimentalFeatureNotEnabled";var D=r(62601);I(D.env.NEXTAUTH_URL??D.env.VERCEL_URL).origin,I(D.env.NEXTAUTH_URL).path,I(D.env.NEXTAUTH_URL_INTERNAL??D.env.NEXTAUTH_URL??D.env.VERCEL_URL).origin,I(D.env.NEXTAUTH_URL_INTERNAL??D.env.NEXTAUTH_URL).path,n.createContext?.(void 0)},65732:function(t,e,r){"use strict";let n,i;r.d(e,{io:function(){return tO}});var s,o,a={};r.r(a),r.d(a,{Decoder:function(){return ty},Encoder:function(){return tp},PacketType:function(){return o},protocol:function(){return tf}});let c=Object.create(null);c.open="0",c.close="1",c.ping="2",c.pong="3",c.message="4",c.upgrade="5",c.noop="6";let u=Object.create(null);Object.keys(c).forEach(t=>{u[c[t]]=t});let l={type:"error",data:"parser error"},h="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),f="function"==typeof ArrayBuffer,p=t=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,d=({type:t,data:e},r,n)=>h&&e instanceof Blob?r?n(e):y(e,n):f&&(e instanceof ArrayBuffer||p(e))?r?n(e):y(new Blob([e]),n):n(c[t]+(e||"")),y=(t,e)=>{let r=new FileReader;return r.onload=function(){let t=r.result.split(",")[1];e("b"+(t||""))},r.readAsDataURL(t)};function g(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let t=0;t<m.length;t++)b[m.charCodeAt(t)]=t;let v=t=>{let e=.75*t.length,r=t.length,n,i=0,s,o,a,c;"="===t[t.length-1]&&(e--,"="===t[t.length-2]&&e--);let u=new ArrayBuffer(e),l=new Uint8Array(u);for(n=0;n<r;n+=4)s=b[t.charCodeAt(n)],o=b[t.charCodeAt(n+1)],a=b[t.charCodeAt(n+2)],c=b[t.charCodeAt(n+3)],l[i++]=s<<2|o>>4,l[i++]=(15&o)<<4|a>>2,l[i++]=(3&a)<<6|63&c;return u},w="function"==typeof ArrayBuffer,E=(t,e)=>{if("string"!=typeof t)return{type:"message",data:O(t,e)};let r=t.charAt(0);if("b"===r)return{type:"message",data:x(t.substring(1),e)};let n=u[r];return n?t.length>1?{type:u[r],data:t.substring(1)}:{type:u[r]}:l},x=(t,e)=>{if(!w)return{base64:!0,data:t};{let r=v(t);return O(r,e)}},O=(t,e)=>"blob"===e?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer,R=(t,e)=>{let r=t.length,n=Array(r),i=0;t.forEach((t,s)=>{d(t,!1,t=>{n[s]=t,++i===r&&e(n.join("\x1e"))})})},k=(t,e)=>{let r=t.split("\x1e"),n=[];for(let t=0;t<r.length;t++){let i=E(r[t],e);if(n.push(i),"error"===i.type)break}return n};function S(t){return t.reduce((t,e)=>t+e.length,0)}function A(t,e){if(t[0].length===e)return t.shift();let r=new Uint8Array(e),n=0;for(let i=0;i<e;i++)r[i]=t[0][n++],n===t[0].length&&(t.shift(),n=0);return t.length&&n<t[0].length&&(t[0]=t[0].slice(n)),r}function T(t){if(t)return function(t){for(var e in T.prototype)t[e]=T.prototype[e];return t}(t)}T.prototype.on=T.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},T.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},T.prototype.off=T.prototype.removeListener=T.prototype.removeAllListeners=T.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i<n.length;i++)if((r=n[i])===e||r.fn===e){n.splice(i,1);break}return 0===n.length&&delete this._callbacks["$"+t],this},T.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=Array(arguments.length-1),r=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,i=r.length;n<i;++n)r[n].apply(this,e)}return this},T.prototype.emitReserved=T.prototype.emit,T.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},T.prototype.hasListeners=function(t){return!!this.listeners(t).length};let C="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function _(t,...e){return e.reduce((e,r)=>(t.hasOwnProperty(r)&&(e[r]=t[r]),e),{})}let B=C.setTimeout,L=C.clearTimeout;function U(t,e){e.useNativeTimers?(t.setTimeoutFn=B.bind(C),t.clearTimeoutFn=L.bind(C)):(t.setTimeoutFn=C.setTimeout.bind(C),t.clearTimeoutFn=C.clearTimeout.bind(C))}class N extends Error{constructor(t,e,r){super(t),this.description=e,this.context=r,this.type="TransportError"}}class P extends T{constructor(t){super(),this.writable=!1,U(this,t),this.opts=t,this.query=t.query,this.socket=t.socket}onError(t,e,r){return super.emitReserved("error",new N(t,e,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(t){"open"===this.readyState&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){let e=E(t,this.socket.binaryType);this.onPacket(e)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,e={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(e)}_hostname(){let t=this.opts.hostname;return -1===t.indexOf(":")?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(t){let e=function(t){let e="";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+="&"),e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e}(t);return e.length?"?"+e:""}}let j="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),F={},I=0,D=0,q;function M(t){let e="";do e=j[t%64]+e,t=Math.floor(t/64);while(t>0);return e}function z(){let t=M(+new Date);return t!==q?(I=0,q=t):t+"."+M(I++)}for(;D<64;D++)F[j[D]]=D;let V=!1;try{V="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){}let H=V;function Q(t){let e=t.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!e||H))return new XMLHttpRequest}catch(t){}if(!e)try{return new C[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(t){}}function W(){}let K=function(){let t=new Q({xdomain:!1});return null!=t.responseType}();class J extends P{constructor(t){if(super(t),this.polling=!1,"undefined"!=typeof location){let e="https:"===location.protocol,r=location.port;r||(r=e?"443":"80"),this.xd="undefined"!=typeof location&&t.hostname!==location.hostname||r!==t.port}let e=t&&t.forceBase64;this.supportsBinary=K&&!e,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";let e=()=>{this.readyState="paused",t()};if(this.polling||!this.writable){let t=0;this.polling&&(t++,this.once("pollComplete",function(){--t||e()})),this.writable||(t++,this.once("drain",function(){--t||e()}))}else e()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){k(t,this.socket.binaryType).forEach(t=>{if("opening"===this.readyState&&"open"===t.type&&this.onOpen(),"close"===t.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(t)}),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){let t=()=>{this.write([{type:"close"}])};"open"===this.readyState?t():this.once("open",t)}write(t){this.writable=!1,R(t,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.opts.secure?"https":"http",e=this.query||{};return!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=z()),this.supportsBinary||e.sid||(e.b64=1),this.createUri(t,e)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Request(this.uri(),t)}doWrite(t,e){let r=this.request({method:"POST",data:t});r.on("success",e),r.on("error",(t,e)=>{this.onError("xhr post error",t,e)})}doPoll(){let t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(t,e)=>{this.onError("xhr poll error",t,e)}),this.pollXhr=t}}class Request extends T{constructor(t,e){super(),U(this,e),this.opts=e,this.method=e.method||"GET",this.uri=t,this.data=void 0!==e.data?e.data:null,this.create()}create(){var t;let e=_(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd;let r=this.xhr=new Q(e);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders)for(let t in r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(t)&&r.setRequestHeader(t,this.opts.extraHeaders[t])}catch(t){}if("POST"===this.method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{r.setRequestHeader("Accept","*/*")}catch(t){}null===(t=this.opts.cookieJar)||void 0===t||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var t;3===r.readyState&&(null===(t=this.opts.cookieJar)||void 0===t||t.parseCookies(r)),4===r.readyState&&(200===r.status||1223===r.status?this.onLoad():this.setTimeoutFn(()=>{this.onError("number"==typeof r.status?r.status:0)},0))},r.send(this.data)}catch(t){this.setTimeoutFn(()=>{this.onError(t)},0);return}"undefined"!=typeof document&&(this.index=Request.requestsCount++,Request.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=W,t)try{this.xhr.abort()}catch(t){}"undefined"!=typeof document&&delete Request.requests[this.index],this.xhr=null}}onLoad(){let t=this.xhr.responseText;null!==t&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(Request.requestsCount=0,Request.requests={},"undefined"!=typeof document){if("function"==typeof attachEvent)attachEvent("onunload",$);else if("function"==typeof addEventListener){let t="onpagehide"in C?"pagehide":"unload";addEventListener(t,$,!1)}}function $(){for(let t in Request.requests)Request.requests.hasOwnProperty(t)&&Request.requests[t].abort()}let G=(()=>{let t="function"==typeof Promise&&"function"==typeof Promise.resolve;return t?t=>Promise.resolve().then(t):(t,e)=>e(t,0)})(),WebSocket=C.WebSocket||C.MozWebSocket;r(67133).lW;let X="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class Y extends P{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;let t=this.uri(),e=this.opts.protocols,r=X?{}:_(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=X?new WebSocket(t,e,r):e?new WebSocket(t,e):new WebSocket(t)}catch(t){return this.emitReserved("error",t)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let e=0;e<t.length;e++){let r=t[e],n=e===t.length-1;d(r,this.supportsBinary,t=>{try{this.ws.send(t)}catch(t){}n&&G(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){let t=this.opts.secure?"wss":"ws",e=this.query||{};return this.opts.timestampRequests&&(e[this.opts.timestampParam]=z()),this.supportsBinary||(e.b64=1),this.createUri(t,e)}check(){return!!WebSocket}}class Z extends P{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{let e=function(t,e){i||(i=new TextDecoder);let r=[],n=0,s=-1,o=!1;return new TransformStream({transform(a,c){for(r.push(a);;){if(0===n){if(1>S(r))break;let t=A(r,1);o=(128&t[0])==128,n=(s=127&t[0])<126?3:126===s?1:2}else if(1===n){if(2>S(r))break;let t=A(r,2);s=new DataView(t.buffer,t.byteOffset,t.length).getUint16(0),n=3}else if(2===n){if(8>S(r))break;let t=A(r,8),e=new DataView(t.buffer,t.byteOffset,t.length),i=e.getUint32(0);if(i>2097151){c.enqueue(l);break}s=4294967296*i+e.getUint32(4),n=3}else{if(S(r)<s)break;let t=A(r,s);c.enqueue(E(o?t:i.decode(t),e)),n=0}if(0===s||s>t){c.enqueue(l);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(e).getReader(),s=new TransformStream({transform(t,e){var r;r=r=>{let n;let i=r.length;if(i<126)n=new Uint8Array(1),new DataView(n.buffer).setUint8(0,i);else if(i<65536){n=new Uint8Array(3);let t=new DataView(n.buffer);t.setUint8(0,126),t.setUint16(1,i)}else{n=new Uint8Array(9);let t=new DataView(n.buffer);t.setUint8(0,127),t.setBigUint64(1,BigInt(i))}t.data&&"string"!=typeof t.data&&(n[0]|=128),e.enqueue(n),e.enqueue(r)},h&&t.data instanceof Blob?t.data.arrayBuffer().then(g).then(r):f&&(t.data instanceof ArrayBuffer||p(t.data))?r(g(t.data)):d(t,!1,t=>{n||(n=new TextEncoder),r(n.encode(t))})}});s.readable.pipeTo(t.writable),this.writer=s.writable.getWriter();let o=()=>{r.read().then(({done:t,value:e})=>{t||(this.onPacket(e),o())}).catch(t=>{})};o();let a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this.writer.write(a).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let e=0;e<t.length;e++){let r=t[e],n=e===t.length-1;this.writer.write(r).then(()=>{n&&G(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;null===(t=this.transport)||void 0===t||t.close()}}let tt={websocket:Y,webtransport:Z,polling:J},te=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,tr=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function tn(t){if(t.length>2e3)throw"URI too long";let e=t,r=t.indexOf("["),n=t.indexOf("]");-1!=r&&-1!=n&&(t=t.substring(0,r)+t.substring(r,n).replace(/:/g,";")+t.substring(n,t.length));let i=te.exec(t||""),s={},o=14;for(;o--;)s[tr[o]]=i[o]||"";return -1!=r&&-1!=n&&(s.source=e,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=function(t,e){let r=e.replace(/\/{2,9}/g,"/").split("/");return("/"==e.slice(0,1)||0===e.length)&&r.splice(0,1),"/"==e.slice(-1)&&r.splice(r.length-1,1),r}(0,s.path),s.queryKey=function(t,e){let r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(t,e,n){e&&(r[e]=n)}),r}(0,s.query),s}class ti extends T{constructor(t,e={}){super(),this.binaryType="arraybuffer",this.writeBuffer=[],t&&"object"==typeof t&&(e=t,t=null),t?(t=tn(t),e.hostname=t.host,e.secure="https"===t.protocol||"wss"===t.protocol,e.port=t.port,t.query&&(e.query=t.query)):e.host&&(e.hostname=tn(e.host).host),U(this,e),this.secure=null!=e.secure?e.secure:"undefined"!=typeof location&&"https:"===location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.hostname=e.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=e.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=e.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},e),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(t){let e={},r=t.split("&");for(let t=0,n=r.length;t<n;t++){let n=r[t].split("=");e[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return e}(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){let e=Object.assign({},this.opts.query);e.EIO=4,e.transport=t,this.id&&(e.sid=this.id);let r=Object.assign({},this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new tt[t](r)}open(){let t;if(this.opts.rememberUpgrade&&ti.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else if(0===this.transports.length){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch(t){this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",t=>this.onClose("transport close",t))}probe(t){let e=this.createTransport(t),r=!1;ti.priorWebsocketSuccess=!1;let n=()=>{r||(e.send([{type:"ping",data:"probe"}]),e.once("packet",t=>{if(!r){if("pong"===t.type&&"probe"===t.data)this.upgrading=!0,this.emitReserved("upgrading",e),e&&(ti.priorWebsocketSuccess="websocket"===e.name,this.transport.pause(()=>{r||"closed"===this.readyState||(u(),this.setTransport(e),e.send([{type:"upgrade"}]),this.emitReserved("upgrade",e),e=null,this.upgrading=!1,this.flush())}));else{let t=Error("probe error");t.transport=e.name,this.emitReserved("upgradeError",t)}}}))};function i(){r||(r=!0,u(),e.close(),e=null)}let s=t=>{let r=Error("probe error: "+t);r.transport=e.name,i(),this.emitReserved("upgradeError",r)};function o(){s("transport closed")}function a(){s("socket closed")}function c(t){e&&t.name!==e.name&&i()}let u=()=>{e.removeListener("open",n),e.removeListener("error",s),e.removeListener("close",o),this.off("close",a),this.off("upgrading",c)};e.once("open",n),e.once("error",s),e.once("close",o),this.once("close",a),this.once("upgrading",c),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==t?this.setTimeoutFn(()=>{r||e.open()},200):e.open()}onOpen(){if(this.readyState="open",ti.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let t=0,e=this.upgrades.length;for(;t<e;t++)this.probe(this.upgrades[t])}}onPacket(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),this.resetPingTimeout(),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":let e=Error("server error");e.code=t.data,this.onError(e);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data)}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.maxPayload=t.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){let t=this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1;if(!t)return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){let r=this.writeBuffer[t].data;if(r&&(e+="string"==typeof r?function(t){let e=0,r=0;for(let n=0,i=t.length;n<i;n++)(e=t.charCodeAt(n))<128?r+=1:e<2048?r+=2:e<55296||e>=57344?r+=3:(n++,r+=4);return r}(r):Math.ceil(1.33*(r.byteLength||r.size))),t>0&&e>this.maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}write(t,e,r){return this.sendPacket("message",t,e,r),this}send(t,e,r){return this.sendPacket("message",t,e,r),this}sendPacket(t,e,r,n){if("function"==typeof e&&(n=e,e=void 0),"function"==typeof r&&(n=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;let i={type:t,data:e,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),n&&this.once("flush",n),this.flush()}close(){let t=()=>{this.onClose("forced close"),this.transport.close()},e=()=>{this.off("upgrade",e),this.off("upgradeError",e),t()},r=()=>{this.once("upgrade",e),this.once("upgradeError",e)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){ti.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,e){("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,e),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){let e=[],r=0,n=t.length;for(;r<n;r++)~this.transports.indexOf(t[r])&&e.push(t[r]);return e}}ti.protocol=4,ti.protocol;let ts="function"==typeof ArrayBuffer,to=t=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,ta=Object.prototype.toString,tc="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===ta.call(Blob),tu="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===ta.call(File);function tl(t){return ts&&(t instanceof ArrayBuffer||to(t))||tc&&t instanceof Blob||tu&&t instanceof File}let th=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],tf=5;(s=o||(o={}))[s.CONNECT=0]="CONNECT",s[s.DISCONNECT=1]="DISCONNECT",s[s.EVENT=2]="EVENT",s[s.ACK=3]="ACK",s[s.CONNECT_ERROR=4]="CONNECT_ERROR",s[s.BINARY_EVENT=5]="BINARY_EVENT",s[s.BINARY_ACK=6]="BINARY_ACK";class tp{constructor(t){this.replacer=t}encode(t){return(t.type===o.EVENT||t.type===o.ACK)&&function t(e,r){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(t(e[r]))return!0;return!1}if(tl(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1==arguments.length)return t(e.toJSON(),!0);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return!0;return!1}(t)?this.encodeAsBinary({type:t.type===o.EVENT?o.BINARY_EVENT:o.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let e=""+t.type;return(t.type===o.BINARY_EVENT||t.type===o.BINARY_ACK)&&(e+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(e+=t.nsp+","),null!=t.id&&(e+=t.id),null!=t.data&&(e+=JSON.stringify(t.data,this.replacer)),e}encodeAsBinary(t){let e=function(t){let e=[],r=t.data;return t.data=function t(e,r){if(!e)return e;if(tl(e)){let t={_placeholder:!0,num:r.length};return r.push(e),t}if(Array.isArray(e)){let n=Array(e.length);for(let i=0;i<e.length;i++)n[i]=t(e[i],r);return n}if("object"==typeof e&&!(e instanceof Date)){let n={};for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=t(e[i],r));return n}return e}(r,e),t.attachments=e.length,{packet:t,buffers:e}}(t),r=this.encodeAsString(e.packet),n=e.buffers;return n.unshift(r),n}}function td(t){return"[object Object]"===Object.prototype.toString.call(t)}class ty extends T{constructor(t){super(),this.reviver=t}add(t){let e;if("string"==typeof t){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");e=this.decodeString(t);let r=e.type===o.BINARY_EVENT;r||e.type===o.BINARY_ACK?(e.type=r?o.EVENT:o.ACK,this.reconstructor=new tg(e),0===e.attachments&&super.emitReserved("decoded",e)):super.emitReserved("decoded",e)}else if(tl(t)||t.base64){if(this.reconstructor)(e=this.reconstructor.takeBinaryData(t))&&(this.reconstructor=null,super.emitReserved("decoded",e));else throw Error("got binary data when not reconstructing a packet")}else throw Error("Unknown type: "+t)}decodeString(t){let e=0,r={type:Number(t.charAt(0))};if(void 0===o[r.type])throw Error("unknown packet type "+r.type);if(r.type===o.BINARY_EVENT||r.type===o.BINARY_ACK){let n=e+1;for(;"-"!==t.charAt(++e)&&e!=t.length;);let i=t.substring(n,e);if(i!=Number(i)||"-"!==t.charAt(e))throw Error("Illegal attachments");r.attachments=Number(i)}if("/"===t.charAt(e+1)){let n=e+1;for(;++e;){let r=t.charAt(e);if(","===r||e===t.length)break}r.nsp=t.substring(n,e)}else r.nsp="/";let n=t.charAt(e+1);if(""!==n&&Number(n)==n){let n=e+1;for(;++e;){let r=t.charAt(e);if(null==r||Number(r)!=r){--e;break}if(e===t.length)break}r.id=Number(t.substring(n,e+1))}if(t.charAt(++e)){let n=this.tryParse(t.substr(e));if(ty.isPayloadValid(r.type,n))r.data=n;else throw Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch(t){return!1}}static isPayloadValid(t,e){switch(t){case o.CONNECT:return td(e);case o.DISCONNECT:return void 0===e;case o.CONNECT_ERROR:return"string"==typeof e||td(e);case o.EVENT:case o.BINARY_EVENT:return Array.isArray(e)&&("number"==typeof e[0]||"string"==typeof e[0]&&-1===th.indexOf(e[0]));case o.ACK:case o.BINARY_ACK:return Array.isArray(e)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class tg{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){var e,r;let t=(e=this.reconPack,r=this.buffers,e.data=function t(e,r){if(!e)return e;if(e&&!0===e._placeholder){let t="number"==typeof e.num&&e.num>=0&&e.num<r.length;if(t)return r[e.num];throw Error("illegal attachments")}if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=t(e[n],r);else if("object"==typeof e)for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=t(e[n],r));return e}(e.data,r),delete e.attachments,e);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function tm(t,e,r){return t.on(e,r),function(){t.off(e,r)}}let tb=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class tv extends T{constructor(t,e,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=e,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let t=this.io;this.subs=[tm(t,"open",this.onopen.bind(this)),tm(t,"packet",this.onpacket.bind(this)),tm(t,"error",this.onerror.bind(this)),tm(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...e){if(tb.hasOwnProperty(t))throw Error('"'+t.toString()+'" is a reserved event name');if(e.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(e),this;let r={type:o.EVENT,data:e};if(r.options={},r.options.compress=!1!==this.flags.compress,"function"==typeof e[e.length-1]){let t=this.ids++,n=e.pop();this._registerAckCallback(t,n),r.id=t}let n=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable,i=this.flags.volatile&&(!n||!this.connected);return i||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(t,e){var r;let n=null!==(r=this.flags.timeout)&&void 0!==r?r:this._opts.ackTimeout;if(void 0===n){this.acks[t]=e;return}let i=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let e=0;e<this.sendBuffer.length;e++)this.sendBuffer[e].id===t&&this.sendBuffer.splice(e,1);e.call(this,Error("operation has timed out"))},n),s=(...t)=>{this.io.clearTimeoutFn(i),e.apply(this,t)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...e){return new Promise((r,n)=>{let i=(t,e)=>t?n(t):r(e);i.withError=!0,e.push(i),this.emit(t,...e)})}_addToQueue(t){let e;"function"==typeof t[t.length-1]&&(e=t.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((t,...n)=>{if(r!==this._queue[0])return;let i=null!==t;return i?r.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(t)):(this._queue.shift(),e&&e(null,...n)),r.pending=!1,this._drainQueue()}),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||0===this._queue.length)return;let e=this._queue[0];(!e.pending||t)&&(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){"function"==typeof this.auth?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:o.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,e),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{let e=this.sendBuffer.some(e=>String(e.id)===t);if(!e){let e=this.acks[t];delete this.acks[t],e.withError&&e.call(this,Error("socket has been disconnected"))}})}onpacket(t){let e=t.nsp===this.nsp;if(e)switch(t.type){case o.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case o.EVENT:case o.BINARY_EVENT:this.onevent(t);break;case o.ACK:case o.BINARY_ACK:this.onack(t);break;case o.DISCONNECT:this.ondisconnect();break;case o.CONNECT_ERROR:this.destroy();let r=Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r)}}onevent(t){let e=t.data||[];null!=t.id&&e.push(this.ack(t.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){let e=this._anyListeners.slice();for(let r of e)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&"string"==typeof t[t.length-1]&&(this._lastOffset=t[t.length-1])}ack(t){let e=this,r=!1;return function(...n){r||(r=!0,e.packet({type:o.ACK,id:t,data:n}))}}onack(t){let e=this.acks[t.id];"function"==typeof e&&(delete this.acks[t.id],e.withError&&t.data.unshift(null),e.apply(this,t.data))}onconnect(t,e){this.id=t,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:o.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){let e=this._anyListeners;for(let r=0;r<e.length;r++)if(t===e[r]){e.splice(r,1);break}}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){let e=this._anyOutgoingListeners;for(let r=0;r<e.length;r++)if(t===e[r]){e.splice(r,1);break}}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let e=this._anyOutgoingListeners.slice();for(let r of e)r.apply(this,t.data)}}}function tw(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}tw.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),r=Math.floor(e*this.jitter*t);t=(1&Math.floor(10*e))==0?t-r:t+r}return 0|Math.min(t,this.max)},tw.prototype.reset=function(){this.attempts=0},tw.prototype.setMin=function(t){this.ms=t},tw.prototype.setMax=function(t){this.max=t},tw.prototype.setJitter=function(t){this.jitter=t};class tE extends T{constructor(t,e){var r;super(),this.nsps={},this.subs=[],t&&"object"==typeof t&&(e=t,t=void 0),(e=e||{}).path=e.path||"/socket.io",this.opts=e,U(this,e),this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(r=e.randomizationFactor)&&void 0!==r?r:.5),this.backoff=new tw({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this._readyState="closed",this.uri=t;let n=e.parser||a;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=!1!==e.autoConnect,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return void 0===t?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var e;return void 0===t?this._reconnectionDelay:(this._reconnectionDelay=t,null===(e=this.backoff)||void 0===e||e.setMin(t),this)}randomizationFactor(t){var e;return void 0===t?this._randomizationFactor:(this._randomizationFactor=t,null===(e=this.backoff)||void 0===e||e.setJitter(t),this)}reconnectionDelayMax(t){var e;return void 0===t?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,null===(e=this.backoff)||void 0===e||e.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new ti(this.uri,this.opts);let e=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let n=tm(e,"open",function(){r.onopen(),t&&t()}),i=e=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",e),t?t(e):this.maybeReconnectOnOpen()},s=tm(e,"error",i);if(!1!==this._timeout){let t=this._timeout,r=this.setTimeoutFn(()=>{n(),i(Error("timeout")),e.close()},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}return this.subs.push(n),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let t=this.engine;this.subs.push(tm(t,"ping",this.onping.bind(this)),tm(t,"data",this.ondata.bind(this)),tm(t,"error",this.onerror.bind(this)),tm(t,"close",this.onclose.bind(this)),tm(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(t){this.onclose("parse error",t)}}ondecoded(t){G(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,e){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new tv(this,t,e),this.nsps[t]=r),r}_destroy(t){let e=Object.keys(this.nsps);for(let t of e){let e=this.nsps[t];if(e.active)return}this._close()}_packet(t){let e=this.encoder.encode(t);for(let r=0;r<e.length;r++)this.engine.write(e[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,e){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let e=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{!t.skipReconnect&&(this.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open(e=>{e?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",e)):t.onreconnect()}))},e);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}let tx={};function tO(t,e){let r;"object"==typeof t&&(e=t,t=void 0),e=e||{};let n=function(t,e="",r){let n=t;r=r||"undefined"!=typeof location&&location,null==t&&(t=r.protocol+"//"+r.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?r.protocol+t:r.host+t),/^(https?|wss?):\/\//.test(t)||(t=void 0!==r?r.protocol+"//"+t:"https://"+t),n=tn(t)),!n.port&&(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let i=-1!==n.host.indexOf(":"),s=i?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+s+":"+n.port+e,n.href=n.protocol+"://"+s+(r&&r.port===n.port?"":":"+n.port),n}(t,e.path||"/socket.io"),i=n.source,s=n.id,o=n.path,a=tx[s]&&o in tx[s].nsps,c=e.forceNew||e["force new connection"]||!1===e.multiplex||a;return c?r=new tE(i,e):(tx[s]||(tx[s]=new tE(i,e)),r=tx[s]),n.query&&!e.query&&(e.query=n.queryKey),r.socket(n.path,e)}Object.assign(tO,{Manager:tE,Socket:tv,io:tO,connect:tO})},74769:function(t,e,r){"use strict";r.d(e,{m6:function(){return j}});let n=/^\[(.+)\]$/;function i(t,e){let r=t;return e.split("-").forEach(t=>{r.nextPart.has(t)||r.nextPart.set(t,{nextPart:new Map,validators:[]}),r=r.nextPart.get(t)}),r}let s=/\s+/;function o(){let t,e,r=0,n="";for(;r<arguments.length;)(t=arguments[r++])&&(e=function t(e){let r;if("string"==typeof e)return e;let n="";for(let i=0;i<e.length;i++)e[i]&&(r=t(e[i]))&&(n&&(n+=" "),n+=r);return n}(t))&&(n&&(n+=" "),n+=e);return n}function a(t){let e=e=>e[t]||[];return e.isThemeGetter=!0,e}let c=/^\[(?:([a-z-]+):)?(.+)\]$/i,u=/^\d+\/\d+$/,l=new Set(["px","full","screen"]),h=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,f=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,p=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,d=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,y=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function g(t){return b(t)||l.has(t)||u.test(t)}function m(t){return B(t,"length",L)}function b(t){return!!t&&!Number.isNaN(Number(t))}function v(t){return B(t,"number",b)}function w(t){return!!t&&Number.isInteger(Number(t))}function E(t){return t.endsWith("%")&&b(t.slice(0,-1))}function x(t){return c.test(t)}function O(t){return h.test(t)}let R=new Set(["length","size","percentage"]);function k(t){return B(t,R,U)}function S(t){return B(t,"position",U)}let A=new Set(["image","url"]);function T(t){return B(t,A,P)}function C(t){return B(t,"",N)}function _(){return!0}function B(t,e,r){let n=c.exec(t);return!!n&&(n[1]?"string"==typeof e?n[1]===e:e.has(n[1]):r(n[2]))}function L(t){return f.test(t)&&!p.test(t)}function U(){return!1}function N(t){return d.test(t)}function P(t){return y.test(t)}let j=function(t){let e,r,a;let c=function(s){let o=[].reduce((t,e)=>e(t),t());return r=(e={cache:function(t){if(t<1)return{get:()=>void 0,set:()=>{}};let e=0,r=new Map,n=new Map;function i(i,s){r.set(i,s),++e>t&&(e=0,n=r,r=new Map)}return{get(t){let e=r.get(t);return void 0!==e?e:void 0!==(e=n.get(t))?(i(t,e),e):void 0},set(t,e){r.has(t)?r.set(t,e):i(t,e)}}}(o.cacheSize),splitModifiers:function(t){let e=t.separator,r=1===e.length,n=e[0],i=e.length;return function(t){let s;let o=[],a=0,c=0;for(let u=0;u<t.length;u++){let l=t[u];if(0===a){if(l===n&&(r||t.slice(u,u+i)===e)){o.push(t.slice(c,u)),c=u+i;continue}if("/"===l){s=u;continue}}"["===l?a++:"]"===l&&a--}let u=0===o.length?t:t.substring(c),l=u.startsWith("!"),h=l?u.substring(1):u,f=s&&s>c?s-c:void 0;return{modifiers:o,hasImportantModifier:l,baseClassName:h,maybePostfixModifierPosition:f}}}(o),...function(t){let e=function(t){var e;let{theme:r,prefix:n}=t,s={nextPart:new Map,validators:[]},o=(e=Object.entries(t.classGroups),n?e.map(([t,e])=>{let r=e.map(t=>"string"==typeof t?n+t:"object"==typeof t?Object.fromEntries(Object.entries(t).map(([t,e])=>[n+t,e])):t);return[t,r]}):e);return o.forEach(([t,e])=>{(function t(e,r,n,s){e.forEach(e=>{if("string"==typeof e){let t=""===e?r:i(r,e);t.classGroupId=n;return}if("function"==typeof e){if(e.isThemeGetter){t(e(s),r,n,s);return}r.validators.push({validator:e,classGroupId:n});return}Object.entries(e).forEach(([e,o])=>{t(o,i(r,e),n,s)})})})(e,s,t,r)}),s}(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=t;return{getClassGroupId:function(t){let r=t.split("-");return""===r[0]&&1!==r.length&&r.shift(),function t(e,r){if(0===e.length)return r.classGroupId;let n=e[0],i=r.nextPart.get(n),s=i?t(e.slice(1),i):void 0;if(s)return s;if(0===r.validators.length)return;let o=e.join("-");return r.validators.find(({validator:t})=>t(o))?.classGroupId}(r,e)||function(t){if(n.test(t)){let e=n.exec(t)[1],r=e?.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}}(t)},getConflictingClassGroupIds:function(t,e){let n=r[t]||[];return e&&s[t]?[...n,...s[t]]:n}}}(o)}).cache.get,a=e.cache.set,c=u,u(s)};function u(t){let n=r(t);if(n)return n;let i=function(t,e){let{splitModifiers:r,getClassGroupId:n,getConflictingClassGroupIds:i}=e,o=new Set;return t.trim().split(s).map(t=>{let{modifiers:e,hasImportantModifier:i,baseClassName:s,maybePostfixModifierPosition:o}=r(t),a=n(o?s.substring(0,o):s),c=!!o;if(!a){if(!o||!(a=n(s)))return{isTailwindClass:!1,originalClassName:t};c=!1}let u=(function(t){if(t.length<=1)return t;let e=[],r=[];return t.forEach(t=>{let n="["===t[0];n?(e.push(...r.sort(),t),r=[]):r.push(t)}),e.push(...r.sort()),e})(e).join(":");return{isTailwindClass:!0,modifierId:i?u+"!":u,classGroupId:a,originalClassName:t,hasPostfixModifier:c}}).reverse().filter(t=>{if(!t.isTailwindClass)return!0;let{modifierId:e,classGroupId:r,hasPostfixModifier:n}=t,s=e+r;return!o.has(s)&&(o.add(s),i(r,n).forEach(t=>o.add(e+t)),!0)}).reverse().map(t=>t.originalClassName).join(" ")}(t,e);return a(t,i),i}return function(){return c(o.apply(null,arguments))}}(function(){let t=a("colors"),e=a("spacing"),r=a("blur"),n=a("brightness"),i=a("borderColor"),s=a("borderRadius"),o=a("borderSpacing"),c=a("borderWidth"),u=a("contrast"),l=a("grayscale"),h=a("hueRotate"),f=a("invert"),p=a("gap"),d=a("gradientColorStops"),y=a("gradientColorStopPositions"),R=a("inset"),A=a("margin"),B=a("opacity"),L=a("padding"),U=a("saturate"),N=a("scale"),P=a("sepia"),j=a("skew"),F=a("space"),I=a("translate"),D=()=>["auto","contain","none"],q=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto",x,e],z=()=>[x,e],V=()=>["",g,m],H=()=>["auto",b,x],Q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],W=()=>["solid","dashed","dotted","double","none"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>["start","end","center","between","around","evenly","stretch"],$=()=>["","0",x],G=()=>["auto","avoid","all","avoid-page","page","left","right","column"],X=()=>[b,v],Y=()=>[b,x];return{cacheSize:500,separator:":",theme:{colors:[_],spacing:[g,m],blur:["none","",O,x],brightness:X(),borderColor:[t],borderRadius:["none","","full",O,x],borderSpacing:z(),borderWidth:V(),contrast:X(),grayscale:$(),hueRotate:Y(),invert:$(),gap:z(),gradientColorStops:[t],gradientColorStopPositions:[E,m],inset:M(),margin:M(),opacity:X(),padding:z(),saturate:X(),scale:X(),sepia:$(),skew:Y(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",x]}],container:["container"],columns:[{columns:[O]}],"break-after":[{"break-after":G()}],"break-before":[{"break-before":G()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Q(),x]}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[R]}],"inset-x":[{"inset-x":[R]}],"inset-y":[{"inset-y":[R]}],start:[{start:[R]}],end:[{end:[R]}],top:[{top:[R]}],right:[{right:[R]}],bottom:[{bottom:[R]}],left:[{left:[R]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",w,x]}],basis:[{basis:M()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",x]}],grow:[{grow:$()}],shrink:[{shrink:$()}],order:[{order:["first","last","none",w,x]}],"grid-cols":[{"grid-cols":[_]}],"col-start-end":[{col:["auto",{span:["full",w,x]},x]}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":[_]}],"row-start-end":[{row:["auto",{span:[w,x]},x]}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",x]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",x]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...J()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...J(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...J(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[L]}],px:[{px:[L]}],py:[{py:[L]}],ps:[{ps:[L]}],pe:[{pe:[L]}],pt:[{pt:[L]}],pr:[{pr:[L]}],pb:[{pb:[L]}],pl:[{pl:[L]}],m:[{m:[A]}],mx:[{mx:[A]}],my:[{my:[A]}],ms:[{ms:[A]}],me:[{me:[A]}],mt:[{mt:[A]}],mr:[{mr:[A]}],mb:[{mb:[A]}],ml:[{ml:[A]}],"space-x":[{"space-x":[F]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[F]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",x,e]}],"min-w":[{"min-w":[x,e,"min","max","fit"]}],"max-w":[{"max-w":[x,e,"none","full","min","max","fit","prose",{screen:[O]},O]}],h:[{h:[x,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[x,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[x,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[x,e,"auto","min","max","fit"]}],"font-size":[{text:["base",O,m]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",v]}],"font-family":[{font:[_]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",x]}],"line-clamp":[{"line-clamp":["none",b,v]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",g,x]}],"list-image":[{"list-image":["none",x]}],"list-style-type":[{list:["none","disc","decimal",x]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[B]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[B]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",g,m]}],"underline-offset":[{"underline-offset":["auto",g,x]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",x]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",x]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[B]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Q(),S]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",k]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},T]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[B]}],"border-style":[{border:[...W(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[B]}],"divide-style":[{divide:W()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...W()]}],"outline-offset":[{"outline-offset":[g,x]}],"outline-w":[{outline:[g,m]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[B]}],"ring-offset-w":[{"ring-offset":[g,m]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",O,C]}],"shadow-color":[{shadow:[_]}],opacity:[{opacity:[B]}],"mix-blend":[{"mix-blend":[...K(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":K()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",O,x]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[f]}],saturate:[{saturate:[U]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[B]}],"backdrop-saturate":[{"backdrop-saturate":[U]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",x]}],duration:[{duration:Y()}],ease:[{ease:["linear","in","out","in-out",x]}],delay:[{delay:Y()}],animate:[{animate:["none","spin","ping","pulse","bounce",x]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[N]}],"scale-x":[{"scale-x":[N]}],"scale-y":[{"scale-y":[N]}],rotate:[{rotate:[w,x]}],"translate-x":[{"translate-x":[I]}],"translate-y":[{"translate-y":[I]}],"skew-x":[{"skew-x":[j]}],"skew-y":[{"skew-y":[j]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",x]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",x]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",x]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[g,m,v]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}})}}]);