(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[332],{1899:t=>{!function(){var e={675:function(t,e){"use strict";e.byteLength=function(t){var e=l(t),i=e[0],r=e[1];return(i+r)*3/4-r},e.toByteArray=function(t){var e,i,s=l(t),o=s[0],a=s[1],u=new n((o+a)*3/4-a),h=0,c=a>0?o-4:o;for(i=0;i>16&255,u[h++]=e>>8&255,u[h++]=255&e;return 2===a&&(e=r[t.charCodeAt(i)]<<2|r[t.charCodeAt(i+1)]>>4,u[h++]=255&e),1===a&&(e=r[t.charCodeAt(i)]<<10|r[t.charCodeAt(i+1)]<<4|r[t.charCodeAt(i+2)]>>2,u[h++]=e>>8&255,u[h++]=255&e),u},e.fromByteArray=function(t){for(var e,r=t.length,n=r%3,s=[],o=0,a=r-n;o>18&63]+i[n>>12&63]+i[n>>6&63]+i[63&n]);return s.join("")}(t,o,o+16383>a?a:o+16383));return 1===n?s.push(i[(e=t[r-1])>>2]+i[e<<4&63]+"=="):2===n&&s.push(i[(e=(t[r-2]<<8)+t[r-1])>>10]+i[e>>4&63]+i[e<<2&63]+"="),s.join("")};for(var i=[],r=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=s.length;o0)throw Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");-1===i&&(i=e);var r=i===e?0:4-i%4;return[i,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},72:function(t,e,i){"use strict";var r=i(675),n=i(783),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(t){if(t>0x7fffffff)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,i){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return h(t)}return l(t,e,i)}function l(t,e,i){if("string"==typeof t)return function(t,e){if(("string"!=typeof e||""===e)&&(e="utf8"),!a.isEncoding(e))throw TypeError("Unknown encoding: "+e);var i=0|d(t,e),r=o(i),n=r.write(t,e);return n!==i&&(r=r.slice(0,n)),r}(t,e);if(ArrayBuffer.isView(t))return c(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(k(t,ArrayBuffer)||t&&k(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(k(t,SharedArrayBuffer)||t&&k(t.buffer,SharedArrayBuffer)))return function(t,e,i){var r;if(e<0||t.byteLength=0x7fffffff)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)||k(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 i=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return A(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return R(t).length;default:if(n)return r?-1:A(t).length;e=(""+e).toLowerCase(),n=!0}}function p(t,e,i){var n,s,o=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===i||i>this.length)&&(i=this.length),i<=0||(i>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,i){var r=t.length;(!e||e<0)&&(e=0),(!i||i<0||i>r)&&(i=r);for(var n="",s=e;s0x7fffffff?i=0x7fffffff:i<-0x80000000&&(i=-0x80000000),(s=i=+i)!=s&&(i=n?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(n)return -1;i=t.length-1}else if(i<0){if(!n)return -1;i=0}if("string"==typeof e&&(e=a.from(e,r)),a.isBuffer(e))return 0===e.length?-1:g(t,e,i,r,n);if("number"==typeof e)return(e&=255,"function"==typeof Uint8Array.prototype.indexOf)?n?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):g(t,[e],i,r,n);throw TypeError("val must be string, number or Buffer")}function g(t,e,i,r,n){var s,o=1,a=t.length,l=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return -1;o=2,a/=2,l/=2,i/=2}function u(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(n){var h=-1;for(s=i;sa&&(i=a-l),s=i;s>=0;s--){for(var c=!0,f=0;f239?4:u>223?3:u>191?2:1;if(n+c<=i)switch(c){case 1:u<128&&(h=u);break;case 2:(192&(s=t[n+1]))==128&&(l=(31&u)<<6|63&s)>127&&(h=l);break;case 3:s=t[n+1],o=t[n+2],(192&s)==128&&(192&o)==128&&(l=(15&u)<<12|(63&s)<<6|63&o)>2047&&(l<55296||l>57343)&&(h=l);break;case 4:s=t[n+1],o=t[n+2],a=t[n+3],(192&s)==128&&(192&o)==128&&(192&a)==128&&(l=(15&u)<<18|(63&s)<<12|(63&o)<<6|63&a)>65535&&l<1114112&&(h=l)}null===h?(h=65533,c=1):h>65535&&(h-=65536,r.push(h>>>10&1023|55296),h=56320|1023&h),r.push(h),n+=c}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var i="",r=0;ri)throw RangeError("Trying to access beyond buffer length")}function w(t,e,i,r,n,s){if(!a.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>n||et.length)throw RangeError("Index out of range")}function x(t,e,i,r,n,s){if(i+r>t.length||i<0)throw RangeError("Index out of range")}function T(t,e,i,r,s){return e=+e,i>>>=0,s||x(t,e,i,4,34028234663852886e22,-34028234663852886e22),n.write(t,e,i,r,23,4),i+4}function E(t,e,i,r,s){return e=+e,i>>>=0,s||x(t,e,i,8,17976931348623157e292,-17976931348623157e292),n.write(t,e,i,r,52,8),i+8}e.Buffer=a,e.SlowBuffer=function(t){return+t!=t&&(t=0),a.alloc(+t)},e.INSPECT_MAX_BYTES=50,e.kMaxLength=0x7fffffff,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,i){return l(t,e,i)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(t,e,i){return(u(t),t<=0)?o(t):void 0!==e?"string"==typeof i?o(t).fill(e,i):o(t).fill(e):o(t)},a.allocUnsafe=function(t){return h(t)},a.allocUnsafeSlow=function(t){return h(t)},a.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==a.prototype},a.compare=function(t,e){if(k(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),k(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 i=t.length,r=e.length,n=0,s=Math.min(i,r);ni&&(t+=" ... "),""},s&&(a.prototype[s]=a.prototype.inspect),a.prototype.compare=function(t,e,i,r,n){if(k(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===i&&(i=t?t.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),e<0||i>t.length||r<0||n>this.length)throw RangeError("out of range index");if(r>=n&&e>=i)return 0;if(r>=n)return -1;if(e>=i)return 1;if(e>>>=0,i>>>=0,r>>>=0,n>>>=0,this===t)return 0;for(var s=n-r,o=i-e,l=Math.min(s,o),u=this.slice(r,n),h=t.slice(e,i),c=0;c>>=0,isFinite(i)?(i>>>=0,void 0===r&&(r="utf8")):(r=i,i=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var n,s,o,a,l,u,h,c,f,d,p,m,y=this.length-e;if((void 0===i||i>y)&&(i=y),t.length>0&&(i<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var g=!1;;)switch(r){case"hex":return function(t,e,i,r){i=Number(i)||0;var n=t.length-i;r?(r=Number(r))>n&&(r=n):r=n;var s=e.length;r>s/2&&(r=s/2);for(var o=0;o>8,n.push(i%256),n.push(r);return n}(t,this.length-p),this,p,m);default:if(g)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),g=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(t,e){var i=this.length;t=~~t,e=void 0===e?i:~~e,t<0?(t+=i)<0&&(t=0):t>i&&(t=i),e<0?(e+=i)<0&&(e=0):e>i&&(e=i),e>>=0,e>>>=0,i||b(t,e,this.length);for(var r=this[t],n=1,s=0;++s>>=0,e>>>=0,i||b(t,e,this.length);for(var r=this[t+--e],n=1;e>0&&(n*=256);)r+=this[t+--e]*n;return r},a.prototype.readUInt8=function(t,e){return t>>>=0,e||b(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,e){return t>>>=0,e||b(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUInt16BE=function(t,e){return t>>>=0,e||b(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUInt32LE=function(t,e){return t>>>=0,e||b(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},a.prototype.readUInt32BE=function(t,e){return t>>>=0,e||b(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readIntLE=function(t,e,i){t>>>=0,e>>>=0,i||b(t,e,this.length);for(var r=this[t],n=1,s=0;++s=(n*=128)&&(r-=Math.pow(2,8*e)),r},a.prototype.readIntBE=function(t,e,i){t>>>=0,e>>>=0,i||b(t,e,this.length);for(var r=e,n=1,s=this[t+--r];r>0&&(n*=256);)s+=this[t+--r]*n;return s>=(n*=128)&&(s-=Math.pow(2,8*e)),s},a.prototype.readInt8=function(t,e){return(t>>>=0,e||b(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},a.prototype.readInt16LE=function(t,e){t>>>=0,e||b(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?0xffff0000|i:i},a.prototype.readInt16BE=function(t,e){t>>>=0,e||b(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?0xffff0000|i:i},a.prototype.readInt32LE=function(t,e){return t>>>=0,e||b(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||b(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||b(t,4,this.length),n.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t>>>=0,e||b(t,4,this.length),n.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t>>>=0,e||b(t,8,this.length),n.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t>>>=0,e||b(t,8,this.length),n.read(this,t,!1,52,8)},a.prototype.writeUIntLE=function(t,e,i,r){if(t=+t,e>>>=0,i>>>=0,!r){var n=Math.pow(2,8*i)-1;w(this,t,e,i,n,0)}var s=1,o=0;for(this[e]=255&t;++o>>=0,i>>>=0,!r){var n=Math.pow(2,8*i)-1;w(this,t,e,i,n,0)}var s=i-1,o=1;for(this[e+s]=255&t;--s>=0&&(o*=256);)this[e+s]=t/o&255;return e+i},a.prototype.writeUInt8=function(t,e,i){return t=+t,e>>>=0,i||w(this,t,e,1,255,0),this[e]=255&t,e+1},a.prototype.writeUInt16LE=function(t,e,i){return t=+t,e>>>=0,i||w(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeUInt16BE=function(t,e,i){return t=+t,e>>>=0,i||w(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeUInt32LE=function(t,e,i){return t=+t,e>>>=0,i||w(this,t,e,4,0xffffffff,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=function(t,e,i){return t=+t,e>>>=0,i||w(this,t,e,4,0xffffffff,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,i,r){if(t=+t,e>>>=0,!r){var n=Math.pow(2,8*i-1);w(this,t,e,i,n-1,-n)}var s=0,o=1,a=0;for(this[e]=255&t;++s>0)-a&255;return e+i},a.prototype.writeIntBE=function(t,e,i,r){if(t=+t,e>>>=0,!r){var n=Math.pow(2,8*i-1);w(this,t,e,i,n-1,-n)}var s=i-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+i},a.prototype.writeInt8=function(t,e,i){return t=+t,e>>>=0,i||w(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},a.prototype.writeInt16LE=function(t,e,i){return t=+t,e>>>=0,i||w(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeInt16BE=function(t,e,i){return t=+t,e>>>=0,i||w(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeInt32LE=function(t,e,i){return t=+t,e>>>=0,i||w(this,t,e,4,0x7fffffff,-0x80000000),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,i){return t=+t,e>>>=0,i||w(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+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,i){return T(this,t,e,!0,i)},a.prototype.writeFloatBE=function(t,e,i){return T(this,t,e,!1,i)},a.prototype.writeDoubleLE=function(t,e,i){return E(this,t,e,!0,i)},a.prototype.writeDoubleBE=function(t,e,i){return E(this,t,e,!1,i)},a.prototype.copy=function(t,e,i,r){if(!a.isBuffer(t))throw TypeError("argument should be a Buffer");if(i||(i=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--s)t[s+e]=this[s+i];else Uint8Array.prototype.set.call(t,this.subarray(i,r),e);return n},a.prototype.fill=function(t,e,i,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,i=this.length):"string"==typeof i&&(r=i,i=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!a.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===t.length){var n,s=t.charCodeAt(0);("utf8"===r&&s<128||"latin1"===r)&&(t=s)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(n=e;n55295&&i<57344){if(!n){if(i>56319||o+1===r){(e-=3)>-1&&s.push(239,191,189);continue}n=i;continue}if(i<56320){(e-=3)>-1&&s.push(239,191,189),n=i;continue}i=(n-55296<<10|i-56320)+65536}else n&&(e-=3)>-1&&s.push(239,191,189);if(n=null,i<128){if((e-=1)<0)break;s.push(i)}else if(i<2048){if((e-=2)<0)break;s.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;s.push(i>>12|224,i>>6&63|128,63&i|128)}else if(i<1114112){if((e-=4)<0)break;s.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}else throw Error("Invalid code point")}return s}function P(t){for(var e=[],i=0;i=e.length)&&!(n>=t.length);++n)e[n+i]=t[n];return n}function k(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var O=function(){for(var t="0123456789abcdef",e=Array(256),i=0;i<16;++i)for(var r=16*i,n=0;n<16;++n)e[r+n]=t[i]+t[n];return e}()},783:function(t,e){e.read=function(t,e,i,r,n){var s,o,a=8*n-r-1,l=(1<>1,h=-7,c=i?n-1:0,f=i?-1:1,d=t[e+c];for(c+=f,s=d&(1<<-h)-1,d>>=-h,h+=a;h>0;s=256*s+t[e+c],c+=f,h-=8);for(o=s&(1<<-h)-1,s>>=-h,h+=r;h>0;o=256*o+t[e+c],c+=f,h-=8);if(0===s)s=1-u;else{if(s===l)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,r),s-=u}return(d?-1:1)*o*Math.pow(2,s-r)},e.write=function(t,e,i,r,n,s){var o,a,l,u=8*s-n-1,h=(1<>1,f=23===n?5960464477539062e-23:0,d=r?0:s-1,p=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(isNaN(e=Math.abs(e))||e===1/0?(a=isNaN(e)?1:0,o=h):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+c>=1?e+=f/l:e+=f*Math.pow(2,1-c),e*l>=2&&(o++,l/=2),o+c>=h?(a=0,o=h):o+c>=1?(a=(e*l-1)*Math.pow(2,n),o+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,n),o=0));n>=8;t[i+d]=255&a,d+=p,a/=256,n-=8);for(o=o<0;t[i+d]=255&o,d+=p,o/=256,u-=8);t[i+d-p]|=128*m}}},i={};function r(t){var n=i[t];if(void 0!==n)return n.exports;var s=i[t]={exports:{}},o=!0;try{e[t](s,s.exports,r),o=!1}finally{o&&delete i[t]}return s.exports}r.ab="//";var n=r(72);t.exports=n}()},3875:(t,e,i)=>{"use strict";let r;i.d(e,{A:()=>eu});var n,s,o,a={};function l(t,e){return function(){return t.apply(e,arguments)}}i.r(a),i.d(a,{hasBrowserEnv:()=>tf,hasStandardBrowserEnv:()=>tp,hasStandardBrowserWebWorkerEnv:()=>tm,navigator:()=>td,origin:()=>ty});var u=i(4916);let{toString:h}=Object.prototype,{getPrototypeOf:c}=Object,{iterator:f,toStringTag:d}=Symbol,p=(t=>e=>{let i=h.call(e);return t[i]||(t[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),m=t=>(t=t.toLowerCase(),e=>p(e)===t),y=t=>e=>typeof e===t,{isArray:g}=Array,v=y("undefined"),b=m("ArrayBuffer"),w=y("string"),x=y("function"),T=y("number"),E=t=>null!==t&&"object"==typeof t,S=t=>{if("object"!==p(t))return!1;let e=c(t);return(null===e||e===Object.prototype||null===Object.getPrototypeOf(e))&&!(d in t)&&!(f in t)},A=m("Date"),P=m("File"),R=m("Blob"),C=m("FileList"),k=m("URLSearchParams"),[O,M,B,V]=["ReadableStream","Request","Response","Headers"].map(m);function D(t,e,{allOwnKeys:i=!1}={}){let r,n;if(null!=t){if("object"!=typeof t&&(t=[t]),g(t))for(r=0,n=t.length;r0;)if(e===(i=r[n]).toLowerCase())return i;return null}let L="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,U=t=>!v(t)&&t!==L,F=(t=>e=>t&&e instanceof t)("undefined"!=typeof Uint8Array&&c(Uint8Array)),N=m("HTMLFormElement"),I=(({hasOwnProperty:t})=>(e,i)=>t.call(e,i))(Object.prototype),_=m("RegExp"),q=(t,e)=>{let i=Object.getOwnPropertyDescriptors(t),r={};D(i,(i,n)=>{let s;!1!==(s=e(i,n,t))&&(r[n]=s||i)}),Object.defineProperties(t,r)},W=m("AsyncFunction"),$=(n="function"==typeof setImmediate,s=x(L.postMessage),n?setImmediate:s?((t,e)=>(L.addEventListener("message",({source:i,data:r})=>{i===L&&r===t&&e.length&&e.shift()()},!1),i=>{e.push(i),L.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t)),z="undefined"!=typeof queueMicrotask?queueMicrotask.bind(L):void 0!==u&&u.nextTick||$,X={isArray:g,isArrayBuffer:b,isBuffer:function(t){return null!==t&&!v(t)&&null!==t.constructor&&!v(t.constructor)&&x(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||x(t.append)&&("formdata"===(e=p(t))||"object"===e&&x(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&b(t.buffer)},isString:w,isNumber:T,isBoolean:t=>!0===t||!1===t,isObject:E,isPlainObject:S,isReadableStream:O,isRequest:M,isResponse:B,isHeaders:V,isUndefined:v,isDate:A,isFile:P,isBlob:R,isRegExp:_,isFunction:x,isStream:t=>E(t)&&x(t.pipe),isURLSearchParams:k,isTypedArray:F,isFileList:C,forEach:D,merge:function t(){let{caseless:e}=U(this)&&this||{},i={},r=(r,n)=>{let s=e&&j(i,n)||n;S(i[s])&&S(r)?i[s]=t(i[s],r):S(r)?i[s]=t({},r):g(r)?i[s]=r.slice():i[s]=r};for(let t=0,e=arguments.length;t(D(e,(e,r)=>{i&&x(e)?t[r]=l(e,i):t[r]=e},{allOwnKeys:r}),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,i,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),i&&Object.assign(t.prototype,i)},toFlatObject:(t,e,i,r)=>{let n,s,o;let a={};if(e=e||{},null==t)return e;do{for(s=(n=Object.getOwnPropertyNames(t)).length;s-- >0;)o=n[s],(!r||r(o,t,e))&&!a[o]&&(e[o]=t[o],a[o]=!0);t=!1!==i&&c(t)}while(t&&(!i||i(t,e))&&t!==Object.prototype);return e},kindOf:p,kindOfTest:m,endsWith:(t,e,i)=>{t=String(t),(void 0===i||i>t.length)&&(i=t.length),i-=e.length;let r=t.indexOf(e,i);return -1!==r&&r===i},toArray:t=>{if(!t)return null;if(g(t))return t;let e=t.length;if(!T(e))return null;let i=Array(e);for(;e-- >0;)i[e]=t[e];return i},forEachEntry:(t,e)=>{let i;let r=(t&&t[f]).call(t);for(;(i=r.next())&&!i.done;){let r=i.value;e.call(t,r[0],r[1])}},matchAll:(t,e)=>{let i;let r=[];for(;null!==(i=t.exec(e));)r.push(i);return r},isHTMLForm:N,hasOwnProperty:I,hasOwnProp:I,reduceDescriptors:q,freezeMethods:t=>{q(t,(e,i)=>{if(x(t)&&-1!==["arguments","caller","callee"].indexOf(i))return!1;if(x(t[i])){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},toObjectSet:(t,e)=>{let i={};return(t=>{t.forEach(t=>{i[t]=!0})})(g(t)?t:String(t).split(e)),i},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,i){return e.toUpperCase()+i}),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:j,global:L,isContextDefined:U,isSpecCompliantForm:function(t){return!!(t&&x(t.append)&&"FormData"===t[d]&&t[f])},toJSONObject:t=>{let e=Array(10),i=(t,r)=>{if(E(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[r]=t;let n=g(t)?[]:{};return D(t,(t,e)=>{let s=i(t,r+1);v(s)||(n[e]=s)}),e[r]=void 0,n}}return t};return i(t,0)},isAsyncFn:W,isThenable:t=>t&&(E(t)||x(t))&&x(t.then)&&x(t.catch),setImmediate:$,asap:z,isIterable:t=>null!=t&&x(t[f])};function G(t,e,i,r,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),i&&(this.config=i),r&&(this.request=r),n&&(this.response=n,this.status=n.status?n.status:null)}X.inherits(G,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:X.toJSONObject(this.config),code:this.code,status:this.status}}});let K=G.prototype,H={};["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=>{H[t]={value:t}}),Object.defineProperties(G,H),Object.defineProperty(K,"isAxiosError",{value:!0}),G.from=(t,e,i,r,n,s)=>{let o=Object.create(K);return X.toFlatObject(t,o,function(t){return t!==Error.prototype},t=>"isAxiosError"!==t),G.call(o,t.message,e,i,r,n),o.cause=t,o.name=t.name,s&&Object.assign(o,s),o};var Y=i(1899).Buffer;function Q(t){return X.isPlainObject(t)||X.isArray(t)}function J(t){return X.endsWith(t,"[]")?t.slice(0,-2):t}function Z(t,e,i){return t?t.concat(e).map(function(t,e){return t=J(t),!i&&e?"["+t+"]":t}).join(i?".":""):e}let tt=X.toFlatObject(X,{},null,function(t){return/^is[A-Z]/.test(t)}),te=function(t,e,i){if(!X.isObject(t))throw TypeError("target must be an object");e=e||new FormData;let r=(i=X.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,e){return!X.isUndefined(e[t])})).metaTokens,n=i.visitor||u,s=i.dots,o=i.indexes,a=(i.Blob||"undefined"!=typeof Blob&&Blob)&&X.isSpecCompliantForm(e);if(!X.isFunction(n))throw TypeError("visitor must be a function");function l(t){if(null===t)return"";if(X.isDate(t))return t.toISOString();if(!a&&X.isBlob(t))throw new G("Blob is not supported. Use a Buffer instead.");return X.isArrayBuffer(t)||X.isTypedArray(t)?a&&"function"==typeof Blob?new Blob([t]):Y.from(t):t}function u(t,i,n){let a=t;if(t&&!n&&"object"==typeof t){if(X.endsWith(i,"{}"))i=r?i:i.slice(0,-2),t=JSON.stringify(t);else{var u;if(X.isArray(t)&&(u=t,X.isArray(u)&&!u.some(Q))||(X.isFileList(t)||X.endsWith(i,"[]"))&&(a=X.toArray(t)))return i=J(i),a.forEach(function(t,r){X.isUndefined(t)||null===t||e.append(!0===o?Z([i],r,s):null===o?i:i+"[]",l(t))}),!1}}return!!Q(t)||(e.append(Z(n,i,s),l(t)),!1)}let h=[],c=Object.assign(tt,{defaultVisitor:u,convertValue:l,isVisitable:Q});if(!X.isObject(t))throw TypeError("data must be an object");return!function t(i,r){if(!X.isUndefined(i)){if(-1!==h.indexOf(i))throw Error("Circular reference detected in "+r.join("."));h.push(i),X.forEach(i,function(i,s){!0===(!(X.isUndefined(i)||null===i)&&n.call(e,i,X.isString(s)?s.trim():s,r,c))&&t(i,r?r.concat(s):[s])}),h.pop()}}(t),e};function ti(t){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function tr(t,e){this._pairs=[],t&&te(t,this,e)}let tn=tr.prototype;function ts(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function to(t,e,i){let r;if(!e)return t;let n=i&&i.encode||ts;X.isFunction(i)&&(i={serialize:i});let s=i&&i.serialize;if(r=s?s(e,i):X.isURLSearchParams(e)?e.toString():new tr(e,i).toString(n)){let e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+r}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,ti)}:ti;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};class ta{constructor(){this.handlers=[]}use(t,e,i){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){X.forEach(this.handlers,function(e){null!==e&&t(e)})}}let tl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},tu="undefined"!=typeof URLSearchParams?URLSearchParams:tr,th="undefined"!=typeof FormData?FormData:null,tc="undefined"!=typeof Blob?Blob:null,tf="undefined"!=typeof window&&"undefined"!=typeof document,td="object"==typeof navigator&&navigator||void 0,tp=tf&&(!td||0>["ReactNative","NativeScript","NS"].indexOf(td.product)),tm="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ty=tf&&window.location.href||"http://localhost",tg={...a,isBrowser:!0,classes:{URLSearchParams:tu,FormData:th,Blob:tc},protocols:["http","https","file","blob","url","data"]},tv=function(t){if(X.isFormData(t)&&X.isFunction(t.entries)){let e={};return X.forEachEntry(t,(t,i)=>{!function t(e,i,r,n){let s=e[n++];if("__proto__"===s)return!0;let o=Number.isFinite(+s),a=n>=e.length;return(s=!s&&X.isArray(r)?r.length:s,a)?X.hasOwnProp(r,s)?r[s]=[r[s],i]:r[s]=i:(r[s]&&X.isObject(r[s])||(r[s]=[]),t(e,i,r[s],n)&&X.isArray(r[s])&&(r[s]=function(t){let e,i;let r={},n=Object.keys(t),s=n.length;for(e=0;e"[]"===t[0]?"":t[1]||t[0]),i,e,0)}),e}return null},tb={transitional:tl,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){let i;let r=e.getContentType()||"",n=r.indexOf("application/json")>-1,s=X.isObject(t);if(s&&X.isHTMLForm(t)&&(t=new FormData(t)),X.isFormData(t))return n?JSON.stringify(tv(t)):t;if(X.isArrayBuffer(t)||X.isBuffer(t)||X.isStream(t)||X.isFile(t)||X.isBlob(t)||X.isReadableStream(t))return t;if(X.isArrayBufferView(t))return t.buffer;if(X.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1){var o,a;return(o=t,a=this.formSerializer,te(o,new tg.classes.URLSearchParams,Object.assign({visitor:function(t,e,i,r){return tg.isNode&&X.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},a))).toString()}if((i=X.isFileList(t))||r.indexOf("multipart/form-data")>-1){let e=this.env&&this.env.FormData;return te(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return s||n?(e.setContentType("application/json",!1),function(t,e,i){if(X.isString(t))try{return(0,JSON.parse)(t),X.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){let e=this.transitional||tb.transitional,i=e&&e.forcedJSONParsing,r="json"===this.responseType;if(X.isResponse(t)||X.isReadableStream(t))return t;if(t&&X.isString(t)&&(i&&!this.responseType||r)){let i=e&&e.silentJSONParsing;try{return JSON.parse(t)}catch(t){if(!i&&r){if("SyntaxError"===t.name)throw G.from(t,G.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:tg.classes.FormData,Blob:tg.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};X.forEach(["delete","get","head","post","put","patch"],t=>{tb.headers[t]={}});let tw=X.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"]),tx=t=>{let e,i,r;let n={};return t&&t.split("\n").forEach(function(t){r=t.indexOf(":"),e=t.substring(0,r).trim().toLowerCase(),i=t.substring(r+1).trim(),!e||n[e]&&tw[e]||("set-cookie"===e?n[e]?n[e].push(i):n[e]=[i]:n[e]=n[e]?n[e]+", "+i:i)}),n},tT=Symbol("internals");function tE(t){return t&&String(t).trim().toLowerCase()}function tS(t){return!1===t||null==t?t:X.isArray(t)?t.map(tS):String(t)}let tA=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function tP(t,e,i,r,n){if(X.isFunction(r))return r.call(this,e,i);if(n&&(e=i),X.isString(e)){if(X.isString(r))return -1!==e.indexOf(r);if(X.isRegExp(r))return r.test(e)}}class tR{constructor(t){t&&this.set(t)}set(t,e,i){let r=this;function n(t,e,i){let n=tE(e);if(!n)throw Error("header name must be a non-empty string");let s=X.findKey(r,n);s&&void 0!==r[s]&&!0!==i&&(void 0!==i||!1===r[s])||(r[s||e]=tS(t))}let s=(t,e)=>X.forEach(t,(t,i)=>n(t,i,e));if(X.isPlainObject(t)||t instanceof this.constructor)s(t,e);else if(X.isString(t)&&(t=t.trim())&&!tA(t))s(tx(t),e);else if(X.isObject(t)&&X.isIterable(t)){let i={},r,n;for(let e of t){if(!X.isArray(e))throw TypeError("Object iterator must return a key-value pair");i[n=e[0]]=(r=i[n])?X.isArray(r)?[...r,e[1]]:[r,e[1]]:e[1]}s(i,e)}else null!=t&&n(e,t,i);return this}get(t,e){if(t=tE(t)){let i=X.findKey(this,t);if(i){let t=this[i];if(!e)return t;if(!0===e)return function(t){let e;let i=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;e=r.exec(t);)i[e[1]]=e[2];return i}(t);if(X.isFunction(e))return e.call(this,t,i);if(X.isRegExp(e))return e.exec(t);throw TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=tE(t)){let i=X.findKey(this,t);return!!(i&&void 0!==this[i]&&(!e||tP(this,this[i],i,e)))}return!1}delete(t,e){let i=this,r=!1;function n(t){if(t=tE(t)){let n=X.findKey(i,t);n&&(!e||tP(i,i[n],n,e))&&(delete i[n],r=!0)}}return X.isArray(t)?t.forEach(n):n(t),r}clear(t){let e=Object.keys(this),i=e.length,r=!1;for(;i--;){let n=e[i];(!t||tP(this,this[n],n,t,!0))&&(delete this[n],r=!0)}return r}normalize(t){let e=this,i={};return X.forEach(this,(r,n)=>{let s=X.findKey(i,n);if(s){e[s]=tS(r),delete e[n];return}let o=t?n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,i)=>e.toUpperCase()+i):String(n).trim();o!==n&&delete e[n],e[o]=tS(r),i[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let e=Object.create(null);return X.forEach(this,(i,r)=>{null!=i&&!1!==i&&(e[r]=t&&X.isArray(i)?i.join(", "):i)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){let i=new this(t);return e.forEach(t=>i.set(t)),i}static accessor(t){let e=(this[tT]=this[tT]={accessors:{}}).accessors,i=this.prototype;function r(t){let r=tE(t);e[r]||(!function(t,e){let i=X.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+i,{value:function(t,i,n){return this[r].call(this,e,t,i,n)},configurable:!0})})}(i,t),e[r]=!0)}return X.isArray(t)?t.forEach(r):r(t),this}}function tC(t,e){let i=this||tb,r=e||i,n=tR.from(r.headers),s=r.data;return X.forEach(t,function(t){s=t.call(i,s,n.normalize(),e?e.status:void 0)}),n.normalize(),s}function tk(t){return!!(t&&t.__CANCEL__)}function tO(t,e,i){G.call(this,null==t?"canceled":t,G.ERR_CANCELED,e,i),this.name="CanceledError"}function tM(t,e,i){let r=i.config.validateStatus;!i.status||!r||r(i.status)?t(i):e(new G("Request failed with status code "+i.status,[G.ERR_BAD_REQUEST,G.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}tR.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),X.reduceDescriptors(tR.prototype,({value:t},e)=>{let i=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[i]=t}}}),X.freezeMethods(tR),X.inherits(tO,G,{__CANCEL__:!0});let tB=function(t,e){let i;let r=Array(t=t||10),n=Array(t),s=0,o=0;return e=void 0!==e?e:1e3,function(a){let l=Date.now(),u=n[o];i||(i=l),r[s]=a,n[s]=l;let h=o,c=0;for(;h!==s;)c+=r[h++],h%=t;if((s=(s+1)%t)===o&&(o=(o+1)%t),l-i{n=s,i=null,r&&(clearTimeout(r),r=null),t.apply(null,e)};return[(...t)=>{let e=Date.now(),a=e-n;a>=s?o(t,e):(i=t,r||(r=setTimeout(()=>{r=null,o(i)},s-a)))},()=>i&&o(i)]},tD=(t,e,i=3)=>{let r=0,n=tB(50,250);return tV(i=>{let s=i.loaded,o=i.lengthComputable?i.total:void 0,a=s-r,l=n(a);r=s,t({loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:l||void 0,estimated:l&&o&&s<=o?(o-s)/l:void 0,event:i,lengthComputable:null!=o,[e?"download":"upload"]:!0})},i)},tj=(t,e)=>{let i=null!=t;return[r=>e[0]({lengthComputable:i,total:t,loaded:r}),e[1]]},tL=t=>(...e)=>X.asap(()=>t(...e)),tU=tg.hasStandardBrowserEnv?((t,e)=>i=>(i=new URL(i,tg.origin),t.protocol===i.protocol&&t.host===i.host&&(e||t.port===i.port)))(new URL(tg.origin),tg.navigator&&/(msie|trident)/i.test(tg.navigator.userAgent)):()=>!0,tF=tg.hasStandardBrowserEnv?{write(t,e,i,r,n,s){let o=[t+"="+encodeURIComponent(e)];X.isNumber(i)&&o.push("expires="+new Date(i).toGMTString()),X.isString(r)&&o.push("path="+r),X.isString(n)&&o.push("domain="+n),!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 tN(t,e,i){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);return t&&(r||!1==i)?e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t:e}let tI=t=>t instanceof tR?{...t}:t;function t_(t,e){e=e||{};let i={};function r(t,e,i,r){return X.isPlainObject(t)&&X.isPlainObject(e)?X.merge.call({caseless:r},t,e):X.isPlainObject(e)?X.merge({},e):X.isArray(e)?e.slice():e}function n(t,e,i,n){return X.isUndefined(e)?X.isUndefined(t)?void 0:r(void 0,t,i,n):r(t,e,i,n)}function s(t,e){if(!X.isUndefined(e))return r(void 0,e)}function o(t,e){return X.isUndefined(e)?X.isUndefined(t)?void 0:r(void 0,t):r(void 0,e)}function a(i,n,s){return s in e?r(i,n):s in t?r(void 0,i):void 0}let l={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)=>n(tI(t),tI(e),i,!0)};return X.forEach(Object.keys(Object.assign({},t,e)),function(r){let s=l[r]||n,o=s(t[r],e[r],r);X.isUndefined(o)&&s!==a||(i[r]=o)}),i}let tq=t=>{let e;let i=t_({},t),{data:r,withXSRFToken:n,xsrfHeaderName:s,xsrfCookieName:o,headers:a,auth:l}=i;if(i.headers=a=tR.from(a),i.url=to(tN(i.baseURL,i.url,i.allowAbsoluteUrls),t.params,t.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),X.isFormData(r)){if(tg.hasStandardBrowserEnv||tg.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(e=a.getContentType())){let[t,...i]=e?e.split(";").map(t=>t.trim()).filter(Boolean):[];a.setContentType([t||"multipart/form-data",...i].join("; "))}}if(tg.hasStandardBrowserEnv&&(n&&X.isFunction(n)&&(n=n(i)),n||!1!==n&&tU(i.url))){let t=s&&o&&tF.read(o);t&&a.set(s,t)}return i},tW="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise(function(e,i){let r,n,s,o,a;let l=tq(t),u=l.data,h=tR.from(l.headers).normalize(),{responseType:c,onUploadProgress:f,onDownloadProgress:d}=l;function p(){o&&o(),a&&a(),l.cancelToken&&l.cancelToken.unsubscribe(r),l.signal&&l.signal.removeEventListener("abort",r)}let m=new XMLHttpRequest;function y(){if(!m)return;let r=tR.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());tM(function(t){e(t),p()},function(t){i(t),p()},{data:c&&"text"!==c&&"json"!==c?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:t,request:m}),m=null}m.open(l.method.toUpperCase(),l.url,!0),m.timeout=l.timeout,"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(y)},m.onabort=function(){m&&(i(new G("Request aborted",G.ECONNABORTED,t,m)),m=null)},m.onerror=function(){i(new G("Network Error",G.ERR_NETWORK,t,m)),m=null},m.ontimeout=function(){let e=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",r=l.transitional||tl;l.timeoutErrorMessage&&(e=l.timeoutErrorMessage),i(new G(e,r.clarifyTimeoutError?G.ETIMEDOUT:G.ECONNABORTED,t,m)),m=null},void 0===u&&h.setContentType(null),"setRequestHeader"in m&&X.forEach(h.toJSON(),function(t,e){m.setRequestHeader(e,t)}),X.isUndefined(l.withCredentials)||(m.withCredentials=!!l.withCredentials),c&&"json"!==c&&(m.responseType=l.responseType),d&&([s,a]=tD(d,!0),m.addEventListener("progress",s)),f&&m.upload&&([n,o]=tD(f),m.upload.addEventListener("progress",n),m.upload.addEventListener("loadend",o)),(l.cancelToken||l.signal)&&(r=e=>{m&&(i(!e||e.type?new tO(null,t,m):e),m.abort(),m=null)},l.cancelToken&&l.cancelToken.subscribe(r),l.signal&&(l.signal.aborted?r():l.signal.addEventListener("abort",r)));let g=function(t){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(l.url);if(g&&-1===tg.protocols.indexOf(g)){i(new G("Unsupported protocol "+g+":",G.ERR_BAD_REQUEST,t));return}m.send(u||null)})},t$=(t,e)=>{let{length:i}=t=t?t.filter(Boolean):[];if(e||i){let i,r=new AbortController,n=function(t){if(!i){i=!0,o();let e=t instanceof Error?t:this.reason;r.abort(e instanceof G?e:new tO(e instanceof Error?e.message:e))}},s=e&&setTimeout(()=>{s=null,n(new G(`timeout ${e} of ms exceeded`,G.ETIMEDOUT))},e),o=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(t=>{t.unsubscribe?t.unsubscribe(n):t.removeEventListener("abort",n)}),t=null)};t.forEach(t=>t.addEventListener("abort",n));let{signal:a}=r;return a.unsubscribe=()=>X.asap(o),a}},tz=function*(t,e){let i,r=t.byteLength;if(!e||r{let n;let s=tX(t,e),o=0,a=t=>{!n&&(n=!0,r&&r(t))};return new ReadableStream({async pull(t){try{let{done:e,value:r}=await s.next();if(e){a(),t.close();return}let n=r.byteLength;if(i){let t=o+=n;i(t)}t.enqueue(new Uint8Array(r))}catch(t){throw a(t),t}},cancel:t=>(a(t),s.return())},{highWaterMark:2})},tH="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,tY=tH&&"function"==typeof ReadableStream,tQ=tH&&("function"==typeof TextEncoder?(r=new TextEncoder,t=>r.encode(t)):async t=>new Uint8Array(await new Response(t).arrayBuffer())),tJ=(t,...e)=>{try{return!!t(...e)}catch(t){return!1}},tZ=tY&&tJ(()=>{let t=!1,e=new Request(tg.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),t0=tY&&tJ(()=>X.isReadableStream(new Response("").body)),t1={stream:t0&&(t=>t.body)};tH&&(o=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(t=>{t1[t]||(t1[t]=X.isFunction(o[t])?e=>e[t]():(e,i)=>{throw new G(`Response type '${t}' is not supported`,G.ERR_NOT_SUPPORT,i)})}));let t2=async t=>{if(null==t)return 0;if(X.isBlob(t))return t.size;if(X.isSpecCompliantForm(t)){let e=new Request(tg.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return X.isArrayBufferView(t)||X.isArrayBuffer(t)?t.byteLength:(X.isURLSearchParams(t)&&(t+=""),X.isString(t))?(await tQ(t)).byteLength:void 0},t5=async(t,e)=>{let i=X.toFiniteNumber(t.getContentLength());return null==i?t2(e):i},t3={http:null,xhr:tW,fetch:tH&&(async t=>{let e,i,{url:r,method:n,data:s,signal:o,cancelToken:a,timeout:l,onDownloadProgress:u,onUploadProgress:h,responseType:c,headers:f,withCredentials:d="same-origin",fetchOptions:p}=tq(t);c=c?(c+"").toLowerCase():"text";let m=t$([o,a&&a.toAbortSignal()],l),y=m&&m.unsubscribe&&(()=>{m.unsubscribe()});try{if(h&&tZ&&"get"!==n&&"head"!==n&&0!==(i=await t5(f,s))){let t,e=new Request(r,{method:"POST",body:s,duplex:"half"});if(X.isFormData(s)&&(t=e.headers.get("content-type"))&&f.setContentType(t),e.body){let[t,r]=tj(i,tD(tL(h)));s=tK(e.body,65536,t,r)}}X.isString(d)||(d=d?"include":"omit");let o="credentials"in Request.prototype;e=new Request(r,{...p,signal:m,method:n.toUpperCase(),headers:f.normalize().toJSON(),body:s,duplex:"half",credentials:o?d:void 0});let a=await fetch(e),l=t0&&("stream"===c||"response"===c);if(t0&&(u||l&&y)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=a[e]});let e=X.toFiniteNumber(a.headers.get("content-length")),[i,r]=u&&tj(e,tD(tL(u),!0))||[];a=new Response(tK(a.body,65536,i,()=>{r&&r(),y&&y()}),t)}c=c||"text";let g=await t1[X.findKey(t1,c)||"text"](a,t);return!l&&y&&y(),await new Promise((i,r)=>{tM(i,r,{data:g,headers:tR.from(a.headers),status:a.status,statusText:a.statusText,config:t,request:e})})}catch(i){if(y&&y(),i&&"TypeError"===i.name&&/Load failed|fetch/i.test(i.message))throw Object.assign(new G("Network Error",G.ERR_NETWORK,t,e),{cause:i.cause||i});throw G.from(i,i&&i.code,t,e)}})};X.forEach(t3,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}});let t6=t=>`- ${t}`,t8=t=>X.isFunction(t)||null===t||!1===t,t4={getAdapter:t=>{let e,i;let{length:r}=t=X.isArray(t)?t:[t],n={};for(let s=0;s`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build"));throw new G("There is no suitable adapter to dispatch the request "+(r?t.length>1?"since :\n"+t.map(t6).join("\n"):" "+t6(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return i}};function t9(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new tO(null,t)}function t7(t){return t9(t),t.headers=tR.from(t.headers),t.data=tC.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),t4.getAdapter(t.adapter||tb.adapter)(t).then(function(e){return t9(t),e.data=tC.call(t,t.transformResponse,e),e.headers=tR.from(e.headers),e},function(e){return!tk(e)&&(t9(t),e&&e.response&&(e.response.data=tC.call(t,t.transformResponse,e.response),e.response.headers=tR.from(e.response.headers))),Promise.reject(e)})}let et="1.9.0",ee={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ee[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});let ei={};ee.transitional=function(t,e,i){function r(t,e){return"[Axios v"+et+"] Transitional option '"+t+"'"+e+(i?". "+i:"")}return(i,n,s)=>{if(!1===t)throw new G(r(n," has been removed"+(e?" in "+e:"")),G.ERR_DEPRECATED);return e&&!ei[n]&&(ei[n]=!0,console.warn(r(n," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(i,n,s)}},ee.spelling=function(t){return(e,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};let er={assertOptions:function(t,e,i){if("object"!=typeof t)throw new G("options must be an object",G.ERR_BAD_OPTION_VALUE);let r=Object.keys(t),n=r.length;for(;n-- >0;){let s=r[n],o=e[s];if(o){let e=t[s],i=void 0===e||o(e,s,t);if(!0!==i)throw new G("option "+s+" must be "+i,G.ERR_BAD_OPTION_VALUE);continue}if(!0!==i)throw new G("Unknown option "+s,G.ERR_BAD_OPTION)}},validators:ee},en=er.validators;class es{constructor(t){this.defaults=t||{},this.interceptors={request:new ta,response:new ta}}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 i=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?i&&!String(t.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+i):t.stack=i}catch(t){}}throw t}}_request(t,e){let i,r;"string"==typeof t?(e=e||{}).url=t:e=t||{};let{transitional:n,paramsSerializer:s,headers:o}=e=t_(this.defaults,e);void 0!==n&&er.assertOptions(n,{silentJSONParsing:en.transitional(en.boolean),forcedJSONParsing:en.transitional(en.boolean),clarifyTimeoutError:en.transitional(en.boolean)},!1),null!=s&&(X.isFunction(s)?e.paramsSerializer={serialize:s}:er.assertOptions(s,{encode:en.function,serialize:en.function},!0)),void 0!==e.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),er.assertOptions(e,{baseUrl:en.spelling("baseURL"),withXsrfToken:en.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let a=o&&X.merge(o.common,o[e.method]);o&&X.forEach(["delete","get","head","post","put","patch","common"],t=>{delete o[t]}),e.headers=tR.concat(a,o);let l=[],u=!0;this.interceptors.request.forEach(function(t){("function"!=typeof t.runWhen||!1!==t.runWhen(e))&&(u=u&&t.synchronous,l.unshift(t.fulfilled,t.rejected))});let h=[];this.interceptors.response.forEach(function(t){h.push(t.fulfilled,t.rejected)});let c=0;if(!u){let t=[t7.bind(this),void 0];for(t.unshift.apply(t,l),t.push.apply(t,h),r=t.length,i=Promise.resolve(e);c{if(!i._listeners)return;let e=i._listeners.length;for(;e-- >0;)i._listeners[e](t);i._listeners=null}),this.promise.then=t=>{let e;let r=new Promise(t=>{i.subscribe(t),e=t}).then(t);return r.cancel=function(){i.unsubscribe(e)},r},t(function(t,r,n){i.reason||(i.reason=new tO(t,r,n),e(i.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)}toAbortSignal(){let t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new eo(function(e){t=e}),cancel:t}}}let ea={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(ea).forEach(([t,e])=>{ea[e]=t});let el=function t(e){let i=new es(e),r=l(es.prototype.request,i);return X.extend(r,es.prototype,i,{allOwnKeys:!0}),X.extend(r,i,null,{allOwnKeys:!0}),r.create=function(i){return t(t_(e,i))},r}(tb);el.Axios=es,el.CanceledError=tO,el.CancelToken=eo,el.isCancel=tk,el.VERSION=et,el.toFormData=te,el.AxiosError=G,el.Cancel=el.CanceledError,el.all=function(t){return Promise.all(t)},el.spread=function(t){return function(e){return t.apply(null,e)}},el.isAxiosError=function(t){return X.isObject(t)&&!0===t.isAxiosError},el.mergeConfig=t_,el.AxiosHeaders=tR,el.formToJSON=t=>tv(X.isHTMLForm(t)?new FormData(t):t),el.getAdapter=t4.getAdapter,el.HttpStatusCode=ea,el.default=el;let eu=el},3678:(t,e,i)=>{"use strict";i.d(e,{s:()=>h});var r=i(6825),n=i(9330),s=i(1906);function o(t,e){[...e].reverse().forEach(i=>{let r=t.getVariant(i);r&&(0,n.U)(t,r),t.variantChildren&&t.variantChildren.forEach(t=>{o(t,e)})})}function a(){let t=!1,e=new Set,i={subscribe:t=>(e.add(t),()=>void e.delete(t)),start(i,n){(0,r.V)(t,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let o=[];return e.forEach(t=>{o.push((0,s._)(t,i,{transitionOverride:n}))}),Promise.all(o)},set:i=>((0,r.V)(t,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),e.forEach(t=>{Array.isArray(i)?o(t,i):"string"==typeof i?o(t,[i]):(0,n.U)(t,i)})),stop(){e.forEach(t=>{!function(t){t.values.forEach(t=>t.stop())}(t)})},mount:()=>(t=!0,()=>{t=!1,i.stop()})};return i}var l=i(5445),u=i(6);let h=function(){let t=(0,l.M)(a);return(0,u.E)(t.mount,[]),t}},9655:(t,e,i)=>{"use strict";i.d(e,{f:()=>tq});var r=i(9386),n=i(6542),s=i(1160),o=i(3167),a=i(3514),l=i(2304),u=i(8485),h=i(6825),c=i(4831),f=i(1725),d=i(7093),p=i(7726),m=i(615);function y(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}var g=i(8763);function v(t,e){return i=>i>0?e:t}var b=i(8817);let w=(t,e,i)=>{let r=t*t,n=i*(e*e-r)+r;return n<0?0:Math.sqrt(n)},x=[p.u,g.B,m.V],T=t=>x.find(e=>e.test(t));function E(t){let e=T(t);if((0,h.$)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===m.V&&(i=function({hue:t,saturation:e,lightness:i,alpha:r}){t/=360,i/=100;let n=0,s=0,o=0;if(e/=100){let r=i<.5?i*(1+e):i+e-i*e,a=2*i-r;n=y(a,r,t+1/3),s=y(a,r,t),o=y(a,r,t-1/3)}else n=s=o=i;return{red:Math.round(255*n),green:Math.round(255*s),blue:Math.round(255*o),alpha:r}}(i)),i}let S=(t,e)=>{let i=E(t),r=E(e);if(!i||!r)return v(t,e);let n={...i};return t=>(n.red=w(i.red,r.red,t),n.green=w(i.green,r.green,t),n.blue=w(i.blue,r.blue,t),n.alpha=(0,b.k)(i.alpha,r.alpha,t),g.B.transform(n))},A=new Set(["none","hidden"]);function P(t,e){return i=>(0,b.k)(t,e,i)}function R(t){return"number"==typeof t?P:"string"==typeof t?(0,c.p)(t)?v:f.y.test(t)?S:O:Array.isArray(t)?C:"object"==typeof t?f.y.test(t)?S:k:v}function C(t,e){let i=[...t],r=i.length,n=t.map((t,i)=>R(t)(t,e[i]));return t=>{for(let e=0;e{for(let e in r)i[e]=r[e](t);return i}}let O=(t,e)=>{let i=d.f.createTransformer(e),r=(0,d.V)(t),n=(0,d.V)(e);return r.indexes.var.length===n.indexes.var.length&&r.indexes.color.length===n.indexes.color.length&&r.indexes.number.length>=n.indexes.number.length?A.has(t)&&!n.values.length||A.has(e)&&!r.values.length?function(t,e){return A.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):(0,s.F)(C(function(t,e){let i=[],r={color:0,var:0,number:0};for(let n=0;n{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>n.Gt.update(e,t),stop:()=>(0,n.WG)(e),now:()=>n.uv.isProcessing?n.uv.timestamp:l.k.now()}},V=(t,e,i=10)=>{let r="",n=Math.max(Math.round(e/i),2);for(let e=0;e=2e4?1/0:e}var j=i(1770);function L(t,e,i){let r=Math.max(e-5,0);return(0,j.f)(i-t(r),e-r)}let U={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function F(t,e){return t*Math.sqrt(1-e*e)}let N=["duration","bounce"],I=["stiffness","damping","mass"];function _(t,e){return e.some(e=>void 0!==t[e])}function q(t=U.visualDuration,e=U.bounce){let i;let r="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:n,restDelta:s}=r,l=r.keyframes[0],u=r.keyframes[r.keyframes.length-1],c={done:!1,value:l},{stiffness:f,damping:d,mass:p,duration:m,velocity:y,isResolvedFromDuration:g}=function(t){let e={velocity:U.velocity,stiffness:U.stiffness,damping:U.damping,mass:U.mass,isResolvedFromDuration:!1,...t};if(!_(t,I)&&_(t,N)){if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),r=i*i,n=2*(0,o.q)(.05,1,1-(t.bounce||0))*Math.sqrt(r);e={...e,mass:U.mass,stiffness:r,damping:n}}else{let i=function({duration:t=U.duration,bounce:e=U.bounce,velocity:i=U.velocity,mass:r=U.mass}){let n,s;(0,h.$)(t<=(0,a.f)(U.maxDuration),"Spring duration must be 10 seconds or less");let l=1-e;l=(0,o.q)(U.minDamping,U.maxDamping,l),t=(0,o.q)(U.minDuration,U.maxDuration,(0,a.X)(t)),l<1?(n=e=>{let r=e*l,n=r*t;return .001-(r-i)/F(e,l)*Math.exp(-n)},s=e=>{let r=e*l*t,s=Math.pow(l,2)*Math.pow(e,2)*t,o=Math.exp(-r),a=F(Math.pow(e,2),l);return(r*i+i-s)*o*(-n(e)+.001>0?-1:1)/a}):(n=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));let u=function(t,e,i){let r=i;for(let i=1;i<12;i++)r-=t(r)/e(r);return r}(n,s,5/t);if(t=(0,a.f)(t),isNaN(u))return{stiffness:U.stiffness,damping:U.damping,duration:t};{let e=Math.pow(u,2)*r;return{stiffness:e,damping:2*l*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...i,mass:U.mass}).isResolvedFromDuration=!0}}return e}({...r,velocity:-(0,a.X)(r.velocity||0)}),v=y||0,b=d/(2*Math.sqrt(f*p)),w=u-l,x=(0,a.X)(Math.sqrt(f/p)),T=5>Math.abs(w);if(n||(n=T?U.restSpeed.granular:U.restSpeed.default),s||(s=T?U.restDelta.granular:U.restDelta.default),b<1){let t=F(x,b);i=e=>u-Math.exp(-b*x*e)*((v+b*x*w)/t*Math.sin(t*e)+w*Math.cos(t*e))}else if(1===b)i=t=>u-Math.exp(-x*t)*(w+(v+x*w)*t);else{let t=x*Math.sqrt(b*b-1);i=e=>{let i=Math.exp(-b*x*e),r=Math.min(t*e,300);return u-i*((v+b*x*w)*Math.sinh(r)+t*w*Math.cosh(r))/t}}let E={calculatedDuration:g&&m||null,next:t=>{let e=i(t);if(g)c.done=t>=m;else{let r=0===t?v:0;b<1&&(r=0===t?(0,a.f)(v):L(i,t,e));let o=Math.abs(r)<=n,l=Math.abs(u-e)<=s;c.done=o&&l}return c.value=c.done?u:e,c},toString:()=>{let t=Math.min(D(E),2e4),e=V(e=>E.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return E}function W({keyframes:t,velocity:e=0,power:i=.8,timeConstant:r=325,bounceDamping:n=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,f;let d=t[0],p={done:!1,value:d},m=t=>void 0!==a&&tl,y=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)-g*Math.exp(-t/r),x=t=>b+w(t),T=t=>{let e=w(t),i=x(t);p.done=Math.abs(e)<=u,p.value=p.done?b:i},E=t=>{m(p.value)&&(c=t,f=q({keyframes:[p.value,y(p.value)],velocity:L(x,t,p.value),damping:n,stiffness:s,restDelta:u,restSpeed:h}))};return E(0),{calculatedDuration:null,next:t=>{let e=!1;return(f||void 0!==c||(e=!0,T(t),E(t)),void 0!==c&&t>=c)?f.next(t-c):(e||T(t),p)}}}q.applyToOptions=t=>{let e=function(t,e=100,i){let r=i({...t,keyframes:[0,e]}),n=Math.min(D(r),2e4);return{type:"keyframes",ease:t=>r.next(n*t).value/e,duration:(0,a.X)(n)}}(t,100,q);return t.ease=e.ease,t.duration=(0,a.f)(e.duration),t.type="keyframes",t};var $=i(916);let z=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function X(t,e,i,r){if(t===e&&i===r)return $.l;let n=e=>(function(t,e,i,r,n){let s,o;let a=0;do(s=z(o=e+(i-e)/2,r,n)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:z(n(t),e,r)}let G=X(.42,0,1,1),K=X(0,0,.58,1),H=X(.42,0,.58,1),Y=t=>Array.isArray(t)&&"number"!=typeof t[0];var Q=i(6012),J=i(8559);let Z=X(.33,1.53,.69,.99),tt=(0,J.G)(Z),te=(0,Q.V)(tt),ti=t=>(t*=2)<1?.5*tt(t):.5*(2-Math.pow(2,-10*(t-1)));var tr=i(1841);let tn=t=>Array.isArray(t)&&"number"==typeof t[0],ts={linear:$.l,easeIn:G,easeInOut:H,easeOut:K,circIn:tr.po,circInOut:tr.tn,circOut:tr.yT,backIn:tt,backInOut:te,backOut:Z,anticipate:ti},to=t=>"string"==typeof t,ta=t=>{if(tn(t)){(0,h.V)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,r,n]=t;return X(e,i,r,n)}return to(t)?((0,h.V)(void 0!==ts[t],`Invalid easing type '${t}'`),ts[t]):t};var tl=i(1322),tu=i(4089);function th({duration:t=300,keyframes:e,times:i,ease:r="easeInOut"}){let n=Y(r)?r.map(ta):ta(r),a={done:!1,value:e[0]},l=function(t,e,{clamp:i=!0,ease:r,mixer:n}={}){let a=t.length;if((0,h.V)(a===e.length,"Both input and output ranges must be the same length"),1===a)return()=>e[0];if(2===a&&e[0]===e[1])return()=>e[1];let l=t[0]===t[1];t[0]>t[a-1]&&(t=[...t].reverse(),e=[...e].reverse());let u=function(t,e,i){let r=[],n=i||tl.W.mix||M,o=t.length-1;for(let i=0;i{if(l&&i1)for(;rf((0,o.q)(t[0],t[a-1],e)):f}((i&&i.length===e.length?i:function(t){let e=[0];return function(t,e){let i=t[t.length-1];for(let r=1;r<=e;r++){let n=(0,tu.q)(0,e,r);t.push((0,b.k)(i,1,n))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(n)?n:e.map(()=>n||H).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=l(e),a.done=e>=t,a)}}let tc=t=>null!==t;function tf(t,{repeat:e,repeatType:i="loop"},r,n=1){let s=t.filter(tc),o=n<0||e&&"loop"!==i&&e%2==1?0:s.length-1;return o&&void 0!==r?r:s[o]}let td={decay:W,inertia:W,tween:th,keyframes:th,spring:q};function tp(t){"string"==typeof t.type&&(t.type=td[t.type])}class tm{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let ty=t=>t/100;class tg extends tm{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=(t=!0)=>{if(t){let{motionValue:t}=this.options;t&&t.updatedAt!==l.k.now()&&this.tick(l.k.now())}this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},u.q.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;tp(t);let{type:e=th,repeat:i=0,repeatDelay:r=0,repeatType:n,velocity:o=0}=t,{keyframes:a}=t,l=e||th;l!==th&&"number"!=typeof a[0]&&(this.mixKeyframes=(0,s.F)(ty,M(a[0],a[1])),a=[0,100]);let u=l({...t,keyframes:a});"mirror"===n&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),null===u.calculatedDuration&&(u.calculatedDuration=D(u));let{calculatedDuration:h}=u;this.calculatedDuration=h,this.resolvedDuration=h+r,this.totalDuration=this.resolvedDuration*(i+1)-r,this.generator=u}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:r,mixKeyframes:n,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(null===this.startTime)return i.next(0);let{delay:u=0,keyframes:h,repeat:c,repeatType:f,repeatDelay:d,type:p,onUpdate:m,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let b=this.currentTime,w=i;if(c){let t=Math.min(this.currentTime,r)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===f?(i=1-i,d&&(i-=d/a)):"mirror"===f&&(w=s)),b=(0,o.q)(0,1,i)*a}let x=v?{done:!1,value:h[0]}:w.next(b);n&&(x.value=n(x.value));let{done:T}=x;v||null===l||(T=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let E=null===this.holdTime&&("finished"===this.state||"running"===this.state&&T);return E&&p!==W&&(x.value=tf(h,this.options,y,this.speed)),m&&m(x.value),E&&this.finish(),x}then(t,e){return this.finished.then(t,e)}get duration(){return(0,a.X)(this.calculatedDuration)}get time(){return(0,a.X)(this.currentTime)}set time(t){t=(0,a.f)(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(l.k.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,a.X)(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=B,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(l.k.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,u.q.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}var tv=i(8207);let tb=t=>t.startsWith("--");function tw(t){let e;return()=>(void 0===e&&(e=t()),e)}let tx=tw(()=>void 0!==window.ScrollTimeline);var tT=i(6651);let tE={},tS=function(t,e){let i=tw(t);return()=>tE[e]??i()}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),tA=([t,e,i,r])=>`cubic-bezier(${t}, ${e}, ${i}, ${r})`,tP={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tA([0,.65,.55,1]),circOut:tA([.55,0,1,.45]),backIn:tA([.31,.01,.66,-.59]),backOut:tA([.33,1.53,.69,.99])};function tR(t){return"function"==typeof t&&"applyToOptions"in t}class tC extends tm{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:e,name:i,keyframes:r,pseudoElement:n,allowFlatten:s=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!n,this.allowFlatten=s,this.options=t,(0,h.V)("string"!=typeof t.type,'animateMini doesn\'t support "type" as a string. Did you mean to import { spring } from "motion"?');let l=function({type:t,...e}){return tR(t)&&tS()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:r=0,duration:n=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},h){let c={[e]:i};l&&(c.offset=l);let f=function t(e,i){if(e)return"function"==typeof e?tS()?V(e,i):"ease-out":tn(e)?tA(e):Array.isArray(e)?e.map(e=>t(e,i)||tP.easeOut):tP[e]}(a,n);Array.isArray(f)&&(c.easing=f),tT.Q.value&&u.q.waapi++;let d={delay:r,duration:n,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};h&&(d.pseudoElement=h);let p=t.animate(c,d);return tT.Q.value&&p.finished.finally(()=>{u.q.waapi--}),p}(e,i,r,l,n),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let t=tf(r,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(t):function(t,e,i){tb(e)?t.style.setProperty(e,i):t.style[e]=i}(e,i,t),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return(0,a.X)(Number(t))}get time(){return(0,a.X)(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=(0,a.f)(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&tx())?(this.animation.timeline=t,$.l):e(this)}}let tk={anticipate:ti,backInOut:te,circInOut:tr.tn};class tO extends tC{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in tk&&(t.ease=tk[t.ease])}(t),tp(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:r,element:n,...s}=this.options;if(!e)return;if(void 0!==t){e.set(t);return}let o=new tg({...s,autoplay:!1}),l=(0,a.f)(this.finishedTime??this.time);e.setWithVelocity(o.sample(l-10).value,o.sample(l).value,10),o.stop()}}let tM=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(d.f.test(t)||"0"===t)&&!t.startsWith("url(")),tB=new Set(["opacity","clipPath","filter","transform"]),tV=tw(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class tD extends tm{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:r=0,repeatDelay:n=0,repeatType:s="loop",keyframes:o,name:a,motionValue:u,element:h,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=l.k.now();let f={autoplay:t,delay:e,type:i,repeat:r,repeatDelay:n,repeatType:s,name:a,motionValue:u,element:h,...c},d=h?.KeyframeResolver||tv.h;this.keyframeResolver=new d(o,(t,e,i)=>this.onKeyframesResolved(t,e,f,!i),a,u,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,r){this.keyframeResolver=void 0;let{name:n,type:s,velocity:o,delay:a,isHandoff:u,onUpdate:c}=i;this.resolvedAt=l.k.now(),!function(t,e,i,r){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=tM(n,e),a=tM(s,e);return(0,h.$)(o===a,`You are trying to animate ${e} from "${n}" to "${s}". ${n} is not an animatable value - to enable this animation set ${n} to a value animatable to ${s} via the \`style\` property.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},d=!u&&function(t){let{motionValue:e,name:i,repeatDelay:r,repeatType:n,damping:s,type:o}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return tV()&&i&&tB.has(i)&&("transform"!==i||!l)&&!a&&!r&&"mirror"!==n&&0!==s&&"inertia"!==o}(f)?new tO({...f,element:f.motionValue.owner.current}):new tg(f);d.finished.then(()=>this.notifyFinished()).catch($.l),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),(0,tv.q)()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let tj=t=>null!==t;var tL=i(1023);let tU={type:"spring",stiffness:500,damping:25,restSpeed:10},tF=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),tN={type:"keyframes",duration:.8},tI={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},t_=(t,{keyframes:e})=>e.length>2?tN:tL.f.has(t)?t.startsWith("scale")?tF(e[1]):tU:tI,tq=(t,e,i,s={},o,l)=>u=>{let h=(0,r.r)(s,t)||{},c=h.delay||s.delay||0,{elapsed:f=0}=s;f-=(0,a.f)(c);let d={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...h,delay:-f,onUpdate:t=>{e.set(t),h.onUpdate&&h.onUpdate(t)},onComplete:()=>{u(),h.onComplete&&h.onComplete()},name:t,motionValue:e,element:l?void 0:o};!function({when:t,delay:e,delayChildren:i,staggerChildren:r,staggerDirection:n,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(h)&&Object.assign(d,t_(t,d)),d.duration&&(d.duration=(0,a.f)(d.duration)),d.repeatDelay&&(d.repeatDelay=(0,a.f)(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let p=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(d.duration=0,0!==d.delay||(p=!0)),(tl.W.instantAnimations||tl.W.skipAnimations)&&(p=!0,d.duration=0,d.delay=0),d.allowFlatten=!h.type&&!h.ease,p&&!l&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},r){let n=t.filter(tj),s=e&&"loop"!==i&&e%2==1?0:n.length-1;return n[s]}(d.keyframes,h);if(void 0!==t){n.Gt.update(()=>{d.onUpdate(t),d.onComplete()});return}}return h.isSync?new tg(d):new tD(d)}},1906:(t,e,i)=>{"use strict";i.d(e,{_:()=>p});var r=i(2723),n=i(9386),s=i(6542),o=i(7298),a=i(9330),l=i(5527),u=i(1262),h=i(9655);function c(t,e,{delay:i=0,transitionOverride:r,type:f}={}){let{transition:d=t.getDefaultTransition(),transitionEnd:p,...m}=e;r&&(d=r);let y=[],g=f&&t.animationState&&t.animationState.getState()[f];for(let e in m){let r=t.getValue(e,t.latestValues[e]??null),a=m[e];if(void 0===a||g&&function({protectedKeys:t,needsAnimating:e},i){let r=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,r}(g,e))continue;let c={delay:i,...(0,n.r)(d||{},e)},f=r.get();if(void 0!==f&&!r.isAnimating&&!Array.isArray(a)&&a===f&&!c.velocity)continue;let p=!1;if(window.MotionHandoffAnimation){let i=(0,u.P)(t);if(i){let t=window.MotionHandoffAnimation(i,e,s.Gt);null!==t&&(c.startTime=t,p=!0)}}(0,l.g)(t,e),r.start((0,h.f)(e,r,a,t.shouldReduceMotion&&o.$.has(e)?{type:!1}:c,t,p));let v=r.animation;v&&y.push(v)}return p&&Promise.all(y).then(()=>{s.Gt.update(()=>{p&&(0,a.U)(t,p)})}),y}function f(t,e,i={}){let n=(0,r.K)(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let o=n?()=>Promise.all(c(t,n,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(r=0)=>{let{delayChildren:n=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e,i=0,r=0,n=1,s){let o=[],a=(t.variantChildren.size-1)*r,l=1===n?(t=0)=>t*r:(t=0)=>a-t*r;return Array.from(t.variantChildren).sort(d).forEach((t,r)=>{t.notify("AnimationStart",e),o.push(f(t,e,{...s,delay:i+l(r)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,n+r,o,a,i)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([o(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}function d(t,e){return t.sortNodePosition(e)}function p(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>f(t,e,i)));else if("string"==typeof e)n=f(t,e,i);else{let s="function"==typeof e?(0,r.K)(t,e,i.custom):e;n=Promise.all(c(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})}},7404:(t,e,i)=>{"use strict";i.d(e,{n:()=>r});let r="data-"+(0,i(1938).I)("framerAppearId")},1262:(t,e,i)=>{"use strict";i.d(e,{P:()=>n});var r=i(7404);function n(t){return t.props[r.n]}},9366:(t,e,i)=>{"use strict";i.d(e,{p:()=>r});let r=t=>Array.isArray(t)},7866:(t,e,i)=>{"use strict";function r(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}i.d(e,{P:()=>rp});var n,s,o=i(1906),a=i(9366);function l(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let r=0;rPromise.all(e.map(({animation:e,options:i})=>(0,o._)(t,e,i))),i=g(),n=!0,s=e=>(i,r)=>{let n=(0,d.K)(t,r,"exit"===e?t.presenceContext?.custom:void 0);if(n){let{transition:t,transitionEnd:e,...r}=n;i={...i,...r,...e}}return i};function h(o){let{props:h}=t,y=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;tw&&m,P=!1,R=Array.isArray(d)?d:[d],C=R.reduce(s(c),{});!1===T&&(C={});let{prevResolvedValues:k={}}=f,O={...k,...C},M=e=>{A=!0,v.has(e)&&(P=!0,v.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in O){let e=C[t],i=k[t];if(!b.hasOwnProperty(t))((0,a.p)(e)&&(0,a.p)(i)?l(e,i):e===i)?void 0!==e&&v.has(t)?M(t):f.protectedKeys[t]=!0:null!=e?M(t):v.add(t)}f.prevProp=d,f.prevResolvedValues=C,f.isActive&&(b={...b,...C}),n&&t.blockInitialAnimation&&(A=!1);let B=!(E&&S)||P;A&&B&&g.push(...R.map(t=>({animation:t,options:{type:c}})))}if(v.size){let e={};if("boolean"!=typeof h.initial){let i=(0,d.K)(t,Array.isArray(h.initial)?h.initial[0]:h.initial);i&&i.transition&&(e.transition=i.transition)}v.forEach(i=>{let r=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=r??null}),g.push({animation:e})}let T=!!g.length;return n&&(!1===h.initial||h.initial===h.animate)&&!t.manuallyAnimateOnMount&&(T=!1),n=!1,T?e(g):Promise.resolve()}return{animateChanges:h,setActive:function(e,r){if(i[e].isActive===r)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,r)),i[e].isActive=r;let n=h(e);for(let t in i)i[t].protectedKeys={};return n},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=g(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();r(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let w=0;class x extends v{constructor(){super(...arguments),this.id=w++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let r=this.node.animationState.setActive("exit",!t);e&&!t&&r.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}var T=i(916);let E={x:!1,y:!1};var S=i(6707),A=i(6542),P=i(8817),R=i(6825),C=i(9655);function k(t,e,i,r={passive:!0}){return t.addEventListener(e,i,r),()=>t.removeEventListener(e,i)}let O=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function M(t){return{point:{x:t.pageX,y:t.pageY}}}let B=t=>e=>O(e)&&t(e,M(e));function V(t,e,i,r){return k(t,e,B(i),r)}function D({top:t,left:e,right:i,bottom:r}){return{x:{min:e,max:i},y:{min:t,max:r}}}function j(t){return t.max-t.min}function L(t,e,i,r=.5){t.origin=r,t.originPoint=(0,P.k)(e.min,e.max,t.origin),t.scale=j(i)/j(e),t.translate=(0,P.k)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function U(t,e,i,r){L(t.x,e.x,i.x,r?r.originX:void 0),L(t.y,e.y,i.y,r?r.originY:void 0)}function F(t,e,i){t.min=i.min+e.min,t.max=t.min+j(e)}function N(t,e,i){t.min=e.min-i.min,t.max=t.min+j(e)}function I(t,e,i){N(t.x,e.x,i.x),N(t.y,e.y,i.y)}let _=()=>({translate:0,scale:1,origin:0,originPoint:0}),q=()=>({x:_(),y:_()}),W=()=>({min:0,max:0}),$=()=>({x:W(),y:W()});function z(t){return[t("x"),t("y")]}function X(t){return void 0===t||1===t}function G({scale:t,scaleX:e,scaleY:i}){return!X(t)||!X(e)||!X(i)}function K(t){return G(t)||H(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function H(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function Y(t,e,i,r,n){return void 0!==n&&(t=r+n*(t-r)),r+i*(t-r)+e}function Q(t,e=0,i=1,r,n){t.min=Y(t.min,e,i,r,n),t.max=Y(t.max,e,i,r,n)}function J(t,{x:e,y:i}){Q(t.x,e.translate,e.scale,e.originPoint),Q(t.y,i.translate,i.scale,i.originPoint)}function Z(t,e){t.min=t.min+e,t.max=t.max+e}function tt(t,e,i,r,n=.5){let s=(0,P.k)(t.min,t.max,n);Q(t,e,i,s,r)}function te(t,e){tt(t.x,e.x,e.scaleX,e.scale,e.originX),tt(t.y,e.y,e.scaleY,e.scale,e.originY)}function ti(t,e){return D(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}let tr=({current:t})=>t?t.ownerDocument.defaultView:null;function tn(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var ts=i(5527),to=i(1160),ta=i(3514);let tl=(t,e)=>Math.abs(t-e);class tu{constructor(t,e,{transformPagePoint:i,contextWindow:r,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=tf(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(tl(t.x,e.x)**2+tl(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:r}=t,{timestamp:n}=A.uv;this.history.push({...r,timestamp:n});let{onStart:s,onMove:o}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=th(e,this.transformPagePoint),A.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:r,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=tf("pointercancel"===t.type?this.lastMoveEventInfo:th(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),r&&r(t,s)},!O(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.contextWindow=r||window;let s=th(M(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=A.uv;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,tf(s,this.history)),this.removeListeners=(0,to.F)(V(this.contextWindow,"pointermove",this.handlePointerMove),V(this.contextWindow,"pointerup",this.handlePointerUp),V(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,A.WG)(this.updatePoint)}}function th(t,e){return e?{point:e(t.point)}:t}function tc(t,e){return{x:t.x-e.x,y:t.y-e.y}}function tf({point:t},e){return{point:t,delta:tc(t,td(e)),offset:tc(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,r=null,n=td(t);for(;i>=0&&(r=t[i],!(n.timestamp-r.timestamp>(0,ta.f)(.1)));)i--;if(!r)return{x:0,y:0};let s=(0,ta.X)(n.timestamp-r.timestamp);if(0===s)return{x:0,y:0};let o={x:(n.x-r.x)/s,y:(n.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,0)}}function td(t){return t[t.length-1]}var tp=i(4089),tm=i(3167);function ty(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function tg(t,e){let i=e.min-t.min,r=e.max-t.max;return e.max-e.min{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(M(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:r,onDragStart:n}=this.getProps();if(i&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===i||"y"===i?E[i]?null:(E[i]=!0,()=>{E[i]=!1}):E.x||E.y?null:(E.x=E.y=!0,()=>{E.x=E.y=!1}),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),z(t=>{let e=this.getAxisMotionValue(t).get()||0;if(S.KN.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let r=i.layout.layoutBox[t];r&&(e=j(r)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&A.Gt.postRender(()=>n(t,e)),(0,ts.g)(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:r,onDirectionLock:n,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(r&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>z(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:tr(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:r}=e;this.startAnimation(r);let{onDragEnd:n}=this.getProps();n&&A.Gt.postRender(()=>n(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:r}=this.getProps();if(!i||!tT(t,r,this.currentDirection))return;let n=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},r){return void 0!==e&&ti&&(t=r?(0,P.k)(i,t,r.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),n.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;t&&tn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:r,right:n}){return{x:ty(t.x,i,n),y:ty(t.y,e,r)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:tv(t,"left","right"),y:tv(t,"top","bottom")}}(e),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&z(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!tn(e))return!1;let r=e.current;(0,R.V)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let s=function(t,e,i){let r=ti(t,i),{scroll:n}=e;return n&&(Z(r.x,n.offset.x),Z(r.y,n.offset.y)),r}(r,n.root,this.visualElement.getTransformPagePoint()),o={x:tg((t=n.layout.layoutBox).x,s.x),y:tg(t.y,s.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=D(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:r,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(z(o=>{if(!tT(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,ts.g)(this.visualElement,t),i.start((0,C.f)(t,i,0,e,this.visualElement,!1))}stopAnimation(){z(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){z(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){z(e=>{let{drag:i}=this.getProps();if(!tT(e,i,this.currentDirection))return;let{projection:r}=this.visualElement,n=this.getAxisMotionValue(e);if(r&&r.layout){let{min:i,max:s}=r.layout.layoutBox[e];n.set(t[e]-(0,P.k)(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!tn(e)||!i||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};z(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();r[t]=function(t,e){let i=.5,r=j(t),n=j(e);return n>r?i=(0,tp.q)(e.min,e.max-r,t.min):r>n&&(i=(0,tp.q)(t.min,t.max-n,e.min)),(0,tm.q)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),z(e=>{if(!tT(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:s}=this.constraints[e];i.set((0,P.k)(n,s,r[e]))})}addListeners(){if(!this.visualElement.current)return;tw.set(this.visualElement,this);let t=V(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();tn(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),A.Gt.read(e);let n=k(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(z(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{n(),t(),r(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:n=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:r,dragConstraints:n,dragElastic:s,dragMomentum:o}}}function tT(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class tE extends v{constructor(t){super(t),this.removeGroupControls=T.l,this.removeListeners=T.l,this.controls=new tx(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||T.l}unmount(){this.removeGroupControls(),this.removeListeners()}}let tS=t=>(e,i)=>{t&&A.Gt.postRender(()=>t(e,i))};class tA extends v{constructor(){super(...arguments),this.removePointerDownListener=T.l}onPointerDown(t){this.session=new tu(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tr(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:tS(t),onStart:tS(e),onMove:i,onEnd:(t,e)=>{delete this.session,r&&A.Gt.postRender(()=>r(t,e))}}}mount(){this.removePointerDownListener=V(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var tP=i(2860);let{schedule:tR}=(0,i(7757).I)(queueMicrotask,!1);var tC=i(3200);let tk=(0,tC.createContext)(null),tO=(0,tC.createContext)({}),tM=(0,tC.createContext)({}),tB={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function tV(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let tD={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!S.px.test(t))return t;t=parseFloat(t)}let i=tV(t,e.target.x),r=tV(t,e.target.y);return`${i}% ${r}%`}};var tj=i(7093),tL=i(4831);let tU={};class tF extends tC.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:r}=this.props,{projection:n}=t;!function(t){for(let e in t)tU[e]=t[e],(0,tL.j)(e)&&(tU[e].isCSSVariable=!0)}(tI),n&&(e.group&&e.group.add(n),i&&i.register&&r&&i.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),tB.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:r,isPresent:n}=this.props,{projection:s}=i;return s&&(s.isPresent=n,r||t.layoutDependency!==e||void 0===e||t.isPresent!==n?s.willUpdate():this.safeToRemove(),t.isPresent===n||(n?s.promote():s.relegate()||A.Gt.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tR.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function tN(t){let[e,i]=function(t=!0){let e=(0,tC.useContext)(tk);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:r,register:n}=e,s=(0,tC.useId)();(0,tC.useEffect)(()=>{if(t)return n(s)},[t]);let o=(0,tC.useCallback)(()=>t&&r&&r(s),[s,r,t]);return!i&&r?[!1,o]:[!0]}(),r=(0,tC.useContext)(tO);return(0,tP.jsx)(tF,{...t,layoutGroup:r,switchLayoutGroup:(0,tC.useContext)(tM),isPresent:e,safeToRemove:i})}let tI={borderRadius:{...tD,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tD,borderTopRightRadius:tD,borderBottomLeftRadius:tD,borderBottomRightRadius:tD,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let r=tj.f.parse(t);if(r.length>5)return t;let n=tj.f.createTransformer(t),s="number"!=typeof r[0]?1:0,o=i.x.scale*e.x,a=i.y.scale*e.y;r[0+s]/=o,r[1+s]/=a;let l=(0,P.k)(o,a,.5);return"number"==typeof r[2+s]&&(r[2+s]/=l),"number"==typeof r[3+s]&&(r[3+s]/=l),n(r)}}};var t_=i(6651),tq=i(9386),tW=i(2304),t$=i(8485),tz=i(7671),tX=i(4613),tG=i(9946),tK=i(1262),tH=i(2985);let tY=(t,e)=>t.depth-e.depth;class tQ{constructor(){this.children=[],this.isDirty=!1}add(t){(0,tH.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,tH.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(tY),this.isDirty=!1,this.children.forEach(t)}}function tJ(t){return(0,tG.S)(t)?t.get():t}var tZ=i(1841);let t0=["TopLeft","TopRight","BottomLeft","BottomRight"],t1=t0.length,t2=t=>"string"==typeof t?parseFloat(t):t,t5=t=>"number"==typeof t||S.px.test(t);function t3(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let t6=t4(0,.5,tZ.yT),t8=t4(.5,.95,T.l);function t4(t,e,i){return r=>re?1:i((0,tp.q)(t,e,r))}function t9(t,e){t.min=e.min,t.max=e.max}function t7(t,e){t9(t.x,e.x),t9(t.y,e.y)}function et(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function ee(t,e,i,r,n){return t-=e,t=r+1/i*(t-r),void 0!==n&&(t=r+1/n*(t-r)),t}function ei(t,e,[i,r,n],s,o){!function(t,e=0,i=1,r=.5,n,s=t,o=t){if(S.KN.test(e)&&(e=parseFloat(e),e=(0,P.k)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,P.k)(s.min,s.max,r);t===s&&(a-=e),t.min=ee(t.min,e,i,a,n),t.max=ee(t.max,e,i,a,n)}(t,e[i],e[r],e[n],e.scale,s,o)}let er=["x","scaleX","originX"],en=["y","scaleY","originY"];function es(t,e,i,r){ei(t.x,e,er,i?i.x:void 0,r?r.x:void 0),ei(t.y,e,en,i?i.y:void 0,r?r.y:void 0)}function eo(t){return 0===t.translate&&1===t.scale}function ea(t){return eo(t.x)&&eo(t.y)}function el(t,e){return t.min===e.min&&t.max===e.max}function eu(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function eh(t,e){return eu(t.x,e.x)&&eu(t.y,e.y)}function ec(t){return j(t.x)/j(t.y)}function ef(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class ed{constructor(){this.members=[]}add(t){(0,tH.Kq)(this.members,t),t.scheduleRender()}remove(t){if((0,tH.Ai)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:r}=t.options;!1===r&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let ep={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},em=["","X","Y","Z"],ey={visibility:"hidden"},eg=0;function ev(t,e,i,r){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),r&&(r[t]=0))}function eb({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:r,resetTransform:n}){return class{constructor(t={},i=e?.()){this.id=eg++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,t_.Q.value&&(ep.nodes=ep.calculatedTargetDeltas=ep.calculatedProjections=0),this.nodes.forEach(eT),this.nodes.forEach(ek),this.nodes.forEach(eO),this.nodes.forEach(eE),t_.Q.addProjectionMetrics&&t_.Q.addProjectionMetrics(ep)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;tthis.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=tW.k.now(),r=({timestamp:e})=>{let n=e-i;n>=250&&((0,A.WG)(r),t(n-250))};return A.Gt.setup(r,!0),()=>(0,A.WG)(r)}(r,250),tB.hasAnimatedSinceResize&&(tB.hasAnimatedSinceResize=!1,this.nodes.forEach(eC))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||n.getDefaultTransition()||eL,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=n.getProps(),l=!this.targetLayout||!eh(this.targetLayout,r),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...(0,tq.r)(s,"layout"),onPlay:o,onComplete:a};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||eC(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,A.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(eM),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let r=(0,tK.P)(i);if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",A.Gt,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||j(this.snapshot.measuredBox.x)||j(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=$());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(et(this.prevProjectionDelta.x,this.projectionDelta.x),et(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),U(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&ef(this.projectionDelta.x,this.prevProjectionDelta.x)&&ef(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),t_.Q.value&&ep.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=q(),this.projectionDelta=q(),this.projectionDeltaWithTransform=q()}setAnimationOrigin(t,e=!1){let i;let r=this.snapshot,n=r?r.latestValues:{},s={...this.latestValues},o=q();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=$(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(ej));this.animationProgress=0,this.mixTargetDelta=e=>{let r=e/1e3;if(eV(o.x,t.x,r),eV(o.y,t.y,r),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,f,d,p;I(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),d=this.relativeTarget,p=this.relativeTargetOrigin,eD(d.x,p.x,a.x,r),eD(d.y,p.y,a.y,r),i&&(u=this.relativeTarget,f=i,el(u.x,f.x)&&el(u.y,f.y))&&(this.isProjectionDirty=!1),i||(i=$()),t7(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,r,n,s){n?(t.opacity=(0,P.k)(0,i.opacity??1,t6(r)),t.opacityExit=(0,P.k)(e.opacity??1,0,t8(r))):s&&(t.opacity=(0,P.k)(e.opacity??1,i.opacity??1,r));for(let n=0;n{tB.hasAnimatedSinceResize=!0,t$.q.layout++,this.motionValue||(this.motionValue=(0,tz.OQ)(0)),this.currentAnimation=function(t,e,i){let r=(0,tG.S)(t)?t:(0,tz.OQ)(t);return r.start((0,C.f)("",r,e,i)),r.animation}(this.motionValue,[0,1e3],{...t,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{t$.q.layout--},onComplete:()=>{t$.q.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop(!1)),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:r,latestValues:n}=t;if(e&&i&&r){if(this!==t&&this.layout&&r&&eI(this.options.animationType,this.layout.layoutBox,r.layoutBox)){i=this.target||$();let e=j(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let r=j(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+r}t7(e,i),te(e,n),U(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new ed),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let r=this.getStack();r&&r.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let r={};i.z&&ev("z",t,r,this.animationValues);for(let e=0;et.currentAnimation?.stop(!1)),this.root.nodes.forEach(eA),this.root.sharedNodes.clear()}}}function ew(t){t.updateLayout()}function ex(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:r}=t.layout,{animationType:n}=t.options,s=e.source!==t.layout.source;"size"===n?z(t=>{let r=s?e.measuredBox[t]:e.layoutBox[t],n=j(r);r.min=i[t].min,r.max=r.min+n}):eI(n,e.layoutBox,i)&&z(r=>{let n=s?e.measuredBox[r]:e.layoutBox[r],o=j(i[r]);n.max=n.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+o)});let o=q();U(o,i,e.layoutBox);let a=q();s?U(a,t.applyTransform(r,!0),e.measuredBox):U(a,i,e.layoutBox);let l=!ea(o),u=!1;if(!t.resumeFrom){let r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:n,layout:s}=r;if(n&&s){let o=$();I(o,e.layoutBox,n.layoutBox);let a=$();I(a,i,s.layoutBox),eh(o,a)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function eT(t){t_.Q.value&&ep.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function eE(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function eS(t){t.clearSnapshot()}function eA(t){t.clearMeasurements()}function eP(t){t.isLayoutDirty=!1}function eR(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function eC(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ek(t){t.resolveTargetDelta()}function eO(t){t.calcProjection()}function eM(t){t.resetSkewAndRotation()}function eB(t){t.removeLeadSnapshot()}function eV(t,e,i){t.translate=(0,P.k)(e.translate,0,i),t.scale=(0,P.k)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function eD(t,e,i,r){t.min=(0,P.k)(e.min,i.min,r),t.max=(0,P.k)(e.max,i.max,r)}function ej(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let eL={duration:.45,ease:[.4,0,.1,1]},eU=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),eF=eU("applewebkit/")&&!eU("chrome/")?Math.round:T.l;function eN(t){t.min=eF(t.min),t.max=eF(t.max)}function eI(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(ec(e)-ec(i)))}function e_(t){return t!==t.root&&t.scroll?.wasRoot}let eq=eb({attachResizeListener:(t,e)=>k(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),eW={current:void 0},e$=eb({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!eW.current){let t=new eq({});t.mount(window),t.setOptions({layoutScroll:!0}),eW.current=t}return eW.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function ez(t,e){let i=function(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){let e=document,i=(void 0)??e.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}(t),r=new AbortController;return[i,{passive:!0,...e,signal:r.signal},()=>r.abort()]}function eX(t){return!("touch"===t.pointerType||E.x||E.y)}function eG(t,e,i){let{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=r["onHover"+i];n&&A.Gt.postRender(()=>n(e,M(e)))}class eK extends v{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[r,n,s]=ez(t,i),o=t=>{if(!eX(t))return;let{target:i}=t,r=e(i,t);if("function"!=typeof r||!i)return;let s=t=>{eX(t)&&(r(t),i.removeEventListener("pointerleave",s))};i.addEventListener("pointerleave",s,n)};return r.forEach(t=>{t.addEventListener("pointerenter",o,n)}),s}(t,(t,e)=>(eG(this.node,e,"Start"),t=>eG(this.node,t,"End"))))}unmount(){}}class eH extends v{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,to.F)(k(this.node.current,"focus",()=>this.onFocus()),k(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let eY=(t,e)=>!!e&&(t===e||eY(t,e.parentElement)),eQ=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),eJ=new WeakSet;function eZ(t){return e=>{"Enter"===e.key&&t(e)}}function e0(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let e1=(t,e)=>{let i=t.currentTarget;if(!i)return;let r=eZ(()=>{if(eJ.has(i))return;e0(i,"down");let t=eZ(()=>{e0(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>e0(i,"cancel"),e)});i.addEventListener("keydown",r,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",r),e)};function e2(t){return O(t)&&!(E.x||E.y)}function e5(t,e,i){let{props:r}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=r["onTap"+("End"===i?"":i)];n&&A.Gt.postRender(()=>n(e,M(e)))}class e3 extends v{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[r,n,s]=ez(t,i),o=t=>{let r=t.currentTarget;if(!e2(t))return;eJ.add(r);let s=e(r,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),eJ.has(r)&&eJ.delete(r),e2(t)&&"function"==typeof s&&s(t,{success:e})},a=t=>{o(t,r===window||r===document||i.useGlobalTarget||eY(r,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",l,n)};return r.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,n),t instanceof HTMLElement&&(t.addEventListener("focus",t=>e1(t,n)),eQ.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(e5(this.node,e,"Start"),(t,{success:e})=>e5(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let e6=new WeakMap,e8=new WeakMap,e4=t=>{let e=e6.get(t.target);e&&e(t)},e9=t=>{t.forEach(e4)},e7={some:0,all:1};class it extends v{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:r="some",once:n}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof r?r:e7[r]};return function(t,e,i){let r=function({root:t,...e}){let i=t||document;e8.has(i)||e8.set(i,{});let r=e8.get(i),n=JSON.stringify(e);return r[n]||(r[n]=new IntersectionObserver(e9,{root:t,...e})),r[n]}(e);return e6.set(t,i),r.observe(t),()=>{e6.delete(t),r.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,n&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:r}=this.node.getProps(),s=e?i:r;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let ie=(0,tC.createContext)({strict:!1}),ii=(0,tC.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),ir=(0,tC.createContext)({});function is(t){return r(t.animate)||c.some(e=>u(t[e]))}function io(t){return!!(is(t)||t.variants)}function ia(t){return Array.isArray(t)?t.join(" "):t}var il=i(6892);let iu={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ih={};for(let t in iu)ih[t]={isEnabled:e=>iu[t].some(t=>!!e[t])};let ic=Symbol.for("motionComponentSymbol");var id=i(7404),ip=i(6),im=i(1023);function iy(t,{layout:e,layoutId:i}){return im.f.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!tU[t]||"opacity"===t)}let ig=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var iv=i(6350);let ib={...iv.ai,transform:Math.round},iw={rotate:S.uj,rotateX:S.uj,rotateY:S.uj,rotateZ:S.uj,scale:iv.hs,scaleX:iv.hs,scaleY:iv.hs,scaleZ:iv.hs,skew:S.uj,skewX:S.uj,skewY:S.uj,distance:S.px,translateX:S.px,translateY:S.px,translateZ:S.px,x:S.px,y:S.px,z:S.px,perspective:S.px,transformPerspective:S.px,opacity:iv.X4,originX:S.gQ,originY:S.gQ,originZ:S.px},ix={borderWidth:S.px,borderTopWidth:S.px,borderRightWidth:S.px,borderBottomWidth:S.px,borderLeftWidth:S.px,borderRadius:S.px,radius:S.px,borderTopLeftRadius:S.px,borderTopRightRadius:S.px,borderBottomRightRadius:S.px,borderBottomLeftRadius:S.px,width:S.px,maxWidth:S.px,height:S.px,maxHeight:S.px,top:S.px,right:S.px,bottom:S.px,left:S.px,padding:S.px,paddingTop:S.px,paddingRight:S.px,paddingBottom:S.px,paddingLeft:S.px,margin:S.px,marginTop:S.px,marginRight:S.px,marginBottom:S.px,marginLeft:S.px,backgroundPositionX:S.px,backgroundPositionY:S.px,...iw,zIndex:ib,fillOpacity:iv.X4,strokeOpacity:iv.X4,numOctaves:ib},iT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iE=im.U.length;function iS(t,e,i){let{style:r,vars:n,transformOrigin:s}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(im.f.has(t)){o=!0;continue}if((0,tL.j)(t)){n[t]=i;continue}{let e=ig(i,ix[t]);t.startsWith("origin")?(a=!0,s[t]=e):r[t]=e}}if(!e.transform&&(o||i?r.transform=function(t,e,i){let r="",n=!0;for(let s=0;s({style:{},transform:{},transformOrigin:{},vars:{}});function iP(t,e,i){for(let r in e)(0,tG.S)(e[r])||iy(r,i)||(t[r]=e[r])}let iR=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function iC(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||iR.has(t)}let ik=t=>!iC(t);try{!function(t){t&&(ik=e=>e.startsWith("on")?!iC(e):t(e))}(require("@emotion/is-prop-valid").default)}catch{}let iO=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function iM(t){if("string"!=typeof t||t.includes("-"));else if(iO.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let iB={offset:"stroke-dashoffset",array:"stroke-dasharray"},iV={offset:"strokeDashoffset",array:"strokeDasharray"};function iD(t,{attrX:e,attrY:i,attrScale:r,pathLength:n,pathSpacing:s=1,pathOffset:o=0,...a},l,u,h){if(iS(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:f}=t;c.transform&&(f.transform=c.transform,delete c.transform),(f.transform||c.transformOrigin)&&(f.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),f.transform&&(f.transformBox=h?.transformBox??"fill-box",delete c.transformBox),void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==r&&(c.scale=r),void 0!==n&&function(t,e,i=1,r=0,n=!0){t.pathLength=1;let s=n?iB:iV;t[s.offset]=S.px.transform(-r);let o=S.px.transform(e),a=S.px.transform(i);t[s.array]=`${o} ${a}`}(c,n,s,o,!1)}let ij=()=>({...iA(),attrs:{}}),iL=t=>"string"==typeof t&&"svg"===t.toLowerCase();var iU=i(2943),iF=i(5445);let iN=t=>(e,i)=>{let n=(0,tC.useContext)(ir),s=(0,tC.useContext)(tk),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,s){return{latestValues:function(t,e,i,n){let s={},o=n(t,{});for(let t in o)s[t]=tJ(o[t]);let{initial:a,animate:l}=t,u=is(t),h=io(t);e&&h&&!u&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===l&&(l=e.animate));let c=!!i&&!1===i.initial,f=(c=c||!1===a)?l:a;if(f&&"boolean"!=typeof f&&!r(f)){let e=Array.isArray(f)?f:[f];for(let i=0;ie=>e.test(t),iG=[iv.ai,S.px,S.KN,S.uj,S.vw,S.vh,{test:t=>"auto"===t,parse:t=>t}],iK=t=>iG.find(iX(t)),iH=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),iY=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var iQ=i(8207);let iJ=t=>/^0[^.\s]+$/u.test(t);var iZ=i(8979);let i0=new Set(["brightness","contrast","saturate","opacity"]);function i1(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=i.match(iZ.S)||[];if(!r)return t;let n=i.replace(r,""),s=i0.has(e)?1:0;return r!==i&&(s*=100),e+"("+s+n+")"}let i2=/\b([a-z-]*)\(.*?\)/gu,i5={...tj.f,getAnimatableNone:t=>{let e=t.match(i2);return e?e.map(i1).join(" "):t}};var i3=i(1725);let i6={...ix,color:i3.y,backgroundColor:i3.y,outlineColor:i3.y,fill:i3.y,stroke:i3.y,borderColor:i3.y,borderTopColor:i3.y,borderRightColor:i3.y,borderBottomColor:i3.y,borderLeftColor:i3.y,filter:i5,WebkitFilter:i5},i8=t=>i6[t];function i4(t,e){let i=i8(t);return i!==i5&&(i=tj.f),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let i9=new Set(["auto","none","0"]);var i7=i(1065);class rt extends iQ.h{constructor(t,e,i,r,n){super(t,e,i,r,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let re=[...iG,i3.y,tj.f],ri=t=>re.find(iX(t)),rr={current:null},rn={current:!1},rs=new WeakMap,ro=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ra{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:n,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=iQ.h,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=tW.k.now();this.renderScheduledAtthis.bindToMotionValue(e,t)),rn.current||function(){if(rn.current=!0,il.B){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>rr.current=t.matches;t.addListener(e),e()}else rr.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rr.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),(0,A.WG)(this.notifyUpdate),(0,A.WG)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let r=im.f.has(t);r&&this.onBindTransform&&this.onBindTransform();let n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&A.Gt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{n(),s(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in ih){let e=ih[t];if(!e)continue;let{isEnabled:i,Feature:r}=e;if(!this.features[t]&&r&&i(this.props)&&(this.features[t]=new r(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;ee.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,tz.OQ)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=i&&("string"==typeof i&&(iH(i)||iJ(i))?i=parseFloat(i):!ri(i)&&tj.f.test(e)&&(i=i4(t,e)),this.setBaseTarget(t,(0,tG.S)(i)?i.get():i)),(0,tG.S)(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e;let{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let r=(0,iU.a)(this.props,i,this.presenceContext?.custom);r&&(e=r[t])}if(i&&void 0!==e)return e;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||(0,tG.S)(r)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new tX.v),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class rl extends ra{constructor(){super(...arguments),this.KeyframeResolver=rt}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,tG.S)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function ru(t,{style:e,vars:i},r,n){for(let s in Object.assign(t.style,e,n&&n.getProjectionStyles(r)),i)t.style.setProperty(s,i[s])}class rh extends rl{constructor(){super(...arguments),this.type="html",this.renderInstance=ru}readValueFromInstance(t,e){if(im.f.has(e))return(0,i$.I)(t,e);{let i=window.getComputedStyle(t),r=((0,tL.j)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return ti(t,e)}build(t,e,i){iS(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return iI(t,e,i)}}var rc=i(1938);let rf=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);class rd extends rl{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(im.f.has(e)){let t=i8(e);return t&&t.default||0}return e=rf.has(e)?e:(0,rc.I)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return iq(t,e,i)}build(t,e,i){iD(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,r){!function(t,e,i,r){for(let i in ru(t,e,void 0,r),e.attrs)t.setAttribute(rf.has(i)?i:(0,rc.I)(i),e.attrs[i])}(t,e,0,r)}mount(t){this.isSVGTag=iL(t.tagName),super.mount(t)}}let rp=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,r)=>"create"===r?t:(e.has(r)||e.set(r,t(r)),e.get(r))})}((n={animation:{Feature:b},exit:{Feature:x},inView:{Feature:it},tap:{Feature:e3},focus:{Feature:eH},hover:{Feature:eK},pan:{Feature:tA},drag:{Feature:tE,ProjectionNode:e$,MeasureLayout:tN},layout:{ProjectionNode:e$,MeasureLayout:tN}},s=(t,e)=>iM(t)?new rd(e):new rh(e,{allowProjection:t!==tC.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function(t){var e,i;let{preloadedFeatures:r,createVisualElement:n,useRender:s,useVisualState:o,Component:a}=t;function l(t,e){var i;let r;let l={...(0,tC.useContext)(ii),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,tC.useContext)(tO).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:h}=l,c=function(t){let{initial:e,animate:i}=function(t,e){if(is(t)){let{initial:e,animate:i}=t;return{initial:!1===e||u(e)?e:void 0,animate:u(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,tC.useContext)(ir));return(0,tC.useMemo)(()=>({initial:e,animate:i}),[ia(e),ia(i)])}(t),f=o(t,h);if(!h&&il.B){(0,tC.useContext)(ie).strict;let t=function(t){let{drag:e,layout:i}=ih;if(!e&&!i)return{};let r={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(l);r=t.MeasureLayout,c.visualElement=function(t,e,i,r,n){let{visualElement:s}=(0,tC.useContext)(ir),o=(0,tC.useContext)(ie),a=(0,tC.useContext)(tk),l=(0,tC.useContext)(ii).reducedMotion,u=(0,tC.useRef)(null);r=r||o.renderer,!u.current&&r&&(u.current=r(t,{visualState:e,parent:s,props:i,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:l}));let h=u.current,c=(0,tC.useContext)(tM);h&&!h.projection&&n&&("html"===h.type||"svg"===h.type)&&function(t,e,i,r){let{layoutId:n,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:h}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:n,layout:s,alwaysMeasureLayout:!!o||a&&tn(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:l,layoutRoot:u})}(u.current,i,n,c);let f=(0,tC.useRef)(!1);(0,tC.useInsertionEffect)(()=>{h&&f.current&&h.update(i,a)});let d=i[id.n],p=(0,tC.useRef)(!!d&&!window.MotionHandoffIsComplete?.(d)&&window.MotionHasOptimisedAnimation?.(d));return(0,ip.E)(()=>{h&&(f.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),tR.render(h.render),p.current&&h.animationState&&h.animationState.animateChanges())}),(0,tC.useEffect)(()=>{h&&(!p.current&&h.animationState&&h.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(d)}),p.current=!1))}),h}(a,f,l,n,t.ProjectionNode)}return(0,tP.jsxs)(ir.Provider,{value:c,children:[r&&c.visualElement?(0,tP.jsx)(r,{visualElement:c.visualElement,...l}):null,s(a,t,(i=c.visualElement,(0,tC.useCallback)(t=>{t&&f.onMount&&f.onMount(t),i&&(t?i.mount(t):i.unmount()),e&&("function"==typeof e?e(t):tn(e)&&(e.current=t))},[i])),f,h,c.visualElement)]})}r&&function(t){for(let e in t)ih[e]={...ih[e],...t[e]}}(r),l.displayName="motion.".concat("string"==typeof a?a:"create(".concat(null!==(i=null!==(e=a.displayName)&&void 0!==e?e:a.name)&&void 0!==i?i:"",")"));let h=(0,tC.forwardRef)(l);return h[ic]=a,h}({...iM(t)?iW:i_,preloadedFeatures:n,useRender:function(t=!1){return(e,i,r,{latestValues:n},s)=>{let o=(iM(e)?function(t,e,i,r){let n=(0,tC.useMemo)(()=>{let i=ij();return iD(i,e,iL(r),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};iP(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e){let i={},r=function(t,e){let i=t.style||{},r={};return iP(r,i,t),Object.assign(r,function({transformTemplate:t},e){return(0,tC.useMemo)(()=>{let i=iA();return iS(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),r}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=r,i})(i,n,s,e),a=function(t,e,i){let r={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&(ik(n)||!0===i&&iC(n)||!e&&!iC(n)||t.draggable&&n.startsWith("onDrag"))&&(r[n]=t[n]);return r}(i,"string"==typeof e,t),l=e!==tC.Fragment?{...a,...o,ref:r}:{},{children:u}=i,h=(0,tC.useMemo)(()=>(0,tG.S)(u)?u.get():u,[u]);return(0,tC.createElement)(e,{...l,children:h})}}(e),createVisualElement:s,Component:t})}))},1938:(t,e,i)=>{"use strict";i.d(e,{I:()=>r});let r=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},2723:(t,e,i)=>{"use strict";i.d(e,{K:()=>n});var r=i(2943);function n(t,e,i){let n=t.getProps();return(0,r.a)(n,e,void 0!==i?i:n.custom,t)}},2943:(t,e,i)=>{"use strict";function r(t,e,i,r){if("function"==typeof e||("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e)){let[n,s]=function(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}(r);e=e(void 0!==i?i:t.custom,n,s)}return e}i.d(e,{a:()=>r})},9330:(t,e,i)=>{"use strict";i.d(e,{U:()=>o});var r=i(7671),n=i(9366),s=i(2723);function o(t,e){let{transitionEnd:i={},transition:o={},...a}=(0,s.K)(t,e)||{};for(let e in a={...a,...i}){var l;let i=(l=a[e],(0,n.p)(l)?l[l.length-1]||0:l);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,r.OQ)(i))}}},6892:(t,e,i)=>{"use strict";i.d(e,{B:()=>r});let r="undefined"!=typeof window},5445:(t,e,i)=>{"use strict";i.d(e,{M:()=>n});var r=i(3200);function n(t){let e=(0,r.useRef)(null);return null===e.current&&(e.current=t()),e.current}},6:(t,e,i)=>{"use strict";i.d(e,{E:()=>n});var r=i(3200);let n=i(6892).B?r.useLayoutEffect:r.useEffect},5527:(t,e,i)=>{"use strict";i.d(e,{g:()=>s});var r=i(1322),n=i(9946);function s(t,e){let i=t.getValue("willChange");if((0,n.S)(i)&&i.add)return i.add(e);if(!i&&r.W.WillChange){let i=new r.W.WillChange("auto");t.addValue("willChange",i),i.add(e)}}},9946:(t,e,i)=>{"use strict";i.d(e,{S:()=>r});let r=t=>!!(t&&t.getVelocity)},8207:(t,e,i)=>{"use strict";i.d(e,{h:()=>f,q:()=>c});var r=i(1065),n=i(6542);let s=new Set,o=!1,a=!1,l=!1;function u(){if(a){let t=Array.from(s).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=(0,r.W9)(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}a=!1,o=!1,s.forEach(t=>t.complete(l)),s.clear()}function h(){s.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(a=!0)})}function c(){l=!0,h(),u(),l=!1}class f{constructor(t,e,i,r,n,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=r,this.element=n,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(s.add(this),o||(o=!0,n.Gt.read(h),n.Gt.resolveKeyframes(u))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:r}=this;if(null===t[0]){let n=r?.get(),s=t[t.length-1];if(void 0!==n)t[0]=n;else if(i&&e){let r=i.readValue(e,s);null!=r&&(t[0]=r)}void 0===t[0]&&(t[0]=s),r&&void 0===n&&r.set(t[0])}!function(t){for(let e=1;e{"use strict";i.d(e,{E4:()=>a,Hr:()=>c,W9:()=>h});var r=i(3307),n=i(1023),s=i(6350),o=i(6707);let a=t=>t===s.ai||t===o.px,l=new Set(["x","y","z"]),u=n.U.filter(t=>!l.has(t));function h(t){let e=[];return u.forEach(i=>{let r=t.getValue(i);void 0!==r&&(e.push([i,r.get()]),r.set(i.startsWith("scale")?1:0))}),e}let c={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>(0,r.r)(e,"x"),y:(t,{transform:e})=>(0,r.r)(e,"y")};c.translateX=c.x,c.translateY=c.y},9386:(t,e,i)=>{"use strict";function r(t,e){return t?.[e]??t?.default??t}i.d(e,{r:()=>r})},4831:(t,e,i)=>{"use strict";i.d(e,{j:()=>n,p:()=>o});let r=t=>e=>"string"==typeof e&&e.startsWith(t),n=r("--"),s=r("var(--"),o=t=>!!s(t)&&a.test(t.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},7757:(t,e,i)=>{"use strict";i.d(e,{I:()=>o});var r=i(1322);let n=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var s=i(6651);function o(t,e){let i=!1,o=!0,a={delta:0,timestamp:0,isProcessing:!1},l=()=>i=!0,u=n.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,r=new Set,n=!1,o=!1,a=new WeakSet,l={delta:0,timestamp:0,isProcessing:!1},u=0;function h(e){a.has(e)&&(c.schedule(e),t()),u++,e(l)}let c={schedule:(t,e=!1,s=!1)=>{let o=s&&n?i:r;return e&&a.add(t),o.has(t)||o.add(t),t},cancel:t=>{r.delete(t),a.delete(t)},process:t=>{if(l=t,n){o=!0;return}n=!0,[i,r]=[r,i],i.forEach(h),e&&s.Q.value&&s.Q.value.frameloop[e].push(u),u=0,i.clear(),n=!1,o&&(o=!1,c.process(t))}};return c}(l,e?i:void 0),t),{}),{setup:h,read:c,resolveKeyframes:f,preUpdate:d,update:p,preRender:m,render:y,postRender:g}=u,v=()=>{let n=r.W.useManualTiming?a.timestamp:performance.now();i=!1,r.W.useManualTiming||(a.delta=o?1e3/60:Math.max(Math.min(n-a.timestamp,40),1)),a.timestamp=n,a.isProcessing=!0,h.process(a),c.process(a),f.process(a),d.process(a),p.process(a),m.process(a),y.process(a),g.process(a),a.isProcessing=!1,i&&e&&(o=!1,t(v))},b=()=>{i=!0,o=!0,a.isProcessing||t(v)};return{schedule:n.reduce((t,e)=>{let r=u[e];return t[e]=(t,e=!1,n=!1)=>(i||b(),r.schedule(t,e,n)),t},{}),cancel:t=>{for(let e=0;e{"use strict";i.d(e,{Gt:()=>n,PP:()=>a,WG:()=>s,uv:()=>o});var r=i(916);let{schedule:n,cancel:s,state:o,steps:a}=(0,i(7757).I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:r.l,!0)},2304:(t,e,i)=>{"use strict";let r;i.d(e,{k:()=>a});var n=i(1322),s=i(6542);function o(){r=void 0}let a={now:()=>(void 0===r&&a.set(s.uv.isProcessing||n.W.useManualTiming?s.uv.timestamp:performance.now()),r),set:t=>{r=t,queueMicrotask(o)}}},3307:(t,e,i)=>{"use strict";i.d(e,{I:()=>f,r:()=>c});let r=t=>180*t/Math.PI,n=t=>o(r(Math.atan2(t[1],t[0]))),s={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:n,rotateZ:n,skewX:t=>r(Math.atan(t[1])),skewY:t=>r(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},o=t=>((t%=360)<0&&(t+=360),t),a=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),l=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),u={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:a,scaleY:l,scale:t=>(a(t)+l(t))/2,rotateX:t=>o(r(Math.atan2(t[6],t[5]))),rotateY:t=>o(r(Math.atan2(-t[2],t[0]))),rotateZ:n,rotate:n,skewX:t=>r(Math.atan(t[4])),skewY:t=>r(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function h(t){return t.includes("scale")?1:0}function c(t,e){let i,r;if(!t||"none"===t)return h(e);let n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)i=u,r=n;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=s,r=e}if(!r)return h(e);let o=i[e],a=r[1].split(",").map(d);return"function"==typeof o?o(a):a[o]}let f=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return c(i,e)};function d(t){return parseFloat(t.trim())}},7298:(t,e,i)=>{"use strict";i.d(e,{$:()=>r});let r=new Set(["width","height","top","left","right","bottom",...i(1023).U])},1023:(t,e,i)=>{"use strict";i.d(e,{U:()=>r,f:()=>n});let r=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],n=new Set(r)},8485:(t,e,i)=>{"use strict";i.d(e,{q:()=>r});let r={layout:0,mainThread:0,waapi:0}},6651:(t,e,i)=>{"use strict";i.d(e,{Q:()=>r});let r={value:null,addProjectionMetrics:null}},8817:(t,e,i)=>{"use strict";i.d(e,{k:()=>r});let r=(t,e,i)=>t+(e-t)*i},7671:(t,e,i)=>{"use strict";i.d(e,{OQ:()=>h});var r=i(4613),n=i(1770),s=i(2304),o=i(6542);let a=t=>!isNaN(parseFloat(t)),l={current:void 0};class u{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=s.k.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty();e&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=s.k.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=a(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new r.v);let i=this.events[t].add(e);return"change"===t?()=>{i(),o.Gt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return l.current&&l.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=s.k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,n.f)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function h(t,e){return new u(t,e)}},7726:(t,e,i)=>{"use strict";i.d(e,{u:()=>n});var r=i(8763);let n={test:(0,i(7285).$)("#"),parse:function(t){let e="",i="",r="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),r=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),r=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,r+=r,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(r,16),alpha:n?parseInt(n,16)/255:1}},transform:r.B.transform}},615:(t,e,i)=>{"use strict";i.d(e,{V:()=>a});var r=i(6350),n=i(6707),s=i(5470),o=i(7285);let a={test:(0,o.$)("hsl","hue"),parse:(0,o.q)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:o=1})=>"hsla("+Math.round(t)+", "+n.KN.transform((0,s.a)(e))+", "+n.KN.transform((0,s.a)(i))+", "+(0,s.a)(r.X4.transform(o))+")"}},1725:(t,e,i)=>{"use strict";i.d(e,{y:()=>o});var r=i(7726),n=i(615),s=i(8763);let o={test:t=>s.B.test(t)||r.u.test(t)||n.V.test(t),parse:t=>s.B.test(t)?s.B.parse(t):n.V.test(t)?n.V.parse(t):r.u.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?s.B.transform(t):n.V.transform(t)}},8763:(t,e,i)=>{"use strict";i.d(e,{B:()=>u});var r=i(3167),n=i(6350),s=i(5470),o=i(7285);let a=t=>(0,r.q)(0,255,t),l={...n.ai,transform:t=>Math.round(a(t))},u={test:(0,o.$)("rgb","red"),parse:(0,o.q)("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:r=1})=>"rgba("+l.transform(t)+", "+l.transform(e)+", "+l.transform(i)+", "+(0,s.a)(n.X4.transform(r))+")"}},7285:(t,e,i)=>{"use strict";i.d(e,{$:()=>s,q:()=>o});var r=i(8979);let n=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,s=(t,e)=>i=>!!("string"==typeof i&&n.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),o=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[s,o,a,l]=n.match(r.S);return{[t]:parseFloat(s),[e]:parseFloat(o),[i]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},7093:(t,e,i)=>{"use strict";i.d(e,{V:()=>h,f:()=>p});var r=i(1725);let n=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var s=i(8979),o=i(5470);let a="number",l="color",u=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function h(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},s=[],o=0,h=e.replace(u,t=>(r.y.test(t)?(n.color.push(o),s.push(l),i.push(r.y.parse(t))):t.startsWith("var(")?(n.var.push(o),s.push("var"),i.push(t)):(n.number.push(o),s.push(a),i.push(parseFloat(t))),++o,"${}")).split("${}");return{values:i,split:h,indexes:n,types:s}}function c(t){return h(t).values}function f(t){let{split:e,types:i}=h(t),n=e.length;return t=>{let s="";for(let u=0;u"number"==typeof t?0:t,p={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(s.S)?.length||0)+(t.match(n)?.length||0)>0},parse:c,createTransformer:f,getAnimatableNone:function(t){let e=c(t);return f(t)(e.map(d))}}},6350:(t,e,i)=>{"use strict";i.d(e,{X4:()=>s,ai:()=>n,hs:()=>o});var r=i(3167);let n={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s={...n,transform:t=>(0,r.q)(0,1,t)},o={...n,default:1}},6707:(t,e,i)=>{"use strict";i.d(e,{KN:()=>s,gQ:()=>u,px:()=>o,uj:()=>n,vh:()=>a,vw:()=>l});let r=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),n=r("deg"),s=r("%"),o=r("px"),a=r("vh"),l=r("vw"),u={...s,parse:t=>s.parse(t)/100,transform:t=>s.transform(100*t)}},8979:(t,e,i)=>{"use strict";i.d(e,{S:()=>r});let r=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},5470:(t,e,i)=>{"use strict";i.d(e,{a:()=>r});let r=t=>Math.round(1e5*t)/1e5},2985:(t,e,i)=>{"use strict";function r(t,e){-1===t.indexOf(e)&&t.push(e)}function n(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}i.d(e,{Ai:()=>n,Kq:()=>r})},3167:(t,e,i)=>{"use strict";i.d(e,{q:()=>r});let r=(t,e,i)=>i>e?e:i{"use strict";i.d(e,{po:()=>s,tn:()=>a,yT:()=>o});var r=i(6012),n=i(8559);let s=t=>1-Math.sin(Math.acos(t)),o=(0,n.G)(s),a=(0,r.V)(s)},6012:(t,e,i)=>{"use strict";i.d(e,{V:()=>r});let r=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},8559:(t,e,i)=>{"use strict";i.d(e,{G:()=>r});let r=t=>e=>1-t(1-e)},6825:(t,e,i)=>{"use strict";i.d(e,{$:()=>r,V:()=>n});let r=()=>{},n=()=>{}},1322:(t,e,i)=>{"use strict";i.d(e,{W:()=>r});let r={}},916:(t,e,i)=>{"use strict";i.d(e,{l:()=>r});let r=t=>t},1160:(t,e,i)=>{"use strict";i.d(e,{F:()=>n});let r=(t,e)=>i=>e(t(i)),n=(...t)=>t.reduce(r)},4089:(t,e,i)=>{"use strict";i.d(e,{q:()=>r});let r=(t,e,i)=>{let r=e-t;return 0===r?1:(i-t)/r}},4613:(t,e,i)=>{"use strict";i.d(e,{v:()=>n});var r=i(2985);class n{constructor(){this.subscriptions=[]}add(t){return(0,r.Kq)(this.subscriptions,t),()=>(0,r.Ai)(this.subscriptions,t)}notify(t,e,i){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](t,e,i);else for(let n=0;n{"use strict";i.d(e,{X:()=>n,f:()=>r});let r=t=>1e3*t,n=t=>t/1e3},1770:(t,e,i)=>{"use strict";function r(t,e){return e?1e3/e*t:0}i.d(e,{f:()=>r})},3618:(t,e,i)=>{"use strict";i.d(e,{Wx:()=>u});var r=i(3200),n=Object.defineProperty,s=new Map,o=new WeakMap,a=0,l=void 0;function u(){var t;let{threshold:e,delay:i,trackVisibility:n,rootMargin:u,root:h,triggerOnce:c,skip:f,initialInView:d,fallbackInView:p,onChange:m}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[y,g]=r.useState(null),v=r.useRef(m),[b,w]=r.useState({inView:!!d,entry:void 0});v.current=m,r.useEffect(()=>{let t;if(!f&&y)return t=function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l;if(void 0===window.IntersectionObserver&&void 0!==r){let n=t.getBoundingClientRect();return e(r,{isIntersecting:r,target:t,intersectionRatio:"number"==typeof i.threshold?i.threshold:0,time:0,boundingClientRect:n,intersectionRect:n,rootBounds:n}),()=>{}}let{id:n,observer:u,elements:h}=function(t){let e=Object.keys(t).sort().filter(e=>void 0!==t[e]).map(e=>{var i;return"".concat(e,"_").concat("root"===e?(i=t.root)?(o.has(i)||(a+=1,o.set(i,a.toString())),o.get(i)):"0":t[e])}).toString(),i=s.get(e);if(!i){let r;let n=new Map,o=new IntersectionObserver(e=>{e.forEach(e=>{var i;let s=e.isIntersecting&&r.some(t=>e.intersectionRatio>=t);t.trackVisibility&&void 0===e.isVisible&&(e.isVisible=s),null==(i=n.get(e.target))||i.forEach(t=>{t(s,e)})})},t);r=o.thresholds||(Array.isArray(t.threshold)?t.threshold:[t.threshold||0]),i={id:e,observer:o,elements:n},s.set(e,i)}return i}(i),c=h.get(t)||[];return h.has(t)||h.set(t,c),c.push(e),u.observe(t),function(){c.splice(c.indexOf(e),1),0===c.length&&(h.delete(t),u.unobserve(t)),0===h.size&&(u.disconnect(),s.delete(n))}}(y,(e,i)=>{w({inView:e,entry:i}),v.current&&v.current(e,i),i.isIntersecting&&c&&t&&(t(),t=void 0)},{root:h,rootMargin:u,threshold:e,trackVisibility:n,delay:i},p),()=>{t&&t()}},[Array.isArray(e)?e.toString():e,y,h,u,c,f,n,p,i]);let x=null==(t=b.entry)?void 0:t.target,T=r.useRef(void 0);y||!x||c||f||T.current===x||(T.current=x,w({inView:!!d,entry:void 0}));let E=[g,b.inView,b.entry];return E.ref=E[0],E.inView=E[1],E.entry=E[2],E}r.Component}}]);