(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6380],{6490:(e,t,r)=>{"use strict";r.d(t,{B:()=>l});var n,i=r(77704),o=r(79686),a=(n||(n=r.t(i,2)))[" useId ".trim().toString()]||(()=>void 0),s=0;function l(e){let[t,r]=i.useState(a());return(0,o.N)(()=>{e||r(e=>e??String(s++))},[e]),e||(t?`radix-${t}`:"")}},13135:(e,t,r)=>{"use strict";function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}r.d(t,{m:()=>n})},13440:(e,t,r)=>{"use strict";r.d(t,{aj:()=>tn});var n,i,o=r(85096).hp,a=function(e,t){return(a=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 s(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}a(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var l=function(){return(l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function p(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i>6|192:((64512&i)==55296&&n+1>18|240,t[r++]=i>>12&63|128):t[r++]=i>>12|224,t[r++]=i>>6&63|128),t[r++]=63&i|128)}return Uint8Array.from(t)},y=function(e,t){void 0===t&&(t=0);for(var r=v(e),n=r.length,i=n>>2,o=t,a=0;a>>0},g=function(e,t){var r=e,n=t;return n^=r=Math.imul(r=b(r=Math.imul(r,-0x3361d2af),15),0x1b873593),(n=Math.imul(n=b(n,13),5))+-0x19ab949c|0},m=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},b=function(e,t,r){void 0===r&&(r=32),t>r&&(t%=r);var n=(e&0xffffffff>>0)>>>0>>>r-t>>>0;return(e>>0},w=function(e,t){return void 0===t&&(t=0),x(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&&u=w&&cr;case h.GREATER_THAN_EQUALS:case h.VERSION_GREATER_THAN_EQUALS:return e>=r;default:return!1}},e.prototype.versionComparator=function(e,t,r){var n=e.compareTo(r);switch(t){case h.LESS_THAN:case h.VERSION_LESS_THAN:return n0;case h.GREATER_THAN_EQUALS:case h.VERSION_GREATER_THAN_EQUALS:return n>=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 n=String(e);try{var i=JSON.parse(n);if(Array.isArray(i)){var r=e;return r.map(function(e){return t.coerceString(e)}).filter(Boolean)}var o=this.coerceString(n);return o?[o]:void 0}catch(e){var o=this.coerceString(n);return o?[o]:void 0}},e.prototype.isSetOperator=function(e){switch(e){case h.SET_IS:case h.SET_IS_NOT:case h.SET_CONTAINS:case h.SET_DOES_NOT_CONTAIN:case h.SET_CONTAINS_ANY:case h.SET_DOES_NOT_CONTAIN_ANY:return!0;default:return!1}},e.prototype.setEquals=function(e,t){var r=new Set(e),n=new Set(t);return r.size===n.size&&p([],d(n),!1).every(function(e){return r.has(e)})},e.prototype.matchesSetContainsAll=function(e,t){var r,n;if(e.length{let t={};return e.forEach((e,r)=>t[e]=r),t})(I),M=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,U=String.fromCharCode.bind(String),D="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),j=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),F=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),V=C?e=>btoa(e):O?e=>o.from(e,"binary").toString("base64"):e=>{let t,r,n,i,o="",a=e.length%3;for(let a=0;a255||(n=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw TypeError("invalid character found");o+=I[(t=r>18&63]+I[t>>12&63]+I[t>>6&63]+I[63&t]}return a?o.slice(0,a-3)+"===".substring(a):o},H=O?e=>o.from(e).toString("base64"):e=>{let t=[];for(let r=0,n=e.length;rt?j(H(e)):H(e),W=e=>{if(e.length>>6)+U(128|63&t):U(224|t>>>12&15)+U(128|t>>>6&63)+U(128|63&t)}var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return U(240|t>>>18&7)+U(128|t>>>12&63)+U(128|t>>>6&63)+U(128|63&t)},K=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,B=e=>e.replace(K,W),z=O?e=>o.from(e,"utf8").toString("base64"):P?e=>H(P.encode(e)):e=>V(B(e)),G=(e,t=!1)=>t?j(z(e)):z(e),Q=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,$=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))>>10)+55296)+U((1023&t)+56320);case 3:return U((15&e.charCodeAt(0))e.replace(Q,$),J=_?e=>atob(F(e)):O?e=>o.from(e,"base64").toString("binary"):e=>{if(e=e.replace(/\s+/g,""),!M.test(e))throw TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r="",n,i;for(let o=0;o>16&255):64===i?U(t>>16&255,t>>8&255):U(t>>16&255,t>>8&255,255&t);return r},Y=O?e=>D(o.from(e,"base64")):e=>D(J(e).split("").map(e=>e.charCodeAt(0))),Z=e=>Y(et(e)),ee=O?e=>o.from(e,"base64").toString("utf8"):R?e=>R.decode(Y(e)):e=>X(J(e)),et=e=>F(e.replace(/[-_]/g,e=>"-"==e?"+":"/")),er=e=>ee(et(e)),en=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),ei={encodeURL:e=>G(e,!0)};var eo=function(e){function t(r,n){var i=e.call(this,n)||this;return i.statusCode=r,Object.setPrototypeOf(i,t.prototype),i}return s(t,e),t}(Error),ea=function(e){function t(r){var n=e.call(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return s(t,e),t}(Error),es=function(){function e(e,t,r){this.deploymentKey=e,this.serverUrl=t,this.httpClient=r}return e.prototype.getVariants=function(e,t){return u(this,void 0,void 0,function(){var r,n,i,o;return c(this,function(a){switch(a.label){case 0:return r=ei.encodeURL(JSON.stringify(e)),n={Authorization:"Api-Key ".concat(this.deploymentKey),"X-Amp-Exp-User":r},(null==t?void 0:t.flagKeys)&&(n["X-Amp-Exp-Flag-Keys"]=ei.encodeURL(JSON.stringify(t.flagKeys))),(null==t?void 0:t.trackingOption)&&(n["X-Amp-Exp-Track"]=t.trackingOption),i=new URL("".concat(this.serverUrl,"/sdk/v2/vardata?v=0")),(null==t?void 0:t.evaluationMode)&&i.searchParams.append("eval_mode",null==t?void 0:t.evaluationMode),(null==t?void 0:t.deliveryMethod)&&i.searchParams.append("delivery_method",null==t?void 0:t.deliveryMethod),[4,this.httpClient.request({requestUrl:i.toString(),method:"GET",headers:n,timeoutMillis:null==t?void 0:t.timeoutMillis})];case 1:if(200!=(o=a.sent()).status)throw new eo(o.status,"Fetch error response: status=".concat(o.status));return[2,JSON.parse(o.body)]}})})},e}(),el=function(){function e(e,t,r){this.deploymentKey=e,this.serverUrl=t,this.httpClient=r}return e.prototype.getFlags=function(e){return u(this,void 0,void 0,function(){var t,r;return c(this,function(n){switch(n.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"]=ei.encodeURL(JSON.stringify(e.user))),[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=n.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}(),eu="undefined"!=typeof globalThis?globalThis:r.g||self,ec=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==r.g?r.g:void 0},ef=function(){var e=ec();if(e)try{var t="EXP_test";return e.localStorage.setItem(t,t),e.localStorage.removeItem(t),!0}catch(e){}return!1},ed=function(){function e(e,t){this.poller=void 0,this.action=e,this.ms=t}return e.prototype.start=function(){this.poller||(this.poller=eu.setInterval(this.action,this.ms),this.action())},e.prototype.stop=function(){this.poller&&(eu.clearInterval(this.poller),this.poller=void 0)},e}(),ep=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:eh(),platform:"Web",os:void 0,deviceModel:void 0}},e}(),eh=function(){return"undefined"!=typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},ev=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}(),ey=function(){return(ey=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function em(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}"function"==typeof SuppressedError&&SuppressedError;var eb=function(e,t){var r,n,i=typeof e;if(i!==typeof t)return!1;try{for(var o=eg(["string","number","boolean","undefined"]),a=o.next();!a.done;a=o.next())if(a.value===i)return e===t}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.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),l=Array.isArray(t);if(s!==l)return!1;if(s&&l){for(var u=0;u0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function e_(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function eC(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i=2&&h[1]&&(v=atob(h[1])),{deviceId:h[0],userId:v}}catch(e){return}},eR=function(e){var t=eI(e,!0);try{var r=eu.localStorage.getItem(t);if(!r)return;var n=JSON.parse(r);if("object"!=typeof n)return;return n}catch(e){return}},eP=function(e){var t=eI(e,!0);try{var r=eu.sessionStorage.getItem(t);if(!r)return;var n=JSON.parse(r);if("object"!=typeof n)return;return n}catch(e){return}},eI=function(e,t){if(t){if((null==e?void 0:e.length)this.maxQueueSize&&(this.inMemoryQueue=this.inMemoryQueue.slice(this.inMemoryQueue.length-this.maxQueueSize)),eu.localStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryQueue)))},e.prototype.loadFlushStore=function(){this.loadQueue(),this.flush(),this.storeQueue()},e}(),eK=function(){var e=ec();if(e)try{var t="EXP_test";return e.sessionStorage.setItem(t,t),e.sessionStorage.removeItem(t),!0}catch(e){}return!1},eB=function(){function e(){this.globalScope=ec()}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}(),ez=function(e,t,r){var n=e.substring(e.length-6);return new eQ("amp-exp-".concat(t,"-").concat(n),r,e$)},eG=function(e,t,r){void 0===r&&(r=new eB);var n=e.substring(e.length-6);return new eQ("amp-exp-".concat(t,"-").concat(n,"-flags"),r)},eQ=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 eA({},this.cache)},e.prototype.put=function(e,t){this.cache[e]=t},e.prototype.putAll=function(e){var t,r;try{for(var n=ek(Object.keys(e)),i=n.next();!i.done;i=n.next()){var o=i.value;this.cache[o]=e[o]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}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,n=this.storage.get(this.namespace);try{r=JSON.parse(n)||{}}catch(e){return}var i={};try{for(var o=ek(Object.keys(r)),a=o.next();!a.done;a=o.next()){var s=a.value;try{var l=void 0;(l=this.transformer?this.transformer(r[s]):r[s])&&(i[s]=l)}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(i)},e.prototype.store=function(e){void 0===e&&(e=this.cache),this.storage.put(this.namespace,JSON.stringify(e))},e}(),e$=function(e){if("string"==typeof e)return{key:e,value:e};if("object"==typeof e){var t=e.key,r=e.value,n=e.payload,i=e.metadata,o=e.expKey;i&&i.experimentKey?o=i.experimentKey:o&&((i=i||{}).experimentKey=o);var a={};return t?a.key=t:r&&(a.key=r),r&&(a.value=r),i&&(a.metadata=i),n&&(a.payload=n),o&&(a.expKey=o),a}},eX=function(){function e(){this.globalScope=ec()}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}(),eJ=function(e,t,r,n){var i,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:n},userProperties:((i={})[a]=o,i)}},eY=function(e){return null==e},eZ=function(e){return!!eY(e)||e&&0===Object.keys(e).length},e0=function(e){var t;return(null==(t=null==e?void 0:e.metadata)?void 0:t.evaluationMode)==="local"},e1=function(){function e(e,t,r,n){this.started=!1,this.done=!1,this.attempts=e,this.min=t,this.max=r,this.scalar=n}return e.prototype.start=function(e){return eT(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 eT(this,void 0,void 0,function(){var n=this;return eN(this,function(i){return this.done||(this.timeoutHandle=eu.setTimeout(function(){return eT(n,void 0,void 0,function(){var n,i;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(),(n=t+1)0&&f[0]){var d=f[0],p={group_name:d},h=null==(i=null==(n=e.group_properties)?void 0:n[c])?void 0:i[d];h&&Object.keys(h).length>0&&(p.group_properties=h),s[c]=p}}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}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},e3=function(e){return null==e?{}:"string"==typeof e?{key:e,value:e}:e},e6=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},e4=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}(),e5=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}(),e7=function(){function e(e,t){var r,n,i,o,a,s=this;this.engine=new T,this.isRunning=!1,this.apiKey=e,this.config=eA(eA(eA({},eF),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":eF.serverUrl),flagsServerUrl:(null==t?void 0:t.flagsServerUrl)||((null==(n=null==t?void 0:t.serverZone)?void 0:n.toLowerCase())==="eu"?"https://flag.lab.eu.amplitude.com":eF.flagsServerUrl),flagConfigPollingIntervalMillis:t.flagConfigPollingIntervalMillis=500||429===e.statusCode},e.prototype.addPlugin=function(e){"integration"===e.type&&this.integrationManager.setIntegration(e)},e}(),e8=function(){function e(e,t){var r,n,i;this.globalScope=ec(),this.userAgent=void 0!==(null==(r=this.globalScope)?void 0:r.navigator)?null==(n=this.globalScope)?void 0:n.navigator.userAgent:void 0,this.ua=new eE.UAParser(this.userAgent).getResult(),this.localStorage=new eB,this.sessionStorage=new eX,this.userProvider=e,this.apiKey=t,this.storageKey="EXP_".concat(null==(i=this.apiKey)?void 0:i.slice(0,10),"_DEFAULT_USER_PROVIDER")}return e.prototype.getUser=function(){var e,t,r,n,i,o=(null==(e=this.userProvider)?void 0:e.getUser())||{};return eA({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==(i=null==(n=this.globalScope)?void 0:n.document)?void 0:i.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"undefined"!=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,n,i;if(null==(t=null==(e=this.globalScope)?void 0:e.document)?void 0:t.cookie)return Object.fromEntries(null==(i=null==(n=null==(r=this.globalScope)?void 0:r.document)?void 0:n.cookie)?void 0:i.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,n={};try{var i=new URL(this.globalScope.location.href);try{for(var o=ek(i.searchParams),a=o.next();!a.done;a=o.next()){var s=e_(a.value,2),l=s[0],u=s[1];n[l]=eC(eC([],e_(null!=(r=n[l])?r:[]),!1),e_(u.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(n).reduce(function(e,t){var r=e_(t,2),n=r[0],i=r[1];return e[n]=1==i.length?i[0]:i,e},{})}},e}();eu.experimentInstances={};var e9=eu.experimentInstances,te=function(e){return(null==e?void 0:e.instanceName)||eF.instanceName},tt=function(e,t){var r=te(t),n=null==t?void 0:t.internalInstanceNameSuffix;return n?"".concat(r,".").concat(e,".").concat(n):"".concat(r,".").concat(e)},tr=function(e,t,r){var n=tt(e,t),i=e9[n];return i?i:(i=new e7(e,eA(eA({},t),{userProvider:new e8(null==t?void 0:t.userProvider,e)})),r&&i.addPlugin(r()),e9[n]=i,i)},tn={initialize:function(e,t){return tr(e,t)},initializeWithAmplitudeAnalytics:function(e,t){return tr(e,t,function(){return new eL(e,eS.getInstance(te(t)),1e4)})}};!function(){function e(){}e.prototype.getUser=function(){return{}},e.prototype.start=function(e){return eT(this,void 0,void 0,function(){return eN(this,function(e){return[2]})})},e.prototype.stop=function(){},e.prototype.setUser=function(e){},e.prototype.fetch=function(e){return eT(this,void 0,void 0,function(){return eN(this,function(e){return[2,this]})})},e.prototype.getUserProvider=function(){return null},e.prototype.setUserProvider=function(e){return this},e.prototype.variant=function(e,t){return eF.fallbackVariant},e.prototype.all=function(){return{}},e.prototype.clear=function(){},e.prototype.exposure=function(e){}}()},15292:(e,t,r)=>{"use strict";r.d(t,{C:()=>a});var n=r(77704),i=r(23221),o=r(79686),a=e=>{let{present:t,children:r}=e,a=function(e){var t,r;let[i,a]=n.useState(),l=n.useRef(null),u=n.useRef(e),c=n.useRef("none"),[f,d]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return n.useEffect(()=>{let e=s(l.current);c.current="mounted"===f?e:"none"},[f]),(0,o.N)(()=>{let t=l.current,r=u.current;if(r!==e){let n=c.current,i=s(t);e?d("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?d("UNMOUNT"):r&&n!==i?d("ANIMATION_OUT"):d("UNMOUNT"),u.current=e}},[e,d]),(0,o.N)(()=>{if(i){var e;let t,r=null!=(e=i.ownerDocument.defaultView)?e:window,n=e=>{let n=s(l.current).includes(e.animationName);if(e.target===i&&n&&(d("ANIMATION_END"),!u.current)){let e=i.style.animationFillMode;i.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=e)})}},o=e=>{e.target===i&&(c.current=s(l.current))};return i.addEventListener("animationstart",o),i.addEventListener("animationcancel",n),i.addEventListener("animationend",n),()=>{r.clearTimeout(t),i.removeEventListener("animationstart",o),i.removeEventListener("animationcancel",n),i.removeEventListener("animationend",n)}}d("ANIMATION_END")},[i,d]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:n.useCallback(e=>{l.current=e?getComputedStyle(e):null,a(e)},[])}}(t),l="function"==typeof r?r({present:a.isPresent}):n.Children.only(r),u=(0,i.s)(a.ref,function(e){var t,r;let n=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,i=n&&"isReactWarning"in n&&n.isReactWarning;return i?e.ref:(i=(n=null==(r=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:r.get)&&"isReactWarning"in n&&n.isReactWarning)?e.props.ref:e.props.ref||e.ref}(l));return"function"==typeof r||a.isPresent?n.cloneElement(l,{ref:u}):null};function s(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"},18149:(e,t,r)=>{"use strict";r.d(t,{n:()=>f});var n=r(77704),i=r(23221),o=r(94553),a=r(90750),s=r(59716),l="focusScope.autoFocusOnMount",u="focusScope.autoFocusOnUnmount",c={bubbles:!1,cancelable:!0},f=n.forwardRef((e,t)=>{let{loop:r=!1,trapped:f=!1,onMountAutoFocus:y,onUnmountAutoFocus:g,...m}=e,[b,w]=n.useState(null),x=(0,a.c)(y),S=(0,a.c)(g),E=n.useRef(null),A=(0,i.s)(t,e=>w(e)),T=n.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;n.useEffect(()=>{if(f){let e=function(e){if(T.paused||!b)return;let t=e.target;b.contains(t)?E.current=t:h(E.current,{select:!0})},t=function(e){if(T.paused||!b)return;let t=e.relatedTarget;null!==t&&(b.contains(t)||h(E.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&h(b)});return b&&r.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[f,b,T.paused]),n.useEffect(()=>{if(b){v.add(T);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(l,c);b.addEventListener(l,x),b.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=document.activeElement;for(let n of e)if(h(n,{select:t}),document.activeElement!==r)return}(d(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&h(b))}return()=>{b.removeEventListener(l,x),setTimeout(()=>{let t=new CustomEvent(u,c);b.addEventListener(u,S),b.dispatchEvent(t),t.defaultPrevented||h(null!=e?e:document.body,{select:!0}),b.removeEventListener(u,S),v.remove(T)},0)}}},[b,x,S,T]);let N=n.useCallback(e=>{if(!r&&!f||T.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[i,o]=function(e){let t=d(e);return[p(t,e),p(t.reverse(),e)]}(t);i&&o?e.shiftKey||n!==o?e.shiftKey&&n===i&&(e.preventDefault(),r&&h(o,{select:!0})):(e.preventDefault(),r&&h(i,{select:!0})):n===t&&e.preventDefault()}},[r,f,T.paused]);return(0,s.jsx)(o.sG.div,{tabIndex:-1,...m,ref:A,onKeyDown:N})});function d(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function p(e,t){for(let r of e)if(!function(e,t){let{upTo:r}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===r||e!==r);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function h(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}f.displayName="FocusScope";var v=function(){let e=[];return{add(t){let r=e[0];t!==r&&(null==r||r.pause()),(e=y(e,t)).unshift(t)},remove(t){var r;null==(r=(e=y(e,t))[0])||r.resume()}}}();function y(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}},22286:(e,t,r)=>{"use strict";r.d(t,{i:()=>s});var n,i=r(77704),o=r(79686),a=(n||(n=r.t(i,2)))[" useInsertionEffect ".trim().toString()]||o.N;function s({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[o,s,l]=function({defaultProp:e,onChange:t}){let[r,n]=i.useState(e),o=i.useRef(r),s=i.useRef(t);return a(()=>{s.current=t},[t]),i.useEffect(()=>{o.current!==r&&(s.current?.(r),o.current=r)},[r,o]),[r,n,s]}({defaultProp:t,onChange:r}),u=void 0!==e,c=u?e:o;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,n])}return[c,i.useCallback(t=>{if(u){let r="function"==typeof t?t(e):t;r!==e&&l.current?.(r)}else s(t)},[u,e,s,l])]}Symbol("RADIX:SYNC_STATE")},23177:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(77704),i=r(25033),o=r(94553),a=r(79686),s=r(59716),l=n.forwardRef((e,t)=>{var r,l;let{container:u,...c}=e,[f,d]=n.useState(!1);(0,a.N)(()=>d(!0),[]);let p=u||f&&(null==(l=globalThis)||null==(r=l.document)?void 0:r.body);return p?i.createPortal((0,s.jsx)(o.sG.div,{...c,ref:t}),p):null});l.displayName="Portal"},27135:(e,t,r)=>{"use strict";r.d(t,{A:()=>a,q:()=>o});var n=r(77704),i=r(59716);function o(e,t){let r=n.createContext(t),o=e=>{let{children:t,...o}=e,a=n.useMemo(()=>o,Object.values(o));return(0,i.jsx)(r.Provider,{value:a,children:t})};return o.displayName=e+"Provider",[o,function(i){let o=n.useContext(r);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function a(e,t=[]){let r=[],o=()=>{let t=r.map(e=>n.createContext(e));return function(r){let i=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return o.scopeName=e,[function(t,o){let a=n.createContext(o),s=r.length;r=[...r,o];let l=t=>{let{scope:r,children:o,...l}=t,u=r?.[e]?.[s]||a,c=n.useMemo(()=>l,Object.values(l));return(0,i.jsx)(u.Provider,{value:c,children:o})};return l.displayName=t+"Provider",[l,function(r,i){let l=i?.[e]?.[s]||a,u=n.useContext(l);if(u)return u;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}(o,...t)]}},40684:(e,t,r)=>{"use strict";r.d(t,{Eq:()=>c});var n=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},i=new WeakMap,o=new WeakMap,a={},s=0,l=function(e){return e&&(e.host||l(e.parentNode))},u=function(e,t,r,n){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=l(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});a[r]||(a[r]=new WeakMap);var c=a[r],f=[],d=new Set,p=new Set(u),h=function(e){!e||d.has(e)||(d.add(e),h(e.parentNode))};u.forEach(h);var v=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(d.has(e))v(e);else try{var t=e.getAttribute(n),a=null!==t&&"false"!==t,s=(i.get(e)||0)+1,l=(c.get(e)||0)+1;i.set(e,s),c.set(e,l),f.push(e),1===s&&a&&o.set(e,!0),1===l&&e.setAttribute(r,"true"),a||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return v(t),d.clear(),s++,function(){f.forEach(function(e){var t=i.get(e)-1,a=c.get(e)-1;i.set(e,t),c.set(e,a),t||(o.has(e)||e.removeAttribute(n),o.delete(e)),a||e.removeAttribute(r)}),--s||(i=new WeakMap,i=new WeakMap,o=new WeakMap,a={})}},c=function(e,t,r){void 0===r&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),o=t||n(e);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live]"))),u(i,o,r,"aria-hidden")):function(){return null}}},50494:(e,t,r)=>{"use strict";r.d(t,{A:()=>z});var n,i,o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}Object.create;Object.create;var s=("function"==typeof SuppressedError&&SuppressedError,r(77704)),l="right-scroll-bar-position",u="width-before-scroll-bar";function c(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var f="undefined"!=typeof window?s.useLayoutEffect:s.useEffect,d=new WeakMap;function p(e){return e}var h=function(e){void 0===e&&(e={});var t,r,n,i,a=(t=null,void 0===r&&(r=p),n=[],i=!1,{read:function(){if(i)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var t=r(e,i);return n.push(t),function(){n=n.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(i=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){i=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var o=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(o)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}});return a.options=o({async:!0,ssr:!1},e),a}(),v=function(){},y=s.forwardRef(function(e,t){var r,n,i,l,u=s.useRef(null),p=s.useState({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:v}),y=p[0],g=p[1],m=e.forwardProps,b=e.children,w=e.className,x=e.removeScrollBar,S=e.enabled,E=e.shards,A=e.sideCar,T=e.noIsolation,N=e.inert,k=e.allowPinchZoom,_=e.as,C=e.gapMode,O=a(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=(r=[u,t],n=function(e){return r.forEach(function(t){return c(t,e)})},(i=(0,s.useState)(function(){return{value:null,callback:n,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=n,l=i.facade,f(function(){var e=d.get(l);if(e){var t=new Set(e),n=new Set(r),i=l.current;t.forEach(function(e){n.has(e)||c(e,null)}),n.forEach(function(e){t.has(e)||c(e,i)})}d.set(l,r)},[r]),l),P=o(o({},O),y);return s.createElement(s.Fragment,null,S&&s.createElement(A,{sideCar:h,removeScrollBar:x,shards:E,noIsolation:T,inert:N,setCallbacks:g,allowPinchZoom:!!k,lockRef:u,gapMode:C}),m?s.cloneElement(s.Children.only(b),o(o({},P),{ref:R})):s.createElement(void 0===_?"div":_,o({},P,{className:w,ref:R}),b))});y.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},y.classNames={fullWidth:u,zeroRight:l};var g=function(e){var t=e.sideCar,r=a(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return s.createElement(n,o({},r))};g.isSideCarExport=!0;var m=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=i||r.nc;return t&&e.setAttribute("nonce",t),e}())){var o,a;(o=t).styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},b=function(){var e=m();return function(t,r){s.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},w=function(){var e=b();return function(t){return e(t.styles,t.dynamic),null}},x={left:0,top:0,right:0,gap:0},S=function(e){return parseInt(e||"",10)||0},E=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[S(r),S(n),S(i)]},A=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return x;var t=E(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},T=w(),N="data-scroll-locked",k=function(e,t,r,n){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(s,"px ").concat(n,";\n }\n body[").concat(N,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(l," {\n right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(u," {\n margin-right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(l," .").concat(l," {\n right: 0 ").concat(n,";\n }\n \n .").concat(u," .").concat(u," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(N,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},_=function(){var e=parseInt(document.body.getAttribute(N)||"0",10);return isFinite(e)?e:0},C=function(){s.useEffect(function(){return document.body.setAttribute(N,(_()+1).toString()),function(){var e=_()-1;ei[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},U=function(e,t){return"v"===e?L(t,"overflowY"):L(t,"overflowX")},D=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},j=function(e,t,r,n,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*n,l=r.target,u=t.contains(l),c=!1,f=s>0,d=0,p=0;do{var h=D(e,l),v=h[0],y=h[1]-h[2]-a*v;(v||y)&&U(e,l)&&(d+=y,p+=v),l=l instanceof ShadowRoot?l.host:l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return f&&(i&&1>Math.abs(d)||!i&&s>d)?c=!0:!f&&(i&&1>Math.abs(p)||!i&&-s>p)&&(c=!0),c},F=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},V=function(e){return[e.deltaX,e.deltaY]},H=function(e){return e&&"current"in e?e.current:e},q=0,W=[];let K=(n=function(e){var t=s.useRef([]),r=s.useRef([0,0]),n=s.useRef(),i=s.useState(q++)[0],o=s.useState(w)[0],a=s.useRef(e);s.useEffect(function(){a.current=e},[e]),s.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;iMath.abs(u)?"h":"v";if("touches"in e&&"h"===f&&"range"===c.type)return!1;var d=M(f,c);if(!d)return!0;if(d?i=f:(i="v"===f?"h":"v",d=M(f,c)),!d)return!1;if(!n.current&&"changedTouches"in e&&(l||u)&&(n.current=i),!i)return!0;var p=n.current||i;return j(p,t,e,"h"===p?l:u,!0)},[]),u=s.useCallback(function(e){if(W.length&&W[W.length-1]===o){var r="deltaY"in e?V(e):F(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta,n[0]===r[0]&&n[1]===r[1])})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var i=(a.current.shards||[]).map(H).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?l(e,i[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=s.useCallback(function(e,r,n,i){var o={name:e,delta:r,target:n,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),f=s.useCallback(function(e){r.current=F(e),n.current=void 0},[]),d=s.useCallback(function(t){c(t.type,V(t),t.target,l(t,e.lockRef.current))},[]),p=s.useCallback(function(t){c(t.type,F(t),t.target,l(t,e.lockRef.current))},[]);s.useEffect(function(){return W.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",u,I),document.addEventListener("touchmove",u,I),document.addEventListener("touchstart",f,I),function(){W=W.filter(function(e){return e!==o}),document.removeEventListener("wheel",u,I),document.removeEventListener("touchmove",u,I),document.removeEventListener("touchstart",f,I)}},[]);var h=e.removeScrollBar,v=e.inert;return s.createElement(s.Fragment,null,v?s.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,h?s.createElement(O,{gapMode:e.gapMode}):null)},h.useMedium(n),g);var B=s.forwardRef(function(e,t){return s.createElement(y,o({},e,{ref:t,sideCar:K}))});B.classNames=y.classNames;let z=B},61893:function(e,t,r){var n;!function(i,o){"use strict";var a="function",s="undefined",l="object",u="string",c="model",f="name",d="type",p="vendor",h="version",v="architecture",y="console",g="mobile",m="tablet",b="smarttv",w="wearable",x="embedded",S="Amazon",E="Apple",A="ASUS",T="BlackBerry",N="Browser",k="Chrome",_="Firefox",C="Google",O="Huawei",R="Microsoft",P="Motorola",I="Opera",L="Samsung",M="Sharp",U="Sony",D="Xiaomi",j="Zebra",F="Facebook",V=function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},H=function(e){for(var t={},r=0;r0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,c):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=c?c.replace(s[1],s[2]):void 0:this[s[0]]=c?s[1].call(this,c,s[2]):void 0:4===s.length&&(this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):o):this[s]=c||o;f+=2}},z=function(e,t){for(var r in t)if(typeof t[r]===l&&t[r].length>0){for(var n=0;n350?K(e,350):e,this},this.setUA(r),this};$.VERSION="0.7.33",$.BROWSER=H([f,h,"major"]),$.CPU=H([v]),$.DEVICE=H([c,p,d,y,g,b,m,w,x]),$.ENGINE=$.OS=H([f,h]),typeof t!==s?(e.exports&&(t=e.exports=$),t.UAParser=$):r.amdO?o===(n=(function(){return $}).call(t,r,t,e))||(e.exports=n):typeof i!==s&&(i.UAParser=$);var X=typeof i!==s&&(i.jQuery||i.Zepto);if(X&&!X.ua){var J=new $;X.ua=J.getResult(),X.ua.get=function(){return J.getUA()},X.ua.set=function(e){J.setUA(e);var t=J.getResult();for(var r in t)X.ua[r]=t[r]}}}("object"==typeof window?window:this)},67283:(e,t,r)=>{"use strict";r.d(t,{i3:()=>tS,UC:()=>tx,ZL:()=>tw,bL:()=>tm,l9:()=>tb});var n=r(77704),i=r(13135),o=r(23221),a=r(27135),s=r(74781),l=r(89109),u=r(18149),c=r(6490);let f=["top","right","bottom","left"],d=Math.min,p=Math.max,h=Math.round,v=Math.floor,y=e=>({x:e,y:e}),g={left:"right",right:"left",bottom:"top",top:"bottom"},m={start:"end",end:"start"};function b(e,t){return"function"==typeof e?e(t):e}function w(e){return e.split("-")[0]}function x(e){return e.split("-")[1]}function S(e){return"x"===e?"y":"x"}function E(e){return"y"===e?"height":"width"}function A(e){return["top","bottom"].includes(w(e))?"y":"x"}function T(e){return e.replace(/start|end/g,e=>m[e])}function N(e){return e.replace(/left|right|bottom|top/g,e=>g[e])}function k(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function _(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function C(e,t,r){let n,{reference:i,floating:o}=e,a=A(t),s=S(A(t)),l=E(s),u=w(t),c="y"===a,f=i.x+i.width/2-o.width/2,d=i.y+i.height/2-o.height/2,p=i[l]/2-o[l]/2;switch(u){case"top":n={x:f,y:i.y-o.height};break;case"bottom":n={x:f,y:i.y+i.height};break;case"right":n={x:i.x+i.width,y:d};break;case"left":n={x:i.x-o.width,y:d};break;default:n={x:i.x,y:i.y}}switch(x(t)){case"start":n[s]-=p*(r&&c?-1:1);break;case"end":n[s]+=p*(r&&c?-1:1)}return n}let O=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=r,s=o.filter(Boolean),l=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=C(u,n,l),d=n,p={},h=0;for(let r=0;re[t]>=0)}async function L(e,t){let{placement:r,platform:n,elements:i}=e,o=await (null==n.isRTL?void 0:n.isRTL(i.floating)),a=w(r),s=x(r),l="y"===A(r),u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,f=b(t,e),{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*c,y:d*u}:{x:d*u,y:p*c}}function M(){return"undefined"!=typeof window}function U(e){return F(e)?(e.nodeName||"").toLowerCase():"#document"}function D(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function j(e){var t;return null==(t=(F(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function F(e){return!!M()&&(e instanceof Node||e instanceof D(e).Node)}function V(e){return!!M()&&(e instanceof Element||e instanceof D(e).Element)}function H(e){return!!M()&&(e instanceof HTMLElement||e instanceof D(e).HTMLElement)}function q(e){return!!M()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof D(e).ShadowRoot)}function W(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=Q(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function K(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function B(e){let t=z(),r=V(e)?Q(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||["transform","translate","scale","rotate","perspective","filter"].some(e=>(r.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(r.contain||"").includes(e))}function z(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function G(e){return["html","body","#document"].includes(U(e))}function Q(e){return D(e).getComputedStyle(e)}function $(e){return V(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function X(e){if("html"===U(e))return e;let t=e.assignedSlot||e.parentNode||q(e)&&e.host||j(e);return q(t)?t.host:t}function J(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let i=function e(t){let r=X(t);return G(r)?t.ownerDocument?t.ownerDocument.body:t.body:H(r)&&W(r)?r:e(r)}(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),a=D(i);if(o){let e=Y(a);return t.concat(a,a.visualViewport||[],W(i)?i:[],e&&r?J(e):[])}return t.concat(i,J(i,[],r))}function Y(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Z(e){let t=Q(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=H(e),o=i?e.offsetWidth:r,a=i?e.offsetHeight:n,s=h(r)!==o||h(n)!==a;return s&&(r=o,n=a),{width:r,height:n,$:s}}function ee(e){return V(e)?e:e.contextElement}function et(e){let t=ee(e);if(!H(t))return y(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=Z(t),a=(o?h(r.width):r.width)/n,s=(o?h(r.height):r.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let er=y(0);function en(e){let t=D(e);return z()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:er}function ei(e,t,r,n){var i;void 0===t&&(t=!1),void 0===r&&(r=!1);let o=e.getBoundingClientRect(),a=ee(e),s=y(1);t&&(n?V(n)&&(s=et(n)):s=et(e));let l=(void 0===(i=r)&&(i=!1),n&&(!i||n===D(a))&&i)?en(a):y(0),u=(o.left+l.x)/s.x,c=(o.top+l.y)/s.y,f=o.width/s.x,d=o.height/s.y;if(a){let e=D(a),t=n&&V(n)?D(n):n,r=e,i=Y(r);for(;i&&n&&t!==r;){let e=et(i),t=i.getBoundingClientRect(),n=Q(i),o=t.left+(i.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(n.paddingTop))*e.y;u*=e.x,c*=e.y,f*=e.x,d*=e.y,u+=o,c+=a,i=Y(r=D(i))}}return _({width:f,height:d,x:u,y:c})}function eo(e,t){let r=$(e).scrollLeft;return t?t.left+r:ei(j(e)).left+r}function ea(e,t,r){void 0===r&&(r=!1);let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-(r?0:eo(e,n)),y:n.top+t.scrollTop}}function es(e,t,r){let n;if("viewport"===t)n=function(e,t){let r=D(e),n=j(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=z();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,r);else if("document"===t)n=function(e){let t=j(e),r=$(e),n=e.ownerDocument.body,i=p(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=p(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),a=-r.scrollLeft+eo(e),s=-r.scrollTop;return"rtl"===Q(n).direction&&(a+=p(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:a,y:s}}(j(e));else if(V(t))n=function(e,t){let r=ei(e,!0,"fixed"===t),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=H(e)?et(e):y(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y;return{width:a,height:s,x:i*o.x,y:n*o.y}}(t,r);else{let r=en(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return _(n)}function el(e){return"static"===Q(e).position}function eu(e,t){if(!H(e)||"fixed"===Q(e).position)return null;if(t)return t(e);let r=e.offsetParent;return j(e)===r&&(r=r.ownerDocument.body),r}function ec(e,t){let r=D(e);if(K(e))return r;if(!H(e)){let t=X(e);for(;t&&!G(t);){if(V(t)&&!el(t))return t;t=X(t)}return r}let n=eu(e,t);for(;n&&["table","td","th"].includes(U(n))&&el(n);)n=eu(n,t);return n&&G(n)&&el(n)&&!B(n)?r:n||function(e){let t=X(e);for(;H(t)&&!G(t);){if(B(t))return t;if(K(t))break;t=X(t)}return null}(e)||r}let ef=async function(e){let t=this.getOffsetParent||ec,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=H(t),i=j(t),o="fixed"===r,a=ei(e,!0,o,t),s={scrollLeft:0,scrollTop:0},l=y(0);if(n||!n&&!o)if(("body"!==U(t)||W(i))&&(s=$(t)),n){let e=ei(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=eo(i));o&&!n&&i&&(l.x=eo(i));let u=!i||n||o?y(0):ea(i,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},ed={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,o="fixed"===i,a=j(n),s=!!t&&K(t.floating);if(n===a||s&&o)return r;let l={scrollLeft:0,scrollTop:0},u=y(1),c=y(0),f=H(n);if((f||!f&&!o)&&(("body"!==U(n)||W(a))&&(l=$(n)),H(n))){let e=ei(n);u=et(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}let d=!a||f||o?y(0):ea(a,l,!0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+c.x+d.x,y:r.y*u.y-l.scrollTop*u.y+c.y+d.y}},getDocumentElement:j,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,o=[..."clippingAncestors"===r?K(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=J(e,[],!1).filter(e=>V(e)&&"body"!==U(e)),i=null,o="fixed"===Q(e).position,a=o?X(e):e;for(;V(a)&&!G(a);){let t=Q(a),r=B(a);r||"fixed"!==t.position||(i=null),(o?!r&&!i:!r&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||W(a)&&!r&&function e(t,r){let n=X(t);return!(n===r||!V(n)||G(n))&&("fixed"===Q(n).position||e(n,r))}(e,a))?n=n.filter(e=>e!==a):i=t,a=X(a)}return t.set(e,n),n}(t,this._c):[].concat(r),n],a=o[0],s=o.reduce((e,r)=>{let n=es(t,r,i);return e.top=p(n.top,e.top),e.right=d(n.right,e.right),e.bottom=d(n.bottom,e.bottom),e.left=p(n.left,e.left),e},es(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:ec,getElementRects:ef,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=Z(e);return{width:t,height:r}},getScale:et,isElement:V,isRTL:function(e){return"rtl"===Q(e).direction}};function ep(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eh=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=b(e,t)||{};if(null==u)return{};let f=k(c),h={x:r,y:n},v=S(A(i)),y=E(v),g=await a.getDimensions(u),m="y"===v,w=m?"clientHeight":"clientWidth",T=o.reference[y]+o.reference[v]-h[v]-o.floating[y],N=h[v]-o.reference[v],_=await (null==a.getOffsetParent?void 0:a.getOffsetParent(u)),C=_?_[w]:0;C&&await (null==a.isElement?void 0:a.isElement(_))||(C=s.floating[w]||o.floating[y]);let O=C/2-g[y]/2-1,R=d(f[m?"top":"left"],O),P=d(f[m?"bottom":"right"],O),I=C-g[y]-P,L=C/2-g[y]/2+(T/2-N/2),M=p(R,d(L,I)),U=!l.arrow&&null!=x(i)&&L!==M&&o.reference[y]/2-(L{let n=new Map,i={platform:ed,...r},o={...i.platform,_c:n};return O(e,t,{...i,platform:o})};var ey=r(25033),eg="undefined"!=typeof document?n.useLayoutEffect:n.useEffect;function em(e,t){let r,n,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!em(e[n],t[n]))return!1;return!0}if((r=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,i[n]))return!1;for(n=r;0!=n--;){let r=i[n];if(("_owner"!==r||!e.$$typeof)&&!em(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function eb(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ew(e,t){let r=eb(e);return Math.round(t*r)/r}function ex(e){let t=n.useRef(e);return eg(()=>{t.current=e}),t}let eS=e=>({name:"arrow",options:e,fn(t){let{element:r,padding:n}="function"==typeof e?e(t):e;return r&&({}).hasOwnProperty.call(r,"current")?null!=r.current?eh({element:r.current,padding:n}).fn(t):{}:r?eh({element:r,padding:n}).fn(t):{}}}),eE=(e,t)=>({...function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:i,y:o,placement:a,middlewareData:s}=t,l=await L(t,e);return a===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}}(e),options:[e,t]}),eA=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=b(e,t),u={x:r,y:n},c=await R(t,l),f=A(w(i)),h=S(f),v=u[h],y=u[f];if(o){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",r=v+c[e],n=v-c[t];v=p(r,d(v,n))}if(a){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",r=y+c[e],n=y-c[t];y=p(r,d(y,n))}let g=s.fn({...t,[h]:v,[f]:y});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[h]:o,[f]:a}}}}}}(e),options:[e,t]}),eT=(e,t)=>({...function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:r,y:n,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=b(e,t),c={x:r,y:n},f=A(i),d=S(f),p=c[d],h=c[f],v=b(s,t),y="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){let e="y"===d?"height":"width",t=o.reference[d]-o.floating[e]+y.mainAxis,r=o.reference[d]+o.reference[e]-y.mainAxis;pr&&(p=r)}if(u){var g,m;let e="y"===d?"width":"height",t=["top","left"].includes(w(i)),r=o.reference[f]-o.floating[e]+(t&&(null==(g=a.offset)?void 0:g[f])||0)+(t?0:y.crossAxis),n=o.reference[f]+o.reference[e]+(t?0:(null==(m=a.offset)?void 0:m[f])||0)-(t?y.crossAxis:0);hn&&(h=n)}return{[d]:p,[f]:h}}}}(e),options:[e,t]}),eN=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n,i,o,a,s;let{placement:l,middlewareData:u,rects:c,initialPlacement:f,platform:d,elements:p}=t,{mainAxis:h=!0,crossAxis:v=!0,fallbackPlacements:y,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:k=!0,..._}=b(e,t);if(null!=(r=u.arrow)&&r.alignmentOffset)return{};let C=w(l),O=A(f),P=w(f)===f,I=await (null==d.isRTL?void 0:d.isRTL(p.floating)),L=y||(P||!k?[N(f)]:function(e){let t=N(e);return[T(e),t,T(t)]}(f)),M="none"!==m;!y&&M&&L.push(...function(e,t,r,n){let i=x(e),o=function(e,t,r){let n=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":if(r)return t?i:n;return t?n:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(w(e),"start"===r,n);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(T)))),o}(f,k,m,I));let U=[f,...L],D=await R(t,_),j=[],F=(null==(n=u.flip)?void 0:n.overflows)||[];if(h&&j.push(D[C]),v){let e=function(e,t,r){void 0===r&&(r=!1);let n=x(e),i=S(A(e)),o=E(i),a="x"===i?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=N(a)),[a,N(a)]}(l,c,I);j.push(D[e[0]],D[e[1]])}if(F=[...F,{placement:l,overflows:j}],!j.every(e=>e0;if(!r||n)return{data:{index:e,overflows:F},reset:{placement:t}}}let r=null==(o=F.filter(e=>e.overflows[0]e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!r)switch(g){case"bestFit":{let e=null==(s=F.filter(e=>{if(M){let t=A(e.placement);return t===O||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:s[0];e&&(r=e);break}case"initialPlacement":r=f}if(l!==r)return{reset:{placement:r}}}return{}}}}(e),options:[e,t]}),ek=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;let i,o,{placement:a,rects:s,platform:l,elements:u}=t,{apply:c=()=>{},...f}=b(e,t),h=await R(t,f),v=w(a),y=x(a),g="y"===A(a),{width:m,height:S}=s.floating;"top"===v||"bottom"===v?(i=v,o=y===(await (null==l.isRTL?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(o=v,i="end"===y?"top":"bottom");let E=S-h.top-h.bottom,T=m-h.left-h.right,N=d(S-h[i],E),k=d(m-h[o],T),_=!t.middlewareData.shift,C=N,O=k;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(O=T),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(C=E),_&&!y){let e=p(h.left,0),t=p(h.right,0),r=p(h.top,0),n=p(h.bottom,0);g?O=m-2*(0!==e||0!==t?e+t:p(h.left,h.right)):C=S-2*(0!==r||0!==n?r+n:p(h.top,h.bottom))}await c({...t,availableWidth:O,availableHeight:C});let P=await l.getDimensions(u.floating);return m!==P.width||S!==P.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}),e_=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:n="referenceHidden",...i}=b(e,t);switch(n){case"referenceHidden":{let e=P(await R(t,{...i,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:I(e)}}}case"escaped":{let e=P(await R(t,{...i,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:I(e)}}}default:return{}}}}}(e),options:[e,t]}),eC=(e,t)=>({...eS(e),options:[e,t]});var eO=r(94553),eR=r(59716),eP=n.forwardRef((e,t)=>{let{children:r,width:n=10,height:i=5,...o}=e;return(0,eR.jsx)(eO.sG.svg,{...o,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,eR.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eP.displayName="Arrow";var eI=r(90750),eL=r(79686),eM="Popper",[eU,eD]=(0,a.A)(eM),[ej,eF]=eU(eM),eV=e=>{let{__scopePopper:t,children:r}=e,[i,o]=n.useState(null);return(0,eR.jsx)(ej,{scope:t,anchor:i,onAnchorChange:o,children:r})};eV.displayName=eM;var eH="PopperAnchor",eq=n.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:i,...a}=e,s=eF(eH,r),l=n.useRef(null),u=(0,o.s)(t,l);return n.useEffect(()=>{s.onAnchorChange((null==i?void 0:i.current)||l.current)}),i?null:(0,eR.jsx)(eO.sG.div,{...a,ref:u})});eq.displayName=eH;var eW="PopperContent",[eK,eB]=eU(eW),ez=n.forwardRef((e,t)=>{var r,i,a,s,l,u,c,f;let{__scopePopper:h,side:y="bottom",sideOffset:g=0,align:m="center",alignOffset:b=0,arrowPadding:w=0,avoidCollisions:x=!0,collisionBoundary:S=[],collisionPadding:E=0,sticky:A="partial",hideWhenDetached:T=!1,updatePositionStrategy:N="optimized",onPlaced:k,..._}=e,C=eF(eW,h),[O,R]=n.useState(null),P=(0,o.s)(t,e=>R(e)),[I,L]=n.useState(null),M=function(e){let[t,r]=n.useState(void 0);return(0,eL.N)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,i=t.blockSize}else n=e.offsetWidth,i=e.offsetHeight;r({width:n,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}(I),U=null!=(c=null==M?void 0:M.width)?c:0,D=null!=(f=null==M?void 0:M.height)?f:0,F="number"==typeof E?E:{top:0,right:0,bottom:0,left:0,...E},V=Array.isArray(S)?S:[S],H=V.length>0,q={padding:F,boundary:V.filter(eX),altBoundary:H},{refs:W,floatingStyles:K,placement:B,isPositioned:z,middlewareData:G}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:i=[],platform:o,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[f,d]=n.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=n.useState(i);em(p,i)||h(i);let[v,y]=n.useState(null),[g,m]=n.useState(null),b=n.useCallback(e=>{e!==E.current&&(E.current=e,y(e))},[]),w=n.useCallback(e=>{e!==A.current&&(A.current=e,m(e))},[]),x=a||v,S=s||g,E=n.useRef(null),A=n.useRef(null),T=n.useRef(f),N=null!=u,k=ex(u),_=ex(o),C=ex(c),O=n.useCallback(()=>{if(!E.current||!A.current)return;let e={placement:t,strategy:r,middleware:p};_.current&&(e.platform=_.current),ev(E.current,A.current,e).then(e=>{let t={...e,isPositioned:!1!==C.current};R.current&&!em(T.current,t)&&(T.current=t,ey.flushSync(()=>{d(t)}))})},[p,t,r,_,C]);eg(()=>{!1===c&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let R=n.useRef(!1);eg(()=>(R.current=!0,()=>{R.current=!1}),[]),eg(()=>{if(x&&(E.current=x),S&&(A.current=S),x&&S){if(k.current)return k.current(x,S,O);O()}},[x,S,O,k,N]);let P=n.useMemo(()=>({reference:E,floating:A,setReference:b,setFloating:w}),[b,w]),I=n.useMemo(()=>({reference:x,floating:S}),[x,S]),L=n.useMemo(()=>{let e={position:r,left:0,top:0};if(!I.floating)return e;let t=ew(I.floating,f.x),n=ew(I.floating,f.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...eb(I.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,l,I.floating,f.x,f.y]);return n.useMemo(()=>({...f,update:O,refs:P,elements:I,floatingStyles:L}),[f,O,P,I,L])}({strategy:"fixed",placement:y+("center"!==m?"-"+m:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),r=0;r{o&&e.addEventListener("scroll",r,{passive:!0}),a&&e.addEventListener("resize",r)});let h=c&&l?function(e,t){let r,n=null,i=j(e);function o(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();let u=e.getBoundingClientRect(),{left:c,top:f,width:h,height:y}=u;if(s||t(),!h||!y)return;let g=v(f),m=v(i.clientWidth-(c+h)),b={rootMargin:-g+"px "+-m+"px "+-v(i.clientHeight-(f+y))+"px "+-v(c)+"px",threshold:p(0,d(1,l))||1},w=!0;function x(t){let n=t[0].intersectionRatio;if(n!==l){if(!w)return a();n?a(!1,n):r=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==n||ep(u,e.getBoundingClientRect())||a(),w=!1}try{n=new IntersectionObserver(x,{...b,root:i.ownerDocument})}catch(e){n=new IntersectionObserver(x,b)}n.observe(e)}(!0),o}(c,r):null,y=-1,g=null;s&&(g=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),r()}),c&&!u&&g.observe(c),g.observe(t));let m=u?ei(e):null;return u&&function t(){let n=ei(e);m&&!ep(m,n)&&r(),m=n,i=requestAnimationFrame(t)}(),r(),()=>{var e;f.forEach(e=>{o&&e.removeEventListener("scroll",r),a&&e.removeEventListener("resize",r)}),null==h||h(),null==(e=g)||e.disconnect(),g=null,u&&cancelAnimationFrame(i)}}(...t,{animationFrame:"always"===N})},elements:{reference:C.anchor},middleware:[eE({mainAxis:g+D,alignmentAxis:b}),x&&eA({mainAxis:!0,crossAxis:!1,limiter:"partial"===A?eT():void 0,...q}),x&&eN({...q}),ek({...q,apply:e=>{let{elements:t,rects:r,availableWidth:n,availableHeight:i}=e,{width:o,height:a}=r.reference,s=t.floating.style;s.setProperty("--radix-popper-available-width","".concat(n,"px")),s.setProperty("--radix-popper-available-height","".concat(i,"px")),s.setProperty("--radix-popper-anchor-width","".concat(o,"px")),s.setProperty("--radix-popper-anchor-height","".concat(a,"px"))}}),I&&eC({element:I,padding:w}),eJ({arrowWidth:U,arrowHeight:D}),T&&e_({strategy:"referenceHidden",...q})]}),[Q,$]=eY(B),X=(0,eI.c)(k);(0,eL.N)(()=>{z&&(null==X||X())},[z,X]);let Y=null==(r=G.arrow)?void 0:r.x,Z=null==(i=G.arrow)?void 0:i.y,et=(null==(a=G.arrow)?void 0:a.centerOffset)!==0,[er,en]=n.useState();return(0,eL.N)(()=>{O&&en(window.getComputedStyle(O).zIndex)},[O]),(0,eR.jsx)("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:z?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:er,"--radix-popper-transform-origin":[null==(s=G.transformOrigin)?void 0:s.x,null==(l=G.transformOrigin)?void 0:l.y].join(" "),...(null==(u=G.hide)?void 0:u.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eR.jsx)(eK,{scope:h,placedSide:Q,onArrowChange:L,arrowX:Y,arrowY:Z,shouldHideArrow:et,children:(0,eR.jsx)(eO.sG.div,{"data-side":Q,"data-align":$,..._,ref:P,style:{..._.style,animation:z?void 0:"none"}})})})});ez.displayName=eW;var eG="PopperArrow",eQ={top:"bottom",right:"left",bottom:"top",left:"right"},e$=n.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,i=eB(eG,r),o=eQ[i.placedSide];return(0,eR.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,eR.jsx)(eP,{...n,ref:t,style:{...n.style,display:"block"}})})});function eX(e){return null!==e}e$.displayName=eG;var eJ=e=>({name:"transformOrigin",options:e,fn(t){var r,n,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null==(r=u.arrow)?void 0:r.centerOffset)!==0,f=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[p,h]=eY(s),v={start:"0%",center:"50%",end:"100%"}[h],y=(null!=(o=null==(n=u.arrow)?void 0:n.x)?o:0)+f/2,g=(null!=(a=null==(i=u.arrow)?void 0:i.y)?a:0)+d/2,m="",b="";return"bottom"===p?(m=c?v:"".concat(y,"px"),b="".concat(-d,"px")):"top"===p?(m=c?v:"".concat(y,"px"),b="".concat(l.floating.height+d,"px")):"right"===p?(m="".concat(-d,"px"),b=c?v:"".concat(g,"px")):"left"===p&&(m="".concat(l.floating.width+d,"px"),b=c?v:"".concat(g,"px")),{data:{x:m,y:b}}}});function eY(e){let[t,r="center"]=e.split("-");return[t,r]}var eZ=r(23177),e0=r(15292),e1=r(43517),e2=r(22286),e3=r(40684),e6=r(50494),e4="Popover",[e5,e7]=(0,a.A)(e4,[eD]),e8=eD(),[e9,te]=e5(e4),tt=e=>{let{__scopePopover:t,children:r,open:i,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,l=e8(t),u=n.useRef(null),[f,d]=n.useState(!1),[p,h]=(0,e2.i)({prop:i,defaultProp:null!=o&&o,onChange:a,caller:e4});return(0,eR.jsx)(eV,{...l,children:(0,eR.jsx)(e9,{scope:t,contentId:(0,c.B)(),triggerRef:u,open:p,onOpenChange:h,onOpenToggle:n.useCallback(()=>h(e=>!e),[h]),hasCustomAnchor:f,onCustomAnchorAdd:n.useCallback(()=>d(!0),[]),onCustomAnchorRemove:n.useCallback(()=>d(!1),[]),modal:s,children:r})})};tt.displayName=e4;var tr="PopoverAnchor";n.forwardRef((e,t)=>{let{__scopePopover:r,...i}=e,o=te(tr,r),a=e8(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=o;return n.useEffect(()=>(s(),()=>l()),[s,l]),(0,eR.jsx)(eq,{...a,...i,ref:t})}).displayName=tr;var tn="PopoverTrigger",ti=n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,a=te(tn,r),s=e8(r),l=(0,o.s)(t,a.triggerRef),u=(0,eR.jsx)(eO.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":tg(a.open),...n,ref:l,onClick:(0,i.m)(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?u:(0,eR.jsx)(eq,{asChild:!0,...s,children:u})});ti.displayName=tn;var to="PopoverPortal",[ta,ts]=e5(to,{forceMount:void 0}),tl=e=>{let{__scopePopover:t,forceMount:r,children:n,container:i}=e,o=te(to,t);return(0,eR.jsx)(ta,{scope:t,forceMount:r,children:(0,eR.jsx)(e0.C,{present:r||o.open,children:(0,eR.jsx)(eZ.Z,{asChild:!0,container:i,children:n})})})};tl.displayName=to;var tu="PopoverContent",tc=n.forwardRef((e,t)=>{let r=ts(tu,e.__scopePopover),{forceMount:n=r.forceMount,...i}=e,o=te(tu,e.__scopePopover);return(0,eR.jsx)(e0.C,{present:n||o.open,children:o.modal?(0,eR.jsx)(td,{...i,ref:t}):(0,eR.jsx)(tp,{...i,ref:t})})});tc.displayName=tu;var tf=(0,e1.TL)("PopoverContent.RemoveScroll"),td=n.forwardRef((e,t)=>{let r=te(tu,e.__scopePopover),a=n.useRef(null),s=(0,o.s)(t,a),l=n.useRef(!1);return n.useEffect(()=>{let e=a.current;if(e)return(0,e3.Eq)(e)},[]),(0,eR.jsx)(e6.A,{as:tf,allowPinchZoom:!0,children:(0,eR.jsx)(th,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),l.current||null==(t=r.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,i.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;l.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,i.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),tp=n.forwardRef((e,t)=>{let r=te(tu,e.__scopePopover),i=n.useRef(!1),o=n.useRef(!1);return(0,eR.jsx)(th,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,a;null==(n=e.onCloseAutoFocus)||n.call(e,t),t.defaultPrevented||(i.current||null==(a=r.triggerRef.current)||a.focus(),t.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:t=>{var n,a;null==(n=e.onInteractOutside)||n.call(e,t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let s=t.target;(null==(a=r.triggerRef.current)?void 0:a.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),th=n.forwardRef((e,t)=>{let{__scopePopover:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:p,...h}=e,v=te(tu,r),y=e8(r);return(0,l.Oh)(),(0,eR.jsx)(u.n,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,eR.jsx)(s.qW,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:p,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:d,onDismiss:()=>v.onOpenChange(!1),children:(0,eR.jsx)(ez,{"data-state":tg(v.open),role:"dialog",id:v.contentId,...y,...h,ref:t,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),tv="PopoverClose";n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,o=te(tv,r);return(0,eR.jsx)(eO.sG.button,{type:"button",...n,ref:t,onClick:(0,i.m)(e.onClick,()=>o.onOpenChange(!1))})}).displayName=tv;var ty=n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,i=e8(r);return(0,eR.jsx)(e$,{...i,...n,ref:t})});function tg(e){return e?"open":"closed"}ty.displayName="PopoverArrow";var tm=tt,tb=ti,tw=tl,tx=tc,tS=ty},74781:(e,t,r)=>{"use strict";r.d(t,{qW:()=>d});var n,i=r(77704),o=r(13135),a=r(94553),s=r(23221),l=r(90750),u=r(59716),c="dismissableLayer.update",f=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),d=i.forwardRef((e,t)=>{var r,d;let{disableOutsidePointerEvents:v=!1,onEscapeKeyDown:y,onPointerDownOutside:g,onFocusOutside:m,onInteractOutside:b,onDismiss:w,...x}=e,S=i.useContext(f),[E,A]=i.useState(null),T=null!=(d=null==E?void 0:E.ownerDocument)?d:null==(r=globalThis)?void 0:r.document,[,N]=i.useState({}),k=(0,s.s)(t,e=>A(e)),_=Array.from(S.layers),[C]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),O=_.indexOf(C),R=E?_.indexOf(E):-1,P=S.layersWithOutsidePointerEventsDisabled.size>0,I=R>=O,L=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=(0,l.c)(e),o=i.useRef(!1),a=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){h("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",a.current),a.current=t,r.addEventListener("click",a.current,{once:!0})):t()}else r.removeEventListener("click",a.current);o.current=!1},t=window.setTimeout(()=>{r.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",a.current)}},[r,n]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,r=[...S.branches].some(e=>e.contains(t));I&&!r&&(null==g||g(e),null==b||b(e),e.defaultPrevented||null==w||w())},T),M=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=(0,l.c)(e),o=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!o.current&&h("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)},[r,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;![...S.branches].some(e=>e.contains(t))&&(null==m||m(e),null==b||b(e),e.defaultPrevented||null==w||w())},T);return!function(e,t=globalThis?.document){let r=(0,l.c)(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{R===S.layers.size-1&&(null==y||y(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))},T),i.useEffect(()=>{if(E)return v&&(0===S.layersWithOutsidePointerEventsDisabled.size&&(n=T.body.style.pointerEvents,T.body.style.pointerEvents="none"),S.layersWithOutsidePointerEventsDisabled.add(E)),S.layers.add(E),p(),()=>{v&&1===S.layersWithOutsidePointerEventsDisabled.size&&(T.body.style.pointerEvents=n)}},[E,T,v,S]),i.useEffect(()=>()=>{E&&(S.layers.delete(E),S.layersWithOutsidePointerEventsDisabled.delete(E),p())},[E,S]),i.useEffect(()=>{let e=()=>N({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,u.jsx)(a.sG.div,{...x,ref:k,style:{pointerEvents:P?I?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.m)(e.onFocusCapture,M.onFocusCapture),onBlurCapture:(0,o.m)(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:(0,o.m)(e.onPointerDownCapture,L.onPointerDownCapture)})});function p(){let e=new CustomEvent(c);document.dispatchEvent(e)}function h(e,t,r,n){let{discrete:i}=n,o=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),i?(0,a.hO)(o,s):o.dispatchEvent(s)}d.displayName="DismissableLayer",i.forwardRef((e,t)=>{let r=i.useContext(f),n=i.useRef(null),o=(0,s.s)(t,n);return i.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,u.jsx)(a.sG.div,{...e,ref:o})}).displayName="DismissableLayerBranch"},79686:(e,t,r)=>{"use strict";r.d(t,{N:()=>i});var n=r(77704),i=globalThis?.document?n.useLayoutEffect:()=>{}},89109:(e,t,r)=>{"use strict";r.d(t,{Oh:()=>o});var n=r(77704),i=0;function o(){n.useEffect(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=r[0])?e:a()),document.body.insertAdjacentElement("beforeend",null!=(t=r[1])?t:a()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},90750:(e,t,r)=>{"use strict";r.d(t,{c:()=>i});var n=r(77704);function i(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},94553:(e,t,r)=>{"use strict";r.d(t,{hO:()=>l,sG:()=>s});var n=r(77704),i=r(25033),o=r(43517),a=r(59716),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,o.TL)(`Primitive.${t}`),i=n.forwardRef((e,n)=>{let{asChild:i,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(i?r:t,{...o,ref:n})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function l(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}}}]);