(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,41580,(e,t,r)=>{var i={675:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],i=t[1];return(r+i)*3/4-i},t.toByteArray=function(e){var t,r,a=l(e),n=a[0],s=a[1],u=new o((n+s)*3/4-s),c=0,d=s>0?n-4:n;for(r=0;r<d;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===s&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,i=e.length,o=i%3,a=[],n=0,s=i-o;n<s;n+=16383)a.push(function(e,t,i){for(var o,a=[],n=t;n<i;n+=3)o=(e[n]<<16&0xff0000)+(e[n+1]<<8&65280)+(255&e[n+2]),a.push(r[o>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}(e,n,n+16383>s?s:n+16383));return 1===o?a.push(r[(t=e[i-1])>>2]+r[t<<4&63]+"=="):2===o&&a.push(r[(t=(e[i-2]<<8)+e[i-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),a.join("")};for(var r=[],i=[],o="u">typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,s=a.length;n<s;++n)r[n]=a[n],i[a.charCodeAt(n)]=n;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var i=r===t?0:4-r%4;return[r,i]}i[45]=62,i[95]=63},72:function(e,t,r){"use strict";var i=r(675),o=r(783),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function n(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e){var i=e,o=t;if(("string"!=typeof o||""===o)&&(o="utf8"),!s.isEncoding(o))throw TypeError("Unknown encoding: "+o);var a=0|f(i,o),l=n(a),u=l.write(i,o);return u!==a&&(l=l.slice(0,u)),l}if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(M(e,ArrayBuffer)||e&&M(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(M(e,SharedArrayBuffer)||e&&M(e.buffer,SharedArrayBuffer)))return function(e,t,r){var i;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),s.prototype),i}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var c=e.valueOf&&e.valueOf();if(null!=c&&c!==e)return s.from(c,t,r);var h=function(e){if(s.isBuffer(e)){var t=0|p(e.length),r=n(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?n(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(h)return h;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),n(e<0?0:0|p(e))}function d(e){for(var t=e.length<0?0:0|p(e.length),r=n(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!s.TYPED_ARRAY_SUPPORT&&"u">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(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(u(e),e<=0)?n(e):void 0!==t?"string"==typeof r?n(e).fill(t,r):n(e).fill(t):n(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)};function p(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function f(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||M(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===r)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return C(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return I(e).length;default:if(o)return i?-1:C(e).length;t=(""+t).toLowerCase(),o=!0}}function h(e,t,r){var o,a,n,s=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);for(var o="",a=t;a<r;++a)o+=P[e[a]];return o}(this,t,r);case"utf8":case"utf-8":return _(this,t,r);case"ascii":return function(e,t,r){var i="";r=Math.min(e.length,r);for(var o=t;o<r;++o)i+=String.fromCharCode(127&e[o]);return i}(this,t,r);case"latin1":case"binary":return function(e,t,r){var i="";r=Math.min(e.length,r);for(var o=t;o<r;++o)i+=String.fromCharCode(e[o]);return i}(this,t,r);case"base64":return o=this,a=t,n=r,0===a&&n===o.length?i.fromByteArray(o):i.fromByteArray(o.slice(a,n));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var i=e.slice(t,r),o="",a=0;a<i.length;a+=2)o+=String.fromCharCode(i[a]+256*i[a+1]);return o}(this,t,r);default:if(s)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function g(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function m(e,t,r,i,o){var a;if(0===e.length)return -1;if("string"==typeof r?(i=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(a=r*=1)!=a&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(o)return -1;else r=e.length-1;else if(r<0)if(!o)return -1;else r=0;if("string"==typeof t&&(t=s.from(t,i)),s.isBuffer(t))return 0===t.length?-1:y(e,t,r,i,o);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(o)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return y(e,[t],r,i,o)}throw TypeError("val must be string, number or Buffer")}function y(e,t,r,i,o){var a,n=1,s=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return -1;n=2,s/=2,l/=2,r/=2}function u(e,t){return 1===n?e[t]:e.readUInt16BE(t*n)}if(o){var c=-1;for(a=r;a<s;a++)if(u(e,a)===u(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===l)return c*n}else -1!==c&&(a-=a-c),c=-1}else for(r+l>s&&(r=s-l),a=r;a>=0;a--){for(var d=!0,p=0;p<l;p++)if(u(e,a+p)!==u(t,p)){d=!1;break}if(d)return a}return -1}s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),M(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,o=0,a=Math.min(r,i);o<a;++o)if(e[o]!==t[o]){r=e[o],i=t[o];break}return r<i?-1:+(i<r)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,i=s.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var a=e[r];if(M(a,Uint8Array)&&(a=s.from(a)),!s.isBuffer(a))throw TypeError('"list" argument must be an Array of Buffers');a.copy(i,o),o+=a.length}return i},s.byteLength=f,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?_(this,0,e):h.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},a&&(s.prototype[a]=s.prototype.inspect),s.prototype.compare=function(e,t,r,i,o){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),t<0||r>e.length||i<0||o>this.length)throw RangeError("out of range index");if(i>=o&&t>=r)return 0;if(i>=o)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var a=o-i,n=r-t,l=Math.min(a,n),u=this.slice(i,o),c=e.slice(t,r),d=0;d<l;++d)if(u[d]!==c[d]){a=u[d],n=c[d];break}return a<n?-1:+(n<a)},s.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)};function _(e,t,r){r=Math.min(e.length,r);for(var i=[],o=t;o<r;){var a,n,s,l,u=e[o],c=null,d=u>239?4:u>223?3:u>191?2:1;if(o+d<=r)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(a=e[o+1]))==128&&(l=(31&u)<<6|63&a)>127&&(c=l);break;case 3:a=e[o+1],n=e[o+2],(192&a)==128&&(192&n)==128&&(l=(15&u)<<12|(63&a)<<6|63&n)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:a=e[o+1],n=e[o+2],s=e[o+3],(192&a)==128&&(192&n)==128&&(192&s)==128&&(l=(15&u)<<18|(63&a)<<12|(63&n)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),o+=d}var p=i,f=p.length;if(f<=4096)return String.fromCharCode.apply(String,p);for(var h="",g=0;g<f;)h+=String.fromCharCode.apply(String,p.slice(g,g+=4096));return h}function b(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,i,o,a){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<a)throw RangeError('"value" argument is out of bounds');if(r+i>e.length)throw RangeError("Index out of range")}function S(e,t,r,i,o,a){if(r+i>e.length||r<0)throw RangeError("Index out of range")}function v(e,t,r,i,a){return t*=1,r>>>=0,a||S(e,t,r,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,r,i,23,4),r+4}function E(e,t,r,i,a){return t*=1,r>>>=0,a||S(e,t,r,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,r,i,52,8),r+8}s.prototype.write=function(e,t,r,i){if(void 0===t)i="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)i=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i="utf8")):(i=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,a,n,s,l,u,c,d,p=this.length-t;if((void 0===r||r>p)&&(r=p),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var f=!1;;)switch(i){case"hex":return function(e,t,r,i){r=Number(r)||0;var o=e.length-r;i?(i=Number(i))>o&&(i=o):i=o;var a=t.length;i>a/2&&(i=a/2);for(var n=0;n<i;++n){var s,l=parseInt(t.substr(2*n,2),16);if((s=l)!=s)break;e[r+n]=l}return n}(this,e,t,r);case"utf8":case"utf-8":return o=t,a=r,T(C(e,this.length-o),this,o,a);case"ascii":return n=t,s=r,T(k(e),this,n,s);case"latin1":case"binary":return function(e,t,r,i){return T(k(t),e,r,i)}(this,e,t,r);case"base64":return l=t,u=r,T(I(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,d=r,T(function(e,t){for(var r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)i=(r=e.charCodeAt(a))>>8,o.push(r%256),o.push(i);return o}(e,this.length-c),this,c,d);default:if(f)throw TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),f=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,s.prototype),i},s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var i=this[e],o=1,a=0;++a<t&&(o*=256);)i+=this[e+a]*o;return i},s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var i=this[e+--t],o=1;t>0&&(o*=256);)i+=this[e+--t]*o;return i},s.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var i=this[e],o=1,a=0;++a<t&&(o*=256);)i+=this[e+a]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var i=t,o=1,a=this[e+--i];i>0&&(o*=256);)a+=this[e+--i]*o;return a>=(o*=128)&&(a-=Math.pow(2,8*t)),a},s.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),o.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),o.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),o.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),o.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,r,i){if(e*=1,t>>>=0,r>>>=0,!i){var o=Math.pow(2,8*r)-1;w(this,e,t,r,o,0)}var a=1,n=0;for(this[t]=255&e;++n<r&&(a*=256);)this[t+n]=e/a&255;return t+r},s.prototype.writeUIntBE=function(e,t,r,i){if(e*=1,t>>>=0,r>>>=0,!i){var o=Math.pow(2,8*r)-1;w(this,e,t,r,o,0)}var a=r-1,n=1;for(this[t+a]=255&e;--a>=0&&(n*=256);)this[t+a]=e/n&255;return t+r},s.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,i){if(e*=1,t>>>=0,!i){var o=Math.pow(2,8*r-1);w(this,e,t,r,o-1,-o)}var a=0,n=1,s=0;for(this[t]=255&e;++a<r&&(n*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/n|0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,i){if(e*=1,t>>>=0,!i){var o=Math.pow(2,8*r-1);w(this,e,t,r,o-1,-o)}var a=r-1,n=1,s=0;for(this[t+a]=255&e;--a>=0&&(n*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/n|0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return v(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return v(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return E(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return E(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,i){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<r&&(i=r),i===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(i<0)throw RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var o=i-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var a=o-1;a>=0;--a)e[a+t]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return o},s.prototype.fill=function(e,t,r,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),void 0!==i&&"string"!=typeof i)throw TypeError("encoding must be a string");if("string"==typeof i&&!s.isEncoding(i))throw TypeError("Unknown encoding: "+i);if(1===e.length){var o,a=e.charCodeAt(0);("utf8"===i&&a<128||"latin1"===i)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var n=s.isBuffer(e)?e:s.from(e,i),l=n.length;if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=n[o%l]}return this};var A=/[^+/0-9A-Za-z-_]/g;function C(e,t){t=t||1/0;for(var r,i=e.length,o=null,a=[],n=0;n<i;++n){if((r=e.charCodeAt(n))>55295&&r<57344){if(!o){if(r>56319||n+1===i){(t-=3)>-1&&a.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(t-=3)>-1&&a.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return a}function k(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function I(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(A,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function T(e,t,r,i){for(var o=0;o<i&&!(o+r>=t.length)&&!(o>=e.length);++o)t[o+r]=e[o];return o}function M(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var P=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var i=16*r,o=0;o<16;++o)t[i+o]=e[r]+e[o];return t}()},783:function(e,t){t.read=function(e,t,r,i,o){var a,n,s=8*o-i-1,l=(1<<s)-1,u=l>>1,c=-7,d=r?o-1:0,p=r?-1:1,f=e[t+d];for(d+=p,a=f&(1<<-c)-1,f>>=-c,c+=s;c>0;a=256*a+e[t+d],d+=p,c-=8);for(n=a&(1<<-c)-1,a>>=-c,c+=i;c>0;n=256*n+e[t+d],d+=p,c-=8);if(0===a)a=1-u;else{if(a===l)return n?NaN:1/0*(f?-1:1);n+=Math.pow(2,i),a-=u}return(f?-1:1)*n*Math.pow(2,a-i)},t.write=function(e,t,r,i,o,a){var n,s,l,u=8*a-o-1,c=(1<<u)-1,d=c>>1,p=5960464477539062e-23*(23===o),f=i?0:a-1,h=i?1:-1,g=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),n=c):(n=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-n))<1&&(n--,l*=2),n+d>=1?t+=p/l:t+=p*Math.pow(2,1-d),t*l>=2&&(n++,l/=2),n+d>=c?(s=0,n=c):n+d>=1?(s=(t*l-1)*Math.pow(2,o),n+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),n=0));o>=8;e[r+f]=255&s,f+=h,s/=256,o-=8);for(n=n<<o|s,u+=o;u>0;e[r+f]=255&n,f+=h,n/=256,u-=8);e[r+f-h]|=128*g}}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}},n=!0;try{i[e](r,r.exports,a),n=!1}finally{n&&delete o[e]}return r.exports}a.ab="/ROOT/node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_babel-plugin-react-compiler@1.0.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/compiled/buffer/",t.exports=a(72)},61584,e=>{"use strict";let t=(0,e.i(92603).createClient)("https://fxyarvoootmvlrveblfx.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImZ4eWFydm9vb3RtdmxydmVibGZ4Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTUxMTQzMDIsImV4cCI6MjA3MDY5MDMwMn0.4HM_RihHjvAz-ETTKXJFRH5Ea2_2ueHXl3GV1h_vmgA"),r=()=>null!==t;r()||console.warn("⚠️  Supabase not configured - running in local mode without auth/sync"),e.s(["isSupabaseConfigured",0,r,"supabase",0,t])},24856,3982,58998,41,24654,65299,42627,90072,37968,41014,13335,24979,34048,e=>{"use strict";let t=new Set(["canada","usa","europe","empires","world-cup","world-cup-ko","footy-clubs"]);function r(e){return t.has(e)?8:9}e.s(["EASY_MODE_COUNTRIES",0,{original:["Brazil","United States","Mexico","Colombia","Peru","Nigeria","Angola","Ecuador","Uganda","Bolivia","China","Argentina","France","United Kingdom","Indonesia","Iran","Italy","Canada","Venezuela","Egypt","Australia","Netherlands","Malaysia","Thailand","South Africa","Philippines","South Korea","Algeria","Belgium","United Arab Emirates","DR Congo","Ivory Coast","Cameroon","Ukraine","Morocco","Ethiopia","Dominican Republic","Costa Rica","Mozambique","Myanmar","Austria","Tanzania","Iraq","Honduras","Ireland","Czech Republic","Panama","Hungary","Tunisia","Ghana","Jordan","Belarus","Turkey","Vietnam","Russia","Germany","Japan","India","Spain","Saudi Arabia","Poland","Qatar","Denmark","Switzerland","Jamaica","Trinidad and Tobago","Kenya","Portugal","Croatia","Pakistan","Sweden","Haiti","Vatican City","Monaco","Liechtenstein","Maldives","Malta","Barbados","Singapore"],world:["India","China","United States","Brazil","Argentina","France","Spain","Portugal","Germany","Italy","United Kingdom","Netherlands","Belgium","Croatia","Morocco","Mexico","Japan","South Korea","Turkey","Iran","Canada","Australia","Serbia","Greece","Sweden","Norway","Denmark","Finland","Switzerland","Austria","Romania","Czech Republic","Hungary","Slovakia","Slovenia","Lithuania","Latvia","Georgia","Bosnia and Herzegovina","Montenegro","Chile","Peru","Venezuela","Ecuador","Paraguay","Uruguay","Bolivia","South Africa","DR Congo","Cameroon","Ivory Coast","Senegal","Ethiopia","Thailand","Vietnam","Indonesia","Philippines","Malaysia","Singapore","New Zealand","Russia","Iraq","Lebanon","Israel","Suriname","Guyana","Gabon","Palau","Micronesia","Saint Vincent and the Grenadines","Seychelles","Dominica","Qatar","Saudi Arabia","Japan","South Korea","Turkey","Iran"],special:["United States","China","Russia","India","United Kingdom","Japan","France","Turkey","Italy","Brazil","Pakistan","Indonesia","Germany","Israel","Iran","Spain","Australia","Egypt","Algeria","Ukraine","Poland","Vietnam","Saudi Arabia","Thailand","Sweden","Canada","Singapore","Greece","Nigeria","Mexico","Argentina","Bangladesh","Netherlands","Myanmar","Norway","Portugal","South Africa","Philippines","Malaysia","Iraq","Switzerland","Colombia","Chile","Finland","Peru","Venezuela","Romania","Ethiopia","Czech Republic","United Arab Emirates","Hungary","Angola","Kazakhstan","Morocco","Belgium","Serbia","Ecuador","DR Congo","Denmark","Croatia","Jordan","Kuwait","Bahrain","Oman","Qatar","New Zealand","Ireland","Austria","Slovakia","Slovenia","Lithuania","Latvia","Montenegro","Georgia","Jamaica","Trinidad and Tobago","Vatican City","Monaco","Liechtenstein","Maldives"],voyage:["United States","Saudi Arabia","Russia","China","Canada","Brazil","Norway","Qatar","United Kingdom","Australia","Kuwait","United Arab Emirates","Mexico","India","Indonesia","Iran","Iraq","Nigeria","Algeria","Libya","Oman","Venezuela","Kazakhstan","Colombia","Argentina","Egypt","Malaysia","Thailand","Vietnam","South Korea","Japan","Philippines","Portugal","Spain","France","Italy","Belgium","Denmark","Netherlands","Switzerland","Austria","Germany","Ireland","Iceland","Finland","Singapore","Luxembourg","Monaco","Liechtenstein","Bahrain","Maldives","Seychelles","Palau","Micronesia","Tuvalu","Nauru","Kiribati","Marshall Islands","Saint Kitts and Nevis","Antigua and Barbuda","Barbados","Samoa","Tonga","Fiji","Saint Lucia","Dominica","Saint Vincent and the Grenadines","Trinidad and Tobago","Montenegro","Cyprus","Malta","Slovenia","Slovakia","Czech Republic","Croatia","Greece","New Zealand","Panama","Guyana"],atlas:["Japan","India","Mexico","Egypt","China","DR Congo","Argentina","Philippines","Russia","Colombia","Peru","France","Indonesia","Thailand","South Korea","United Kingdom","Iran","Angola","Malaysia","Saudi Arabia","Iraq","Chile","Spain","Singapore","United States","Turkey","Ethiopia","Kenya","Brazil","Italy","Cameroon","Nigeria","Germany","Paraguay","Dominican Republic","Senegal","Kuwait","Zambia","Greece","Guatemala","Portugal","Venezuela","Ukraine","Algeria","South Africa","Mali","Republic of the Congo","Ghana","Uzbekistan","Syria","Tunisia","Lebanon","Azerbaijan","Cambodia","Jordan","Cuba","Belgium","Belarus","Panama","Austria","Morocco","Ecuador","Bolivia","Poland","Romania","Hungary","Sweden","Canada","Serbia","Denmark","Finland","Czech Republic","Ireland","Kazakhstan","Pakistan","Libya","United Arab Emirates","Netherlands","Papua New Guinea","Australia"]},"GAME_CONFIG",0,{countriesPerRound:8,dailyChallengeCountries:9,categoriesPerMode:8},"GAME_MODE_IDS",0,{original:"original",world:"world",special:"special",voyage:"voyage",daily:"daily"},"PRACTICE_MODE_COUNTRIES",0,["United States","Canada","Mexico","Brazil","Argentina","Colombia","Chile","Peru","Venezuela","Uruguay","Ecuador","Bolivia","Paraguay","United Kingdom","France","Germany","Italy","Spain","Portugal","Netherlands","Belgium","Switzerland","Austria","Ireland","Denmark","Norway","Sweden","Finland","Poland","Greece","Hungary","Sudan","South Sudan","Ukraine","Russia","Croatia","Slovenia","Iceland","Vatican City","Monaco","Malta","Liechtenstein","China","Japan","South Korea","India","Indonesia","Thailand","Vietnam","Philippines","Malaysia","Singapore","Pakistan","Bangladesh","Saudi Arabia","United Arab Emirates","Israel","Turkey","Iran","Afghanistan","Maldives","South Africa","Egypt","Nigeria","Kenya","Morocco","Algeria","Ethiopia","Tanzania","DR Congo","Australia","New Zealand","Cuba","Jamaica","Dominican Republic","Haiti","Barbados","Costa Rica","Panama","Guatemala"],"RANK_CAPS",0,{coffee:73,pro_sports_championships:24,emp_default:40,wc_default:48,default:100},"SCORE_CONSTRAINTS",0,{minScore:8,standardLeaderboardThreshold:200,dailyLeaderboardThreshold:1e3},"TABLES",0,{gameSessions:"game_sessions",dailyChallenges:"daily_challenges",dailyAttempts:"daily_attempts",userStats:"user_stats"},"UNINITIALIZED_BEST_SCORE",0,999,"getLeaderboardMinScore",()=>r],3982),e.s(["ANALYTICS_EVENTS",0,{gameStart:"game_start",gameComplete:"game_complete",gameAbandoned:"game_abandoned",roundComplete:"round_complete",dailyChallenge:"daily_challenge",dailyChallengeStart:"daily_challenge_start",dailyChallengeComplete:"daily_challenge_complete",categorySelected:"category_selected",countrySkipped:"country_skipped",hintViewed:"hint_viewed",perfectRank:"perfect_rank",topFiveRank:"top_five_rank",streakAchieved:"streak_achieved",adViewed:"ad_viewed",adClicked:"ad_clicked",adFailedToLoad:"ad_failed_to_load",premiumViewed:"premium_viewed",premiumPurchaseStarted:"premium_purchase_started",premiumPurchaseCompleted:"premium_purchase_completed",premiumPurchaseFailed:"premium_purchase_failed",scoreShared:"score_shared",leaderboardViewed:"leaderboard_viewed",settingsChanged:"settings_changed",tutorialStarted:"tutorial_started",tutorialCompleted:"tutorial_completed"}],58998);let i={bronze:200,silver:420,gold:750,diamond:1350},o=[{at:360,xp:8},{at:330,xp:18},{at:300,xp:45},{at:270,xp:60},{at:250,xp:70}],a=[{mult:1.6,xp:8},{mult:22/15,xp:18},{mult:4/3,xp:45},{mult:1.2,xp:60},{mult:10/9,xp:70}],n=new Set(["usa","canada","europe","empires"]);function s(e){return e<=1?0:Math.round(10*Math.pow(Math.min(e,50)-1,1.9))}function l(e){if(e<=0)return 1;let t=1;for(;t<50&&e>=s(t+1);)t++;return t}function u(e){let t=l(e);if(t>=50)return{level:50,current:0,needed:0,fraction:1,atMax:!0};let r=s(t),i=s(t+1)-r,o=e-r;return{level:t,current:o,needed:i,fraction:i>0?Math.max(0,Math.min(1,o/i)):0,atMax:!1}}let c=["bronze","silver","gold","diamond"],d={bronze:"#cd7f32",silver:"#c0c0c0",gold:"#ffd700",diamond:"#7dd3fc"},p=[{id:"classic",name:"Classic",emoji:"🎯",statKey:"bestOriginal",direction:"lower",thresholds:[225,170,140,100],badgeIds:["classic_b","classic_s","classic_g","classic_d"]},{id:"world",name:"World",emoji:"🌍",statKey:"bestWorld",direction:"lower",thresholds:[200,170,140,100],badgeIds:["world_b","world_s","world_g","world_d"]},{id:"special",name:"Special",emoji:"⚡",statKey:"bestSpecial",direction:"lower",thresholds:[200,160,130,100],badgeIds:["special_b","special_s","special_g","special_d"]},{id:"voyage",name:"Voyage",emoji:"🗺️",statKey:"bestVoyage",direction:"lower",thresholds:[200,150,120,100],badgeIds:["voyage_b","voyage_s","voyage_g","voyage_d"]},{id:"atlas",name:"Atlas",emoji:"📍",statKey:"bestAtlas",direction:"lower",thresholds:[200,150,120,100],badgeIds:["atlas_b","atlas_s","atlas_g","atlas_d"]},{id:"sports",name:"Sports",emoji:"🏅",statKey:"bestSports",direction:"lower",thresholds:[300,250,185,140],badgeIds:["sports_b","sports_s","sports_g","sports_d"]},{id:"usa",name:"USA",emoji:"🦅",statKey:"bestUSA",direction:"lower",thresholds:[50,40,33,25],badgeIds:["usa_b","usa_s","usa_g","usa_d"]},{id:"canada",name:"Canada",emoji:"🍁",statKey:"bestCanada",direction:"lower",thresholds:[30,20,15,12],badgeIds:["canada_b","canada_s","canada_g","canada_d"]},{id:"europe",name:"Europe",emoji:"🇪🇺",statKey:"bestEurope",direction:"lower",thresholds:[100,60,40,20],badgeIds:["europe_b","europe_s","europe_g","europe_d"]},{id:"empires",name:"Empires",emoji:"🏛️",statKey:"bestEmpires",direction:"lower",thresholds:[90,60,42,28],badgeIds:["empires_b","empires_s","empires_g","empires_d"]},{id:"streak",name:"Daily Streak",emoji:"🔥",statKey:"longestStreak",direction:"higher",thresholds:[5,14,30,60],badgeIds:["streak_b","streak_s","streak_g","streak_d"],countsTowardXp:!1,unit:"d"},{id:"daily",name:"Daily",emoji:"📅",statKey:"dailyWins",direction:"higher",thresholds:[5,10,25,50],badgeIds:["daily_b","daily_s","daily_g","daily_d"],countsTowardXp:!1,unit:""},{id:"weeklypro",name:"Weekly Pro",emoji:"🗓️",statKey:"weeklyProStreak",direction:"higher",thresholds:[2,6,15,30],badgeIds:["weeklypro_b","weeklypro_s","weeklypro_g","weeklypro_d"],countsTowardXp:!1,unit:"w"},{id:"reverseplus",name:"Reverse+",emoji:"🔄",statKey:"bestReversePlus",direction:"lower",thresholds:[320,240,180,140],badgeIds:["reverseplus_b","reverseplus_s","reverseplus_g","reverseplus_d"],countsTowardXp:!1}];function f(e,t){var r;let i=Number(t[e.statKey]??999*("lower"===e.direction)),o="higher"===e.direction||i>0&&i<999,a="lower"===e.direction?o?i:null:i,n=-1;if(o)for(let t=0;t<c.length;t++)r=e.thresholds[t],("lower"===e.direction?i<r:i>=r)&&(n=t);let s=n>=0?c[n]:null,l=n+1;if(l>=c.length)return{track:e,value:a,earnedTier:s,nextTier:null,nextThreshold:null,fraction:1};let u=c[l],d=e.thresholds[l],p=0;if("higher"===e.direction){let t=0===l?0:e.thresholds[l-1],r=d-t;p=r>0?Math.max(0,Math.min(1,(i-t)/r)):0}else if(o){let t=0===l?Math.max(i,Math.round(1.5*d)):e.thresholds[l-1],r=t-d;p=r>0?Math.max(0,Math.min(1,(t-i)/r)):0}return{track:e,value:a,earnedTier:s,nextTier:u,nextThreshold:d,fraction:p}}function h(e){return p.map(t=>f(t,e))}function g(e,t){let[r,s,l,u]=e.thresholds;if(t<=u)return{xp:i.diamond,rookie:!1};if(t<=l)return{xp:i.gold,rookie:!1};if(t<=s)return{xp:i.silver,rookie:!1};if(t<=r)return{xp:i.bronze,rookie:!1};let c=0;if(n.has(e.id))for(let e of a)t<=Math.round(r*e.mult)&&(c=e.xp);else for(let e of o)t<=e.at&&(c=e.xp);return{xp:c,rookie:!0}}function m(e){let t=0;for(let r of p){if(!1===r.countsTowardXp)continue;let i=f(r,e);null!=i.value&&(t+=g(r,i.value).xp)}return t+=(e.dailyWins??0)*10,t+=(e.weeksPlayed??0)*8,Math.round(t+=(e.duelWins??0)*5)}function y(e){let t=m(e);return{xp:t,...u(t)}}e.s(["DAILY_WIN_XP",0,10,"DUEL_WIN_XP",0,5,"MAX_LEVEL",0,50,"NO_SCORE",0,999,"TIER_COLORS",0,d,"TIER_ORDER",0,c,"TIER_XP",0,i,"TRACKS",0,p,"WEEKLY_WEEK_XP",0,8,"computeProgression",()=>y,"computeXp",()=>m,"evaluateTrack",()=>f,"evaluateTracks",()=>h,"levelForXp",()=>l,"levelProgress",()=>u,"scoreBandXp",()=>g,"xpForLevel",()=>s],41);let _={pro:{name:"GeoHunter+",description:"Active GeoHunter+ subscriber",unlockHint:"Subscribe to GeoHunter+",color:"#fbbf24",isAchievement:!1},explorer:{name:"Explorer",description:"No Ads subscriber",unlockHint:"Subscribe to No Ads",color:"#38bdf8",isAchievement:!1},usa:{name:"USA",description:"USA Mode owner",unlockHint:"Purchase USA Mode",color:"#3b82f6",isAchievement:!1},canada:{name:"Canada",description:"Canada Mode owner",unlockHint:"Purchase Canada Mode",color:"#ef4444",isAchievement:!1},europe:{name:"Europe",description:"Europe Mode owner or GeoHunter+ subscriber",unlockHint:"Purchase Europe Mode or subscribe to GeoHunter+",color:"#2563eb",isAchievement:!1},sports:{name:"Dedicated",description:"Played 50 games",unlockHint:"Play 50 games across any mode",color:"#16a34a",isAchievement:!0},classic_200:{name:"Classic Master",description:"Score under 200 in Classic",unlockHint:"Get a score below 200 in Classic mode",color:"#9c62b3",isAchievement:!0},world_200:{name:"World Expert",description:"Score under 200 in World",unlockHint:"Get a score below 200 in World mode",color:"#4ca84c",isAchievement:!0},special_200:{name:"Special Ops",description:"Score under 200 in Special",unlockHint:"Get a score below 200 in Special mode",color:"#eb8e2a",isAchievement:!0},voyage_200:{name:"Voyager",description:"Score under 200 in Voyage",unlockHint:"Get a score below 200 in Voyage mode",color:"#0891b2",isAchievement:!0},atlas_200:{name:"Cartographer",description:"Score under 200 in Atlas",unlockHint:"Get a score below 200 in Atlas mode",color:"#dc2626",isAchievement:!0},usa_75:{name:"Patriot",description:"Score under 55 in USA",unlockHint:"Get a score below 55 in USA mode",color:"#1e40af",isAchievement:!0},usa_50:{name:"Liberty",description:"Score under 35 in USA",unlockHint:"Get a score below 35 in USA mode",color:"#1e3a5f",isAchievement:!0},sports_200:{name:"Athlete",description:"Score under 200 in Sports",unlockHint:"Get a score below 200 in Sports mode",color:"#22c55e",isAchievement:!0},sports_150:{name:"Champion",description:"Score under 150 in Sports",unlockHint:"Get a score below 150 in Sports mode",color:"#166534",isAchievement:!0},canada_50:{name:"Canuck",description:"Score under 30 in Canada",unlockHint:"Get a score below 30 in Canada mode",color:"#b91c1c",isAchievement:!0},canada_30:{name:"Mountie",description:"Score under 15 in Canada",unlockHint:"Get a score below 15 in Canada mode",color:"#7f1d1d",isAchievement:!0},europe_75:{name:"Euro Star",description:"Score under 75 in Europe",unlockHint:"Get a score below 75 in Europe mode",color:"#1d4ed8",isAchievement:!0},europe_50:{name:"EU Champion",description:"Score under 50 in Europe",unlockHint:"Get a score below 50 in Europe mode",color:"#1e3a5f",isAchievement:!0},streak_25:{name:"Dedicated",description:"25-day daily streak",unlockHint:"Achieve a 25-day daily streak",color:"#f97316",isAchievement:!0},streak_100:{name:"Centurion",description:"100-day daily streak",unlockHint:"Achieve a 100-day daily streak",color:"#dc2626",isAchievement:!0},world_tour:{name:"World Tour",description:"Score under 200 in Classic, World, Special, Voyage & Atlas",unlockHint:"Score under 200 in all 5 main modes",color:"#8b5cf6",isAchievement:!0},daily_perfect:{name:"Daily Perfection",description:"Perfect score in a Daily challenge",unlockHint:"Get a perfect score in Daily mode",color:"#eab308",isAchievement:!0},first_duel_win:{name:"First Blood",description:"Won your first duel",unlockHint:"Win a friend duel",color:"#cd7f32",isAchievement:!0},duel_wins_10:{name:"Duelist",description:"Won 10 duels",unlockHint:"Win 10 friend duels",color:"#c0c0c0",isAchievement:!0},duel_wins_50:{name:"Warlord",description:"Won 50 duels",unlockHint:"Win 50 friend duels",color:"#ffd700",isAchievement:!0},empires_200:{name:"Emperor",description:"Score under 200 in Empires",unlockHint:"Get a score below 200 in Empires mode",color:"#92400e",isAchievement:!0},world_cup_200:{name:"World Champion",description:"Score under 200 in World Cup",unlockHint:"Get a score below 200 in World Cup mode",color:"#16a34a",isAchievement:!0},footy_clubs_200:{name:"Club Legend",description:"Score under 200 in Footy Clubs",unlockHint:"Get a score below 200 in Footy Clubs mode",color:"#d4a017",isAchievement:!0}},b={bronze:"Bronze",silver:"Silver",gold:"Gold",diamond:"Diamond"},w={canada_g:"Canuck",canada_d:"Mountie",usa_g:"Patriot",usa_d:"Liberty",europe_g:"Euro Star",europe_d:"EU Champion",sports_d:"Champion",streak_d:"Spartan"},S={};for(let e of p)e.badgeIds.forEach((t,r)=>{var i,o,a;let n=c[r],s=e.thresholds[r],l=b[n];S[t]={name:w[t]??`${e.name} ${l}`,description:"lower"===e.direction?`Score under ${s} in ${e.name}`:`Reach ${s}${e.unit??""} in ${e.name}`,unlockHint:(i=e.name,o=e.direction,a=e.unit,"higher"===o?`Reach ${s} ${"d"===a?"days":"w"===a?"weeks":"wins"} in ${i}`:`Get a score below ${s} in ${i}`),color:d[n],isAchievement:!0}});Object.assign(_,S),e.s(["BADGE_METADATA",0,_,"ENTITLEMENTS",0,{pro:"pro",premium:"premium"},"PRODUCT_IDS",0,{proWeekly:"geohunter_pro_weekly",proMonthly:"geohunter_pro_monthly",proYearly:"geohunter_pro_yearly",explorerMonthly:"geohunter_explorer_monthly",explorerYearly:"geohunter_explorer_yearly",premiumMonthly:"geohunter_premium_monthly",premiumYearly:"geohunter_premium_yearly"},"TIER_FEATURES",0,{free:{weeklyProGame:!1,proLeaderboardBadge:!1,yellowHighlight:!1,premiumBadge:!1,greenHighlight:!1,funFacts:!1,bestPossibleScore:!1,usStatesGame:!1,newCategories:!1},explorer:{weeklyProGame:!1,proLeaderboardBadge:!1,yellowHighlight:!1,premiumBadge:!1,greenHighlight:!1,funFacts:!1,bestPossibleScore:!1,usStatesGame:!1,newCategories:!1},pro:{weeklyProGame:!0,proLeaderboardBadge:!0,yellowHighlight:!0,premiumBadge:!1,greenHighlight:!1,funFacts:!1,bestPossibleScore:!1,usStatesGame:!1,newCategories:!1},premium:{weeklyProGame:!0,proLeaderboardBadge:!0,yellowHighlight:!0,premiumBadge:!0,greenHighlight:!0,funFacts:!0,bestPossibleScore:!0,usStatesGame:!0,newCategories:!0}}],24654);let v=[{name:"Economic Powerhouses",description:"Focus on GDP, trade, and economic indicators",categoryWeights:["gdp","gdp_per_capita","exports","imports","stock_market"]},{name:"Natural Wonders",description:"Explore geographical and environmental rankings",categoryWeights:["mountains","forest_cover","coastline","biodiversity","national_parks"]},{name:"Cultural Heritage",description:"Discover art, cuisine, and tourism",categoryWeights:["tourism","unesco_sites","cuisine","museums","festivals"]},{name:"Military & Defense",description:"Analyze defense spending and military strength",categoryWeights:["military_spending","military_personnel","nuclear_weapons","arms_exports"]},{name:"Energy & Resources",description:"Examine production and consumption of energy",categoryWeights:["oil_production","natural_gas","renewable_energy","electricity"]},{name:"Quality of Life",description:"Compare living standards and happiness",categoryWeights:["hdi","happiness","life_expectancy","education","healthcare"]},{name:"Global Connectivity",description:"Measure international influence and connections",categoryWeights:["internet_users","passport_power","airports","tourism","trade"]},{name:"Sports & Competition",description:"Celebrate athletic achievements",categoryWeights:["football","olympics","world_cup","sports_spending"]},{name:"Innovation & Tech",description:"Explore technological advancement",categoryWeights:["patents","rd_spending","internet_speed","tech_exports","startups"]},{name:"Agricultural Giants",description:"Discover food production leaders",categoryWeights:["agriculture","coffee","wine","seafood","livestock"]},{name:"Urban Landscapes",description:"Compare cities and infrastructure",categoryWeights:["population","urbanization","skyscrapers","metro_systems"]},{name:"Climate & Weather",description:"Examine temperature and climate extremes",categoryWeights:["hot_temperature","cold_temperature","rainfall","natural_disasters"]},{name:"Social Challenges",description:"Understand societal issues",categoryWeights:["crime","corruption","inequality","unemployment","debt"]}];function E(e=new Date){let t=A(e),r=t.getFullYear(),i=k(t);return`${r}-W${i.toString().padStart(2,"0")}`}function A(e=new Date){let t=new Date(e),r=t.getDay(),i=t.getDate()-r+(0===r?-6:1);return new Date(t.setDate(i))}function C(e=new Date){let t=A(e),r=new Date(t);return r.setDate(t.getDate()+6),r}function k(e){let t=new Date(e);t.setHours(0,0,0,0),t.setDate(t.getDate()+4-(t.getDay()||7));let r=new Date(t.getFullYear(),0,1);return Math.ceil(((t.getTime()-r.getTime())/864e5+1)/7)}let I=new Date(2026,2,23).getTime();function T(e=new Date){let t=A(e);return t.setHours(0,0,0,0),Math.max(1,Math.round((t.getTime()-I)/6048e5)+1)}function M(e){return E()===E(new Date(e))}e.s(["WEEKLY_THEMES",0,v,"getCurrentWeekIdentifier",()=>E,"getEndOfWeek",()=>C,"getISOWeekNumber",()=>k,"getStartOfWeek",()=>A,"getWeeklyProDisplayNumber",()=>T,"isCurrentWeek",()=>M],65299);let P=[{weekNumber:45,weekIdentifier:"2025-W45",startDate:"2025-11-03",endDate:"2025-11-09",theme:"Culture & Heritage",themeDescription:"Explore the world through art, food, and tradition",categories:{daily:["tourism","cuisine","corruption","forestCover","basketball","pollution","most_languages"],wild:"coffee"},categoryDescriptions:{tourism:"International Tourist Arrivals",cuisine:"Best Cuisine (Taste Atlas)",corruption:"Corruption Index",forestCover:"Forest Coverage %",basketball:"Basketball Ranking",pollution:"Air Pollution Index",most_languages:"Most Languages Spoken",coffee:"Coffee Production"}},{weekNumber:46,weekIdentifier:"2025-W46",startDate:"2025-11-10",endDate:"2025-11-16",theme:"Power & Prosperity",themeDescription:"Economic strength and global influence",categories:{daily:["gdp","gdp_per_capita","military","olympic_medals","education","best_passport","hdi"],wild:"number_of_billionaires"},categoryDescriptions:{gdp:"Gross Domestic Product",gdp_per_capita:"GDP Per Capita",military:"Military Power",olympic_medals:"Olympic Medals",education:"Education Index",best_passport:"Best Passport",hdi:"Human Development Index",number_of_billionaires:"Number of Billionaires"}},{weekNumber:47,weekIdentifier:"2025-W47",startDate:"2025-11-17",endDate:"2025-11-23",theme:"Nature & Geography",themeDescription:"Natural wonders and environmental features",categories:{daily:["coastline","highest_elevation","biodiversity","natural_disaster_risk","hot_temperature","number_of_islands","protected_land_percentage"],wild:"volcanoes"},categoryDescriptions:{coastline:"Longest Coastline",highest_elevation:"Highest Elevation Point",biodiversity:"Most Biodiverse Countries",natural_disaster_risk:"Natural Disaster Risk",hot_temperature:"Hottest Average Temperature",number_of_islands:"Number of Islands",protected_land_percentage:"Protected Land %",volcanoes:"Number of Volcanoes"}},{weekNumber:48,weekIdentifier:"2025-W48",startDate:"2025-11-24",endDate:"2025-11-30",theme:"Modern World",themeDescription:"Technology, energy, and contemporary challenges",categories:{daily:["oil_production","co2_emissions","cycling","fertility_rate","seafood_consumption","crypto_ownership","gender_equality_index"],wild:"nuclear_power_reactors"},categoryDescriptions:{oil_production:"Volume of Crude Oil Produced",co2_emissions:"CO2 Emissions",cycling:"Bike Use Ranking",fertility_rate:"Fertility Rate",seafood_consumption:"Seafood Consumption",crypto_ownership:"Crypto Ownership",gender_equality_index:"Gender Equality Index",nuclear_power_reactors:"Nuclear Power Reactors"}}];function B(e){return P.find(t=>t.weekIdentifier===e)||null}function D(e){let t=e.toISOString().split("T")[0];return P.find(e=>t>=e.startDate&&t<=e.endDate)||null}function R(){let e=D(new Date);return e||function(e){let t=k(e),r=E(e),i=A(e),o=C(e),a=v[t%v.length],n=(function(e,t){let r=[...e],i=t;for(let e=r.length-1;e>0;e--){let t=(i=0x41c64e6d*i+12345&0x7fffffff)%(e+1);[r[e],r[t]]=[r[t],r[e]]}return r})(O,7*t+i.getFullYear()).slice(0,7),s=x[t%x.length],l={};for(let e of[...n,s])l[e]=U[e]||e.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase());return{weekNumber:t,weekIdentifier:r,startDate:i.toISOString().split("T")[0],endDate:o.toISOString().split("T")[0],theme:a.name,themeDescription:a.description,categories:{daily:n,wild:s},categoryDescriptions:l}}(new Date)}let O=["tourism","cuisine","corruption","forestCover","basketball","pollution","most_languages","gdp","gdp_per_capita","military","olympic_medals","education","best_passport","hdi","coastline","highest_elevation","biodiversity","natural_disaster_risk","hot_temperature","number_of_islands","protected_land_percentage","oil_production","co2_emissions","cycling","fertility_rate","seafood_consumption","crypto_ownership","gender_equality_index"],x=["coffee","number_of_billionaires","volcanoes","nuclear_power_reactors"],U={tourism:"International Tourist Arrivals",cuisine:"Best Cuisine",corruption:"Corruption Index",forestCover:"Forest Coverage %",basketball:"Basketball Ranking",pollution:"Air Pollution Index",most_languages:"Most Languages Spoken",gdp:"Gross Domestic Product",gdp_per_capita:"GDP Per Capita",military:"Military Power",olympic_medals:"Olympic Medals",education:"Education Index",best_passport:"Best Passport",hdi:"Human Development Index",coastline:"Longest Coastline",highest_elevation:"Highest Elevation Point",biodiversity:"Biodiversity",natural_disaster_risk:"Natural Disaster Risk",hot_temperature:"Hottest Temperature",number_of_islands:"Number of Islands",protected_land_percentage:"Protected Land %",oil_production:"Oil Production",co2_emissions:"CO2 Emissions",cycling:"Bike Use Ranking",fertility_rate:"Fertility Rate",seafood_consumption:"Seafood Consumption",crypto_ownership:"Crypto Ownership",gender_equality_index:"Gender Equality Index",coffee:"Coffee Production",number_of_billionaires:"Number of Billionaires",volcanoes:"Number of Volcanoes",nuclear_power_reactors:"Nuclear Power Reactors"};function L(){return P}function N(){let e=new Date;return 2025===e.getFullYear()&&10===e.getMonth()}function G(e){return[...e.categories.daily,e.categories.wild]}function W(e,t){return e.categoryDescriptions[t]||t}e.s(["NOVEMBER_2025_CHALLENGES",0,P,"getAllCategories",()=>G,"getAllNovemberChallenges",()=>L,"getCategoryDisplayName",()=>W,"getCurrentWeeklyChallenge",()=>R,"getWeeklyChallengeByDate",()=>D,"getWeeklyChallengeByWeek",()=>B,"isNovember2025",()=>N],42627),e.s(["VS_BATTLE_BOARD_SIZE",0,10,"VS_BATTLE_CLAIM_CAP",0,6,"VS_BATTLE_CLASSIC_CATEGORIES",0,8,"VS_BATTLE_ROUND_SECONDS",0,10,"VS_BATTLE_ROUND_START_DELAY_MS",0,1500,"VS_BATTLE_TIE_WINDOW_MS",0,150,"VS_CODE_ALPHABET",0,"ABCDEFGHJKLMNPQRSTUVWXYZ23456789","VS_ELO_DEFAULT",0,1e3,"VS_ELO_FLOOR",0,100,"VS_ELO_K_CUTOFF",0,50,"VS_ELO_K_STANDARD",0,32,"VS_ELO_K_VETERAN",0,16,"VS_ENERGY_CAP_EXPLORER",0,10,"VS_ENERGY_CAP_FREE",0,5,"VS_ENERGY_CAP_PRO",0,999,"VS_ENERGY_REGEN_SECONDS_EXPLORER",0,600,"VS_ENERGY_REGEN_SECONDS_FREE",0,1200,"VS_ENERGY_REGEN_SECONDS_PRO",0,0,"VS_GRACE_SECONDS",0,2,"VS_INVITE_EXPIRY_MINUTES",0,10,"VS_MAX_CONCURRENT_MATCHES",0,180,"VS_ROUNDS",0,8,"VS_ROUND_SECONDS",0,15,"VS_SUPPORTED_MODES",0,["original","battle_board"],"VS_TOTAL_PICKS",0,16],90072);let H=[{id:"usa",title:"USA",emoji:"🇺🇸",color:"#1e3a8a",lockedColor:"#1e3a8a",heroSlot:1,status:"live",featured:!0},{id:"canada",title:"Canada",emoji:"🍁",color:"#b91c1c",lockedColor:"#7f1d1d",heroSlot:2,status:"live"},{id:"europe",title:"Europe",emoji:"🇪🇺",color:"#1d4ed8",lockedColor:"#1e3a8a",heroSlot:3,status:"live"},{id:"empires",title:"Empires",emoji:"🏛️",color:"#92400e",lockedColor:"#78350f",heroSlot:4,status:"live"}];function V(e=H){return e.filter(e=>null!==e.heroSlot).sort((e,t)=>(e.heroSlot??0)-(t.heroSlot??0))}function j(e=H){return e.filter(e=>null===e.heroSlot)}function F(e,t=H){return t.find(t=>t.id===e)}e.s(["EXPANSION_MODES",0,H,"getExpansionMode",()=>F,"getFolderExpansionModes",()=>j,"getHeroExpansionModes",()=>V],37968);let z=[{id:"original",name:"Classic",emoji:"🎯",color:"#9333ea",proOnly:!1,categoryEmojis:["👥","⚽","🏝️","🚨","🗺️","☕","💰","💨"]},{id:"world",name:"World",emoji:"🌍",color:"#10b981",proOnly:!1,categoryEmojis:["👥","⚽","🏝️","🏛️","🌲","🏀","🏭","🍽️"]},{id:"special",name:"Special",emoji:"⚡",color:"#f97316",proOnly:!1,categoryEmojis:["🪖","🛂","🏝️","📊","🌿","🏔️","🏉","🌊"]},{id:"voyage",name:"Voyage",emoji:"🗺️",color:"#0ea5e9",proOnly:!1,categoryEmojis:[]},{id:"atlas",name:"Atlas",emoji:"📍",color:"#14b8a6",proOnly:!1,categoryEmojis:[]},{id:"usa",name:"USA",emoji:"🦅",color:"#3b82f6",proOnly:!1,gate:"usa",categoryEmojis:[]},{id:"sports",name:"Sports",emoji:"🏆",color:"#16a34a",proOnly:!1,categoryEmojis:["⚽","🏀","🏉","🎾","🥊","🏏","🏒","⚾"]},{id:"weekly-pro",name:"Weekly Pro",emoji:"📅",color:"#78350f",proOnly:!0,categoryEmojis:[]},{id:"custom",name:"Custom",emoji:"🎨",color:"#6d28d9",proOnly:!0,categoryEmojis:[]}],K=Object.fromEntries(z.map(e=>[e.id,e.name])),Y=Object.fromEntries(z.map(e=>[e.id,e.emoji])),X=Object.fromEntries(z.map(e=>[e.id,e.color]));e.s(["CHALLENGE_MODES",0,z,"MODE_COLORS",0,X,"MODE_EMOJIS",0,Y,"MODE_NAMES",0,K],41014);let J=["population","football","small_size","crime","tourism","coffee","gdp","gas","corruption","forestCover","basketball","pollution","cuisine","olympic_medals","obesity_rate","hot_temperature","cold_temperature","mcdonalds_locations","pet_dogs","average_iq"],q=[...J,"military","worst_passport","hdi","biodiversity","highest_elevation","rugby","coastline","seafood_consumption","gdp_per_capita","oil_production"],Z=[...q,"population_of_capital","most_rain","tallest_skyscraper","median_age","worst_internet","most_languages","cycling","low_population","fertility_rate","natural_disaster_risk","tennis","cricket_t20","baseball","mma","ice_hockey","best_passport","homicide_rate","alcohol_consumption","cigarette_smoking","world_heritage_sites"],$=[{id:"easy",name:"Easy",emoji:"🟢",color:"#22c55e",unlockLevel:1,band:{min:50,max:120},categoryPool:J,baseMode:"duel-easy"},{id:"medium",name:"Medium",emoji:"🟡",color:"#eab308",unlockLevel:10,band:{min:110,max:200},categoryPool:q,baseMode:"duel-medium"},{id:"hard",name:"Hard",emoji:"🔴",color:"#ef4444",unlockLevel:20,band:{min:200,max:300},categoryPool:Z,baseMode:"duel-hard"},{id:"expert",name:"Expert",emoji:"💀",color:"#a855f7",unlockLevel:35,band:{min:180,max:null},categoryPool:"all",baseMode:"duel-expert"}],Q=Object.fromEntries($.map(e=>[e.id,e])),ee=Object.fromEntries($.map(e=>[e.baseMode,e]));function et(e){return Q[e]}function er(e){return!!e&&e in ee}function ei(e){return e?ee[e]:void 0}function eo(e,t,r){return!!r||t>=e.unlockLevel-3}function ea(e){if(null==e)return 0;if("number"==typeof e)return e;let t=Date.parse(e);return Number.isNaN(t)?0:t}function en(e,t){let r=new Map;for(let t of e){if(!t.opponentId)continue;let e=r.get(t.opponentId);e?e.push(t):r.set(t.opponentId,[t])}let i=new Map;for(let e of t)e.creatorId&&i.set(e.creatorId,e);let o=new Map;for(let e of new Set([...r.keys(),...i.keys()])){let t=r.get(e)??[],a=0,n=0;for(let e of t)a+=e.mySeriesWins??0,n+=e.opponentSeriesWins??0;let s=a+n>0?{wins:a,losses:n}:null,l=null,u=i.get(e);if(u&&(l={kind:"play",code:u.code,isInvite:!0}),!l&&t.find(e=>e.isCreator&&"pending"===e.recipientStatus)&&(l={kind:"sent"}),!l){let e=t.find(e=>!e.bothPlayed&&!e.hasPlayed);e&&(l={kind:"play",code:e.code,isInvite:!1})}if(!l&&t.find(e=>!e.bothPlayed&&e.hasPlayed)&&(l={kind:"waiting"}),!l){let e=t.filter(e=>e.bothPlayed).sort((e,t)=>ea(t.createdAt)-ea(e.createdAt))[0];e&&(l={kind:"rematch",code:e.code})}l||(l={kind:"challenge"}),o.set(e,{record:s,action:l})}return o}function es({stats:e,hasPro:t,hasExplorer:r,ownedProducts:i}){let o=[];if(!e)return o;t&&o.push("pro"),r&&o.push("explorer"),i?.includes("usa_states")&&o.push("usa"),i?.includes("canada_mode")&&o.push("canada"),(i?.includes("europe_mode")||t)&&o.push("europe"),e.bestOriginal<200&&o.push("classic_200"),e.bestWorld<200&&o.push("world_200"),e.bestSpecial<200&&o.push("special_200"),e.bestVoyage<200&&o.push("voyage_200"),(e.bestAtlas??999)<200&&o.push("atlas_200"),e.bestUSA<55&&o.push("usa_75"),e.bestUSA<35&&o.push("usa_50"),e.bestSports<200&&o.push("sports_200"),e.bestSports<150&&o.push("sports_150"),e.bestCanada<30&&o.push("canada_50"),e.bestCanada<15&&o.push("canada_30"),e.bestEurope<75&&o.push("europe_75"),e.bestEurope<50&&o.push("europe_50"),e.longestStreak>=25&&o.push("streak_25"),e.longestStreak>=100&&o.push("streak_100"),e.gamesPlayed>=50&&o.push("sports"),e.bestOriginal<200&&e.bestWorld<200&&e.bestSpecial<200&&e.bestVoyage<200&&(e.bestAtlas??999)<200&&o.push("world_tour"),e.bestDaily<=8&&o.push("daily_perfect"),(e.duelWins??0)>=1&&o.push("first_duel_win"),(e.duelWins??0)>=10&&o.push("duel_wins_10"),(e.duelWins??0)>=50&&o.push("duel_wins_50");let a={bestOriginal:e.bestOriginal,bestWorld:e.bestWorld,bestSpecial:e.bestSpecial,bestVoyage:e.bestVoyage,bestAtlas:e.bestAtlas??999,bestUSA:e.bestUSA,bestSports:e.bestSports,bestCanada:e.bestCanada,bestEurope:e.bestEurope,bestEmpires:e.bestEmpires??999,bestDaily:e.bestDaily,gamesPlayed:e.gamesPlayed,totalPerfectRounds:0,longestStreak:e.longestStreak,dailyWins:e.dailyWins??0,weeksPlayed:0,weeklyProStreak:e.weeklyProStreak??0,bestReversePlus:e.bestReversePlus??999,duelWins:e.duelWins??0};for(let e of p){let t=f(e,a);if(!t.earnedTier)continue;let r=["bronze","silver","gold","diamond"].indexOf(t.earnedTier);for(let t=0;t<=r;t++)o.push(e.badgeIds[t])}return o}e.s(["DUEL_DIFFICULTIES",0,$,"UNLOCK_LEEWAY",0,3,"canCreateDifficulty",()=>eo,"difficultyForBaseMode",()=>ei,"getDuelDifficulty",()=>et,"isDuelBaseMode",()=>er],13335),e.s(["buildFriendDuelStates",()=>en],24979);let el=new Set(["classic_200","world_200","special_200","voyage_200","atlas_200","usa_75","usa_50","canada_50","canada_30","europe_75","europe_50","sports_200","sports_150","streak_25","streak_100"]);function eu(e){return el.has(e)}let ec=[...p.flatMap(e=>e.badgeIds),"pro","explorer","usa","canada","europe","sports","world_tour","daily_perfect","first_duel_win","duel_wins_10","duel_wins_50"];function ed(e){let t=new Set(e),r=[],i=[];for(let e of ec)t.has(e)?r.push({id:e,earned:!0}):i.push({id:e,earned:!1});return[...r,...i]}function ep(e){return _[e]}function ef(e,t){let r=new Set(e),i=t.filter(e=>!r.has(e)),o=new Set(i),a=ec.filter(e=>o.has(e)),n=new Set(a);return[...a,...i.filter(e=>!n.has(e))]}let eh={classic:"classic_200",world:"world_200",special:"special_200",voyage:"voyage_200",atlas:"atlas_200",sports:"sports_200",usa:"usa",canada:"canada",europe:"europe",streak:"streak_30",daily:"daily_winner",empires:"empires",weeklypro:"weeklypro",reverseplus:"reverseplus"},eg={canada:["canada","canada","canada_50","canada_30"],usa:["usa","usa","usa_75","usa_50"],europe:["europe","europe","europe_75","europe_50"],sports:["sports_200","sports_200","sports_200","sports_150"],streak:["streak_7","streak_30","streak_30","streak_100"]},em={};for(let e of p)e.badgeIds.forEach((t,r)=>{em[t]={trackId:e.id,tier:["bronze","silver","gold","diamond"][r]}});function ey(e){let t=em[e];if(!t)return e;let r=eg[t.trackId],i=["bronze","silver","gold","diamond"].indexOf(t.tier);return(r?r[i]:eh[t.trackId])??e}e.s(["BADGE_CATALOG",0,ec,"TIER_BADGE_LOOKUP",0,em,"TRACK_BASE_ART",0,eh,"TRACK_TIER_ART",0,eg,"badgeMeta",()=>ep,"computeEarnedBadges",()=>es,"diffNewBadges",()=>ef,"isLegacyBadge",()=>eu,"orderForSelector",()=>ed,"resolveBadgeArtId",()=>ey],34048),e.s([],24856)}]);