(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]||(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]=[])).push(["object"==typeof document?document.currentScript:void 0,484404,(e,t,r)=>{!function(e){"use strict";var i="function",n="undefined",o="object",a="string",s="model",u="name",l="type",c="vendor",f="version",h="architecture",p="console",d="mobile",v="tablet",y="smarttv",g="wearable",m="embedded",b="Amazon",w="Apple",x="ASUS",S="BlackBerry",k="Browser",_="Chrome",I="Firefox",A="Google",C="Huawei",P="Microsoft",E="Motorola",O="Opera",U="Samsung",T="Sharp",j="Sony",F="Xiaomi",M="Zebra",N="Facebook",V=function(e,t){var r={};for(var i in e)t[i]&&t[i].length%2==0?r[i]=t[i].concat(e[i]):r[i]=e[i];return r},R=function(e){for(var t={},r=0;r0?2===s.length?typeof s[1]==i?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==i||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):void 0:this[s[0]]=l?s[1].call(this,l,s[2]):void 0:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):void 0):this[s]=l||void 0;c+=2}},B=function(e,t){for(var r in t)if(typeof t[r]===o&&t[r].length>0){for(var i=0;i350?K(e,350):e,this},this.setUA(i),this};Q.VERSION="0.7.33",Q.BROWSER=R([u,f,"major"]),Q.CPU=R([h]),Q.DEVICE=R([s,c,l,p,d,y,v,g,m]),Q.ENGINE=Q.OS=R([u,f]),t.exports&&(r=t.exports=Q),r.UAParser=Q;var W=typeof e!==n&&(e.jQuery||e.Zepto);if(W&&!W.ua){var $=new Q;W.ua=$.getResult(),W.ua.get=function(){return $.getUA()},W.ua.set=function(e){$.setUA(e);var t=$.getResult();for(var r in t)W.ua[r]=t[r]}}}("object"==typeof window?window:e.e)},830460,e=>{"use strict";let t,r,i;var n,o,a,s,u=e.i(122845),l=function(e,t){return(l=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function c(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var f=function(){return(f=Object.assign||function(e){for(var t,r=1,i=arguments.length;r0&&n[n.length-1])&&(6===l[0]||2===l[0])){o=0;continue}if(3===l[0]&&(!n||l[1]>n[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return a}function y(e,t,r){if(r||2==arguments.length)for(var i,n=0,o=t.length;n>6|192:((64512&n)==55296&&i+1>18|240,t[r++]=n>>12&63|128):t[r++]=n>>12|224,t[r++]=n>>6&63|128),t[r++]=63&n|128)}return Uint8Array.from(t)},M=function(e,t){void 0===t&&(t=0);for(var r=F(e),i=r.length,n=i>>2,o=t,a=0;a>>0},N=function(e,t){var r=e,i=t;return i^=r=Math.imul(r=R(r=Math.imul(r,-0x3361d2af),15),0x1b873593),(i=Math.imul(i=R(i,13),5))+-0x19ab949c|0},V=function(e){var t=e;return t^=t>>>16,t=Math.imul(t,-0x7a143595),t^=t>>>13,t=Math.imul(t,-0x3d4d51cb),t^=t>>>16},R=function(e,t,r){void 0===r&&(r=32),t>r&&(t%=r);var i=(e&0xffffffff>>0)>>>0>>>r-t>>>0;return(e>>0},D=function(e,t){return void 0===t&&(t=0),q(e[t]>>24|(0xff0000&e)>>>8|(65280&e)e.major)return 1;if(this.majore.minor)return 1;if(this.minore.patch)return 1;if(this.patche.preRelease)return 1;if(this.preRelease=v&&l=w&&cr;case k:case C:return e>=r;default:return!1}},e.prototype.versionComparator=function(e,t,r){var i=e.compareTo(r);switch(t){case w:case _:return i0;case k:case C:return i>=0;default:return!1}},e.prototype.matchesRegex=function(e,t){return t.some(function(t){return!!new RegExp(t).exec(e)})},e.prototype.containsNone=function(e){return e.some(function(e){return"(none)"===e})},e.prototype.containsBooleans=function(e){return e.some(function(e){switch(e.toLowerCase()){case"true":case"false":return!0;default:return!1}})},e.prototype.parseNumber=function(e){var t;return null!=(t=Number(e))?t:void 0},e.prototype.coerceString=function(e){if(null!=e)return"object"==typeof e?JSON.stringify(e):String(e)},e.prototype.coerceStringArray=function(e){var t=this;if(Array.isArray(e)){var r=e;return r.map(function(e){return t.coerceString(e)}).filter(Boolean)}var i=String(e);try{var n=JSON.parse(i);if(Array.isArray(n)){var r=e;return r.map(function(e){return t.coerceString(e)}).filter(Boolean)}var o=this.coerceString(i);return o?[o]:void 0}catch(e){var o=this.coerceString(i);return o?[o]:void 0}},e.prototype.isSetOperator=function(e){switch(e){case P:case E:case O:case U:case T:case j:return!0;default:return!1}},e.prototype.setEquals=function(e,t){var r=new Set(e),i=new Set(t);return r.size===i.size&&y([],v(i),!1).every(function(e){return r.has(e)})},e.prototype.matchesSetContainsAll=function(e,t){var r,i;if(e.lengthi[e]=t),i),H=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Y=String.fromCharCode.bind(String),ee="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),et=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),er="function"==typeof btoa?e=>btoa(e):W?e=>u.Buffer.from(e,"binary").toString("base64"):e=>{let t,r,i,n,o="",a=e.length%3;for(let a=0;a255||(i=e.charCodeAt(a++))>255||(n=e.charCodeAt(a++))>255)throw TypeError("invalid character found");o+=Z[(t=r>18&63]+Z[t>>12&63]+Z[t>>6&63]+Z[63&t]}return a?o.slice(0,a-3)+"===".substring(a):o},ei=W?e=>u.Buffer.from(e).toString("base64"):e=>{let t=[];for(let r=0,i=e.length;r{if(e.length>>6)+Y(128|63&t):Y(224|t>>>12&15)+Y(128|t>>>6&63)+Y(128|63&t)}var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Y(240|t>>>18&7)+Y(128|t>>>12&63)+Y(128|t>>>6&63)+Y(128|63&t)},eo=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ea=W?e=>u.Buffer.from(e,"utf8").toString("base64"):X?e=>ei(X.encode(e)):e=>er(e.replace(eo,en)),es=(e,t=!1)=>t?et(ea(e)):ea(e),eu=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,el=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))>>10)+55296)+Y((1023&t)+56320);case 3:return Y((15&e.charCodeAt(0))atob(e.replace(/[^A-Za-z0-9\+\/]/g,"")):W?e=>u.Buffer.from(e,"base64").toString("binary"):e=>{if(e=e.replace(/\s+/g,""),!H.test(e))throw TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r="",i,n;for(let o=0;o>16&255):64===n?Y(t>>16&255,t>>8&255):Y(t>>16&255,t>>8&255,255&t);return r},ef=W?e=>ee(u.Buffer.from(e,"base64")):e=>ee(ec(e).split("").map(e=>e.charCodeAt(0))),eh=W?e=>u.Buffer.from(e,"base64").toString("utf8"):$?e=>$.decode(ef(e)):e=>ec(e).replace(eu,el);var ep=function(e){function t(r,i){var n=e.call(this,i)||this;return n.statusCode=r,Object.setPrototypeOf(n,t.prototype),n}return c(t,e),t}(Error),ed=function(e){function t(r){var i=e.call(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return c(t,e),t}(Error),ev=function(){function e(e,t,r){this.deploymentKey=e,this.serverUrl=t,this.httpClient=r}return e.prototype.getVariants=function(e,t){return h(this,void 0,void 0,function(){var r,i,n,o;return p(this,function(a){switch(a.label){case 0:return r=es(JSON.stringify(e),!0),i={Authorization:"Api-Key ".concat(this.deploymentKey),"X-Amp-Exp-User":r},(null==t?void 0:t.flagKeys)&&(i["X-Amp-Exp-Flag-Keys"]=es(JSON.stringify(t.flagKeys),!0)),(null==t?void 0:t.trackingOption)&&(i["X-Amp-Exp-Track"]=t.trackingOption),n=new URL("".concat(this.serverUrl,"/sdk/v2/vardata?v=0")),(null==t?void 0:t.evaluationMode)&&n.searchParams.append("eval_mode",null==t?void 0:t.evaluationMode),(null==t?void 0:t.deliveryMethod)&&n.searchParams.append("delivery_method",null==t?void 0:t.deliveryMethod),[4,this.httpClient.request({requestUrl:n.toString(),method:"GET",headers:i,timeoutMillis:null==t?void 0:t.timeoutMillis})];case 1:if(200!=(o=a.sent()).status)throw new ep(o.status,"Fetch error response: status=".concat(o.status));return[2,JSON.parse(o.body)]}})})},e}(),ey=function(){function e(e,t,r){this.deploymentKey=e,this.serverUrl=t,this.httpClient=r}return e.prototype.getFlags=function(e){return h(this,void 0,void 0,function(){var t,r;return p(this,function(i){switch(i.label){case 0:return t={Authorization:"Api-Key ".concat(this.deploymentKey)},(null==e?void 0:e.libraryName)&&(null==e?void 0:e.libraryVersion)&&(t["X-Amp-Exp-Library"]="".concat(e.libraryName,"/").concat(e.libraryVersion)),(null==e?void 0:e.user)&&(t["X-Amp-Exp-User"]=es(JSON.stringify(e.user),!0)),[4,this.httpClient.request({requestUrl:"".concat(this.serverUrl,"/sdk/v2/flags")+((null==e?void 0:e.deliveryMethod)?"?delivery_method=".concat(e.deliveryMethod):""),method:"GET",headers:t,timeoutMillis:null==e?void 0:e.timeoutMillis})];case 1:if(200!=(r=i.sent()).status)throw Error("Flags error response: status=".concat(r.status));return[2,JSON.parse(r.body).reduce(function(e,t){return e[t.key]=t,e},{})]}})})},e}(),eg="u">typeof globalThis?globalThis:e.g||self,em=function(){return"u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof self?self:e.g},eb=function(){var e=em();if(e)try{var t="EXP_test";return e.localStorage.setItem(t,t),e.localStorage.removeItem(t),!0}catch(e){}return!1},ew=function(){function e(e,t){this.poller=void 0,this.action=e,this.ms=t}return e.prototype.start=function(){this.poller||(this.poller=eg.setInterval(this.action,this.ms),this.action())},e.prototype.stop=function(){this.poller&&(eg.clearInterval(this.poller),this.poller=void 0)},e}(),ex=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:eS(),platform:"Web",os:void 0,deviceModel:void 0}},e}(),eS=function(){return"u">typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},ek=function(){function e(){this.queue=[]}return e.prototype.logEvent=function(e){this.receiver?this.receiver(e):this.queue.length0&&(this.queue.forEach(function(t){e(t)}),this.queue=[])},e}(),e_=function(){return(e_=Object.assign||function(e){for(var t,r=1,i=arguments.length;r=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function eA(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return a}"function"==typeof SuppressedError&&SuppressedError;var eC=function(e,t){var r,i,n=typeof e;if(n!==typeof t)return!1;try{for(var o=eI(["string","number","boolean","undefined"]),a=o.next();!a.done;a=o.next())if(a.value===n)return e===t}catch(e){r={error:e}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;var s=Array.isArray(e),u=Array.isArray(t);if(s!==u)return!1;if(s&&u){for(var l=0;ltypeof globalThis?globalThis:e.g;function eO(){this.identityStore=new eP,this.eventBridge=new ek,this.applicationContextProvider=new ex}eO.getInstance=function(e){return eE.analyticsConnectorInstances||(eE.analyticsConnectorInstances={}),eE.analyticsConnectorInstances[e]||(eE.analyticsConnectorInstances[e]=new eO),eE.analyticsConnectorInstances[e]};var eU=e.i(484404);function eT(e){this.amplitudeInstance=e}function ej(e){this.amplitudeInstance=e}eT.prototype.getUser=function(){var e,t,r,i,n,o,a,s,u,l;return{device_id:null==(t=null==(e=this.amplitudeInstance)?void 0:e.options)?void 0:t.deviceId,user_id:null==(i=null==(r=this.amplitudeInstance)?void 0:r.options)?void 0:i.userId,version:null==(o=null==(n=this.amplitudeInstance)?void 0:n.options)?void 0:o.versionName,language:null==(s=null==(a=this.amplitudeInstance)?void 0:a.options)?void 0:s.language,platform:null==(l=null==(u=this.amplitudeInstance)?void 0:u.options)?void 0:l.platform,os:this.getOs(),device_model:this.getDeviceModel()}},eT.prototype.getOs=function(){var e,t,r,i,n,o;return[null==(r=null==(t=null==(e=this.amplitudeInstance)?void 0:e._ua)?void 0:t.browser)?void 0:r.name,null==(o=null==(n=null==(i=this.amplitudeInstance)?void 0:i._ua)?void 0:n.browser)?void 0:o.major].filter(function(e){return null!=e}).join(" ")},eT.prototype.getDeviceModel=function(){var e,t,r;return null==(r=null==(t=null==(e=this.amplitudeInstance)?void 0:e._ua)?void 0:t.os)?void 0:r.name},ej.prototype.track=function(e){this.amplitudeInstance.logEvent(e.name,e.properties)},ej.prototype.setUserProperty=function(e){var t,r;this.amplitudeInstance.setUserProperties(((t={})[e.userProperty]=null==(r=e.variant)?void 0:r.value,t))},ej.prototype.unsetUserProperty=function(e){var t;this.amplitudeInstance._logEvent("$identify",null,null,{$unset:((t={})[e.userProperty]="-",t)})};var eF=function(){return(eF=Object.assign||function(e){for(var t,r=1,i=arguments.length;r0&&n[n.length-1])&&(6===l[0]||2===l[0])){o=0;continue}if(3===l[0]&&(!n||l[1]>n[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function eR(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return a}function eD(e,t,r){if(r||2==arguments.length)for(var i,n=0,o=t.length;n=2&&d[1]&&(v=atob(d[1])),{deviceId:d[0],userId:v}}catch(e){return}},eK=function(e){var t=eB(e,!0);try{var r=eg.localStorage.getItem(t);if(!r)return;var i=JSON.parse(r);if("object"!=typeof i)return;return i}catch(e){return}},eL=function(e){var t=eB(e,!0);try{var r=eg.sessionStorage.getItem(t);if(!r)return;var i=JSON.parse(r);if("object"!=typeof i)return;return i}catch(e){return}},eB=function(e,t){if(t){if((null==e?void 0:e.length)this.maxQueueSize&&(this.inMemoryQueue=this.inMemoryQueue.slice(this.inMemoryQueue.length-this.maxQueueSize)),eg.localStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryQueue)))},e.prototype.loadFlushStore=function(){this.loadQueue(),this.flush(),this.storeQueue()},e}(),e0=function(){var e=em();if(e)try{var t="EXP_test";return e.sessionStorage.setItem(t,t),e.sessionStorage.removeItem(t),!0}catch(e){}return!1},e1=function(){function e(){this.globalScope=em()}return e.prototype.get=function(e){var t;return null==(t=this.globalScope)?void 0:t.localStorage.getItem(e)},e.prototype.put=function(e,t){var r;null==(r=this.globalScope)||r.localStorage.setItem(e,t)},e.prototype.delete=function(e){var t;null==(t=this.globalScope)||t.localStorage.removeItem(e)},e}(),e2=function(e,t,r){var i=e.substring(e.length-6);return new e6("amp-exp-".concat(t,"-").concat(i),r,e4)},e3=function(e,t,r){void 0===r&&(r=new e1);var i=e.substring(e.length-6);return new e6("amp-exp-".concat(t,"-").concat(i,"-flags"),r)},e6=function(){function e(e,t,r){this.cache={},this.namespace=e,this.storage=t,this.transformer=r}return e.prototype.get=function(e){return this.cache[e]},e.prototype.getAll=function(){return eF({},this.cache)},e.prototype.put=function(e,t){this.cache[e]=t},e.prototype.putAll=function(e){var t,r;try{for(var i=eV(Object.keys(e)),n=i.next();!n.done;n=i.next()){var o=n.value;this.cache[o]=e[o]}}catch(e){t={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}},e.prototype.remove=function(e){delete this.cache[e]},e.prototype.clear=function(){this.cache={}},e.prototype.load=function(){var e,t,r,i=this.storage.get(this.namespace);try{r=JSON.parse(i)||{}}catch(e){return}var n={};try{for(var o=eV(Object.keys(r)),a=o.next();!a.done;a=o.next()){var s=a.value;try{var u=void 0;(u=this.transformer?this.transformer(r[s]):r[s])&&(n[s]=u)}catch(e){}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}this.clear(),this.putAll(n)},e.prototype.store=function(e){void 0===e&&(e=this.cache),this.storage.put(this.namespace,JSON.stringify(e))},e}(),e4=function(e){if("string"==typeof e)return{key:e,value:e};if("object"==typeof e){var t=e.key,r=e.value,i=e.payload,n=e.metadata,o=e.expKey;n&&n.experimentKey?o=n.experimentKey:o&&((n=n||{}).experimentKey=o);var a={};return t?a.key=t:r&&(a.key=r),r&&(a.value=r),n&&(a.metadata=n),i&&(a.payload=i),o&&(a.expKey=o),a}},e5=function(){function e(){this.globalScope=em()}return e.prototype.get=function(e){var t;return null==(t=this.globalScope)?void 0:t.sessionStorage.getItem(e)},e.prototype.put=function(e,t){var r;null==(r=this.globalScope)||r.sessionStorage.setItem(e,t)},e.prototype.delete=function(e){var t;null==(t=this.globalScope)||t.sessionStorage.removeItem(e)},e}(),e8=function(e,t,r,i){var n,o=null==r?void 0:r.value,a="[Experiment] ".concat(t);return{name:"[Experiment] Exposure",user:e,key:t,variant:r,userProperty:a,properties:{key:t,variant:o,source:i},userProperties:((n={})[a]=o,n)}},e9=function(e){return null==e},e7=function(e){return!!e9(e)||e&&0===Object.keys(e).length},te=function(e){if(!e||"object"!=typeof e)return{};var t,r,i={};try{for(var n=eV(Object.entries(e)),o=n.next();!o.done;o=n.next()){var a=eR(o.value,2),s=a[0],u=a[1];e9(u)||(i[s]=u)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return i},tt=function(e){var t;return(null==(t=null==e?void 0:e.metadata)?void 0:t.evaluationMode)==="local"},tr=function(){function e(e,t,r,i){this.started=!1,this.done=!1,this.attempts=e,this.min=t,this.max=r,this.scalar=i}return e.prototype.start=function(e){return eM(this,void 0,void 0,function(){return eN(this,function(t){switch(t.label){case 0:if(this.started)throw Error("Backoff already started");return this.started=!0,[4,this.backoff(e,0,this.min)];case 1:return t.sent(),[2]}})})},e.prototype.cancel=function(){this.done=!0,clearTimeout(this.timeoutHandle)},e.prototype.backoff=function(e,t,r){return eM(this,void 0,void 0,function(){var i=this;return eN(this,function(n){return this.done||(this.timeoutHandle=eg.setTimeout(function(){return eM(i,void 0,void 0,function(){var i,n;return eN(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,e()];case 1:return o.sent(),[3,3];case 2:return o.sent(),(i=t+1)0&&f[0]){var h=f[0],p={group_name:h},d=null==(n=null==(i=e.group_properties)?void 0:i[c])?void 0:n[h];d&&Object.keys(d).length>0&&(p.group_properties=d),s[c]=p}}}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}return Object.keys(s).length>0&&(o.groups=s),delete o.user.groups,delete o.user.group_properties,o},tn=function(e){return null==e?{}:"string"==typeof e?{key:e,value:e}:e},to=function(e){if(!e)return{};var t=void 0;e.metadata&&(t=e.metadata.experimentKey);var r={};return e.key&&(r.key=e.key),e.value&&(r.value=e.value),e.payload&&(r.payload=e.payload),t&&(r.expKey=t),e.metadata&&(r.metadata=e.metadata),r},ta=function(){function e(e){this.setProperties={},this.unsetProperties={},this.analyticsProvider=e}return e.prototype.track=function(e){this.setProperties[e.key]!=e.variant.value&&(this.setProperties[e.key]=e.variant.value,delete this.unsetProperties[e.key],this.analyticsProvider.track(e))},e.prototype.setUserProperty=function(e){this.setProperties[e.key]!=e.variant.value&&this.analyticsProvider.setUserProperty(e)},e.prototype.unsetUserProperty=function(e){this.unsetProperties[e.key]||(this.unsetProperties[e.key]="unset",delete this.setProperties[e.key],this.analyticsProvider.unsetUserProperty(e))},e}(),ts=function(){function e(e){this.tracked={},this.exposureTrackingProvider=e}return e.prototype.track=function(e){var t=this.tracked[e.flag_key];t&&t.variant===e.variant||(this.tracked[e.flag_key]=e,this.exposureTrackingProvider.track(e))},e}(),tu=function(){function e(e,t){var r,i,n,o,a,s=this;this.engine=new z,this.isRunning=!1,this.apiKey=e,t=te(t),this.config=eF(eF(eF({},eX),t),{serverUrl:(null==t?void 0:t.serverUrl)||((null==(r=null==t?void 0:t.serverZone)?void 0:r.toLowerCase())==="eu"?"https://api.lab.eu.amplitude.com":eX.serverUrl),flagsServerUrl:(null==t?void 0:t.flagsServerUrl)||((null==(i=null==t?void 0:t.serverZone)?void 0:i.toLowerCase())==="eu"?"https://flag.lab.eu.amplitude.com":eX.flagsServerUrl),flagConfigPollingIntervalMillis:t.flagConfigPollingIntervalMillis=500||429===e.statusCode},e.prototype.addPlugin=function(e){"integration"===e.type&&this.integrationManager.setIntegration(e)},e}(),tl=function(){function e(e,t){var r,i,n;this.globalScope=em(),this.userAgent=void 0!==(null==(r=this.globalScope)?void 0:r.navigator)?null==(i=this.globalScope)?void 0:i.navigator.userAgent:void 0,this.ua=new eU.UAParser(this.userAgent).getResult(),this.localStorage=new e1,this.sessionStorage=new e5,this.userProvider=e,this.apiKey=t,this.storageKey="EXP_".concat(null==(n=this.apiKey)?void 0:n.slice(0,10),"_DEFAULT_USER_PROVIDER")}return e.prototype.getUser=function(){var e,t,r,i,n,o=(null==(e=this.userProvider)?void 0:e.getUser())||{};return eF({language:this.getLanguage(),platform:"Web",os:this.getOs(this.ua),device_model:this.getDeviceModel(this.ua),device_category:null!=(r=null==(t=this.ua.device)?void 0:t.type)?r:"desktop",referring_url:null==(n=null==(i=this.globalScope)?void 0:i.document)?void 0:n.referrer.replace(/\/$/,""),cookie:this.getCookie(),browser:this.getBrowser(this.ua),landing_url:this.getLandingUrl(),first_seen:this.getFirstSeen(),url_param:this.getUrlParam(),user_agent:this.userAgent},o)},e.prototype.getLanguage=function(){return"u">typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},e.prototype.getOs=function(e){var t,r;return[null==(t=e.browser)?void 0:t.name,null==(r=e.browser)?void 0:r.major].filter(function(e){return null!=e}).join(" ")},e.prototype.getDeviceModel=function(e){var t;return null==(t=e.os)?void 0:t.name},e.prototype.getBrowser=function(e){var t,r=null==(t=e.browser)?void 0:t.name;return(null==r?void 0:r.includes("Chrom"))&&(r="Chrome"),(null==r?void 0:r.includes("Firefox"))&&(r="Firefox"),(null==r?void 0:r.includes("Safari"))&&(r="Safari"),(null==r?void 0:r.includes("Edge"))&&(r="Edge"),(null==r?void 0:r.includes("Opera"))&&(r="Opera"),r},e.prototype.getCookie=function(){var e,t,r,i,n;if(null==(t=null==(e=this.globalScope)?void 0:e.document)?void 0:t.cookie)return Object.fromEntries(null==(n=null==(i=null==(r=this.globalScope)?void 0:r.document)?void 0:i.cookie)?void 0:n.split("; ").map(function(e){return e.split("=")}))},e.prototype.getLandingUrl=function(){var e,t;try{var r=JSON.parse(this.sessionStorage.get(this.storageKey)||"{}");return r.landing_url||(r.landing_url=null==(t=null==(e=this.globalScope)?void 0:e.location)?void 0:t.href.replace(/\/$/,""),this.sessionStorage.put(this.storageKey,JSON.stringify(r))),r.landing_url}catch(e){return}},e.prototype.getFirstSeen=function(){try{var e=JSON.parse(this.localStorage.get(this.storageKey)||"{}");return e.first_seen||(e.first_seen=(Date.now()/1e3).toString(),this.localStorage.put(this.storageKey,JSON.stringify(e))),e.first_seen}catch(e){return}},e.prototype.getUrlParam=function(){if(this.globalScope){var e,t,r,i={};try{var n=new URL(this.globalScope.location.href);try{for(var o=eV(n.searchParams),a=o.next();!a.done;a=o.next()){var s=eR(a.value,2),u=s[0],l=s[1];i[u]=eD(eD([],eR(null!=(r=i[u])?r:[]),!1),eR(l.split(",")),!1)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}}catch(e){return}return Object.entries(i).reduce(function(e,t){var r=eR(t,2),i=r[0],n=r[1];return e[i]=1==n.length?n[0]:n,e},{})}},e}();eg.experimentInstances={};var tc=eg.experimentInstances,tf=function(e,t){var r=(null==t?void 0:t.instanceName)||eX.instanceName,i=null==t?void 0:t.internalInstanceNameSuffix;return i?"".concat(r,".").concat(e,".").concat(i):"".concat(r,".").concat(e)},th=function(e,t,r){var i=tf(e,t),n=tc[i];return n?n:(n=new tu(e,eF(eF({},t),{userProvider:new tl(null==t?void 0:t.userProvider,e)})),r&&n.addPlugin(r()),tc[i]=n,n)};function tp(){}tp.prototype.getUser=function(){return{}},tp.prototype.start=function(e){return eM(this,void 0,void 0,function(){return eN(this,function(e){return[2]})})},tp.prototype.stop=function(){},tp.prototype.setUser=function(e){},tp.prototype.fetch=function(e,t){return eM(this,void 0,void 0,function(){return eN(this,function(e){return[2,this]})})},tp.prototype.getUserProvider=function(){return null},tp.prototype.setUserProvider=function(e){return this},tp.prototype.variant=function(e,t){return eX.fallbackVariant},tp.prototype.all=function(){return{}},tp.prototype.clear=function(){},tp.prototype.exposure=function(e){};let td=/^[A-Z]{2}$/,tv="$default_instance",ty="wxu-exp-anon-id";function tg(){window.__wxExposureQueue||(window.__wxExposureQueue=[],window.__wxExposureSink=e=>{window.__wxExposureQueue?.push(e)})}function tm(e=!1){if(window.__wxExperimentClient)return window.__wxExperimentClient;let i="client-a74nh7wdmymfO9eOcl5awe1cgB30BDRV";try{var n;let o=function(){let e=window.__wxAmpFlags;if(!e||"string"!=typeof e)return;let t=Date.parse(window.__wxAmpFlagsAt??"");if(!Number.isFinite(t)){window.__wxAmpFlagsRejected="no-timestamp";return}if(Math.abs(Date.now()-t)>216e5){window.__wxAmpFlagsRejected="stale";return}let r="client-a74nh7wdmymfO9eOcl5awe1cgB30BDRV".slice(-6),i=window.__wxAmpFlagsKeySuffix;if(i&&r&&i!==r){window.__wxAmpFlagsRejected="key-mismatch";return}try{let t=JSON.parse(e);if(!Array.isArray(t)){window.__wxAmpFlagsRejected="not-an-array";return}return t}catch{window.__wxAmpFlagsRejected="not-json";return}}();if(!o&&!e)return;tg();try{window.localStorage.removeItem(`amp-exp-${tv}-${i.slice(-6)}-flags`)}catch{}let s=o?new Set(o.map(e=>e.key)):void 0,u=!!s&&0===window.__wxAmpFlagsDropped;u&&s&&function(e,t){let r=`amp-exp-${tv}-${e.slice(-6)}`;try{let e=window.localStorage.getItem(r);if(!e)return;let i=JSON.parse(e);if(!i||"object"!=typeof i||Array.isArray(i))return;let n=Object.entries(i);if(!n.every(([,e])=>"string"==typeof e||"object"==typeof e&&!!e))return;let o=n.filter(([e])=>t.has(e));if(o.length===n.length)return;if(0===o.length)return void window.localStorage.removeItem(r);window.localStorage.setItem(r,JSON.stringify(Object.fromEntries(o)))}catch{}}(i,s);let l=function(){try{let e=window.localStorage.getItem("wxu-web/keyval:user");if(e){let t=JSON.parse(e),r=t?.anonymousId;if("string"==typeof r&&r)return r}}catch{}try{let e=window.localStorage.getItem(ty);if(e)return e}catch{}if("function"!=typeof crypto?.randomUUID)return;let e=crypto.randomUUID();try{return window.localStorage.setItem(ty,e),window.localStorage.getItem(ty)||e}catch{return e}}(),c=(n={...o?{initialFlags:JSON.stringify(o)}:{},fetchOnStart:!1,pollOnStart:!1,automaticExposureTracking:!1,source:a.LocalStorage,userProvider:{getUser:()=>({user_properties:function(){if(t)return t;if("u"e.trim()).find(e=>e.startsWith("ci="));if(r){try{t=decodeURIComponent(r.slice(3))}catch{return}for(let e of t.split("&")){let[t,r]=e.split("=");if("TWC-GeoIP-Country"===t&&r){let e=r.trim().toUpperCase();return td.test(e)?e:void 0}}}}(document.cookie);return t=e?{twc_country:e}:{}}()})},exposureTrackingProvider:{track:e=>window.__wxExposureSink?.(e)}},th(i,n));l&&c.setUser({device_id:l}),r=u?s:void 0,window.__wxExperimentClient=c,window.__wxExperimentDeviceId=l;let f=window.__wxAmpFlagsDropped;return window.__wxNeedsRemoteExperiments=!o||0===o.length||0!==f||o.some(e=>e.metadata?.evaluationMode!=="local"),c}catch{return}}function tb(){if(window.__wxExperiments)return window.__wxExperiments;let e=tm();if(!e)return{};try{let t=e.all();window.__wxExperiments=r?Object.fromEntries(Object.entries(t).filter(([e])=>r?.has(e))):t}catch{window.__wxExperiments={}}return window.__wxExperiments}e.s(["ensureExperimentClient",0,tm,"initEarlyExperiments",0,function(){try{tg(),window.__wxEvalExperiments=tb,window.__wxEvalExperiments()}catch{}}],830460)}]);