recce-nightly 0.62.0.20250417__py3-none-any.whl → 0.62.0.20250421__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of recce-nightly might be problematic. Click here for more details.

@@ -1,4 +1,4 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[500],{51610:function(e,t,n){"use strict";n.d(t,{S1:function(){return rc},j:function(){return rd}});var r,i,o,a,s,l,u,c,d,f,h,p,m,g,v,y,b,x=n(95379);(r=d||(d={}))[r.None=0]="None",r[r.Error=1]="Error",r[r.Warn=2]="Warn",r[r.Verbose=3]="Verbose",r[r.Debug=4]="Debug";var w=function(e){return function(){var t=(0,x.pi)({},e.config);return{logger:t.loggerProvider,logLevel:t.logLevel}}},k=function(e,t){var n,r;t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"");try{for(var i=(0,x.XA)(t.split(".")),o=i.next();!o.done;o=i.next()){var a=o.value;if(!(a in e))return;e=e[a]}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return e},S=function(e,t){return function(){var n,r,i={};try{for(var o=(0,x.XA)(t),a=o.next();!a.done;a=o.next()){var s=a.value;i[s]=k(e,s)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}},E=function(e,t,n,r,i){return void 0===i&&(i=null),function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var s=n(),l=s.logger,u=s.logLevel;if(u&&u<d.Debug||!u||!l)return e.apply(i,o);var c={type:"invoke public method",name:t,args:o,stacktrace:(Error().stack||"").split("\n").slice(3).map(function(e){return e.trim()}),time:{start:new Date().toISOString()},states:{}};r&&c.states&&(c.states.before=r());var f=e.apply(i,o);return f&&f.promise?f.promise.then(function(){r&&c.states&&(c.states.after=r()),c.time&&(c.time.end=new Date().toISOString()),l.debug(JSON.stringify(c,null,2))}):(r&&c.states&&(c.states.after=r()),c.time&&(c.time.end=new Date().toISOString()),l.debug(JSON.stringify(c,null,2))),f}},_=function(e){return{promise:e||Promise.resolve()}};(i=f||(f={})).Unknown="unknown",i.Skipped="skipped",i.Success="success",i.RateLimit="rate_limit",i.PayloadTooLarge="payload_too_large",i.Invalid="invalid",i.Failed="failed",i.Timeout="Timeout",i.SystemError="SystemError";var C="".concat("AMP","_unsent"),O="https://api2.amplitude.com/2/httpapi",T=function(e,t){var n=Math.max(t,1);return e.reduce(function(e,t,r){var i=Math.floor(r/n);return e[i]||(e[i]=[]),e[i].push(t),e},[])},A=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=f.Unknown),{event:e,code:t,message:n}},P="Amplitude Logger ",I=function(){function e(){this.logLevel=d.None}return e.prototype.disable=function(){this.logLevel=d.None},e.prototype.enable=function(e){void 0===e&&(e=d.Warn),this.logLevel=e},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<d.Verbose||console.log("".concat(P,"[Log]: ").concat(e.join(" ")))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<d.Warn||console.warn("".concat(P,"[Warn]: ").concat(e.join(" ")))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<d.Error||console.error("".concat(P,"[Error]: ").concat(e.join(" ")))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<d.Debug||console.log("".concat(P,"[Debug]: ").concat(e.join(" ")))},e}(),R=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,instanceName:"$default_instance",logLevel:d.Warn,loggerProvider:new I,offline:!1,optOut:!1,serverUrl:O,serverZone:"US",useBatch:!1}},j=function(){function e(e){this._optOut=!1;var t,n,r,i,o=R();this.apiKey=e.apiKey,this.flushIntervalMillis=null!==(t=e.flushIntervalMillis)&&void 0!==t?t:o.flushIntervalMillis,this.flushMaxRetries=e.flushMaxRetries||o.flushMaxRetries,this.flushQueueSize=e.flushQueueSize||o.flushQueueSize,this.instanceName=e.instanceName||o.instanceName,this.loggerProvider=e.loggerProvider||o.loggerProvider,this.logLevel=null!==(n=e.logLevel)&&void 0!==n?n:o.logLevel,this.minIdLength=e.minIdLength,this.plan=e.plan,this.ingestionMetadata=e.ingestionMetadata,this.offline=void 0!==e.offline?e.offline:o.offline,this.optOut=null!==(r=e.optOut)&&void 0!==r?r:o.optOut,this.serverUrl=e.serverUrl,this.serverZone=e.serverZone||o.serverZone,this.storageProvider=e.storageProvider,this.transportProvider=e.transportProvider,this.useBatch=null!==(i=e.useBatch)&&void 0!==i?i:o.useBatch,this.loggerProvider.enable(this.logLevel);var a=M(e.serverUrl,e.serverZone,e.useBatch);this.serverZone=a.serverZone,this.serverUrl=a.serverUrl}return Object.defineProperty(e.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut=e},enumerable:!1,configurable:!0}),e}(),M=function(e,t,n){if(void 0===e&&(e=""),void 0===t&&(t=R().serverZone),void 0===n&&(n=R().useBatch),e)return{serverUrl:e,serverZone:void 0};var r,i=["US","EU"].includes(t)?t:R().serverZone;return{serverZone:i,serverUrl:(r=n,"EU"===i?r?"https://api.eu.amplitude.com/batch":"https://api.eu.amplitude.com/2/httpapi":r?"https://api2.amplitude.com/batch":O)}},N=function(){function e(){this.sdk={metrics:{histogram:{}}}}return e.prototype.recordHistogram=function(e,t){this.sdk.metrics.histogram[e]=t},e}(),D=function(e){return e?(e^16*Math.random()>>e/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,D)};function L(e){var t="";try{"body"in e&&(t=JSON.stringify(e.body,null,2))}catch(e){}return t}var z=function(){function e(){this.name="amplitude",this.type="destination",this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduleId=null,this.scheduledTimeout=0,this.flushId=null,this.queue=[]}return e.prototype.setup=function(e){var t;return(0,x.mG)(this,void 0,void 0,function(){var n,r=this;return(0,x.Jh)(this,function(i){switch(i.label){case 0:return this.config=e,this.storageKey="".concat(C,"_").concat(this.config.apiKey.substring(0,10)),[4,null===(t=this.config.storageProvider)||void 0===t?void 0:t.get(this.storageKey)];case 1:return(n=i.sent())&&n.length>0&&Promise.all(n.map(function(e){return r.execute(e)})).catch(),[2,Promise.resolve(void 0)]}})})},e.prototype.execute=function(e){var t=this;return e.insert_id||(e.insert_id=D()),new Promise(function(n){t.queue.push({event:e,attempts:0,callback:function(e){return n(e)},timeout:0}),t.schedule(t.config.flushIntervalMillis),t.saveEvents()})},e.prototype.removeEventsExceedFlushMaxRetries=function(e){var t=this;return e.filter(function(e){return e.attempts+=1,e.attempts<t.config.flushMaxRetries||(t.fulfillRequest([e],500,"Event rejected due to exceeded retry count"),!1)})},e.prototype.scheduleEvents=function(e){var t=this;e.forEach(function(e){t.schedule(0===e.timeout?t.config.flushIntervalMillis:e.timeout)})},e.prototype.schedule=function(e){var t=this;if(!this.config.offline&&(null===this.scheduleId||this.scheduleId&&e>this.scheduledTimeout)){this.scheduleId&&clearTimeout(this.scheduleId),this.scheduledTimeout=e,this.scheduleId=setTimeout(function(){t.queue=t.queue.map(function(e){return e.timeout=0,e}),t.flush(!0)},e);return}},e.prototype.resetSchedule=function(){this.scheduleId=null,this.scheduledTimeout=0},e.prototype.flush=function(e){return void 0===e&&(e=!1),(0,x.mG)(this,void 0,void 0,function(){var t,n,r=this;return(0,x.Jh)(this,function(i){switch(i.label){case 0:if(this.config.offline)return this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush while offline."),[2];if(this.flushId)return this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush because previous flush has not resolved."),[2];return this.flushId=this.scheduleId,this.resetSchedule(),t=[],n=[],this.queue.forEach(function(e){return 0===e.timeout?t.push(e):n.push(e)}),[4,T(t,this.config.flushQueueSize).reduce(function(t,n){return(0,x.mG)(r,void 0,void 0,function(){return(0,x.Jh)(this,function(r){switch(r.label){case 0:return[4,t];case 1:return r.sent(),[4,this.send(n,e)];case 2:return[2,r.sent()]}})})},Promise.resolve())];case 1:return i.sent(),this.flushId=null,this.scheduleEvents(this.queue),[2]}})})},e.prototype.send=function(e,t){return void 0===t&&(t=!0),(0,x.mG)(this,void 0,void 0,function(){var n,r,i,o;return(0,x.Jh)(this,function(a){switch(a.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(e,400,"Event rejected due to missing API key")];n={api_key:this.config.apiKey,events:e.map(function(e){var t=e.event;return t.extra,(0,x._T)(t,["extra"])}),options:{min_id_length:this.config.minIdLength},client_upload_time:new Date().toISOString(),request_metadata:this.config.requestMetadata},this.config.requestMetadata=new N,a.label=1;case 1:return a.trys.push([1,3,,4]),r=M(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(r,n)];case 2:if(null===(i=a.sent()))return this.fulfillRequest(e,0,"Unexpected error occurred"),[2];if(!t)return"body"in i?this.fulfillRequest(e,i.statusCode,"".concat(i.status,": ").concat(L(i))):this.fulfillRequest(e,i.statusCode,i.status),[2];return this.handleResponse(i,e),[3,4];case 3:var s;return o=(s=a.sent())instanceof Error?s.message:String(s),this.config.loggerProvider.error(o),this.handleResponse({status:f.Failed,statusCode:0},e),[3,4];case 4:return[2]}})})},e.prototype.handleResponse=function(e,t){var n=e.status;switch(n){case f.Success:this.handleSuccessResponse(e,t);break;case f.Invalid:this.handleInvalidResponse(e,t);break;case f.PayloadTooLarge:this.handlePayloadTooLargeResponse(e,t);break;case f.RateLimit:this.handleRateLimitResponse(e,t);break;default:this.config.loggerProvider.warn("{code: 0, error: \"Status '".concat(n,"' provided for ").concat(t.length,' events"}')),this.handleOtherResponse(t)}},e.prototype.handleSuccessResponse=function(e,t){this.fulfillRequest(t,e.statusCode,"Event tracked successfully")},e.prototype.handleInvalidResponse=function(e,t){var n=this;if(e.body.missingField||e.body.error.startsWith("Invalid API key")){this.fulfillRequest(t,e.statusCode,e.body.error);return}var r=new Set((0,x.ev)((0,x.ev)((0,x.ev)((0,x.ev)([],(0,x.CR)(Object.values(e.body.eventsWithInvalidFields)),!1),(0,x.CR)(Object.values(e.body.eventsWithMissingFields)),!1),(0,x.CR)(Object.values(e.body.eventsWithInvalidIdLengths)),!1),(0,x.CR)(e.body.silencedEvents),!1).flat()),i=t.filter(function(t,i){if(r.has(i)){n.fulfillRequest([t],e.statusCode,e.body.error);return}return!0});i.length>0&&this.config.loggerProvider.warn(L(e));var o=this.removeEventsExceedFlushMaxRetries(i);this.scheduleEvents(o)},e.prototype.handlePayloadTooLargeResponse=function(e,t){if(1===t.length){this.fulfillRequest(t,e.statusCode,e.body.error);return}this.config.loggerProvider.warn(L(e)),this.config.flushQueueSize/=2;var n=this.removeEventsExceedFlushMaxRetries(t);this.scheduleEvents(n)},e.prototype.handleRateLimitResponse=function(e,t){var n=this,r=Object.keys(e.body.exceededDailyQuotaUsers),i=Object.keys(e.body.exceededDailyQuotaDevices),o=e.body.throttledEvents,a=new Set(r),s=new Set(i),l=new Set(o),u=t.filter(function(t,r){if(t.event.user_id&&a.has(t.event.user_id)||t.event.device_id&&s.has(t.event.device_id)){n.fulfillRequest([t],e.statusCode,e.body.error);return}return l.has(r)&&(t.timeout=n.throttleTimeout),!0});u.length>0&&this.config.loggerProvider.warn(L(e));var c=this.removeEventsExceedFlushMaxRetries(u);this.scheduleEvents(c)},e.prototype.handleOtherResponse=function(e){var t=this,n=e.map(function(e){return e.timeout=e.attempts*t.retryTimeout,e}),r=this.removeEventsExceedFlushMaxRetries(n);this.scheduleEvents(r)},e.prototype.fulfillRequest=function(e,t,n){this.removeEvents(e),e.forEach(function(e){return e.callback(A(e.event,t,n))})},e.prototype.saveEvents=function(){if(this.config.storageProvider){var e=this.queue.map(function(e){return e.event});this.config.storageProvider.set(this.storageKey,e)}},e.prototype.removeEvents=function(e){this.queue=this.queue.filter(function(t){return!e.some(function(e){return e.event.insert_id===t.event.insert_id})}),this.saveEvents()},e}();(o=h||(h={})).SET="$set",o.SET_ONCE="$setOnce",o.ADD="$add",o.APPEND="$append",o.PREPEND="$prepend",o.REMOVE="$remove",o.PREINSERT="$preInsert",o.POSTINSERT="$postInsert",o.UNSET="$unset",o.CLEAR_ALL="$clearAll",(a=p||(p={})).REVENUE_PRODUCT_ID="$productId",a.REVENUE_QUANTITY="$quantity",a.REVENUE_PRICE="$price",a.REVENUE_TYPE="$revenueType",a.REVENUE_CURRENCY="$currency",a.REVENUE="$revenue",(s=m||(m={})).IDENTIFY="$identify",s.GROUP_IDENTIFY="$groupidentify",s.REVENUE="revenue_amount";var F=function(e){if(Object.keys(e).length>1e3)return!1;for(var t in e){var n=e[t];if(!B(t,n))return!1}return!0},B=function(e,t){var n,r;if("string"!=typeof e)return!1;if(Array.isArray(t)){var i=!0;try{for(var o=(0,x.XA)(t),a=o.next();!a.done;a=o.next()){var s=a.value;if(Array.isArray(s))return!1;if("object"==typeof s)i=i&&F(s);else if(!["number","string"].includes(typeof s))return!1;if(!i)return!1}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}else if(null==t)return!1;else if("object"==typeof t)return F(t);else if(!["number","string","boolean"].includes(typeof t))return!1;return!0},$=function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return(0,x.pi)({},this._properties)},e.prototype.set=function(e,t){return this._safeSet(h.SET,e,t),this},e.prototype.setOnce=function(e,t){return this._safeSet(h.SET_ONCE,e,t),this},e.prototype.append=function(e,t){return this._safeSet(h.APPEND,e,t),this},e.prototype.prepend=function(e,t){return this._safeSet(h.PREPEND,e,t),this},e.prototype.postInsert=function(e,t){return this._safeSet(h.POSTINSERT,e,t),this},e.prototype.preInsert=function(e,t){return this._safeSet(h.PREINSERT,e,t),this},e.prototype.remove=function(e,t){return this._safeSet(h.REMOVE,e,t),this},e.prototype.add=function(e,t){return this._safeSet(h.ADD,e,t),this},e.prototype.unset=function(e){return this._safeSet(h.UNSET,e,"-"),this},e.prototype.clearAll=function(){return this._properties={},this._properties[h.CLEAR_ALL]="-",this},e.prototype._safeSet=function(e,t,n){if(this._validate(e,t,n)){var r=this._properties[e];return void 0===r&&(r={},this._properties[e]=r),r[t]=n,this._propertySet.add(t),!0}return!1},e.prototype._validate=function(e,t,n){return!(void 0!==this._properties[h.CLEAR_ALL]||this._propertySet.has(t))&&(e===h.ADD?"number"==typeof n:e===h.UNSET||e===h.REMOVE||B(t,n))},e}(),V=function(){function e(){this.productId="",this.quantity=1,this.price=0}return e.prototype.setProductId=function(e){return this.productId=e,this},e.prototype.setQuantity=function(e){return e>0&&(this.quantity=e),this},e.prototype.setPrice=function(e){return this.price=e,this},e.prototype.setRevenueType=function(e){return this.revenueType=e,this},e.prototype.setCurrency=function(e){return this.currency=e,this},e.prototype.setRevenue=function(e){return this.revenue=e,this},e.prototype.setEventProperties=function(e){return F(e)&&(this.properties=e),this},e.prototype.getEventProperties=function(){var e=this.properties?(0,x.pi)({},this.properties):{};return e[p.REVENUE_PRODUCT_ID]=this.productId,e[p.REVENUE_QUANTITY]=this.quantity,e[p.REVENUE_PRICE]=this.price,e[p.REVENUE_TYPE]=this.revenueType,e[p.REVENUE_CURRENCY]=this.currency,e[p.REVENUE]=this.revenue,e},e}(),U=function(){function e(e){this.client=e,this.queue=[],this.applying=!1,this.plugins=[]}return e.prototype.register=function(e,t){var n,r;return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(i){switch(i.label){case 0:if(this.plugins.some(function(t){return t.name===e.name}))return t.loggerProvider.warn("Plugin with name ".concat(e.name," already exists, skipping registration")),[2];return void 0===e.name&&(e.name=D(),t.loggerProvider.warn("Plugin name is undefined. \n Generating a random UUID for plugin name: ".concat(e.name,". \n Set a name for the plugin to prevent it from being added multiple times."))),e.type=null!==(n=e.type)&&void 0!==n?n:"enrichment",[4,null===(r=e.setup)||void 0===r?void 0:r.call(e,t,this.client)];case 1:return i.sent(),this.plugins.push(e),[2]}})})},e.prototype.deregister=function(e,t){var n;return(0,x.mG)(this,void 0,void 0,function(){var r,i;return(0,x.Jh)(this,function(o){switch(o.label){case 0:if(-1===(r=this.plugins.findIndex(function(t){return t.name===e})))return t.loggerProvider.warn("Plugin with name ".concat(e," does not exist, skipping deregistration")),[2];return i=this.plugins[r],this.plugins.splice(r,1),[4,null===(n=i.teardown)||void 0===n?void 0:n.call(i)];case 1:return o.sent(),[2]}})})},e.prototype.reset=function(e){this.applying=!1,this.plugins.map(function(e){var t;return null===(t=e.teardown)||void 0===t?void 0:t.call(e)}),this.plugins=[],this.client=e},e.prototype.push=function(e){var t=this;return new Promise(function(n){t.queue.push([e,n]),t.scheduleApply(0)})},e.prototype.scheduleApply=function(e){var t=this;this.applying||(this.applying=!0,setTimeout(function(){t.apply(t.queue.shift()).then(function(){t.applying=!1,t.queue.length>0&&t.scheduleApply(0)})},e))},e.prototype.apply=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t,n,r,i,o,a,s,l,u,c,d,f,h,p;return(0,x.Jh)(this,function(m){switch(m.label){case 0:if(!e)return[2];t=(0,x.CR)(e,1)[0],n=(0,x.CR)(e,2)[1],r=this.plugins.filter(function(e){return"before"===e.type}),m.label=1;case 1:m.trys.push([1,6,7,8]),o=(i=(0,x.XA)(r)).next(),m.label=2;case 2:if(o.done)return[3,5];if(!(a=o.value).execute)return[3,4];return[4,a.execute((0,x.pi)({},t))];case 3:if(null===(s=m.sent()))return n({event:t,code:0,message:""}),[2];t=s,m.label=4;case 4:return o=i.next(),[3,2];case 5:return[3,8];case 6:return d={error:m.sent()},[3,8];case 7:try{o&&!o.done&&(f=i.return)&&f.call(i)}finally{if(d)throw d.error}return[7];case 8:l=this.plugins.filter(function(e){return"enrichment"===e.type||void 0===e.type}),m.label=9;case 9:m.trys.push([9,14,15,16]),c=(u=(0,x.XA)(l)).next(),m.label=10;case 10:if(c.done)return[3,13];if(!(a=c.value).execute)return[3,12];return[4,a.execute((0,x.pi)({},t))];case 11:if(null===(s=m.sent()))return n({event:t,code:0,message:""}),[2];t=s,m.label=12;case 12:return c=u.next(),[3,10];case 13:return[3,16];case 14:return h={error:m.sent()},[3,16];case 15:try{c&&!c.done&&(p=u.return)&&p.call(u)}finally{if(h)throw h.error}return[7];case 16:return Promise.all(this.plugins.filter(function(e){return"destination"===e.type}).map(function(e){var n=(0,x.pi)({},t);return e.execute(n).catch(function(e){return A(n,0,String(e))})})).then(function(e){var r=(0,x.CR)(e,1)[0]||A(t,100,"Event not tracked, no destination plugins on the instance");n(r)}),[2]}})})},e.prototype.flush=function(){return(0,x.mG)(this,void 0,void 0,function(){var e,t=this;return(0,x.Jh)(this,function(n){switch(n.label){case 0:return e=this.queue,this.queue=[],[4,Promise.all(e.map(function(e){return t.apply(e)}))];case 1:return n.sent(),[4,Promise.all(this.plugins.filter(function(e){return"destination"===e.type}).map(function(e){return e.flush&&e.flush()}))];case 2:return n.sent(),[2]}})})},e}(),W=function(e,t){return(0,x.pi)((0,x.pi)({},t),{event_type:m.IDENTIFY,user_properties:e.getUserProperties()})},q=function(e,t,n,r){var i;return(0,x.pi)((0,x.pi)({},r),{event_type:m.GROUP_IDENTIFY,group_properties:n.getUserProperties(),groups:((i={})[e]=t,i)})},H=function(e,t,n){var r,i=new $;return i.set(e,t),(0,x.pi)((0,x.pi)({},n),{event_type:m.IDENTIFY,user_properties:i.getUserProperties(),groups:((r={})[e]=t,r)})},Z=function(){function e(e){void 0===e&&(e="$default"),this.initializing=!1,this.isReady=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new U(this),this.name=e}return e.prototype._init=function(e){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(t){switch(t.label){case 0:return this.config=e,this.timeline.reset(this),[4,this.runQueuedFunctions("q")];case 1:return t.sent(),this.isReady=!0,[2]}})})},e.prototype.runQueuedFunctions=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t,n,r,i,o,a;return(0,x.Jh)(this,function(s){switch(s.label){case 0:t=this[e],this[e]=[],s.label=1;case 1:s.trys.push([1,8,9,10]),r=(n=(0,x.XA)(t)).next(),s.label=2;case 2:if(r.done)return[3,7];if(!((i=(0,r.value)())&&"promise"in i))return[3,4];return[4,i.promise];case 3:return s.sent(),[3,6];case 4:return[4,i];case 5:s.sent(),s.label=6;case 6:return r=n.next(),[3,2];case 7:return[3,10];case 8:return o={error:s.sent()},[3,10];case 9:try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(o)throw o.error}return[7];case 10:if(!this[e].length)return[3,12];return[4,this.runQueuedFunctions(e)];case 11:s.sent(),s.label=12;case 12:return[2]}})})},e.prototype.track=function(e,t,n){var r=(0,x.pi)((0,x.pi)((0,x.pi)({},"string"==typeof e?{event_type:e}:e),n),t&&{event_properties:t});return _(this.dispatch(r))},e.prototype.identify=function(e,t){var n=W(e,t);return _(this.dispatch(n))},e.prototype.groupIdentify=function(e,t,n,r){var i=q(e,t,n,r);return _(this.dispatch(i))},e.prototype.setGroup=function(e,t,n){var r=H(e,t,n);return _(this.dispatch(r))},e.prototype.revenue=function(e,t){var n=(0,x.pi)((0,x.pi)({},t),{event_type:m.REVENUE,event_properties:e.getEventProperties()});return _(this.dispatch(n))},e.prototype.add=function(e){return this.isReady?this._addPlugin(e):(this.q.push(this._addPlugin.bind(this,e)),_())},e.prototype._addPlugin=function(e){return _(this.timeline.register(e,this.config))},e.prototype.remove=function(e){return this.isReady?this._removePlugin(e):(this.q.push(this._removePlugin.bind(this,e)),_())},e.prototype._removePlugin=function(e){return _(this.timeline.deregister(e,this.config))},e.prototype.dispatchWithCallback=function(e,t){if(!this.isReady)return t(A(e,0,"Client not initialized"));this.process(e).then(t)},e.prototype.dispatch=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t=this;return(0,x.Jh)(this,function(n){return this.isReady?[2,this.process(e)]:[2,new Promise(function(n){t.dispatchQ.push(t.dispatchWithCallback.bind(t,e,n))})]})})},e.prototype.process=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t,n;return(0,x.Jh)(this,function(r){switch(r.label){case 0:if(r.trys.push([0,2,,3]),this.config.optOut)return[2,A(e,0,"Event skipped due to optOut config")];return[4,this.timeline.push(e)];case 1:return 200===(t=r.sent()).code?this.config.loggerProvider.log(t.message):100===t.code?this.config.loggerProvider.warn(t.message):this.config.loggerProvider.error(t.message),[2,t];case 2:return n=String(r.sent()),this.config.loggerProvider.error(n),[2,t=A(e,0,n)];case 3:return[2]}})})},e.prototype.setOptOut=function(e){if(!this.isReady){this.q.push(this._setOptOut.bind(this,!!e));return}this._setOptOut(e)},e.prototype._setOptOut=function(e){this.config.optOut=!!e},e.prototype.flush=function(){return _(this.timeline.flush())},e}(),G=function(e,t){return"boolean"==typeof e?e:(null==e?void 0:e[t])!==!1},K=function(e){return G(e,"attribution")},Y=function(e){return G(e,"pageViews")},X=function(e){return G(e,"sessions")},J=function(e){return"boolean"==typeof e?e:"object"==typeof e&&(!0===e.elementInteractions||"object"==typeof e.elementInteractions)},Q=function(e){if(J(e.autocapture)&&"object"==typeof e.autocapture&&"object"==typeof e.autocapture.elementInteractions)return e.autocapture.elementInteractions},ee=function(e){var t,n=function(){return!1},r=void 0,i=e.pageCounter;return Y(e.defaultTracking)&&(n=void 0,t=void 0,e.defaultTracking&&"object"==typeof e.defaultTracking&&e.defaultTracking.pageViews&&"object"==typeof e.defaultTracking.pageViews&&("trackOn"in e.defaultTracking.pageViews&&(n=e.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in e.defaultTracking.pageViews&&(r=e.defaultTracking.pageViews.trackHistoryChanges),"eventType"in e.defaultTracking.pageViews&&e.defaultTracking.pageViews.eventType&&(t=e.defaultTracking.pageViews.eventType))),{trackOn:n,trackHistoryChanges:r,eventType:t,pageCounter:i}},et="dclid",en="fbclid",er="gbraid",ei="gclid",eo="ko_click_id",ea="li_fat_id",es="msclkid",el="rtd_cid",eu="ttclid",ec="twclid",ed="wbraid",ef={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rtd_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},eh=function(e){var t=e.split(".");return t.length<=2?e:t.slice(t.length-2,t.length).join(".")},ep=function(e,t,n,r,i){void 0===i&&(i=!0),e.referrer;var o=e.referring_domain,a=(0,x._T)(e,["referrer","referring_domain"]),s=t||{},l=(s.referrer,s.referring_domain),u=(0,x._T)(s,["referrer","referring_domain"]);if(em(n.excludeReferrers,e.referring_domain))return r.debug("This is not a new campaign because ".concat(e.referring_domain," is in the exclude referrer list.")),!1;if(!i&&Object.values(e).every(function(e){return!e})&&t)return r.debug("This is not a new campaign because this is a direct traffic in the same session."),!1;var c=JSON.stringify(a)!==JSON.stringify(u),d=eh(o||"")!==eh(l||""),f=!t||c||d;return f?r.debug("This is a new campaign. An $identify event will be sent."):r.debug("This is not a new campaign because it's the same as the previous one."),f},em=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=""),e.some(function(e){return e instanceof RegExp?e.test(t):e===t})},eg=function(e){var t=e;return t?(t.startsWith(".")&&(t=t.substring(1)),[new RegExp("".concat(t.replace(".","\\."),"$"))]):[]},ev=function(){var e="ampIntegrationContext";return"undefined"!=typeof globalThis&&void 0!==globalThis[e]?globalThis[e]:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==n.g?n.g:void 0},ey=function(){var e,t=ev();return(null===(e=null==t?void 0:t.location)||void 0===e?void 0:e.search)?t.location.search.substring(1).split("&").filter(Boolean).reduce(function(e,t){var n=t.split("=",2),r=eb(n[0]),i=eb(n[1]);return i&&(e[r]=i),e},{}):{}},eb=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(e){return""}},ex=function(){function e(){}return e.prototype.parse=function(){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(e){return[2,(0,x.pi)((0,x.pi)((0,x.pi)((0,x.pi)({},ef),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var e=ey();return{utm_campaign:e.utm_campaign,utm_content:e.utm_content,utm_id:e.utm_id,utm_medium:e.utm_medium,utm_source:e.utm_source,utm_term:e.utm_term}},e.prototype.getReferrer=function(){var e,t,n={referrer:void 0,referring_domain:void 0};try{n.referrer=document.referrer||void 0,n.referring_domain=null!==(t=null===(e=n.referrer)||void 0===e?void 0:e.split("/")[2])&&void 0!==t?t:void 0}catch(e){}return n},e.prototype.getClickIds=function(){var e,t=ey();return(e={})[et]=t[et],e[en]=t[en],e[er]=t[er],e[ei]=t[ei],e[eo]=t[eo],e[ea]=t[ea],e[es]=t[es],e[el]=t[el],e[eu]=t[eu],e[ec]=t[ec],e[ed]=t[ed],e},e}(),ew=function(e,t){return void 0===t&&(t=Date.now()),Date.now()-t>e},ek=function(){function e(e,t){var n,r,i;this.shouldTrackNewCampaign=!1,this.options=(0,x.pi)({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:eg(null===(n=t.cookieOptions)||void 0===n?void 0:n.domain)},e),this.storage=t.cookieStorage,this.storageKey=(r=t.apiKey,void 0===i&&(i=10),["AMP","MKTG",r.substring(0,i)].filter(Boolean).join("_")),this.currentCampaign=ef,this.sessionTimeout=t.sessionTimeout,this.lastEventTime=t.lastEventTime,this.logger=t.loggerProvider,t.loggerProvider.log("Installing web attribution tracking.")}return e.prototype.init=function(){return(0,x.mG)(this,void 0,void 0,function(){var e,t;return(0,x.Jh)(this,function(n){switch(n.label){case 0:return[4,this.fetchCampaign()];case 1:if(t=x.CR.apply(void 0,[n.sent(),2]),this.currentCampaign=t[0],this.previousCampaign=t[1],e=!this.lastEventTime||ew(this.sessionTimeout,this.lastEventTime),!ep(this.currentCampaign,this.previousCampaign,this.options,this.logger,e))return[3,3];return this.shouldTrackNewCampaign=!0,[4,this.storage.set(this.storageKey,this.currentCampaign)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.fetchCampaign=function(){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(e){switch(e.label){case 0:return[4,Promise.all([new ex().parse(),this.storage.get(this.storageKey)])];case 1:return[2,e.sent()]}})})},e.prototype.generateCampaignEvent=function(e){this.shouldTrackNewCampaign=!1;var t,n,r=(t=this.currentCampaign,n=this.options,W(Object.entries((0,x.pi)((0,x.pi)({},ef),t)).reduce(function(e,t){var r,i=(0,x.CR)(t,2),o=i[0],a=i[1];return(e.setOnce("initial_".concat(o),null!==(r=null!=a?a:n.initialEmptyValue)&&void 0!==r?r:"EMPTY"),a)?e.set(o,a):e.unset(o)},new $)));return e&&(r.event_id=e),r},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e}(),eS=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:eE(),platform:"Web",os:void 0,deviceModel:void 0}},e}(),eE=function(){return"undefined"!=typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},e_=function(){function e(){this.queue=[]}return e.prototype.logEvent=function(e){this.receiver?this.receiver(e):this.queue.length<512&&this.queue.push(e)},e.prototype.setEventReceiver=function(e){this.receiver=e,this.queue.length>0&&(this.queue.forEach(function(t){e(t)}),this.queue=[])},e}(),eC=function(){return(eC=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function eO(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function eT(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}"function"==typeof SuppressedError&&SuppressedError;var eA=function(e,t){var n,r,i=typeof e;if(i!==typeof t)return!1;try{for(var o=eO(["string","number","boolean","undefined"]),a=o.next();!a.done;a=o.next())if(a.value===i)return e===t}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.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;u<e.length;u++)if(!eA(e[u],t[u]))return!1}else{if(!eA(Object.keys(e).sort(),Object.keys(t).sort()))return!1;var c=!0;return Object.keys(e).forEach(function(n){eA(e[n],t[n])||(c=!1)}),c}return!0};Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=Array(n);n--;)r[n]=[t[n],e[t[n]]];return r});var eP=function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var e=this,t=eC({},this.identity.userProperties),n=eC(eC({},this.identity),{userProperties:t});return{setUserId:function(e){return n.userId=e,this},setDeviceId:function(e){return n.deviceId=e,this},setUserProperties:function(e){return n.userProperties=e,this},setOptOut:function(e){return n.optOut=e,this},updateUserProperties:function(e){var t,r,i,o,a,s,l=n.userProperties||{};try{for(var u=eO(Object.entries(e)),c=u.next();!c.done;c=u.next()){var d=eT(c.value,2),f=d[0],h=d[1];switch(f){case"$set":try{for(var p=(i=void 0,eO(Object.entries(h))),m=p.next();!m.done;m=p.next()){var g=eT(m.value,2),v=g[0],y=g[1];l[v]=y}}catch(e){i={error:e}}finally{try{m&&!m.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}break;case"$unset":try{for(var b=(a=void 0,eO(Object.keys(h))),x=b.next();!x.done;x=b.next()){var v=x.value;delete l[v]}}catch(e){a={error:e}}finally{try{x&&!x.done&&(s=b.return)&&s.call(b)}finally{if(a)throw a.error}}break;case"$clearAll":l={}}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}return n.userProperties=l,this},commit:function(){return e.setIdentity(n),this}}},e.prototype.getIdentity=function(){return eC({},this.identity)},e.prototype.setIdentity=function(e){var t=eC({},this.identity);this.identity=eC({},e),eA(t,this.identity)||this.listeners.forEach(function(t){t(e)})},e.prototype.addIdentityListener=function(e){this.listeners.add(e)},e.prototype.removeIdentityListener=function(e){this.listeners.delete(e)},e}(),eI="undefined"!=typeof globalThis?globalThis:void 0!==n.g?n.g:self,eR=function(){function e(){this.identityStore=new eP,this.eventBridge=new e_,this.applicationContextProvider=new eS}return e.getInstance=function(t){return eI.analyticsConnectorInstances||(eI.analyticsConnectorInstances={}),eI.analyticsConnectorInstances[t]||(eI.analyticsConnectorInstances[t]=new e),eI.analyticsConnectorInstances[t]},e}(),ej=function(e){return void 0===e&&(e="$default_instance"),eR.getInstance(e)},eM=function(e,t){ej(t).identityStore.editIdentity().setUserId(e).commit()},eN=function(e,t){ej(t).identityStore.editIdentity().setDeviceId(e).commit()},eD=function(){function e(){this.name="identity",this.type="before",this.identityStore=ej().identityStore}return e.prototype.execute=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t;return(0,x.Jh)(this,function(n){return(t=e.user_properties)&&this.identityStore.editIdentity().updateUserProperties(t).commit(),[2,e]})})},e.prototype.setup=function(e){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(t){return e.instanceName&&(this.identityStore=ej(e.instanceName).identityStore),[2]})})},e}(),eL=function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.name,o=r.args,a=r.resolve,s=e&&e[i];if("function"==typeof s){var l=s.apply(e,o);"function"==typeof a&&a(null==l?void 0:l.promise)}}return e},ez=function(e){return e&&void 0!==e._q},eF=function(){if("undefined"==typeof navigator)return"";var e,t,n,r,i=navigator.userLanguage;return null!==(r=null!==(n=null!==(t=null===(e=navigator.languages)||void 0===e?void 0:e[0])&&void 0!==t?t:navigator.language)&&void 0!==n?n:i)&&void 0!==r?r:""},eB=function(){function e(){this.name="@amplitude/plugin-context-browser",this.type="before",this.library="".concat("amplitude-ts","/").concat("2.11.13"),"undefined"!=typeof navigator&&(this.userAgent=navigator.userAgent)}return e.prototype.setup=function(e){return this.config=e,Promise.resolve(void 0)},e.prototype.execute=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t,n,r,i,o;return(0,x.Jh)(this,function(a){return t=new Date().getTime(),n=null!==(i=this.config.lastEventId)&&void 0!==i?i:-1,r=null!==(o=e.event_id)&&void 0!==o?o:n+1,this.config.lastEventId=r,e.time||(this.config.lastEventTime=t),[2,(0,x.pi)((0,x.pi)((0,x.pi)((0,x.pi)((0,x.pi)((0,x.pi)((0,x.pi)((0,x.pi)({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:t},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:"Web"}),this.config.trackingOptions.language&&{language:eF()}),this.config.trackingOptions.ipAddress&&{ip:"$remote"}),{insert_id:D(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),e),{event_id:r,library:this.library,user_agent:this.userAgent})]})})},e}(),e$=function(){function e(){this.memoryStorage=new Map}return e.prototype.isEnabled=function(){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(e){return[2,!0]})})},e.prototype.get=function(e){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(t){return[2,this.memoryStorage.get(e)]})})},e.prototype.getRaw=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t;return(0,x.Jh)(this,function(n){switch(n.label){case 0:return[4,this.get(e)];case 1:return[2,(t=n.sent())?JSON.stringify(t):void 0]}})})},e.prototype.set=function(e,t){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(n){return this.memoryStorage.set(e,t),[2]})})},e.prototype.remove=function(e){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(t){return this.memoryStorage.delete(e),[2]})})},e.prototype.reset=function(){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(e){return this.memoryStorage.clear(),[2]})})},e}(),eV=function(e,t,n){return void 0===t&&(t=""),void 0===n&&(n=10),["AMP",t,e.substring(0,n)].filter(Boolean).join("_")},eU=function(){function e(e){this.options=(0,x.pi)({},e)}return e.prototype.isEnabled=function(){return(0,x.mG)(this,void 0,void 0,function(){var t,n;return(0,x.Jh)(this,function(r){switch(r.label){case 0:if(!ev())return[2,!1];e.testValue=String(Date.now()),t=new e(this.options),n="AMP_TEST",r.label=1;case 1:return r.trys.push([1,4,5,7]),[4,t.set(n,e.testValue)];case 2:return r.sent(),[4,t.get(n)];case 3:return[2,r.sent()===e.testValue];case 4:return r.sent(),[2,!1];case 5:return[4,t.remove(n)];case 6:return r.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(e){var t;return(0,x.mG)(this,void 0,void 0,function(){var n,r;return(0,x.Jh)(this,function(i){switch(i.label){case 0:return[4,this.getRaw(e)];case 1:if(!(n=i.sent()))return[2,void 0];try{if(r=null!==(t=eW(n))&&void 0!==t?t:eq(n),void 0===r)return console.error("Amplitude Logger [Error]: Failed to decode cookie value for key: ".concat(e,", value: ").concat(n)),[2,void 0];return[2,JSON.parse(r)]}catch(t){return console.error("Amplitude Logger [Error]: Failed to parse cookie value for key: ".concat(e,", value: ").concat(n)),[2,void 0]}return[2]}})})},e.prototype.getRaw=function(e){var t,n;return(0,x.mG)(this,void 0,void 0,function(){var r,i;return(0,x.Jh)(this,function(o){return(i=(null!==(n=null===(t=null==(r=ev())?void 0:r.document)||void 0===t?void 0:t.cookie.split("; "))&&void 0!==n?n:[]).find(function(t){return 0===t.indexOf(e+"=")}))?[2,i.substring(e.length+1)]:[2,void 0]})})},e.prototype.set=function(e,t){var n;return(0,x.mG)(this,void 0,void 0,function(){var r,i,o,a,s,l,u;return(0,x.Jh)(this,function(c){try{r=null!==(n=this.options.expirationDays)&&void 0!==n?n:0,i=null!==t?r:-1,o=void 0,i&&((a=new Date).setTime(a.getTime()+864e5*i),o=a),s="".concat(e,"=").concat(btoa(encodeURIComponent(JSON.stringify(t)))),o&&(s+="; expires=".concat(o.toUTCString())),s+="; path=/",this.options.domain&&(s+="; domain=".concat(this.options.domain)),this.options.secure&&(s+="; Secure"),this.options.sameSite&&(s+="; SameSite=".concat(this.options.sameSite)),(l=ev())&&(l.document.cookie=s)}catch(t){u=t instanceof Error?t.message:String(t),console.error("Amplitude Logger [Error]: Failed to set cookie for key: ".concat(e,". Error: ").concat(u))}return[2]})})},e.prototype.remove=function(e){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(t){switch(t.label){case 0:return[4,this.set(e,null)];case 1:return t.sent(),[2]}})})},e.prototype.reset=function(){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(e){return[2]})})},e}(),eW=function(e){try{return decodeURIComponent(atob(e))}catch(e){return}},eq=function(e){try{return decodeURIComponent(atob(decodeURIComponent(e)))}catch(e){return}},eH=function(){function e(){}return e.prototype.send=function(e,t){return Promise.resolve(null)},e.prototype.buildResponse=function(e){if("object"!=typeof e)return null;var t,n,r,i,o,a,s,l,u,c,d,h,p,m,g,v,y,b,x,w,k,S,E=e.code||0,_=this.buildStatus(E);switch(_){case f.Success:return{status:_,statusCode:E,body:{eventsIngested:null!==(t=e.events_ingested)&&void 0!==t?t:0,payloadSizeBytes:null!==(n=e.payload_size_bytes)&&void 0!==n?n:0,serverUploadTime:null!==(r=e.server_upload_time)&&void 0!==r?r:0}};case f.Invalid:return{status:_,statusCode:E,body:{error:null!==(i=e.error)&&void 0!==i?i:"",missingField:null!==(o=e.missing_field)&&void 0!==o?o:"",eventsWithInvalidFields:null!==(a=e.events_with_invalid_fields)&&void 0!==a?a:{},eventsWithMissingFields:null!==(s=e.events_with_missing_fields)&&void 0!==s?s:{},eventsWithInvalidIdLengths:null!==(l=e.events_with_invalid_id_lengths)&&void 0!==l?l:{},epsThreshold:null!==(u=e.eps_threshold)&&void 0!==u?u:0,exceededDailyQuotaDevices:null!==(c=e.exceeded_daily_quota_devices)&&void 0!==c?c:{},silencedDevices:null!==(d=e.silenced_devices)&&void 0!==d?d:[],silencedEvents:null!==(h=e.silenced_events)&&void 0!==h?h:[],throttledDevices:null!==(p=e.throttled_devices)&&void 0!==p?p:{},throttledEvents:null!==(m=e.throttled_events)&&void 0!==m?m:[]}};case f.PayloadTooLarge:return{status:_,statusCode:E,body:{error:null!==(g=e.error)&&void 0!==g?g:""}};case f.RateLimit:return{status:_,statusCode:E,body:{error:null!==(v=e.error)&&void 0!==v?v:"",epsThreshold:null!==(y=e.eps_threshold)&&void 0!==y?y:0,throttledDevices:null!==(b=e.throttled_devices)&&void 0!==b?b:{},throttledUsers:null!==(x=e.throttled_users)&&void 0!==x?x:{},exceededDailyQuotaDevices:null!==(w=e.exceeded_daily_quota_devices)&&void 0!==w?w:{},exceededDailyQuotaUsers:null!==(k=e.exceeded_daily_quota_users)&&void 0!==k?k:{},throttledEvents:null!==(S=e.throttled_events)&&void 0!==S?S:[]}};case f.Timeout:default:return{status:_,statusCode:E}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?f.Success:429===e?f.RateLimit:413===e?f.PayloadTooLarge:408===e?f.Timeout:e>=400&&e<500?f.Invalid:e>=500?f.Failed:f.Unknown},e}(),eZ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,x.ZT)(t,e),t.prototype.send=function(e,t){return(0,x.mG)(this,void 0,void 0,function(){var n,r;return(0,x.Jh)(this,function(i){switch(i.label){case 0:if("undefined"==typeof fetch)throw Error("FetchTransport is not supported");return[4,fetch(e,{headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(t),method:"POST"})];case 1:return[4,(n=i.sent()).text()];case 2:r=i.sent();try{return[2,this.buildResponse(JSON.parse(r))]}catch(e){return[2,this.buildResponse({code:n.status})]}return[2]}})})},t}(eH),eG=function(){function e(e){this.storage=e}return e.prototype.isEnabled=function(){return(0,x.mG)(this,void 0,void 0,function(){var t,n,r;return(0,x.Jh)(this,function(i){switch(i.label){case 0:if(!this.storage)return[2,!1];t=String(Date.now()),n=new e(this.storage),r="AMP_TEST",i.label=1;case 1:return i.trys.push([1,4,5,7]),[4,n.set(r,t)];case 2:return i.sent(),[4,n.get(r)];case 3:return[2,i.sent()===t];case 4:return i.sent(),[2,!1];case 5:return[4,n.remove(r)];case 6:return i.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t;return(0,x.Jh)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.getRaw(e)];case 1:if(!(t=n.sent()))return[2,void 0];return[2,JSON.parse(t)];case 2:return n.sent(),console.error("[Amplitude] Error: Could not get value from storage"),[2,void 0];case 3:return[2]}})})},e.prototype.getRaw=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t;return(0,x.Jh)(this,function(n){return[2,(null===(t=this.storage)||void 0===t?void 0:t.getItem(e))||void 0]})})},e.prototype.set=function(e,t){return(0,x.mG)(this,void 0,void 0,function(){var n;return(0,x.Jh)(this,function(r){try{null===(n=this.storage)||void 0===n||n.setItem(e,JSON.stringify(t))}catch(e){}return[2]})})},e.prototype.remove=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t;return(0,x.Jh)(this,function(n){try{null===(t=this.storage)||void 0===t||t.removeItem(e)}catch(e){}return[2]})})},e.prototype.reset=function(){return(0,x.mG)(this,void 0,void 0,function(){var e;return(0,x.Jh)(this,function(t){try{null===(e=this.storage)||void 0===e||e.clear()}catch(e){}return[2]})})},e}(),eK=function(e){function t(t){var n,r=e.call(this,null===(n=ev())||void 0===n?void 0:n.localStorage)||this;return r.loggerProvider=null==t?void 0:t.loggerProvider,r}return(0,x.ZT)(t,e),t.prototype.set=function(t,n){return(0,x.mG)(this,void 0,void 0,function(){var r,i;return(0,x.Jh)(this,function(o){switch(o.label){case 0:if(!(Array.isArray(n)&&n.length>1e3))return[3,2];return r=n.length-1e3,[4,e.prototype.set.call(this,t,n.slice(0,1e3))];case 1:return o.sent(),null===(i=this.loggerProvider)||void 0===i||i.error("Failed to save ".concat(r," events because the queue length exceeded ").concat(1e3,".")),[3,4];case 2:return[4,e.prototype.set.call(this,t,n)];case 3:o.sent(),o.label=4;case 4:return[2]}})})},t}(eG),eY=function(e){function t(){var t;return e.call(this,null===(t=ev())||void 0===t?void 0:t.sessionStorage)||this}return(0,x.ZT)(t,e),t}(eG),eX=function(e){function t(){var t=e.apply(this,(0,x.ev)([],(0,x.CR)(arguments),!1))||this;return t.state={done:4},t}return(0,x.ZT)(t,e),t.prototype.send=function(e,t){return(0,x.mG)(this,void 0,void 0,function(){var n=this;return(0,x.Jh)(this,function(r){return[2,new Promise(function(r,i){"undefined"==typeof XMLHttpRequest&&i(Error("XHRTransport is not supported."));var o=new XMLHttpRequest;o.open("POST",e,!0),o.onreadystatechange=function(){if(o.readyState===n.state.done){var e=o.responseText;try{r(n.buildResponse(JSON.parse(e)))}catch(e){r(n.buildResponse({code:o.status}))}}},o.setRequestHeader("Content-Type","application/json"),o.setRequestHeader("Accept","*/*"),o.send(JSON.stringify(t))})]})})},t}(eH),eJ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,x.ZT)(t,e),t.prototype.send=function(e,t){return(0,x.mG)(this,void 0,void 0,function(){var n=this;return(0,x.Jh)(this,function(r){return[2,new Promise(function(r,i){var o=ev();if(!(null==o?void 0:o.navigator.sendBeacon))throw Error("SendBeaconTransport is not supported");try{var a=JSON.stringify(t);if(o.navigator.sendBeacon(e,JSON.stringify(t)))return r(n.buildResponse({code:200,events_ingested:t.events.length,payload_size_bytes:a.length,server_upload_time:Date.now()}));return r(n.buildResponse({code:500}))}catch(e){i(e)}})]})})},t}(eH),eQ=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return(0,x.mG)(void 0,(0,x.ev)([e,t],(0,x.CR)(n),!1),void 0,function(e,t,n){var r,i,o,a,s,l,u,c,d;return void 0===n&&(n=!0),(0,x.Jh)(this,function(f){switch(f.label){case 0:return r="".concat("amp","_").concat(e.substring(0,6)),[4,t.getRaw(r)];case 1:if(!(i=f.sent()))return[2,{optOut:!1}];if(!n)return[3,3];return[4,t.remove(r)];case 2:f.sent(),f.label=3;case 3:return a=(o=(0,x.CR)(i.split("."),6))[0],s=o[1],l=o[2],u=o[3],c=o[4],d=o[5],[2,{deviceId:a,userId:e1(s),sessionId:e0(u),lastEventId:e0(d),lastEventTime:e0(c),optOut:!!l}]}})})},e0=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},e1=function(e){if(atob&&escape&&e)try{return decodeURIComponent(escape(atob(e)))}catch(e){return}},e2="[Amplitude]",e5="".concat(e2," Form Started"),e3="".concat(e2," Form Submitted"),e4="".concat(e2," File Downloaded"),e6="session_start",e9="session_end",e8="".concat(e2," File Extension"),e7="".concat(e2," File Name"),te="".concat(e2," Link ID"),tt="".concat(e2," Link Text"),tn="".concat(e2," Link URL"),tr="".concat(e2," Form ID"),ti="".concat(e2," Form Name"),to="".concat(e2," Form Destination"),ta="cookie",ts=function(e){function t(t,n,r,i,o,a,s,l,u,c,f,h,p,m,g,v,y,b,x,w,k,S,E,_,C,O,T,A,P,R,j,M,N,D){void 0===r&&(r=new e$),void 0===i&&(i={domain:"",expiration:365,sameSite:"Lax",secure:!1,upgrade:!0}),void 0===l&&(l=1e3),void 0===u&&(u=5),void 0===c&&(c=30),void 0===f&&(f=ta),void 0===v&&(v=new I),void 0===y&&(y=d.Warn),void 0===x&&(x=!1),void 0===w&&(w=!1),void 0===E&&(E=""),void 0===_&&(_="US"),void 0===O&&(O=18e5),void 0===T&&(T=new eK({loggerProvider:v})),void 0===A&&(A={ipAddress:!0,language:!0,platform:!0}),void 0===P&&(P="fetch"),void 0===R&&(R=!1),void 0===j&&(j=!1);var L=e.call(this,{apiKey:t,storageProvider:T,transportProvider:tc(P)})||this;return L.apiKey=t,L.appVersion=n,L.cookieOptions=i,L.defaultTracking=o,L.autocapture=a,L.flushIntervalMillis=l,L.flushMaxRetries=u,L.flushQueueSize=c,L.identityStorage=f,L.ingestionMetadata=h,L.instanceName=p,L.loggerProvider=v,L.logLevel=y,L.minIdLength=b,L.offline=x,L.partnerId=k,L.plan=S,L.serverUrl=E,L.serverZone=_,L.sessionTimeout=O,L.storageProvider=T,L.trackingOptions=A,L.transport=P,L.useBatch=R,L.fetchRemoteConfig=j,L._optOut=!1,L._cookieStorage=r,L.deviceId=s,L.lastEventId=m,L.lastEventTime=g,L.optOut=w,L.sessionId=C,L.pageCounter=N,L.userId=M,L.debugLogsEnabled=D,L.loggerProvider.enable(D?d.Debug:L.logLevel),L}return(0,x.ZT)(t,e),Object.defineProperty(t.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(e){this._cookieStorage!==e&&(this._cookieStorage=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._deviceId},set:function(e){this._deviceId!==e&&(this._deviceId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._userId},set:function(e){this._userId!==e&&(this._userId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionId",{get:function(){return this._sessionId},set:function(e){this._sessionId!==e&&(this._sessionId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut!==e&&(this._optOut=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(e){this._lastEventTime!==e&&(this._lastEventTime=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(e){this._lastEventId!==e&&(this._lastEventId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(e){this._pageCounter!==e&&(this._pageCounter=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"debugLogsEnabled",{set:function(e){this._debugLogsEnabled!==e&&(this._debugLogsEnabled=e,this.updateStorage())},enumerable:!1,configurable:!0}),t.prototype.updateStorage=function(){var e={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter,debugLogsEnabled:this._debugLogsEnabled};this.cookieStorage.set(eV(this.apiKey),e)},t}(j),tl=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return(0,x.mG)(void 0,(0,x.ev)([e],(0,x.CR)(t),!1),void 0,function(e,t,n){var r,i,o,a,s,l,u,c,d,f,h,p,m,g,v,y,b,w,k,S,E,_,C,O,T,A,P,I,R,j,M,N,L,z,F,B,$,V,U,W,q,H,Z;return void 0===t&&(t={}),(0,x.Jh)(this,function(G){switch(G.label){case 0:if(r=t.identityStorage||ta,k={},!(r!==ta))return[3,1];return o="",[3,5];case 1:if(!(null!==(E=null===(S=t.cookieOptions)||void 0===S?void 0:S.domain)&&void 0!==E))return[3,2];return a=E,[3,4];case 2:return[4,td()];case 3:a=G.sent(),G.label=4;case 4:o=a,G.label=5;case 5:return i=x.pi.apply(void 0,[(k.domain=o,k.expiration=365,k.sameSite="Lax",k.secure=!1,k.upgrade=!0,k),t.cookieOptions]),[4,eQ(e,s=tu(t.identityStorage,i),null===(C=null===(_=t.cookieOptions)||void 0===_?void 0:_.upgrade)||void 0===C||C)];case 6:return l=G.sent(),[4,s.get(eV(e))];case 7:return u=G.sent(),c=ey(),d=null!==(I=null!==(P=null!==(A=null!==(T=null!==(O=t.deviceId)&&void 0!==O?O:c.ampDeviceId)&&void 0!==T?T:c.deviceId)&&void 0!==A?A:null==u?void 0:u.deviceId)&&void 0!==P?P:l.deviceId)&&void 0!==I?I:D(),f=null!==(R=null==u?void 0:u.lastEventId)&&void 0!==R?R:l.lastEventId,h=null!==(j=null==u?void 0:u.lastEventTime)&&void 0!==j?j:l.lastEventTime,p=null!==(N=null!==(M=t.optOut)&&void 0!==M?M:null==u?void 0:u.optOut)&&void 0!==N?N:l.optOut,m=null!==(L=null==u?void 0:u.sessionId)&&void 0!==L?L:l.sessionId,g=null!==(F=null!==(z=t.userId)&&void 0!==z?z:null==u?void 0:u.userId)&&void 0!==F?F:l.userId,n.previousSessionDeviceId=null!==(B=null==u?void 0:u.deviceId)&&void 0!==B?B:l.deviceId,n.previousSessionUserId=null!==($=null==u?void 0:u.userId)&&void 0!==$?$:l.userId,v={ipAddress:null===(U=null===(V=t.trackingOptions)||void 0===V?void 0:V.ipAddress)||void 0===U||U,language:null===(q=null===(W=t.trackingOptions)||void 0===W?void 0:W.language)||void 0===q||q,platform:null===(Z=null===(H=t.trackingOptions)||void 0===H?void 0:H.platform)||void 0===Z||Z},y=null==u?void 0:u.pageCounter,b=null==u?void 0:u.debugLogsEnabled,void 0!==t.autocapture&&(t.defaultTracking=t.autocapture),[4,(w=new ts(e,t.appVersion,s,i,t.defaultTracking,t.autocapture,d,t.flushIntervalMillis,t.flushMaxRetries,t.flushQueueSize,r,t.ingestionMetadata,t.instanceName,f,h,t.loggerProvider,t.logLevel,t.minIdLength,t.offline,p,t.partnerId,t.plan,t.serverUrl,t.serverZone,m,t.sessionTimeout,t.storageProvider,v,t.transport,t.useBatch,t.fetchRemoteConfig,g,y,b)).storageProvider.isEnabled()];case 8:return G.sent()||(w.loggerProvider.warn("Storage provider ".concat(w.storageProvider.constructor.name," is not enabled. Falling back to MemoryStorage.")),w.storageProvider=new e$),[2,w]}})})},tu=function(e,t){switch(void 0===e&&(e=ta),void 0===t&&(t={}),e){case"localStorage":return new eK;case"sessionStorage":return new eY;case"none":return new e$;default:return new eU((0,x.pi)((0,x.pi)({},t),{expirationDays:t.expiration}))}},tc=function(e){return"xhr"===e?new eX:"beacon"===e?new eJ:new eZ},td=function(e){return(0,x.mG)(void 0,void 0,void 0,function(){var t,n,r,i,o,a;return(0,x.Jh)(this,function(s){switch(s.label){case 0:return[4,new eU().isEnabled()];case 1:if(!s.sent()||!e&&("undefined"==typeof location||!location.hostname))return[2,""];for(t=(null!=e?e:location.hostname).split("."),n=[],r="AMP_TLDTEST",i=t.length-2;i>=0;--i)n.push(t.slice(i).join("."));i=0,s.label=2;case 2:if(!(i<n.length))return[3,7];return[4,(a=new eU({domain:"."+(o=n[i])})).set(r,1)];case 3:return s.sent(),[4,a.get(r)];case 4:if(!s.sent())return[3,6];return[4,a.remove(r)];case 5:return s.sent(),[2,"."+o];case 6:return i++,[3,2];case 7:return[2,""]}})})},tf=function(e){var t={};for(var n in e){var r=e[n];r&&(t[n]=r)}return t},th=function(e){void 0===e&&(e={});var t,n,r,i=ev(),o=void 0,a=e.trackOn,s=e.trackHistoryChanges,l=e.eventType,u=void 0===l?"[Amplitude] Page Viewed":l,c=function(e){var t=e;try{t=decodeURI(e)}catch(e){null==o||o.error("Malformed URI sequence: ",e)}return t},d=function(){return(0,x.mG)(void 0,void 0,void 0,function(){var e,t,n;return(0,x.Jh)(this,function(r){switch(r.label){case 0:return e=c("undefined"!=typeof location&&location.href||""),n={event_type:u},t=[{}],[4,tp()];case 1:return[2,(n.event_properties=x.pi.apply(void 0,[x.pi.apply(void 0,t.concat([r.sent()])),{"[Amplitude] Page Domain":"undefined"!=typeof location&&location.hostname||"","[Amplitude] Page Location":e,"[Amplitude] Page Path":"undefined"!=typeof location&&c(location.pathname)||"","[Amplitude] Page Title":"undefined"!=typeof document&&document.title||"","[Amplitude] Page URL":e.split("?")[0]}]),n)]}})})},f=function(){return void 0===a||"function"==typeof a&&a()},h="undefined"!=typeof location?location.href:null,p=function(){return(0,x.mG)(void 0,void 0,void 0,function(){var e,n,r,i;return(0,x.Jh)(this,function(a){switch(a.label){case 0:if(n=tg(s,e=location.href,h||"")&&f(),h=e,!n)return[3,4];if(null==o||o.log("Tracking page view event"),null!=t)return[3,1];return[3,3];case 1:return i=(r=t).track,[4,d()];case 2:i.apply(r,[a.sent()]),a.label=3;case 3:a.label=4;case 4:return[2]}})})},m=function(){p()};return{name:"@amplitude/plugin-page-view-tracking-browser",type:"enrichment",setup:function(e,a){return(0,x.mG)(void 0,void 0,void 0,function(){var s,l;return(0,x.Jh)(this,function(u){switch(u.label){case 0:if(t=a,r=e,(o=e.loggerProvider).log("Installing @amplitude/plugin-page-view-tracking-browser"),i&&(i.addEventListener("popstate",m),n=i.history.pushState,i.history.pushState=new Proxy(i.history.pushState,{apply:function(e,t,n){var r=(0,x.CR)(n,3),i=r[0],o=r[1],a=r[2];e.apply(t,[i,o,a]),p()}})),!f())return[3,2];return o.log("Tracking page view event"),l=(s=t).track,[4,d()];case 1:l.apply(s,[u.sent()]),u.label=2;case 2:return[2]}})})},execute:function(e){return(0,x.mG)(void 0,void 0,void 0,function(){var t;return(0,x.Jh)(this,function(n){switch(n.label){case 0:if(!("attribution"===a&&tm(e)))return[3,2];return null==o||o.log("Enriching campaign event to page view event with campaign parameters"),[4,d()];case 1:t=n.sent(),e.event_type=t.event_type,e.event_properties=(0,x.pi)((0,x.pi)({},e.event_properties),t.event_properties),n.label=2;case 2:return r&&e.event_type===u&&(r.pageCounter=r.pageCounter?r.pageCounter+1:1,e.event_properties=(0,x.pi)((0,x.pi)({},e.event_properties),{"[Amplitude] Page Counter":r.pageCounter})),[2,e]}})})},teardown:function(){return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(e){return i&&(i.removeEventListener("popstate",m),n&&(i.history.pushState=n)),[2]})})}}},tp=function(){return(0,x.mG)(void 0,void 0,void 0,function(){var e;return(0,x.Jh)(this,function(t){switch(t.label){case 0:return e=tf,[4,new ex().parse()];case 1:return[2,e.apply(void 0,[t.sent()])]}})})},tm=function(e){if("$identify"===e.event_type&&e.user_properties){var t=e.user_properties,n=t[h.SET]||{},r=t[h.UNSET]||{},i=(0,x.ev)((0,x.ev)([],(0,x.CR)(Object.keys(n)),!1),(0,x.CR)(Object.keys(r)),!1);return Object.keys(ef).every(function(e){return i.includes(e)})}return!1},tg=function(e,t,n){if("pathOnly"===e){if(""==n)return!0;var r=new URL(t),i=new URL(n);return r.origin+r.pathname!==i.origin+i.pathname}return t!==n},tv=function(){var e,t=[],n=function(e,n,r){e.addEventListener(n,r),t.push({element:e,type:n,handler:r})},r=function(){t.forEach(function(e){var t=e.element,n=e.type,r=e.handler;null==t||t.removeEventListener(n,r)}),t=[]};return{name:"@amplitude/plugin-form-interaction-tracking-browser",type:"enrichment",setup:function(t,r){return(0,x.mG)(void 0,void 0,void 0,function(){var i;return(0,x.Jh)(this,function(o){return null===(i=ev())||void 0===i||i.addEventListener("load",function(){if(!r){t.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked.");return}if("undefined"!=typeof document){var i=function(e){var t=!1;n(e,"change",function(){var n,i=tb(e);t||r.track(e5,((n={})[tr]=ty(e.id),n[ti]=ty(e.name),n[to]=i,n)),t=!0}),n(e,"submit",function(){var n,i,o=tb(e);t||r.track(e5,((n={})[tr]=ty(e.id),n[ti]=ty(e.name),n[to]=o,n)),r.track(e3,((i={})[tr]=ty(e.id),i[ti]=ty(e.name),i[to]=o,i)),t=!1})};Array.from(document.getElementsByTagName("form")).forEach(i),"undefined"!=typeof MutationObserver&&(e=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){"FORM"===e.nodeName&&i(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("form")).map(i)})})})).observe(document.body,{subtree:!0,childList:!0})}}),[2]})})},execute:function(e){return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(t){return null==e||e.disconnect(),r(),[2]})})}}},ty=function(e){if("string"==typeof e)return e},tb=function(e){var t=e.getAttribute("action");try{t=new URL(encodeURI(null!=t?t:""),window.location.href).href}catch(e){}return t},tx=function(){var e,t=[],n=function(e,n,r){e.addEventListener(n,r),t.push({element:e,type:n,handler:r})},r=function(){t.forEach(function(e){var t=e.element,n=e.type,r=e.handler;null==t||t.removeEventListener(n,r)}),t=[]};return{name:"@amplitude/plugin-file-download-tracking-browser",type:"enrichment",setup:function(t,r){return(0,x.mG)(void 0,void 0,void 0,function(){var i;return(0,x.Jh)(this,function(o){return null===(i=ev())||void 0===i||i.addEventListener("load",function(){if(!r){t.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.");return}if("undefined"!=typeof document){var i=function(e){try{t=new URL(e.href,window.location.href)}catch(e){return}var t,i=o.exec(t.href),a=null==i?void 0:i[1];a&&n(e,"click",function(){var n;a&&r.track(e4,((n={})[e8]=a,n[e7]=t.pathname,n[te]=e.id,n[tt]=e.text,n[tn]=e.href,n))})},o=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)(\?.+)?$/;Array.from(document.getElementsByTagName("a")).forEach(i),"undefined"!=typeof MutationObserver&&(e=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){"A"===e.nodeName&&i(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("a")).map(i)})})})).observe(document.body,{subtree:!0,childList:!0})}}),[2]})})},execute:function(e){return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(t){return null==e||e.disconnect(),r(),[2]})})}}},tw=!1,tk=function(e){tw||void 0!==e.defaultTracking||(e.loggerProvider.warn("`options.defaultTracking` is set to undefined. This implicitly configures your Amplitude instance to track Page Views, Sessions, File Downloads, and Form Interactions. You can suppress this warning by explicitly setting a value to `options.defaultTracking`. The value must either be a boolean, to enable and disable all default events, or an object, for advanced configuration. For example:\n\namplitude.init(<YOUR_API_KEY>, {\n defaultTracking: true,\n});\n\nVisit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-default-events for more details."),tw=!0)},tS=function(){var e=ev(),t=[],n=function(n,r){e&&(e.addEventListener(n,r),t.push({type:n,handler:r}))},r=function(){t.forEach(function(t){var n=t.type,r=t.handler;e&&e.removeEventListener(n,r)}),t=[]};return{name:"@amplitude/plugin-network-checker-browser",type:"before",setup:function(e,t){return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(r){return"undefined"==typeof navigator?(e.loggerProvider.debug("Network connectivity checker plugin is disabled because navigator is not available."),e.offline=!1):(e.offline=!navigator.onLine,n("online",function(){e.loggerProvider.debug("Network connectivity changed to online."),e.offline=!1,setTimeout(function(){t.flush()},e.flushIntervalMillis)}),n("offline",function(){e.loggerProvider.debug("Network connectivity changed to offline."),e.offline=!0})),[2]})})},teardown:function(){return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(e){return r(),[2]})})}}};(l=g||(g={})).US="US",l.EU="EU";var tE="Remote config fetch rejected due to timeout after 5 seconds",t_="Unexpected error occurred",tC=function(){function e(e){var t=e.localConfig,n=e.configKeys,r=this;this.retryTimeout=1e3,this.attempts=0,this.sessionTargetingMatch=!1,this.metrics={},this.getRemoteConfig=function(e,t,n){return(0,x.mG)(r,void 0,void 0,function(){var r,i,o;return(0,x.Jh)(this,function(a){switch(a.label){case 0:return r=Date.now(),[4,this.fetchWithTimeout(n)];case 1:if((i=a.sent())&&(o=i.configs&&i.configs[e]))return this.metrics.fetchTimeAPISuccess=Date.now()-r,[2,o[t]];return this.metrics.fetchTimeAPIFail=Date.now()-r,[2,void 0]}})})},this.fetchWithTimeout=function(e){return(0,x.mG)(r,void 0,void 0,function(){var t,n,r;return(0,x.Jh)(this,function(i){switch(i.label){case 0:return t=new AbortController,n=setTimeout(function(){return t.abort()},5e3),[4,this.fetchRemoteConfig(t.signal,e)];case 1:return r=i.sent(),clearTimeout(n),[2,r]}})})},this.fetchRemoteConfig=function(e,t){return(0,x.mG)(r,void 0,void 0,function(){var n,r,i,o,a,s,l,u,c,d,h;return(0,x.Jh)(this,function(p){switch(p.label){case 0:if(t===this.lastFetchedSessionId&&this.attempts>=this.localConfig.flushMaxRetries)return[2,this.completeRequest({err:"Remote config fetch rejected due to exceeded retry count"})];if(e.aborted)return[2,this.completeRequest({err:tE})];t!==this.lastFetchedSessionId&&(this.lastFetchedSessionId=t,this.attempts=0),p.label=1;case 1:p.trys.push([1,3,,4]),n=new URLSearchParams({api_key:this.localConfig.apiKey});try{for(i=(r=(0,x.XA)(this.configKeys)).next();!i.done;i=r.next())o=i.value,n.append("config_keys",o)}catch(e){c={error:e}}finally{try{i&&!i.done&&(d=r.return)&&d.call(r)}finally{if(c)throw c.error}}return t&&n.set("session_id",String(t)),a={headers:{Accept:"*/*"},method:"GET"},s="".concat(this.getServerUrl(),"?").concat(n.toString()),this.attempts+=1,[4,fetch(s,(0,x.pi)((0,x.pi)({},a),{signal:e}))];case 2:if(null===(l=p.sent()))return[2,this.completeRequest({err:t_})];switch(new eH().buildStatus(l.status)){case f.Success:return this.attempts=0,[2,this.parseAndStoreConfig(l)];case f.Failed:return[2,this.retryFetch(e,t)];default:return[2,this.completeRequest({err:"Network error occurred, remote config fetch failed"})]}return[3,4];case 3:if(u=p.sent(),e.aborted)return[2,this.completeRequest({err:tE})];return[2,this.completeRequest({err:null!==(h=u.message)&&void 0!==h?h:t_})];case 4:return[2]}})})},this.retryFetch=function(e,t){return(0,x.mG)(r,void 0,void 0,function(){var n=this;return(0,x.Jh)(this,function(r){switch(r.label){case 0:return[4,new Promise(function(e){return setTimeout(e,n.attempts*n.retryTimeout)})];case 1:return r.sent(),[2,this.fetchRemoteConfig(e,t)]}})})},this.parseAndStoreConfig=function(e){return(0,x.mG)(r,void 0,void 0,function(){var t;return(0,x.Jh)(this,function(n){switch(n.label){case 0:return[4,e.json()];case 1:return t=n.sent(),this.completeRequest({success:"Remote config successfully fetched"}),[2,t]}})})},this.localConfig=t,this.configKeys=n}return e.prototype.getServerUrl=function(){return this.localConfig.serverZone===g.STAGING?"https://sr-client-cfg.stag2.amplitude.com/config":this.localConfig.serverZone===g.EU?"https://sr-client-cfg.eu.amplitude.com/config":"https://sr-client-cfg.amplitude.com/config"},e.prototype.completeRequest=function(e){var t=e.err,n=e.success;if(t)throw Error(t);n&&this.localConfig.loggerProvider.log(n)},e}(),tO=function(e){var t=e.localConfig,n=e.configKeys;return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(e){return[2,new tC({localConfig:t,configKeys:n})]})})},tT=function(){function e(e){this.config=e,this.config.loggerProvider.debug("Local configuration before merging with remote config",JSON.stringify(this.config,null,2))}return e.prototype.initialize=function(){return(0,x.mG)(this,void 0,void 0,function(){var e;return(0,x.Jh)(this,function(t){switch(t.label){case 0:return e=this,[4,tO({localConfig:this.config,configKeys:["analyticsSDK"]})];case 1:return e.remoteConfigFetch=t.sent(),[2]}})})},e.prototype.generateJoinedConfig=function(){return(0,x.mG)(this,void 0,void 0,function(){var e,t,n,r,i,o,a;return(0,x.Jh)(this,function(s){switch(s.label){case 0:if(s.trys.push([0,3,,4]),!(t=this.remoteConfigFetch))return[3,2];return[4,this.remoteConfigFetch.getRemoteConfig("analyticsSDK","browserSDK",this.config.sessionId)];case 1:t=s.sent(),s.label=2;case 2:return e=t,this.config.loggerProvider.debug("Remote configuration:",JSON.stringify(e,null,2)),e&&"autocapture"in e&&("boolean"==typeof e.autocapture&&(this.config.autocapture=e.autocapture),"object"==typeof e.autocapture&&(void 0===this.config.autocapture&&(this.config.autocapture=e.autocapture),"boolean"==typeof this.config.autocapture&&(this.config.autocapture=(0,x.pi)({attribution:this.config.autocapture,fileDownloads:this.config.autocapture,formInteractions:this.config.autocapture,pageViews:this.config.autocapture,sessions:this.config.autocapture,elementInteractions:this.config.autocapture},e.autocapture)),"object"==typeof this.config.autocapture&&(this.config.autocapture=(0,x.pi)((0,x.pi)({},this.config.autocapture),e.autocapture))),this.config.defaultTracking=this.config.autocapture),this.config.loggerProvider.debug("Joined configuration: ",JSON.stringify(this.config,null,2)),null!==(r=(a=this.config).requestMetadata)&&void 0!==r||(a.requestMetadata=new N),(null===(i=this.remoteConfigFetch)||void 0===i?void 0:i.metrics.fetchTimeAPISuccess)&&this.config.requestMetadata.recordHistogram("remote_config_fetch_time_API_success",this.remoteConfigFetch.metrics.fetchTimeAPISuccess),(null===(o=this.remoteConfigFetch)||void 0===o?void 0:o.metrics.fetchTimeAPIFail)&&this.config.requestMetadata.recordHistogram("remote_config_fetch_time_API_fail",this.remoteConfigFetch.metrics.fetchTimeAPIFail),[3,4];case 3:return n=s.sent(),this.config.loggerProvider.error("Failed to fetch remote configuration because of error: ",n),[3,4];case 4:return[2,this.config]}})})},e}(),tA=["a","button","input","select","textarea","label","video","audio",'[contenteditable="true" i]',"[data-amp-default-track]",".amp-default-track"],tP=["div","span","h1","h2","h3","h4","h5","h6"],tI="[Amplitude] Element Clicked",tR="[Amplitude] Element Tag",tj="[Amplitude] Element Text",tM="[Amplitude] Element Selector",tN="[Amplitude] Page URL",tD="https://app.amplitude.com",tL={US:tD,EU:"https://app.eu.amplitude.com",STAGING:"https://apps.stag2.amplitude.com"},tz="amp-visual-tagging-selector-highlight",tF=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function tB(e){return"function"==typeof e}function t$(e){return tB(null==e?void 0:e.then)}function tV(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var tU=tV(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function tW(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var tq=function(){var e;function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,t,n,r,i,o=this._parentage;if(o){if(this._parentage=null,Array.isArray(o))try{for(var a=(0,x.XA)(o),s=a.next();!s.done;s=a.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this)}var l=this.initialTeardown;if(tB(l))try{l()}catch(e){i=e instanceof tU?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=(0,x.XA)(u),d=c.next();!d.done;d=c.next()){var f=d.value;try{tZ(f)}catch(e){i=null!=i?i:[],e instanceof tU?i=(0,x.ev)((0,x.ev)([],(0,x.CR)(i)),(0,x.CR)(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}if(i)throw new tU(i)}},t.prototype.add=function(e){var n;if(e&&e!==this){if(this.closed)tZ(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(e)}}},t.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},t.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},t.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&tW(t,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&tW(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}();function tH(e){return e instanceof tq||e&&"closed"in e&&tB(e.remove)&&tB(e.add)&&tB(e.unsubscribe)}function tZ(e){tB(e)?e():e.unsubscribe()}tq.EMPTY;var tG={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},tK={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=tK.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,(0,x.ev)([e,t],(0,x.CR)(n))):setTimeout.apply(void 0,(0,x.ev)([e,t],(0,x.CR)(n)))},clearTimeout:function(e){var t=tK.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function tY(e){tK.setTimeout(function(){var t=tG.onUnhandledError;if(t)t(e);else throw e})}function tX(){}var tJ=tQ("C",void 0,void 0);function tQ(e,t,n){return{kind:e,value:t,error:n}}var t0=null,t1=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,tH(t)&&t.add(n)):n.destination=t8,n}return(0,x.ZT)(t,e),t.create=function(e,t,n){return new t4(e,t,n)},t.prototype.next=function(e){this.isStopped?t9(tQ("N",e,void 0),this):this._next(e)},t.prototype.error=function(e){this.isStopped?t9(tQ("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?t9(tJ,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(tq),t2=Function.prototype.bind;function t5(e,t){return t2.call(e,t)}var t3=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){t6(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){t6(e)}else t6(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){t6(e)}},e}(),t4=function(e){function t(t,n,r){var i,o,a=e.call(this)||this;return tB(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:a&&tG.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return a.unsubscribe()},i={next:t.next&&t5(t.next,o),error:t.error&&t5(t.error,o),complete:t.complete&&t5(t.complete,o)}):i=t,a.destination=new t3(i),a}return(0,x.ZT)(t,e),t}(t1);function t6(e){tG.useDeprecatedSynchronousErrorHandling?tG.useDeprecatedSynchronousErrorHandling&&t0&&(t0.errorThrown=!0,t0.error=e):tY(e)}function t9(e,t){var n=tG.onStoppedNotification;n&&tK.setTimeout(function(){return n(e,t)})}var t8={closed:!0,next:tX,error:function(e){throw e},complete:tX},t7="function"==typeof Symbol&&Symbol.observable||"@@observable";function ne(e){return e}var nt=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof t1||r&&tB(r.next)&&tB(r.error)&&tB(r.complete)&&tH(r)?e:new t4(e,t,n);return function(e){if(tG.useDeprecatedSynchronousErrorHandling){var t=!t0;if(t&&(t0={errorThrown:!1,error:null}),e(),t){var n=t0,r=n.errorThrown,i=n.error;if(t0=null,r)throw i}}else e()}(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=nn(t))(function(t,r){var i=new t4({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)})},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[t7]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0===e.length?ne:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=nn(e))(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function nn(e){var t;return null!==(t=null!=e?e:tG.Promise)&&void 0!==t?t:Promise}function nr(e){return Symbol.asyncIterator&&tB(null==e?void 0:e[Symbol.asyncIterator])}function ni(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var no="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function na(e){return tB(null==e?void 0:e[no])}function ns(e){return(0,x.FC)(this,arguments,function(){var t,n,r;return(0,x.Jh)(this,function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,(0,x.qq)(t.read())];case 3:if(r=(n=i.sent()).value,!n.done)return[3,5];return[4,(0,x.qq)(void 0)];case 4:return[2,i.sent()];case 5:return[4,(0,x.qq)(r)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function nl(e){return tB(null==e?void 0:e.getReader)}function nu(e){if(e instanceof nt)return e;if(null!=e){if(tB(e[t7]))return new nt(function(t){var n=e[t7]();if(tB(n.subscribe))return n.subscribe(t);throw TypeError("Provided object does not correctly implement Symbol.observable")});if(tF(e))return new nt(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()});if(t$(e))return new nt(function(t){e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,tY)});if(nr(e))return nc(e);if(na(e))return new nt(function(t){var n,r;try{for(var i=(0,x.XA)(e),o=i.next();!o.done;o=i.next()){var a=o.value;if(t.next(a),t.closed)return}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.complete()});if(nl(e))return nc(ns(e))}throw ni(e)}function nc(e){return new nt(function(t){(function(e,t){var n,r,i,o;return(0,x.mG)(this,void 0,void 0,function(){var a;return(0,x.Jh)(this,function(s){switch(s.label){case 0:s.trys.push([0,5,6,11]),n=(0,x.KL)(e),s.label=1;case 1:return[4,n.next()];case 2:if((r=s.sent()).done)return[3,4];if(a=r.value,t.next(a),t.closed)return[2];s.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i={error:s.sent()},[3,11];case 6:if(s.trys.push([6,,9,10]),!(r&&!r.done&&(o=n.return)))return[3,8];return[4,o.call(n)];case 7:s.sent(),s.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}function nd(e){return function(t){if(tB(null==t?void 0:t.lift))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}function nf(e,t,n,r,i){return new nh(e,t,n,r,i)}var nh=function(e){function t(t,n,r,i,o,a){var s=e.call(this,t)||this;return s.onFinalize=o,s.shouldUnsubscribe=a,s._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return(0,x.ZT)(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),n||null===(t=this.onFinalize)||void 0===t||t.call(this)}},t}(t1);function np(e,t){return nd(function(n,r){var i=0;n.subscribe(nf(r,function(n){r.next(e.call(t,n,i++))}))})}function nm(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=!1);var o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function ng(e,t,n){return(void 0===n&&(n=1/0),tB(t))?ng(function(n,r){return np(function(e,i){return t(n,e,r,i)})(nu(e(n,r)))},n):("number"==typeof t&&(n=t),nd(function(t,r){var i,o,a,s,l,u,c,d,f;return i=n,a=[],s=0,l=0,u=!1,c=function(){!u||a.length||s||r.complete()},d=function(e){return s<i?f(e):a.push(e)},f=function(t){s++;var n=!1;nu(e(t,l++)).subscribe(nf(r,function(e){o?d(e):r.next(e)},function(){n=!0},void 0,function(){if(n)try{for(s--;a.length&&s<i;)!function(){var e=a.shift();f(e)}();c()}catch(e){r.error(e)}}))},t.subscribe(nf(r,d,function(){u=!0,c()})),function(){}}))}var nv=Array.isArray,ny=["addListener","removeListener"],nb=["addEventListener","removeEventListener"],nx=["on","off"];function nw(e,t,n,r){if(tB(n)&&(r=n,n=void 0),r)return nw(e,t,n).pipe((i=r,np(function(e){return nv(e)?i.apply(void 0,(0,x.ev)([],(0,x.CR)(e))):i(e)})));var i,o=(0,x.CR)(tB(e.addEventListener)&&tB(e.removeEventListener)?nb.map(function(r){return function(i){return e[r](t,i,n)}}):tB(e.addListener)&&tB(e.removeListener)?ny.map(nk(e,t)):tB(e.on)&&tB(e.off)?nx.map(nk(e,t)):[],2),a=o[0],s=o[1];if(!a&&tF(e))return ng(function(e){return nw(e,t,n)})(nu(e));if(!a)throw TypeError("Invalid event target");return new nt(function(e){var t=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1<t.length?t:t[0])};return a(t),function(){return s(t)}})}function nk(e,t){return function(n){return function(r){return e[n](t,r)}}}function nS(e,t,n){for(var r=null,i=[],o=e,a=0;o&&"break"!==function(){var e,s,l,u,c=nI((e=o.getAttribute("id"))&&v.idName(e)?{name:"#"+CSS.escape(e),penalty:0}:null)||nI.apply(void 0,(0,x.ev)([],(0,x.CR)(Array.from(o.attributes).filter(function(e){return v.attr(e.name,e.value)}).map(function(e){return{name:"[".concat(CSS.escape(e.name),'="').concat(CSS.escape(e.value),'"]'),penalty:.5}})),!1))||nI.apply(void 0,(0,x.ev)([],(0,x.CR)(Array.from(o.classList).filter(v.className).map(function(e){return{name:"."+CSS.escape(e),penalty:1}})),!1))||nI((s=o.tagName.toLowerCase(),v.tagName(s)?{name:s,penalty:2}:null))||[nT()],d=function(e){var t=e.parentNode;if(!t)return null;var n=t.firstChild;if(!n)return null;for(var r=0;n&&(n.nodeType===Node.ELEMENT_NODE&&r++,n!==e);)n=n.nextSibling;return r}(o);if("all"==t)d&&(c=c.concat(c.filter(nP).map(function(e){return nA(e,d)})));else if("two"==t)c=c.slice(0,1),d&&(c=c.concat(c.filter(nP).map(function(e){return nA(e,d)})));else if("one"==t){var f=(0,x.CR)(c=c.slice(0,1),1)[0];d&&nP(f)&&(c=[nA(f,d)])}else"none"==t&&(c=[nT()],d&&(c=[nA(c[0],d)]));try{for(var h=(l=void 0,(0,x.XA)(c)),p=h.next();!p.done;p=h.next()){var f=p.value;f.level=a}}catch(e){l={error:e}}finally{try{p&&!p.done&&(u=h.return)&&u.call(h)}finally{if(l)throw l.error}}if(i.push(c),i.length>=v.seedMinLength&&(r=nE(i,n)))return"break";o=o.parentElement,a++}(););return(r||(r=nE(i,n)),!r&&n)?n():r}function nE(e,t){if(e.reduce(function(e,t){return e*t.length},1)>v.threshold)return t?t():null;var n,r,i=nj(function e(t,n){var r,i,o,a,s;return void 0===n&&(n=[]),(0,x.Jh)(this,function(l){switch(l.label){case 0:if(!(t.length>0))return[3,9];l.label=1;case 1:l.trys.push([1,6,7,8]),i=(r=(0,x.XA)(t[0])).next(),l.label=2;case 2:if(i.done)return[3,5];return o=i.value,[5,(0,x.XA)(e(t.slice(1,t.length),n.concat(o)))];case 3:l.sent(),l.label=4;case 4:return i=r.next(),[3,2];case 5:return[3,8];case 6:return a={error:l.sent()},[3,8];case 7:try{i&&!i.done&&(s=r.return)&&s.call(r)}finally{if(a)throw a.error}return[7];case 8:return[3,11];case 9:return[4,n];case 10:l.sent(),l.label=11;case 11:return[2]}})}(e));try{for(var o=(0,x.XA)(i),a=o.next();!a.done;a=o.next()){var s=a.value;if(nO(s))return s}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}function n_(e){for(var t=e[0],n=t.name,r=1;r<e.length;r++){var i=e[r].level||0;n=t.level===i-1?"".concat(e[r].name," > ").concat(n):"".concat(e[r].name," ").concat(n),t=e[r]}return n}function nC(e){return e.map(function(e){return e.penalty}).reduce(function(e,t){return e+t},0)}function nO(e){var t=n_(e);switch(y.querySelectorAll(t).length){case 0:throw Error("Can't select any node with this selector: ".concat(t));case 1:return!0;default:return!1}}function nT(){return{name:"*",penalty:3}}function nA(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function nP(e){return"html"!==e.name&&!e.name.startsWith("#")}function nI(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter(nR);return n.length>0?n:null}function nR(e){return null!=e}function nj(e){return(0,x.ev)([],(0,x.CR)(e),!1).sort(function(e,t){return nC(e)-nC(t)})}var nM=["input","select","textarea"],nN=function(e,t){return function(n,r){var i,o,a,s=e.pageUrlAllowlist,l=e.shouldTrackEventResolver,u=null===(o=null===(i=null==r?void 0:r.tagName)||void 0===i?void 0:i.toLowerCase)||void 0===o?void 0:o.call(i);if(!u)return!1;if(l)return l(n,r);if(!nB(window.location.href,s))return!1;var c=String(null==r?void 0:r.getAttribute("type"))||"";if("string"==typeof c)switch(c.toLowerCase()){case"hidden":case"password":return!1}if(t&&!t.some(function(e){var t;return!!(null===(t=null==r?void 0:r.matches)||void 0===t?void 0:t.call(r,e))}))return!1;switch(u){case"input":case"select":case"textarea":return"change"===n||"click"===n;default:var d=null===(a=null==window?void 0:window.getComputedStyle)||void 0===a?void 0:a.call(window,r);if(d&&"pointer"===d.getPropertyValue("cursor")&&"click"===n)return!0;return"click"===n}}},nD=function(e){return!(null==e||"string"==typeof e&&(/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))},nL=function(e){var t,n,r,i=null===(n=null===(t=null==e?void 0:e.tagName)||void 0===t?void 0:t.toLowerCase)||void 0===n?void 0:n.call(t),o=e instanceof HTMLElement&&(null===(r=e.getAttribute("contenteditable"))||void 0===r?void 0:r.toLowerCase())==="true";return!nM.includes(i)&&!o},nz=function(e){var t="";return nL(e)&&e.childNodes&&e.childNodes.length&&e.childNodes.forEach(function(e){var n="";e&&3===e.nodeType?e.textContent&&(n=e.textContent):n=nz(e),t+=n.split(/(\s+)/).filter(nD).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}),t},nF=function(e,t){var n,r,i="";try{return i=function(e,t){if(e.nodeType!==Node.ELEMENT_NODE)throw Error("Can't generate CSS selector for non-element node type.");if("html"===e.tagName.toLowerCase())return"html";var n,r={root:document.body,idName:function(e){return!0},className:function(e){return!0},tagName:function(e){return!0},attr:function(e,t){return!1},seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4};y=(n=(v=(0,x.pi)((0,x.pi)({},r),t)).root).nodeType===Node.DOCUMENT_NODE?n:n===r.root?n.ownerDocument:n;var i=nS(e,"all",function(){return nS(e,"two",function(){return nS(e,"one",function(){return nS(e,"none")})})});if(i){var o=nj(function e(t,n,r){var i,o,a;return void 0===r&&(r={counter:0,visited:new Map}),(0,x.Jh)(this,function(s){switch(s.label){case 0:if(!(t.length>2&&t.length>v.optimizedMinLength))return[3,5];i=1,s.label=1;case 1:var l;if(!(i<t.length-1))return[3,5];if(r.counter>v.maxNumberOfTries||(r.counter+=1,(o=(0,x.ev)([],(0,x.CR)(t),!1)).splice(i,1),a=n_(o),r.visited.has(a)))return[2];if(!(nO(o)&&(l=o,y.querySelector(n_(l))===n)))return[3,4];return[4,o];case 2:return s.sent(),r.visited.set(a,!0),[5,(0,x.XA)(e(o,n,r))];case 3:s.sent(),s.label=4;case 4:return i++,[3,1];case 5:return[2]}})}(i,e));return o.length>0&&(i=o[0]),n_(i)}throw Error("Selector was not found.")}(e,{className:function(e){return e!==tz},maxNumberOfTries:1e3})}catch(e){t&&t.warn("Failed to get selector with finder, use fallback strategy instead: ".concat(e.toString()))}var o=null===(r=null===(n=null==e?void 0:e.tagName)||void 0===n?void 0:n.toLowerCase)||void 0===r?void 0:r.call(n);o&&(i=o);var a=e.getAttribute("id"),s=e.getAttribute("class");if(a)i="#".concat(a);else if(s){var l=s.split(" ").filter(function(e){return e!==tz}).join(".");l&&(i="".concat(i,".").concat(l))}return i},nB=function(e,t){return!t||!t.length||t.some(function(t){return"string"==typeof t?e===t:e.match(t)})},n$=function(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return null==r||"object"==typeof r&&0===Object.keys(r).length||"string"==typeof r&&0===r.trim().length||(t[n]=r),t},{})},nV=function(e){var t,n=e.parentElement;if(!n)return"";try{t=n.querySelector(":scope>span,h1,h2,h3,h4,h5,h6")}catch(e){t=null}if(t){var r=t.textContent||"";return nD(r)?r:""}return nV(n)},nU=function(e,t){return e?t.some(function(t){var n;return null===(n=null==e?void 0:e.matches)||void 0===n?void 0:n.call(e,t)})?e:nU(null==e?void 0:e.parentElement,t):null},nW=function(e,t){if(!e)return{};var n,r,i,o=null===(i=null===(r=null==e?void 0:e.tagName)||void 0===r?void 0:r.toLowerCase)||void 0===i?void 0:i.call(r),a=nF(e,t);return n$(((n={})[tR]=o,n[tj]=nz(e),n[tM]=a,n[tN]=window.location.href.split("?")[0],n))},nq=function(e){return null!==e.event.target&&!!e.closestTrackedAncestor},nH=function(){function e(e){var t=(void 0===e?{}:e).origin,n=this;this.endpoint=tD,this.requestCallbacks={},this.onSelect=function(e){n.notify({action:"element-selected",data:e})},this.onTrack=function(e,t){"selector-mode-changed"===e?n.notify({action:"track-selector-mode-changed",data:t}):"selector-moved"===e&&n.notify({action:"track-selector-moved",data:t})},this.endpoint=void 0===t?tD:t}return e.prototype.notify=function(e){var t,n,r,i;null===(n=null===(t=this.logger)||void 0===t?void 0:t.debug)||void 0===n||n.call(t,"Message sent: ",JSON.stringify(e)),null===(i=null===(r=window.opener)||void 0===r?void 0:r.postMessage)||void 0===i||i.call(r,e,this.endpoint)},e.prototype.sendRequest=function(e,t,n){var r=this;void 0===n&&(n={timeout:15e3});var i="".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9)),o={id:i,action:e,args:t};return new Promise(function(t,a){r.requestCallbacks[i]={resolve:t,reject:a},r.notify(o),(null==n?void 0:n.timeout)>0&&setTimeout(function(){a(Error("".concat(e," timed out (id: ").concat(i,")"))),delete r.requestCallbacks[i]},n.timeout)})},e.prototype.handleResponse=function(e){var t;if(!this.requestCallbacks[e.id]){null===(t=this.logger)||void 0===t||t.warn("No callback found for request id: ".concat(e.id));return}this.requestCallbacks[e.id].resolve(e.responseData),delete this.requestCallbacks[e.id]},e.prototype.setup=function(e){var t=this,n=void 0===e?{}:e,r=n.logger,i=n.endpoint,o=n.isElementSelectable,a=n.cssSelectorAllowlist,s=n.actionClickAllowlist;this.logger=r,i&&this.endpoint===tD&&(this.endpoint=i);var l=null;window.addEventListener("message",function(e){if(null===(r=null===(n=t.logger)||void 0===n?void 0:n.debug)||void 0===r||r.call(n,"Message received: ",JSON.stringify(e)),t.endpoint===e.origin){var n,r,i,u,c,d=null==e?void 0:e.data,f=null==d?void 0:d.action;if(f){if("id"in d)null===(u=null===(i=t.logger)||void 0===i?void 0:i.debug)||void 0===u||u.call(i,"Received Response to previous request: ",JSON.stringify(e)),t.handleResponse(d);else if("ping"===f)t.notify({action:"pong"});else if("initialize-visual-tagging-selector"===f){var h,p=null==d?void 0:d.data;(h="https://cdn.amplitude.com/libs/visual-tagging-selector-1.0.0-alpha.js.gz",new Promise(function(e,t){var n;try{var r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src=h,r.addEventListener("load",function(){e({status:!0})},{once:!0}),r.addEventListener("error",function(){t({status:!1,message:"Failed to load the script ".concat(h)})}),null===(n=document.head)||void 0===n||n.appendChild(r)}catch(e){t(e)}})).then(function(){var e;l=null===(e=null==window?void 0:window.amplitudeVisualTaggingSelector)||void 0===e?void 0:e.call(window,{getEventTagProps:nW,isElementSelectable:function(e){return!o||o((null==p?void 0:p.actionType)||"click",e)},onTrack:t.onTrack,onSelect:t.onSelect,visualHighlightClass:tz,messenger:t,cssSelectorAllowlist:a,actionClickAllowlist:s}),t.notify({action:"selector-loaded"})}).catch(function(){var e;null===(e=t.logger)||void 0===e||e.warn("Failed to initialize visual tagging selector")})}else"close-visual-tagging-selector"===f&&(null===(c=null==l?void 0:l.close)||void 0===c||c.call(l))}}}),this.notify({action:"page-loaded"})},e}(),nZ=["id","class","style","value","onclick","onchange","oninput","onblur","onsubmit","onfocus","onkeydown","onkeyup","onkeypress","data-reactid","data-react-checksum","data-reactroot"],nG=["type"],nK=["svg","path","g"],nY=["password","hidden"];function nX(e,t){return nd(function(n,r){var i=0;n.subscribe(nf(r,function(n){return e.call(t,n,i++)&&r.next(n)}))})}var nJ=function(e){function t(t,n){return e.call(this)||this}return(0,x.ZT)(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(tq),nQ={setInterval:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=nQ.delegate;return(null==i?void 0:i.setInterval)?i.setInterval.apply(i,(0,x.ev)([e,t],(0,x.CR)(n))):setInterval.apply(void 0,(0,x.ev)([e,t],(0,x.CR)(n)))},clearInterval:function(e){var t=nQ.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},n0=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return(0,x.ZT)(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n,r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,t)),this.pending=!0,this.delay=t,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),nQ.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;null!=t&&nQ.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,r=!1;try{this.work(e)}catch(e){r=!0,n=e||Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,tW(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(nJ),n1={now:function(){return(n1.delegate||Date).now()},delegate:void 0},n2=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=n1.now,e}(),n5=new(function(e){function t(t,n){void 0===n&&(n=n2.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r}return(0,x.ZT)(t,e),t.prototype.flush=function(e){var t,n=this.actions;if(this._active){n.push(e);return}this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=n.shift());if(this._active=!1,t){for(;e=n.shift();)e.unsubscribe();throw t}},t}(n2))(n0);function n3(e){return void 0===e&&(e=1/0),ng(ne,e)}var n4=new nt(function(e){return e.complete()});function n6(e){return e&&tB(e.schedule)}function n9(e){return e[e.length-1]}function n8(e){return n6(n9(e))?e.pop():void 0}function n7(e,t){return void 0===t&&(t=0),nd(function(n,r){n.subscribe(nf(r,function(n){return nm(r,e,function(){return r.next(n)},t)},function(){return nm(r,e,function(){return r.complete()},t)},function(n){return nm(r,e,function(){return r.error(n)},t)}))})}function re(e,t){return void 0===t&&(t=0),nd(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function rt(e,t){if(!e)throw Error("Iterable cannot be null");return new nt(function(n){nm(n,t,function(){var r=e[Symbol.asyncIterator]();nm(n,t,function(){r.next().then(function(e){e.done?n.complete():n.next(e.value)})},0,!0)})})}function rn(e,t){return t?function(e,t){if(null!=e){if(tB(e[t7]))return nu(e).pipe(re(t),n7(t));if(tF(e))return new nt(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})});if(t$(e))return nu(e).pipe(re(t),n7(t));if(nr(e))return rt(e,t);if(na(e))return new nt(function(n){var r;return nm(n,t,function(){r=e[no](),nm(n,t,function(){var e,t,i;try{t=(e=r.next()).value,i=e.done}catch(e){n.error(e);return}i?n.complete():n.next(t)},0,!0)}),function(){return tB(null==r?void 0:r.return)&&r.return()}});if(nl(e))return rt(ns(e),t)}throw ni(e)}(e,t):nu(e)}function rr(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=n8(t),i=(e=1/0,"number"==typeof n9(t)?t.pop():e);return t.length?1===t.length?nu(t[0]):n3(i)(rn(t,r)):n4}function ri(e){return e<=0?function(){return n4}:nd(function(t,n){var r=0;t.subscribe(nf(n,function(t){++r<=e&&(n.next(t),e<=r&&n.complete())}))})}function ro(e){return e instanceof Date&&!isNaN(e)}var ra=tV(function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}});function rs(e){throw new ra(e)}(u=b||(b={})).ClickObservable="clickObservable",u.ChangeObservable="changeObservable",u.NavigateObservable="navigateObservable",u.MutationObservable="mutationObservable";var rl=function(e){void 0===e&&(e={});var t,n,r,i=e.dataAttributePrefix,o=void 0===i?"data-amp-track-":i,a=e.visualTaggingOptions,s=void 0===a?{enabled:!0,messenger:new nH}:a;e.cssSelectorAllowlist=null!==(t=e.cssSelectorAllowlist)&&void 0!==t?t:tA,e.actionClickAllowlist=null!==(n=e.actionClickAllowlist)&&void 0!==n?n:tP,e.debounceTime=null!==(r=e.debounceTime)&&void 0!==r?r:0;var l="@amplitude/plugin-autocapture-browser",u=[],c=void 0,d=function(){var e,t,n=nw(document,"click",{capture:!0}).pipe(np(function(e){return h(e,"click")})),r=nw(document,"change",{capture:!0}).pipe(np(function(e){return h(e,"change")}));window.navigation&&(t=nw(window.navigation,"navigate").pipe(np(function(e){return h(e,"navigate")})));var i=new nt(function(e){var t=new MutationObserver(function(t){e.next(t)});return t.observe(document.body,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),function(){return t.disconnect()}}).pipe(np(function(e){return h(e,"mutation")}));return(e={})[b.ClickObservable]=n,e[b.ChangeObservable]=r,e[b.NavigateObservable]=t,e[b.MutationObservable]=i,e},f=function(e,t){var n,r,i,a,s=null===(a=null===(i=null==t?void 0:t.tagName)||void 0===i?void 0:i.toLowerCase)||void 0===a?void 0:a.call(i),l="function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{left:null,top:null},u=t.getAttribute("aria-label"),d=t.getAttributeNames().reduce(function(e,n){if(n.startsWith(o)){var r=n.replace(o,""),i=t.getAttribute(n);r&&(e[r]=i||"")}return e},{}),f=nV(t),h=nF(t,c),p=((r={})["[Amplitude] Element ID"]=t.getAttribute("id")||"",r["[Amplitude] Element Class"]=t.getAttribute("class"),r["[Amplitude] Element Hierarchy"]=(n=t)?function(e,t){for(var n=0,r=0;r<e.length;r++){var i=e[r];if(null===i)n+=4;else{var o=function e(t,n){void 0===n&&(n=!1);try{if(null==t){if(n)return"None";return null}if("string"==typeof t){if(n){if((t=t.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r")).includes('"'))return"'".concat(t,"'");if(t.includes("'"))return'"'.concat(t.replace(/'/g,"\\'"),'"');return"'".concat(t,"'")}return t}if("boolean"==typeof t)return t?"True":"False";if(Array.isArray(t)){var r=t.map(function(t){return e(t,!0)});return"[".concat(r.join(", "),"]")}else if("object"==typeof t){var i=Object.entries(t).filter(function(e){var t=(0,x.CR)(e,1)[0];return null!=t}).map(function(t){var n=(0,x.CR)(t,2),r=n[0],i=n[1];return"".concat(String(e(r,!0)),": ").concat(String(e(i,!0)))}),o="{".concat(i.join(", "),"}");return o.includes("\\'")&&(o=o.replace(/'/g,"'").replace(/'/g,"\\'")),o}return t.toString()}catch(e){return null}}(i);n+=o?Array.from(o).length:4}if(n>1024)return e.slice(0,r)}return e}((function(e){var t=[];if(!e)return t;t.push(e);for(var n=e.parentElement;n&&"HTML"!==n.tagName;)t.push(n),n=n.parentElement;return t})(n).map(function(e){return function(e){if(null===e)return null;var t,n,r,i,o,a,s=String(e.tagName).toLowerCase(),l={tag:s},u=Array.from(null!==(i=null===(r=e.parentElement)||void 0===r?void 0:r.children)&&void 0!==i?i:[]);u.length&&(l.index=u.indexOf(e),l.indexOfType=u.filter(function(t){return t.tagName===e.tagName}).indexOf(e));var c=null===(a=null===(o=e.previousElementSibling)||void 0===o?void 0:o.tagName)||void 0===a?void 0:a.toLowerCase();c&&(l.prevSib=String(c));var d=e.getAttribute("id");d&&(l.id=String(d));var f=Array.from(e.classList);f.length&&(l.classes=f);var h={},p=Array.from(e.attributes).filter(function(e){return!nZ.includes(e.name)}),m=!nL(e);if(!nY.includes(String(e.getAttribute("type")))&&!nK.includes(s))try{for(var g=(0,x.XA)(p),v=g.next();!v.done;v=g.next()){var y=v.value;(!m||nG.includes(y.name))&&(h[y.name]=String(y.value).substring(0,128))}}catch(e){t={error:e}}finally{try{v&&!v.done&&(n=g.return)&&n.call(g)}finally{if(t)throw t.error}}return Object.keys(h).length&&(l.attrs=h),l}(e)}),0):[],r[tR]=s,r[tj]=nz(t),r["[Amplitude] Element Position Left"]=null==l.left?null:Math.round(l.left),r["[Amplitude] Element Position Top"]=null==l.top?null:Math.round(l.top),r["[Amplitude] Element Aria Label"]=u,r["[Amplitude] Element Attributes"]=d,r[tM]=h,r["[Amplitude] Element Parent Label"]=f,r[tN]=window.location.href.split("?")[0],r["[Amplitude] Page Title"]="undefined"!=typeof document&&document.title||"",r["[Amplitude] Viewport Height"]=window.innerHeight,r["[Amplitude] Viewport Width"]=window.innerWidth,r);return"a"===s&&"click"===e&&t instanceof HTMLAnchorElement&&(p["[Amplitude] Element Href"]=t.href),n$(p)},h=function(t,n){var r={event:t,timestamp:Date.now(),type:n};if(("click"===r.type||"change"===r.type)&&null!==r.event.target){var i=nU(r.event.target,e.cssSelectorAllowlist);i&&(r.closestTrackedAncestor=i,r.targetElementProperties=f(r.type,i))}return r};return{name:l,type:"enrichment",setup:function(t,n){return(0,x.mG)(void 0,void 0,void 0,function(){var r,i,o,a,h,p,m,g,v,y;return(0,x.Jh)(this,function(b){var w,k,S,E,_,C,O,T,A,P,I,R,j,M,N,D,L,z,F,B,$,V,U,W,q,H,Z,G,K,Y,X,J,Q,ee;return c=t.loggerProvider,"undefined"==typeof document||(r=nN(e,e.cssSelectorAllowlist),i=nN(e,e.actionClickAllowlist),k=(w={allObservables:o=d(),options:e,amplitude:n,shouldTrackEvent:r}).amplitude,S=w.allObservables,E=w.options,_=w.shouldTrackEvent,A=rr((C=S.clickObservable).pipe(nd(function(e,t){var n,r=!1;e.subscribe(nf(t,function(e){var i=n;n=e,r&&t.next([i,e]),r=!0}))}),nX(function(e){var t=(0,x.CR)(e,2),n=t[0],r=t[1],i=n.event.target!==r.event.target,o=20>=Math.abs(r.event.screenX-n.event.screenX)&&20>=Math.abs(r.event.screenY-n.event.screenY);return i&&!o})),C.pipe((O=E.debounceTime,void 0===T&&(T=n5),nd(function(e,t){var n=null,r=null,i=null,o=function(){if(n){n.unsubscribe(),n=null;var e=r;r=null,t.next(e)}};function a(){var e=i+O,r=T.now();if(r<e){n=this.schedule(void 0,e-r),t.add(n);return}o()}e.subscribe(nf(t,function(e){r=e,i=T.now(),n||(n=T.schedule(a,O),t.add(n))},function(){o(),t.complete()},void 0,function(){r=n=null}))})),np(function(){return"timeout"}))),a=C.pipe((void 0===P&&(P=n5),I=0,R=P,void 0===I&&(I=0),void 0===j&&(j=n5),M=-1,null!=R&&(n6(R)?j=R:M=R),N=new nt(function(e){var t=ro(I)?+I-j.now():I;t<0&&(t=0);var n=0;return j.schedule(function(){e.closed||(e.next(n++),0<=M?this.schedule(void 0,M):e.complete())},t)}),function e(t,n){return n?function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n3(1)(rn(e,n8(e)))}(n.pipe(ri(1),nd(function(e,t){e.subscribe(nf(t,tX))})),r.pipe(e(t)))}:ng(function(e,n){return nu(t(e,n)).pipe(ri(1),np(function(){return e}))})}(function(){return N})),nX(nq),nX(function(e){return _("click",e.closestTrackedAncestor)}),nd(function(e,t){var n=[];return e.subscribe(nf(t,function(e){return n.push(e)},function(){t.next(n),t.complete()})),nu(A).subscribe(nf(t,function(){var e=n;n=[],t.next(e)},tX)),function(){n=null}})).subscribe(function(e){var t,n,r=(e.length,tI);try{for(var i=(0,x.XA)(e),o=i.next();!o.done;o=i.next()){var a=o.value;null==k||k.track(r,a.targetElementProperties,{time:a.timestamp})}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}),u.push(a),L=(D={allObservables:o,getEventProperties:f,amplitude:n,shouldTrackEvent:r}).amplitude,z=D.allObservables,F=D.getEventProperties,B=D.shouldTrackEvent,h=z.changeObservable.pipe(nX(nq),nX(function(e){return B("change",e.closestTrackedAncestor)})).subscribe(function(e){null==L||L.track("[Amplitude] Element Changed",F("change",e.closestTrackedAncestor))}),u.push(h),V=($={allObservables:o,options:e,getEventProperties:f,amplitude:n,shouldTrackEvent:r,shouldTrackActionClick:i}).amplitude,U=$.allObservables,W=$.options,q=$.getEventProperties,H=$.shouldTrackEvent,Z=$.shouldTrackActionClick,G=U.clickObservable,K=U.mutationObservable,Y=U.navigateObservable,X=G.pipe(nX(function(e){return!H("click",e.closestTrackedAncestor)}),np(function(e){var t=nU(e.event.target,W.actionClickAllowlist);return e.closestTrackedAncestor=t,null!==e.closestTrackedAncestor&&(e.targetElementProperties=q(e.type,e.closestTrackedAncestor)),e}),nX(nq),nX(function(e){return Z("click",e.closestTrackedAncestor)})),J=[K],Y&&J.push(Y),Q=rr.apply(void 0,(0,x.ev)([],(0,x.CR)(J),!1)),p=X.pipe((ee=function(e){return Q.pipe(ri(1),function(e,t){var n=ro(e)?{first:e}:"number"==typeof e?{each:e}:e,r=n.first,i=n.each,o=n.with,a=void 0===o?rs:o,s=n.scheduler,l=void 0===s?n5:s,u=n.meta,c=void 0===u?null:u;if(null==r&&null==i)throw TypeError("No timeout provided.");return nd(function(e,t){var n,o,s=null,u=0,d=function(e){o=nm(t,l,function(){try{n.unsubscribe(),nu(a({meta:c,lastValue:s,seen:u})).subscribe(t)}catch(e){t.error(e)}},e)};n=e.subscribe(nf(t,function(e){null==o||o.unsubscribe(),u++,t.next(s=e),i>0&&d(i)},void 0,void 0,function(){(null==o?void 0:o.closed)||null==o||o.unsubscribe(),s=null})),u||d(null!=r?"number"==typeof r?r:+r-l.now():i)})}({first:500,with:function(){return n4}}),np(function(){return e}))},nd(function(e,t){var n=null,r=0,i=!1,o=function(){return i&&!n&&t.complete()};e.subscribe(nf(t,function(e){null==n||n.unsubscribe(),nu(ee(e,r++)).subscribe(n=nf(t,function(e){return t.next(e)},function(){n=null,o()}))},function(){i=!0,o()}))}))).subscribe(function(e){null==V||V.track(tI,q("click",e.closestTrackedAncestor),{time:e.timestamp})}),u.push(p),null===(v=null==t?void 0:t.loggerProvider)||void 0===v||v.log("".concat(l," has been successfully added.")),window.opener&&s.enabled&&(m=e.cssSelectorAllowlist,g=e.actionClickAllowlist,null===(y=s.messenger)||void 0===y||y.setup((0,x.pi)((0,x.pi)({logger:null==t?void 0:t.loggerProvider},(null==t?void 0:t.serverZone)&&{endpoint:tL[t.serverZone]}),{isElementSelectable:nN(e,(0,x.ev)((0,x.ev)([],(0,x.CR)(m),!1),(0,x.CR)(g),!1)),cssSelectorAllowlist:m,actionClickAllowlist:g})))),[2]})})},execute:function(e){return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,x.mG)(void 0,void 0,void 0,function(){var e,t,n,r;return(0,x.Jh)(this,function(i){try{for(t=(e=(0,x.XA)(u)).next();!t.done;t=e.next())t.value.unsubscribe()}catch(e){n={error:e}}finally{try{t&&!t.done&&(r=e.return)&&r.call(e)}finally{if(n)throw n.error}}return[2]})})}}},ru={init:E((c=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,x.ZT)(t,e),t.prototype.init=function(e,t,n){var r,i;return void 0===e&&(e=""),arguments.length>2?(r=t,i=n):"string"==typeof t?(r=t,i=void 0):(r=null==t?void 0:t.userId,i=t),_(this._init((0,x.pi)((0,x.pi)({},i),{userId:r,apiKey:e})))},t.prototype._init=function(t){return(0,x.mG)(this,void 0,void 0,function(){var n,r,i,o,a,s,l,u,c=this;return(0,x.Jh)(this,function(d){var f,h;switch(d.label){case 0:if(this.initializing)return[2];return this.initializing=!0,[4,tl(t.apiKey,t,this)];case 1:if(n=d.sent(),!t.fetchRemoteConfig)return[3,4];return[4,(f=n,(0,x.mG)(void 0,void 0,void 0,function(){var e;return(0,x.Jh)(this,function(t){switch(t.label){case 0:return[4,(e=new tT(f)).initialize()];case 1:return t.sent(),[2,e]}})}))];case 2:return[4,d.sent().generateJoinedConfig()];case 3:n=d.sent(),d.label=4;case 4:return[4,e.prototype._init.call(this,n)];case 5:if(d.sent(),this.logBrowserOptions(n),!K(this.config.defaultTracking))return[3,7];return r=K((h=this.config).defaultTracking)&&h.defaultTracking&&"object"==typeof h.defaultTracking&&h.defaultTracking.attribution&&"object"==typeof h.defaultTracking.attribution?(0,x.pi)({},h.defaultTracking.attribution):{},this.webAttribution=new ek(r,this.config),[4,this.webAttribution.init()];case 6:d.sent(),d.label=7;case 7:if(o=Number.isNaN(Number((i=ey()).ampSessionId))?void 0:Number(i.ampSessionId),this.setSessionId(null!==(u=null!==(l=null!==(s=t.sessionId)&&void 0!==s?s:o)&&void 0!==l?l:this.config.sessionId)&&void 0!==u?u:Date.now()),(a=ej(t.instanceName)).identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),!(null!==this.config.offline))return[3,9];return[4,this.add(tS()).promise];case 8:d.sent(),d.label=9;case 9:return[4,this.add(new z).promise];case 10:return d.sent(),[4,this.add(new eB).promise];case 11:return d.sent(),[4,this.add(new eD).promise];case 12:if(d.sent(),tk(this.config),!G(this.config.defaultTracking,"fileDownloads"))return[3,14];return this.config.loggerProvider.debug("Adding file download tracking plugin"),[4,this.add(tx()).promise];case 13:d.sent(),d.label=14;case 14:if(!G(this.config.defaultTracking,"formInteractions"))return[3,16];return this.config.loggerProvider.debug("Adding form interaction plugin"),[4,this.add(tv()).promise];case 15:d.sent(),d.label=16;case 16:if(!Y(this.config.defaultTracking))return[3,18];return this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(th(ee(this.config))).promise];case 17:d.sent(),d.label=18;case 18:if(!J(this.config.autocapture))return[3,20];return this.config.loggerProvider.debug("Adding user interactions plugin (autocapture plugin)"),[4,this.add(rl(Q(this.config))).promise];case 19:d.sent(),d.label=20;case 20:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 21:return d.sent(),a.eventBridge.setEventReceiver(function(e){c.track(e.eventType,e.eventProperties)}),[2]}})})},t.prototype.getUserId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.userId},t.prototype.setUserId=function(e){if(!this.config){this.q.push(this.setUserId.bind(this,e));return}this.config.loggerProvider.debug("function setUserId: ",e),(e!==this.config.userId||void 0===e)&&(this.config.userId=e,eM(e,this.config.instanceName))},t.prototype.getDeviceId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.deviceId},t.prototype.setDeviceId=function(e){if(!this.config){this.q.push(this.setDeviceId.bind(this,e));return}this.config.loggerProvider.debug("function setDeviceId: ",e),this.config.deviceId=e,eN(e,this.config.instanceName)},t.prototype.reset=function(){this.setDeviceId(D()),this.setUserId(void 0)},t.prototype.getSessionId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.sessionId},t.prototype.setSessionId=function(e){var t,n=[];if(!this.config)return this.q.push(this.setSessionId.bind(this,e)),_(Promise.resolve());if(e===this.config.sessionId)return _(Promise.resolve());this.config.loggerProvider.debug("function setSessionId: ",e);var r=this.getSessionId(),i=this.config.lastEventTime,o=null!==(t=this.config.lastEventId)&&void 0!==t?t:-1;this.config.sessionId=e,this.config.lastEventTime=void 0,this.config.pageCounter=0,X(this.config.defaultTracking)&&(r&&i&&n.push(this.track(e9,void 0,{device_id:this.previousSessionDeviceId,event_id:++o,session_id:r,time:i+1,user_id:this.previousSessionUserId}).promise),this.config.lastEventTime=this.config.sessionId);var a=this.trackCampaignEventIfNeeded(++o,n);return X(this.config.defaultTracking)&&n.push(this.track(e6,void 0,{event_id:a?++o:o,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,_(Promise.all(n))},t.prototype.extendSession=function(){if(!this.config){this.q.push(this.extendSession.bind(this));return}this.config.lastEventTime=Date.now()},t.prototype.setTransport=function(e){if(!this.config){this.q.push(this.setTransport.bind(this,e));return}this.config.transportProvider=tc(e)},t.prototype.identify=function(t,n){if(ez(t)){var r=t._q;t._q=[],t=eL(new $,r)}return(null==n?void 0:n.user_id)&&this.setUserId(n.user_id),(null==n?void 0:n.device_id)&&this.setDeviceId(n.device_id),e.prototype.identify.call(this,t,n)},t.prototype.groupIdentify=function(t,n,r,i){if(ez(r)){var o=r._q;r._q=[],r=eL(new $,o)}return e.prototype.groupIdentify.call(this,t,n,r,i)},t.prototype.revenue=function(t,n){if(ez(t)){var r=t._q;t._q=[],t=eL(new V,r)}return e.prototype.revenue.call(this,t,n)},t.prototype.trackCampaignEventIfNeeded=function(e,t){if(!this.webAttribution||!this.webAttribution.shouldTrackNewCampaign)return!1;var n=this.webAttribution.generateCampaignEvent(e);return t?t.push(this.track(n).promise):this.track(n),this.config.loggerProvider.log("Tracking attribution."),!0},t.prototype.process=function(t){return(0,x.mG)(this,void 0,void 0,function(){var n,r,i;return(0,x.Jh)(this,function(o){return n=Date.now(),r=ew(this.config.sessionTimeout,this.config.lastEventTime),i=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),t.event_type===e6||t.event_type===e9||t.session_id&&t.session_id!==this.getSessionId()||(r||i?(this.setSessionId(n),i&&this.config.loggerProvider.log("Created a new session for new campaign.")):r||this.trackCampaignEventIfNeeded()),[2,e.prototype.process.call(this,t)]})})},t.prototype.logBrowserOptions=function(e){try{var t=(0,x.pi)((0,x.pi)({},e),{apiKey:e.apiKey.substring(0,10)+"********"});this.config.loggerProvider.debug("Initialized Amplitude with BrowserConfig:",JSON.stringify(t))}catch(e){this.config.loggerProvider.error("Error logging browser config",e)}},t}(Z))).init.bind(c),"init",w(c),S(c,["config"])),add:E(c.add.bind(c),"add",w(c),S(c,["config.apiKey","timeline.plugins"])),remove:E(c.remove.bind(c),"remove",w(c),S(c,["config.apiKey","timeline.plugins"])),track:E(c.track.bind(c),"track",w(c),S(c,["config.apiKey","timeline.queue.length"])),logEvent:E(c.logEvent.bind(c),"logEvent",w(c),S(c,["config.apiKey","timeline.queue.length"])),identify:E(c.identify.bind(c),"identify",w(c),S(c,["config.apiKey","timeline.queue.length"])),groupIdentify:E(c.groupIdentify.bind(c),"groupIdentify",w(c),S(c,["config.apiKey","timeline.queue.length"])),setGroup:E(c.setGroup.bind(c),"setGroup",w(c),S(c,["config.apiKey","timeline.queue.length"])),revenue:E(c.revenue.bind(c),"revenue",w(c),S(c,["config.apiKey","timeline.queue.length"])),flush:E(c.flush.bind(c),"flush",w(c),S(c,["config.apiKey","timeline.queue.length"])),getUserId:E(c.getUserId.bind(c),"getUserId",w(c),S(c,["config","config.userId"])),setUserId:E(c.setUserId.bind(c),"setUserId",w(c),S(c,["config","config.userId"])),getDeviceId:E(c.getDeviceId.bind(c),"getDeviceId",w(c),S(c,["config","config.deviceId"])),setDeviceId:E(c.setDeviceId.bind(c),"setDeviceId",w(c),S(c,["config","config.deviceId"])),reset:E(c.reset.bind(c),"reset",w(c),S(c,["config","config.userId","config.deviceId"])),getSessionId:E(c.getSessionId.bind(c),"getSessionId",w(c),S(c,["config"])),setSessionId:E(c.setSessionId.bind(c),"setSessionId",w(c),S(c,["config"])),extendSession:E(c.extendSession.bind(c),"extendSession",w(c),S(c,["config"])),setOptOut:E(c.setOptOut.bind(c),"setOptOut",w(c),S(c,["config"])),setTransport:E(c.setTransport.bind(c),"setTransport",w(c),S(c,["config"]))};ru.add,ru.extendSession,ru.flush,ru.getDeviceId,ru.getSessionId,ru.getUserId,ru.groupIdentify,ru.identify;var rc=ru.init,rd=(ru.logEvent,ru.remove,ru.reset,ru.revenue,ru.setDeviceId,ru.setGroup,ru.setOptOut,ru.setSessionId,ru.setTransport,ru.setUserId,ru.track)},76317:function(e,t,n){"use strict";n.d(t,{Z:function(){return W}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(n);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else n.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),i=Math.abs,o=String.fromCharCode,a=Object.assign;function s(e,t,n){return e.replace(t,n)}function l(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function c(e,t,n){return e.slice(t,n)}function d(e){return e.length}function f(e,t){return t.push(e),e}var h=1,p=1,m=0,g=0,v=0,y="";function b(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:h,column:p,length:a,return:""}}function x(e,t){return a(b("",null,null,"",null,null,0),e,{length:-e.length},t)}function w(){return v=g<m?u(y,g++):0,p++,10===v&&(p=1,h++),v}function k(){return u(y,g)}function S(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function E(e){return h=p=1,m=d(y=e),g=0,[]}function _(e){var t,n;return(t=g-1,n=function e(t){for(;w();)switch(v){case t:return g;case 34:case 39:34!==t&&39!==t&&e(v);break;case 40:41===t&&e(t);break;case 92:w()}return g}(91===e?e+2:40===e?e+1:e),c(y,t,n)).trim()}var C="-ms-",O="-moz-",T="-webkit-",A="comm",P="rule",I="decl",R="@keyframes";function j(e,t){for(var n="",r=e.length,i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function M(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case I:return e.return=e.return||e.value;case A:return"";case R:return e.return=e.value+"{"+j(e.children,r)+"}";case P:e.value=e.props.join(",")}return d(n=j(e.children,r))?e.return=e.value+"{"+n+"}":""}function N(e,t,n,r,o,a,l,u,d,f,h){for(var p=o-1,m=0===o?a:[""],g=m.length,v=0,y=0,x=0;v<r;++v)for(var w=0,k=c(e,p+1,p=i(y=l[v])),S=e;w<g;++w)(S=(y>0?m[w]+" "+k:s(k,/&\f/g,m[w])).trim())&&(d[x++]=S);return b(e,t,n,0===o?P:u,d,f,h)}function D(e,t,n,r){return b(e,t,n,I,c(e,0,r),c(e,r+1,-1),r)}var L=function(e,t,n){for(var r=0,i=0;r=i,i=k(),38===r&&12===i&&(t[n]=1),!S(i);)w();return c(y,e,g)},z=function(e,t){var n=-1,r=44;do switch(S(r)){case 0:38===r&&12===k()&&(t[n]=1),e[n]+=L(g-1,t,n);break;case 2:e[n]+=_(r);break;case 4:if(44===r){e[++n]=58===k()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}while(r=w());return e},F=function(e,t){var n;return n=z(E(e),t),y="",n},B=new WeakMap,$=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||B.get(n))&&!r){B.set(e,!0);for(var i=[],o=F(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[u]):a[u]+" "+o[s]}}},V=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},U=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case I:e.return=function e(t,n){switch(45^u(t,0)?(((n<<2^u(t,0))<<2^u(t,1))<<2^u(t,2))<<2^u(t,3):0){case 5103:return T+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return T+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return T+t+O+t+C+t+t;case 6828:case 4268:return T+t+C+t+t;case 6165:return T+t+C+"flex-"+t+t;case 5187:return T+t+s(t,/(\w+).+(:[^]+)/,T+"box-$1$2"+C+"flex-$1$2")+t;case 5443:return T+t+C+"flex-item-"+s(t,/flex-|-self/,"")+t;case 4675:return T+t+C+"flex-line-pack"+s(t,/align-content|flex-|-self/,"")+t;case 5548:return T+t+C+s(t,"shrink","negative")+t;case 5292:return T+t+C+s(t,"basis","preferred-size")+t;case 6060:return T+"box-"+s(t,"-grow","")+T+t+C+s(t,"grow","positive")+t;case 4554:return T+s(t,/([^-])(transform)/g,"$1"+T+"$2")+t;case 6187:return s(s(s(t,/(zoom-|grab)/,T+"$1"),/(image-set)/,T+"$1"),t,"")+t;case 5495:case 3959:return s(t,/(image-set\([^]*)/,T+"$1$`$1");case 4968:return s(s(t,/(.+:)(flex-)?(.*)/,T+"box-pack:$3"+C+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+T+t+t;case 4095:case 3583:case 4068:case 2532:return s(t,/(.+)-inline(.+)/,T+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(t)-1-n>6)switch(u(t,n+1)){case 109:if(45!==u(t,n+4))break;case 102:return s(t,/(.+:)(.+)-([^]+)/,"$1"+T+"$2-$3$1"+O+(108==u(t,n+3)?"$3":"$2-$3"))+t;case 115:return~l(t,"stretch")?e(s(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==u(t,n+1))break;case 6444:switch(u(t,d(t)-3-(~l(t,"!important")&&10))){case 107:return s(t,":",":"+T)+t;case 101:return s(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+T+(45===u(t,14)?"inline-":"")+"box$3$1"+T+"$2$3$1"+C+"$2box$3")+t}break;case 5936:switch(u(t,n+11)){case 114:return T+t+C+s(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return T+t+C+s(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return T+t+C+s(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return T+t+C+t+t}return t}(e.value,e.length);break;case R:return j([x(e,{value:s(e.value,"@","@"+T)})],r);case P:if(e.length){var i,o;return i=e.props,o=function(t){var n;switch(n=t,(n=/(::plac\w+|:read-\w+)/.exec(n))?n[0]:n){case":read-only":case":read-write":return j([x(e,{props:[s(t,/:(read-\w+)/,":"+O+"$1")]})],r);case"::placeholder":return j([x(e,{props:[s(t,/:(plac\w+)/,":"+T+"input-$1")]}),x(e,{props:[s(t,/:(plac\w+)/,":"+O+"$1")]}),x(e,{props:[s(t,/:(plac\w+)/,C+"input-$1")]})],r)}return""},i.map(o).join("")}}}],W=function(e){var t,n,i,a,m,x,C=e.key;if("css"===C){var O=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(O,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var T=e.stylisPlugins||U,P={},I=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+C+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)P[t[n]]=!0;I.push(e)});var R=(n=(t=[$,V].concat(T,[M,(i=function(e){x.insert(e)},function(e){!e.root&&(e=e.return)&&i(e)})])).length,function(e,r,i,o){for(var a="",s=0;s<n;s++)a+=t[s](e,r,i,o)||"";return a}),L=function(e){var t,n;return j((n=function e(t,n,r,i,a,m,x,E,C){for(var O,T=0,P=0,I=x,R=0,j=0,M=0,L=1,z=1,F=1,B=0,$="",V=a,U=m,W=i,q=$;z;)switch(M=B,B=w()){case 40:if(108!=M&&58==u(q,I-1)){-1!=l(q+=s(_(B),"&","&\f"),"&\f")&&(F=-1);break}case 34:case 39:case 91:q+=_(B);break;case 9:case 10:case 13:case 32:q+=function(e){for(;v=k();)if(v<33)w();else break;return S(e)>2||S(v)>3?"":" "}(M);break;case 92:q+=function(e,t){for(var n;--t&&w()&&!(v<48)&&!(v>102)&&(!(v>57)||!(v<65))&&(!(v>70)||!(v<97)););return n=g+(t<6&&32==k()&&32==w()),c(y,e,n)}(g-1,7);continue;case 47:switch(k()){case 42:case 47:f(b(O=function(e,t){for(;w();)if(e+v===57)break;else if(e+v===84&&47===k())break;return"/*"+c(y,t,g-1)+"*"+o(47===e?e:w())}(w(),g),n,r,A,o(v),c(O,2,-2),0),C);break;default:q+="/"}break;case 123*L:E[T++]=d(q)*F;case 125*L:case 59:case 0:switch(B){case 0:case 125:z=0;case 59+P:-1==F&&(q=s(q,/\f/g,"")),j>0&&d(q)-I&&f(j>32?D(q+";",i,r,I-1):D(s(q," ","")+";",i,r,I-2),C);break;case 59:q+=";";default:if(f(W=N(q,n,r,T,P,a,E,$,V=[],U=[],I),m),123===B){if(0===P)e(q,n,W,W,V,m,I,E,U);else switch(99===R&&110===u(q,3)?100:R){case 100:case 108:case 109:case 115:e(t,W,W,i&&f(N(t,W,W,0,0,a,E,$,a,V=[],I),U),a,U,I,E,i?V:U);break;default:e(q,W,W,W,[""],U,0,E,U)}}}T=P=j=0,L=F=1,$=q="",I=x;break;case 58:I=1+d(q),j=M;default:if(L<1){if(123==B)--L;else if(125==B&&0==L++&&125==(v=g>0?u(y,--g):0,p--,10===v&&(p=1,h--),v))continue}switch(q+=o(B),B*L){case 38:F=P>0?1:(q+="\f",-1);break;case 44:E[T++]=(d(q)-1)*F,F=1;break;case 64:45===k()&&(q+=_(w())),R=k(),P=I=d($=q+=function(e){for(;!S(k());)w();return c(y,e,g)}(g)),B++;break;case 45:45===M&&2==d(q)&&(L=0)}}return m}("",null,null,null,[""],t=E(t=e),0,[0],t),y="",n),R)};m=function(e,t,n,r){x=n,L(e?e+"{"+t.styles+"}":t.styles),r&&(z.inserted[t.name]=!0)};var z={key:C,sheet:new r({key:C,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:P,registered:{},insert:m};return z.sheet.hydrate(I),z}},74580:function(e,t,n){"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{Z:function(){return r}})},9116:function(e,t,n){"use strict";n.d(t,{E:function(){return x},T:function(){return h},_:function(){return d},a:function(){return m},c:function(){return y},h:function(){return g},w:function(){return f}});var r=n(66703),i=n(76317),o=n(52409),a=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}},s=n(37362),l=n(73513),u=n(93949),c=r.createContext("undefined"!=typeof HTMLElement?(0,i.Z)({key:"css"}):null);c.Provider;var d=function(){return(0,r.useContext)(c)},f=function(e){return(0,r.forwardRef)(function(t,n){return e(t,(0,r.useContext)(c),n)})},h=r.createContext({}),p=a(function(e){return a(function(t){return"function"==typeof t?t(e):(0,o.Z)({},e,t)})}),m=function(e){var t=r.useContext(h);return e.theme!==t&&(t=p(t)(e.theme)),r.createElement(h.Provider,{value:t},e.children)},g={}.hasOwnProperty,v="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",y=function(e,t){var n={};for(var r in t)g.call(t,r)&&(n[r]=t[r]);return n[v]=e,n},b=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,s.hC)(t,n,r),(0,u.L)(function(){return(0,s.My)(t,n,r)}),null},x=f(function(e,t,n){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var o=e[v],a=[i],u="";"string"==typeof e.className?u=(0,s.fp)(t.registered,a,e.className):null!=e.className&&(u=e.className+" ");var c=(0,l.O)(a,void 0,r.useContext(h));u+=t.key+"-"+c.name;var d={};for(var f in e)g.call(e,f)&&"css"!==f&&f!==v&&(d[f]=e[f]);return d.className=u,n&&(d.ref=n),r.createElement(r.Fragment,null,r.createElement(b,{cache:t,serialized:c,isStringTag:"string"==typeof o}),r.createElement(o,d))})},68312:function(e,t,n){"use strict";n.d(t,{F4:function(){return h},iv:function(){return f},tZ:function(){return c},xB:function(){return d}});var r,i,o=n(9116),a=n(66703),s=n(37362),l=n(93949),u=n(73513);n(76317),n(55829);var c=function(e,t){var n=arguments;if(null==t||!o.h.call(t,"css"))return a.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=o.E,i[1]=(0,o.c)(e,t);for(var s=2;s<r;s++)i[s]=n[s];return a.createElement.apply(null,i)};r=c||(c={}),i||(i=r.JSX||(r.JSX={}));var d=(0,o.w)(function(e,t){var n=e.styles,r=(0,u.O)([n],void 0,a.useContext(o.T)),i=a.useRef();return(0,l.j)(function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),i.current=[n,o],function(){n.flush()}},[t]),(0,l.j)(function(){var e=i.current,n=e[0];if(e[1]){e[1]=!1;return}if(void 0!==r.next&&(0,s.My)(t,r.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",r,n,!1)},[t,r.name]),null});function f(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,u.O)(t)}function h(){var e=f.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},73513:function(e,t,n){"use strict";n.d(t,{O:function(){return p}});var r,i={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=n(74580),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},c=(0,o.Z)(function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()}),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,function(e,t,n){return r={name:t,styles:n,next:r},t})}return 1===i[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function f(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return r={name:n.name,styles:n.styles,next:r},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)r={name:i.name,styles:i.styles,next:r},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=f(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":u(a)&&(r+=c(o)+":"+d(o,a)+";");else if(Array.isArray(a)&&"string"==typeof a[0]&&(null==t||void 0===t[a[0]]))for(var s=0;s<a.length;s++)u(a[s])&&(r+=c(o)+":"+d(o,a[s])+";");else{var l=f(e,t,a);switch(o){case"animation":case"animationName":r+=c(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}}return r}(e,t,n);case"function":if(void 0!==e){var o=r,a=n(e);return r=o,f(e,t,a)}}if(null==t)return n;var s=t[n];return void 0!==s?s:n}var h=/label:\s*([^\s;{]+)\s*(;|$)/g;function p(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i,o=!0,a="";r=void 0;var s=e[0];null==s||void 0===s.raw?(o=!1,a+=f(n,t,s)):a+=s[0];for(var l=1;l<e.length;l++)a+=f(n,t,e[l]),o&&(a+=s[l]);h.lastIndex=0;for(var u="";null!==(i=h.exec(a));)u+="-"+i[1];return{name:function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}(a)+u,styles:a,next:r}}},93949:function(e,t,n){"use strict";n.d(t,{L:function(){return a},j:function(){return s}});var r,i=n(66703),o=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,a=o||function(e){return e()},s=o||i.useLayoutEffect},37362:function(e,t,n){"use strict";function r(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}n.d(t,{My:function(){return o},fp:function(){return r},hC:function(){return i}});var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next;while(void 0!==o)}}},75242:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(52409),i=n(48111),o=n(66703);let a=o.createContext(null);function s(){return o.useContext(a)}var l="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",u=n(20130),c=function(e){let{children:t,theme:n}=e,i=s(),c=o.useMemo(()=>{let e=null===i?n:"function"==typeof n?n(i):(0,r.Z)({},i,n);return null!=e&&(e[l]=null!==i),e},[n,i]);return(0,u.jsx)(a.Provider,{value:c,children:t})},d=n(9116),f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=o.useContext(d.T);return t&&0!==Object.keys(t).length?t:e};let h=["value"],p=o.createContext();var m=function(e){let{value:t}=e,n=(0,i.Z)(e,h);return(0,u.jsx)(p.Provider,(0,r.Z)({value:null==t||t},n))};let g=o.createContext(void 0);var v=function(e){let{value:t,children:n}=e;return(0,u.jsx)(g.Provider,{value:t,children:n})};let y={};function b(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return o.useMemo(()=>{let o=e&&t[e]||t;if("function"==typeof n){let a=n(o),s=e?(0,r.Z)({},t,{[e]:a}):a;return i?()=>s:s}return e?(0,r.Z)({},t,{[e]:n}):(0,r.Z)({},t,n)},[e,t,n,i])}var x=function(e){let{children:t,theme:n,themeId:r}=e,i=f(y),o=s()||y,a=b(r,i,n),l=b(r,o,n,!0),h="rtl"===a.direction;return(0,u.jsx)(c,{theme:l,children:(0,u.jsx)(d.T.Provider,{value:a,children:(0,u.jsx)(m,{value:h,children:(0,u.jsx)(v,{value:null==a?void 0:a.components,children:t})})})})},w="$$material";let k=["theme"];function S(e){let{theme:t}=e,n=(0,i.Z)(e,k),o=t[w];return(0,u.jsx)(x,(0,r.Z)({},n,{themeId:o?w:void 0,theme:o||t}))}},9779:function(e,t,n){"use strict";n.d(t,{Z:function(){return eU}});var r=n(52409),i=n(48111),o=n(20139),a=n(66703);function s(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function l(e,t,n={clone:!0}){let i=n.clone?(0,r.Z)({},e):e;return s(e)&&s(t)&&Object.keys(t).forEach(r=>{a.isValidElement(t[r])?i[r]=t[r]:s(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&s(e[r])?i[r]=l(e[r],t[r],n):n.clone?i[r]=s(t[r])?function e(t){if(a.isValidElement(t)||!s(t))return t;let n={};return Object.keys(t).forEach(r=>{n[r]=e(t[r])}),n}(t[r]):t[r]:i[r]=t[r]}),i}let u={xs:0,sm:600,md:900,lg:1200,xl:1536},c={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${u[e]}px)`};function d(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let e=r.breakpoints||c;return t.reduce((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r),{})}if("object"==typeof t){let e=r.breakpoints||c;return Object.keys(t).reduce((r,i)=>(-1!==Object.keys(e.values||u).indexOf(i)?r[e.up(i)]=n(t[i],i):r[i]=t[i],r),{})}return n(t)}function f(e){if("string"!=typeof e)throw Error((0,o.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}function h(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){let n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function p(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:h(e,n)||r,t&&(i=t(i,r,e)),i}var m=function(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=e=>{if(null==e[t])return null;let o=e[t],a=h(e.theme,r)||{};return d(e,o,e=>{let r=p(a,i,e);return(e===r&&"string"==typeof e&&(r=p(a,i,`${t}${"default"===e?"":f(e)}`,e)),!1===n)?r:{[n]:r}})};return o.propTypes={},o.filterProps=[t],o},g=function(e,t){return t?l(e,t,{clone:!1}):e};let v={m:"margin",p:"padding"},y={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},b={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},x=function(e){let t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!b[e])return[e];e=b[e]}let[t,n]=e.split(""),r=v[t],i=y[n]||"";return Array.isArray(i)?i.map(e=>r+e):[r+i]}),w=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],k=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],S=[...w,...k];function E(e,t,n,r){var i;let o=null!=(i=h(e,t,!1))?i:n;return"number"==typeof o?e=>"string"==typeof e?e:o*e:Array.isArray(o)?e=>"string"==typeof e?e:o[e]:"function"==typeof o?o:()=>void 0}function _(e){return E(e,"spacing",8,"spacing")}function C(e,t){if("string"==typeof t||null==t)return t;let n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function O(e,t){let n=_(e.theme);return Object.keys(e).map(r=>(function(e,t,n,r){var i;if(-1===t.indexOf(n))return null;let o=(i=x(n),e=>i.reduce((t,n)=>(t[n]=C(r,e),t),{})),a=e[n];return d(e,a,o)})(e,t,r,n)).reduce(g,{})}function T(e){return O(e,w)}function A(e){return O(e,k)}function P(e){return O(e,S)}T.propTypes={},T.filterProps=w,A.propTypes={},A.filterProps=k,P.propTypes={},P.filterProps=S;var I=function(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?g(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n};function R(e){return"number"!=typeof e?e:`${e}px solid`}function j(e,t){return m({prop:e,themeKey:"borders",transform:t})}let M=j("border",R),N=j("borderTop",R),D=j("borderRight",R),L=j("borderBottom",R),z=j("borderLeft",R),F=j("borderColor"),B=j("borderTopColor"),$=j("borderRightColor"),V=j("borderBottomColor"),U=j("borderLeftColor"),W=j("outline",R),q=j("outlineColor"),H=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){let t=E(e.theme,"shape.borderRadius",4,"borderRadius");return d(e,e.borderRadius,e=>({borderRadius:C(t,e)}))}return null};H.propTypes={},H.filterProps=["borderRadius"],I(M,N,D,L,z,F,B,$,V,U,H,W,q);let Z=e=>{if(void 0!==e.gap&&null!==e.gap){let t=E(e.theme,"spacing",8,"gap");return d(e,e.gap,e=>({gap:C(t,e)}))}return null};Z.propTypes={},Z.filterProps=["gap"];let G=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){let t=E(e.theme,"spacing",8,"columnGap");return d(e,e.columnGap,e=>({columnGap:C(t,e)}))}return null};G.propTypes={},G.filterProps=["columnGap"];let K=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){let t=E(e.theme,"spacing",8,"rowGap");return d(e,e.rowGap,e=>({rowGap:C(t,e)}))}return null};K.propTypes={},K.filterProps=["rowGap"];let Y=m({prop:"gridColumn"}),X=m({prop:"gridRow"}),J=m({prop:"gridAutoFlow"}),Q=m({prop:"gridAutoColumns"}),ee=m({prop:"gridAutoRows"}),et=m({prop:"gridTemplateColumns"});function en(e,t){return"grey"===t?t:e}function er(e){return e<=1&&0!==e?`${100*e}%`:e}I(Z,G,K,Y,X,J,Q,ee,et,m({prop:"gridTemplateRows"}),m({prop:"gridTemplateAreas"}),m({prop:"gridArea"})),I(m({prop:"color",themeKey:"palette",transform:en}),m({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:en}),m({prop:"backgroundColor",themeKey:"palette",transform:en}));let ei=m({prop:"width",transform:er}),eo=e=>void 0!==e.maxWidth&&null!==e.maxWidth?d(e,e.maxWidth,t=>{var n,r;let i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||u[t];return i?(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:er(t)}}):null;eo.filterProps=["maxWidth"];let ea=m({prop:"minWidth",transform:er}),es=m({prop:"height",transform:er}),el=m({prop:"maxHeight",transform:er}),eu=m({prop:"minHeight",transform:er});m({prop:"size",cssProperty:"width",transform:er}),m({prop:"size",cssProperty:"height",transform:er}),I(ei,eo,ea,es,el,eu,m({prop:"boxSizing"}));var ec={border:{themeKey:"borders",transform:R},borderTop:{themeKey:"borders",transform:R},borderRight:{themeKey:"borders",transform:R},borderBottom:{themeKey:"borders",transform:R},borderLeft:{themeKey:"borders",transform:R},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:R},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:H},color:{themeKey:"palette",transform:en},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:en},backgroundColor:{themeKey:"palette",transform:en},p:{style:A},pt:{style:A},pr:{style:A},pb:{style:A},pl:{style:A},px:{style:A},py:{style:A},padding:{style:A},paddingTop:{style:A},paddingRight:{style:A},paddingBottom:{style:A},paddingLeft:{style:A},paddingX:{style:A},paddingY:{style:A},paddingInline:{style:A},paddingInlineStart:{style:A},paddingInlineEnd:{style:A},paddingBlock:{style:A},paddingBlockStart:{style:A},paddingBlockEnd:{style:A},m:{style:T},mt:{style:T},mr:{style:T},mb:{style:T},ml:{style:T},mx:{style:T},my:{style:T},margin:{style:T},marginTop:{style:T},marginRight:{style:T},marginBottom:{style:T},marginLeft:{style:T},marginX:{style:T},marginY:{style:T},marginInline:{style:T},marginInlineStart:{style:T},marginInlineEnd:{style:T},marginBlock:{style:T},marginBlockStart:{style:T},marginBlockEnd:{style:T},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Z},rowGap:{style:K},columnGap:{style:G},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:er},maxWidth:{style:eo},minWidth:{transform:er},height:{transform:er},maxHeight:{transform:er},minHeight:{transform:er},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};let ed=function(){function e(e,t,n,r){let i={[e]:t,theme:n},o=r[e];if(!o)return{[e]:t};let{cssProperty:a=e,themeKey:s,transform:l,style:u}=o;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};let c=h(n,s)||{};return u?u(i):d(i,t,t=>{let n=p(c,l,t);return(t===n&&"string"==typeof t&&(n=p(c,l,`${e}${"default"===t?"":f(t)}`,t)),!1===a)?n:{[a]:n}})}return function t(n){var r;let{sx:i,theme:o={}}=n||{};if(!i)return null;let a=null!=(r=o.unstable_sxConfig)?r:ec;function s(n){var r;let i=n;if("function"==typeof n)i=n(o);else if("object"!=typeof n)return n;if(!i)return null;let s=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{}))||{}}(o.breakpoints),l=Object.keys(s),u=s;return Object.keys(i).forEach(n=>{var r;let s="function"==typeof(r=i[n])?r(o):r;if(null!=s){if("object"==typeof s){if(a[n])u=g(u,e(n,s,o,a));else{let e=d({theme:o},s,e=>({[n]:e}));(function(...e){let t=new Set(e.reduce((e,t)=>e.concat(Object.keys(t)),[]));return e.every(e=>t.size===Object.keys(e).length)})(e,s)?u[n]=t({sx:s,theme:o}):u=g(u,e)}}else u=g(u,e(n,s,o,a))}}),r=u,l.reduce((e,t)=>{let n=e[t];return n&&0!==Object.keys(n).length||delete e[t],e},r)}return Array.isArray(i)?i.map(s):s(i)}}();ed.filterProps=["sx"];let ef=["values","unit","step"],eh=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>(0,r.Z)({},e,{[t.key]:t.val}),{})};var ep={borderRadius:4};function em(e,t){return this.vars&&"function"==typeof this.getColorSchemeSelector?{[this.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:this.palette.mode===e?t:{}}let eg=["breakpoints","palette","spacing","shape"];var ev=function(e={},...t){let{breakpoints:n={},palette:o={},spacing:a,shape:s={}}=e,u=(0,i.Z)(e,eg),c=function(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5}=e,a=(0,i.Z)(e,ef),s=eh(t),l=Object.keys(s);function u(e){let r="number"==typeof t[e]?t[e]:e;return`@media (min-width:${r}${n})`}function c(e){let r="number"==typeof t[e]?t[e]:e;return`@media (max-width:${r-o/100}${n})`}function d(e,r){let i=l.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[l[i]]?t[l[i]]:r)-o/100}${n})`}return(0,r.Z)({keys:l,values:s,up:u,down:c,between:d,only:function(e){return l.indexOf(e)+1<l.length?d(e,l[l.indexOf(e)+1]):u(e)},not:function(e){let t=l.indexOf(e);return 0===t?u(l[1]):t===l.length-1?c(l[t]):d(e,l[l.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},a)}(n),d=function(e=8){if(e.mui)return e;let t=_({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map(e=>{let n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(a),f=l({breakpoints:c,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},o),spacing:d,shape:(0,r.Z)({},ep,s)},u);return f.applyStyles=em,(f=t.reduce((e,t)=>l(e,t),f)).unstable_sxConfig=(0,r.Z)({},ec,null==u?void 0:u.unstable_sxConfig),f.unstable_sx=function(e){return ed({sx:e,theme:this})},f},ey=n(21443),eb={black:"#000",white:"#fff"},ex={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ew={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},ek={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},eS={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},eE={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},e_={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},eC={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};let eO=["mode","contrastThreshold","tonalOffset"],eT={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:eb.white,default:eb.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},eA={text:{primary:eb.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:eb.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function eP(e,t,n,r){let i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,ey.$n)(e.main,i):"dark"===t&&(e.dark=(0,ey._j)(e.main,o)))}let eI=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],eR={textTransform:"uppercase"},ej='"Roboto", "Helvetica", "Arial", sans-serif';function eM(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return["".concat(t[0],"px ").concat(t[1],"px ").concat(t[2],"px ").concat(t[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(t[4],"px ").concat(t[5],"px ").concat(t[6],"px ").concat(t[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(t[8],"px ").concat(t[9],"px ").concat(t[10],"px ").concat(t[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}let eN=["none",eM(0,2,1,-1,0,1,1,0,0,1,3,0),eM(0,3,1,-2,0,2,2,0,0,1,5,0),eM(0,3,3,-2,0,3,4,0,0,1,8,0),eM(0,2,4,-1,0,4,5,0,0,1,10,0),eM(0,3,5,-1,0,5,8,0,0,1,14,0),eM(0,3,5,-1,0,6,10,0,0,1,18,0),eM(0,4,5,-2,0,7,10,1,0,2,16,1),eM(0,5,5,-3,0,8,10,1,0,3,14,2),eM(0,5,6,-3,0,9,12,1,0,3,16,2),eM(0,6,6,-3,0,10,14,1,0,4,18,3),eM(0,6,7,-4,0,11,15,1,0,4,20,3),eM(0,7,8,-4,0,12,17,2,0,5,22,4),eM(0,7,8,-4,0,13,19,2,0,5,24,4),eM(0,7,9,-4,0,14,21,2,0,5,26,4),eM(0,8,9,-5,0,15,22,2,0,6,28,5),eM(0,8,10,-5,0,16,24,2,0,6,30,5),eM(0,8,11,-5,0,17,26,2,0,6,32,5),eM(0,9,11,-5,0,18,28,2,0,7,34,6),eM(0,9,12,-6,0,19,29,2,0,7,36,6),eM(0,10,13,-6,0,20,31,3,0,8,38,7),eM(0,10,13,-6,0,21,33,3,0,8,40,7),eM(0,10,14,-6,0,22,35,3,0,8,42,7),eM(0,11,14,-7,0,23,36,3,0,9,44,8),eM(0,11,15,-7,0,24,38,3,0,9,46,8)],eD=["duration","easing","delay"],eL={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ez={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function eF(e){return"".concat(Math.round(e),"ms")}function eB(e){if(!e)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}var e$={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};let eV=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];var eU=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t,n=arguments.length,a=Array(n>1?n-1:0),s=1;s<n;s++)a[s-1]=arguments[s];let{mixins:u={},palette:c={},transitions:d={},typography:f={}}=e,h=(0,i.Z)(e,eV);if(e.vars)throw Error((0,o.Z)(18));let p=function(e){let{mode:t="light",contrastThreshold:n=3,tonalOffset:a=.2}=e,s=(0,i.Z)(e,eO),u=e.primary||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:eE[200],light:eE[50],dark:eE[400]}:{main:eE[700],light:eE[400],dark:eE[800]}}(t),c=e.secondary||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:ew[200],light:ew[50],dark:ew[400]}:{main:ew[500],light:ew[300],dark:ew[700]}}(t),d=e.error||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:ek[500],light:ek[300],dark:ek[700]}:{main:ek[700],light:ek[400],dark:ek[800]}}(t),f=e.info||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:e_[400],light:e_[300],dark:e_[700]}:{main:e_[700],light:e_[500],dark:e_[900]}}(t),h=e.success||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:eC[400],light:eC[300],dark:eC[700]}:{main:eC[800],light:eC[500],dark:eC[900]}}(t),p=e.warning||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:eS[400],light:eS[300],dark:eS[700]}:{main:"#ed6c02",light:eS[500],dark:eS[900]}}(t);function m(e){return(0,ey.mi)(e,eA.text.primary)>=n?eA.text.primary:eT.text.primary}let g=e=>{let{color:t,name:n,mainShade:i=500,lightShade:s=300,darkShade:l=700}=e;if(!(t=(0,r.Z)({},t)).main&&t[i]&&(t.main=t[i]),!t.hasOwnProperty("main"))throw Error((0,o.Z)(11,n?" (".concat(n,")"):"",i));if("string"!=typeof t.main)throw Error((0,o.Z)(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return eP(t,"light",s,a),eP(t,"dark",l,a),t.contrastText||(t.contrastText=m(t.main)),t};return l((0,r.Z)({common:(0,r.Z)({},eb),mode:t,primary:g({color:u,name:"primary"}),secondary:g({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:d,name:"error"}),warning:g({color:p,name:"warning"}),info:g({color:f,name:"info"}),success:g({color:h,name:"success"}),grey:ex,contrastThreshold:n,getContrastText:m,augmentColor:g,tonalOffset:a},{dark:eA,light:eT}[t]),s)}(c),m=ev(e),g=l(m,{mixins:(t=m.breakpoints,(0,r.Z)({toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}}},u)),palette:p,shadows:eN.slice(),typography:function(e,t){let n="function"==typeof t?t(e):t,{fontFamily:o=ej,fontSize:a=14,fontWeightLight:s=300,fontWeightRegular:u=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:f=16,allVariants:h,pxToRem:p}=n,m=(0,i.Z)(n,eI),g=a/14,v=p||(e=>"".concat(e/f*g,"rem")),y=(e,t,n,i,a)=>(0,r.Z)({fontFamily:o,fontWeight:e,fontSize:v(t),lineHeight:n},o===ej?{letterSpacing:"".concat(Math.round(i/t*1e5)/1e5,"em")}:{},a,h),b={h1:y(s,96,1.167,-1.5),h2:y(s,60,1.2,-.5),h3:y(u,48,1.167,0),h4:y(u,34,1.235,.25),h5:y(u,24,1.334,0),h6:y(c,20,1.6,.15),subtitle1:y(u,16,1.75,.15),subtitle2:y(c,14,1.57,.1),body1:y(u,16,1.5,.15),body2:y(u,14,1.43,.15),button:y(c,14,1.75,.4,eR),caption:y(u,12,1.66,.4),overline:y(u,12,2.66,1,eR),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return l((0,r.Z)({htmlFontSize:f,pxToRem:v,fontFamily:o,fontSize:a,fontWeightLight:s,fontWeightRegular:u,fontWeightMedium:c,fontWeightBold:d},b),m,{clone:!1})}(p,f),transitions:function(e){let t=(0,r.Z)({},eL,e.easing),n=(0,r.Z)({},ez,e.duration);return(0,r.Z)({getAutoHeightDuration:eB,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{duration:o=n.standard,easing:a=t.easeInOut,delay:s=0}=r;return(0,i.Z)(r,eD),(Array.isArray(e)?e:[e]).map(e=>"".concat(e," ").concat("string"==typeof o?o:eF(o)," ").concat(a," ").concat("string"==typeof s?s:eF(s))).join(",")}},e,{easing:t,duration:n})}(d),zIndex:(0,r.Z)({},e$)});return g=l(g,h),(g=a.reduce((e,t)=>l(e,t),g)).unstable_sxConfig=(0,r.Z)({},ec,null==h?void 0:h.unstable_sxConfig),g.unstable_sx=function(e){return ed({sx:e,theme:this})},g}},21443:function(e,t,n){"use strict";var r=n(51982);t._j=function(e,t){if(e=s(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return l(e)},t.mi=function(e,t){let n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.$n=function(e,t){if(e=s(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return l(e)};var i=r(n(53585)),o=r(n(543));function a(e,t=0,n=1){return(0,o.default)(e,t,n)}function s(e){let t;if(e.type)return e;if("#"===e.charAt(0))return s(function(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));let n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw Error((0,i.default)(9,e));let o=e.substring(n+1,e.length-1);if("color"===r){if(t=(o=o.split(" ")).shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(t))throw Error((0,i.default)(10,t))}else o=o.split(",");return{type:r,values:o=o.map(e=>parseFloat(e)),colorSpace:t}}function l(e){let{type:t,colorSpace:n}=e,{values:r}=e;return -1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function u(e){let t="hsl"===(e=s(e)).type||"hsla"===e.type?s(function(e){let{values:t}=e=s(e),n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1),u="rgb",c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),l({type:u,values:c})}(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}},543:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var r=function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}},20139:function(e,t,n){"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{Z:function(){return r}})},53585:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.Z}});var r=n(20139)},93790:function(e,t,n){"use strict";let r,i,o,a,s;n.d(t,{SV:function(){return tC}});let l=Object.prototype.toString;function u(e){switch(l.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return b(e,Error)}}function c(e,t){return l.call(e)===`[object ${t}]`}function d(e){return c(e,"ErrorEvent")}function f(e){return c(e,"DOMError")}function h(e){return c(e,"String")}function p(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function m(e){return null===e||p(e)||"object"!=typeof e&&"function"!=typeof e}function g(e){return c(e,"Object")}function v(e){return"undefined"!=typeof Event&&b(e,Event)}function y(e){return!!(e&&e.then&&"function"==typeof e.then)}function b(e,t){try{return e instanceof t}catch(e){return!1}}function x(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}function w(e){return e&&e.Math==Math?e:void 0}let k="object"==typeof globalThis&&w(globalThis)||"object"==typeof window&&w(window)||"object"==typeof self&&w(self)||"object"==typeof n.g&&w(n.g)||function(){return this}()||{};function S(e,t,n){let r=n||k,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}function E(){let e=k.crypto||k.msCrypto,t=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(t=()=>{let t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(e){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&t())>>e/4).toString(16))}function _(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function C(e){let{message:t,event_id:n}=e;if(t)return t;let r=_(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function O(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function T(e,t){let n=_(e);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...r&&r.data,...t.data};n.mechanism.data=e}}function A(){return Date.now()/1e3}let P=function(){let{performance:e}=k;if(!e||!e.now)return A;let t=Date.now()-e.now(),n=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();(()=>{let{performance:e}=k;if(!e||!e.now)return;let t=e.now(),n=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,i=e.timing&&e.timing.navigationStart,o="number"==typeof i?Math.abs(i+t-n):36e5;if(r<36e5||o<36e5)return r<=o?e.timeOrigin:void 0})();let I="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,R=["debug","info","warn","error","log","assert","trace"],j={};function M(e){if(!("console"in k))return e();let t=k.console,n={},r=Object.keys(j);r.forEach(e=>{let r=j[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}let N=function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return I?R.forEach(n=>{t[n]=(...t)=>{e&&M(()=>{k.console[n](`Sentry Logger [${n}]:`,...t)})}}):R.forEach(e=>{t[e]=()=>void 0}),t}(),D="production",L="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;(tw=tk||(tk={}))[tw.PENDING=0]="PENDING",tw[tw.RESOLVED=1]="RESOLVED",tw[tw.REJECTED=2]="REJECTED";class z{constructor(e){z.prototype.__init.call(this),z.prototype.__init2.call(this),z.prototype.__init3.call(this),z.prototype.__init4.call(this),this._state=tk.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new z((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new z((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{if(i){n(r);return}t(r)})})}__init(){this._resolve=e=>{this._setResult(tk.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(tk.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===tk.PENDING){if(y(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===tk.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===tk.RESOLVED&&e[1](this._value),this._state===tk.REJECTED&&e[2](this._value),e[0]=!0)})}}}function F(e,t={}){if(!e)return"<unknown>";try{let n,r=e,i=[],o=0,a=0,s=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||80;for(;r&&o++<5&&(n=function(e,t){let n,r,i,o,a;let s=[];if(!e||!e.tagName)return"";if(k.HTMLElement&&e instanceof HTMLElement&&e.dataset&&e.dataset.sentryComponent)return e.dataset.sentryComponent;s.push(e.tagName.toLowerCase());let l=t&&t.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(l&&l.length)l.forEach(e=>{s.push(`[${e[0]}="${e[1]}"]`)});else if(e.id&&s.push(`#${e.id}`),(n=e.className)&&h(n))for(a=0,r=n.split(/\s+/);a<r.length;a++)s.push(`.${r[a]}`);let u=["aria-label","type","name","title","alt"];for(a=0;a<u.length;a++)i=u[a],(o=e.getAttribute(i))&&s.push(`[${i}="${o}"]`);return s.join("")}(r,s),"html"!==n&&(!(o>1)||!(a+3*i.length+n.length>=l)));)i.push(n),a+=n.length,r=r.parentNode;return i.reverse().join(" > ")}catch(e){return"<unknown>"}}function B(e,t=0){return"string"!=typeof e||0===t?e:e.length<=t?e:`${e.slice(0,t)}...`}function $(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t<e.length;t++){let r=e[t];try{x(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function V(e,t=[],n=!1){return t.some(t=>(function(e,t,n=!1){return!!h(e)&&(c(t,"RegExp")?t.test(e):!!h(t)&&(n?e===t:e.includes(t)))})(e,t,n))}function U(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);"function"==typeof i&&q(i,r),e[t]=i}function W(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){I&&N.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function q(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,W(e,"__sentry_original__",t)}catch(e){}}function H(e){return e.__sentry_original__}function Z(e){if(u(e))return{message:e.message,name:e.name,stack:e.stack,...K(e)};if(!v(e))return e;{let t={type:e.type,target:G(e.target),currentTarget:G(e.currentTarget),...K(e)};return"undefined"!=typeof CustomEvent&&b(e,CustomEvent)&&(t.detail=e.detail),t}}function G(e){try{return"undefined"!=typeof Element&&b(e,Element)?F(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function K(e){if("object"!=typeof e||null===e)return{};{let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}function Y(e){return function e(t,n){if(function(e){if(!g(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(t)){let r=n.get(t);if(void 0!==r)return r;let i={};for(let r of(n.set(t,i),Object.keys(t)))void 0!==t[r]&&(i[r]=e(t[r],n));return i}if(Array.isArray(t)){let r=n.get(t);if(void 0!==r)return r;let i=[];return n.set(t,i),t.forEach(t=>{i.push(e(t,n))}),i}return t}(e,new Map)}function X(e,t={}){if(!t.user||(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||P(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:E()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function J(e){return e.transaction}function Q(e){return"function"==typeof e.getSpanJSON?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}class ee{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=et()}static clone(e){return e?e.clone():new ee}clone(){let e=new ee;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&X(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e;if(t instanceof ee){let e=t.getScopeData();this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&Object.keys(e.user).length&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint.length&&(this._fingerprint=e.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),e.propagationContext&&(this._propagationContext=e.propagationContext)}else g(t)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext));return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=et(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:A(),...e},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){let{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:r,_extra:i,_user:o,_level:a,_fingerprint:s,_eventProcessors:l,_propagationContext:u,_sdkProcessingMetadata:c,_transactionName:d,_span:f}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:r,extra:i,user:o,level:a,fingerprint:s||[],eventProcessors:l,propagationContext:u,sdkProcessingMetadata:c,transactionName:d,span:f}}applyToEvent(e,t={},n=[]){return!function(e,t){var n;let{fingerprint:r,span:i,breadcrumbs:o,sdkProcessingMetadata:a}=t;(function(e,t){let{extra:n,tags:r,user:i,contexts:o,level:a,transactionName:s}=t,l=Y(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});let u=Y(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});let c=Y(i);c&&Object.keys(c).length&&(e.user={...c,...e.user});let d=Y(o);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),a&&(e.level=a),s&&(e.transaction=s)})(e,t),i&&function(e,t){e.contexts={trace:function(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:o,status:a,tags:s,origin:l}=Q(e);return Y({data:r,op:i,parent_span_id:o,span_id:t,status:a,tags:s,trace_id:n,origin:l})}(t),...e.contexts};let n=J(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:function(e){let t=ep();if(!t)return{};let n=function(e,t,n){let r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:o}=n&&n.getUser()||{},a=Y({environment:r.environment||D,release:r.release,user_segment:o,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",a),a}(Q(e).trace_id||"",t,ea().getScope()),r=J(e);if(!r)return n;let i=r&&r._frozenDynamicSamplingContext;if(i)return i;let{sampleRate:o,source:a}=r.metadata;null!=o&&(n.sample_rate=`${o}`);let s=Q(r);return a&&"url"!==a&&(n.transaction=s.description),n.sampled=String(function(e){let{traceFlags:t}=e.spanContext();return!!(1&t)}(r)),t.emit&&t.emit("createDsc",n),n}(t),...e.sdkProcessingMetadata};let r=Q(n).description;r&&(e.tags={transaction:r,...e.tags})}}(e,i),e.fingerprint=e.fingerprint?Array.isArray(n=e.fingerprint)?n:[n]:[],r&&(e.fingerprint=e.fingerprint.concat(r)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint,function(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...a}}(e,this.getScopeData()),function e(t,n,r,i=0){return new z((o,a)=>{let s=t[i];if(null===n||"function"!=typeof s)o(n);else{let l=s({...n},r);L&&s.id&&null===l&&N.log(`Event processor "${s.id}" dropped event`),y(l)?l.then(n=>e(t,n,r,i+1).then(o)).then(null,a):e(t,l,r,i+1).then(o).then(null,a)}})}([...n,...S("globalEventProcessors",()=>[]),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t&&t.event_id?t.event_id:E();if(!this._client)return N.warn("No client configured on scope - will not capture exception!"),n;let r=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n&&n.event_id?n.event_id:E();if(!this._client)return N.warn("No client configured on scope - will not capture message!"),r;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:E();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):N.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function et(){return{traceId:E(),spanId:E().substring(16)}}let en=parseFloat("7.120.3");class er{constructor(e,t,n,r=en){let i,o;this._version=r,t?i=t:(i=new ee).setClient(e),n?o=n:(o=new ee).setClient(e),this._stack=[{scope:i}],e&&this.bindClient(e),this._isolationScope=o}isOlderThan(e){return this._version<e}bindClient(e){let t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){let e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){let t;let n=this.pushScope();try{t=e(n)}catch(e){throw this.popScope(),e}return y(t)?t.then(e=>(this.popScope(),e),e=>{throw this.popScope(),e}):(this.popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){let n=this._lastEventId=t&&t.event_id?t.event_id:E(),r=Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:r,...t,event_id:n}),n}captureMessage(e,t,n){let r=this._lastEventId=n&&n.event_id?n.event_id:E(),i=Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r}),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:E();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){let{scope:n,client:r}=this.getStackTop();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=100}=r.getOptions&&r.getOptions()||{};if(o<=0)return;let a={timestamp:A(),...e},s=i?M(()=>i(a,t)):a;null!==s&&(r.emit&&r.emit("beforeAddBreadcrumb",s,t),n.addBreadcrumb(s,o))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){let{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){let t=eo(this);try{e(this)}finally{eo(t)}}getIntegration(e){let t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return L&&N.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){let n=this._callExtensionMethod("startTransaction",e,t);return L&&!n&&(this.getClient()?N.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831],{51610:function(e,t,n){"use strict";n.d(t,{S1:function(){return rc},j:function(){return rd}});var r,i,o,a,s,l,u,c,d,f,h,p,m,g,v,y,b,x=n(95379);(r=d||(d={}))[r.None=0]="None",r[r.Error=1]="Error",r[r.Warn=2]="Warn",r[r.Verbose=3]="Verbose",r[r.Debug=4]="Debug";var w=function(e){return function(){var t=(0,x.pi)({},e.config);return{logger:t.loggerProvider,logLevel:t.logLevel}}},k=function(e,t){var n,r;t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"");try{for(var i=(0,x.XA)(t.split(".")),o=i.next();!o.done;o=i.next()){var a=o.value;if(!(a in e))return;e=e[a]}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return e},S=function(e,t){return function(){var n,r,i={};try{for(var o=(0,x.XA)(t),a=o.next();!a.done;a=o.next()){var s=a.value;i[s]=k(e,s)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}},E=function(e,t,n,r,i){return void 0===i&&(i=null),function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var s=n(),l=s.logger,u=s.logLevel;if(u&&u<d.Debug||!u||!l)return e.apply(i,o);var c={type:"invoke public method",name:t,args:o,stacktrace:(Error().stack||"").split("\n").slice(3).map(function(e){return e.trim()}),time:{start:new Date().toISOString()},states:{}};r&&c.states&&(c.states.before=r());var f=e.apply(i,o);return f&&f.promise?f.promise.then(function(){r&&c.states&&(c.states.after=r()),c.time&&(c.time.end=new Date().toISOString()),l.debug(JSON.stringify(c,null,2))}):(r&&c.states&&(c.states.after=r()),c.time&&(c.time.end=new Date().toISOString()),l.debug(JSON.stringify(c,null,2))),f}},_=function(e){return{promise:e||Promise.resolve()}};(i=f||(f={})).Unknown="unknown",i.Skipped="skipped",i.Success="success",i.RateLimit="rate_limit",i.PayloadTooLarge="payload_too_large",i.Invalid="invalid",i.Failed="failed",i.Timeout="Timeout",i.SystemError="SystemError";var C="".concat("AMP","_unsent"),O="https://api2.amplitude.com/2/httpapi",T=function(e,t){var n=Math.max(t,1);return e.reduce(function(e,t,r){var i=Math.floor(r/n);return e[i]||(e[i]=[]),e[i].push(t),e},[])},A=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=f.Unknown),{event:e,code:t,message:n}},P="Amplitude Logger ",I=function(){function e(){this.logLevel=d.None}return e.prototype.disable=function(){this.logLevel=d.None},e.prototype.enable=function(e){void 0===e&&(e=d.Warn),this.logLevel=e},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<d.Verbose||console.log("".concat(P,"[Log]: ").concat(e.join(" ")))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<d.Warn||console.warn("".concat(P,"[Warn]: ").concat(e.join(" ")))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<d.Error||console.error("".concat(P,"[Error]: ").concat(e.join(" ")))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<d.Debug||console.log("".concat(P,"[Debug]: ").concat(e.join(" ")))},e}(),R=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,instanceName:"$default_instance",logLevel:d.Warn,loggerProvider:new I,offline:!1,optOut:!1,serverUrl:O,serverZone:"US",useBatch:!1}},j=function(){function e(e){this._optOut=!1;var t,n,r,i,o=R();this.apiKey=e.apiKey,this.flushIntervalMillis=null!==(t=e.flushIntervalMillis)&&void 0!==t?t:o.flushIntervalMillis,this.flushMaxRetries=e.flushMaxRetries||o.flushMaxRetries,this.flushQueueSize=e.flushQueueSize||o.flushQueueSize,this.instanceName=e.instanceName||o.instanceName,this.loggerProvider=e.loggerProvider||o.loggerProvider,this.logLevel=null!==(n=e.logLevel)&&void 0!==n?n:o.logLevel,this.minIdLength=e.minIdLength,this.plan=e.plan,this.ingestionMetadata=e.ingestionMetadata,this.offline=void 0!==e.offline?e.offline:o.offline,this.optOut=null!==(r=e.optOut)&&void 0!==r?r:o.optOut,this.serverUrl=e.serverUrl,this.serverZone=e.serverZone||o.serverZone,this.storageProvider=e.storageProvider,this.transportProvider=e.transportProvider,this.useBatch=null!==(i=e.useBatch)&&void 0!==i?i:o.useBatch,this.loggerProvider.enable(this.logLevel);var a=M(e.serverUrl,e.serverZone,e.useBatch);this.serverZone=a.serverZone,this.serverUrl=a.serverUrl}return Object.defineProperty(e.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut=e},enumerable:!1,configurable:!0}),e}(),M=function(e,t,n){if(void 0===e&&(e=""),void 0===t&&(t=R().serverZone),void 0===n&&(n=R().useBatch),e)return{serverUrl:e,serverZone:void 0};var r,i=["US","EU"].includes(t)?t:R().serverZone;return{serverZone:i,serverUrl:(r=n,"EU"===i?r?"https://api.eu.amplitude.com/batch":"https://api.eu.amplitude.com/2/httpapi":r?"https://api2.amplitude.com/batch":O)}},N=function(){function e(){this.sdk={metrics:{histogram:{}}}}return e.prototype.recordHistogram=function(e,t){this.sdk.metrics.histogram[e]=t},e}(),D=function(e){return e?(e^16*Math.random()>>e/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,D)};function L(e){var t="";try{"body"in e&&(t=JSON.stringify(e.body,null,2))}catch(e){}return t}var z=function(){function e(){this.name="amplitude",this.type="destination",this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduleId=null,this.scheduledTimeout=0,this.flushId=null,this.queue=[]}return e.prototype.setup=function(e){var t;return(0,x.mG)(this,void 0,void 0,function(){var n,r=this;return(0,x.Jh)(this,function(i){switch(i.label){case 0:return this.config=e,this.storageKey="".concat(C,"_").concat(this.config.apiKey.substring(0,10)),[4,null===(t=this.config.storageProvider)||void 0===t?void 0:t.get(this.storageKey)];case 1:return(n=i.sent())&&n.length>0&&Promise.all(n.map(function(e){return r.execute(e)})).catch(),[2,Promise.resolve(void 0)]}})})},e.prototype.execute=function(e){var t=this;return e.insert_id||(e.insert_id=D()),new Promise(function(n){t.queue.push({event:e,attempts:0,callback:function(e){return n(e)},timeout:0}),t.schedule(t.config.flushIntervalMillis),t.saveEvents()})},e.prototype.removeEventsExceedFlushMaxRetries=function(e){var t=this;return e.filter(function(e){return e.attempts+=1,e.attempts<t.config.flushMaxRetries||(t.fulfillRequest([e],500,"Event rejected due to exceeded retry count"),!1)})},e.prototype.scheduleEvents=function(e){var t=this;e.forEach(function(e){t.schedule(0===e.timeout?t.config.flushIntervalMillis:e.timeout)})},e.prototype.schedule=function(e){var t=this;if(!this.config.offline&&(null===this.scheduleId||this.scheduleId&&e>this.scheduledTimeout)){this.scheduleId&&clearTimeout(this.scheduleId),this.scheduledTimeout=e,this.scheduleId=setTimeout(function(){t.queue=t.queue.map(function(e){return e.timeout=0,e}),t.flush(!0)},e);return}},e.prototype.resetSchedule=function(){this.scheduleId=null,this.scheduledTimeout=0},e.prototype.flush=function(e){return void 0===e&&(e=!1),(0,x.mG)(this,void 0,void 0,function(){var t,n,r=this;return(0,x.Jh)(this,function(i){switch(i.label){case 0:if(this.config.offline)return this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush while offline."),[2];if(this.flushId)return this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush because previous flush has not resolved."),[2];return this.flushId=this.scheduleId,this.resetSchedule(),t=[],n=[],this.queue.forEach(function(e){return 0===e.timeout?t.push(e):n.push(e)}),[4,T(t,this.config.flushQueueSize).reduce(function(t,n){return(0,x.mG)(r,void 0,void 0,function(){return(0,x.Jh)(this,function(r){switch(r.label){case 0:return[4,t];case 1:return r.sent(),[4,this.send(n,e)];case 2:return[2,r.sent()]}})})},Promise.resolve())];case 1:return i.sent(),this.flushId=null,this.scheduleEvents(this.queue),[2]}})})},e.prototype.send=function(e,t){return void 0===t&&(t=!0),(0,x.mG)(this,void 0,void 0,function(){var n,r,i,o;return(0,x.Jh)(this,function(a){switch(a.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(e,400,"Event rejected due to missing API key")];n={api_key:this.config.apiKey,events:e.map(function(e){var t=e.event;return t.extra,(0,x._T)(t,["extra"])}),options:{min_id_length:this.config.minIdLength},client_upload_time:new Date().toISOString(),request_metadata:this.config.requestMetadata},this.config.requestMetadata=new N,a.label=1;case 1:return a.trys.push([1,3,,4]),r=M(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(r,n)];case 2:if(null===(i=a.sent()))return this.fulfillRequest(e,0,"Unexpected error occurred"),[2];if(!t)return"body"in i?this.fulfillRequest(e,i.statusCode,"".concat(i.status,": ").concat(L(i))):this.fulfillRequest(e,i.statusCode,i.status),[2];return this.handleResponse(i,e),[3,4];case 3:var s;return o=(s=a.sent())instanceof Error?s.message:String(s),this.config.loggerProvider.error(o),this.handleResponse({status:f.Failed,statusCode:0},e),[3,4];case 4:return[2]}})})},e.prototype.handleResponse=function(e,t){var n=e.status;switch(n){case f.Success:this.handleSuccessResponse(e,t);break;case f.Invalid:this.handleInvalidResponse(e,t);break;case f.PayloadTooLarge:this.handlePayloadTooLargeResponse(e,t);break;case f.RateLimit:this.handleRateLimitResponse(e,t);break;default:this.config.loggerProvider.warn("{code: 0, error: \"Status '".concat(n,"' provided for ").concat(t.length,' events"}')),this.handleOtherResponse(t)}},e.prototype.handleSuccessResponse=function(e,t){this.fulfillRequest(t,e.statusCode,"Event tracked successfully")},e.prototype.handleInvalidResponse=function(e,t){var n=this;if(e.body.missingField||e.body.error.startsWith("Invalid API key")){this.fulfillRequest(t,e.statusCode,e.body.error);return}var r=new Set((0,x.ev)((0,x.ev)((0,x.ev)((0,x.ev)([],(0,x.CR)(Object.values(e.body.eventsWithInvalidFields)),!1),(0,x.CR)(Object.values(e.body.eventsWithMissingFields)),!1),(0,x.CR)(Object.values(e.body.eventsWithInvalidIdLengths)),!1),(0,x.CR)(e.body.silencedEvents),!1).flat()),i=t.filter(function(t,i){if(r.has(i)){n.fulfillRequest([t],e.statusCode,e.body.error);return}return!0});i.length>0&&this.config.loggerProvider.warn(L(e));var o=this.removeEventsExceedFlushMaxRetries(i);this.scheduleEvents(o)},e.prototype.handlePayloadTooLargeResponse=function(e,t){if(1===t.length){this.fulfillRequest(t,e.statusCode,e.body.error);return}this.config.loggerProvider.warn(L(e)),this.config.flushQueueSize/=2;var n=this.removeEventsExceedFlushMaxRetries(t);this.scheduleEvents(n)},e.prototype.handleRateLimitResponse=function(e,t){var n=this,r=Object.keys(e.body.exceededDailyQuotaUsers),i=Object.keys(e.body.exceededDailyQuotaDevices),o=e.body.throttledEvents,a=new Set(r),s=new Set(i),l=new Set(o),u=t.filter(function(t,r){if(t.event.user_id&&a.has(t.event.user_id)||t.event.device_id&&s.has(t.event.device_id)){n.fulfillRequest([t],e.statusCode,e.body.error);return}return l.has(r)&&(t.timeout=n.throttleTimeout),!0});u.length>0&&this.config.loggerProvider.warn(L(e));var c=this.removeEventsExceedFlushMaxRetries(u);this.scheduleEvents(c)},e.prototype.handleOtherResponse=function(e){var t=this,n=e.map(function(e){return e.timeout=e.attempts*t.retryTimeout,e}),r=this.removeEventsExceedFlushMaxRetries(n);this.scheduleEvents(r)},e.prototype.fulfillRequest=function(e,t,n){this.removeEvents(e),e.forEach(function(e){return e.callback(A(e.event,t,n))})},e.prototype.saveEvents=function(){if(this.config.storageProvider){var e=this.queue.map(function(e){return e.event});this.config.storageProvider.set(this.storageKey,e)}},e.prototype.removeEvents=function(e){this.queue=this.queue.filter(function(t){return!e.some(function(e){return e.event.insert_id===t.event.insert_id})}),this.saveEvents()},e}();(o=h||(h={})).SET="$set",o.SET_ONCE="$setOnce",o.ADD="$add",o.APPEND="$append",o.PREPEND="$prepend",o.REMOVE="$remove",o.PREINSERT="$preInsert",o.POSTINSERT="$postInsert",o.UNSET="$unset",o.CLEAR_ALL="$clearAll",(a=p||(p={})).REVENUE_PRODUCT_ID="$productId",a.REVENUE_QUANTITY="$quantity",a.REVENUE_PRICE="$price",a.REVENUE_TYPE="$revenueType",a.REVENUE_CURRENCY="$currency",a.REVENUE="$revenue",(s=m||(m={})).IDENTIFY="$identify",s.GROUP_IDENTIFY="$groupidentify",s.REVENUE="revenue_amount";var F=function(e){if(Object.keys(e).length>1e3)return!1;for(var t in e){var n=e[t];if(!B(t,n))return!1}return!0},B=function(e,t){var n,r;if("string"!=typeof e)return!1;if(Array.isArray(t)){var i=!0;try{for(var o=(0,x.XA)(t),a=o.next();!a.done;a=o.next()){var s=a.value;if(Array.isArray(s))return!1;if("object"==typeof s)i=i&&F(s);else if(!["number","string"].includes(typeof s))return!1;if(!i)return!1}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}else if(null==t)return!1;else if("object"==typeof t)return F(t);else if(!["number","string","boolean"].includes(typeof t))return!1;return!0},$=function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return(0,x.pi)({},this._properties)},e.prototype.set=function(e,t){return this._safeSet(h.SET,e,t),this},e.prototype.setOnce=function(e,t){return this._safeSet(h.SET_ONCE,e,t),this},e.prototype.append=function(e,t){return this._safeSet(h.APPEND,e,t),this},e.prototype.prepend=function(e,t){return this._safeSet(h.PREPEND,e,t),this},e.prototype.postInsert=function(e,t){return this._safeSet(h.POSTINSERT,e,t),this},e.prototype.preInsert=function(e,t){return this._safeSet(h.PREINSERT,e,t),this},e.prototype.remove=function(e,t){return this._safeSet(h.REMOVE,e,t),this},e.prototype.add=function(e,t){return this._safeSet(h.ADD,e,t),this},e.prototype.unset=function(e){return this._safeSet(h.UNSET,e,"-"),this},e.prototype.clearAll=function(){return this._properties={},this._properties[h.CLEAR_ALL]="-",this},e.prototype._safeSet=function(e,t,n){if(this._validate(e,t,n)){var r=this._properties[e];return void 0===r&&(r={},this._properties[e]=r),r[t]=n,this._propertySet.add(t),!0}return!1},e.prototype._validate=function(e,t,n){return!(void 0!==this._properties[h.CLEAR_ALL]||this._propertySet.has(t))&&(e===h.ADD?"number"==typeof n:e===h.UNSET||e===h.REMOVE||B(t,n))},e}(),V=function(){function e(){this.productId="",this.quantity=1,this.price=0}return e.prototype.setProductId=function(e){return this.productId=e,this},e.prototype.setQuantity=function(e){return e>0&&(this.quantity=e),this},e.prototype.setPrice=function(e){return this.price=e,this},e.prototype.setRevenueType=function(e){return this.revenueType=e,this},e.prototype.setCurrency=function(e){return this.currency=e,this},e.prototype.setRevenue=function(e){return this.revenue=e,this},e.prototype.setEventProperties=function(e){return F(e)&&(this.properties=e),this},e.prototype.getEventProperties=function(){var e=this.properties?(0,x.pi)({},this.properties):{};return e[p.REVENUE_PRODUCT_ID]=this.productId,e[p.REVENUE_QUANTITY]=this.quantity,e[p.REVENUE_PRICE]=this.price,e[p.REVENUE_TYPE]=this.revenueType,e[p.REVENUE_CURRENCY]=this.currency,e[p.REVENUE]=this.revenue,e},e}(),U=function(){function e(e){this.client=e,this.queue=[],this.applying=!1,this.plugins=[]}return e.prototype.register=function(e,t){var n,r;return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(i){switch(i.label){case 0:if(this.plugins.some(function(t){return t.name===e.name}))return t.loggerProvider.warn("Plugin with name ".concat(e.name," already exists, skipping registration")),[2];return void 0===e.name&&(e.name=D(),t.loggerProvider.warn("Plugin name is undefined. \n Generating a random UUID for plugin name: ".concat(e.name,". \n Set a name for the plugin to prevent it from being added multiple times."))),e.type=null!==(n=e.type)&&void 0!==n?n:"enrichment",[4,null===(r=e.setup)||void 0===r?void 0:r.call(e,t,this.client)];case 1:return i.sent(),this.plugins.push(e),[2]}})})},e.prototype.deregister=function(e,t){var n;return(0,x.mG)(this,void 0,void 0,function(){var r,i;return(0,x.Jh)(this,function(o){switch(o.label){case 0:if(-1===(r=this.plugins.findIndex(function(t){return t.name===e})))return t.loggerProvider.warn("Plugin with name ".concat(e," does not exist, skipping deregistration")),[2];return i=this.plugins[r],this.plugins.splice(r,1),[4,null===(n=i.teardown)||void 0===n?void 0:n.call(i)];case 1:return o.sent(),[2]}})})},e.prototype.reset=function(e){this.applying=!1,this.plugins.map(function(e){var t;return null===(t=e.teardown)||void 0===t?void 0:t.call(e)}),this.plugins=[],this.client=e},e.prototype.push=function(e){var t=this;return new Promise(function(n){t.queue.push([e,n]),t.scheduleApply(0)})},e.prototype.scheduleApply=function(e){var t=this;this.applying||(this.applying=!0,setTimeout(function(){t.apply(t.queue.shift()).then(function(){t.applying=!1,t.queue.length>0&&t.scheduleApply(0)})},e))},e.prototype.apply=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t,n,r,i,o,a,s,l,u,c,d,f,h,p;return(0,x.Jh)(this,function(m){switch(m.label){case 0:if(!e)return[2];t=(0,x.CR)(e,1)[0],n=(0,x.CR)(e,2)[1],r=this.plugins.filter(function(e){return"before"===e.type}),m.label=1;case 1:m.trys.push([1,6,7,8]),o=(i=(0,x.XA)(r)).next(),m.label=2;case 2:if(o.done)return[3,5];if(!(a=o.value).execute)return[3,4];return[4,a.execute((0,x.pi)({},t))];case 3:if(null===(s=m.sent()))return n({event:t,code:0,message:""}),[2];t=s,m.label=4;case 4:return o=i.next(),[3,2];case 5:return[3,8];case 6:return d={error:m.sent()},[3,8];case 7:try{o&&!o.done&&(f=i.return)&&f.call(i)}finally{if(d)throw d.error}return[7];case 8:l=this.plugins.filter(function(e){return"enrichment"===e.type||void 0===e.type}),m.label=9;case 9:m.trys.push([9,14,15,16]),c=(u=(0,x.XA)(l)).next(),m.label=10;case 10:if(c.done)return[3,13];if(!(a=c.value).execute)return[3,12];return[4,a.execute((0,x.pi)({},t))];case 11:if(null===(s=m.sent()))return n({event:t,code:0,message:""}),[2];t=s,m.label=12;case 12:return c=u.next(),[3,10];case 13:return[3,16];case 14:return h={error:m.sent()},[3,16];case 15:try{c&&!c.done&&(p=u.return)&&p.call(u)}finally{if(h)throw h.error}return[7];case 16:return Promise.all(this.plugins.filter(function(e){return"destination"===e.type}).map(function(e){var n=(0,x.pi)({},t);return e.execute(n).catch(function(e){return A(n,0,String(e))})})).then(function(e){var r=(0,x.CR)(e,1)[0]||A(t,100,"Event not tracked, no destination plugins on the instance");n(r)}),[2]}})})},e.prototype.flush=function(){return(0,x.mG)(this,void 0,void 0,function(){var e,t=this;return(0,x.Jh)(this,function(n){switch(n.label){case 0:return e=this.queue,this.queue=[],[4,Promise.all(e.map(function(e){return t.apply(e)}))];case 1:return n.sent(),[4,Promise.all(this.plugins.filter(function(e){return"destination"===e.type}).map(function(e){return e.flush&&e.flush()}))];case 2:return n.sent(),[2]}})})},e}(),W=function(e,t){return(0,x.pi)((0,x.pi)({},t),{event_type:m.IDENTIFY,user_properties:e.getUserProperties()})},q=function(e,t,n,r){var i;return(0,x.pi)((0,x.pi)({},r),{event_type:m.GROUP_IDENTIFY,group_properties:n.getUserProperties(),groups:((i={})[e]=t,i)})},H=function(e,t,n){var r,i=new $;return i.set(e,t),(0,x.pi)((0,x.pi)({},n),{event_type:m.IDENTIFY,user_properties:i.getUserProperties(),groups:((r={})[e]=t,r)})},Z=function(){function e(e){void 0===e&&(e="$default"),this.initializing=!1,this.isReady=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new U(this),this.name=e}return e.prototype._init=function(e){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(t){switch(t.label){case 0:return this.config=e,this.timeline.reset(this),[4,this.runQueuedFunctions("q")];case 1:return t.sent(),this.isReady=!0,[2]}})})},e.prototype.runQueuedFunctions=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t,n,r,i,o,a;return(0,x.Jh)(this,function(s){switch(s.label){case 0:t=this[e],this[e]=[],s.label=1;case 1:s.trys.push([1,8,9,10]),r=(n=(0,x.XA)(t)).next(),s.label=2;case 2:if(r.done)return[3,7];if(!((i=(0,r.value)())&&"promise"in i))return[3,4];return[4,i.promise];case 3:return s.sent(),[3,6];case 4:return[4,i];case 5:s.sent(),s.label=6;case 6:return r=n.next(),[3,2];case 7:return[3,10];case 8:return o={error:s.sent()},[3,10];case 9:try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(o)throw o.error}return[7];case 10:if(!this[e].length)return[3,12];return[4,this.runQueuedFunctions(e)];case 11:s.sent(),s.label=12;case 12:return[2]}})})},e.prototype.track=function(e,t,n){var r=(0,x.pi)((0,x.pi)((0,x.pi)({},"string"==typeof e?{event_type:e}:e),n),t&&{event_properties:t});return _(this.dispatch(r))},e.prototype.identify=function(e,t){var n=W(e,t);return _(this.dispatch(n))},e.prototype.groupIdentify=function(e,t,n,r){var i=q(e,t,n,r);return _(this.dispatch(i))},e.prototype.setGroup=function(e,t,n){var r=H(e,t,n);return _(this.dispatch(r))},e.prototype.revenue=function(e,t){var n=(0,x.pi)((0,x.pi)({},t),{event_type:m.REVENUE,event_properties:e.getEventProperties()});return _(this.dispatch(n))},e.prototype.add=function(e){return this.isReady?this._addPlugin(e):(this.q.push(this._addPlugin.bind(this,e)),_())},e.prototype._addPlugin=function(e){return _(this.timeline.register(e,this.config))},e.prototype.remove=function(e){return this.isReady?this._removePlugin(e):(this.q.push(this._removePlugin.bind(this,e)),_())},e.prototype._removePlugin=function(e){return _(this.timeline.deregister(e,this.config))},e.prototype.dispatchWithCallback=function(e,t){if(!this.isReady)return t(A(e,0,"Client not initialized"));this.process(e).then(t)},e.prototype.dispatch=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t=this;return(0,x.Jh)(this,function(n){return this.isReady?[2,this.process(e)]:[2,new Promise(function(n){t.dispatchQ.push(t.dispatchWithCallback.bind(t,e,n))})]})})},e.prototype.process=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t,n;return(0,x.Jh)(this,function(r){switch(r.label){case 0:if(r.trys.push([0,2,,3]),this.config.optOut)return[2,A(e,0,"Event skipped due to optOut config")];return[4,this.timeline.push(e)];case 1:return 200===(t=r.sent()).code?this.config.loggerProvider.log(t.message):100===t.code?this.config.loggerProvider.warn(t.message):this.config.loggerProvider.error(t.message),[2,t];case 2:return n=String(r.sent()),this.config.loggerProvider.error(n),[2,t=A(e,0,n)];case 3:return[2]}})})},e.prototype.setOptOut=function(e){if(!this.isReady){this.q.push(this._setOptOut.bind(this,!!e));return}this._setOptOut(e)},e.prototype._setOptOut=function(e){this.config.optOut=!!e},e.prototype.flush=function(){return _(this.timeline.flush())},e}(),G=function(e,t){return"boolean"==typeof e?e:(null==e?void 0:e[t])!==!1},K=function(e){return G(e,"attribution")},Y=function(e){return G(e,"pageViews")},X=function(e){return G(e,"sessions")},J=function(e){return"boolean"==typeof e?e:"object"==typeof e&&(!0===e.elementInteractions||"object"==typeof e.elementInteractions)},Q=function(e){if(J(e.autocapture)&&"object"==typeof e.autocapture&&"object"==typeof e.autocapture.elementInteractions)return e.autocapture.elementInteractions},ee=function(e){var t,n=function(){return!1},r=void 0,i=e.pageCounter;return Y(e.defaultTracking)&&(n=void 0,t=void 0,e.defaultTracking&&"object"==typeof e.defaultTracking&&e.defaultTracking.pageViews&&"object"==typeof e.defaultTracking.pageViews&&("trackOn"in e.defaultTracking.pageViews&&(n=e.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in e.defaultTracking.pageViews&&(r=e.defaultTracking.pageViews.trackHistoryChanges),"eventType"in e.defaultTracking.pageViews&&e.defaultTracking.pageViews.eventType&&(t=e.defaultTracking.pageViews.eventType))),{trackOn:n,trackHistoryChanges:r,eventType:t,pageCounter:i}},et="dclid",en="fbclid",er="gbraid",ei="gclid",eo="ko_click_id",ea="li_fat_id",es="msclkid",el="rtd_cid",eu="ttclid",ec="twclid",ed="wbraid",ef={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rtd_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},eh=function(e){var t=e.split(".");return t.length<=2?e:t.slice(t.length-2,t.length).join(".")},ep=function(e,t,n,r,i){void 0===i&&(i=!0),e.referrer;var o=e.referring_domain,a=(0,x._T)(e,["referrer","referring_domain"]),s=t||{},l=(s.referrer,s.referring_domain),u=(0,x._T)(s,["referrer","referring_domain"]);if(em(n.excludeReferrers,e.referring_domain))return r.debug("This is not a new campaign because ".concat(e.referring_domain," is in the exclude referrer list.")),!1;if(!i&&Object.values(e).every(function(e){return!e})&&t)return r.debug("This is not a new campaign because this is a direct traffic in the same session."),!1;var c=JSON.stringify(a)!==JSON.stringify(u),d=eh(o||"")!==eh(l||""),f=!t||c||d;return f?r.debug("This is a new campaign. An $identify event will be sent."):r.debug("This is not a new campaign because it's the same as the previous one."),f},em=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=""),e.some(function(e){return e instanceof RegExp?e.test(t):e===t})},eg=function(e){var t=e;return t?(t.startsWith(".")&&(t=t.substring(1)),[new RegExp("".concat(t.replace(".","\\."),"$"))]):[]},ev=function(){var e="ampIntegrationContext";return"undefined"!=typeof globalThis&&void 0!==globalThis[e]?globalThis[e]:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==n.g?n.g:void 0},ey=function(){var e,t=ev();return(null===(e=null==t?void 0:t.location)||void 0===e?void 0:e.search)?t.location.search.substring(1).split("&").filter(Boolean).reduce(function(e,t){var n=t.split("=",2),r=eb(n[0]),i=eb(n[1]);return i&&(e[r]=i),e},{}):{}},eb=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(e){return""}},ex=function(){function e(){}return e.prototype.parse=function(){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(e){return[2,(0,x.pi)((0,x.pi)((0,x.pi)((0,x.pi)({},ef),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var e=ey();return{utm_campaign:e.utm_campaign,utm_content:e.utm_content,utm_id:e.utm_id,utm_medium:e.utm_medium,utm_source:e.utm_source,utm_term:e.utm_term}},e.prototype.getReferrer=function(){var e,t,n={referrer:void 0,referring_domain:void 0};try{n.referrer=document.referrer||void 0,n.referring_domain=null!==(t=null===(e=n.referrer)||void 0===e?void 0:e.split("/")[2])&&void 0!==t?t:void 0}catch(e){}return n},e.prototype.getClickIds=function(){var e,t=ey();return(e={})[et]=t[et],e[en]=t[en],e[er]=t[er],e[ei]=t[ei],e[eo]=t[eo],e[ea]=t[ea],e[es]=t[es],e[el]=t[el],e[eu]=t[eu],e[ec]=t[ec],e[ed]=t[ed],e},e}(),ew=function(e,t){return void 0===t&&(t=Date.now()),Date.now()-t>e},ek=function(){function e(e,t){var n,r,i;this.shouldTrackNewCampaign=!1,this.options=(0,x.pi)({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:eg(null===(n=t.cookieOptions)||void 0===n?void 0:n.domain)},e),this.storage=t.cookieStorage,this.storageKey=(r=t.apiKey,void 0===i&&(i=10),["AMP","MKTG",r.substring(0,i)].filter(Boolean).join("_")),this.currentCampaign=ef,this.sessionTimeout=t.sessionTimeout,this.lastEventTime=t.lastEventTime,this.logger=t.loggerProvider,t.loggerProvider.log("Installing web attribution tracking.")}return e.prototype.init=function(){return(0,x.mG)(this,void 0,void 0,function(){var e,t;return(0,x.Jh)(this,function(n){switch(n.label){case 0:return[4,this.fetchCampaign()];case 1:if(t=x.CR.apply(void 0,[n.sent(),2]),this.currentCampaign=t[0],this.previousCampaign=t[1],e=!this.lastEventTime||ew(this.sessionTimeout,this.lastEventTime),!ep(this.currentCampaign,this.previousCampaign,this.options,this.logger,e))return[3,3];return this.shouldTrackNewCampaign=!0,[4,this.storage.set(this.storageKey,this.currentCampaign)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.fetchCampaign=function(){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(e){switch(e.label){case 0:return[4,Promise.all([new ex().parse(),this.storage.get(this.storageKey)])];case 1:return[2,e.sent()]}})})},e.prototype.generateCampaignEvent=function(e){this.shouldTrackNewCampaign=!1;var t,n,r=(t=this.currentCampaign,n=this.options,W(Object.entries((0,x.pi)((0,x.pi)({},ef),t)).reduce(function(e,t){var r,i=(0,x.CR)(t,2),o=i[0],a=i[1];return(e.setOnce("initial_".concat(o),null!==(r=null!=a?a:n.initialEmptyValue)&&void 0!==r?r:"EMPTY"),a)?e.set(o,a):e.unset(o)},new $)));return e&&(r.event_id=e),r},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e}(),eS=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:eE(),platform:"Web",os:void 0,deviceModel:void 0}},e}(),eE=function(){return"undefined"!=typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},e_=function(){function e(){this.queue=[]}return e.prototype.logEvent=function(e){this.receiver?this.receiver(e):this.queue.length<512&&this.queue.push(e)},e.prototype.setEventReceiver=function(e){this.receiver=e,this.queue.length>0&&(this.queue.forEach(function(t){e(t)}),this.queue=[])},e}(),eC=function(){return(eC=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function eO(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function eT(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}"function"==typeof SuppressedError&&SuppressedError;var eA=function(e,t){var n,r,i=typeof e;if(i!==typeof t)return!1;try{for(var o=eO(["string","number","boolean","undefined"]),a=o.next();!a.done;a=o.next())if(a.value===i)return e===t}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.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;u<e.length;u++)if(!eA(e[u],t[u]))return!1}else{if(!eA(Object.keys(e).sort(),Object.keys(t).sort()))return!1;var c=!0;return Object.keys(e).forEach(function(n){eA(e[n],t[n])||(c=!1)}),c}return!0};Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=Array(n);n--;)r[n]=[t[n],e[t[n]]];return r});var eP=function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var e=this,t=eC({},this.identity.userProperties),n=eC(eC({},this.identity),{userProperties:t});return{setUserId:function(e){return n.userId=e,this},setDeviceId:function(e){return n.deviceId=e,this},setUserProperties:function(e){return n.userProperties=e,this},setOptOut:function(e){return n.optOut=e,this},updateUserProperties:function(e){var t,r,i,o,a,s,l=n.userProperties||{};try{for(var u=eO(Object.entries(e)),c=u.next();!c.done;c=u.next()){var d=eT(c.value,2),f=d[0],h=d[1];switch(f){case"$set":try{for(var p=(i=void 0,eO(Object.entries(h))),m=p.next();!m.done;m=p.next()){var g=eT(m.value,2),v=g[0],y=g[1];l[v]=y}}catch(e){i={error:e}}finally{try{m&&!m.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}break;case"$unset":try{for(var b=(a=void 0,eO(Object.keys(h))),x=b.next();!x.done;x=b.next()){var v=x.value;delete l[v]}}catch(e){a={error:e}}finally{try{x&&!x.done&&(s=b.return)&&s.call(b)}finally{if(a)throw a.error}}break;case"$clearAll":l={}}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}return n.userProperties=l,this},commit:function(){return e.setIdentity(n),this}}},e.prototype.getIdentity=function(){return eC({},this.identity)},e.prototype.setIdentity=function(e){var t=eC({},this.identity);this.identity=eC({},e),eA(t,this.identity)||this.listeners.forEach(function(t){t(e)})},e.prototype.addIdentityListener=function(e){this.listeners.add(e)},e.prototype.removeIdentityListener=function(e){this.listeners.delete(e)},e}(),eI="undefined"!=typeof globalThis?globalThis:void 0!==n.g?n.g:self,eR=function(){function e(){this.identityStore=new eP,this.eventBridge=new e_,this.applicationContextProvider=new eS}return e.getInstance=function(t){return eI.analyticsConnectorInstances||(eI.analyticsConnectorInstances={}),eI.analyticsConnectorInstances[t]||(eI.analyticsConnectorInstances[t]=new e),eI.analyticsConnectorInstances[t]},e}(),ej=function(e){return void 0===e&&(e="$default_instance"),eR.getInstance(e)},eM=function(e,t){ej(t).identityStore.editIdentity().setUserId(e).commit()},eN=function(e,t){ej(t).identityStore.editIdentity().setDeviceId(e).commit()},eD=function(){function e(){this.name="identity",this.type="before",this.identityStore=ej().identityStore}return e.prototype.execute=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t;return(0,x.Jh)(this,function(n){return(t=e.user_properties)&&this.identityStore.editIdentity().updateUserProperties(t).commit(),[2,e]})})},e.prototype.setup=function(e){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(t){return e.instanceName&&(this.identityStore=ej(e.instanceName).identityStore),[2]})})},e}(),eL=function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.name,o=r.args,a=r.resolve,s=e&&e[i];if("function"==typeof s){var l=s.apply(e,o);"function"==typeof a&&a(null==l?void 0:l.promise)}}return e},ez=function(e){return e&&void 0!==e._q},eF=function(){if("undefined"==typeof navigator)return"";var e,t,n,r,i=navigator.userLanguage;return null!==(r=null!==(n=null!==(t=null===(e=navigator.languages)||void 0===e?void 0:e[0])&&void 0!==t?t:navigator.language)&&void 0!==n?n:i)&&void 0!==r?r:""},eB=function(){function e(){this.name="@amplitude/plugin-context-browser",this.type="before",this.library="".concat("amplitude-ts","/").concat("2.11.13"),"undefined"!=typeof navigator&&(this.userAgent=navigator.userAgent)}return e.prototype.setup=function(e){return this.config=e,Promise.resolve(void 0)},e.prototype.execute=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t,n,r,i,o;return(0,x.Jh)(this,function(a){return t=new Date().getTime(),n=null!==(i=this.config.lastEventId)&&void 0!==i?i:-1,r=null!==(o=e.event_id)&&void 0!==o?o:n+1,this.config.lastEventId=r,e.time||(this.config.lastEventTime=t),[2,(0,x.pi)((0,x.pi)((0,x.pi)((0,x.pi)((0,x.pi)((0,x.pi)((0,x.pi)((0,x.pi)({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:t},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:"Web"}),this.config.trackingOptions.language&&{language:eF()}),this.config.trackingOptions.ipAddress&&{ip:"$remote"}),{insert_id:D(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),e),{event_id:r,library:this.library,user_agent:this.userAgent})]})})},e}(),e$=function(){function e(){this.memoryStorage=new Map}return e.prototype.isEnabled=function(){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(e){return[2,!0]})})},e.prototype.get=function(e){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(t){return[2,this.memoryStorage.get(e)]})})},e.prototype.getRaw=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t;return(0,x.Jh)(this,function(n){switch(n.label){case 0:return[4,this.get(e)];case 1:return[2,(t=n.sent())?JSON.stringify(t):void 0]}})})},e.prototype.set=function(e,t){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(n){return this.memoryStorage.set(e,t),[2]})})},e.prototype.remove=function(e){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(t){return this.memoryStorage.delete(e),[2]})})},e.prototype.reset=function(){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(e){return this.memoryStorage.clear(),[2]})})},e}(),eV=function(e,t,n){return void 0===t&&(t=""),void 0===n&&(n=10),["AMP",t,e.substring(0,n)].filter(Boolean).join("_")},eU=function(){function e(e){this.options=(0,x.pi)({},e)}return e.prototype.isEnabled=function(){return(0,x.mG)(this,void 0,void 0,function(){var t,n;return(0,x.Jh)(this,function(r){switch(r.label){case 0:if(!ev())return[2,!1];e.testValue=String(Date.now()),t=new e(this.options),n="AMP_TEST",r.label=1;case 1:return r.trys.push([1,4,5,7]),[4,t.set(n,e.testValue)];case 2:return r.sent(),[4,t.get(n)];case 3:return[2,r.sent()===e.testValue];case 4:return r.sent(),[2,!1];case 5:return[4,t.remove(n)];case 6:return r.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(e){var t;return(0,x.mG)(this,void 0,void 0,function(){var n,r;return(0,x.Jh)(this,function(i){switch(i.label){case 0:return[4,this.getRaw(e)];case 1:if(!(n=i.sent()))return[2,void 0];try{if(r=null!==(t=eW(n))&&void 0!==t?t:eq(n),void 0===r)return console.error("Amplitude Logger [Error]: Failed to decode cookie value for key: ".concat(e,", value: ").concat(n)),[2,void 0];return[2,JSON.parse(r)]}catch(t){return console.error("Amplitude Logger [Error]: Failed to parse cookie value for key: ".concat(e,", value: ").concat(n)),[2,void 0]}return[2]}})})},e.prototype.getRaw=function(e){var t,n;return(0,x.mG)(this,void 0,void 0,function(){var r,i;return(0,x.Jh)(this,function(o){return(i=(null!==(n=null===(t=null==(r=ev())?void 0:r.document)||void 0===t?void 0:t.cookie.split("; "))&&void 0!==n?n:[]).find(function(t){return 0===t.indexOf(e+"=")}))?[2,i.substring(e.length+1)]:[2,void 0]})})},e.prototype.set=function(e,t){var n;return(0,x.mG)(this,void 0,void 0,function(){var r,i,o,a,s,l,u;return(0,x.Jh)(this,function(c){try{r=null!==(n=this.options.expirationDays)&&void 0!==n?n:0,i=null!==t?r:-1,o=void 0,i&&((a=new Date).setTime(a.getTime()+864e5*i),o=a),s="".concat(e,"=").concat(btoa(encodeURIComponent(JSON.stringify(t)))),o&&(s+="; expires=".concat(o.toUTCString())),s+="; path=/",this.options.domain&&(s+="; domain=".concat(this.options.domain)),this.options.secure&&(s+="; Secure"),this.options.sameSite&&(s+="; SameSite=".concat(this.options.sameSite)),(l=ev())&&(l.document.cookie=s)}catch(t){u=t instanceof Error?t.message:String(t),console.error("Amplitude Logger [Error]: Failed to set cookie for key: ".concat(e,". Error: ").concat(u))}return[2]})})},e.prototype.remove=function(e){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(t){switch(t.label){case 0:return[4,this.set(e,null)];case 1:return t.sent(),[2]}})})},e.prototype.reset=function(){return(0,x.mG)(this,void 0,void 0,function(){return(0,x.Jh)(this,function(e){return[2]})})},e}(),eW=function(e){try{return decodeURIComponent(atob(e))}catch(e){return}},eq=function(e){try{return decodeURIComponent(atob(decodeURIComponent(e)))}catch(e){return}},eH=function(){function e(){}return e.prototype.send=function(e,t){return Promise.resolve(null)},e.prototype.buildResponse=function(e){if("object"!=typeof e)return null;var t,n,r,i,o,a,s,l,u,c,d,h,p,m,g,v,y,b,x,w,k,S,E=e.code||0,_=this.buildStatus(E);switch(_){case f.Success:return{status:_,statusCode:E,body:{eventsIngested:null!==(t=e.events_ingested)&&void 0!==t?t:0,payloadSizeBytes:null!==(n=e.payload_size_bytes)&&void 0!==n?n:0,serverUploadTime:null!==(r=e.server_upload_time)&&void 0!==r?r:0}};case f.Invalid:return{status:_,statusCode:E,body:{error:null!==(i=e.error)&&void 0!==i?i:"",missingField:null!==(o=e.missing_field)&&void 0!==o?o:"",eventsWithInvalidFields:null!==(a=e.events_with_invalid_fields)&&void 0!==a?a:{},eventsWithMissingFields:null!==(s=e.events_with_missing_fields)&&void 0!==s?s:{},eventsWithInvalidIdLengths:null!==(l=e.events_with_invalid_id_lengths)&&void 0!==l?l:{},epsThreshold:null!==(u=e.eps_threshold)&&void 0!==u?u:0,exceededDailyQuotaDevices:null!==(c=e.exceeded_daily_quota_devices)&&void 0!==c?c:{},silencedDevices:null!==(d=e.silenced_devices)&&void 0!==d?d:[],silencedEvents:null!==(h=e.silenced_events)&&void 0!==h?h:[],throttledDevices:null!==(p=e.throttled_devices)&&void 0!==p?p:{},throttledEvents:null!==(m=e.throttled_events)&&void 0!==m?m:[]}};case f.PayloadTooLarge:return{status:_,statusCode:E,body:{error:null!==(g=e.error)&&void 0!==g?g:""}};case f.RateLimit:return{status:_,statusCode:E,body:{error:null!==(v=e.error)&&void 0!==v?v:"",epsThreshold:null!==(y=e.eps_threshold)&&void 0!==y?y:0,throttledDevices:null!==(b=e.throttled_devices)&&void 0!==b?b:{},throttledUsers:null!==(x=e.throttled_users)&&void 0!==x?x:{},exceededDailyQuotaDevices:null!==(w=e.exceeded_daily_quota_devices)&&void 0!==w?w:{},exceededDailyQuotaUsers:null!==(k=e.exceeded_daily_quota_users)&&void 0!==k?k:{},throttledEvents:null!==(S=e.throttled_events)&&void 0!==S?S:[]}};case f.Timeout:default:return{status:_,statusCode:E}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?f.Success:429===e?f.RateLimit:413===e?f.PayloadTooLarge:408===e?f.Timeout:e>=400&&e<500?f.Invalid:e>=500?f.Failed:f.Unknown},e}(),eZ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,x.ZT)(t,e),t.prototype.send=function(e,t){return(0,x.mG)(this,void 0,void 0,function(){var n,r;return(0,x.Jh)(this,function(i){switch(i.label){case 0:if("undefined"==typeof fetch)throw Error("FetchTransport is not supported");return[4,fetch(e,{headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(t),method:"POST"})];case 1:return[4,(n=i.sent()).text()];case 2:r=i.sent();try{return[2,this.buildResponse(JSON.parse(r))]}catch(e){return[2,this.buildResponse({code:n.status})]}return[2]}})})},t}(eH),eG=function(){function e(e){this.storage=e}return e.prototype.isEnabled=function(){return(0,x.mG)(this,void 0,void 0,function(){var t,n,r;return(0,x.Jh)(this,function(i){switch(i.label){case 0:if(!this.storage)return[2,!1];t=String(Date.now()),n=new e(this.storage),r="AMP_TEST",i.label=1;case 1:return i.trys.push([1,4,5,7]),[4,n.set(r,t)];case 2:return i.sent(),[4,n.get(r)];case 3:return[2,i.sent()===t];case 4:return i.sent(),[2,!1];case 5:return[4,n.remove(r)];case 6:return i.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t;return(0,x.Jh)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.getRaw(e)];case 1:if(!(t=n.sent()))return[2,void 0];return[2,JSON.parse(t)];case 2:return n.sent(),console.error("[Amplitude] Error: Could not get value from storage"),[2,void 0];case 3:return[2]}})})},e.prototype.getRaw=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t;return(0,x.Jh)(this,function(n){return[2,(null===(t=this.storage)||void 0===t?void 0:t.getItem(e))||void 0]})})},e.prototype.set=function(e,t){return(0,x.mG)(this,void 0,void 0,function(){var n;return(0,x.Jh)(this,function(r){try{null===(n=this.storage)||void 0===n||n.setItem(e,JSON.stringify(t))}catch(e){}return[2]})})},e.prototype.remove=function(e){return(0,x.mG)(this,void 0,void 0,function(){var t;return(0,x.Jh)(this,function(n){try{null===(t=this.storage)||void 0===t||t.removeItem(e)}catch(e){}return[2]})})},e.prototype.reset=function(){return(0,x.mG)(this,void 0,void 0,function(){var e;return(0,x.Jh)(this,function(t){try{null===(e=this.storage)||void 0===e||e.clear()}catch(e){}return[2]})})},e}(),eK=function(e){function t(t){var n,r=e.call(this,null===(n=ev())||void 0===n?void 0:n.localStorage)||this;return r.loggerProvider=null==t?void 0:t.loggerProvider,r}return(0,x.ZT)(t,e),t.prototype.set=function(t,n){return(0,x.mG)(this,void 0,void 0,function(){var r,i;return(0,x.Jh)(this,function(o){switch(o.label){case 0:if(!(Array.isArray(n)&&n.length>1e3))return[3,2];return r=n.length-1e3,[4,e.prototype.set.call(this,t,n.slice(0,1e3))];case 1:return o.sent(),null===(i=this.loggerProvider)||void 0===i||i.error("Failed to save ".concat(r," events because the queue length exceeded ").concat(1e3,".")),[3,4];case 2:return[4,e.prototype.set.call(this,t,n)];case 3:o.sent(),o.label=4;case 4:return[2]}})})},t}(eG),eY=function(e){function t(){var t;return e.call(this,null===(t=ev())||void 0===t?void 0:t.sessionStorage)||this}return(0,x.ZT)(t,e),t}(eG),eX=function(e){function t(){var t=e.apply(this,(0,x.ev)([],(0,x.CR)(arguments),!1))||this;return t.state={done:4},t}return(0,x.ZT)(t,e),t.prototype.send=function(e,t){return(0,x.mG)(this,void 0,void 0,function(){var n=this;return(0,x.Jh)(this,function(r){return[2,new Promise(function(r,i){"undefined"==typeof XMLHttpRequest&&i(Error("XHRTransport is not supported."));var o=new XMLHttpRequest;o.open("POST",e,!0),o.onreadystatechange=function(){if(o.readyState===n.state.done){var e=o.responseText;try{r(n.buildResponse(JSON.parse(e)))}catch(e){r(n.buildResponse({code:o.status}))}}},o.setRequestHeader("Content-Type","application/json"),o.setRequestHeader("Accept","*/*"),o.send(JSON.stringify(t))})]})})},t}(eH),eJ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,x.ZT)(t,e),t.prototype.send=function(e,t){return(0,x.mG)(this,void 0,void 0,function(){var n=this;return(0,x.Jh)(this,function(r){return[2,new Promise(function(r,i){var o=ev();if(!(null==o?void 0:o.navigator.sendBeacon))throw Error("SendBeaconTransport is not supported");try{var a=JSON.stringify(t);if(o.navigator.sendBeacon(e,JSON.stringify(t)))return r(n.buildResponse({code:200,events_ingested:t.events.length,payload_size_bytes:a.length,server_upload_time:Date.now()}));return r(n.buildResponse({code:500}))}catch(e){i(e)}})]})})},t}(eH),eQ=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return(0,x.mG)(void 0,(0,x.ev)([e,t],(0,x.CR)(n),!1),void 0,function(e,t,n){var r,i,o,a,s,l,u,c,d;return void 0===n&&(n=!0),(0,x.Jh)(this,function(f){switch(f.label){case 0:return r="".concat("amp","_").concat(e.substring(0,6)),[4,t.getRaw(r)];case 1:if(!(i=f.sent()))return[2,{optOut:!1}];if(!n)return[3,3];return[4,t.remove(r)];case 2:f.sent(),f.label=3;case 3:return a=(o=(0,x.CR)(i.split("."),6))[0],s=o[1],l=o[2],u=o[3],c=o[4],d=o[5],[2,{deviceId:a,userId:e1(s),sessionId:e0(u),lastEventId:e0(d),lastEventTime:e0(c),optOut:!!l}]}})})},e0=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},e1=function(e){if(atob&&escape&&e)try{return decodeURIComponent(escape(atob(e)))}catch(e){return}},e2="[Amplitude]",e5="".concat(e2," Form Started"),e3="".concat(e2," Form Submitted"),e4="".concat(e2," File Downloaded"),e6="session_start",e9="session_end",e8="".concat(e2," File Extension"),e7="".concat(e2," File Name"),te="".concat(e2," Link ID"),tt="".concat(e2," Link Text"),tn="".concat(e2," Link URL"),tr="".concat(e2," Form ID"),ti="".concat(e2," Form Name"),to="".concat(e2," Form Destination"),ta="cookie",ts=function(e){function t(t,n,r,i,o,a,s,l,u,c,f,h,p,m,g,v,y,b,x,w,k,S,E,_,C,O,T,A,P,R,j,M,N,D){void 0===r&&(r=new e$),void 0===i&&(i={domain:"",expiration:365,sameSite:"Lax",secure:!1,upgrade:!0}),void 0===l&&(l=1e3),void 0===u&&(u=5),void 0===c&&(c=30),void 0===f&&(f=ta),void 0===v&&(v=new I),void 0===y&&(y=d.Warn),void 0===x&&(x=!1),void 0===w&&(w=!1),void 0===E&&(E=""),void 0===_&&(_="US"),void 0===O&&(O=18e5),void 0===T&&(T=new eK({loggerProvider:v})),void 0===A&&(A={ipAddress:!0,language:!0,platform:!0}),void 0===P&&(P="fetch"),void 0===R&&(R=!1),void 0===j&&(j=!1);var L=e.call(this,{apiKey:t,storageProvider:T,transportProvider:tc(P)})||this;return L.apiKey=t,L.appVersion=n,L.cookieOptions=i,L.defaultTracking=o,L.autocapture=a,L.flushIntervalMillis=l,L.flushMaxRetries=u,L.flushQueueSize=c,L.identityStorage=f,L.ingestionMetadata=h,L.instanceName=p,L.loggerProvider=v,L.logLevel=y,L.minIdLength=b,L.offline=x,L.partnerId=k,L.plan=S,L.serverUrl=E,L.serverZone=_,L.sessionTimeout=O,L.storageProvider=T,L.trackingOptions=A,L.transport=P,L.useBatch=R,L.fetchRemoteConfig=j,L._optOut=!1,L._cookieStorage=r,L.deviceId=s,L.lastEventId=m,L.lastEventTime=g,L.optOut=w,L.sessionId=C,L.pageCounter=N,L.userId=M,L.debugLogsEnabled=D,L.loggerProvider.enable(D?d.Debug:L.logLevel),L}return(0,x.ZT)(t,e),Object.defineProperty(t.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(e){this._cookieStorage!==e&&(this._cookieStorage=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._deviceId},set:function(e){this._deviceId!==e&&(this._deviceId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._userId},set:function(e){this._userId!==e&&(this._userId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionId",{get:function(){return this._sessionId},set:function(e){this._sessionId!==e&&(this._sessionId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut!==e&&(this._optOut=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(e){this._lastEventTime!==e&&(this._lastEventTime=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(e){this._lastEventId!==e&&(this._lastEventId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(e){this._pageCounter!==e&&(this._pageCounter=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"debugLogsEnabled",{set:function(e){this._debugLogsEnabled!==e&&(this._debugLogsEnabled=e,this.updateStorage())},enumerable:!1,configurable:!0}),t.prototype.updateStorage=function(){var e={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter,debugLogsEnabled:this._debugLogsEnabled};this.cookieStorage.set(eV(this.apiKey),e)},t}(j),tl=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return(0,x.mG)(void 0,(0,x.ev)([e],(0,x.CR)(t),!1),void 0,function(e,t,n){var r,i,o,a,s,l,u,c,d,f,h,p,m,g,v,y,b,w,k,S,E,_,C,O,T,A,P,I,R,j,M,N,L,z,F,B,$,V,U,W,q,H,Z;return void 0===t&&(t={}),(0,x.Jh)(this,function(G){switch(G.label){case 0:if(r=t.identityStorage||ta,k={},!(r!==ta))return[3,1];return o="",[3,5];case 1:if(!(null!==(E=null===(S=t.cookieOptions)||void 0===S?void 0:S.domain)&&void 0!==E))return[3,2];return a=E,[3,4];case 2:return[4,td()];case 3:a=G.sent(),G.label=4;case 4:o=a,G.label=5;case 5:return i=x.pi.apply(void 0,[(k.domain=o,k.expiration=365,k.sameSite="Lax",k.secure=!1,k.upgrade=!0,k),t.cookieOptions]),[4,eQ(e,s=tu(t.identityStorage,i),null===(C=null===(_=t.cookieOptions)||void 0===_?void 0:_.upgrade)||void 0===C||C)];case 6:return l=G.sent(),[4,s.get(eV(e))];case 7:return u=G.sent(),c=ey(),d=null!==(I=null!==(P=null!==(A=null!==(T=null!==(O=t.deviceId)&&void 0!==O?O:c.ampDeviceId)&&void 0!==T?T:c.deviceId)&&void 0!==A?A:null==u?void 0:u.deviceId)&&void 0!==P?P:l.deviceId)&&void 0!==I?I:D(),f=null!==(R=null==u?void 0:u.lastEventId)&&void 0!==R?R:l.lastEventId,h=null!==(j=null==u?void 0:u.lastEventTime)&&void 0!==j?j:l.lastEventTime,p=null!==(N=null!==(M=t.optOut)&&void 0!==M?M:null==u?void 0:u.optOut)&&void 0!==N?N:l.optOut,m=null!==(L=null==u?void 0:u.sessionId)&&void 0!==L?L:l.sessionId,g=null!==(F=null!==(z=t.userId)&&void 0!==z?z:null==u?void 0:u.userId)&&void 0!==F?F:l.userId,n.previousSessionDeviceId=null!==(B=null==u?void 0:u.deviceId)&&void 0!==B?B:l.deviceId,n.previousSessionUserId=null!==($=null==u?void 0:u.userId)&&void 0!==$?$:l.userId,v={ipAddress:null===(U=null===(V=t.trackingOptions)||void 0===V?void 0:V.ipAddress)||void 0===U||U,language:null===(q=null===(W=t.trackingOptions)||void 0===W?void 0:W.language)||void 0===q||q,platform:null===(Z=null===(H=t.trackingOptions)||void 0===H?void 0:H.platform)||void 0===Z||Z},y=null==u?void 0:u.pageCounter,b=null==u?void 0:u.debugLogsEnabled,void 0!==t.autocapture&&(t.defaultTracking=t.autocapture),[4,(w=new ts(e,t.appVersion,s,i,t.defaultTracking,t.autocapture,d,t.flushIntervalMillis,t.flushMaxRetries,t.flushQueueSize,r,t.ingestionMetadata,t.instanceName,f,h,t.loggerProvider,t.logLevel,t.minIdLength,t.offline,p,t.partnerId,t.plan,t.serverUrl,t.serverZone,m,t.sessionTimeout,t.storageProvider,v,t.transport,t.useBatch,t.fetchRemoteConfig,g,y,b)).storageProvider.isEnabled()];case 8:return G.sent()||(w.loggerProvider.warn("Storage provider ".concat(w.storageProvider.constructor.name," is not enabled. Falling back to MemoryStorage.")),w.storageProvider=new e$),[2,w]}})})},tu=function(e,t){switch(void 0===e&&(e=ta),void 0===t&&(t={}),e){case"localStorage":return new eK;case"sessionStorage":return new eY;case"none":return new e$;default:return new eU((0,x.pi)((0,x.pi)({},t),{expirationDays:t.expiration}))}},tc=function(e){return"xhr"===e?new eX:"beacon"===e?new eJ:new eZ},td=function(e){return(0,x.mG)(void 0,void 0,void 0,function(){var t,n,r,i,o,a;return(0,x.Jh)(this,function(s){switch(s.label){case 0:return[4,new eU().isEnabled()];case 1:if(!s.sent()||!e&&("undefined"==typeof location||!location.hostname))return[2,""];for(t=(null!=e?e:location.hostname).split("."),n=[],r="AMP_TLDTEST",i=t.length-2;i>=0;--i)n.push(t.slice(i).join("."));i=0,s.label=2;case 2:if(!(i<n.length))return[3,7];return[4,(a=new eU({domain:"."+(o=n[i])})).set(r,1)];case 3:return s.sent(),[4,a.get(r)];case 4:if(!s.sent())return[3,6];return[4,a.remove(r)];case 5:return s.sent(),[2,"."+o];case 6:return i++,[3,2];case 7:return[2,""]}})})},tf=function(e){var t={};for(var n in e){var r=e[n];r&&(t[n]=r)}return t},th=function(e){void 0===e&&(e={});var t,n,r,i=ev(),o=void 0,a=e.trackOn,s=e.trackHistoryChanges,l=e.eventType,u=void 0===l?"[Amplitude] Page Viewed":l,c=function(e){var t=e;try{t=decodeURI(e)}catch(e){null==o||o.error("Malformed URI sequence: ",e)}return t},d=function(){return(0,x.mG)(void 0,void 0,void 0,function(){var e,t,n;return(0,x.Jh)(this,function(r){switch(r.label){case 0:return e=c("undefined"!=typeof location&&location.href||""),n={event_type:u},t=[{}],[4,tp()];case 1:return[2,(n.event_properties=x.pi.apply(void 0,[x.pi.apply(void 0,t.concat([r.sent()])),{"[Amplitude] Page Domain":"undefined"!=typeof location&&location.hostname||"","[Amplitude] Page Location":e,"[Amplitude] Page Path":"undefined"!=typeof location&&c(location.pathname)||"","[Amplitude] Page Title":"undefined"!=typeof document&&document.title||"","[Amplitude] Page URL":e.split("?")[0]}]),n)]}})})},f=function(){return void 0===a||"function"==typeof a&&a()},h="undefined"!=typeof location?location.href:null,p=function(){return(0,x.mG)(void 0,void 0,void 0,function(){var e,n,r,i;return(0,x.Jh)(this,function(a){switch(a.label){case 0:if(n=tg(s,e=location.href,h||"")&&f(),h=e,!n)return[3,4];if(null==o||o.log("Tracking page view event"),null!=t)return[3,1];return[3,3];case 1:return i=(r=t).track,[4,d()];case 2:i.apply(r,[a.sent()]),a.label=3;case 3:a.label=4;case 4:return[2]}})})},m=function(){p()};return{name:"@amplitude/plugin-page-view-tracking-browser",type:"enrichment",setup:function(e,a){return(0,x.mG)(void 0,void 0,void 0,function(){var s,l;return(0,x.Jh)(this,function(u){switch(u.label){case 0:if(t=a,r=e,(o=e.loggerProvider).log("Installing @amplitude/plugin-page-view-tracking-browser"),i&&(i.addEventListener("popstate",m),n=i.history.pushState,i.history.pushState=new Proxy(i.history.pushState,{apply:function(e,t,n){var r=(0,x.CR)(n,3),i=r[0],o=r[1],a=r[2];e.apply(t,[i,o,a]),p()}})),!f())return[3,2];return o.log("Tracking page view event"),l=(s=t).track,[4,d()];case 1:l.apply(s,[u.sent()]),u.label=2;case 2:return[2]}})})},execute:function(e){return(0,x.mG)(void 0,void 0,void 0,function(){var t;return(0,x.Jh)(this,function(n){switch(n.label){case 0:if(!("attribution"===a&&tm(e)))return[3,2];return null==o||o.log("Enriching campaign event to page view event with campaign parameters"),[4,d()];case 1:t=n.sent(),e.event_type=t.event_type,e.event_properties=(0,x.pi)((0,x.pi)({},e.event_properties),t.event_properties),n.label=2;case 2:return r&&e.event_type===u&&(r.pageCounter=r.pageCounter?r.pageCounter+1:1,e.event_properties=(0,x.pi)((0,x.pi)({},e.event_properties),{"[Amplitude] Page Counter":r.pageCounter})),[2,e]}})})},teardown:function(){return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(e){return i&&(i.removeEventListener("popstate",m),n&&(i.history.pushState=n)),[2]})})}}},tp=function(){return(0,x.mG)(void 0,void 0,void 0,function(){var e;return(0,x.Jh)(this,function(t){switch(t.label){case 0:return e=tf,[4,new ex().parse()];case 1:return[2,e.apply(void 0,[t.sent()])]}})})},tm=function(e){if("$identify"===e.event_type&&e.user_properties){var t=e.user_properties,n=t[h.SET]||{},r=t[h.UNSET]||{},i=(0,x.ev)((0,x.ev)([],(0,x.CR)(Object.keys(n)),!1),(0,x.CR)(Object.keys(r)),!1);return Object.keys(ef).every(function(e){return i.includes(e)})}return!1},tg=function(e,t,n){if("pathOnly"===e){if(""==n)return!0;var r=new URL(t),i=new URL(n);return r.origin+r.pathname!==i.origin+i.pathname}return t!==n},tv=function(){var e,t=[],n=function(e,n,r){e.addEventListener(n,r),t.push({element:e,type:n,handler:r})},r=function(){t.forEach(function(e){var t=e.element,n=e.type,r=e.handler;null==t||t.removeEventListener(n,r)}),t=[]};return{name:"@amplitude/plugin-form-interaction-tracking-browser",type:"enrichment",setup:function(t,r){return(0,x.mG)(void 0,void 0,void 0,function(){var i;return(0,x.Jh)(this,function(o){return null===(i=ev())||void 0===i||i.addEventListener("load",function(){if(!r){t.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked.");return}if("undefined"!=typeof document){var i=function(e){var t=!1;n(e,"change",function(){var n,i=tb(e);t||r.track(e5,((n={})[tr]=ty(e.id),n[ti]=ty(e.name),n[to]=i,n)),t=!0}),n(e,"submit",function(){var n,i,o=tb(e);t||r.track(e5,((n={})[tr]=ty(e.id),n[ti]=ty(e.name),n[to]=o,n)),r.track(e3,((i={})[tr]=ty(e.id),i[ti]=ty(e.name),i[to]=o,i)),t=!1})};Array.from(document.getElementsByTagName("form")).forEach(i),"undefined"!=typeof MutationObserver&&(e=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){"FORM"===e.nodeName&&i(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("form")).map(i)})})})).observe(document.body,{subtree:!0,childList:!0})}}),[2]})})},execute:function(e){return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(t){return null==e||e.disconnect(),r(),[2]})})}}},ty=function(e){if("string"==typeof e)return e},tb=function(e){var t=e.getAttribute("action");try{t=new URL(encodeURI(null!=t?t:""),window.location.href).href}catch(e){}return t},tx=function(){var e,t=[],n=function(e,n,r){e.addEventListener(n,r),t.push({element:e,type:n,handler:r})},r=function(){t.forEach(function(e){var t=e.element,n=e.type,r=e.handler;null==t||t.removeEventListener(n,r)}),t=[]};return{name:"@amplitude/plugin-file-download-tracking-browser",type:"enrichment",setup:function(t,r){return(0,x.mG)(void 0,void 0,void 0,function(){var i;return(0,x.Jh)(this,function(o){return null===(i=ev())||void 0===i||i.addEventListener("load",function(){if(!r){t.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.");return}if("undefined"!=typeof document){var i=function(e){try{t=new URL(e.href,window.location.href)}catch(e){return}var t,i=o.exec(t.href),a=null==i?void 0:i[1];a&&n(e,"click",function(){var n;a&&r.track(e4,((n={})[e8]=a,n[e7]=t.pathname,n[te]=e.id,n[tt]=e.text,n[tn]=e.href,n))})},o=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)(\?.+)?$/;Array.from(document.getElementsByTagName("a")).forEach(i),"undefined"!=typeof MutationObserver&&(e=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){"A"===e.nodeName&&i(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("a")).map(i)})})})).observe(document.body,{subtree:!0,childList:!0})}}),[2]})})},execute:function(e){return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(t){return null==e||e.disconnect(),r(),[2]})})}}},tw=!1,tk=function(e){tw||void 0!==e.defaultTracking||(e.loggerProvider.warn("`options.defaultTracking` is set to undefined. This implicitly configures your Amplitude instance to track Page Views, Sessions, File Downloads, and Form Interactions. You can suppress this warning by explicitly setting a value to `options.defaultTracking`. The value must either be a boolean, to enable and disable all default events, or an object, for advanced configuration. For example:\n\namplitude.init(<YOUR_API_KEY>, {\n defaultTracking: true,\n});\n\nVisit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-default-events for more details."),tw=!0)},tS=function(){var e=ev(),t=[],n=function(n,r){e&&(e.addEventListener(n,r),t.push({type:n,handler:r}))},r=function(){t.forEach(function(t){var n=t.type,r=t.handler;e&&e.removeEventListener(n,r)}),t=[]};return{name:"@amplitude/plugin-network-checker-browser",type:"before",setup:function(e,t){return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(r){return"undefined"==typeof navigator?(e.loggerProvider.debug("Network connectivity checker plugin is disabled because navigator is not available."),e.offline=!1):(e.offline=!navigator.onLine,n("online",function(){e.loggerProvider.debug("Network connectivity changed to online."),e.offline=!1,setTimeout(function(){t.flush()},e.flushIntervalMillis)}),n("offline",function(){e.loggerProvider.debug("Network connectivity changed to offline."),e.offline=!0})),[2]})})},teardown:function(){return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(e){return r(),[2]})})}}};(l=g||(g={})).US="US",l.EU="EU";var tE="Remote config fetch rejected due to timeout after 5 seconds",t_="Unexpected error occurred",tC=function(){function e(e){var t=e.localConfig,n=e.configKeys,r=this;this.retryTimeout=1e3,this.attempts=0,this.sessionTargetingMatch=!1,this.metrics={},this.getRemoteConfig=function(e,t,n){return(0,x.mG)(r,void 0,void 0,function(){var r,i,o;return(0,x.Jh)(this,function(a){switch(a.label){case 0:return r=Date.now(),[4,this.fetchWithTimeout(n)];case 1:if((i=a.sent())&&(o=i.configs&&i.configs[e]))return this.metrics.fetchTimeAPISuccess=Date.now()-r,[2,o[t]];return this.metrics.fetchTimeAPIFail=Date.now()-r,[2,void 0]}})})},this.fetchWithTimeout=function(e){return(0,x.mG)(r,void 0,void 0,function(){var t,n,r;return(0,x.Jh)(this,function(i){switch(i.label){case 0:return t=new AbortController,n=setTimeout(function(){return t.abort()},5e3),[4,this.fetchRemoteConfig(t.signal,e)];case 1:return r=i.sent(),clearTimeout(n),[2,r]}})})},this.fetchRemoteConfig=function(e,t){return(0,x.mG)(r,void 0,void 0,function(){var n,r,i,o,a,s,l,u,c,d,h;return(0,x.Jh)(this,function(p){switch(p.label){case 0:if(t===this.lastFetchedSessionId&&this.attempts>=this.localConfig.flushMaxRetries)return[2,this.completeRequest({err:"Remote config fetch rejected due to exceeded retry count"})];if(e.aborted)return[2,this.completeRequest({err:tE})];t!==this.lastFetchedSessionId&&(this.lastFetchedSessionId=t,this.attempts=0),p.label=1;case 1:p.trys.push([1,3,,4]),n=new URLSearchParams({api_key:this.localConfig.apiKey});try{for(i=(r=(0,x.XA)(this.configKeys)).next();!i.done;i=r.next())o=i.value,n.append("config_keys",o)}catch(e){c={error:e}}finally{try{i&&!i.done&&(d=r.return)&&d.call(r)}finally{if(c)throw c.error}}return t&&n.set("session_id",String(t)),a={headers:{Accept:"*/*"},method:"GET"},s="".concat(this.getServerUrl(),"?").concat(n.toString()),this.attempts+=1,[4,fetch(s,(0,x.pi)((0,x.pi)({},a),{signal:e}))];case 2:if(null===(l=p.sent()))return[2,this.completeRequest({err:t_})];switch(new eH().buildStatus(l.status)){case f.Success:return this.attempts=0,[2,this.parseAndStoreConfig(l)];case f.Failed:return[2,this.retryFetch(e,t)];default:return[2,this.completeRequest({err:"Network error occurred, remote config fetch failed"})]}return[3,4];case 3:if(u=p.sent(),e.aborted)return[2,this.completeRequest({err:tE})];return[2,this.completeRequest({err:null!==(h=u.message)&&void 0!==h?h:t_})];case 4:return[2]}})})},this.retryFetch=function(e,t){return(0,x.mG)(r,void 0,void 0,function(){var n=this;return(0,x.Jh)(this,function(r){switch(r.label){case 0:return[4,new Promise(function(e){return setTimeout(e,n.attempts*n.retryTimeout)})];case 1:return r.sent(),[2,this.fetchRemoteConfig(e,t)]}})})},this.parseAndStoreConfig=function(e){return(0,x.mG)(r,void 0,void 0,function(){var t;return(0,x.Jh)(this,function(n){switch(n.label){case 0:return[4,e.json()];case 1:return t=n.sent(),this.completeRequest({success:"Remote config successfully fetched"}),[2,t]}})})},this.localConfig=t,this.configKeys=n}return e.prototype.getServerUrl=function(){return this.localConfig.serverZone===g.STAGING?"https://sr-client-cfg.stag2.amplitude.com/config":this.localConfig.serverZone===g.EU?"https://sr-client-cfg.eu.amplitude.com/config":"https://sr-client-cfg.amplitude.com/config"},e.prototype.completeRequest=function(e){var t=e.err,n=e.success;if(t)throw Error(t);n&&this.localConfig.loggerProvider.log(n)},e}(),tO=function(e){var t=e.localConfig,n=e.configKeys;return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(e){return[2,new tC({localConfig:t,configKeys:n})]})})},tT=function(){function e(e){this.config=e,this.config.loggerProvider.debug("Local configuration before merging with remote config",JSON.stringify(this.config,null,2))}return e.prototype.initialize=function(){return(0,x.mG)(this,void 0,void 0,function(){var e;return(0,x.Jh)(this,function(t){switch(t.label){case 0:return e=this,[4,tO({localConfig:this.config,configKeys:["analyticsSDK"]})];case 1:return e.remoteConfigFetch=t.sent(),[2]}})})},e.prototype.generateJoinedConfig=function(){return(0,x.mG)(this,void 0,void 0,function(){var e,t,n,r,i,o,a;return(0,x.Jh)(this,function(s){switch(s.label){case 0:if(s.trys.push([0,3,,4]),!(t=this.remoteConfigFetch))return[3,2];return[4,this.remoteConfigFetch.getRemoteConfig("analyticsSDK","browserSDK",this.config.sessionId)];case 1:t=s.sent(),s.label=2;case 2:return e=t,this.config.loggerProvider.debug("Remote configuration:",JSON.stringify(e,null,2)),e&&"autocapture"in e&&("boolean"==typeof e.autocapture&&(this.config.autocapture=e.autocapture),"object"==typeof e.autocapture&&(void 0===this.config.autocapture&&(this.config.autocapture=e.autocapture),"boolean"==typeof this.config.autocapture&&(this.config.autocapture=(0,x.pi)({attribution:this.config.autocapture,fileDownloads:this.config.autocapture,formInteractions:this.config.autocapture,pageViews:this.config.autocapture,sessions:this.config.autocapture,elementInteractions:this.config.autocapture},e.autocapture)),"object"==typeof this.config.autocapture&&(this.config.autocapture=(0,x.pi)((0,x.pi)({},this.config.autocapture),e.autocapture))),this.config.defaultTracking=this.config.autocapture),this.config.loggerProvider.debug("Joined configuration: ",JSON.stringify(this.config,null,2)),null!==(r=(a=this.config).requestMetadata)&&void 0!==r||(a.requestMetadata=new N),(null===(i=this.remoteConfigFetch)||void 0===i?void 0:i.metrics.fetchTimeAPISuccess)&&this.config.requestMetadata.recordHistogram("remote_config_fetch_time_API_success",this.remoteConfigFetch.metrics.fetchTimeAPISuccess),(null===(o=this.remoteConfigFetch)||void 0===o?void 0:o.metrics.fetchTimeAPIFail)&&this.config.requestMetadata.recordHistogram("remote_config_fetch_time_API_fail",this.remoteConfigFetch.metrics.fetchTimeAPIFail),[3,4];case 3:return n=s.sent(),this.config.loggerProvider.error("Failed to fetch remote configuration because of error: ",n),[3,4];case 4:return[2,this.config]}})})},e}(),tA=["a","button","input","select","textarea","label","video","audio",'[contenteditable="true" i]',"[data-amp-default-track]",".amp-default-track"],tP=["div","span","h1","h2","h3","h4","h5","h6"],tI="[Amplitude] Element Clicked",tR="[Amplitude] Element Tag",tj="[Amplitude] Element Text",tM="[Amplitude] Element Selector",tN="[Amplitude] Page URL",tD="https://app.amplitude.com",tL={US:tD,EU:"https://app.eu.amplitude.com",STAGING:"https://apps.stag2.amplitude.com"},tz="amp-visual-tagging-selector-highlight",tF=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function tB(e){return"function"==typeof e}function t$(e){return tB(null==e?void 0:e.then)}function tV(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var tU=tV(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function tW(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var tq=function(){var e;function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,t,n,r,i,o=this._parentage;if(o){if(this._parentage=null,Array.isArray(o))try{for(var a=(0,x.XA)(o),s=a.next();!s.done;s=a.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this)}var l=this.initialTeardown;if(tB(l))try{l()}catch(e){i=e instanceof tU?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=(0,x.XA)(u),d=c.next();!d.done;d=c.next()){var f=d.value;try{tZ(f)}catch(e){i=null!=i?i:[],e instanceof tU?i=(0,x.ev)((0,x.ev)([],(0,x.CR)(i)),(0,x.CR)(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}if(i)throw new tU(i)}},t.prototype.add=function(e){var n;if(e&&e!==this){if(this.closed)tZ(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(e)}}},t.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},t.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},t.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&tW(t,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&tW(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}();function tH(e){return e instanceof tq||e&&"closed"in e&&tB(e.remove)&&tB(e.add)&&tB(e.unsubscribe)}function tZ(e){tB(e)?e():e.unsubscribe()}tq.EMPTY;var tG={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},tK={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=tK.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,(0,x.ev)([e,t],(0,x.CR)(n))):setTimeout.apply(void 0,(0,x.ev)([e,t],(0,x.CR)(n)))},clearTimeout:function(e){var t=tK.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function tY(e){tK.setTimeout(function(){var t=tG.onUnhandledError;if(t)t(e);else throw e})}function tX(){}var tJ=tQ("C",void 0,void 0);function tQ(e,t,n){return{kind:e,value:t,error:n}}var t0=null,t1=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,tH(t)&&t.add(n)):n.destination=t8,n}return(0,x.ZT)(t,e),t.create=function(e,t,n){return new t4(e,t,n)},t.prototype.next=function(e){this.isStopped?t9(tQ("N",e,void 0),this):this._next(e)},t.prototype.error=function(e){this.isStopped?t9(tQ("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?t9(tJ,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(tq),t2=Function.prototype.bind;function t5(e,t){return t2.call(e,t)}var t3=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){t6(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){t6(e)}else t6(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){t6(e)}},e}(),t4=function(e){function t(t,n,r){var i,o,a=e.call(this)||this;return tB(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:a&&tG.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return a.unsubscribe()},i={next:t.next&&t5(t.next,o),error:t.error&&t5(t.error,o),complete:t.complete&&t5(t.complete,o)}):i=t,a.destination=new t3(i),a}return(0,x.ZT)(t,e),t}(t1);function t6(e){tG.useDeprecatedSynchronousErrorHandling?tG.useDeprecatedSynchronousErrorHandling&&t0&&(t0.errorThrown=!0,t0.error=e):tY(e)}function t9(e,t){var n=tG.onStoppedNotification;n&&tK.setTimeout(function(){return n(e,t)})}var t8={closed:!0,next:tX,error:function(e){throw e},complete:tX},t7="function"==typeof Symbol&&Symbol.observable||"@@observable";function ne(e){return e}var nt=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof t1||r&&tB(r.next)&&tB(r.error)&&tB(r.complete)&&tH(r)?e:new t4(e,t,n);return function(e){if(tG.useDeprecatedSynchronousErrorHandling){var t=!t0;if(t&&(t0={errorThrown:!1,error:null}),e(),t){var n=t0,r=n.errorThrown,i=n.error;if(t0=null,r)throw i}}else e()}(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=nn(t))(function(t,r){var i=new t4({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)})},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[t7]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0===e.length?ne:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=nn(e))(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function nn(e){var t;return null!==(t=null!=e?e:tG.Promise)&&void 0!==t?t:Promise}function nr(e){return Symbol.asyncIterator&&tB(null==e?void 0:e[Symbol.asyncIterator])}function ni(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var no="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function na(e){return tB(null==e?void 0:e[no])}function ns(e){return(0,x.FC)(this,arguments,function(){var t,n,r;return(0,x.Jh)(this,function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,(0,x.qq)(t.read())];case 3:if(r=(n=i.sent()).value,!n.done)return[3,5];return[4,(0,x.qq)(void 0)];case 4:return[2,i.sent()];case 5:return[4,(0,x.qq)(r)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function nl(e){return tB(null==e?void 0:e.getReader)}function nu(e){if(e instanceof nt)return e;if(null!=e){if(tB(e[t7]))return new nt(function(t){var n=e[t7]();if(tB(n.subscribe))return n.subscribe(t);throw TypeError("Provided object does not correctly implement Symbol.observable")});if(tF(e))return new nt(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()});if(t$(e))return new nt(function(t){e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,tY)});if(nr(e))return nc(e);if(na(e))return new nt(function(t){var n,r;try{for(var i=(0,x.XA)(e),o=i.next();!o.done;o=i.next()){var a=o.value;if(t.next(a),t.closed)return}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.complete()});if(nl(e))return nc(ns(e))}throw ni(e)}function nc(e){return new nt(function(t){(function(e,t){var n,r,i,o;return(0,x.mG)(this,void 0,void 0,function(){var a;return(0,x.Jh)(this,function(s){switch(s.label){case 0:s.trys.push([0,5,6,11]),n=(0,x.KL)(e),s.label=1;case 1:return[4,n.next()];case 2:if((r=s.sent()).done)return[3,4];if(a=r.value,t.next(a),t.closed)return[2];s.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i={error:s.sent()},[3,11];case 6:if(s.trys.push([6,,9,10]),!(r&&!r.done&&(o=n.return)))return[3,8];return[4,o.call(n)];case 7:s.sent(),s.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}function nd(e){return function(t){if(tB(null==t?void 0:t.lift))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}function nf(e,t,n,r,i){return new nh(e,t,n,r,i)}var nh=function(e){function t(t,n,r,i,o,a){var s=e.call(this,t)||this;return s.onFinalize=o,s.shouldUnsubscribe=a,s._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return(0,x.ZT)(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),n||null===(t=this.onFinalize)||void 0===t||t.call(this)}},t}(t1);function np(e,t){return nd(function(n,r){var i=0;n.subscribe(nf(r,function(n){r.next(e.call(t,n,i++))}))})}function nm(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=!1);var o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function ng(e,t,n){return(void 0===n&&(n=1/0),tB(t))?ng(function(n,r){return np(function(e,i){return t(n,e,r,i)})(nu(e(n,r)))},n):("number"==typeof t&&(n=t),nd(function(t,r){var i,o,a,s,l,u,c,d,f;return i=n,a=[],s=0,l=0,u=!1,c=function(){!u||a.length||s||r.complete()},d=function(e){return s<i?f(e):a.push(e)},f=function(t){s++;var n=!1;nu(e(t,l++)).subscribe(nf(r,function(e){o?d(e):r.next(e)},function(){n=!0},void 0,function(){if(n)try{for(s--;a.length&&s<i;)!function(){var e=a.shift();f(e)}();c()}catch(e){r.error(e)}}))},t.subscribe(nf(r,d,function(){u=!0,c()})),function(){}}))}var nv=Array.isArray,ny=["addListener","removeListener"],nb=["addEventListener","removeEventListener"],nx=["on","off"];function nw(e,t,n,r){if(tB(n)&&(r=n,n=void 0),r)return nw(e,t,n).pipe((i=r,np(function(e){return nv(e)?i.apply(void 0,(0,x.ev)([],(0,x.CR)(e))):i(e)})));var i,o=(0,x.CR)(tB(e.addEventListener)&&tB(e.removeEventListener)?nb.map(function(r){return function(i){return e[r](t,i,n)}}):tB(e.addListener)&&tB(e.removeListener)?ny.map(nk(e,t)):tB(e.on)&&tB(e.off)?nx.map(nk(e,t)):[],2),a=o[0],s=o[1];if(!a&&tF(e))return ng(function(e){return nw(e,t,n)})(nu(e));if(!a)throw TypeError("Invalid event target");return new nt(function(e){var t=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1<t.length?t:t[0])};return a(t),function(){return s(t)}})}function nk(e,t){return function(n){return function(r){return e[n](t,r)}}}function nS(e,t,n){for(var r=null,i=[],o=e,a=0;o&&"break"!==function(){var e,s,l,u,c=nI((e=o.getAttribute("id"))&&v.idName(e)?{name:"#"+CSS.escape(e),penalty:0}:null)||nI.apply(void 0,(0,x.ev)([],(0,x.CR)(Array.from(o.attributes).filter(function(e){return v.attr(e.name,e.value)}).map(function(e){return{name:"[".concat(CSS.escape(e.name),'="').concat(CSS.escape(e.value),'"]'),penalty:.5}})),!1))||nI.apply(void 0,(0,x.ev)([],(0,x.CR)(Array.from(o.classList).filter(v.className).map(function(e){return{name:"."+CSS.escape(e),penalty:1}})),!1))||nI((s=o.tagName.toLowerCase(),v.tagName(s)?{name:s,penalty:2}:null))||[nT()],d=function(e){var t=e.parentNode;if(!t)return null;var n=t.firstChild;if(!n)return null;for(var r=0;n&&(n.nodeType===Node.ELEMENT_NODE&&r++,n!==e);)n=n.nextSibling;return r}(o);if("all"==t)d&&(c=c.concat(c.filter(nP).map(function(e){return nA(e,d)})));else if("two"==t)c=c.slice(0,1),d&&(c=c.concat(c.filter(nP).map(function(e){return nA(e,d)})));else if("one"==t){var f=(0,x.CR)(c=c.slice(0,1),1)[0];d&&nP(f)&&(c=[nA(f,d)])}else"none"==t&&(c=[nT()],d&&(c=[nA(c[0],d)]));try{for(var h=(l=void 0,(0,x.XA)(c)),p=h.next();!p.done;p=h.next()){var f=p.value;f.level=a}}catch(e){l={error:e}}finally{try{p&&!p.done&&(u=h.return)&&u.call(h)}finally{if(l)throw l.error}}if(i.push(c),i.length>=v.seedMinLength&&(r=nE(i,n)))return"break";o=o.parentElement,a++}(););return(r||(r=nE(i,n)),!r&&n)?n():r}function nE(e,t){if(e.reduce(function(e,t){return e*t.length},1)>v.threshold)return t?t():null;var n,r,i=nj(function e(t,n){var r,i,o,a,s;return void 0===n&&(n=[]),(0,x.Jh)(this,function(l){switch(l.label){case 0:if(!(t.length>0))return[3,9];l.label=1;case 1:l.trys.push([1,6,7,8]),i=(r=(0,x.XA)(t[0])).next(),l.label=2;case 2:if(i.done)return[3,5];return o=i.value,[5,(0,x.XA)(e(t.slice(1,t.length),n.concat(o)))];case 3:l.sent(),l.label=4;case 4:return i=r.next(),[3,2];case 5:return[3,8];case 6:return a={error:l.sent()},[3,8];case 7:try{i&&!i.done&&(s=r.return)&&s.call(r)}finally{if(a)throw a.error}return[7];case 8:return[3,11];case 9:return[4,n];case 10:l.sent(),l.label=11;case 11:return[2]}})}(e));try{for(var o=(0,x.XA)(i),a=o.next();!a.done;a=o.next()){var s=a.value;if(nO(s))return s}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}function n_(e){for(var t=e[0],n=t.name,r=1;r<e.length;r++){var i=e[r].level||0;n=t.level===i-1?"".concat(e[r].name," > ").concat(n):"".concat(e[r].name," ").concat(n),t=e[r]}return n}function nC(e){return e.map(function(e){return e.penalty}).reduce(function(e,t){return e+t},0)}function nO(e){var t=n_(e);switch(y.querySelectorAll(t).length){case 0:throw Error("Can't select any node with this selector: ".concat(t));case 1:return!0;default:return!1}}function nT(){return{name:"*",penalty:3}}function nA(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function nP(e){return"html"!==e.name&&!e.name.startsWith("#")}function nI(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter(nR);return n.length>0?n:null}function nR(e){return null!=e}function nj(e){return(0,x.ev)([],(0,x.CR)(e),!1).sort(function(e,t){return nC(e)-nC(t)})}var nM=["input","select","textarea"],nN=function(e,t){return function(n,r){var i,o,a,s=e.pageUrlAllowlist,l=e.shouldTrackEventResolver,u=null===(o=null===(i=null==r?void 0:r.tagName)||void 0===i?void 0:i.toLowerCase)||void 0===o?void 0:o.call(i);if(!u)return!1;if(l)return l(n,r);if(!nB(window.location.href,s))return!1;var c=String(null==r?void 0:r.getAttribute("type"))||"";if("string"==typeof c)switch(c.toLowerCase()){case"hidden":case"password":return!1}if(t&&!t.some(function(e){var t;return!!(null===(t=null==r?void 0:r.matches)||void 0===t?void 0:t.call(r,e))}))return!1;switch(u){case"input":case"select":case"textarea":return"change"===n||"click"===n;default:var d=null===(a=null==window?void 0:window.getComputedStyle)||void 0===a?void 0:a.call(window,r);if(d&&"pointer"===d.getPropertyValue("cursor")&&"click"===n)return!0;return"click"===n}}},nD=function(e){return!(null==e||"string"==typeof e&&(/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))},nL=function(e){var t,n,r,i=null===(n=null===(t=null==e?void 0:e.tagName)||void 0===t?void 0:t.toLowerCase)||void 0===n?void 0:n.call(t),o=e instanceof HTMLElement&&(null===(r=e.getAttribute("contenteditable"))||void 0===r?void 0:r.toLowerCase())==="true";return!nM.includes(i)&&!o},nz=function(e){var t="";return nL(e)&&e.childNodes&&e.childNodes.length&&e.childNodes.forEach(function(e){var n="";e&&3===e.nodeType?e.textContent&&(n=e.textContent):n=nz(e),t+=n.split(/(\s+)/).filter(nD).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}),t},nF=function(e,t){var n,r,i="";try{return i=function(e,t){if(e.nodeType!==Node.ELEMENT_NODE)throw Error("Can't generate CSS selector for non-element node type.");if("html"===e.tagName.toLowerCase())return"html";var n,r={root:document.body,idName:function(e){return!0},className:function(e){return!0},tagName:function(e){return!0},attr:function(e,t){return!1},seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4};y=(n=(v=(0,x.pi)((0,x.pi)({},r),t)).root).nodeType===Node.DOCUMENT_NODE?n:n===r.root?n.ownerDocument:n;var i=nS(e,"all",function(){return nS(e,"two",function(){return nS(e,"one",function(){return nS(e,"none")})})});if(i){var o=nj(function e(t,n,r){var i,o,a;return void 0===r&&(r={counter:0,visited:new Map}),(0,x.Jh)(this,function(s){switch(s.label){case 0:if(!(t.length>2&&t.length>v.optimizedMinLength))return[3,5];i=1,s.label=1;case 1:var l;if(!(i<t.length-1))return[3,5];if(r.counter>v.maxNumberOfTries||(r.counter+=1,(o=(0,x.ev)([],(0,x.CR)(t),!1)).splice(i,1),a=n_(o),r.visited.has(a)))return[2];if(!(nO(o)&&(l=o,y.querySelector(n_(l))===n)))return[3,4];return[4,o];case 2:return s.sent(),r.visited.set(a,!0),[5,(0,x.XA)(e(o,n,r))];case 3:s.sent(),s.label=4;case 4:return i++,[3,1];case 5:return[2]}})}(i,e));return o.length>0&&(i=o[0]),n_(i)}throw Error("Selector was not found.")}(e,{className:function(e){return e!==tz},maxNumberOfTries:1e3})}catch(e){t&&t.warn("Failed to get selector with finder, use fallback strategy instead: ".concat(e.toString()))}var o=null===(r=null===(n=null==e?void 0:e.tagName)||void 0===n?void 0:n.toLowerCase)||void 0===r?void 0:r.call(n);o&&(i=o);var a=e.getAttribute("id"),s=e.getAttribute("class");if(a)i="#".concat(a);else if(s){var l=s.split(" ").filter(function(e){return e!==tz}).join(".");l&&(i="".concat(i,".").concat(l))}return i},nB=function(e,t){return!t||!t.length||t.some(function(t){return"string"==typeof t?e===t:e.match(t)})},n$=function(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return null==r||"object"==typeof r&&0===Object.keys(r).length||"string"==typeof r&&0===r.trim().length||(t[n]=r),t},{})},nV=function(e){var t,n=e.parentElement;if(!n)return"";try{t=n.querySelector(":scope>span,h1,h2,h3,h4,h5,h6")}catch(e){t=null}if(t){var r=t.textContent||"";return nD(r)?r:""}return nV(n)},nU=function(e,t){return e?t.some(function(t){var n;return null===(n=null==e?void 0:e.matches)||void 0===n?void 0:n.call(e,t)})?e:nU(null==e?void 0:e.parentElement,t):null},nW=function(e,t){if(!e)return{};var n,r,i,o=null===(i=null===(r=null==e?void 0:e.tagName)||void 0===r?void 0:r.toLowerCase)||void 0===i?void 0:i.call(r),a=nF(e,t);return n$(((n={})[tR]=o,n[tj]=nz(e),n[tM]=a,n[tN]=window.location.href.split("?")[0],n))},nq=function(e){return null!==e.event.target&&!!e.closestTrackedAncestor},nH=function(){function e(e){var t=(void 0===e?{}:e).origin,n=this;this.endpoint=tD,this.requestCallbacks={},this.onSelect=function(e){n.notify({action:"element-selected",data:e})},this.onTrack=function(e,t){"selector-mode-changed"===e?n.notify({action:"track-selector-mode-changed",data:t}):"selector-moved"===e&&n.notify({action:"track-selector-moved",data:t})},this.endpoint=void 0===t?tD:t}return e.prototype.notify=function(e){var t,n,r,i;null===(n=null===(t=this.logger)||void 0===t?void 0:t.debug)||void 0===n||n.call(t,"Message sent: ",JSON.stringify(e)),null===(i=null===(r=window.opener)||void 0===r?void 0:r.postMessage)||void 0===i||i.call(r,e,this.endpoint)},e.prototype.sendRequest=function(e,t,n){var r=this;void 0===n&&(n={timeout:15e3});var i="".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9)),o={id:i,action:e,args:t};return new Promise(function(t,a){r.requestCallbacks[i]={resolve:t,reject:a},r.notify(o),(null==n?void 0:n.timeout)>0&&setTimeout(function(){a(Error("".concat(e," timed out (id: ").concat(i,")"))),delete r.requestCallbacks[i]},n.timeout)})},e.prototype.handleResponse=function(e){var t;if(!this.requestCallbacks[e.id]){null===(t=this.logger)||void 0===t||t.warn("No callback found for request id: ".concat(e.id));return}this.requestCallbacks[e.id].resolve(e.responseData),delete this.requestCallbacks[e.id]},e.prototype.setup=function(e){var t=this,n=void 0===e?{}:e,r=n.logger,i=n.endpoint,o=n.isElementSelectable,a=n.cssSelectorAllowlist,s=n.actionClickAllowlist;this.logger=r,i&&this.endpoint===tD&&(this.endpoint=i);var l=null;window.addEventListener("message",function(e){if(null===(r=null===(n=t.logger)||void 0===n?void 0:n.debug)||void 0===r||r.call(n,"Message received: ",JSON.stringify(e)),t.endpoint===e.origin){var n,r,i,u,c,d=null==e?void 0:e.data,f=null==d?void 0:d.action;if(f){if("id"in d)null===(u=null===(i=t.logger)||void 0===i?void 0:i.debug)||void 0===u||u.call(i,"Received Response to previous request: ",JSON.stringify(e)),t.handleResponse(d);else if("ping"===f)t.notify({action:"pong"});else if("initialize-visual-tagging-selector"===f){var h,p=null==d?void 0:d.data;(h="https://cdn.amplitude.com/libs/visual-tagging-selector-1.0.0-alpha.js.gz",new Promise(function(e,t){var n;try{var r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src=h,r.addEventListener("load",function(){e({status:!0})},{once:!0}),r.addEventListener("error",function(){t({status:!1,message:"Failed to load the script ".concat(h)})}),null===(n=document.head)||void 0===n||n.appendChild(r)}catch(e){t(e)}})).then(function(){var e;l=null===(e=null==window?void 0:window.amplitudeVisualTaggingSelector)||void 0===e?void 0:e.call(window,{getEventTagProps:nW,isElementSelectable:function(e){return!o||o((null==p?void 0:p.actionType)||"click",e)},onTrack:t.onTrack,onSelect:t.onSelect,visualHighlightClass:tz,messenger:t,cssSelectorAllowlist:a,actionClickAllowlist:s}),t.notify({action:"selector-loaded"})}).catch(function(){var e;null===(e=t.logger)||void 0===e||e.warn("Failed to initialize visual tagging selector")})}else"close-visual-tagging-selector"===f&&(null===(c=null==l?void 0:l.close)||void 0===c||c.call(l))}}}),this.notify({action:"page-loaded"})},e}(),nZ=["id","class","style","value","onclick","onchange","oninput","onblur","onsubmit","onfocus","onkeydown","onkeyup","onkeypress","data-reactid","data-react-checksum","data-reactroot"],nG=["type"],nK=["svg","path","g"],nY=["password","hidden"];function nX(e,t){return nd(function(n,r){var i=0;n.subscribe(nf(r,function(n){return e.call(t,n,i++)&&r.next(n)}))})}var nJ=function(e){function t(t,n){return e.call(this)||this}return(0,x.ZT)(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(tq),nQ={setInterval:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=nQ.delegate;return(null==i?void 0:i.setInterval)?i.setInterval.apply(i,(0,x.ev)([e,t],(0,x.CR)(n))):setInterval.apply(void 0,(0,x.ev)([e,t],(0,x.CR)(n)))},clearInterval:function(e){var t=nQ.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},n0=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return(0,x.ZT)(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n,r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,t)),this.pending=!0,this.delay=t,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),nQ.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;null!=t&&nQ.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,r=!1;try{this.work(e)}catch(e){r=!0,n=e||Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,tW(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(nJ),n1={now:function(){return(n1.delegate||Date).now()},delegate:void 0},n2=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=n1.now,e}(),n5=new(function(e){function t(t,n){void 0===n&&(n=n2.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r}return(0,x.ZT)(t,e),t.prototype.flush=function(e){var t,n=this.actions;if(this._active){n.push(e);return}this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=n.shift());if(this._active=!1,t){for(;e=n.shift();)e.unsubscribe();throw t}},t}(n2))(n0);function n3(e){return void 0===e&&(e=1/0),ng(ne,e)}var n4=new nt(function(e){return e.complete()});function n6(e){return e&&tB(e.schedule)}function n9(e){return e[e.length-1]}function n8(e){return n6(n9(e))?e.pop():void 0}function n7(e,t){return void 0===t&&(t=0),nd(function(n,r){n.subscribe(nf(r,function(n){return nm(r,e,function(){return r.next(n)},t)},function(){return nm(r,e,function(){return r.complete()},t)},function(n){return nm(r,e,function(){return r.error(n)},t)}))})}function re(e,t){return void 0===t&&(t=0),nd(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function rt(e,t){if(!e)throw Error("Iterable cannot be null");return new nt(function(n){nm(n,t,function(){var r=e[Symbol.asyncIterator]();nm(n,t,function(){r.next().then(function(e){e.done?n.complete():n.next(e.value)})},0,!0)})})}function rn(e,t){return t?function(e,t){if(null!=e){if(tB(e[t7]))return nu(e).pipe(re(t),n7(t));if(tF(e))return new nt(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})});if(t$(e))return nu(e).pipe(re(t),n7(t));if(nr(e))return rt(e,t);if(na(e))return new nt(function(n){var r;return nm(n,t,function(){r=e[no](),nm(n,t,function(){var e,t,i;try{t=(e=r.next()).value,i=e.done}catch(e){n.error(e);return}i?n.complete():n.next(t)},0,!0)}),function(){return tB(null==r?void 0:r.return)&&r.return()}});if(nl(e))return rt(ns(e),t)}throw ni(e)}(e,t):nu(e)}function rr(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=n8(t),i=(e=1/0,"number"==typeof n9(t)?t.pop():e);return t.length?1===t.length?nu(t[0]):n3(i)(rn(t,r)):n4}function ri(e){return e<=0?function(){return n4}:nd(function(t,n){var r=0;t.subscribe(nf(n,function(t){++r<=e&&(n.next(t),e<=r&&n.complete())}))})}function ro(e){return e instanceof Date&&!isNaN(e)}var ra=tV(function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}});function rs(e){throw new ra(e)}(u=b||(b={})).ClickObservable="clickObservable",u.ChangeObservable="changeObservable",u.NavigateObservable="navigateObservable",u.MutationObservable="mutationObservable";var rl=function(e){void 0===e&&(e={});var t,n,r,i=e.dataAttributePrefix,o=void 0===i?"data-amp-track-":i,a=e.visualTaggingOptions,s=void 0===a?{enabled:!0,messenger:new nH}:a;e.cssSelectorAllowlist=null!==(t=e.cssSelectorAllowlist)&&void 0!==t?t:tA,e.actionClickAllowlist=null!==(n=e.actionClickAllowlist)&&void 0!==n?n:tP,e.debounceTime=null!==(r=e.debounceTime)&&void 0!==r?r:0;var l="@amplitude/plugin-autocapture-browser",u=[],c=void 0,d=function(){var e,t,n=nw(document,"click",{capture:!0}).pipe(np(function(e){return h(e,"click")})),r=nw(document,"change",{capture:!0}).pipe(np(function(e){return h(e,"change")}));window.navigation&&(t=nw(window.navigation,"navigate").pipe(np(function(e){return h(e,"navigate")})));var i=new nt(function(e){var t=new MutationObserver(function(t){e.next(t)});return t.observe(document.body,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),function(){return t.disconnect()}}).pipe(np(function(e){return h(e,"mutation")}));return(e={})[b.ClickObservable]=n,e[b.ChangeObservable]=r,e[b.NavigateObservable]=t,e[b.MutationObservable]=i,e},f=function(e,t){var n,r,i,a,s=null===(a=null===(i=null==t?void 0:t.tagName)||void 0===i?void 0:i.toLowerCase)||void 0===a?void 0:a.call(i),l="function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{left:null,top:null},u=t.getAttribute("aria-label"),d=t.getAttributeNames().reduce(function(e,n){if(n.startsWith(o)){var r=n.replace(o,""),i=t.getAttribute(n);r&&(e[r]=i||"")}return e},{}),f=nV(t),h=nF(t,c),p=((r={})["[Amplitude] Element ID"]=t.getAttribute("id")||"",r["[Amplitude] Element Class"]=t.getAttribute("class"),r["[Amplitude] Element Hierarchy"]=(n=t)?function(e,t){for(var n=0,r=0;r<e.length;r++){var i=e[r];if(null===i)n+=4;else{var o=function e(t,n){void 0===n&&(n=!1);try{if(null==t){if(n)return"None";return null}if("string"==typeof t){if(n){if((t=t.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r")).includes('"'))return"'".concat(t,"'");if(t.includes("'"))return'"'.concat(t.replace(/'/g,"\\'"),'"');return"'".concat(t,"'")}return t}if("boolean"==typeof t)return t?"True":"False";if(Array.isArray(t)){var r=t.map(function(t){return e(t,!0)});return"[".concat(r.join(", "),"]")}else if("object"==typeof t){var i=Object.entries(t).filter(function(e){var t=(0,x.CR)(e,1)[0];return null!=t}).map(function(t){var n=(0,x.CR)(t,2),r=n[0],i=n[1];return"".concat(String(e(r,!0)),": ").concat(String(e(i,!0)))}),o="{".concat(i.join(", "),"}");return o.includes("\\'")&&(o=o.replace(/'/g,"'").replace(/'/g,"\\'")),o}return t.toString()}catch(e){return null}}(i);n+=o?Array.from(o).length:4}if(n>1024)return e.slice(0,r)}return e}((function(e){var t=[];if(!e)return t;t.push(e);for(var n=e.parentElement;n&&"HTML"!==n.tagName;)t.push(n),n=n.parentElement;return t})(n).map(function(e){return function(e){if(null===e)return null;var t,n,r,i,o,a,s=String(e.tagName).toLowerCase(),l={tag:s},u=Array.from(null!==(i=null===(r=e.parentElement)||void 0===r?void 0:r.children)&&void 0!==i?i:[]);u.length&&(l.index=u.indexOf(e),l.indexOfType=u.filter(function(t){return t.tagName===e.tagName}).indexOf(e));var c=null===(a=null===(o=e.previousElementSibling)||void 0===o?void 0:o.tagName)||void 0===a?void 0:a.toLowerCase();c&&(l.prevSib=String(c));var d=e.getAttribute("id");d&&(l.id=String(d));var f=Array.from(e.classList);f.length&&(l.classes=f);var h={},p=Array.from(e.attributes).filter(function(e){return!nZ.includes(e.name)}),m=!nL(e);if(!nY.includes(String(e.getAttribute("type")))&&!nK.includes(s))try{for(var g=(0,x.XA)(p),v=g.next();!v.done;v=g.next()){var y=v.value;(!m||nG.includes(y.name))&&(h[y.name]=String(y.value).substring(0,128))}}catch(e){t={error:e}}finally{try{v&&!v.done&&(n=g.return)&&n.call(g)}finally{if(t)throw t.error}}return Object.keys(h).length&&(l.attrs=h),l}(e)}),0):[],r[tR]=s,r[tj]=nz(t),r["[Amplitude] Element Position Left"]=null==l.left?null:Math.round(l.left),r["[Amplitude] Element Position Top"]=null==l.top?null:Math.round(l.top),r["[Amplitude] Element Aria Label"]=u,r["[Amplitude] Element Attributes"]=d,r[tM]=h,r["[Amplitude] Element Parent Label"]=f,r[tN]=window.location.href.split("?")[0],r["[Amplitude] Page Title"]="undefined"!=typeof document&&document.title||"",r["[Amplitude] Viewport Height"]=window.innerHeight,r["[Amplitude] Viewport Width"]=window.innerWidth,r);return"a"===s&&"click"===e&&t instanceof HTMLAnchorElement&&(p["[Amplitude] Element Href"]=t.href),n$(p)},h=function(t,n){var r={event:t,timestamp:Date.now(),type:n};if(("click"===r.type||"change"===r.type)&&null!==r.event.target){var i=nU(r.event.target,e.cssSelectorAllowlist);i&&(r.closestTrackedAncestor=i,r.targetElementProperties=f(r.type,i))}return r};return{name:l,type:"enrichment",setup:function(t,n){return(0,x.mG)(void 0,void 0,void 0,function(){var r,i,o,a,h,p,m,g,v,y;return(0,x.Jh)(this,function(b){var w,k,S,E,_,C,O,T,A,P,I,R,j,M,N,D,L,z,F,B,$,V,U,W,q,H,Z,G,K,Y,X,J,Q,ee;return c=t.loggerProvider,"undefined"==typeof document||(r=nN(e,e.cssSelectorAllowlist),i=nN(e,e.actionClickAllowlist),k=(w={allObservables:o=d(),options:e,amplitude:n,shouldTrackEvent:r}).amplitude,S=w.allObservables,E=w.options,_=w.shouldTrackEvent,A=rr((C=S.clickObservable).pipe(nd(function(e,t){var n,r=!1;e.subscribe(nf(t,function(e){var i=n;n=e,r&&t.next([i,e]),r=!0}))}),nX(function(e){var t=(0,x.CR)(e,2),n=t[0],r=t[1],i=n.event.target!==r.event.target,o=20>=Math.abs(r.event.screenX-n.event.screenX)&&20>=Math.abs(r.event.screenY-n.event.screenY);return i&&!o})),C.pipe((O=E.debounceTime,void 0===T&&(T=n5),nd(function(e,t){var n=null,r=null,i=null,o=function(){if(n){n.unsubscribe(),n=null;var e=r;r=null,t.next(e)}};function a(){var e=i+O,r=T.now();if(r<e){n=this.schedule(void 0,e-r),t.add(n);return}o()}e.subscribe(nf(t,function(e){r=e,i=T.now(),n||(n=T.schedule(a,O),t.add(n))},function(){o(),t.complete()},void 0,function(){r=n=null}))})),np(function(){return"timeout"}))),a=C.pipe((void 0===P&&(P=n5),I=0,R=P,void 0===I&&(I=0),void 0===j&&(j=n5),M=-1,null!=R&&(n6(R)?j=R:M=R),N=new nt(function(e){var t=ro(I)?+I-j.now():I;t<0&&(t=0);var n=0;return j.schedule(function(){e.closed||(e.next(n++),0<=M?this.schedule(void 0,M):e.complete())},t)}),function e(t,n){return n?function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n3(1)(rn(e,n8(e)))}(n.pipe(ri(1),nd(function(e,t){e.subscribe(nf(t,tX))})),r.pipe(e(t)))}:ng(function(e,n){return nu(t(e,n)).pipe(ri(1),np(function(){return e}))})}(function(){return N})),nX(nq),nX(function(e){return _("click",e.closestTrackedAncestor)}),nd(function(e,t){var n=[];return e.subscribe(nf(t,function(e){return n.push(e)},function(){t.next(n),t.complete()})),nu(A).subscribe(nf(t,function(){var e=n;n=[],t.next(e)},tX)),function(){n=null}})).subscribe(function(e){var t,n,r=(e.length,tI);try{for(var i=(0,x.XA)(e),o=i.next();!o.done;o=i.next()){var a=o.value;null==k||k.track(r,a.targetElementProperties,{time:a.timestamp})}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}),u.push(a),L=(D={allObservables:o,getEventProperties:f,amplitude:n,shouldTrackEvent:r}).amplitude,z=D.allObservables,F=D.getEventProperties,B=D.shouldTrackEvent,h=z.changeObservable.pipe(nX(nq),nX(function(e){return B("change",e.closestTrackedAncestor)})).subscribe(function(e){null==L||L.track("[Amplitude] Element Changed",F("change",e.closestTrackedAncestor))}),u.push(h),V=($={allObservables:o,options:e,getEventProperties:f,amplitude:n,shouldTrackEvent:r,shouldTrackActionClick:i}).amplitude,U=$.allObservables,W=$.options,q=$.getEventProperties,H=$.shouldTrackEvent,Z=$.shouldTrackActionClick,G=U.clickObservable,K=U.mutationObservable,Y=U.navigateObservable,X=G.pipe(nX(function(e){return!H("click",e.closestTrackedAncestor)}),np(function(e){var t=nU(e.event.target,W.actionClickAllowlist);return e.closestTrackedAncestor=t,null!==e.closestTrackedAncestor&&(e.targetElementProperties=q(e.type,e.closestTrackedAncestor)),e}),nX(nq),nX(function(e){return Z("click",e.closestTrackedAncestor)})),J=[K],Y&&J.push(Y),Q=rr.apply(void 0,(0,x.ev)([],(0,x.CR)(J),!1)),p=X.pipe((ee=function(e){return Q.pipe(ri(1),function(e,t){var n=ro(e)?{first:e}:"number"==typeof e?{each:e}:e,r=n.first,i=n.each,o=n.with,a=void 0===o?rs:o,s=n.scheduler,l=void 0===s?n5:s,u=n.meta,c=void 0===u?null:u;if(null==r&&null==i)throw TypeError("No timeout provided.");return nd(function(e,t){var n,o,s=null,u=0,d=function(e){o=nm(t,l,function(){try{n.unsubscribe(),nu(a({meta:c,lastValue:s,seen:u})).subscribe(t)}catch(e){t.error(e)}},e)};n=e.subscribe(nf(t,function(e){null==o||o.unsubscribe(),u++,t.next(s=e),i>0&&d(i)},void 0,void 0,function(){(null==o?void 0:o.closed)||null==o||o.unsubscribe(),s=null})),u||d(null!=r?"number"==typeof r?r:+r-l.now():i)})}({first:500,with:function(){return n4}}),np(function(){return e}))},nd(function(e,t){var n=null,r=0,i=!1,o=function(){return i&&!n&&t.complete()};e.subscribe(nf(t,function(e){null==n||n.unsubscribe(),nu(ee(e,r++)).subscribe(n=nf(t,function(e){return t.next(e)},function(){n=null,o()}))},function(){i=!0,o()}))}))).subscribe(function(e){null==V||V.track(tI,q("click",e.closestTrackedAncestor),{time:e.timestamp})}),u.push(p),null===(v=null==t?void 0:t.loggerProvider)||void 0===v||v.log("".concat(l," has been successfully added.")),window.opener&&s.enabled&&(m=e.cssSelectorAllowlist,g=e.actionClickAllowlist,null===(y=s.messenger)||void 0===y||y.setup((0,x.pi)((0,x.pi)({logger:null==t?void 0:t.loggerProvider},(null==t?void 0:t.serverZone)&&{endpoint:tL[t.serverZone]}),{isElementSelectable:nN(e,(0,x.ev)((0,x.ev)([],(0,x.CR)(m),!1),(0,x.CR)(g),!1)),cssSelectorAllowlist:m,actionClickAllowlist:g})))),[2]})})},execute:function(e){return(0,x.mG)(void 0,void 0,void 0,function(){return(0,x.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,x.mG)(void 0,void 0,void 0,function(){var e,t,n,r;return(0,x.Jh)(this,function(i){try{for(t=(e=(0,x.XA)(u)).next();!t.done;t=e.next())t.value.unsubscribe()}catch(e){n={error:e}}finally{try{t&&!t.done&&(r=e.return)&&r.call(e)}finally{if(n)throw n.error}}return[2]})})}}},ru={init:E((c=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,x.ZT)(t,e),t.prototype.init=function(e,t,n){var r,i;return void 0===e&&(e=""),arguments.length>2?(r=t,i=n):"string"==typeof t?(r=t,i=void 0):(r=null==t?void 0:t.userId,i=t),_(this._init((0,x.pi)((0,x.pi)({},i),{userId:r,apiKey:e})))},t.prototype._init=function(t){return(0,x.mG)(this,void 0,void 0,function(){var n,r,i,o,a,s,l,u,c=this;return(0,x.Jh)(this,function(d){var f,h;switch(d.label){case 0:if(this.initializing)return[2];return this.initializing=!0,[4,tl(t.apiKey,t,this)];case 1:if(n=d.sent(),!t.fetchRemoteConfig)return[3,4];return[4,(f=n,(0,x.mG)(void 0,void 0,void 0,function(){var e;return(0,x.Jh)(this,function(t){switch(t.label){case 0:return[4,(e=new tT(f)).initialize()];case 1:return t.sent(),[2,e]}})}))];case 2:return[4,d.sent().generateJoinedConfig()];case 3:n=d.sent(),d.label=4;case 4:return[4,e.prototype._init.call(this,n)];case 5:if(d.sent(),this.logBrowserOptions(n),!K(this.config.defaultTracking))return[3,7];return r=K((h=this.config).defaultTracking)&&h.defaultTracking&&"object"==typeof h.defaultTracking&&h.defaultTracking.attribution&&"object"==typeof h.defaultTracking.attribution?(0,x.pi)({},h.defaultTracking.attribution):{},this.webAttribution=new ek(r,this.config),[4,this.webAttribution.init()];case 6:d.sent(),d.label=7;case 7:if(o=Number.isNaN(Number((i=ey()).ampSessionId))?void 0:Number(i.ampSessionId),this.setSessionId(null!==(u=null!==(l=null!==(s=t.sessionId)&&void 0!==s?s:o)&&void 0!==l?l:this.config.sessionId)&&void 0!==u?u:Date.now()),(a=ej(t.instanceName)).identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),!(null!==this.config.offline))return[3,9];return[4,this.add(tS()).promise];case 8:d.sent(),d.label=9;case 9:return[4,this.add(new z).promise];case 10:return d.sent(),[4,this.add(new eB).promise];case 11:return d.sent(),[4,this.add(new eD).promise];case 12:if(d.sent(),tk(this.config),!G(this.config.defaultTracking,"fileDownloads"))return[3,14];return this.config.loggerProvider.debug("Adding file download tracking plugin"),[4,this.add(tx()).promise];case 13:d.sent(),d.label=14;case 14:if(!G(this.config.defaultTracking,"formInteractions"))return[3,16];return this.config.loggerProvider.debug("Adding form interaction plugin"),[4,this.add(tv()).promise];case 15:d.sent(),d.label=16;case 16:if(!Y(this.config.defaultTracking))return[3,18];return this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(th(ee(this.config))).promise];case 17:d.sent(),d.label=18;case 18:if(!J(this.config.autocapture))return[3,20];return this.config.loggerProvider.debug("Adding user interactions plugin (autocapture plugin)"),[4,this.add(rl(Q(this.config))).promise];case 19:d.sent(),d.label=20;case 20:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 21:return d.sent(),a.eventBridge.setEventReceiver(function(e){c.track(e.eventType,e.eventProperties)}),[2]}})})},t.prototype.getUserId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.userId},t.prototype.setUserId=function(e){if(!this.config){this.q.push(this.setUserId.bind(this,e));return}this.config.loggerProvider.debug("function setUserId: ",e),(e!==this.config.userId||void 0===e)&&(this.config.userId=e,eM(e,this.config.instanceName))},t.prototype.getDeviceId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.deviceId},t.prototype.setDeviceId=function(e){if(!this.config){this.q.push(this.setDeviceId.bind(this,e));return}this.config.loggerProvider.debug("function setDeviceId: ",e),this.config.deviceId=e,eN(e,this.config.instanceName)},t.prototype.reset=function(){this.setDeviceId(D()),this.setUserId(void 0)},t.prototype.getSessionId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.sessionId},t.prototype.setSessionId=function(e){var t,n=[];if(!this.config)return this.q.push(this.setSessionId.bind(this,e)),_(Promise.resolve());if(e===this.config.sessionId)return _(Promise.resolve());this.config.loggerProvider.debug("function setSessionId: ",e);var r=this.getSessionId(),i=this.config.lastEventTime,o=null!==(t=this.config.lastEventId)&&void 0!==t?t:-1;this.config.sessionId=e,this.config.lastEventTime=void 0,this.config.pageCounter=0,X(this.config.defaultTracking)&&(r&&i&&n.push(this.track(e9,void 0,{device_id:this.previousSessionDeviceId,event_id:++o,session_id:r,time:i+1,user_id:this.previousSessionUserId}).promise),this.config.lastEventTime=this.config.sessionId);var a=this.trackCampaignEventIfNeeded(++o,n);return X(this.config.defaultTracking)&&n.push(this.track(e6,void 0,{event_id:a?++o:o,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,_(Promise.all(n))},t.prototype.extendSession=function(){if(!this.config){this.q.push(this.extendSession.bind(this));return}this.config.lastEventTime=Date.now()},t.prototype.setTransport=function(e){if(!this.config){this.q.push(this.setTransport.bind(this,e));return}this.config.transportProvider=tc(e)},t.prototype.identify=function(t,n){if(ez(t)){var r=t._q;t._q=[],t=eL(new $,r)}return(null==n?void 0:n.user_id)&&this.setUserId(n.user_id),(null==n?void 0:n.device_id)&&this.setDeviceId(n.device_id),e.prototype.identify.call(this,t,n)},t.prototype.groupIdentify=function(t,n,r,i){if(ez(r)){var o=r._q;r._q=[],r=eL(new $,o)}return e.prototype.groupIdentify.call(this,t,n,r,i)},t.prototype.revenue=function(t,n){if(ez(t)){var r=t._q;t._q=[],t=eL(new V,r)}return e.prototype.revenue.call(this,t,n)},t.prototype.trackCampaignEventIfNeeded=function(e,t){if(!this.webAttribution||!this.webAttribution.shouldTrackNewCampaign)return!1;var n=this.webAttribution.generateCampaignEvent(e);return t?t.push(this.track(n).promise):this.track(n),this.config.loggerProvider.log("Tracking attribution."),!0},t.prototype.process=function(t){return(0,x.mG)(this,void 0,void 0,function(){var n,r,i;return(0,x.Jh)(this,function(o){return n=Date.now(),r=ew(this.config.sessionTimeout,this.config.lastEventTime),i=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),t.event_type===e6||t.event_type===e9||t.session_id&&t.session_id!==this.getSessionId()||(r||i?(this.setSessionId(n),i&&this.config.loggerProvider.log("Created a new session for new campaign.")):r||this.trackCampaignEventIfNeeded()),[2,e.prototype.process.call(this,t)]})})},t.prototype.logBrowserOptions=function(e){try{var t=(0,x.pi)((0,x.pi)({},e),{apiKey:e.apiKey.substring(0,10)+"********"});this.config.loggerProvider.debug("Initialized Amplitude with BrowserConfig:",JSON.stringify(t))}catch(e){this.config.loggerProvider.error("Error logging browser config",e)}},t}(Z))).init.bind(c),"init",w(c),S(c,["config"])),add:E(c.add.bind(c),"add",w(c),S(c,["config.apiKey","timeline.plugins"])),remove:E(c.remove.bind(c),"remove",w(c),S(c,["config.apiKey","timeline.plugins"])),track:E(c.track.bind(c),"track",w(c),S(c,["config.apiKey","timeline.queue.length"])),logEvent:E(c.logEvent.bind(c),"logEvent",w(c),S(c,["config.apiKey","timeline.queue.length"])),identify:E(c.identify.bind(c),"identify",w(c),S(c,["config.apiKey","timeline.queue.length"])),groupIdentify:E(c.groupIdentify.bind(c),"groupIdentify",w(c),S(c,["config.apiKey","timeline.queue.length"])),setGroup:E(c.setGroup.bind(c),"setGroup",w(c),S(c,["config.apiKey","timeline.queue.length"])),revenue:E(c.revenue.bind(c),"revenue",w(c),S(c,["config.apiKey","timeline.queue.length"])),flush:E(c.flush.bind(c),"flush",w(c),S(c,["config.apiKey","timeline.queue.length"])),getUserId:E(c.getUserId.bind(c),"getUserId",w(c),S(c,["config","config.userId"])),setUserId:E(c.setUserId.bind(c),"setUserId",w(c),S(c,["config","config.userId"])),getDeviceId:E(c.getDeviceId.bind(c),"getDeviceId",w(c),S(c,["config","config.deviceId"])),setDeviceId:E(c.setDeviceId.bind(c),"setDeviceId",w(c),S(c,["config","config.deviceId"])),reset:E(c.reset.bind(c),"reset",w(c),S(c,["config","config.userId","config.deviceId"])),getSessionId:E(c.getSessionId.bind(c),"getSessionId",w(c),S(c,["config"])),setSessionId:E(c.setSessionId.bind(c),"setSessionId",w(c),S(c,["config"])),extendSession:E(c.extendSession.bind(c),"extendSession",w(c),S(c,["config"])),setOptOut:E(c.setOptOut.bind(c),"setOptOut",w(c),S(c,["config"])),setTransport:E(c.setTransport.bind(c),"setTransport",w(c),S(c,["config"]))};ru.add,ru.extendSession,ru.flush,ru.getDeviceId,ru.getSessionId,ru.getUserId,ru.groupIdentify,ru.identify;var rc=ru.init,rd=(ru.logEvent,ru.remove,ru.reset,ru.revenue,ru.setDeviceId,ru.setGroup,ru.setOptOut,ru.setSessionId,ru.setTransport,ru.setUserId,ru.track)},76317:function(e,t,n){"use strict";n.d(t,{Z:function(){return W}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(n);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else n.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),i=Math.abs,o=String.fromCharCode,a=Object.assign;function s(e,t,n){return e.replace(t,n)}function l(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function c(e,t,n){return e.slice(t,n)}function d(e){return e.length}function f(e,t){return t.push(e),e}var h=1,p=1,m=0,g=0,v=0,y="";function b(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:h,column:p,length:a,return:""}}function x(e,t){return a(b("",null,null,"",null,null,0),e,{length:-e.length},t)}function w(){return v=g<m?u(y,g++):0,p++,10===v&&(p=1,h++),v}function k(){return u(y,g)}function S(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function E(e){return h=p=1,m=d(y=e),g=0,[]}function _(e){var t,n;return(t=g-1,n=function e(t){for(;w();)switch(v){case t:return g;case 34:case 39:34!==t&&39!==t&&e(v);break;case 40:41===t&&e(t);break;case 92:w()}return g}(91===e?e+2:40===e?e+1:e),c(y,t,n)).trim()}var C="-ms-",O="-moz-",T="-webkit-",A="comm",P="rule",I="decl",R="@keyframes";function j(e,t){for(var n="",r=e.length,i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function M(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case I:return e.return=e.return||e.value;case A:return"";case R:return e.return=e.value+"{"+j(e.children,r)+"}";case P:e.value=e.props.join(",")}return d(n=j(e.children,r))?e.return=e.value+"{"+n+"}":""}function N(e,t,n,r,o,a,l,u,d,f,h){for(var p=o-1,m=0===o?a:[""],g=m.length,v=0,y=0,x=0;v<r;++v)for(var w=0,k=c(e,p+1,p=i(y=l[v])),S=e;w<g;++w)(S=(y>0?m[w]+" "+k:s(k,/&\f/g,m[w])).trim())&&(d[x++]=S);return b(e,t,n,0===o?P:u,d,f,h)}function D(e,t,n,r){return b(e,t,n,I,c(e,0,r),c(e,r+1,-1),r)}var L=function(e,t,n){for(var r=0,i=0;r=i,i=k(),38===r&&12===i&&(t[n]=1),!S(i);)w();return c(y,e,g)},z=function(e,t){var n=-1,r=44;do switch(S(r)){case 0:38===r&&12===k()&&(t[n]=1),e[n]+=L(g-1,t,n);break;case 2:e[n]+=_(r);break;case 4:if(44===r){e[++n]=58===k()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}while(r=w());return e},F=function(e,t){var n;return n=z(E(e),t),y="",n},B=new WeakMap,$=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||B.get(n))&&!r){B.set(e,!0);for(var i=[],o=F(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[u]):a[u]+" "+o[s]}}},V=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},U=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case I:e.return=function e(t,n){switch(45^u(t,0)?(((n<<2^u(t,0))<<2^u(t,1))<<2^u(t,2))<<2^u(t,3):0){case 5103:return T+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return T+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return T+t+O+t+C+t+t;case 6828:case 4268:return T+t+C+t+t;case 6165:return T+t+C+"flex-"+t+t;case 5187:return T+t+s(t,/(\w+).+(:[^]+)/,T+"box-$1$2"+C+"flex-$1$2")+t;case 5443:return T+t+C+"flex-item-"+s(t,/flex-|-self/,"")+t;case 4675:return T+t+C+"flex-line-pack"+s(t,/align-content|flex-|-self/,"")+t;case 5548:return T+t+C+s(t,"shrink","negative")+t;case 5292:return T+t+C+s(t,"basis","preferred-size")+t;case 6060:return T+"box-"+s(t,"-grow","")+T+t+C+s(t,"grow","positive")+t;case 4554:return T+s(t,/([^-])(transform)/g,"$1"+T+"$2")+t;case 6187:return s(s(s(t,/(zoom-|grab)/,T+"$1"),/(image-set)/,T+"$1"),t,"")+t;case 5495:case 3959:return s(t,/(image-set\([^]*)/,T+"$1$`$1");case 4968:return s(s(t,/(.+:)(flex-)?(.*)/,T+"box-pack:$3"+C+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+T+t+t;case 4095:case 3583:case 4068:case 2532:return s(t,/(.+)-inline(.+)/,T+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(t)-1-n>6)switch(u(t,n+1)){case 109:if(45!==u(t,n+4))break;case 102:return s(t,/(.+:)(.+)-([^]+)/,"$1"+T+"$2-$3$1"+O+(108==u(t,n+3)?"$3":"$2-$3"))+t;case 115:return~l(t,"stretch")?e(s(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==u(t,n+1))break;case 6444:switch(u(t,d(t)-3-(~l(t,"!important")&&10))){case 107:return s(t,":",":"+T)+t;case 101:return s(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+T+(45===u(t,14)?"inline-":"")+"box$3$1"+T+"$2$3$1"+C+"$2box$3")+t}break;case 5936:switch(u(t,n+11)){case 114:return T+t+C+s(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return T+t+C+s(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return T+t+C+s(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return T+t+C+t+t}return t}(e.value,e.length);break;case R:return j([x(e,{value:s(e.value,"@","@"+T)})],r);case P:if(e.length){var i,o;return i=e.props,o=function(t){var n;switch(n=t,(n=/(::plac\w+|:read-\w+)/.exec(n))?n[0]:n){case":read-only":case":read-write":return j([x(e,{props:[s(t,/:(read-\w+)/,":"+O+"$1")]})],r);case"::placeholder":return j([x(e,{props:[s(t,/:(plac\w+)/,":"+T+"input-$1")]}),x(e,{props:[s(t,/:(plac\w+)/,":"+O+"$1")]}),x(e,{props:[s(t,/:(plac\w+)/,C+"input-$1")]})],r)}return""},i.map(o).join("")}}}],W=function(e){var t,n,i,a,m,x,C=e.key;if("css"===C){var O=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(O,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var T=e.stylisPlugins||U,P={},I=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+C+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)P[t[n]]=!0;I.push(e)});var R=(n=(t=[$,V].concat(T,[M,(i=function(e){x.insert(e)},function(e){!e.root&&(e=e.return)&&i(e)})])).length,function(e,r,i,o){for(var a="",s=0;s<n;s++)a+=t[s](e,r,i,o)||"";return a}),L=function(e){var t,n;return j((n=function e(t,n,r,i,a,m,x,E,C){for(var O,T=0,P=0,I=x,R=0,j=0,M=0,L=1,z=1,F=1,B=0,$="",V=a,U=m,W=i,q=$;z;)switch(M=B,B=w()){case 40:if(108!=M&&58==u(q,I-1)){-1!=l(q+=s(_(B),"&","&\f"),"&\f")&&(F=-1);break}case 34:case 39:case 91:q+=_(B);break;case 9:case 10:case 13:case 32:q+=function(e){for(;v=k();)if(v<33)w();else break;return S(e)>2||S(v)>3?"":" "}(M);break;case 92:q+=function(e,t){for(var n;--t&&w()&&!(v<48)&&!(v>102)&&(!(v>57)||!(v<65))&&(!(v>70)||!(v<97)););return n=g+(t<6&&32==k()&&32==w()),c(y,e,n)}(g-1,7);continue;case 47:switch(k()){case 42:case 47:f(b(O=function(e,t){for(;w();)if(e+v===57)break;else if(e+v===84&&47===k())break;return"/*"+c(y,t,g-1)+"*"+o(47===e?e:w())}(w(),g),n,r,A,o(v),c(O,2,-2),0),C);break;default:q+="/"}break;case 123*L:E[T++]=d(q)*F;case 125*L:case 59:case 0:switch(B){case 0:case 125:z=0;case 59+P:-1==F&&(q=s(q,/\f/g,"")),j>0&&d(q)-I&&f(j>32?D(q+";",i,r,I-1):D(s(q," ","")+";",i,r,I-2),C);break;case 59:q+=";";default:if(f(W=N(q,n,r,T,P,a,E,$,V=[],U=[],I),m),123===B){if(0===P)e(q,n,W,W,V,m,I,E,U);else switch(99===R&&110===u(q,3)?100:R){case 100:case 108:case 109:case 115:e(t,W,W,i&&f(N(t,W,W,0,0,a,E,$,a,V=[],I),U),a,U,I,E,i?V:U);break;default:e(q,W,W,W,[""],U,0,E,U)}}}T=P=j=0,L=F=1,$=q="",I=x;break;case 58:I=1+d(q),j=M;default:if(L<1){if(123==B)--L;else if(125==B&&0==L++&&125==(v=g>0?u(y,--g):0,p--,10===v&&(p=1,h--),v))continue}switch(q+=o(B),B*L){case 38:F=P>0?1:(q+="\f",-1);break;case 44:E[T++]=(d(q)-1)*F,F=1;break;case 64:45===k()&&(q+=_(w())),R=k(),P=I=d($=q+=function(e){for(;!S(k());)w();return c(y,e,g)}(g)),B++;break;case 45:45===M&&2==d(q)&&(L=0)}}return m}("",null,null,null,[""],t=E(t=e),0,[0],t),y="",n),R)};m=function(e,t,n,r){x=n,L(e?e+"{"+t.styles+"}":t.styles),r&&(z.inserted[t.name]=!0)};var z={key:C,sheet:new r({key:C,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:P,registered:{},insert:m};return z.sheet.hydrate(I),z}},74580:function(e,t,n){"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{Z:function(){return r}})},9116:function(e,t,n){"use strict";n.d(t,{E:function(){return x},T:function(){return h},_:function(){return d},a:function(){return m},c:function(){return y},h:function(){return g},w:function(){return f}});var r=n(66703),i=n(76317),o=n(52409),a=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}},s=n(37362),l=n(73513),u=n(93949),c=r.createContext("undefined"!=typeof HTMLElement?(0,i.Z)({key:"css"}):null);c.Provider;var d=function(){return(0,r.useContext)(c)},f=function(e){return(0,r.forwardRef)(function(t,n){return e(t,(0,r.useContext)(c),n)})},h=r.createContext({}),p=a(function(e){return a(function(t){return"function"==typeof t?t(e):(0,o.Z)({},e,t)})}),m=function(e){var t=r.useContext(h);return e.theme!==t&&(t=p(t)(e.theme)),r.createElement(h.Provider,{value:t},e.children)},g={}.hasOwnProperty,v="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",y=function(e,t){var n={};for(var r in t)g.call(t,r)&&(n[r]=t[r]);return n[v]=e,n},b=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,s.hC)(t,n,r),(0,u.L)(function(){return(0,s.My)(t,n,r)}),null},x=f(function(e,t,n){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var o=e[v],a=[i],u="";"string"==typeof e.className?u=(0,s.fp)(t.registered,a,e.className):null!=e.className&&(u=e.className+" ");var c=(0,l.O)(a,void 0,r.useContext(h));u+=t.key+"-"+c.name;var d={};for(var f in e)g.call(e,f)&&"css"!==f&&f!==v&&(d[f]=e[f]);return d.className=u,n&&(d.ref=n),r.createElement(r.Fragment,null,r.createElement(b,{cache:t,serialized:c,isStringTag:"string"==typeof o}),r.createElement(o,d))})},68312:function(e,t,n){"use strict";n.d(t,{F4:function(){return h},iv:function(){return f},tZ:function(){return c},xB:function(){return d}});var r,i,o=n(9116),a=n(66703),s=n(37362),l=n(93949),u=n(73513);n(76317),n(55829);var c=function(e,t){var n=arguments;if(null==t||!o.h.call(t,"css"))return a.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=o.E,i[1]=(0,o.c)(e,t);for(var s=2;s<r;s++)i[s]=n[s];return a.createElement.apply(null,i)};r=c||(c={}),i||(i=r.JSX||(r.JSX={}));var d=(0,o.w)(function(e,t){var n=e.styles,r=(0,u.O)([n],void 0,a.useContext(o.T)),i=a.useRef();return(0,l.j)(function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),i.current=[n,o],function(){n.flush()}},[t]),(0,l.j)(function(){var e=i.current,n=e[0];if(e[1]){e[1]=!1;return}if(void 0!==r.next&&(0,s.My)(t,r.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",r,n,!1)},[t,r.name]),null});function f(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,u.O)(t)}function h(){var e=f.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},73513:function(e,t,n){"use strict";n.d(t,{O:function(){return p}});var r,i={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=n(74580),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},c=(0,o.Z)(function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()}),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,function(e,t,n){return r={name:t,styles:n,next:r},t})}return 1===i[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function f(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return r={name:n.name,styles:n.styles,next:r},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)r={name:i.name,styles:i.styles,next:r},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=f(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":u(a)&&(r+=c(o)+":"+d(o,a)+";");else if(Array.isArray(a)&&"string"==typeof a[0]&&(null==t||void 0===t[a[0]]))for(var s=0;s<a.length;s++)u(a[s])&&(r+=c(o)+":"+d(o,a[s])+";");else{var l=f(e,t,a);switch(o){case"animation":case"animationName":r+=c(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}}return r}(e,t,n);case"function":if(void 0!==e){var o=r,a=n(e);return r=o,f(e,t,a)}}if(null==t)return n;var s=t[n];return void 0!==s?s:n}var h=/label:\s*([^\s;{]+)\s*(;|$)/g;function p(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i,o=!0,a="";r=void 0;var s=e[0];null==s||void 0===s.raw?(o=!1,a+=f(n,t,s)):a+=s[0];for(var l=1;l<e.length;l++)a+=f(n,t,e[l]),o&&(a+=s[l]);h.lastIndex=0;for(var u="";null!==(i=h.exec(a));)u+="-"+i[1];return{name:function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}(a)+u,styles:a,next:r}}},93949:function(e,t,n){"use strict";n.d(t,{L:function(){return a},j:function(){return s}});var r,i=n(66703),o=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,a=o||function(e){return e()},s=o||i.useLayoutEffect},37362:function(e,t,n){"use strict";function r(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}n.d(t,{My:function(){return o},fp:function(){return r},hC:function(){return i}});var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next;while(void 0!==o)}}},75242:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(52409),i=n(48111),o=n(66703);let a=o.createContext(null);function s(){return o.useContext(a)}var l="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",u=n(20130),c=function(e){let{children:t,theme:n}=e,i=s(),c=o.useMemo(()=>{let e=null===i?n:"function"==typeof n?n(i):(0,r.Z)({},i,n);return null!=e&&(e[l]=null!==i),e},[n,i]);return(0,u.jsx)(a.Provider,{value:c,children:t})},d=n(9116),f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=o.useContext(d.T);return t&&0!==Object.keys(t).length?t:e};let h=["value"],p=o.createContext();var m=function(e){let{value:t}=e,n=(0,i.Z)(e,h);return(0,u.jsx)(p.Provider,(0,r.Z)({value:null==t||t},n))};let g=o.createContext(void 0);var v=function(e){let{value:t,children:n}=e;return(0,u.jsx)(g.Provider,{value:t,children:n})};let y={};function b(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return o.useMemo(()=>{let o=e&&t[e]||t;if("function"==typeof n){let a=n(o),s=e?(0,r.Z)({},t,{[e]:a}):a;return i?()=>s:s}return e?(0,r.Z)({},t,{[e]:n}):(0,r.Z)({},t,n)},[e,t,n,i])}var x=function(e){let{children:t,theme:n,themeId:r}=e,i=f(y),o=s()||y,a=b(r,i,n),l=b(r,o,n,!0),h="rtl"===a.direction;return(0,u.jsx)(c,{theme:l,children:(0,u.jsx)(d.T.Provider,{value:a,children:(0,u.jsx)(m,{value:h,children:(0,u.jsx)(v,{value:null==a?void 0:a.components,children:t})})})})},w="$$material";let k=["theme"];function S(e){let{theme:t}=e,n=(0,i.Z)(e,k),o=t[w];return(0,u.jsx)(x,(0,r.Z)({},n,{themeId:o?w:void 0,theme:o||t}))}},9779:function(e,t,n){"use strict";n.d(t,{Z:function(){return eU}});var r=n(52409),i=n(48111),o=n(20139),a=n(66703);function s(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function l(e,t,n={clone:!0}){let i=n.clone?(0,r.Z)({},e):e;return s(e)&&s(t)&&Object.keys(t).forEach(r=>{a.isValidElement(t[r])?i[r]=t[r]:s(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&s(e[r])?i[r]=l(e[r],t[r],n):n.clone?i[r]=s(t[r])?function e(t){if(a.isValidElement(t)||!s(t))return t;let n={};return Object.keys(t).forEach(r=>{n[r]=e(t[r])}),n}(t[r]):t[r]:i[r]=t[r]}),i}let u={xs:0,sm:600,md:900,lg:1200,xl:1536},c={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${u[e]}px)`};function d(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let e=r.breakpoints||c;return t.reduce((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r),{})}if("object"==typeof t){let e=r.breakpoints||c;return Object.keys(t).reduce((r,i)=>(-1!==Object.keys(e.values||u).indexOf(i)?r[e.up(i)]=n(t[i],i):r[i]=t[i],r),{})}return n(t)}function f(e){if("string"!=typeof e)throw Error((0,o.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}function h(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){let n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function p(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:h(e,n)||r,t&&(i=t(i,r,e)),i}var m=function(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=e=>{if(null==e[t])return null;let o=e[t],a=h(e.theme,r)||{};return d(e,o,e=>{let r=p(a,i,e);return(e===r&&"string"==typeof e&&(r=p(a,i,`${t}${"default"===e?"":f(e)}`,e)),!1===n)?r:{[n]:r}})};return o.propTypes={},o.filterProps=[t],o},g=function(e,t){return t?l(e,t,{clone:!1}):e};let v={m:"margin",p:"padding"},y={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},b={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},x=function(e){let t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!b[e])return[e];e=b[e]}let[t,n]=e.split(""),r=v[t],i=y[n]||"";return Array.isArray(i)?i.map(e=>r+e):[r+i]}),w=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],k=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],S=[...w,...k];function E(e,t,n,r){var i;let o=null!=(i=h(e,t,!1))?i:n;return"number"==typeof o?e=>"string"==typeof e?e:o*e:Array.isArray(o)?e=>"string"==typeof e?e:o[e]:"function"==typeof o?o:()=>void 0}function _(e){return E(e,"spacing",8,"spacing")}function C(e,t){if("string"==typeof t||null==t)return t;let n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function O(e,t){let n=_(e.theme);return Object.keys(e).map(r=>(function(e,t,n,r){var i;if(-1===t.indexOf(n))return null;let o=(i=x(n),e=>i.reduce((t,n)=>(t[n]=C(r,e),t),{})),a=e[n];return d(e,a,o)})(e,t,r,n)).reduce(g,{})}function T(e){return O(e,w)}function A(e){return O(e,k)}function P(e){return O(e,S)}T.propTypes={},T.filterProps=w,A.propTypes={},A.filterProps=k,P.propTypes={},P.filterProps=S;var I=function(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?g(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n};function R(e){return"number"!=typeof e?e:`${e}px solid`}function j(e,t){return m({prop:e,themeKey:"borders",transform:t})}let M=j("border",R),N=j("borderTop",R),D=j("borderRight",R),L=j("borderBottom",R),z=j("borderLeft",R),F=j("borderColor"),B=j("borderTopColor"),$=j("borderRightColor"),V=j("borderBottomColor"),U=j("borderLeftColor"),W=j("outline",R),q=j("outlineColor"),H=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){let t=E(e.theme,"shape.borderRadius",4,"borderRadius");return d(e,e.borderRadius,e=>({borderRadius:C(t,e)}))}return null};H.propTypes={},H.filterProps=["borderRadius"],I(M,N,D,L,z,F,B,$,V,U,H,W,q);let Z=e=>{if(void 0!==e.gap&&null!==e.gap){let t=E(e.theme,"spacing",8,"gap");return d(e,e.gap,e=>({gap:C(t,e)}))}return null};Z.propTypes={},Z.filterProps=["gap"];let G=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){let t=E(e.theme,"spacing",8,"columnGap");return d(e,e.columnGap,e=>({columnGap:C(t,e)}))}return null};G.propTypes={},G.filterProps=["columnGap"];let K=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){let t=E(e.theme,"spacing",8,"rowGap");return d(e,e.rowGap,e=>({rowGap:C(t,e)}))}return null};K.propTypes={},K.filterProps=["rowGap"];let Y=m({prop:"gridColumn"}),X=m({prop:"gridRow"}),J=m({prop:"gridAutoFlow"}),Q=m({prop:"gridAutoColumns"}),ee=m({prop:"gridAutoRows"}),et=m({prop:"gridTemplateColumns"});function en(e,t){return"grey"===t?t:e}function er(e){return e<=1&&0!==e?`${100*e}%`:e}I(Z,G,K,Y,X,J,Q,ee,et,m({prop:"gridTemplateRows"}),m({prop:"gridTemplateAreas"}),m({prop:"gridArea"})),I(m({prop:"color",themeKey:"palette",transform:en}),m({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:en}),m({prop:"backgroundColor",themeKey:"palette",transform:en}));let ei=m({prop:"width",transform:er}),eo=e=>void 0!==e.maxWidth&&null!==e.maxWidth?d(e,e.maxWidth,t=>{var n,r;let i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||u[t];return i?(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:er(t)}}):null;eo.filterProps=["maxWidth"];let ea=m({prop:"minWidth",transform:er}),es=m({prop:"height",transform:er}),el=m({prop:"maxHeight",transform:er}),eu=m({prop:"minHeight",transform:er});m({prop:"size",cssProperty:"width",transform:er}),m({prop:"size",cssProperty:"height",transform:er}),I(ei,eo,ea,es,el,eu,m({prop:"boxSizing"}));var ec={border:{themeKey:"borders",transform:R},borderTop:{themeKey:"borders",transform:R},borderRight:{themeKey:"borders",transform:R},borderBottom:{themeKey:"borders",transform:R},borderLeft:{themeKey:"borders",transform:R},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:R},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:H},color:{themeKey:"palette",transform:en},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:en},backgroundColor:{themeKey:"palette",transform:en},p:{style:A},pt:{style:A},pr:{style:A},pb:{style:A},pl:{style:A},px:{style:A},py:{style:A},padding:{style:A},paddingTop:{style:A},paddingRight:{style:A},paddingBottom:{style:A},paddingLeft:{style:A},paddingX:{style:A},paddingY:{style:A},paddingInline:{style:A},paddingInlineStart:{style:A},paddingInlineEnd:{style:A},paddingBlock:{style:A},paddingBlockStart:{style:A},paddingBlockEnd:{style:A},m:{style:T},mt:{style:T},mr:{style:T},mb:{style:T},ml:{style:T},mx:{style:T},my:{style:T},margin:{style:T},marginTop:{style:T},marginRight:{style:T},marginBottom:{style:T},marginLeft:{style:T},marginX:{style:T},marginY:{style:T},marginInline:{style:T},marginInlineStart:{style:T},marginInlineEnd:{style:T},marginBlock:{style:T},marginBlockStart:{style:T},marginBlockEnd:{style:T},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Z},rowGap:{style:K},columnGap:{style:G},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:er},maxWidth:{style:eo},minWidth:{transform:er},height:{transform:er},maxHeight:{transform:er},minHeight:{transform:er},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};let ed=function(){function e(e,t,n,r){let i={[e]:t,theme:n},o=r[e];if(!o)return{[e]:t};let{cssProperty:a=e,themeKey:s,transform:l,style:u}=o;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};let c=h(n,s)||{};return u?u(i):d(i,t,t=>{let n=p(c,l,t);return(t===n&&"string"==typeof t&&(n=p(c,l,`${e}${"default"===t?"":f(t)}`,t)),!1===a)?n:{[a]:n}})}return function t(n){var r;let{sx:i,theme:o={}}=n||{};if(!i)return null;let a=null!=(r=o.unstable_sxConfig)?r:ec;function s(n){var r;let i=n;if("function"==typeof n)i=n(o);else if("object"!=typeof n)return n;if(!i)return null;let s=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{}))||{}}(o.breakpoints),l=Object.keys(s),u=s;return Object.keys(i).forEach(n=>{var r;let s="function"==typeof(r=i[n])?r(o):r;if(null!=s){if("object"==typeof s){if(a[n])u=g(u,e(n,s,o,a));else{let e=d({theme:o},s,e=>({[n]:e}));(function(...e){let t=new Set(e.reduce((e,t)=>e.concat(Object.keys(t)),[]));return e.every(e=>t.size===Object.keys(e).length)})(e,s)?u[n]=t({sx:s,theme:o}):u=g(u,e)}}else u=g(u,e(n,s,o,a))}}),r=u,l.reduce((e,t)=>{let n=e[t];return n&&0!==Object.keys(n).length||delete e[t],e},r)}return Array.isArray(i)?i.map(s):s(i)}}();ed.filterProps=["sx"];let ef=["values","unit","step"],eh=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>(0,r.Z)({},e,{[t.key]:t.val}),{})};var ep={borderRadius:4};function em(e,t){return this.vars&&"function"==typeof this.getColorSchemeSelector?{[this.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:this.palette.mode===e?t:{}}let eg=["breakpoints","palette","spacing","shape"];var ev=function(e={},...t){let{breakpoints:n={},palette:o={},spacing:a,shape:s={}}=e,u=(0,i.Z)(e,eg),c=function(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5}=e,a=(0,i.Z)(e,ef),s=eh(t),l=Object.keys(s);function u(e){let r="number"==typeof t[e]?t[e]:e;return`@media (min-width:${r}${n})`}function c(e){let r="number"==typeof t[e]?t[e]:e;return`@media (max-width:${r-o/100}${n})`}function d(e,r){let i=l.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[l[i]]?t[l[i]]:r)-o/100}${n})`}return(0,r.Z)({keys:l,values:s,up:u,down:c,between:d,only:function(e){return l.indexOf(e)+1<l.length?d(e,l[l.indexOf(e)+1]):u(e)},not:function(e){let t=l.indexOf(e);return 0===t?u(l[1]):t===l.length-1?c(l[t]):d(e,l[l.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},a)}(n),d=function(e=8){if(e.mui)return e;let t=_({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map(e=>{let n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(a),f=l({breakpoints:c,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},o),spacing:d,shape:(0,r.Z)({},ep,s)},u);return f.applyStyles=em,(f=t.reduce((e,t)=>l(e,t),f)).unstable_sxConfig=(0,r.Z)({},ec,null==u?void 0:u.unstable_sxConfig),f.unstable_sx=function(e){return ed({sx:e,theme:this})},f},ey=n(21443),eb={black:"#000",white:"#fff"},ex={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ew={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},ek={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},eS={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},eE={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},e_={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},eC={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};let eO=["mode","contrastThreshold","tonalOffset"],eT={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:eb.white,default:eb.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},eA={text:{primary:eb.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:eb.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function eP(e,t,n,r){let i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,ey.$n)(e.main,i):"dark"===t&&(e.dark=(0,ey._j)(e.main,o)))}let eI=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],eR={textTransform:"uppercase"},ej='"Roboto", "Helvetica", "Arial", sans-serif';function eM(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return["".concat(t[0],"px ").concat(t[1],"px ").concat(t[2],"px ").concat(t[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(t[4],"px ").concat(t[5],"px ").concat(t[6],"px ").concat(t[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(t[8],"px ").concat(t[9],"px ").concat(t[10],"px ").concat(t[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}let eN=["none",eM(0,2,1,-1,0,1,1,0,0,1,3,0),eM(0,3,1,-2,0,2,2,0,0,1,5,0),eM(0,3,3,-2,0,3,4,0,0,1,8,0),eM(0,2,4,-1,0,4,5,0,0,1,10,0),eM(0,3,5,-1,0,5,8,0,0,1,14,0),eM(0,3,5,-1,0,6,10,0,0,1,18,0),eM(0,4,5,-2,0,7,10,1,0,2,16,1),eM(0,5,5,-3,0,8,10,1,0,3,14,2),eM(0,5,6,-3,0,9,12,1,0,3,16,2),eM(0,6,6,-3,0,10,14,1,0,4,18,3),eM(0,6,7,-4,0,11,15,1,0,4,20,3),eM(0,7,8,-4,0,12,17,2,0,5,22,4),eM(0,7,8,-4,0,13,19,2,0,5,24,4),eM(0,7,9,-4,0,14,21,2,0,5,26,4),eM(0,8,9,-5,0,15,22,2,0,6,28,5),eM(0,8,10,-5,0,16,24,2,0,6,30,5),eM(0,8,11,-5,0,17,26,2,0,6,32,5),eM(0,9,11,-5,0,18,28,2,0,7,34,6),eM(0,9,12,-6,0,19,29,2,0,7,36,6),eM(0,10,13,-6,0,20,31,3,0,8,38,7),eM(0,10,13,-6,0,21,33,3,0,8,40,7),eM(0,10,14,-6,0,22,35,3,0,8,42,7),eM(0,11,14,-7,0,23,36,3,0,9,44,8),eM(0,11,15,-7,0,24,38,3,0,9,46,8)],eD=["duration","easing","delay"],eL={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ez={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function eF(e){return"".concat(Math.round(e),"ms")}function eB(e){if(!e)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}var e$={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};let eV=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];var eU=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t,n=arguments.length,a=Array(n>1?n-1:0),s=1;s<n;s++)a[s-1]=arguments[s];let{mixins:u={},palette:c={},transitions:d={},typography:f={}}=e,h=(0,i.Z)(e,eV);if(e.vars)throw Error((0,o.Z)(18));let p=function(e){let{mode:t="light",contrastThreshold:n=3,tonalOffset:a=.2}=e,s=(0,i.Z)(e,eO),u=e.primary||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:eE[200],light:eE[50],dark:eE[400]}:{main:eE[700],light:eE[400],dark:eE[800]}}(t),c=e.secondary||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:ew[200],light:ew[50],dark:ew[400]}:{main:ew[500],light:ew[300],dark:ew[700]}}(t),d=e.error||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:ek[500],light:ek[300],dark:ek[700]}:{main:ek[700],light:ek[400],dark:ek[800]}}(t),f=e.info||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:e_[400],light:e_[300],dark:e_[700]}:{main:e_[700],light:e_[500],dark:e_[900]}}(t),h=e.success||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:eC[400],light:eC[300],dark:eC[700]}:{main:eC[800],light:eC[500],dark:eC[900]}}(t),p=e.warning||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:eS[400],light:eS[300],dark:eS[700]}:{main:"#ed6c02",light:eS[500],dark:eS[900]}}(t);function m(e){return(0,ey.mi)(e,eA.text.primary)>=n?eA.text.primary:eT.text.primary}let g=e=>{let{color:t,name:n,mainShade:i=500,lightShade:s=300,darkShade:l=700}=e;if(!(t=(0,r.Z)({},t)).main&&t[i]&&(t.main=t[i]),!t.hasOwnProperty("main"))throw Error((0,o.Z)(11,n?" (".concat(n,")"):"",i));if("string"!=typeof t.main)throw Error((0,o.Z)(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return eP(t,"light",s,a),eP(t,"dark",l,a),t.contrastText||(t.contrastText=m(t.main)),t};return l((0,r.Z)({common:(0,r.Z)({},eb),mode:t,primary:g({color:u,name:"primary"}),secondary:g({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:d,name:"error"}),warning:g({color:p,name:"warning"}),info:g({color:f,name:"info"}),success:g({color:h,name:"success"}),grey:ex,contrastThreshold:n,getContrastText:m,augmentColor:g,tonalOffset:a},{dark:eA,light:eT}[t]),s)}(c),m=ev(e),g=l(m,{mixins:(t=m.breakpoints,(0,r.Z)({toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}}},u)),palette:p,shadows:eN.slice(),typography:function(e,t){let n="function"==typeof t?t(e):t,{fontFamily:o=ej,fontSize:a=14,fontWeightLight:s=300,fontWeightRegular:u=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:f=16,allVariants:h,pxToRem:p}=n,m=(0,i.Z)(n,eI),g=a/14,v=p||(e=>"".concat(e/f*g,"rem")),y=(e,t,n,i,a)=>(0,r.Z)({fontFamily:o,fontWeight:e,fontSize:v(t),lineHeight:n},o===ej?{letterSpacing:"".concat(Math.round(i/t*1e5)/1e5,"em")}:{},a,h),b={h1:y(s,96,1.167,-1.5),h2:y(s,60,1.2,-.5),h3:y(u,48,1.167,0),h4:y(u,34,1.235,.25),h5:y(u,24,1.334,0),h6:y(c,20,1.6,.15),subtitle1:y(u,16,1.75,.15),subtitle2:y(c,14,1.57,.1),body1:y(u,16,1.5,.15),body2:y(u,14,1.43,.15),button:y(c,14,1.75,.4,eR),caption:y(u,12,1.66,.4),overline:y(u,12,2.66,1,eR),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return l((0,r.Z)({htmlFontSize:f,pxToRem:v,fontFamily:o,fontSize:a,fontWeightLight:s,fontWeightRegular:u,fontWeightMedium:c,fontWeightBold:d},b),m,{clone:!1})}(p,f),transitions:function(e){let t=(0,r.Z)({},eL,e.easing),n=(0,r.Z)({},ez,e.duration);return(0,r.Z)({getAutoHeightDuration:eB,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{duration:o=n.standard,easing:a=t.easeInOut,delay:s=0}=r;return(0,i.Z)(r,eD),(Array.isArray(e)?e:[e]).map(e=>"".concat(e," ").concat("string"==typeof o?o:eF(o)," ").concat(a," ").concat("string"==typeof s?s:eF(s))).join(",")}},e,{easing:t,duration:n})}(d),zIndex:(0,r.Z)({},e$)});return g=l(g,h),(g=a.reduce((e,t)=>l(e,t),g)).unstable_sxConfig=(0,r.Z)({},ec,null==h?void 0:h.unstable_sxConfig),g.unstable_sx=function(e){return ed({sx:e,theme:this})},g}},21443:function(e,t,n){"use strict";var r=n(51982);t._j=function(e,t){if(e=s(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return l(e)},t.mi=function(e,t){let n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.$n=function(e,t){if(e=s(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return l(e)};var i=r(n(53585)),o=r(n(543));function a(e,t=0,n=1){return(0,o.default)(e,t,n)}function s(e){let t;if(e.type)return e;if("#"===e.charAt(0))return s(function(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));let n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw Error((0,i.default)(9,e));let o=e.substring(n+1,e.length-1);if("color"===r){if(t=(o=o.split(" ")).shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(t))throw Error((0,i.default)(10,t))}else o=o.split(",");return{type:r,values:o=o.map(e=>parseFloat(e)),colorSpace:t}}function l(e){let{type:t,colorSpace:n}=e,{values:r}=e;return -1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function u(e){let t="hsl"===(e=s(e)).type||"hsla"===e.type?s(function(e){let{values:t}=e=s(e),n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1),u="rgb",c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),l({type:u,values:c})}(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}},543:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var r=function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}},20139:function(e,t,n){"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{Z:function(){return r}})},53585:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.Z}});var r=n(20139)},93790:function(e,t,n){"use strict";let r,i,o,a,s;n.d(t,{SV:function(){return tC}});let l=Object.prototype.toString;function u(e){switch(l.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return b(e,Error)}}function c(e,t){return l.call(e)===`[object ${t}]`}function d(e){return c(e,"ErrorEvent")}function f(e){return c(e,"DOMError")}function h(e){return c(e,"String")}function p(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function m(e){return null===e||p(e)||"object"!=typeof e&&"function"!=typeof e}function g(e){return c(e,"Object")}function v(e){return"undefined"!=typeof Event&&b(e,Event)}function y(e){return!!(e&&e.then&&"function"==typeof e.then)}function b(e,t){try{return e instanceof t}catch(e){return!1}}function x(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}function w(e){return e&&e.Math==Math?e:void 0}let k="object"==typeof globalThis&&w(globalThis)||"object"==typeof window&&w(window)||"object"==typeof self&&w(self)||"object"==typeof n.g&&w(n.g)||function(){return this}()||{};function S(e,t,n){let r=n||k,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}function E(){let e=k.crypto||k.msCrypto,t=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(t=()=>{let t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(e){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&t())>>e/4).toString(16))}function _(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function C(e){let{message:t,event_id:n}=e;if(t)return t;let r=_(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function O(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function T(e,t){let n=_(e);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...r&&r.data,...t.data};n.mechanism.data=e}}function A(){return Date.now()/1e3}let P=function(){let{performance:e}=k;if(!e||!e.now)return A;let t=Date.now()-e.now(),n=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();(()=>{let{performance:e}=k;if(!e||!e.now)return;let t=e.now(),n=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,i=e.timing&&e.timing.navigationStart,o="number"==typeof i?Math.abs(i+t-n):36e5;if(r<36e5||o<36e5)return r<=o?e.timeOrigin:void 0})();let I="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,R=["debug","info","warn","error","log","assert","trace"],j={};function M(e){if(!("console"in k))return e();let t=k.console,n={},r=Object.keys(j);r.forEach(e=>{let r=j[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}let N=function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return I?R.forEach(n=>{t[n]=(...t)=>{e&&M(()=>{k.console[n](`Sentry Logger [${n}]:`,...t)})}}):R.forEach(e=>{t[e]=()=>void 0}),t}(),D="production",L="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;(tw=tk||(tk={}))[tw.PENDING=0]="PENDING",tw[tw.RESOLVED=1]="RESOLVED",tw[tw.REJECTED=2]="REJECTED";class z{constructor(e){z.prototype.__init.call(this),z.prototype.__init2.call(this),z.prototype.__init3.call(this),z.prototype.__init4.call(this),this._state=tk.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new z((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new z((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{if(i){n(r);return}t(r)})})}__init(){this._resolve=e=>{this._setResult(tk.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(tk.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===tk.PENDING){if(y(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===tk.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===tk.RESOLVED&&e[1](this._value),this._state===tk.REJECTED&&e[2](this._value),e[0]=!0)})}}}function F(e,t={}){if(!e)return"<unknown>";try{let n,r=e,i=[],o=0,a=0,s=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||80;for(;r&&o++<5&&(n=function(e,t){let n,r,i,o,a;let s=[];if(!e||!e.tagName)return"";if(k.HTMLElement&&e instanceof HTMLElement&&e.dataset&&e.dataset.sentryComponent)return e.dataset.sentryComponent;s.push(e.tagName.toLowerCase());let l=t&&t.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(l&&l.length)l.forEach(e=>{s.push(`[${e[0]}="${e[1]}"]`)});else if(e.id&&s.push(`#${e.id}`),(n=e.className)&&h(n))for(a=0,r=n.split(/\s+/);a<r.length;a++)s.push(`.${r[a]}`);let u=["aria-label","type","name","title","alt"];for(a=0;a<u.length;a++)i=u[a],(o=e.getAttribute(i))&&s.push(`[${i}="${o}"]`);return s.join("")}(r,s),"html"!==n&&(!(o>1)||!(a+3*i.length+n.length>=l)));)i.push(n),a+=n.length,r=r.parentNode;return i.reverse().join(" > ")}catch(e){return"<unknown>"}}function B(e,t=0){return"string"!=typeof e||0===t?e:e.length<=t?e:`${e.slice(0,t)}...`}function $(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t<e.length;t++){let r=e[t];try{x(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function V(e,t=[],n=!1){return t.some(t=>(function(e,t,n=!1){return!!h(e)&&(c(t,"RegExp")?t.test(e):!!h(t)&&(n?e===t:e.includes(t)))})(e,t,n))}function U(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);"function"==typeof i&&q(i,r),e[t]=i}function W(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){I&&N.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function q(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,W(e,"__sentry_original__",t)}catch(e){}}function H(e){return e.__sentry_original__}function Z(e){if(u(e))return{message:e.message,name:e.name,stack:e.stack,...K(e)};if(!v(e))return e;{let t={type:e.type,target:G(e.target),currentTarget:G(e.currentTarget),...K(e)};return"undefined"!=typeof CustomEvent&&b(e,CustomEvent)&&(t.detail=e.detail),t}}function G(e){try{return"undefined"!=typeof Element&&b(e,Element)?F(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function K(e){if("object"!=typeof e||null===e)return{};{let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}function Y(e){return function e(t,n){if(function(e){if(!g(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(t)){let r=n.get(t);if(void 0!==r)return r;let i={};for(let r of(n.set(t,i),Object.keys(t)))void 0!==t[r]&&(i[r]=e(t[r],n));return i}if(Array.isArray(t)){let r=n.get(t);if(void 0!==r)return r;let i=[];return n.set(t,i),t.forEach(t=>{i.push(e(t,n))}),i}return t}(e,new Map)}function X(e,t={}){if(!t.user||(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||P(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:E()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function J(e){return e.transaction}function Q(e){return"function"==typeof e.getSpanJSON?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}class ee{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=et()}static clone(e){return e?e.clone():new ee}clone(){let e=new ee;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&X(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e;if(t instanceof ee){let e=t.getScopeData();this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&Object.keys(e.user).length&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint.length&&(this._fingerprint=e.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),e.propagationContext&&(this._propagationContext=e.propagationContext)}else g(t)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext));return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=et(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:A(),...e},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){let{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:r,_extra:i,_user:o,_level:a,_fingerprint:s,_eventProcessors:l,_propagationContext:u,_sdkProcessingMetadata:c,_transactionName:d,_span:f}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:r,extra:i,user:o,level:a,fingerprint:s||[],eventProcessors:l,propagationContext:u,sdkProcessingMetadata:c,transactionName:d,span:f}}applyToEvent(e,t={},n=[]){return!function(e,t){var n;let{fingerprint:r,span:i,breadcrumbs:o,sdkProcessingMetadata:a}=t;(function(e,t){let{extra:n,tags:r,user:i,contexts:o,level:a,transactionName:s}=t,l=Y(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});let u=Y(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});let c=Y(i);c&&Object.keys(c).length&&(e.user={...c,...e.user});let d=Y(o);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),a&&(e.level=a),s&&(e.transaction=s)})(e,t),i&&function(e,t){e.contexts={trace:function(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:o,status:a,tags:s,origin:l}=Q(e);return Y({data:r,op:i,parent_span_id:o,span_id:t,status:a,tags:s,trace_id:n,origin:l})}(t),...e.contexts};let n=J(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:function(e){let t=ep();if(!t)return{};let n=function(e,t,n){let r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:o}=n&&n.getUser()||{},a=Y({environment:r.environment||D,release:r.release,user_segment:o,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",a),a}(Q(e).trace_id||"",t,ea().getScope()),r=J(e);if(!r)return n;let i=r&&r._frozenDynamicSamplingContext;if(i)return i;let{sampleRate:o,source:a}=r.metadata;null!=o&&(n.sample_rate=`${o}`);let s=Q(r);return a&&"url"!==a&&(n.transaction=s.description),n.sampled=String(function(e){let{traceFlags:t}=e.spanContext();return!!(1&t)}(r)),t.emit&&t.emit("createDsc",n),n}(t),...e.sdkProcessingMetadata};let r=Q(n).description;r&&(e.tags={transaction:r,...e.tags})}}(e,i),e.fingerprint=e.fingerprint?Array.isArray(n=e.fingerprint)?n:[n]:[],r&&(e.fingerprint=e.fingerprint.concat(r)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint,function(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...a}}(e,this.getScopeData()),function e(t,n,r,i=0){return new z((o,a)=>{let s=t[i];if(null===n||"function"!=typeof s)o(n);else{let l=s({...n},r);L&&s.id&&null===l&&N.log(`Event processor "${s.id}" dropped event`),y(l)?l.then(n=>e(t,n,r,i+1).then(o)).then(null,a):e(t,l,r,i+1).then(o).then(null,a)}})}([...n,...S("globalEventProcessors",()=>[]),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t&&t.event_id?t.event_id:E();if(!this._client)return N.warn("No client configured on scope - will not capture exception!"),n;let r=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n&&n.event_id?n.event_id:E();if(!this._client)return N.warn("No client configured on scope - will not capture message!"),r;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:E();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):N.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function et(){return{traceId:E(),spanId:E().substring(16)}}let en=parseFloat("7.120.3");class er{constructor(e,t,n,r=en){let i,o;this._version=r,t?i=t:(i=new ee).setClient(e),n?o=n:(o=new ee).setClient(e),this._stack=[{scope:i}],e&&this.bindClient(e),this._isolationScope=o}isOlderThan(e){return this._version<e}bindClient(e){let t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){let e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){let t;let n=this.pushScope();try{t=e(n)}catch(e){throw this.popScope(),e}return y(t)?t.then(e=>(this.popScope(),e),e=>{throw this.popScope(),e}):(this.popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){let n=this._lastEventId=t&&t.event_id?t.event_id:E(),r=Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:r,...t,event_id:n}),n}captureMessage(e,t,n){let r=this._lastEventId=n&&n.event_id?n.event_id:E(),i=Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r}),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:E();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){let{scope:n,client:r}=this.getStackTop();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=100}=r.getOptions&&r.getOptions()||{};if(o<=0)return;let a={timestamp:A(),...e},s=i?M(()=>i(a,t)):a;null!==s&&(r.emit&&r.emit("beforeAddBreadcrumb",s,t),n.addBreadcrumb(s,o))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){let{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){let t=eo(this);try{e(this)}finally{eo(t)}}getIntegration(e){let t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return L&&N.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){let n=this._callExtensionMethod("startTransaction",e,t);return L&&!n&&(this.getClient()?N.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
2
2
  Sentry.addTracingExtensions();
3
3
  Sentry.init({...});
4
4
  `):N.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){let e=this.getStackTop().scope,t=e.getSession();if(t){let e;e={},"ok"===t.status&&(e={status:"exited"}),X(t,e)}this._sendSessionUpdate(),e.setSession()}startSession(e){let{scope:t,client:n}=this.getStackTop(),{release:r,environment:i=D}=n&&n.getOptions()||{},{userAgent:o}=k.navigator||{},a=function(e){let t=P(),n={sid:E(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Y({sid:`${n.sid}`,init:n.init,started:new Date(1e3*n.started).toISOString(),timestamp:new Date(1e3*n.timestamp).toISOString(),status:n.status,errors:n.errors,did:"number"==typeof n.did||"string"==typeof n.did?`${n.did}`:void 0,duration:n.duration,abnormal_mechanism:n.abnormal_mechanism,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}})};return e&&X(n,e),n}({release:r,environment:i,user:t.getUser(),...o&&{userAgent:o},...e}),s=t.getSession&&t.getSession();return s&&"ok"===s.status&&X(s,{status:"exited"}),this.endSession(),t.setSession(a),a}shouldSendDefaultPii(){let e=this.getClient(),t=e&&e.getOptions();return!!(t&&t.sendDefaultPii)}_sendSessionUpdate(){let{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){let n=ei().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);L&&N.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function ei(){return k.__SENTRY__=k.__SENTRY__||{extensions:{},hub:void 0},k}function eo(e){let t=ei(),n=es(t);return el(t,e),n}function ea(){let e=ei();if(e.__SENTRY__&&e.__SENTRY__.acs){let t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=ei()){return(!(e&&e.__SENTRY__&&e.__SENTRY__.hub)||es(e).isOlderThan(en))&&el(e,new er),es(e)}(e)}function es(e){return S("hub",()=>new er,e)}function el(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}new WeakMap;let eu=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function ec(e,t){return ea().captureException(e,t?t instanceof ee||"function"==typeof t||Object.keys(t).some(e=>eu.includes(e))?{captureContext:t}:t:void 0)}function ed(e,t){return ea().captureEvent(e,t)}function ef(e,t){ea().addBreadcrumb(e,t)}function eh(...e){let t=ea();if(2===e.length){let[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function ep(){return ea().getClient()}function em(e,t){return Object.assign(function(...e){return t(...e)},{id:e})}let eg=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],ev=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],ey="InboundFilters",eb=(e={})=>({name:ey,setupOnce(){},processEvent:(t,n,r)=>{var i,o;return((i=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:eg],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:ev],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,r.getOptions())).ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(t)?(L&&N.warn(`Event dropped due to being internal Sentry Error.
@@ -15,7 +15,7 @@ Error:`,t)}}function eD(){"console"in k&&R.forEach(function(e){e in k.console&&U
15
15
  The error may be correlated with this previous error:
16
16
  ${N.current.stack}
17
17
 
18
- `),e}_(()=>{N.current=void 0,R.current=void 0,O.current=i});let z=l.useMemo(()=>l.createElement(e,(0,f.Z)({},i,{ref:a})),[a,e,i]);return l.useMemo(()=>C?l.createElement(u.Provider,{value:S},z):z,[u,z,S])}let y=l.memo(d);if(y.WrappedComponent=e,y.displayName=d.displayName=n,u){let t=l.forwardRef(function(e,t){return l.createElement(y,(0,f.Z)({},e,{reactReduxForwardedRef:t}))});return t.displayName=n,t.WrappedComponent=e,m()(t,e)}return m()(y,e)}},j=function({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:o="once"}){let a=l.useMemo(()=>{let t=E(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:o}},[e,r,i,o]),s=l.useMemo(()=>e.getState(),[e]);return _(()=>{let{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}},[a,s]),l.createElement((t||d).Provider,{value:a},n)};i.useSyncExternalStoreWithSelector,A=r.useSyncExternalStore,a=o.unstable_batchedUpdates},27818:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(66703),i=n(14836),o=n.n(i),a="undefined"!=typeof window?window:null,s=null===a,l=s?void 0:a.document,u="addEventListener",c="removeEventListener",d="getBoundingClientRect",f="horizontal",h=function(){return!1},p=s?"calc":["","-webkit-","-moz-","-o-"].filter(function(e){var t=l.createElement("div");return t.style.cssText="width:"+e+"calc(9px)",!!t.style.length}).shift()+"calc",m=function(e){return"string"==typeof e||e instanceof String},g=function(e){if(m(e)){var t=l.querySelector(e);if(!t)throw Error("Selector "+e+" did not match a DOM element");return t}return e},v=function(e,t,n){var r=e[t];return void 0!==r?r:n},y=function(e,t,n,r){if(t){if("end"===r)return 0;if("center"===r)return e/2}else if(n){if("start"===r)return 0;if("center"===r)return e/2}return e},b=function(e,t){var n=l.createElement("div");return n.className="gutter gutter-"+t,n},x=function(e,t,n){var r={};return m(t)?r[e]=t:r[e]=p+"("+t+"% - "+n+"px)",r},w=function(e,t){var n;return(n={})[e]=t+"px",n},k=function(e,t){if(void 0===t&&(t={}),s)return{};var n,r,i,o,p,m,k=e;Array.from&&(k=Array.from(k));var S=g(k[0]).parentNode,E=getComputedStyle?getComputedStyle(S):null,_=E?E.flexDirection:null,C=v(t,"sizes")||k.map(function(){return 100/k.length}),O=v(t,"minSize",100),T=Array.isArray(O)?O:k.map(function(){return O}),A=v(t,"maxSize",1/0),P=Array.isArray(A)?A:k.map(function(){return A}),I=v(t,"expandToMin",!1),R=v(t,"gutterSize",10),j=v(t,"gutterAlign","center"),M=v(t,"snapOffset",30),N=Array.isArray(M)?M:k.map(function(){return M}),D=v(t,"dragInterval",1),L=v(t,"direction",f),z=v(t,"cursor",L===f?"col-resize":"row-resize"),F=v(t,"gutter",b),B=v(t,"elementStyle",x),$=v(t,"gutterStyle",w);function V(e,t,r,i){var o=B(n,t,r,i);Object.keys(o).forEach(function(t){e.style[t]=o[t]})}function U(){return m.map(function(e){return e.size})}function W(e){return"touches"in e?e.touches[0][r]:e[r]}function q(e){var t=m[this.a],n=m[this.b],r=t.size+n.size;t.size=e/this.size*r,n.size=r-e/this.size*r,V(t.element,t.size,this._b,t.i),V(n.element,n.size,this._c,n.i)}function H(e){var n,r=m[this.a],i=m[this.b];this.dragging&&(n=W(e)-this.start+(this._b-this.dragOffset),D>1&&(n=Math.round(n/D)*D),n<=r.minSize+r.snapOffset+this._b?n=r.minSize+this._b:n>=this.size-(i.minSize+i.snapOffset+this._c)&&(n=this.size-(i.minSize+this._c)),n>=r.maxSize-r.snapOffset+this._b?n=r.maxSize+this._b:n<=this.size-(i.maxSize-i.snapOffset+this._c)&&(n=this.size-(i.maxSize+this._c)),q.call(this,n),v(t,"onDrag",h)(U()))}function Z(){var e=m[this.a].element,t=m[this.b].element,r=e[d](),a=t[d]();this.size=r[n]+a[n]+this._b+this._c,this.start=r[i],this.end=r[o]}function G(e){var t=function(e){if(!getComputedStyle)return null;var t=getComputedStyle(e);if(!t)return null;var n=e[p];return 0===n?null:(L===f?n-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight):n-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),n)}(S);if(null===t||T.reduce(function(e,t){return e+t},0)>t)return e;var n=0,r=[],i=e.map(function(i,o){var a=t*i/100,s=y(R,0===o,o===e.length-1,j),l=T[o]+s;return a<l?(n+=l-a,r.push(0),l):(r.push(a-l),a)});return 0===n?e:i.map(function(e,i){var o=e;if(n>0&&r[i]-n>0){var a=Math.min(n,r[i]-n);n-=a,o=e-a}return o/t*100})}function K(){var e=m[this.a].element,n=m[this.b].element;this.dragging&&v(t,"onDragEnd",h)(U()),this.dragging=!1,a[c]("mouseup",this.stop),a[c]("touchend",this.stop),a[c]("touchcancel",this.stop),a[c]("mousemove",this.move),a[c]("touchmove",this.move),this.stop=null,this.move=null,e[c]("selectstart",h),e[c]("dragstart",h),n[c]("selectstart",h),n[c]("dragstart",h),e.style.userSelect="",e.style.webkitUserSelect="",e.style.MozUserSelect="",e.style.pointerEvents="",n.style.userSelect="",n.style.webkitUserSelect="",n.style.MozUserSelect="",n.style.pointerEvents="",this.gutter.style.cursor="",this.parent.style.cursor="",l.body.style.cursor=""}function Y(e){if(!("button"in e)||0===e.button){var n=m[this.a].element,r=m[this.b].element;this.dragging||v(t,"onDragStart",h)(U()),e.preventDefault(),this.dragging=!0,this.move=H.bind(this),this.stop=K.bind(this),a[u]("mouseup",this.stop),a[u]("touchend",this.stop),a[u]("touchcancel",this.stop),a[u]("mousemove",this.move),a[u]("touchmove",this.move),n[u]("selectstart",h),n[u]("dragstart",h),r[u]("selectstart",h),r[u]("dragstart",h),n.style.userSelect="none",n.style.webkitUserSelect="none",n.style.MozUserSelect="none",n.style.pointerEvents="none",r.style.userSelect="none",r.style.webkitUserSelect="none",r.style.MozUserSelect="none",r.style.pointerEvents="none",this.gutter.style.cursor=z,this.parent.style.cursor=z,l.body.style.cursor=z,Z.call(this),this.dragOffset=W(e)-this.end}}L===f?(n="width",r="clientX",i="left",o="right",p="clientWidth"):"vertical"===L&&(n="height",r="clientY",i="top",o="bottom",p="clientHeight"),C=G(C);var X=[];function J(e){var t=e.i===X.length,n=t?X[e.i-1]:X[e.i];Z.call(n);var r=t?n.size-e.minSize-n._c:e.minSize+n._b;q.call(n,r)}return(m=k.map(function(e,t){var r,i={element:g(e),size:C[t],minSize:T[t],maxSize:P[t],snapOffset:N[t],i:t};if(t>0&&((r={a:t-1,b:t,dragging:!1,direction:L,parent:S})._b=y(R,t-1==0,!1,j),r._c=y(R,!1,t===k.length-1,j),"row-reverse"===_||"column-reverse"===_)){var o=r.a;r.a=r.b,r.b=o}if(t>0){var a,s=F(t,L,i.element);Object.keys(a=$(n,R,t)).forEach(function(e){s.style[e]=a[e]}),r._a=Y.bind(r),s[u]("mousedown",r._a),s[u]("touchstart",r._a),S.insertBefore(s,i.element),r.gutter=s}return V(i.element,i.size,y(R,0===t,t===k.length-1,j),t),t>0&&X.push(r),i})).forEach(function(e){var t=e.element[d]()[n];t<e.minSize&&(I?J(e):e.minSize=t)}),{setSizes:function(e){var t=G(e);t.forEach(function(e,n){if(n>0){var r=X[n-1],i=m[r.a],o=m[r.b];i.size=t[n-1],o.size=e,V(i.element,i.size,r._b,i.i),V(o.element,o.size,r._c,o.i)}})},getSizes:U,collapse:function(e){J(m[e])},destroy:function(e,t){X.forEach(function(r){!0!==t?r.parent.removeChild(r.gutter):(r.gutter[c]("mousedown",r._a),r.gutter[c]("touchstart",r._a)),!0!==e&&Object.keys(B(n,r.a.size,r._b)).forEach(function(e){m[r.a].element.style[e]="",m[r.b].element.style[e]=""})})},parent:S,pairs:X}};function S(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}var E=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentDidMount=function(){var e=this.props;e.children;var t=e.gutter,n=S(e,["children","gutter"]);n.gutter=function(e,n){var r;return t?r=t(e,n):(r=document.createElement("div")).className="gutter gutter-"+n,r.__isSplitGutter=!0,r},this.split=k(this.parent.children,n)},t.prototype.componentDidUpdate=function(e){var t=this,n=this.props;n.children;var r=n.minSize,i=n.sizes,o=n.collapsed,a=S(n,["children","minSize","sizes","collapsed"]),s=e.minSize,l=e.sizes,u=e.collapsed,c=["maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor"].map(function(n){return t.props[n]!==e[n]}).reduce(function(e,t){return e||t},!1);if(Array.isArray(r)&&Array.isArray(s)){var d=!1;r.forEach(function(e,t){d=d||e!==s[t]}),c=c||d}else c=!!(Array.isArray(r)||Array.isArray(s))||c||r!==s;if(c)a.minSize=r,a.sizes=i||this.split.getSizes(),this.split.destroy(!0,!0),a.gutter=function(e,t,n){return n.previousSibling},this.split=k(Array.from(this.parent.children).filter(function(e){return!e.__isSplitGutter}),a);else if(i){var f=!1;i.forEach(function(e,t){f=f||e!==l[t]}),f&&this.split.setSizes(this.props.sizes)}Number.isInteger(o)&&(o!==u||c)&&this.split.collapse(o)},t.prototype.componentWillUnmount=function(){this.split.destroy(),delete this.split},t.prototype.render=function(){var e=this,t=this.props;t.sizes,t.minSize,t.maxSize,t.expandToMin,t.gutterSize,t.gutterAlign,t.snapOffset,t.dragInterval,t.direction,t.cursor,t.gutter,t.elementStyle,t.gutterStyle,t.onDrag,t.onDragStart,t.onDragEnd,t.collapsed;var n=t.children,i=S(t,["sizes","minSize","maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor","gutter","elementStyle","gutterStyle","onDrag","onDragStart","onDragEnd","collapsed","children"]);return r.createElement("div",Object.assign({},{ref:function(t){e.parent=t}},i),n)},t}(r.Component);E.propTypes={sizes:o().arrayOf(o().number),minSize:o().oneOfType([o().number,o().arrayOf(o().number)]),maxSize:o().oneOfType([o().number,o().arrayOf(o().number)]),expandToMin:o().bool,gutterSize:o().number,gutterAlign:o().string,snapOffset:o().oneOfType([o().number,o().arrayOf(o().number)]),dragInterval:o().number,direction:o().string,cursor:o().string,gutter:o().func,elementStyle:o().func,gutterStyle:o().func,onDrag:o().func,onDragStart:o().func,onDragEnd:o().func,collapsed:o().number,children:o().arrayOf(o().element)},E.defaultProps={sizes:void 0,minSize:void 0,maxSize:void 0,expandToMin:void 0,gutterSize:void 0,gutterAlign:void 0,snapOffset:void 0,dragInterval:void 0,direction:void 0,cursor:void 0,gutter:void 0,elementStyle:void 0,gutterStyle:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0,collapsed:void 0,children:void 0};var _=E},46432:function(e,t,n){"use strict";n.d(t,{DE:function(){return c},MT:function(){return l},md:function(){return f},qC:function(){return d}});var r=n(52826);function i(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var o="function"==typeof Symbol&&Symbol.observable||"@@observable",a=function(){return Math.random().toString(36).substring(7).split("").join(".")},s={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function l(e,t,n){if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw Error(i(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw Error(i(1));return n(l)(e,t)}if("function"!=typeof e)throw Error(i(2));var r,a=e,u=t,c=[],d=c,f=!1;function h(){d===c&&(d=c.slice())}function p(){if(f)throw Error(i(3));return u}function m(e){if("function"!=typeof e)throw Error(i(4));if(f)throw Error(i(5));var t=!0;return h(),d.push(e),function(){if(t){if(f)throw Error(i(6));t=!1,h();var n=d.indexOf(e);d.splice(n,1),c=null}}}function g(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw Error(i(7));if(void 0===e.type)throw Error(i(8));if(f)throw Error(i(9));try{f=!0,u=a(u,e)}finally{f=!1}for(var t=c=d,n=0;n<t.length;n++)(0,t[n])();return e}return g({type:s.INIT}),(r={dispatch:g,subscribe:m,getState:p,replaceReducer:function(e){if("function"!=typeof e)throw Error(i(10));a=e,g({type:s.REPLACE})}})[o]=function(){var e;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw Error(i(11));function t(){e.next&&e.next(p())}return t(),{unsubscribe:m(t)}}})[o]=function(){return this},e},r}function u(e,t){return function(){return t(e.apply(this,arguments))}}function c(e,t){if("function"==typeof e)return u(e,t);if("object"!=typeof e||null===e)throw Error(i(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=u(o,t))}return n}function d(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function f(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),o=function(){throw Error(i(15))},a={getState:n.getState,dispatch:function(){return o.apply(void 0,arguments)}},s=t.map(function(e){return e(a)});return o=d.apply(void 0,s)(n.dispatch),(0,r.Z)((0,r.Z)({},n),{},{dispatch:o})}}}},76153:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},2600:function(e,t,n){"use strict";n.d(t,{I4:function(){return a},Ye:function(){return o}});var r=n(66703);function i(e,t){var n=(0,r.useState)(function(){return{inputs:t,result:e()}})[0],i=(0,r.useRef)(!0),o=(0,r.useRef)(n),a=i.current||t&&o.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,o.current.inputs)?o.current:{inputs:t,result:e()};return(0,r.useEffect)(function(){i.current=!1,o.current=a},[a]),a.result}var o=i,a=function(e,t){return i(function(){return e},t)}},89907:function(e,t,n){"use strict";var r=n(66703),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),a(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},13562:function(e,t,n){"use strict";var r=n(66703),i=n(18638),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useSyncExternalStore,s=r.useRef,l=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var h=a(e,(d=u(function(){function e(e){if(!l){if(l=!0,a=e,e=r(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(a=e,t):(a=e,s=n)}var a,s,l=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,n,r,i]))[0],d[1]);return l(function(){f.hasValue=!0,f.value=h},[h]),c(h),h}},18638:function(e,t,n){"use strict";e.exports=n(89907)},85355:function(e,t,n){"use strict";e.exports=n(13562)},50710:function(){},7903:function(){},98215:function(){},30848:function(){},51982:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},64729:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(23438);function i(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},52409:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}n.d(t,{Z:function(){return r}})},52826:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(64729);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}},48111:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{Z:function(){return r}})},2890:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{Z:function(){return r}})},23438:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(28108);function i(e){var t=function(e,t){if("object"!=(0,r.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=(0,r.Z)(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.Z)(t)?t:t+""}},28108:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:function(){return r}})},74614:function(e,t,n){"use strict";function r(e,t={}){let n=!1;function i(t){let n=(["container","root"].includes(t??"")?[e]:[e,t]).filter(Boolean).join("__"),r=`chakra-${n}`;return{className:r,selector:`.${r}`,toString:()=>t}}return{parts:function(...o){for(let e of(!function(){if(!n){n=!0;return}throw Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}(),o))t[e]=i(e);return r(e,t)},toPart:i,extend:function(...n){for(let e of n)e in t||(t[e]=i(e));return r(e,t)},selectors:function(){return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.selector]))},classnames:function(){return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.className]))},get keys(){return Object.keys(t)},__type:{}}}n.d(t,{TB:function(){return i}}),r("accordion").parts("root","container","button","panel","icon"),r("alert").parts("title","description","container","icon","spinner"),r("avatar").parts("label","badge","container","excessLabel","group"),r("breadcrumb").parts("link","item","container","separator"),r("button").parts();let i=r("checkbox").parts("control","icon","container","label");r("progress").parts("track","filledTrack","label"),r("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),r("editable").parts("preview","input","textarea"),r("form").parts("container","requiredIndicator","helperText"),r("formError").parts("text","icon"),r("input").parts("addon","field","element","group"),r("list").parts("container","item","icon"),r("menu").parts("button","list","item","groupTitle","icon","command","divider"),r("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),r("numberinput").parts("root","field","stepperGroup","stepper"),r("pininput").parts("field"),r("popover").parts("content","header","body","footer","popper","arrow","closeButton"),r("progress").parts("label","filledTrack","track"),r("radio").parts("container","control","label"),r("select").parts("field","icon"),r("slider").parts("container","track","thumb","filledTrack","mark"),r("stat").parts("container","label","helpText","number","icon"),r("switch").parts("container","track","thumb","label"),r("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),r("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),r("tag").parts("container","label","closeButton"),r("card").parts("container","header","body","footer"),r("stepper").parts("stepper","step","title","description","indicator","separator","icon","number")},19774:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var r=n(95034),i=n(66703),o=n(37584);function a(e){let{isOpen:t,ref:n}=e,[a,s]=(0,i.useState)(t),[l,u]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{l||(s(t),u(!0))},[t,l,a]),(0,o.O)(()=>n.current,"animationend",()=>{s(t)}),{present:!(!t&&!a),onComplete(){var e;let t=new((0,r.kR)(n.current)).CustomEvent("animationend",{bubbles:!0});null===(e=n.current)||void 0===e||e.dispatchEvent(t)}}}},55229:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(66703);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,r.useRef)(e);return(0,r.useEffect)(()=>{n.current=e}),(0,r.useCallback)(function(){for(var e,t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return null===(e=n.current)||void 0===e?void 0:e.call(n,...r)},t)}},64126:function(e,t,n){"use strict";n.d(t,{V:function(){return o}});var r=n(66703),i=n(24989);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},[n,o]=(0,r.useState)(!1),[a,s]=(0,r.useState)(e);(0,r.useEffect)(()=>s(e),[e]);let{timeout:l=1500,...u}="number"==typeof t?{timeout:t}:t,c=(0,r.useCallback)(e=>{let t="string"==typeof e?e:a;"clipboard"in navigator?navigator.clipboard.writeText(t).then(()=>o(!0)).catch(()=>o(i(t,u))):o(i(t,u))},[a,u]);return(0,r.useEffect)(()=>{let e=null;return n&&(e=window.setTimeout(()=>{o(!1)},l)),()=>{e&&window.clearTimeout(e)}},[l,n]),{value:a,setValue:s,onCopy:c,hasCopied:n}}},85071:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(55229),i=n(66703);function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{onClose:t,onOpen:n,isOpen:o,id:a}=e,s=(0,r.W)(n),l=(0,r.W)(t),[u,c]=(0,i.useState)(e.defaultIsOpen||!1),d=void 0!==o?o:u,f=void 0!==o,h=(0,i.useId)(),p=null!=a?a:"disclosure-".concat(h),m=(0,i.useCallback)(()=>{f||c(!1),null==l||l()},[f,l]),g=(0,i.useCallback)(()=>{f||c(!0),null==s||s()},[f,s]),v=(0,i.useCallback)(()=>{d?m():g()},[d,g,m]);return{isOpen:d,onOpen:g,onClose:m,onToggle:v,isControlled:f,getButtonProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,"aria-expanded":d,"aria-controls":p,onClick(t){var n;null===(n=e.onClick)||void 0===n||n.call(e,t),v()}}},getDisclosureProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,hidden:!d,id:p}}}}},37584:function(e,t,n){"use strict";n.d(t,{O:function(){return o}});var r=n(66703),i=n(55229);function o(e,t,n,o){let a=(0,i.W)(n);return(0,r.useEffect)(()=>{let r="function"==typeof e?e():null!=e?e:document;if(n&&r)return r.addEventListener(t,a,o),()=>{r.removeEventListener(t,a,o)}},[t,e,o,a,n]),()=>{let n="function"==typeof e?e():null!=e?e:document;null==n||n.removeEventListener(t,a,o)}}},15749:function(e,t,n){"use strict";n.d(t,{C:function(){return c},G:function(){return f}});var r=n(95034),i=n(94279),o=n(29239),a=n(66703),s=n(37584),l=n(59129),u=n(95318);function c(e,t){let{shouldFocus:n,visible:o,focusRef:a}=t,s=n&&!o;(0,u.r)(()=>{let t;if(!s||function(e){let t=e.current;if(!t)return!1;let n=(0,r.vY)(t);return!(!n||t.contains(n))&&!!(0,i.Wq)(n)}(e))return;let n=(null==a?void 0:a.current)||e.current;if(n)return t=requestAnimationFrame(()=>{n.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(t)}},[s,e,a])}let d={preventScroll:!0,shouldFocus:!1};function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d,{focusRef:n,preventScroll:r,shouldFocus:i,visible:c}=t,f="current"in e?e.current:e,h=i&&c,p=(0,a.useRef)(h),m=(0,a.useRef)(c);(0,l.G)(()=>{!m.current&&c&&(p.current=h),m.current=c},[c,h]);let g=(0,a.useCallback)(()=>{if(c&&f&&p.current&&(p.current=!1,!f.contains(document.activeElement))){if(null==n?void 0:n.current)requestAnimationFrame(()=>{var e;null===(e=n.current)||void 0===e||e.focus({preventScroll:r})});else{let e=(0,o.t5)(f);e.length>0&&requestAnimationFrame(()=>{e[0].focus({preventScroll:r})})}}},[c,r,f,n]);(0,u.r)(()=>{g()},[g]),(0,s.O)(f,"transitionend",g)}},6461:function(e,t,n){"use strict";n.d(t,{lq:function(){return i},qq:function(){return o}});var r=n(66703);function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach(t=>{!function(e,t){if(null!=e){if("function"==typeof e){e(t);return}try{e.current=t}catch(n){throw Error("Cannot assign value '".concat(t,"' to ref '").concat(e,"'"))}}}(t,e)})}}function o(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)(()=>i(...t),t)}},18404:function(e,t,n){"use strict";n.d(t,{O:function(){return o}});var r=n(66703),i=n(55229);function o(e){let{ref:t,handler:n,enabled:o=!0}=e,l=(0,i.W)(n),u=(0,r.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,r.useEffect)(()=>{if(!o)return;let e=e=>{a(e,t)&&(u.isPointerDown=!0)},r=e=>{if(u.ignoreEmulatedMouseEvents){u.ignoreEmulatedMouseEvents=!1;return}u.isPointerDown&&n&&a(e,t)&&(u.isPointerDown=!1,l(e))},i=e=>{u.ignoreEmulatedMouseEvents=!0,n&&u.isPointerDown&&a(e,t)&&(u.isPointerDown=!1,l(e))},c=s(t.current);return c.addEventListener("mousedown",e,!0),c.addEventListener("mouseup",r,!0),c.addEventListener("touchstart",e,!0),c.addEventListener("touchend",i,!0),()=>{c.removeEventListener("mousedown",e,!0),c.removeEventListener("mouseup",r,!0),c.removeEventListener("touchstart",e,!0),c.removeEventListener("touchend",i,!0)}},[n,t,l,u,o])}function a(e,t){var n,r,i;let o=null!==(i=null===(n=e.composedPath)||void 0===n?void 0:n.call(e)[0])&&void 0!==i?i:e.target;return(!o||!!s(o).contains(o))&&!(null===(r=t.current)||void 0===r?void 0:r.contains(o))}function s(e){var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document}},59129:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});var r,i=n(66703);let o=(null===(r=globalThis)||void 0===r?void 0:r.document)?i.useLayoutEffect:i.useEffect},95318:function(e,t,n){"use strict";n.d(t,{r:function(){return i}});var r=n(66703);let i=(e,t)=>{let n=(0,r.useRef)(!1),i=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(n.current&&i.current)return e();i.current=!0},t),(0,r.useEffect)(()=>(n.current=!0,()=>{n.current=!1}),[])}},78129:function(e,t,n){"use strict";n.d(t,{n:function(){return i}});var r=n(20130);let i=(0,n(64274).I)({viewBox:"0 0 14 14",path:(0,r.jsx)("g",{fill:"currentColor",children:(0,r.jsx)("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})})})},68156:function(e,t,n){"use strict";n.d(t,{r:function(){return r}});let r=(0,n(64274).I)({displayName:"CheckCircleIcon",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})},85041:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});let r=(0,n(64274).I)({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})},82598:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});let r=(0,n(64274).I)({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"})},82946:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});let r=(0,n(64274).I)({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})},93166:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});let r=(0,n(64274).I)({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"})},50056:function(e,t,n){"use strict";n.d(t,{p:function(){return i}});var r=n(20130);let i=(0,n(64274).I)({displayName:"DeleteIcon",path:(0,r.jsx)("g",{fill:"currentColor",children:(0,r.jsx)("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"})})})},44550:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var r=n(20130);let i=(0,n(64274).I)({displayName:"ExternalLinkIcon",path:(0,r.jsxs)("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[(0,r.jsx)("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),(0,r.jsx)("path",{d:"M15 3h6v6"}),(0,r.jsx)("path",{d:"M10 14L21 3"})]})})},55859:function(e,t,n){"use strict";n.d(t,{s:function(){return r}});let r=(0,n(64274).I)({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})},77938:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var r=n(20130);let i=(0,n(64274).I)({displayName:"InfoOutlineIcon",path:(0,r.jsxs)("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2",children:[(0,r.jsx)("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),(0,r.jsx)("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),(0,r.jsx)("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"})]})})},36387:function(e,t,n){"use strict";n.d(t,{n:function(){return i}});var r=n(20130);let i=(0,n(64274).I)({displayName:"RepeatIcon",path:(0,r.jsxs)("g",{fill:"currentColor",children:[(0,r.jsx)("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"}),(0,r.jsx)("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"})]})})},32165:function(e,t,n){"use strict";n.d(t,{a:function(){return r}});let r=(0,n(64274).I)({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"})},54405:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});let r=(0,n(64274).I)({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"})},50393:function(e,t,n){"use strict";n.d(t,{uZ:function(){return l},Hm:function(){return c},TR:function(){return h},XO:function(){return p},oX:function(){return u},uL:function(){return d}});var r=n(9396),i=n(20130),o=n(5845);function a(e){return(0,i.jsx)(o.J,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var s=n(56756);let[l,u]=(0,r.k)({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[c,d]=(0,r.k)({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),f={info:{icon:function(e){return(0,i.jsx)(o.J,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})},colorScheme:"blue"},warning:{icon:a,colorScheme:"orange"},success:{icon:function(e){return(0,i.jsx)(o.J,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})},colorScheme:"green"},error:{icon:a,colorScheme:"red"},loading:{icon:s.$,colorScheme:"blue"}};function h(e){return f[e].colorScheme}function p(e){return f[e].icon}},76902:function(e,t,n){"use strict";n.d(t,{X:function(){return u}});var r=n(20130),i=n(71034),o=n(90010),a=n(50393),s=n(43906),l=n(49110);let u=(0,s.G)(function(e,t){let{status:n}=(0,a.oX)(),s=(0,a.uL)(),u=(0,i.k0)({display:"inline",...s.description});return(0,r.jsx)(l.m.div,{ref:t,"data-status":n,...e,className:(0,o.cx)("chakra-alert__desc",e.className),__css:u})});u.displayName="AlertDescription"},49956:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var r=n(20130),i=n(90010),o=n(50393),a=n(49110);function s(e){let{status:t}=(0,o.oX)(),n=(0,o.XO)(t),s=(0,o.uL)(),l="loading"===t?s.spinner:s.icon;return(0,r.jsx)(a.m.span,{display:"inherit","data-status":t,...e,className:(0,i.cx)("chakra-alert__icon",e.className),__css:l,children:e.children||(0,r.jsx)(n,{h:"100%",w:"100%"})})}s.displayName="AlertIcon"},18422:function(e,t,n){"use strict";n.d(t,{b:function(){return d}});var r=n(20130),i=n(66861),o=n(71034),a=n(90010),s=n(50393),l=n(35364),u=n(43906),c=n(49110);let d=(0,u.G)(function(e,t){var n;let{status:u="info",addRole:d=!0,...f}=(0,i.L)(e),h=null!==(n=e.colorScheme)&&void 0!==n?n:(0,s.TR)(u),p=(0,l.j)("Alert",{...e,colorScheme:h}),m=(0,o.k0)({width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...p.container});return(0,r.jsx)(s.uZ,{value:{status:u},children:(0,r.jsx)(s.Hm,{value:p,children:(0,r.jsx)(c.m.div,{"data-status":u,role:d?"alert":void 0,ref:t,...f,className:(0,a.cx)("chakra-alert",e.className),__css:m})})})});d.displayName="Alert"},82772:function(e,t,n){"use strict";n.d(t,{C:function(){return u}});var r=n(20130),i=n(66861),o=n(90010),a=n(43906),s=n(35364),l=n(49110);let u=(0,a.G)(function(e,t){let n=(0,s.m)("Badge",e),{className:a,...u}=(0,i.L)(e);return(0,r.jsx)(l.m.span,{ref:t,className:(0,o.cx)("chakra-badge",e.className),...u,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...n}})});u.displayName="Badge"},28561:function(e,t,n){"use strict";n.d(t,{x:function(){return r}});let r=(0,n(49110).m)("div");r.displayName="Box"},27133:function(e,t,n){"use strict";n.d(t,{W:function(){return r},w:function(){return i}});let[r,i]=(0,n(9396).k)({name:"BreadcrumbStylesContext",errorMessage:"useBreadcrumbStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Breadcrumb />\" "})},48736:function(e,t,n){"use strict";n.d(t,{g:function(){return h}});var r=n(20130),i=n(71034),o=n(84535),a=n(90010),s=n(66703),l=n(27133),u=n(43906),c=n(49110);let d=(0,u.G)(function(e,t){let{isCurrentPage:n,as:i,className:o,href:s,...u}=e,d=(0,l.w)(),f={ref:t,as:i,className:(0,a.cx)("chakra-breadcrumb__link",o),...u};return n?(0,r.jsx)(c.m.span,{"aria-current":"page",__css:d.link,...f}):(0,r.jsx)(c.m.a,{__css:d.link,href:s,...f})});d.displayName="BreadcrumbLink";let f=(0,u.G)(function(e,t){let{spacing:n,...o}=e,a=(0,l.w)(),s=(0,i.k0)({mx:n,...a.separator});return(0,r.jsx)(c.m.span,{ref:t,role:"presentation",...o,__css:s})});f.displayName="BreadcrumbSeparator";let h=(0,u.G)(function(e,t){let{isCurrentPage:n,separator:u,isLastChild:h,spacing:p,children:m,className:g,...v}=e,y=(0,o.W)(m).map(e=>e.type===d?(0,s.cloneElement)(e,{isCurrentPage:n}):e.type===f?(0,s.cloneElement)(e,{spacing:p,children:e.props.children||u}):e),b=(0,l.w)(),x=(0,i.k0)({display:"inline-flex",alignItems:"center",...b.item}),w=(0,a.cx)("chakra-breadcrumb__list-item",g);return(0,r.jsxs)(c.m.li,{ref:t,className:w,...v,__css:x,children:[y,!h&&(0,r.jsx)(f,{spacing:p,children:u})]})});h.displayName="BreadcrumbItem"},98972:function(e,t,n){"use strict";n.d(t,{a:function(){return f}});var r=n(20130),i=n(66861),o=n(84535),a=n(90010),s=n(66703),l=n(27133),u=n(43906),c=n(35364),d=n(49110);let f=(0,u.G)(function(e,t){let n=(0,c.j)("Breadcrumb",e),{children:u,spacing:f="0.5rem",separator:h="/",className:p,listProps:m,...g}=(0,i.L)(e),v=(0,o.W)(u),y=v.length,b=v.map((e,t)=>(0,s.cloneElement)(e,{separator:h,spacing:f,isLastChild:y===t+1})),x=(0,a.cx)("chakra-breadcrumb",p);return(0,r.jsx)(d.m.nav,{ref:t,"aria-label":"breadcrumb",className:x,__css:n.container,...g,children:(0,r.jsx)(l.W,{value:n,children:(0,r.jsx)(d.m.ol,{className:"chakra-breadcrumb__list",...m,__css:{display:"flex",alignItems:"center",...n.list},children:b})})})});f.displayName="Breadcrumb"},13319:function(e,t,n){"use strict";n.d(t,{D:function(){return r},i:function(){return i}});let[r,i]=(0,n(9396).k)({strict:!1,name:"ButtonGroupContext"})},30566:function(e,t,n){"use strict";n.d(t,{h:function(){return d}});var r=n(20130),i=n(90010),o=n(66703),a=n(13319),s=n(43906),l=n(49110);let u={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},c={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},d=(0,s.G)(function(e,t){let{size:n,colorScheme:s,variant:d,className:f,spacing:h="0.5rem",isAttached:p,isDisabled:m,orientation:g="horizontal",...v}=e,y=(0,i.cx)("chakra-button__group",f),b=(0,o.useMemo)(()=>({size:n,colorScheme:s,variant:d,isDisabled:m}),[n,s,d,m]),x={display:"inline-flex",...p?u[g]:c[g](h)},w="vertical"===g;return(0,r.jsx)(a.D,{value:b,children:(0,r.jsx)(l.m.div,{ref:t,role:"group",__css:x,className:y,"data-attached":p?"":void 0,"data-orientation":g,flexDir:w?"column":void 0,...v})})});d.displayName="ButtonGroup"},19736:function(e,t,n){"use strict";n.d(t,{z:function(){return v}});var r=n(20130),i=n(6461),o=n(66861),a=n(26934),s=n(90010),l=n(66703),u=n(13319),c=n(49110);function d(e){let{children:t,className:n,...i}=e,o=(0,l.isValidElement)(t)?(0,l.cloneElement)(t,{"aria-hidden":!0,focusable:!1}):t,a=(0,s.cx)("chakra-button__icon",n);return(0,r.jsx)(c.m.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...i,className:a,children:o})}d.displayName="ButtonIcon";var f=n(71034),h=n(56756);function p(e){let{label:t,placement:n,spacing:i="0.5rem",children:o=(0,r.jsx)(h.$,{color:"currentColor",width:"1em",height:"1em"}),className:a,__css:u,...d}=e,p=(0,s.cx)("chakra-button__spinner",a),m="start"===n?"marginEnd":"marginStart",g=(0,l.useMemo)(()=>(0,f.k0)({display:"flex",alignItems:"center",position:t?"relative":"absolute",[m]:t?i:0,fontSize:"1em",lineHeight:"normal",...u}),[u,t,m,i]);return(0,r.jsx)(c.m.div,{className:p,...d,__css:g,children:o})}p.displayName="ButtonSpinner";var m=n(43906),g=n(35364);let v=(0,m.G)((e,t)=>{let n=(0,u.i)(),d=(0,g.m)("Button",{...n,...e}),{isDisabled:f=null==n?void 0:n.isDisabled,isLoading:h,isActive:m,children:v,leftIcon:b,rightIcon:x,loadingText:w,iconSpacing:k="0.5rem",type:S,spinner:E,spinnerPlacement:_="start",className:C,as:O,shouldWrapChildren:T,...A}=(0,o.L)(e),P=(0,l.useMemo)(()=>{let e={...null==d?void 0:d._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...d,...!!n&&{_focus:e}}},[d,n]),{ref:I,type:R}=function(e){let[t,n]=(0,l.useState)(!e);return{ref:(0,l.useCallback)(e=>{e&&n("BUTTON"===e.tagName)},[]),type:t?"button":void 0}}(O),j={rightIcon:x,leftIcon:b,iconSpacing:k,children:v,shouldWrapChildren:T};return(0,r.jsxs)(c.m.button,{disabled:f||h,ref:(0,i.qq)(t,I),as:O,type:null!=S?S:R,"data-active":(0,a.P)(m),"data-loading":(0,a.P)(h),__css:P,className:(0,s.cx)("chakra-button",C),...A,children:[h&&"start"===_&&(0,r.jsx)(p,{className:"chakra-button__spinner--start",label:w,placement:"start",spacing:k,children:E}),h?w||(0,r.jsx)(c.m.span,{opacity:0,children:(0,r.jsx)(y,{...j})}):(0,r.jsx)(y,{...j}),h&&"end"===_&&(0,r.jsx)(p,{className:"chakra-button__spinner--end",label:w,placement:"end",spacing:k,children:E})]})});function y(e){let{leftIcon:t,rightIcon:n,children:i,iconSpacing:o,shouldWrapChildren:a}=e;return a?(0,r.jsxs)("span",{style:{display:"contents"},children:[t&&(0,r.jsx)(d,{marginEnd:o,children:t}),i,n&&(0,r.jsx)(d,{marginStart:o,children:n})]}):(0,r.jsxs)(r.Fragment,{children:[t&&(0,r.jsx)(d,{marginEnd:o,children:t}),i,n&&(0,r.jsx)(d,{marginStart:o,children:n})]})}v.displayName="Button"},71676:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var r=n(20130),i=n(66703),o=n(19736);let a=(0,n(43906).G)((e,t)=>{let{icon:n,children:a,isRound:s,"aria-label":l,...u}=e,c=n||a,d=(0,i.isValidElement)(c)?(0,i.cloneElement)(c,{"aria-hidden":!0,focusable:!1}):null;return(0,r.jsx)(o.z,{px:"0",py:"0",borderRadius:s?"full":void 0,ref:t,"aria-label":l,...u,children:d})});a.displayName="IconButton"},50537:function(e,t,n){"use strict";n.d(t,{M:function(){return a}});var r=n(20130),i=n(49110),o=n(43906);let a=(0,i.m)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});a.displayName="Center";let s={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};(0,o.G)(function(e,t){let{axis:n="both",...o}=e;return(0,r.jsx)(i.m.div,{ref:t,__css:s[n],...o,position:"absolute"})})},29354:function(e,t,n){"use strict";let r;n.d(t,{x:function(){return G}});var i=n(30171),o=n(20130),a=n(19249),s=n(9116),l=n(66703),u=n(16276);let c={light:"chakra-ui-light",dark:"chakra-ui-dark"},d="chakra-ui-color-mode",f={ssr:!1,type:"localStorage",get(e){var t;let n;if(!(null===(t=globalThis)||void 0===t?void 0:t.document))return e;try{n=localStorage.getItem(d)||e}catch(e){}return n||e},set(e){try{localStorage.setItem(d,e)}catch(e){}}},h=()=>{},p=(0,a.jU)()?l.useLayoutEffect:l.useEffect;function m(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}let g=function(e){let{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:i,disableTransitionOnChange:a}={},colorModeManager:d=f}=e,g=(0,s._)(),v="dark"===i?"dark":"light",[y,b]=(0,l.useState)(()=>m(d,v)),[x,w]=(0,l.useState)(()=>m(d)),{getSystemTheme:k,setClassName:S,setDataset:E,addListener:_}=(0,l.useMemo)(()=>(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{preventTransition:t=!0,nonce:n}=e,r={setDataset:e=>{let n=t?r.preventTransition():void 0;document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e,null==n||n()},setClassName(e){document.body.classList.add(e?c.dark:c.light),document.body.classList.remove(e?c.light:c.dark)},query:()=>window.matchMedia("(prefers-color-scheme: dark)"),getSystemTheme(e){var t;return(null!==(t=r.query().matches)&&void 0!==t?t:"dark"===e)?"dark":"light"},addListener(e){let t=r.query(),n=t=>{e(t.matches?"dark":"light")};return"function"==typeof t.addListener?t.addListener(n):t.addEventListener("change",n),()=>{"function"==typeof t.removeListener?t.removeListener(n):t.removeEventListener("change",n)}},preventTransition(){let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),void 0!==n&&(e.nonce=n),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(e)})})}}};return r})({preventTransition:a,nonce:null==g?void 0:g.nonce}),[a,null==g?void 0:g.nonce]),C="system"!==i||y?y:x,O=(0,l.useCallback)(e=>{let t="system"===e?k():e;b(t),S("dark"===t),E(t),d.set(t)},[d,k,S,E]);p(()=>{"system"===i&&w(k())},[]),(0,l.useEffect)(()=>{let e=d.get();if(e){O(e);return}if("system"===i){O("system");return}O(v)},[d,v,i,O]);let T=(0,l.useCallback)(()=>{O("dark"===C?"light":"dark")},[C,O]);(0,l.useEffect)(()=>{if(r)return _(O)},[r,_,O]);let A=(0,l.useMemo)(()=>({colorMode:null!=t?t:C,toggleColorMode:t?h:T,setColorMode:t?h:O,forced:void 0!==t}),[C,T,O,t]);return(0,o.jsx)(u.kc.Provider,{value:A,children:n})};g.displayName="ColorModeProvider";var v=n(30220),y=n(68312);function b(){let e=(0,v._)(["\n :root,\n :host {\n --chakra-vh: 100vh;\n }\n\n @supports (height: -webkit-fill-available) {\n :root,\n :host {\n --chakra-vh: -webkit-fill-available;\n }\n }\n\n @supports (height: -moz-fill-available) {\n :root,\n :host {\n --chakra-vh: -moz-fill-available;\n }\n }\n\n @supports (height: 100dvh) {\n :root,\n :host {\n --chakra-vh: 100dvh;\n }\n }\n"]);return b=function(){return e},e}function x(){let e=(0,v._)(['\n html {\n line-height: 1.5;\n -webkit-text-size-adjust: 100%;\n font-family: system-ui, sans-serif;\n -webkit-font-smoothing: antialiased;\n text-rendering: optimizeLegibility;\n -moz-osx-font-smoothing: grayscale;\n touch-action: manipulation;\n }\n\n body {\n position: relative;\n min-height: 100%;\n margin: 0;\n font-feature-settings: "kern";\n }\n\n '," :where(*, *::before, *::after) {\n border-width: 0;\n border-style: solid;\n box-sizing: border-box;\n word-wrap: break-word;\n }\n\n main {\n display: block;\n }\n\n "," hr {\n border-top-width: 1px;\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n }\n\n "," :where(pre, code, kbd,samp) {\n font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n font-size: 1em;\n }\n\n "," a {\n background-color: transparent;\n color: inherit;\n text-decoration: inherit;\n }\n\n "," abbr[title] {\n border-bottom: none;\n text-decoration: underline;\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n }\n\n "," :where(b, strong) {\n font-weight: bold;\n }\n\n "," small {\n font-size: 80%;\n }\n\n "," :where(sub,sup) {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n\n "," sub {\n bottom: -0.25em;\n }\n\n "," sup {\n top: -0.5em;\n }\n\n "," img {\n border-style: none;\n }\n\n "," :where(button, input, optgroup, select, textarea) {\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n }\n\n "," :where(button, input) {\n overflow: visible;\n }\n\n "," :where(button, select) {\n text-transform: none;\n }\n\n ",' :where(\n button::-moz-focus-inner,\n [type="button"]::-moz-focus-inner,\n [type="reset"]::-moz-focus-inner,\n [type="submit"]::-moz-focus-inner\n ) {\n border-style: none;\n padding: 0;\n }\n\n '," fieldset {\n padding: 0.35em 0.75em 0.625em;\n }\n\n "," legend {\n box-sizing: border-box;\n color: inherit;\n display: table;\n max-width: 100%;\n padding: 0;\n white-space: normal;\n }\n\n "," progress {\n vertical-align: baseline;\n }\n\n "," textarea {\n overflow: auto;\n }\n\n ",' :where([type="checkbox"], [type="radio"]) {\n box-sizing: border-box;\n padding: 0;\n }\n\n ',' input[type="number"]::-webkit-inner-spin-button,\n ',' input[type="number"]::-webkit-outer-spin-button {\n -webkit-appearance: none !important;\n }\n\n ',' input[type="number"] {\n -moz-appearance: textfield;\n }\n\n ',' input[type="search"] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n }\n\n ',' input[type="search"]::-webkit-search-decoration {\n -webkit-appearance: none !important;\n }\n\n '," ::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n }\n\n "," details {\n display: block;\n }\n\n "," summary {\n display: list-item;\n }\n\n template {\n display: none;\n }\n\n [hidden] {\n display: none !important;\n }\n\n "," :where(\n blockquote,\n dl,\n dd,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n hr,\n figure,\n p,\n pre\n ) {\n margin: 0;\n }\n\n "," button {\n background: transparent;\n padding: 0;\n }\n\n "," fieldset {\n margin: 0;\n padding: 0;\n }\n\n "," :where(ol, ul) {\n margin: 0;\n padding: 0;\n }\n\n "," textarea {\n resize: vertical;\n }\n\n ",' :where(button, [role="button"]) {\n cursor: pointer;\n }\n\n '," button::-moz-focus-inner {\n border: 0 !important;\n }\n\n "," table {\n border-collapse: collapse;\n }\n\n "," :where(h1, h2, h3, h4, h5, h6) {\n font-size: inherit;\n font-weight: inherit;\n }\n\n "," :where(button, input, optgroup, select, textarea) {\n padding: 0;\n line-height: inherit;\n color: inherit;\n }\n\n "," :where(img, svg, video, canvas, audio, iframe, embed, object) {\n display: block;\n }\n\n "," :where(img, video) {\n max-width: 100%;\n height: auto;\n }\n\n [data-js-focus-visible]\n :focus:not([data-focus-visible-added]):not(\n [data-focus-visible-disabled]\n ) {\n outline: none;\n box-shadow: none;\n }\n\n "," select::-ms-expand {\n display: none;\n }\n\n ","\n "]);return x=function(){return e},e}let w=String.raw,k=w(b()),S=()=>(0,o.jsx)(y.xB,{styles:k}),E=e=>{let{scope:t=""}=e;return(0,o.jsx)(y.xB,{styles:w(x(),t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,k)})};var _=n(96549),C=n(93031),O=n(58450),T=n(23880),A=n(41293);function P(e,t,n={}){let{stop:r,getKey:i}=n;return function e(n,o=[]){if((0,C.Kn)(n)||Array.isArray(n)){let a={};for(let[s,l]of Object.entries(n)){let u=i?.(s)??s,c=[...o,u];if(r?.(n,c))return t(n,o);a[u]=e(l,c)}return a}return t(n,o)}(e)}var I=n(57386),R=n(47301);let j=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function M(e,t){return(0,A.gJ)(String(e).replace(/\./g,"-"),void 0,t)}var N=n(57898),D=n(9396),L=n(85680),z=n(69072);function F(e){let{cssVarsRoot:t,theme:n,children:r}=e,i=(0,l.useMemo)(()=>(function(e){let t=function(e){let{__cssMap:t,__cssVars:n,__breakpoints:r,...i}=e;return i}(e),{cssMap:n,cssVars:r}=function(e){let t=function(e){let t=(0,R.e)(e,j),n=e.semanticTokens,r=e=>I._.includes(e)||"default"===e,i={};return P(t,(e,t)=>{null!=e&&(i[t.join(".")]={isSemantic:!1,value:e})}),P(n,(e,t)=>{null!=e&&(i[t.join(".")]={isSemantic:!0,value:e})},{stop:e=>Object.keys(e).every(r)}),i}(e),n=e.config?.cssVarPrefix,r={},i={};for(let[e,o]of Object.entries(t)){let{isSemantic:a,value:s}=o,{variable:l,reference:u}=M(e,n);if(!a){if(e.startsWith("space")){let[t,...n]=e.split("."),r=`${t}.-${n.join(".")}`,o=T.y.negate(s),a=T.y.negate(u);i[r]={value:o,var:l,varRef:a}}r[l]=s,i[e]={value:s,var:l,varRef:u};continue}r=O(r,Object.entries((0,C.Kn)(s)?s:{default:s}).reduce((r,[i,o])=>{if(!o)return r;let a=function(e,r){let i=[String(e).split(".")[0],r].join(".");if(!t[i])return r;let{reference:o}=M(i,n);return o}(e,`${o}`);return"default"===i?r[l]=a:r[I.v?.[i]??i]={[l]:a},r},{})),i[e]={value:u,var:l,varRef:u}}return{cssVars:r,cssMap:i}}(t);return Object.assign(t,{__cssVars:{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0",...r},__cssMap:n,__breakpoints:(0,_.y)(t.breakpoints)}),t})(n),[n]);return(0,o.jsxs)(s.a,{theme:i,children:[(0,o.jsx)(B,{root:t}),r]})}function B(e){let{root:t=":host, :root"}=e,n=[t,"[data-theme]"].join(",");return(0,o.jsx)(y.xB,{styles:e=>({[n]:e.__cssVars})})}let[$,V]=(0,D.k)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function U(){let{colorMode:e}=(0,u.If)();return(0,o.jsx)(y.xB,{styles:t=>{let n=(0,L.W)(t,"styles.global"),r=(0,z.P)(n,{theme:t,colorMode:e});if(r)return(0,N.i)(r)(t)}})}var W=n(43415),q=n(16909);let H=e=>{let{children:t,colorModeManager:n,portalZIndex:r,resetScope:i,resetCSS:a=!0,theme:s={},environment:l,cssVarsRoot:u,disableEnvironment:c,disableGlobalStyle:d}=e,f=(0,o.jsx)(q.u,{environment:l,disabled:c,children:t});return(0,o.jsx)(F,{theme:s,cssVarsRoot:u,children:(0,o.jsxs)(g,{colorModeManager:n,options:s.config,children:[a?(0,o.jsx)(E,{scope:i}):(0,o.jsx)(S,{}),!d&&(0,o.jsx)(U,{}),r?(0,o.jsx)(W.h,{zIndex:r,children:f}):f]})})};var Z=n(76694);let G=(r=i.rS,function(e){let{children:t,theme:n=r,toastOptions:i,...a}=e;return(0,o.jsxs)(H,{theme:n,...a,children:[(0,o.jsx)(Z.Qi,{value:null==i?void 0:i.defaultOptions,children:t}),(0,o.jsx)(Z.VW,{...i})]})})},70549:function(e,t,n){"use strict";n.d(t,{X:function(){return E}});var r=n(20130),i=n(66861),o=n(11915),a=n(33164),s=n(90010),l=n(68312),u=n(66703);let[c,d]=(0,n(9396).k)({name:"CheckboxGroupContext",strict:!1});var f=n(49110);function h(e){return(0,r.jsx)(f.m.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:(0,r.jsx)("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function p(e){return(0,r.jsx)(f.m.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:(0,r.jsx)("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function m(e){let{isIndeterminate:t,isChecked:n,...i}=e;return n||t?(0,r.jsx)(f.m.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,r.jsx)(t?p:h,{...i})}):null}var g=n(50192),v=n(43906),y=n(35364);let b={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},x={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},w=(0,l.F4)({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),k=(0,l.F4)({from:{opacity:0},to:{opacity:1}}),S=(0,l.F4)({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),E=(0,v.G)(function(e,t){let n=d(),l={...n,...e},c=(0,y.j)("Checkbox",l),h=(0,i.L)(e),{spacing:p="0.5rem",className:v,children:E,iconColor:_,iconSize:C,icon:O=(0,r.jsx)(m,{}),isChecked:T,isDisabled:A=null==n?void 0:n.isDisabled,onChange:P,inputProps:I,...R}=h,j=T;(null==n?void 0:n.value)&&h.value&&(j=n.value.includes(h.value));let M=P;(null==n?void 0:n.onChange)&&h.value&&(M=(0,o.P)(n.onChange,P));let{state:N,getInputProps:D,getCheckboxProps:L,getLabelProps:z,getRootProps:F}=(0,g.O)({...R,isDisabled:A,isChecked:j,onChange:M}),B=function(e){let[t,n]=(0,u.useState)(e),[r,i]=(0,u.useState)(!1);return e!==t&&(i(!0),n(e)),r}(N.isChecked),$=(0,u.useMemo)(()=>({animation:B?N.isIndeterminate?"".concat(k," 20ms linear, ").concat(S," 200ms linear"):"".concat(w," 200ms linear"):void 0,...c.icon,...(0,a.o)({fontSize:C,color:_})}),[_,C,B,N.isIndeterminate,c.icon]),V=(0,u.cloneElement)(O,{__css:$,isIndeterminate:N.isIndeterminate,isChecked:N.isChecked});return(0,r.jsxs)(f.m.label,{__css:{...x,...c.container},className:(0,s.cx)("chakra-checkbox",v),...F(),children:[(0,r.jsx)("input",{className:"chakra-checkbox__input",...D(I,t)}),(0,r.jsx)(f.m.span,{__css:{...b,...c.control},className:"chakra-checkbox__control",...L(),children:V}),E&&(0,r.jsx)(f.m.span,{className:"chakra-checkbox__label",...z(),__css:{marginStart:p,...c.label},children:E})]})});E.displayName="Checkbox"},50192:function(e,t,n){"use strict";n.d(t,{O:function(){return p}});var r=n(55229),i=n(59129),o=n(95318),a=n(6461),s=n(40810),l=n(26934),u=n(11915),c=n(99466),d=n(66703),f=n(31172),h=n(28770);function p(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{isDisabled:t,isReadOnly:n,isRequired:p,isInvalid:g,id:v,onBlur:y,onFocus:b,"aria-describedby":x}=(0,f.K)(e),{defaultChecked:w,isChecked:k,isFocusable:S,onChange:E,isIndeterminate:_,name:C,value:O,tabIndex:T,"aria-label":A,"aria-labelledby":P,"aria-invalid":I,...R}=e,j=(0,s.C)(R,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),M=(0,r.W)(E),N=(0,r.W)(y),D=(0,r.W)(b),[L,z]=(0,d.useState)(!1),[F,B]=(0,d.useState)(!1),[$,V]=(0,d.useState)(!1),[U,W]=(0,d.useState)(!1);(0,d.useEffect)(()=>(0,c.BT)(z),[]);let q=(0,d.useRef)(null),[H,Z]=(0,d.useState)(!0),[G,K]=(0,d.useState)(!!w),Y=void 0!==k,X=Y?k:G,J=(0,d.useCallback)(e=>{if(n||t){e.preventDefault();return}Y||(X?K(e.currentTarget.checked):K(!!_||e.currentTarget.checked)),null==M||M(e)},[n,t,X,Y,_,M]);(0,i.G)(()=>{q.current&&(q.current.indeterminate=!!_)},[_]),(0,o.r)(()=>{t&&B(!1)},[t,B]),(0,i.G)(()=>{let e=q.current;if(!(null==e?void 0:e.form))return;let t=()=>{K(!!w)};return e.form.addEventListener("reset",t),()=>{var n;return null===(n=e.form)||void 0===n?void 0:n.removeEventListener("reset",t)}},[]);let Q=t&&!S,ee=(0,d.useCallback)(e=>{" "===e.key&&W(!0)},[W]),et=(0,d.useCallback)(e=>{" "===e.key&&W(!1)},[W]);(0,i.G)(()=>{q.current&&q.current.checked!==X&&K(q.current.checked)},[q.current]);let en=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:r,"data-active":(0,l.P)(U),"data-hover":(0,l.P)($),"data-checked":(0,l.P)(X),"data-focus":(0,l.P)(F),"data-focus-visible":(0,l.P)(F&&L),"data-indeterminate":(0,l.P)(_),"data-disabled":(0,l.P)(t),"data-invalid":(0,l.P)(g),"data-readonly":(0,l.P)(n),"aria-hidden":!0,onMouseDown:(0,u.v)(e.onMouseDown,e=>{F&&e.preventDefault(),W(!0)}),onMouseUp:(0,u.v)(e.onMouseUp,()=>W(!1)),onMouseEnter:(0,u.v)(e.onMouseEnter,()=>V(!0)),onMouseLeave:(0,u.v)(e.onMouseLeave,()=>V(!1))}},[U,X,t,F,L,$,_,g,n]),er=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:r,"data-active":(0,l.P)(U),"data-hover":(0,l.P)($),"data-checked":(0,l.P)(X),"data-focus":(0,l.P)(F),"data-focus-visible":(0,l.P)(F&&L),"data-indeterminate":(0,l.P)(_),"data-disabled":(0,l.P)(t),"data-invalid":(0,l.P)(g),"data-readonly":(0,l.P)(n)}},[U,X,t,F,L,$,_,g,n]),ei=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...j,htmlFor:H?v:void 0,...e,ref:(0,a.lq)(n,e=>{e&&Z("LABEL"===e.tagName)}),onClick:(0,u.v)(e.onClick,()=>{if(!H){var e;null===(e=q.current)||void 0===e||e.click(),requestAnimationFrame(()=>{var e;null===(e=q.current)||void 0===e||e.focus({preventScroll:!0})})}}),"data-disabled":(0,l.P)(t),"data-checked":(0,l.P)(X),"data-invalid":(0,l.P)(g)}},[j,t,X,g,H,v]),eo=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:(0,a.lq)(q,r),type:"checkbox",name:C,value:O,id:v,tabIndex:T,onChange:(0,u.v)(e.onChange,J),onBlur:(0,u.v)(e.onBlur,N,()=>B(!1)),onFocus:(0,u.v)(e.onFocus,D,()=>B(!0)),onKeyDown:(0,u.v)(e.onKeyDown,ee),onKeyUp:(0,u.v)(e.onKeyUp,et),required:p,checked:X,disabled:Q,readOnly:n,"aria-label":A,"aria-labelledby":P,"aria-invalid":I?!!I:g,"aria-describedby":x,"aria-disabled":t,"aria-checked":_?"mixed":X,style:h.N}},[C,O,v,T,J,N,D,ee,et,p,X,Q,n,A,P,I,g,x,t,_]),ea=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:n,onMouseDown:(0,u.v)(e.onMouseDown,m),"data-disabled":(0,l.P)(t),"data-checked":(0,l.P)(X),"data-invalid":(0,l.P)(g)}},[X,t,g]);return{state:{isInvalid:g,isFocused:F,isChecked:X,isActive:U,isHovered:$,isIndeterminate:_,isDisabled:t,isReadOnly:n,isRequired:p},getRootProps:ei,getCheckboxProps:en,getIndicatorProps:er,getInputProps:eo,getLabelProps:ea,htmlProps:j}}function m(e){e.preventDefault(),e.stopPropagation()}},74269:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(6461),i=n(26934),o=n(66703);function a(e){var t,n,r;let{tagName:i,isContentEditable:o}=null!==(r=null===(n=e.composedPath)||void 0===n?void 0:null===(t=n.call(e))||void 0===t?void 0:t[0])&&void 0!==r?r:e.target;return"INPUT"!==i&&"TEXTAREA"!==i&&!0!==o}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{ref:t,isDisabled:n,isFocusable:s,clickOnEnter:l=!0,clickOnSpace:u=!0,onMouseDown:c,onMouseUp:d,onClick:f,onKeyDown:h,onKeyUp:p,tabIndex:m,onMouseOver:g,onMouseLeave:v,...y}=e,[b,x]=(0,o.useState)(!0),[w,k]=(0,o.useState)(!1),S=function(){let e=(0,o.useRef)(new Map),t=e.current,n=(0,o.useCallback)((t,n,r,i)=>{e.current.set(r,{type:n,el:t,options:i}),t.addEventListener(n,r,i)},[]),r=(0,o.useCallback)((t,n,r,i)=>{t.removeEventListener(n,r,i),e.current.delete(r)},[]);return(0,o.useEffect)(()=>()=>{t.forEach((e,t)=>{r(e.el,e.type,t,e.options)})},[r,t]),{add:n,remove:r}}(),E=b?m:m||0,_=n&&!s,C=(0,o.useCallback)(e=>{if(n){e.stopPropagation(),e.preventDefault();return}e.currentTarget.focus(),null==f||f(e)},[n,f]),O=(0,o.useCallback)(e=>{w&&a(e)&&(e.preventDefault(),e.stopPropagation(),k(!1),S.remove(document,"keyup",O,!1))},[w,S]),T=(0,o.useCallback)(e=>{if(null==h||h(e),n||e.defaultPrevented||e.metaKey||!a(e.nativeEvent)||b)return;let t=l&&"Enter"===e.key;u&&" "===e.key&&(e.preventDefault(),k(!0)),t&&(e.preventDefault(),e.currentTarget.click()),S.add(document,"keyup",O,!1)},[n,b,h,l,u,S,O]),A=(0,o.useCallback)(e=>{null==p||p(e),!n&&!e.defaultPrevented&&!e.metaKey&&a(e.nativeEvent)&&!b&&u&&" "===e.key&&(e.preventDefault(),k(!1),e.currentTarget.click())},[u,b,n,p]),P=(0,o.useCallback)(e=>{0===e.button&&(k(!1),S.remove(document,"mouseup",P,!1))},[S]),I=(0,o.useCallback)(e=>{if(0===e.button){if(n){e.stopPropagation(),e.preventDefault();return}b||k(!0),e.currentTarget.focus({preventScroll:!0}),S.add(document,"mouseup",P,!1),null==c||c(e)}},[n,b,c,S,P]),R=(0,o.useCallback)(e=>{0===e.button&&(b||k(!1),null==d||d(e))},[d,b]),j=(0,o.useCallback)(e=>{if(n){e.preventDefault();return}null==g||g(e)},[n,g]),M=(0,o.useCallback)(e=>{w&&(e.preventDefault(),k(!1)),null==v||v(e)},[w,v]),N=(0,r.lq)(t,e=>{e&&"BUTTON"!==e.tagName&&x(!1)});return b?{...y,ref:N,type:"button","aria-disabled":_?void 0:n,disabled:_,onClick:C,onMouseDown:c,onMouseUp:d,onKeyUp:p,onKeyDown:h,onMouseOver:g,onMouseLeave:v}:{...y,ref:N,role:"button","data-active":(0,i.P)(w),"aria-disabled":n?"true":void 0,tabIndex:_?void 0:E,onClick:C,onMouseDown:I,onMouseUp:R,onKeyUp:A,onKeyDown:T,onMouseOver:j,onMouseLeave:M}}},10994:function(e,t,n){"use strict";n.d(t,{P:function(){return c}});var r=n(20130),i=n(66861),o=n(5845),a=n(43906),s=n(35364),l=n(49110);function u(e){return(0,r.jsx)(o.J,{focusable:"false","aria-hidden":!0,...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}let c=(0,a.G)(function(e,t){let n=(0,s.m)("CloseButton",e),{children:o,isDisabled:a,__css:c,...d}=(0,i.L)(e);return(0,r.jsx)(l.m.button,{type:"button","aria-label":"Close",ref:t,disabled:a,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...n,...c},...d,children:o||(0,r.jsx)(u,{width:"1em",height:"1em"})})});c.displayName="CloseButton"},80717:function(e,t,n){"use strict";n.d(t,{E:function(){return u}});var r=n(20130),i=n(66861),o=n(90010),a=n(43906),s=n(35364),l=n(49110);let u=(0,a.G)(function(e,t){let n=(0,s.m)("Code",e),{className:a,...u}=(0,i.L)(e);return(0,r.jsx)(l.m.code,{ref:t,className:(0,o.cx)("chakra-code",e.className),...u,__css:{display:"inline-block",...n}})});u.displayName="Code"},16276:function(e,t,n){"use strict";n.d(t,{If:function(){return o},ff:function(){return a},kc:function(){return i}});var r=n(66703);let i=(0,r.createContext)({});function o(){let e=(0,r.useContext)(i);if(void 0===e)throw Error("useColorMode must be used within a ColorModeProvider");return e}function a(e,t){let{colorMode:n}=o();return"dark"===n?t:e}i.displayName="ColorModeContext"},39577:function(e,t,n){"use strict";n.d(t,{n:function(){return g}});var r=n(6461),i=n(9396),o=n(66703);function a(e){return e.sort((e,t)=>{let n=e.compareDocumentPosition(t);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return -1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(!(n&Node.DOCUMENT_POSITION_DISCONNECTED)&&!(n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC))return 0;throw Error("Cannot sort the given nodes.")})}let s=e=>"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function l(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function u(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}let c="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,d=e=>e;var f=Object.defineProperty,h=(e,t,n)=>t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,p=(e,t,n)=>(h(e,"symbol"!=typeof t?t+"":t,n),n);class m{constructor(){var e=this;p(this,"descendants",new Map),p(this,"register",e=>{if(null!=e)return s(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),p(this,"unregister",e=>{this.descendants.delete(e);let t=a(Array.from(this.descendants.keys()));this.assignIndex(t)}),p(this,"destroy",()=>{this.descendants.clear()}),p(this,"assignIndex",e=>{this.descendants.forEach(t=>{let n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})}),p(this,"count",()=>this.descendants.size),p(this,"enabledCount",()=>this.enabledValues().length),p(this,"values",()=>Array.from(this.descendants.values()).sort((e,t)=>e.index-t.index)),p(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),p(this,"item",e=>{if(0!==this.count())return this.values()[e]}),p(this,"enabledItem",e=>{if(0!==this.enabledCount())return this.enabledValues()[e]}),p(this,"first",()=>this.item(0)),p(this,"firstEnabled",()=>this.enabledItem(0)),p(this,"last",()=>this.item(this.descendants.size-1)),p(this,"lastEnabled",()=>{let e=this.enabledValues().length-1;return this.enabledItem(e)}),p(this,"indexOf",e=>{var t,n;return e&&null!==(n=null===(t=this.descendants.get(e))||void 0===t?void 0:t.index)&&void 0!==n?n:-1}),p(this,"enabledIndexOf",e=>null==e?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),p(this,"next",function(t){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=l(t,e.count(),n);return e.item(r)}),p(this,"nextEnabled",function(t){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=e.item(t);if(!r)return;let i=l(e.enabledIndexOf(r.node),e.enabledCount(),n);return e.enabledItem(i)}),p(this,"prev",function(t){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=u(t,e.count()-1,n);return e.item(r)}),p(this,"prevEnabled",function(t){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=e.item(t);if(!r)return;let i=u(e.enabledIndexOf(r.node),e.enabledCount()-1,n);return e.enabledItem(i)}),p(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;let n=a(Array.from(this.descendants.keys()).concat(e));(null==t?void 0:t.disabled)&&(t.disabled=!!t.disabled);let r={node:e,index:-1,...t};this.descendants.set(e,r),this.assignIndex(n)})}}function g(){let[e,t]=(0,i.k)({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});return[e,t,()=>{let e=(0,o.useRef)(new m);return c(()=>()=>e.current.destroy()),e.current},e=>{let n=t(),[i,a]=(0,o.useState)(-1),s=(0,o.useRef)(null);c(()=>()=>{s.current&&n.unregister(s.current)},[]),c(()=>{if(!s.current)return;let e=Number(s.current.dataset.index);i==e||Number.isNaN(e)||a(e)});let l=e?d(n.register(e)):d(n.register);return{descendants:n,index:i,enabledIndex:n.enabledIndexOf(s.current),register:(0,r.lq)(l,s)}}]}},38622:function(e,t,n){"use strict";n.d(t,{i:function(){return u}});var r=n(20130),i=n(66861),o=n(90010),a=n(43906),s=n(35364),l=n(49110);let u=(0,a.G)(function(e,t){let{borderLeftWidth:n,borderBottomWidth:a,borderTopWidth:u,borderRightWidth:c,borderWidth:d,borderStyle:f,borderColor:h,...p}=(0,s.m)("Divider",e),{className:m,orientation:g="horizontal",__css:v,...y}=(0,i.L)(e);return(0,r.jsx)(l.m.hr,{ref:t,"aria-orientation":g,...y,__css:{...p,border:"0",borderColor:h,borderStyle:f,...{vertical:{borderLeftWidth:n||c||d||"1px",height:"100%"},horizontal:{borderBottomWidth:a||u||d||"1px",width:"100%"}}[g],...v},className:(0,o.cx)("chakra-divider",m)})});u.displayName="Divider"},6010:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r=n(66703);function i(e){var t;let n=r.version;return"string"!=typeof n||n.startsWith("18.")?null==e?void 0:e.ref:null==e?void 0:null===(t=e.props)||void 0===t?void 0:t.ref}},16909:function(e,t,n){"use strict";n.d(t,{O:function(){return s},u:function(){return l}});var r=n(20130),i=n(59129),o=n(66703);let a=(0,o.createContext)({getDocument:()=>document,getWindow:()=>window});function s(){let{defer:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[,t]=(0,o.useReducer)(e=>e+1,0);return(0,i.G)(()=>{e&&t()},[e]),(0,o.useContext)(a)}function l(e){let{children:t,environment:n,disabled:i}=e,s=(0,o.useRef)(null),l=(0,o.useMemo)(()=>n||{getDocument:()=>{var e,t;return null!==(t=null===(e=s.current)||void 0===e?void 0:e.ownerDocument)&&void 0!==t?t:document},getWindow:()=>{var e,t;return null!==(t=null===(e=s.current)||void 0===e?void 0:e.ownerDocument.defaultView)&&void 0!==t?t:window}},[n]),u=!i||!n;return(0,r.jsxs)(a.Provider,{value:l,children:[t,u&&(0,r.jsx)("span",{id:"__chakra_env",hidden:!0,ref:s})]})}a.displayName="EnvironmentContext",l.displayName="EnvironmentProvider"},31973:function(e,t,n){"use strict";n.d(t,{B1:function(){return u}});var r=n(93031);let i=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];var o=n(30171),a=n(58450);function s(e){return"function"==typeof e}let l=e=>function(){for(var t,n=arguments.length,o=Array(n),l=0;l<n;l++)o[l]=arguments[l];let u=[...o],d=o[o.length-1];return(t=d,(0,r.Kn)(t)&&i.every(e=>Object.prototype.hasOwnProperty.call(t,e))&&u.length>1)?u=u.slice(0,u.length-1):d=e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>t.reduce((e,t)=>t(e),e)})(...u.map(e=>t=>s(e)?e(t):function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return a({},...t,c)}(t,e)))(d)},u=l(o.rS);function c(e,t,n,i){return(s(e)||s(t))&&Object.prototype.hasOwnProperty.call(i,n)?function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return a({},s(e)?e(...r):e,s(t)?t(...r):t,c)}:(0,r.Kn)(e)&&(0,r.kJ)(t)||(0,r.kJ)(e)&&(0,r.Kn)(t)?t:void 0}l(o.wE)},51895:function(e,t,n){"use strict";n.d(t,{k:function(){return a}});var r=n(20130),i=n(43906),o=n(49110);let a=(0,i.G)(function(e,t){let{direction:n,align:i,justify:a,wrap:s,basis:l,grow:u,shrink:c,...d}=e;return(0,r.jsx)(o.m.div,{ref:t,__css:{display:"flex",flexDirection:n,alignItems:i,justifyContent:a,flexWrap:s,flexBasis:l,flexGrow:u,flexShrink:c},...d})});a.displayName="Flex"},22488:function(e,t,n){"use strict";n.d(t,{NI:function(){return v},NJ:function(){return g},e:function(){return p}});var r=n(20130),i=n(6461),o=n(66861),a=n(9396),s=n(26934),l=n(90010),u=n(66703),c=n(43906),d=n(35364),f=n(49110);let[h,p]=(0,a.k)({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<FormControl />\" "}),[m,g]=(0,a.k)({strict:!1,name:"FormControlContext"}),v=(0,c.G)(function(e,t){let n=(0,d.j)("Form",e),{getRootProps:a,htmlProps:c,...p}=function(e){let{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:a,...l}=e,c=(0,u.useId)(),d=t||"field-".concat(c),f="".concat(d,"-label"),h="".concat(d,"-feedback"),p="".concat(d,"-helptext"),[m,g]=(0,u.useState)(!1),[v,y]=(0,u.useState)(!1),[b,x]=(0,u.useState)(!1),w=(0,u.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{id:p,...e,ref:(0,i.lq)(t,e=>{e&&y(!0)})}},[p]),k=(0,u.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:t,"data-focus":(0,s.P)(b),"data-disabled":(0,s.P)(o),"data-invalid":(0,s.P)(r),"data-readonly":(0,s.P)(a),id:void 0!==e.id?e.id:f,htmlFor:void 0!==e.htmlFor?e.htmlFor:d}},[d,o,b,r,a,f]),S=(0,u.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{id:h,...e,ref:(0,i.lq)(t,e=>{e&&g(!0)}),"aria-live":"polite"}},[h]),E=(0,u.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,...l,ref:t,role:"group","data-focus":(0,s.P)(b),"data-disabled":(0,s.P)(o),"data-invalid":(0,s.P)(r),"data-readonly":(0,s.P)(a)}},[l,o,b,r,a]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!a,isDisabled:!!o,isFocused:!!b,onFocus:()=>x(!0),onBlur:()=>x(!1),hasFeedbackText:m,setHasFeedbackText:g,hasHelpText:v,setHasHelpText:y,id:d,labelId:f,feedbackId:h,helpTextId:p,htmlProps:l,getHelpTextProps:w,getErrorMessageProps:S,getRootProps:E,getLabelProps:k,getRequiredIndicatorProps:(0,u.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"}},[])}}((0,o.L)(e)),g=(0,l.cx)("chakra-form-control",e.className);return(0,r.jsx)(m,{value:p,children:(0,r.jsx)(h,{value:n,children:(0,r.jsx)(f.m.div,{...a({},t),className:g,__css:n.container})})})});v.displayName="FormControl",(0,c.G)(function(e,t){let n=g(),i=p(),o=(0,l.cx)("chakra-form__helper-text",e.className);return(0,r.jsx)(f.m.div,{...null==n?void 0:n.getHelpTextProps(e,t),__css:i.helperText,className:o})}).displayName="FormHelperText"},91153:function(e,t,n){"use strict";n.d(t,{J1:function(){return p}});var r=n(20130),i=n(66861),o=n(9396),a=n(90010),s=n(22488),l=n(5845),u=n(43906),c=n(35364),d=n(49110);let[f,h]=(0,o.k)({name:"FormErrorStylesContext",errorMessage:"useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<FormError />\" "}),p=(0,u.G)((e,t)=>{let n=(0,c.j)("FormError",e),o=(0,i.L)(e),l=(0,s.NJ)();return(null==l?void 0:l.isInvalid)?(0,r.jsx)(f,{value:n,children:(0,r.jsx)(d.m.div,{...null==l?void 0:l.getErrorMessageProps(o,t),className:(0,a.cx)("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...n.text}})}):null});p.displayName="FormErrorMessage",(0,u.G)((e,t)=>{let n=h(),i=(0,s.NJ)();if(!(null==i?void 0:i.isInvalid))return null;let o=(0,a.cx)("chakra-form__error-icon",e.className);return(0,r.jsx)(l.J,{ref:t,"aria-hidden":!0,...e,__css:n.icon,className:o,children:(0,r.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}).displayName="FormErrorIcon"},49151:function(e,t,n){"use strict";n.d(t,{l:function(){return c}});var r=n(20130),i=n(66861),o=n(90010),a=n(22488),s=n(43906),l=n(35364),u=n(49110);let c=(0,s.G)(function(e,t){var n;let s=(0,l.m)("FormLabel",e),c=(0,i.L)(e),{className:f,children:h,requiredIndicator:p=(0,r.jsx)(d,{}),optionalIndicator:m=null,...g}=c,v=(0,a.NJ)(),y=null!==(n=null==v?void 0:v.getLabelProps(g,t))&&void 0!==n?n:{ref:t,...g};return(0,r.jsxs)(u.m.label,{...y,className:(0,o.cx)("chakra-form__label",c.className),__css:{display:"block",textAlign:"start",...s},children:[h,(null==v?void 0:v.isRequired)?p:m]})});c.displayName="FormLabel";let d=(0,s.G)(function(e,t){let n=(0,a.NJ)(),i=(0,a.e)();if(!(null==n?void 0:n.isRequired))return null;let s=(0,o.cx)("chakra-form__required-indicator",e.className);return(0,r.jsx)(u.m.span,{...null==n?void 0:n.getRequiredIndicatorProps(e,t),__css:i.requiredIndicator,className:s})});d.displayName="RequiredIndicator"},31172:function(e,t,n){"use strict";n.d(t,{K:function(){return s},Y:function(){return a}});var r=n(26934),i=n(11915),o=n(22488);function a(e){let{isDisabled:t,isInvalid:n,isReadOnly:i,isRequired:o,...a}=s(e);return{...a,disabled:t,readOnly:i,required:o,"aria-invalid":(0,r.Q)(n),"aria-required":(0,r.Q)(o),"aria-readonly":(0,r.Q)(i)}}function s(e){var t,n,r;let a=(0,o.NJ)(),{id:s,disabled:l,readOnly:u,required:c,isRequired:d,isInvalid:f,isReadOnly:h,isDisabled:p,onFocus:m,onBlur:g,...v}=e,y=e["aria-describedby"]?[e["aria-describedby"]]:[];return(null==a?void 0:a.hasFeedbackText)&&(null==a?void 0:a.isInvalid)&&y.push(a.feedbackId),(null==a?void 0:a.hasHelpText)&&y.push(a.helpTextId),{...v,"aria-describedby":y.join(" ")||void 0,id:null!=s?s:null==a?void 0:a.id,isDisabled:null!==(t=null!=l?l:p)&&void 0!==t?t:null==a?void 0:a.isDisabled,isReadOnly:null!==(n=null!=u?u:h)&&void 0!==n?n:null==a?void 0:a.isReadOnly,isRequired:null!==(r=null!=c?c:d)&&void 0!==r?r:null==a?void 0:a.isRequired,isInvalid:null!=f?f:null==a?void 0:a.isInvalid,onFocus:(0,i.v)(null==a?void 0:a.onFocus,m),onBlur:(0,i.v)(null==a?void 0:a.onBlur,g)}}},97586:function(e,t,n){"use strict";n.d(t,{P:function(){return u}});var r=n(20130),i=n(69475),o=n(33164),a=n(43906),s=n(49110);function l(e){return(0,i.XQ)(e,e=>"auto"===e?"auto":"span ".concat(e,"/span ").concat(e))}let u=(0,a.G)(function(e,t){let{area:n,colSpan:i,colStart:a,colEnd:u,rowEnd:c,rowSpan:d,rowStart:f,...h}=e,p=(0,o.o)({gridArea:n,gridColumn:l(i),gridRow:l(d),gridColumnStart:a,gridColumnEnd:u,gridRowStart:f,gridRowEnd:c});return(0,r.jsx)(s.m.div,{ref:t,__css:p,...h})});u.displayName="GridItem"},72025:function(e,t,n){"use strict";n.d(t,{r:function(){return a}});var r=n(20130),i=n(43906),o=n(49110);let a=(0,i.G)(function(e,t){let{templateAreas:n,gap:i,rowGap:a,columnGap:s,column:l,row:u,autoFlow:c,autoRows:d,templateRows:f,autoColumns:h,templateColumns:p,...m}=e;return(0,r.jsx)(o.m.div,{ref:t,__css:{display:"grid",gridTemplateAreas:n,gridGap:i,gridRowGap:a,gridColumnGap:s,gridAutoColumns:h,gridColumn:l,gridRow:u,gridAutoFlow:c,gridAutoRows:d,gridTemplateRows:f,gridTemplateColumns:p},...m})});a.displayName="Grid"},73463:function(e,t,n){"use strict";n.d(t,{y:function(){return d}});var r=n(20130),i=n(66703),o=n(66861),a=n(28561),s=n(43906),l=n(35364);let u=(0,s.G)(function(e,t){let n=(0,l.m)("Mark",e),i=(0,o.L)(e);return(0,r.jsx)(a.x,{ref:t,...i,as:"mark",__css:{bg:"transparent",whiteSpace:"nowrap",...n}})}),c=e=>e.replace(/[|\\{}()[\]^$+*?.-]/g,e=>"\\".concat(e));function d(e){let{children:t,query:n,styles:o}=e;if("string"!=typeof t)throw Error("The children prop of Highlight must be a string");let a=function(e){let{text:t,query:n}=e;return(0,i.useMemo)(()=>(function(e){let{text:t,query:n}=e,r=function(e){let t=e.filter(e=>0!==e.length).map(e=>c(e.trim()));return t.length?RegExp("(".concat(t.join("|"),")"),"ig"):null}(Array.isArray(n)?n:[n]);return r?t.split(r).filter(Boolean).map(e=>({text:e,match:r.test(e)})):[{text:t,match:!1}]})({text:t,query:n}),[t,n])}({query:n,text:t});return(0,r.jsx)(r.Fragment,{children:a.map((e,t)=>e.match?(0,r.jsx)(u,{sx:o,children:e.text},t):(0,r.jsx)(i.Fragment,{children:e.text},t))})}},64274:function(e,t,n){"use strict";n.d(t,{I:function(){return s}});var r=n(20130),i=n(66703),o=n(5845),a=n(43906);function s(e){let{viewBox:t="0 0 24 24",d:n,displayName:s,defaultProps:l={}}=e,u=i.Children.toArray(e.path),c=(0,a.G)((e,i)=>(0,r.jsx)(o.J,{ref:i,viewBox:t,...l,...e,children:u.length?u:(0,r.jsx)("path",{fill:"currentColor",d:n})}));return c.displayName=s,c}},5845:function(e,t,n){"use strict";n.d(t,{J:function(){return u}});var r=n(20130),i=n(90010),o=n(43906),a=n(35364),s=n(49110);let l={path:(0,r.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,r.jsx)("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),(0,r.jsx)("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),(0,r.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},u=(0,o.G)((e,t)=>{let{as:n,viewBox:o,color:u="currentColor",focusable:c=!1,children:d,className:f,__css:h,...p}=e,m=(0,i.cx)("chakra-icon",f),g=(0,a.m)("Icon",e),v={ref:t,focusable:c,className:m,__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:u,...h,...g}},y=null!=o?o:l.viewBox;if(n&&"string"!=typeof n)return(0,r.jsx)(s.m.svg,{as:n,...v,...p});let b=null!=d?d:l.path;return(0,r.jsx)(s.m.svg,{verticalAlign:"middle",viewBox:y,...v,...p,children:b})});u.displayName="Icon"},8656:function(e,t,n){"use strict";n.d(t,{E:function(){return d}});var r=n(20130),i=n(40810),o=n(43906);let a=(0,o.G)(function(e,t){let{htmlWidth:n,htmlHeight:i,alt:o,...a}=e;return(0,r.jsx)("img",{width:n,height:i,ref:t,alt:o,...a})});a.displayName="NativeImage";var s=n(59129),l=n(66703);let u=(e,t)=>"loaded"!==e&&"beforeLoadOrError"===t||"failed"===e&&"onError"===t;var c=n(49110);let d=(0,o.G)(function(e,t){let{fallbackSrc:n,fallback:o,src:d,srcSet:f,align:h,fit:p,loading:m,ignoreFallback:g,crossOrigin:v,fallbackStrategy:y="beforeLoadOrError",referrerPolicy:b,...x}=e,w=void 0!==n||void 0!==o,k=null!=m||g||!w,S=u(function(e){let{loading:t,src:n,srcSet:r,onLoad:i,onError:o,crossOrigin:a,sizes:u,ignoreFallback:c}=e,[d,f]=(0,l.useState)("pending");(0,l.useEffect)(()=>{f(n?"loading":"pending")},[n]);let h=(0,l.useRef)(null),p=(0,l.useCallback)(()=>{if(!n)return;m();let e=new Image;e.src=n,a&&(e.crossOrigin=a),r&&(e.srcset=r),u&&(e.sizes=u),t&&(e.loading=t),e.onload=e=>{m(),f("loaded"),null==i||i(e)},e.onerror=e=>{m(),f("failed"),null==o||o(e)},h.current=e},[n,a,r,u,i,o,t]),m=()=>{h.current&&(h.current.onload=null,h.current.onerror=null,h.current=null)};return(0,s.G)(()=>{if(!c)return"loading"===d&&p(),()=>{m()}},[d,p,c]),c?"loaded":d}({...e,crossOrigin:v,ignoreFallback:k}),y),E={ref:t,objectFit:p,objectPosition:h,...k?x:(0,i.C)(x,["onError","onLoad"])};return S?o||(0,r.jsx)(c.m.img,{as:a,className:"chakra-image__placeholder",src:n,...E}):(0,r.jsx)(c.m.img,{as:a,src:d,srcSet:f,crossOrigin:v,loading:m,referrerPolicy:b,className:"chakra-image",...E})});d.displayName="Image"},2097:function(e,t,n){"use strict";n.d(t,{x:function(){return d}});var r=n(20130),i=n(90010),o=n(27951),a=n(49110),s=n(43906);let l=(0,a.m)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),u=(0,s.G)(function(e,t){var n,i;let{placement:a="left",...s}=e,u=(0,o.m)(),c=u.field,d={["left"===a?"insetStart":"insetEnd"]:"0",width:null!==(n=null==c?void 0:c.height)&&void 0!==n?n:null==c?void 0:c.h,height:null!==(i=null==c?void 0:c.height)&&void 0!==i?i:null==c?void 0:c.h,fontSize:null==c?void 0:c.fontSize,...u.element};return(0,r.jsx)(l,{ref:t,__css:d,...s})});u.id="InputElement",u.displayName="InputElement";let c=(0,s.G)(function(e,t){let{className:n,...o}=e,a=(0,i.cx)("chakra-input__left-element",n);return(0,r.jsx)(u,{ref:t,placement:"left",className:a,...o})});c.id="InputLeftElement",c.displayName="InputLeftElement";let d=(0,s.G)(function(e,t){let{className:n,...o}=e,a=(0,i.cx)("chakra-input__right-element",n);return(0,r.jsx)(u,{ref:t,placement:"right",className:a,...o})});d.id="InputRightElement",d.displayName="InputRightElement"},27951:function(e,t,n){"use strict";n.d(t,{B:function(){return m},m:function(){return p}});var r=n(20130),i=n(66861),o=n(9396),a=n(90010),s=n(84535),l=n(33164),u=n(66703),c=n(43906),d=n(35364),f=n(49110);let[h,p]=(0,o.k)({name:"InputGroupStylesContext",errorMessage:"useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<InputGroup />\" "}),m=(0,c.G)(function(e,t){let n=(0,d.j)("Input",e),{children:o,className:c,...p}=(0,i.L)(e),m=(0,a.cx)("chakra-input__group",c),g={},v=(0,s.W)(o),y=n.field;v.forEach(e=>{var t,r;n&&(y&&"InputLeftElement"===e.type.id&&(g.paddingStart=null!==(t=y.height)&&void 0!==t?t:y.h),y&&"InputRightElement"===e.type.id&&(g.paddingEnd=null!==(r=y.height)&&void 0!==r?r:y.h),"InputRightAddon"===e.type.id&&(g.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(g.borderStartRadius=0))});let b=v.map(t=>{var n,r;let i=(0,l.o)({size:(null===(n=t.props)||void 0===n?void 0:n.size)||e.size,variant:(null===(r=t.props)||void 0===r?void 0:r.variant)||e.variant});return"Input"!==t.type.id?(0,u.cloneElement)(t,i):(0,u.cloneElement)(t,Object.assign(i,g,t.props))});return(0,r.jsx)(f.m.div,{className:m,ref:t,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...n.group},"data-group":!0,...p,children:(0,r.jsx)(h,{value:n,children:b})})});m.displayName="InputGroup"},87452:function(e,t,n){"use strict";n.d(t,{I:function(){return c}});var r=n(20130),i=n(66861),o=n(90010),a=n(31172),s=n(43906),l=n(35364),u=n(49110);let c=(0,s.G)(function(e,t){let{htmlSize:n,...s}=e,c=(0,l.j)("Input",s),d=(0,i.L)(s),f=(0,a.Y)(d),h=(0,o.cx)("chakra-input",e.className);return(0,r.jsx)(u.m.input,{size:n,...f,__css:c.field,ref:t,className:h})});c.displayName="Input",c.id="Input"},90545:function(e,t,n){"use strict";n.d(t,{r:function(){return u}});var r=n(20130),i=n(66861),o=n(90010),a=n(43906),s=n(35364),l=n(49110);let u=(0,a.G)(function(e,t){let n=(0,s.m)("Link",e),{className:a,isExternal:u,...c}=(0,i.L)(e);return(0,r.jsx)(l.m.a,{target:u?"_blank":void 0,rel:u?"noopener":void 0,ref:t,className:(0,o.cx)("chakra-link",a),...c,__css:n})});u.displayName="Link"},29537:function(e,t,n){"use strict";n.d(t,{HC:function(){return m},QI:function(){return p},aV:function(){return h}});var r=n(20130),i=n(66861),o=n(9396),a=n(84535),s=n(5845),l=n(43906),u=n(35364),c=n(49110);let[d,f]=(0,o.k)({name:"ListStylesContext",errorMessage:"useListStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<List />\" "}),h=(0,l.G)(function(e,t){let n=(0,u.j)("List",e),{children:o,styleType:s="none",stylePosition:l,spacing:f,...h}=(0,i.L)(e),p=(0,a.W)(o);return(0,r.jsx)(d,{value:n,children:(0,r.jsx)(c.m.ul,{ref:t,listStyleType:s,listStylePosition:l,role:"list",__css:{...n.container,...f?{"& > *:not(style) ~ *:not(style)":{mt:f}}:{}},...h,children:p})})});h.displayName="List",(0,l.G)((e,t)=>{let{as:n,...i}=e;return(0,r.jsx)(h,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...i})}).displayName="OrderedList";let p=(0,l.G)(function(e,t){let{as:n,...i}=e;return(0,r.jsx)(h,{ref:t,as:"ul",styleType:"initial",marginStart:"1em",...i})});p.displayName="UnorderedList";let m=(0,l.G)(function(e,t){let n=f();return(0,r.jsx)(c.m.li,{ref:t,...e,__css:n.item})});m.displayName="ListItem",(0,l.G)(function(e,t){let n=f();return(0,r.jsx)(s.J,{ref:t,role:"presentation",...e,__css:n.icon})}).displayName="ListIcon"},20395:function(e,t,n){"use strict";n.d(t,{S:function(){return l}});var r=n(93031),i=n(69475),o=n(66703),a=n(16909),s=n(35518);function l(e,t){var n;let l=function(e){var t,n;let i=(0,r.Kn)(e)?e:{fallback:null!=e?e:"base"},l=(0,s.F)().__breakpoints.details.map(e=>{let{minMaxQuery:t,breakpoint:n}=e;return{breakpoint:n,query:t.replace("@media screen and ","")}}),u=l.map(e=>e.breakpoint===i.fallback),c=(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{ssr:n=!0,fallback:r}=t,{getWindow:i}=(0,a.O)(),s=Array.isArray(e)?e:[e],l=Array.isArray(r)?r:[r];l=l.filter(e=>null!=e);let[u,c]=(0,o.useState)(()=>s.map((e,t)=>({media:e,matches:n?!!l[t]:i().matchMedia(e).matches})));return(0,o.useEffect)(()=>{let e=i();c(s.map(t=>({media:t,matches:e.matchMedia(t).matches})));let t=s.map(t=>e.matchMedia(t)),n=e=>{c(t=>t.slice().map(t=>t.media===e.media?{...t,matches:e.matches}:t))};return t.forEach(e=>{"function"==typeof e.addListener?e.addListener(n):e.addEventListener("change",n)}),()=>{t.forEach(e=>{"function"==typeof e.removeListener?e.removeListener(n):e.removeEventListener("change",n)})}},[i]),u.map(e=>e.matches)})(l.map(e=>e.query),{fallback:u,ssr:i.ssr}).findIndex(e=>!0==e);return null!==(n=null===(t=l[c])||void 0===t?void 0:t.breakpoint)&&void 0!==n?n:i.fallback}((0,r.Kn)(t)?t:{fallback:null!=t?t:"base"}),u=(0,s.F)();if(!l)return;let c=Array.from((null===(n=u.__breakpoints)||void 0===n?void 0:n.keys)||[]);return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.AV,r=Object.keys(e).indexOf(t);if(-1!==r)return e[t];let o=n.indexOf(t);for(;o>=0;){let t=n[o];if(e.hasOwnProperty(t)){r=o;break}o-=1}if(-1!==r)return e[n[r]]}(Array.isArray(e)?Object.fromEntries(Object.entries((0,i.Yq)(e,c)).map(e=>{let[t,n]=e;return[t,n]})):e,l,c)}},76421:function(e,t,n){"use strict";n.d(t,{j:function(){return c}});var r=n(20130),i=n(90010),o=n(91504),a=n(37261),s=n(43906),l=n(49110);let u=(0,s.G)((e,t)=>{let n=(0,o.x)();return(0,r.jsx)(l.m.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...n.button}})}),c=(0,s.G)((e,t)=>{let{children:n,as:o,...s}=e,c=(0,a.zZ)(s,t),d=o||u;return(0,r.jsx)(d,{...c,className:(0,i.cx)("chakra-menu__menu-button",e.className),children:(0,r.jsx)(l.m.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:e.children})})});c.displayName="MenuButton"},28469:function(e,t,n){"use strict";n.d(t,{R:function(){return s}});var r=n(20130),i=n(90010),o=n(91504),a=n(49110);let s=e=>{let{className:t,...n}=e,s=(0,o.x)();return(0,r.jsx)(a.m.hr,{"aria-orientation":"horizontal",className:(0,i.cx)("chakra-menu__divider",t),...n,__css:s.divider})};s.displayName="MenuDivider"},64871:function(e,t,n){"use strict";n.d(t,{k:function(){return l}});var r=n(20130),i=n(90010),o=n(91504),a=n(43906),s=n(49110);let l=(0,a.G)((e,t)=>{let{title:n,children:a,className:l,...u}=e,c=(0,i.cx)("chakra-menu__group__title",l),d=(0,o.x)();return(0,r.jsxs)("div",{ref:t,className:"chakra-menu__group",role:"group",children:[n&&(0,r.jsx)(s.m.p,{className:c,...u,__css:d.groupTitle,children:n}),a]})});l.displayName="MenuGroup"},33028:function(e,t,n){"use strict";n.d(t,{O:function(){return l}});var r=n(20130),i=n(90010),o=n(66703),a=n(91504),s=n(49110);let l=e=>{let{className:t,children:n,...l}=e,u=(0,a.x)(),c=o.Children.only(n),d=(0,o.isValidElement)(c)?(0,o.cloneElement)(c,{focusable:"false","aria-hidden":!0,className:(0,i.cx)("chakra-menu__icon",c.props.className)}):null,f=(0,i.cx)("chakra-menu__icon-wrapper",t);return(0,r.jsx)(s.m.span,{className:f,...l,__css:u.icon,children:d})};l.displayName="MenuIcon"},31319:function(e,t,n){"use strict";n.d(t,{s:function(){return h}});var r=n(20130),i=n(90010),o=n(91504),a=n(43906),s=n(49110);let l=(0,a.G)((e,t)=>{let n=(0,o.x)();return(0,r.jsx)(s.m.span,{ref:t,...e,__css:n.command,className:"chakra-menu__command"})});l.displayName="MenuCommand";var u=n(33028),c=n(66703);let d=(0,a.G)((e,t)=>{let{type:n,...i}=e,a=(0,o.x)(),l=i.as||n?null!=n?n:void 0:"button",u=(0,c.useMemo)(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...a.item}),[a.item]);return(0,r.jsx)(s.m.button,{ref:t,type:l,...i,__css:u})});var f=n(37261);let h=(0,a.G)((e,t)=>{let{icon:n,iconSpacing:o="0.75rem",command:a,commandSpacing:s="0.75rem",children:c,...h}=e,p=(0,f.iX)(h,t),m=n||a?(0,r.jsx)("span",{style:{pointerEvents:"none",flex:1},children:c}):c;return(0,r.jsxs)(d,{...p,className:(0,i.cx)("chakra-menu__menuitem",p.className),children:[n&&(0,r.jsx)(u.O,{fontSize:"0.8em",marginEnd:o,children:n}),m,a&&(0,r.jsx)(l,{marginStart:s,children:a})]})});h.displayName="MenuItem"},12353:function(e,t,n){"use strict";n.d(t,{q:function(){return h}});var r=n(20130),i=n(90010),o=n(11915),a=n(42349),s=n(91504),l=n(37261),u=n(49110),c=n(43906);let d={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},f=(0,u.m)(a.E.div),h=(0,c.G)(function(e,t){var n,a;let{rootProps:c,motionProps:h,...p}=e,{isOpen:m,onTransitionEnd:g,unstable__animationState:v}=(0,l.Xh)(),y=(0,l._l)(p,t),b=(0,l.Qh)(c),x=(0,s.x)();return(0,r.jsx)(u.m.div,{...b,__css:{zIndex:null!==(a=e.zIndex)&&void 0!==a?a:null===(n=x.list)||void 0===n?void 0:n.zIndex},children:(0,r.jsx)(f,{variants:d,initial:!1,animate:m?"enter":"exit",__css:{outline:0,...x.list},...h,...y,className:(0,i.cx)("chakra-menu__menu-list",y.className),onUpdate:g,onAnimationComplete:(0,o.P)(v.onComplete,y.onAnimationComplete)})})});h.displayName="MenuList"},91504:function(e,t,n){"use strict";n.d(t,{v:function(){return h},x:function(){return f}});var r=n(20130),i=n(66861),o=n(9396),a=n(69072),s=n(66703),l=n(37261),u=n(35518),c=n(35364);let[d,f]=(0,o.k)({name:"MenuStylesContext",errorMessage:"useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Menu />\" "}),h=e=>{let{children:t}=e,n=(0,c.j)("Menu",e),o=(0,i.L)(e),{direction:f}=(0,u.F)(),{descendants:h,...p}=(0,l.H9)({...o,direction:f}),m=(0,s.useMemo)(()=>p,[p]),{isOpen:g,onClose:v,forceUpdate:y}=m;return(0,r.jsx)(l.wN,{value:h,children:(0,r.jsx)(l.Kb,{value:m,children:(0,r.jsx)(d,{value:n,children:(0,a.P)(t,{isOpen:g,onClose:v,forceUpdate:y})})})})};h.displayName="Menu"},37261:function(e,t,n){"use strict";n.d(t,{wN:function(){return v},Kb:function(){return w},H9:function(){return E},zZ:function(){return _},Xh:function(){return k},iX:function(){return A},_l:function(){return O},Qh:function(){return T}});var r=n(85071),i=n(18404),o=n(15749),a=n(19774),s=n(66703),l=n(95318),u=n(6461),c=n(9396),d=n(26934),f=n(11915),h=n(27425),p=n(39577),m=n(48961),g=n(74269);let[v,y,b,x]=(0,p.n)(),[w,k]=(0,c.k)({strict:!1,name:"MenuContext"});function S(e){var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document}function E(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{id:t,closeOnSelect:n=!0,closeOnBlur:u=!0,initialFocusRef:c,autoSelect:d=!0,isLazy:f,isOpen:h,defaultIsOpen:p,onClose:g,onOpen:v,placement:y="bottom-start",lazyBehavior:x="unmount",direction:w,computePositionOnMount:k=!1,...E}=e,_=(0,s.useRef)(null),C=(0,s.useRef)(null),O=(0,s.useRef)(!0),T=b(),A=(0,s.useCallback)(()=>{requestAnimationFrame(()=>{var e;null===(e=_.current)||void 0===e||e.focus({preventScroll:!1})})},[]),P=(0,s.useCallback)(()=>{let e=setTimeout(()=>{var e,t;if(c)null===(e=c.current)||void 0===e||e.focus();else if(T.count()){let e=T.firstEnabled();e&&F(e.index)}else null===(t=_.current)||void 0===t||t.focus({preventScroll:!1})});W.current.add(e)},[T,c]),I=(0,s.useCallback)(()=>{let e=setTimeout(()=>{if(T.count()){let e=T.lastEnabled();e&&F(e.index)}else{var e;null===(e=_.current)||void 0===e||e.focus({preventScroll:!1})}});W.current.add(e)},[T]),R=(0,s.useCallback)(()=>{null==v||v(),d?P():A()},[d,P,A,v]),{isOpen:j,onOpen:M,onClose:N,onToggle:D}=(0,r.q)({isOpen:h,defaultIsOpen:p,onClose:g,onOpen:R});(0,i.O)({enabled:j&&u,ref:_,handler:e=>{var t,n,r,i;let o=null!==(i=null===(n=e.composedPath)||void 0===n?void 0:null===(t=n.call(e))||void 0===t?void 0:t[0])&&void 0!==i?i:e.target;(null===(r=C.current)||void 0===r?void 0:r.contains(o))||N()}});let L=(0,m.D)({...E,enabled:j||k,placement:y,direction:w}),[z,F]=(0,s.useState)(-1);(0,o.C)(_,{focusRef:C,visible:j,shouldFocus:!0});let B=(0,a.h)({isOpen:j,ref:_}),[$,V]=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let i=function(e,t){let n=(0,s.useId)();return(0,s.useMemo)(()=>e||[void 0,n].filter(Boolean).join("-"),[e,void 0,n])}(e);return(0,s.useMemo)(()=>n.map(e=>"".concat(e,"-").concat(i)),[i,n])}(t,"menu-button","menu-list"),U=(0,s.useCallback)(()=>{M(),A()},[M,A]),W=(0,s.useRef)(new Set([]));return(0,s.useEffect)(()=>{let e=W.current;return()=>{e.forEach(e=>clearTimeout(e)),e.clear()}},[]),(0,l.r)(()=>{var e;j||(F(-1),null===(e=_.current)||void 0===e||e.scrollTo(0,0))},[j]),(0,l.r)(()=>{j&&-1===z&&A()},[z,j]),(0,s.useEffect)(()=>{var e;if(!j)return;let t=T.item(z);null==t||null===(e=t.node)||void 0===e||e.focus({preventScroll:!O.current})},[T,z,j]),{openAndFocusMenu:U,openAndFocusFirstItem:(0,s.useCallback)(()=>{M(),P()},[P,M]),openAndFocusLastItem:(0,s.useCallback)(()=>{O.current=!0,M(),I()},[M,I]),onTransitionEnd:(0,s.useCallback)(()=>{var e,t;let n=S(_.current),r=null===(e=_.current)||void 0===e?void 0:e.contains(n.activeElement);if(!(j&&!r))return;let i=null===(t=T.item(z))||void 0===t?void 0:t.node;null==i||i.focus({preventScroll:!O.current})},[j,z,T]),unstable__animationState:B,descendants:T,popper:L,buttonId:$,menuId:V,forceUpdate:L.forceUpdate,orientation:"vertical",isOpen:j,onToggle:D,onOpen:M,onClose:N,menuRef:_,buttonRef:C,focusedIndex:z,closeOnSelect:n,closeOnBlur:u,autoSelect:d,setFocusedIndex:F,isLazy:f,lazyBehavior:x,initialFocusRef:c,scrollIntoViewRef:O}}function _(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=k(),{onToggle:r,popper:i,openAndFocusFirstItem:o,openAndFocusLastItem:a,scrollIntoViewRef:l}=n,c=(0,s.useCallback)(e=>{let t={Enter:o,ArrowDown:o,ArrowUp:a}[e.key];t&&(l.current=!0,e.preventDefault(),e.stopPropagation(),t(e))},[o,a,l]);return{...e,ref:(0,u.lq)(n.buttonRef,t,i.referenceRef),id:n.buttonId,"data-active":(0,d.P)(n.isOpen),"aria-expanded":n.isOpen,"aria-haspopup":"menu","aria-controls":n.menuId,onClick:(0,f.v)(e.onClick,r),onKeyDown:(0,f.v)(e.onKeyDown,c)}}function C(e){var t;return function(e){var t;if(!(null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE))return!1;let n=null!==(t=e.ownerDocument.defaultView)&&void 0!==t?t:window;return e instanceof n.HTMLElement}(e)&&!!(null==e?void 0:null===(t=e.getAttribute("role"))||void 0===t?void 0:t.startsWith("menuitem"))}function O(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=k();if(!n)throw Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");let{focusedIndex:r,setFocusedIndex:i,menuRef:o,isOpen:a,onClose:l,menuId:c,isLazy:d,lazyBehavior:p,scrollIntoViewRef:m,unstable__animationState:g}=n,v=y(),b=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{timeout:t=300,preventDefault:n=()=>!0}=e,[r,i]=(0,s.useState)([]),o=(0,s.useRef)(void 0),a=()=>{o.current&&(clearTimeout(o.current),o.current=null)},l=()=>{a(),o.current=setTimeout(()=>{i([]),o.current=null},t)};return(0,s.useEffect)(()=>a,[]),function(e){return t=>{if("Backspace"===t.key){let e=[...r];e.pop(),i(e);return}if(function(e){let{key:t}=e;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(t)){let o=r.concat(t.key);n(t)&&(t.preventDefault(),t.stopPropagation()),i(o),e(o.join("")),l()}}}}({preventDefault:e=>" "!==e.key&&C(e.target)}),x=(0,s.useCallback)(e=>{if(!e.currentTarget.contains(e.target))return;let t={Tab:e=>e.preventDefault(),Escape:e=>{e.stopPropagation(),l()},ArrowDown:()=>{var e;m.current=!0;let t=null!==(e=v.nextEnabled(r))&&void 0!==e?e:v.firstEnabled();t&&i(t.index)},ArrowUp:()=>{var e;m.current=!0;let t=null!==(e=v.prevEnabled(r))&&void 0!==e?e:v.firstEnabled();t&&i(t.index)}}[e.key];if(t){e.preventDefault(),t(e);return}let n=b(e=>{let t=function(e,t,n,r){if(null==t)return r;if(!r)return e.find(e=>n(e).toLowerCase().startsWith(t.toLowerCase()));let i=e.filter(e=>n(e).toLowerCase().startsWith(t.toLowerCase()));if(i.length>0){let t;return i.includes(r)?((t=i.indexOf(r)+1)===i.length&&(t=0),i[t]):(t=e.indexOf(i[0]),e[t])}return r}(v.values(),e,e=>{var t,n;return null!==(n=null==e?void 0:null===(t=e.node)||void 0===t?void 0:t.textContent)&&void 0!==n?n:""},v.item(r));t&&i(v.indexOf(t.node))});C(e.target)&&n(e)},[v,r,b,l,i,m]),w=(0,s.useRef)(!1);a&&(w.current=!0);let S=(0,h.k)({wasSelected:w.current,enabled:d,mode:p,isSelected:g.present});return{...e,ref:(0,u.lq)(o,t),children:S?e.children:null,tabIndex:-1,role:"menu",id:c,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:(0,f.v)(e.onKeyDown,x)}}function T(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{popper:t,isOpen:n}=k();return t.getPopperProps({...e,style:{visibility:n?"visible":"hidden",...e.style}})}function A(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,{onMouseEnter:n,onMouseMove:r,onMouseLeave:i,onClick:o,onFocus:a,isDisabled:l,isFocusable:c,closeOnSelect:d,type:f,...h}=e,{setFocusedIndex:p,focusedIndex:m,closeOnSelect:v,onClose:y,menuId:b,scrollIntoViewRef:w}=k(),E=(0,s.useRef)(null),_="".concat(b,"-menuitem-").concat((0,s.useId)()),{index:O,register:T}=x({disabled:l&&!c}),A=(0,s.useCallback)(e=>{null==n||n(e),l||(w.current=!1,p(O))},[p,O,l,n,w]),P=(0,s.useCallback)(e=>{var t;null==r||r(e),E.current&&S(t=E.current).activeElement!==t&&A(e)},[A,r]),I=(0,s.useCallback)(e=>{null==i||i(e),l||p(-1)},[p,l,i]),R=(0,s.useCallback)(e=>{null==o||o(e),C(e.currentTarget)&&(null!=d?d:v)&&y()},[y,o,v,d]),j=(0,s.useCallback)(e=>{null==a||a(e),p(O)},[p,a,O]),M=O===m,N=(0,g.h)({onClick:R,onFocus:j,onMouseEnter:A,onMouseMove:P,onMouseLeave:I,ref:(0,u.lq)(T,E,t),isDisabled:l,isFocusable:c});return{...h,...N,type:null!=f?f:N.type,id:_,role:"menuitem",tabIndex:M?0:-1}}},12276:function(e,t,n){"use strict";n.d(t,{_T:function(){return s},aR:function(){return a}});var r=n(20130),i=n(32850),o=n(44016);function a(e){let{leastDestructiveRef:t,...n}=e;return(0,r.jsx)(i.u_,{...n,initialFocusRef:t})}let s=(0,n(43906).G)((e,t)=>(0,r.jsx)(o.h,{ref:t,role:"alertdialog",...e}))},38029:function(e,t,n){"use strict";n.d(t,{f:function(){return u}});var r=n(20130),i=n(90010),o=n(66703),a=n(32850),s=n(43906),l=n(49110);let u=(0,s.G)((e,t)=>{let{className:n,...s}=e,{bodyId:u,setBodyMounted:c}=(0,a.vR)();(0,o.useEffect)(()=>(c(!0),()=>c(!1)),[c]);let d=(0,i.cx)("chakra-modal__body",n),f=(0,a.I_)();return(0,r.jsx)(l.m.div,{ref:t,className:d,id:u,...s,__css:f.body})});u.displayName="ModalBody"},60667:function(e,t,n){"use strict";n.d(t,{o:function(){return l}});var r=n(20130),i=n(90010),o=n(11915),a=n(32850),s=n(10994);let l=(0,n(43906).G)((e,t)=>{let{onClick:n,className:l,...u}=e,{onClose:c}=(0,a.vR)(),d=(0,i.cx)("chakra-modal__close-btn",l),f=(0,a.I_)();return(0,r.jsx)(s.P,{ref:t,__css:f.closeButton,className:d,onClick:(0,o.v)(n,e=>{e.stopPropagation(),c()}),...u})});l.displayName="ModalCloseButton"},44016:function(e,t,n){"use strict";n.d(t,{h:function(){return tX}});var r,i,o,a,s,l=n(20130),u=n(71034),c=n(90010),d=n(32850),f=n(86231),h=n(66703),p=n(95379),m="right-scroll-bar-position",g="width-before-scroll-bar";function v(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var y="undefined"!=typeof window?h.useLayoutEffect:h.useEffect,b=new WeakMap;function x(e,t){var n,r,i,o=(n=t||null,r=function(t){return e.forEach(function(e){return v(e,t)})},(i=(0,h.useState)(function(){return{value:n,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,i.facade);return y(function(){var t=b.get(o);if(t){var n=new Set(t),r=new Set(e),i=o.current;n.forEach(function(e){r.has(e)||v(e,null)}),r.forEach(function(e){n.has(e)||v(e,i)})}b.set(o,e)},[e]),o}function w(e){return e}function k(e,t){void 0===t&&(t=w);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var o=function(){var n=t;t=[],n.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}}}}}function S(e,t){return void 0===t&&(t=w),k(e,t)}function E(e){void 0===e&&(e={});var t=k(null);return t.options=(0,p.pi)({async:!0,ssr:!1},e),t}var _=E(),C=function(){},O=h.forwardRef(function(e,t){var n=h.useRef(null),r=h.useState({onScrollCapture:C,onWheelCapture:C,onTouchMoveCapture:C}),i=r[0],o=r[1],a=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,m=e.noIsolation,g=e.inert,v=e.allowPinchZoom,y=e.as,b=e.gapMode,w=(0,p._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=x([n,t]),S=(0,p.pi)((0,p.pi)({},w),i);return h.createElement(h.Fragment,null,c&&h.createElement(f,{sideCar:_,removeScrollBar:u,shards:d,noIsolation:m,inert:g,setCallbacks:o,allowPinchZoom:!!v,lockRef:n,gapMode:b}),a?h.cloneElement(h.Children.only(s),(0,p.pi)((0,p.pi)({},S),{ref:k})):h.createElement(void 0===y?"div":y,(0,p.pi)({},S,{className:l,ref:k}),s))});O.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},O.classNames={fullWidth:g,zeroRight:m};var T=function(e){var t=e.sideCar,n=(0,p._T)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return h.createElement(r,(0,p.pi)({},n))};T.isSideCarExport=!0;var A=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=a||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},P=function(){var e=A();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},I=function(){var e=P();return function(t){return e(t.styles,t.dynamic),null}},R={left:0,top:0,right:0,gap:0},j=function(e){return parseInt(e||"",10)||0},M=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[j(n),j(r),j(i)]},N=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return R;var t=M(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},D=I(),L="data-scroll-locked",z=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(L,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\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(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(m," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(g," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(m," .").concat(m," {\n right: 0 ").concat(r,";\n }\n \n .").concat(g," .").concat(g," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(L,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},F=function(){var e=parseInt(document.body.getAttribute(L)||"0",10);return isFinite(e)?e:0},B=function(){h.useEffect(function(){return document.body.setAttribute(L,(F()+1).toString()),function(){var e=F()-1;e<=0?document.body.removeAttribute(L):document.body.setAttribute(L,e.toString())}},[])},$=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;B();var o=h.useMemo(function(){return N(i)},[i]);return h.createElement(D,{styles:z(o,!t,i,n?"":"!important")})},V=!1;if("undefined"!=typeof window)try{var U=Object.defineProperty({},"passive",{get:function(){return V=!0,!0}});window.addEventListener("test",U,U),window.removeEventListener("test",U,U)}catch(e){V=!1}var W=!!V&&{passive:!1},q=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},H=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Z(e,r)){var i=G(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Z=function(e,t){return"v"===e?q(t,"overflowY"):q(t,"overflowX")},G=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},K=function(e,t,n,r,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*r,l=n.target,u=t.contains(l),c=!1,d=s>0,f=0,h=0;do{var p=G(e,l),m=p[0],g=p[1]-p[2]-a*m;(m||g)&&Z(e,l)&&(f+=g,h+=m),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&1>Math.abs(f)||!i&&s>f)?c=!0:!d&&(i&&1>Math.abs(h)||!i&&-s>h)&&(c=!0),c},Y=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},X=function(e){return[e.deltaX,e.deltaY]},J=function(e){return e&&"current"in e?e.current:e},Q=0,ee=[],et=(r=function(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),i=h.useState(Q++)[0],o=h.useState(I)[0],a=h.useRef(e);h.useEffect(function(){a.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,p.ev)([e.lockRef.current],(e.shards||[]).map(J),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=h.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var i,o=Y(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-o[0],u="deltaY"in e?e.deltaY:s[1]-o[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=H(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=H(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var h=r.current||i;return K(h,t,e,"h"===h?l:u,!0)},[]),l=h.useCallback(function(e){if(ee.length&&ee[ee.length-1]===o){var n="deltaY"in e?X(e):Y(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(a.current.shards||[]).map(J).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=h.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,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}(r)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),c=h.useCallback(function(e){n.current=Y(e),r.current=void 0},[]),d=h.useCallback(function(t){u(t.type,X(t),t.target,s(t,e.lockRef.current))},[]),f=h.useCallback(function(t){u(t.type,Y(t),t.target,s(t,e.lockRef.current))},[]);h.useEffect(function(){return ee.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,W),document.addEventListener("touchmove",l,W),document.addEventListener("touchstart",c,W),function(){ee=ee.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,W),document.removeEventListener("touchmove",l,W),document.removeEventListener("touchstart",c,W)}},[]);var m=e.removeScrollBar,g=e.inert;return h.createElement(h.Fragment,null,g?h.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,m?h.createElement($,{gapMode:e.gapMode}):null)},_.useMedium(r),T),en=h.forwardRef(function(e,t){return h.createElement(O,(0,p.pi)({},e,{ref:t,sideCar:et}))});en.classNames=O.classNames;var er=n(2610),ei=n(48111),eo=n(52409),ea="data-focus-lock",es="data-focus-lock-disabled",el={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},eu=S({},function(e){return{target:e.target,currentTarget:e.currentTarget}}),ec=S(),ed=S(),ef=E({async:!0,ssr:"undefined"!=typeof document}),eh=(0,h.createContext)(void 0),ep=[],em=(0,h.forwardRef)(function(e,t){var n,r=(0,h.useState)(),i=r[0],o=r[1],a=(0,h.useRef)(),s=(0,h.useRef)(!1),l=(0,h.useRef)(null),u=(0,h.useState)({})[1],c=e.children,d=e.disabled,f=void 0!==d&&d,p=e.noFocusGuards,m=void 0!==p&&p,g=e.persistentFocus,v=e.crossFrame,y=e.autoFocus,b=(e.allowTextSelection,e.group),w=e.className,k=e.whiteList,S=e.hasPositiveIndices,E=e.shards,_=void 0===E?ep:E,C=e.as,O=e.lockProps,T=e.sideCar,A=e.returnFocus,P=void 0!==A&&A,I=e.focusOptions,R=e.onActivation,j=e.onDeactivation,M=(0,h.useState)({})[0],N=(0,h.useCallback)(function(e){var t=e.captureFocusRestore;if(!l.current){var n,r=null==(n=document)?void 0:n.activeElement;l.current=r,r!==document.body&&(l.current=t(r))}a.current&&R&&R(a.current),s.current=!0,u()},[R]),D=(0,h.useCallback)(function(){s.current=!1,j&&j(a.current),u()},[j]),L=(0,h.useCallback)(function(e){var t=l.current;if(t){var n=("function"==typeof t?t():t)||document.body,r="function"==typeof P?P(n):P;if(r){var i="object"==typeof r?r:void 0;l.current=null,e?Promise.resolve().then(function(){return n.focus(i)}):n.focus(i)}}},[P]),z=(0,h.useCallback)(function(e){s.current&&eu.useMedium(e)},[]),F=ec.useMedium,B=(0,h.useCallback)(function(e){a.current!==e&&(a.current=e,o(e))},[]),$=(0,eo.Z)(((n={})[es]=f&&"disabled",n[ea]=b,n),void 0===O?{}:O),V=!0!==m,U=V&&"tail"!==m,W=x([t,B]),q=(0,h.useMemo)(function(){return{observed:a,shards:_,enabled:!f,active:s.current}},[f,s.current,_,i]);return h.createElement(h.Fragment,null,V&&[h.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:f?-1:0,style:el}),S?h.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:f?-1:1,style:el}):null],!f&&h.createElement(T,{id:M,sideCar:ef,observed:i,disabled:f,persistentFocus:void 0!==g&&g,crossFrame:void 0===v||v,autoFocus:void 0===y||y,whiteList:k,shards:_,onActivation:N,onDeactivation:D,returnFocus:L,focusOptions:I,noFocusGuards:m}),h.createElement(void 0===C?"div":C,(0,eo.Z)({ref:W},$,{className:w,onBlur:F,onFocus:z}),h.createElement(eh.Provider,{value:q},c)),U&&h.createElement("div",{"data-focus-guard":!0,tabIndex:f?-1:0,style:el}))});em.propTypes={};var eg=n(2890),ev=n(64729),ey=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},eb=function(e){return Array.isArray(e)?e:[e]},ex=function(e){return Array.isArray(e)?e[0]:e},ew=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!!t&&!!t.getPropertyValue&&("none"===t.getPropertyValue("display")||"hidden"===t.getPropertyValue("visibility"))},ek=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},eS=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},eE=function(e,t){var n,r=e.get(t);if(void 0!==r)return r;var i=(n=eE.bind(void 0,e),!t||eS(t)||!ew(t)&&!t.hasAttribute("inert")&&n(ek(t)));return e.set(t,i),i},e_=function(e,t){var n,r=e.get(t);if(void 0!==r)return r;var i=(n=e_.bind(void 0,e),!t||!!eS(t)||!!eA(t)&&n(ek(t)));return e.set(t,i),i},eC=function(e){return e.dataset},eO=function(e){return"INPUT"===e.tagName},eT=function(e){return eO(e)&&"radio"===e.type},eA=function(e){return![!0,"true",""].includes(e.getAttribute("data-no-autofocus"))},eP=function(e){var t;return!!(e&&(null===(t=eC(e))||void 0===t?void 0:t.focusGuard))},eI=function(e){return!eP(e)},eR=function(e){return!!e},ej=function(e,t){var n=Math.max(0,e.tabIndex),r=Math.max(0,t.tabIndex),i=n-r,o=e.index-t.index;if(i){if(!n)return 1;if(!r)return -1}return i||o},eM=function(e,t,n){return ey(e).map(function(e,t){var r=e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex;return{node:e,index:t,tabIndex:n&&-1===r?(e.dataset||{}).focusGuard?0:-1:r}}).filter(function(e){return!t||e.tabIndex>=0}).sort(ej)},eN="button:enabled,select:enabled,textarea:enabled,input:enabled,a[href],area[href],summary,iframe,object,embed,audio[controls],video[controls],[tabindex],[contenteditable],[autofocus]",eD="".concat(eN,", [data-focus-guard]"),eL=function(e,t){return ey((e.shadowRoot||e).children).reduce(function(e,n){return e.concat(n.matches(t?eD:eN)?[n]:[],eL(n))},[])},ez=function(e,t){var n;return e instanceof HTMLIFrameElement&&(null===(n=e.contentDocument)||void 0===n?void 0:n.body)?eF([e.contentDocument.body],t):[e]},eF=function(e,t){return e.reduce(function(e,n){var r,i=eL(n,t),o=(r=[]).concat.apply(r,i.map(function(e){return ez(e,t)}));return e.concat(o,n.parentNode?ey(n.parentNode.querySelectorAll(eN)).filter(function(e){return e===n}):[])},[])},eB=function(e,t){return ey(e).filter(function(e){return eE(t,e)}).filter(function(e){return!((eO(e)||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))})},e$=function(e,t){return void 0===t&&(t=new Map),ey(e).filter(function(e){return e_(t,e)})},eV=function(e,t,n){return eM(eB(eF(e,n),t),!0,n)},eU=function(e,t){return eM(eB(eF(e),t),!1)},eW=function(e,t){return e.shadowRoot?eW(e.shadowRoot,t):!!(void 0!==Object.getPrototypeOf(e).contains&&Object.getPrototypeOf(e).contains.call(e,t))||ey(e.children).some(function(e){var n;if(e instanceof HTMLIFrameElement){var r=null===(n=e.contentDocument)||void 0===n?void 0:n.body;return!!r&&eW(r,t)}return eW(e,t)})},eq=function(e){try{return e()}catch(e){return}},eH=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?eH(t.shadowRoot):t instanceof HTMLIFrameElement&&eq(function(){return t.contentWindow.document})?eH(t.contentWindow.document):t}},eZ=function(e){void 0===e&&(e=document);var t=eH(e);return!!t&&ey(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some(function(e){return eW(e,t)})},eG=function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var i=r+1;i<n;i+=1){var o=e[r].compareDocumentPosition(e[i]);(o&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(e,n){return!t.has(n)})},eK=function(e){return e.parentNode?eK(e.parentNode):e},eY=function(e){return eb(e).filter(Boolean).reduce(function(e,t){var n=t.getAttribute(ea);return e.push.apply(e,n?eG(ey(eK(t).querySelectorAll("[".concat(ea,'="').concat(n,'"]:not([').concat(es,'="disabled"])')))):[t]),e},[])},eX=function(e,t){return void 0===t&&(t=eH(ex(e).ownerDocument)),!!t&&(!t.dataset||!t.dataset.focusGuard)&&eY(e).some(function(e){var n;return eW(e,t)||(n=t,!!ey(e.querySelectorAll("iframe")).some(function(e){return e===n}))})},eJ=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},eQ=function(e,t){return eT(e)&&e.name&&t.filter(eT).filter(function(t){return t.name===e.name}).filter(function(e){return e.checked})[0]||e},e0=function(e){var t=new Set;return e.forEach(function(n){return t.add(eQ(n,e))}),e.filter(function(e){return t.has(e)})},e1=function(e){return e[0]&&e.length>1?eQ(e[0],e):e[0]},e2=function(e,t){return e.indexOf(eQ(t,e))},e5="NEW_FOCUS",e3=function(e,t,n,r,i){var o=e.length,a=e[0],s=e[o-1],l=eP(r);if(!(r&&e.indexOf(r)>=0)){var u=void 0!==r?n.indexOf(r):-1,c=i?n.indexOf(i):u,d=i?e.indexOf(i):-1;if(-1===u)return -1!==d?d:e5;if(-1===d)return e5;var f=u-c,h=n.indexOf(a),p=n.indexOf(s),m=e0(n),g=void 0!==r?m.indexOf(r):-1,v=i?m.indexOf(i):g,y=m.filter(function(e){return e.tabIndex>=0}),b=void 0!==r?y.indexOf(r):-1,x=i?y.indexOf(i):b;if(!f&&d>=0||0===t.length)return d;var w=e2(e,t[0]),k=e2(e,t[t.length-1]);if(u<=h&&l&&Math.abs(f)>1)return k;if(u>=p&&l&&Math.abs(f)>1)return w;if(f&&Math.abs(b>=0&&x>=0?x-b:v-g)>1)return d;if(u<=h)return k;if(u>p)return w;if(f)return Math.abs(f)>1?d:(o+d+f)%o}},e4=function(e,t,n){var r=e$(e.map(function(e){return e.node}).filter(function(e){var t,r=null===(t=eC(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==r&&"false"!==r||n.indexOf(e)>=0}));return r&&r.length?e1(r):e1(e$(t))},e6=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&e6(e.parentNode.host||e.parentNode,t),t},e9=function(e,t){for(var n=e6(e),r=e6(t),i=0;i<n.length;i+=1){var o=n[i];if(r.indexOf(o)>=0)return o}return!1},e8=function(e,t,n){var r=eb(e),i=eb(t),o=r[0],a=!1;return i.filter(Boolean).forEach(function(e){a=e9(a||e,e)||a,n.filter(Boolean).forEach(function(e){var t=e9(o,e);t&&(a=!a||eW(t,a)?t:e9(t,a))})}),a},e7=function(e,t){return e.reduce(function(e,n){return e.concat(eB(ey(n.querySelectorAll("[".concat("data-autofocus-inside","]"))).map(function(e){return eF([e])}).reduce(function(e,t){return e.concat(t)},[]),t))},[])},te=function(e,t){var n=new Map;return t.forEach(function(e){return n.set(e.node,e)}),e.map(function(e){return n.get(e)}).filter(eR)},tt=function(e,t){var n=eH(eb(e).length>0?document:ex(e).ownerDocument),r=eY(e).filter(eI),i=e8(n||e,e,r),o=new Map,a=eU(r,o),s=a.filter(function(e){return eI(e.node)});if(s[0]){var l=eU([i],o).map(function(e){return e.node}),u=te(l,s),c=u.map(function(e){return e.node}),d=u.filter(function(e){return e.tabIndex>=0}).map(function(e){return e.node}),f=e3(c,d,l,n,t);if(f===e5){var h=e4(a,d,e7(r,o))||e4(a,c,e7(r,o));return h?{node:h}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===f?f:u[f]}},tn=0,tr=!1,ti=function(e,t,n){void 0===n&&(n={});var r=tt(e,t);if(!tr&&r){if(tn>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),tr=!0,setTimeout(function(){tr=!1},1);return}tn++,eJ(r.node,n.focusOptions),tn--}};function to(e){if(!e)return null;if("undefined"==typeof WeakRef)return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(null==t?void 0:t.deref())||null}}var ta=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:to(n),parent:to(n.parentElement),left:to(n.previousElementSibling),right:to(n.nextElementSibling)}),n=n.parentElement;return{element:to(e),stack:t,ownerDocument:e.ownerDocument}},ts=function(e){if(e)for(var t,n,r,i,o,a=e.stack,s=e.ownerDocument,l=new Map,u=0;u<a.length;u++){var c=a[u],d=null===(t=c.parent)||void 0===t?void 0:t.call(c);if(d&&s.contains(d)){for(var f=null===(n=c.left)||void 0===n?void 0:n.call(c),h=c.current(),p=d.contains(h)?h:void 0,m=null===(r=c.right)||void 0===r?void 0:r.call(c),g=eV([d],l),v=null!==(o=null!==(i=null!=p?p:null==f?void 0:f.nextElementSibling)&&void 0!==i?i:m)&&void 0!==o?o:f;v;){for(var y=0;y<g.length;y++){var b=g[y];if(null==v?void 0:v.contains(b.node))return b.node}v=v.nextElementSibling}if(g.length)return g[0].node}}},tl=function(e){var t=ta(e);return function(){return ts(t)}},tu=function(e){var t=eY(e).filter(eI),n=eM(eF([e8(e,e,t)],!0),!0,!0),r=eF(t,!1);return n.map(function(e){var t=e.node;return{node:t,index:e.index,lockItem:r.indexOf(t)>=0,guard:eP(t)}})},tc=function(e,t,n){if(!e||!t)return console.error("no element or scope given"),{};var r=eb(t);if(r.every(function(t){return!eW(t,e)}))return console.error("Active element is not contained in the scope"),{};var i=n?eV(r,new Map):eU(r,new Map),o=i.findIndex(function(t){return t.node===e});if(-1!==o)return{prev:i[o-1],next:i[o+1],first:i[0],last:i[i.length-1]}},td=function(e,t){var n=t?eV(eb(e),new Map):eU(eb(e),new Map);return{first:n[0],last:n[n.length-1]}},tf=function(e,t,n){void 0===t&&(t={});var r,i=(r=t,Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},r)),o=tc(e,i.scope,i.onlyTabbable);if(o){var a=n(o,i.cycle);a&&eJ(a.node,i.focusOptions)}},th=function(e,t,n){var r,i=td(e,null===(r=t.onlyTabbable)||void 0===r||r)[n];i&&eJ(i.node,t.focusOptions)};function tp(e){setTimeout(e,1)}var tm=function(e){return e&&"current"in e?e.current:e},tg=function(){return document&&document.activeElement===document.body},tv=null,ty=null,tb=function(){return null},tx=null,tw=!1,tk=!1,tS=function(e,t){tx={observerNode:e,portaledElement:t}};function tE(e,t,n,r){var i=null,o=e;do{var a=r[o];if(a.guard)a.node.dataset.focusAutoGuard&&(i=a);else if(a.lockItem){if(o!==e)return;i=null}else break}while((o+=n)!==t);i&&(i.node.tabIndex=0)}var t_=function(e){return eU(e,new Map)},tC=function(){var e=!1;if(tv){var t=tv,n=t.observed,r=t.persistentFocus,i=t.autoFocus,o=t.shards,a=t.crossFrame,s=t.focusOptions,l=t.noFocusGuards,u=n||tx&&tx.portaledElement;if(tg()&&ty&&ty!==document.body&&(!document.body.contains(ty)||!t_([(f=ty).parentNode]).some(function(e){return e.node===f}))){var c=tb();c&&c.focus()}var d=document&&document.activeElement;if(u){var f,h=[u].concat(o.map(tm).filter(Boolean));if((!d||(tv.whiteList||function(){return!0})(d))&&(r||function(){if(!(a?!!tw:"meanwhile"===tw)||!l||!ty||tk)return!1;var e=t_(h),t=e.findIndex(function(e){return e.node===ty});return 0===t||t===e.length-1}()||!(tg()||eZ())||!ty&&i)&&(u&&!(eX(h)||d&&h.some(function(e){return function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))}(d,e,e)})||tx&&tx.portaledElement===d)&&(document&&!ty&&d&&!i?(d.blur&&d.blur(),document.body.focus()):(e=ti(h,ty,{focusOptions:s}),tx={})),(ty=document&&document.activeElement)!==document.body&&(tb=tl(ty)),tw=!1),document&&d!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var p=document&&document.activeElement,m=tu(h),g=m.map(function(e){return e.node}).indexOf(p);g>-1&&(m.filter(function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard}).forEach(function(e){return e.node.removeAttribute("tabIndex")}),tE(g,m.length,1,m),tE(g,-1,-1,m))}}}return e},tO=function(e){tC()&&e&&(e.stopPropagation(),e.preventDefault())},tT=function(){return tp(tC)},tA=function(){tk=!0},tP=function(){tk=!1,tw="just",tp(function(){tw="meanwhile"})},tI=function(){document.addEventListener("focusin",tO),document.addEventListener("focusout",tT),window.addEventListener("focus",tA),window.addEventListener("blur",tP)},tR=function(){document.removeEventListener("focusin",tO),document.removeEventListener("focusout",tT),window.removeEventListener("focus",tA),window.removeEventListener("blur",tP)},tj={moveFocusInside:ti,focusInside:eX,focusNextElement:function(e,t){void 0===t&&(t={}),tf(e,t,function(e,t){var n=e.next,r=e.first;return n||t&&r})},focusPrevElement:function(e,t){void 0===t&&(t={}),tf(e,t,function(e,t){var n=e.prev,r=e.last;return n||t&&r})},focusFirstElement:function(e,t){void 0===t&&(t={}),th(e,t,"first")},focusLastElement:function(e,t){void 0===t&&(t={}),th(e,t,"last")},captureFocusRestore:tl};eu.assignSyncMedium(function(e){var t=e.target,n=e.currentTarget;n.contains(t)||tS(n,t)}),ec.assignMedium(tT),ed.assignMedium(function(e){return e(tj)});var tM=(i=function(e){return e.filter(function(e){return!e.disabled})},o=function(e){var t=e.slice(-1)[0];t&&!tv&&tI();var n=tv,r=n&&t&&t.id===n.id;tv=t,!n||r||(n.onDeactivation(),e.filter(function(e){return e.id===n.id}).length||n.returnFocus(!t)),t?(ty=null,r&&n.observed===t.observed||t.onActivation(tj),tC(!0),tp(tC)):(tR(),ty=null)},function(e){var t,n=[];function r(){o(t=i(n.map(function(e){return e.props})))}var a=function(i){function o(){return i.apply(this,arguments)||this}o.prototype=Object.create(i.prototype),o.prototype.constructor=o,(0,eg.Z)(o,i),o.peek=function(){return t};var a=o.prototype;return a.componentDidMount=function(){n.push(this),r()},a.componentDidUpdate=function(){r()},a.componentWillUnmount=function(){var e=n.indexOf(this);n.splice(e,1),r()},a.render=function(){return h.createElement(e,this.props)},o}(h.PureComponent);return(0,ev.Z)(a,"displayName","SideEffect("+(e.displayName||e.name||"Component")+")"),a})(function(){return null}),tN=(0,h.forwardRef)(function(e,t){return h.createElement(em,(0,eo.Z)({sideCar:tM,ref:t},e))}),tD=em.propTypes||{};tD.sideCar,(0,ei.Z)(tD,["sideCar"]),tN.propTypes={};var tL=n(29239);let tz=null!==(s=tN.default)&&void 0!==s?s:tN,tF=e=>{let{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:i,children:o,isDisabled:a,autoFocus:s,persistentFocus:u,lockFocusAcrossFrames:c}=e,d=(0,h.useCallback)(()=>{(null==t?void 0:t.current)?t.current.focus():(null==r?void 0:r.current)&&0===(0,tL.t5)(r.current).length&&requestAnimationFrame(()=>{var e;null===(e=r.current)||void 0===e||e.focus()})},[t,r]),f=(0,h.useCallback)(()=>{var e;null==n||null===(e=n.current)||void 0===e||e.focus()},[n]),p=i&&!n;return(0,l.jsx)(tz,{crossFrame:c,persistentFocus:u,autoFocus:s,disabled:a,onActivation:d,onDeactivation:f,returnFocus:p,children:o})};function tB(e){let{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:i,blockScrollOnMount:o,allowPinchZoom:a,finalFocusRef:s,returnFocusOnClose:u,preserveScrollBarGap:c,lockFocusAcrossFrames:p,isOpen:m}=(0,d.vR)(),[g,v]=(0,f.oO)();(0,h.useEffect)(()=>{!g&&v&&setTimeout(v)},[g,v]);let y=(0,er.$)(r,m);return(0,l.jsx)(tF,{autoFocus:t,isDisabled:!n,initialFocusRef:i,finalFocusRef:s,restoreFocus:u,contentRef:r,lockFocusAcrossFrames:p,children:(0,l.jsx)(en,{removeScrollBar:!c,allowPinchZoom:a,enabled:1===y&&o,forwardProps:!0,children:e.children})})}tF.displayName="FocusLock";var t$=n(42349),tV=n(40880),tU=n(35278);let tW={initial:"initial",animate:"enter",exit:"exit",variants:{initial:e=>{var t;let{offsetX:n,offsetY:r,transition:i,transitionEnd:o,delay:a}=e;return{opacity:0,x:n,y:r,transition:null!==(t=null==i?void 0:i.exit)&&void 0!==t?t:tU.p$.exit(tU.Sh.exit,a),transitionEnd:null==o?void 0:o.exit}},enter:e=>{var t;let{transition:n,transitionEnd:r,delay:i}=e;return{opacity:1,x:0,y:0,transition:null!==(t=null==n?void 0:n.enter)&&void 0!==t?t:tU.p$.enter(tU.Sh.enter,i),transitionEnd:null==r?void 0:r.enter}},exit:e=>{var t;let{offsetY:n,offsetX:r,transition:i,transitionEnd:o,reverse:a,delay:s}=e,l={x:r,y:n};return{opacity:0,transition:null!==(t=null==i?void 0:i.exit)&&void 0!==t?t:tU.p$.exit(tU.Sh.exit,s),...a?{...l,transitionEnd:null==o?void 0:o.exit}:{transitionEnd:{...l,...null==o?void 0:o.exit}}}}}};(0,h.forwardRef)(function(e,t){let{unmountOnExit:n,in:r,reverse:i=!0,className:o,offsetX:a=0,offsetY:s=8,transition:u,transitionEnd:d,delay:f,animatePresenceProps:h,...p}=e,m=!n||r&&n,g=r||n?"enter":"exit",v={offsetX:a,offsetY:s,reverse:i,transition:u,transitionEnd:d,delay:f};return(0,l.jsx)(tV.M,{...h,custom:v,children:m&&(0,l.jsx)(t$.E.div,{ref:t,className:(0,c.cx)("chakra-offset-slide",o),custom:v,...tW,animate:g,...p})})}).displayName="SlideFade";let tq={initial:"exit",animate:"enter",exit:"exit",variants:{exit:e=>{var t;let{reverse:n,initialScale:r,transition:i,transitionEnd:o,delay:a}=e;return{opacity:0,...n?{scale:r,transitionEnd:null==o?void 0:o.exit}:{transitionEnd:{scale:r,...null==o?void 0:o.exit}},transition:null!==(t=null==i?void 0:i.exit)&&void 0!==t?t:tU.p$.exit(tU.Sh.exit,a)}},enter:e=>{var t;let{transitionEnd:n,transition:r,delay:i}=e;return{opacity:1,scale:1,transition:null!==(t=null==r?void 0:r.enter)&&void 0!==t?t:tU.p$.enter(tU.Sh.enter,i),transitionEnd:null==n?void 0:n.enter}}}};(0,h.forwardRef)(function(e,t){let{unmountOnExit:n,in:r,reverse:i=!0,initialScale:o=.95,className:a,transition:s,transitionEnd:u,delay:d,animatePresenceProps:f,...h}=e,p=!n||r&&n,m=r||n?"enter":"exit",g={initialScale:o,reverse:i,transition:s,transitionEnd:u,delay:d};return(0,l.jsx)(tV.M,{...f,custom:g,children:p&&(0,l.jsx)(t$.E.div,{ref:t,className:(0,c.cx)("chakra-offset-slide",a),...tq,animate:m,custom:g,...h})})}).displayName="ScaleFade";var tH=n(49110);let tZ={slideInBottom:{...tW,custom:{offsetY:16,reverse:!0}},slideInRight:{...tW,custom:{offsetX:16,reverse:!0}},slideInTop:{...tW,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...tW,custom:{offsetX:-16,reverse:!0}},scale:{...tq,custom:{initialScale:.95,reverse:!0}},none:{}},tG=(0,tH.m)(t$.E.section),tK=e=>tZ[e||"none"],tY=(0,h.forwardRef)((e,t)=>{let{preset:n,motionProps:r=tK(n),...i}=e;return(0,l.jsx)(tG,{ref:t,...r,...i})});tY.displayName="ModalTransition";let tX=(0,n(43906).G)((e,t)=>{let{className:n,children:r,containerProps:i,motionProps:o,...a}=e,{getDialogProps:s,getDialogContainerProps:f}=(0,d.vR)(),h=s(a,t),p=f(i),m=(0,c.cx)("chakra-modal__content",n),g=(0,d.I_)(),v=(0,u.k0)({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...g.dialog}),y=(0,u.k0)({display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...g.dialogContainer}),{motionPreset:b}=(0,d.vR)();return(0,l.jsx)(tB,{children:(0,l.jsx)(tH.m.div,{...p,className:"chakra-modal__content-container",tabIndex:-1,__css:y,children:(0,l.jsx)(tY,{preset:b,motionProps:o,className:m,...h,__css:v,children:r})})})});tX.displayName="ModalContent"},61608:function(e,t,n){"use strict";n.d(t,{m:function(){return u}});var r=n(20130),i=n(71034),o=n(90010),a=n(32850),s=n(43906),l=n(49110);let u=(0,s.G)((e,t)=>{let{className:n,...s}=e,u=(0,o.cx)("chakra-modal__footer",n),c=(0,a.I_)(),d=(0,i.k0)({display:"flex",alignItems:"center",justifyContent:"flex-end",...c.footer});return(0,r.jsx)(l.m.footer,{ref:t,...s,__css:d,className:u})});u.displayName="ModalFooter"},58407:function(e,t,n){"use strict";n.d(t,{x:function(){return c}});var r=n(20130),i=n(71034),o=n(90010),a=n(66703),s=n(32850),l=n(43906),u=n(49110);let c=(0,l.G)((e,t)=>{let{className:n,...l}=e,{headerId:c,setHeaderMounted:d}=(0,s.vR)();(0,a.useEffect)(()=>(d(!0),()=>d(!1)),[d]);let f=(0,o.cx)("chakra-modal__header",n),h=(0,s.I_)(),p=(0,i.k0)({flex:0,...h.header});return(0,r.jsx)(u.m.header,{ref:t,className:f,id:c,...l,__css:p})});c.displayName="ModalHeader"},2610:function(e,t,n){"use strict";n.d(t,{$:function(){return u},m:function(){return l}});var r=n(66703),i=Object.defineProperty,o=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,a=(e,t,n)=>(o(e,"symbol"!=typeof t?t+"":t,n),n);class s{add(e){return this.modals.add(e),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return!!e&&e===Array.from(this.modals)[this.modals.size-1]}constructor(){a(this,"modals"),this.modals=new Set}}let l=new s;function u(e,t){let[n,i]=(0,r.useState)(0);return(0,r.useEffect)(()=>{let n=e.current;if(n)return t&&i(l.add(n)),()=>{l.remove(n),i(0)}},[t,e]),n}},36198:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(20130),i=n(90010),o=n(42349),a=n(32850),s=n(40880),l=n(66703),u=n(35278);let c={initial:"exit",animate:"enter",exit:"exit",variants:{enter:function(){var e;let{transition:t,transitionEnd:n,delay:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{opacity:1,transition:null!==(e=null==t?void 0:t.enter)&&void 0!==e?e:u.p$.enter(u.Sh.enter,r),transitionEnd:null==n?void 0:n.enter}},exit:function(){var e;let{transition:t,transitionEnd:n,delay:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{opacity:0,transition:null!==(e=null==t?void 0:t.exit)&&void 0!==e?e:u.p$.exit(u.Sh.exit,r),transitionEnd:null==n?void 0:n.exit}}}};(0,l.forwardRef)(function(e,t){let{unmountOnExit:n,in:a,className:l,transition:u,transitionEnd:d,delay:f,animatePresenceProps:h,...p}=e,m=a||n?"enter":"exit",g=!n||a&&n,v={transition:u,transitionEnd:d,delay:f};return(0,r.jsx)(s.M,{...h,custom:v,children:g&&(0,r.jsx)(o.E.div,{ref:t,className:(0,i.cx)("chakra-fade",l),custom:v,...c,animate:m,...p})})}).displayName="Fade";var d=n(49110),f=n(43906);let h=(0,d.m)(o.E.div),p=(0,f.G)((e,t)=>{let{className:n,transition:o,motionProps:s,...l}=e,u=(0,i.cx)("chakra-modal__overlay",n),d={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...(0,a.I_)().overlay},{motionPreset:f}=(0,a.vR)(),p="none"===f?{}:c;return(0,r.jsx)(h,{...s||p,__css:d,ref:t,className:u,...l})});p.displayName="ModalOverlay"},32850:function(e,t,n){"use strict";n.d(t,{u_:function(){return S},vR:function(){return k},I_:function(){return x}});var r=n(20130),i=n(9396),o=n(40880),a=n(6461),s=n(11915),l=new WeakMap,u=new WeakMap,c={},d=0,f=function(e){return e&&(e.host||f(e.parentNode))},h=function(e,t,n,r){var i=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=f(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});c[n]||(c[n]=new WeakMap);var o=c[n],a=[],s=new Set,h=new Set(i),p=function(e){!e||s.has(e)||(s.add(e),p(e.parentNode))};i.forEach(p);var m=function(e){!e||h.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))m(e);else try{var t=e.getAttribute(r),i=null!==t&&"false"!==t,c=(l.get(e)||0)+1,d=(o.get(e)||0)+1;l.set(e,c),o.set(e,d),a.push(e),1===c&&i&&u.set(e,!0),1===d&&e.setAttribute(n,"true"),i||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),s.clear(),d++,function(){a.forEach(function(e){var t=l.get(e)-1,i=o.get(e)-1;l.set(e,t),o.set(e,i),t||(u.has(e)||e.removeAttribute(r),u.delete(e)),i||e.removeAttribute(n)}),--d||(l=new WeakMap,l=new WeakMap,u=new WeakMap,c={})}},p=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),h(r,i,n,"aria-hidden")):function(){return null}},m=n(66703),g=n(2610),v=n(72669),y=n(35364);let[b,x]=(0,i.k)({name:"ModalStylesContext",errorMessage:"useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Modal />\" "}),[w,k]=(0,i.k)({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),S=e=>{let t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,preserveScrollBarGap:!0,motionPreset:"scale",...e,lockFocusAcrossFrames:e.lockFocusAcrossFrames||!0},{portalProps:n,children:i,autoFocus:l,trapFocus:u,initialFocusRef:c,finalFocusRef:d,returnFocusOnClose:f,blockScrollOnMount:h,allowPinchZoom:x,preserveScrollBarGap:k,motionPreset:S,lockFocusAcrossFrames:E,animatePresenceProps:_,onCloseComplete:C}=t,O=(0,y.j)("Modal",t),T={...function(e){let{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:o=!0,useInert:l=!0,onOverlayClick:u,onEsc:c}=e,d=(0,m.useRef)(null),f=(0,m.useRef)(null),[h,v,y]=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let i=(0,m.useId)(),o=e||i;return(0,m.useMemo)(()=>n.map(e=>"".concat(e,"-").concat(o)),[o,n])}(r,"chakra-modal","chakra-modal--header","chakra-modal--body");!function(e,t){let n=e.current;(0,m.useEffect)(()=>{if(e.current&&t)return p(e.current)},[t,e,n])}(d,t&&l);let b=(0,g.$)(d,t),x=(0,m.useRef)(null),w=(0,m.useCallback)(e=>{x.current=e.target},[]),k=(0,m.useCallback)(e=>{"Escape"===e.key&&(e.stopPropagation(),o&&(null==n||n()),null==c||c())},[o,n,c]),[S,E]=(0,m.useState)(!1),[_,C]=(0,m.useState)(!1),O=(0,m.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{role:"dialog",...e,ref:(0,a.lq)(t,d),id:h,tabIndex:-1,"aria-modal":!0,"aria-labelledby":S?v:void 0,"aria-describedby":_?y:void 0,onClick:(0,s.v)(e.onClick,e=>e.stopPropagation())}},[y,_,h,v,S]),T=(0,m.useCallback)(e=>{e.stopPropagation(),x.current===e.target&&g.m.isTopModal(d.current)&&(i&&(null==n||n()),null==u||u())},[n,i,u]),A=(0,m.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:(0,a.lq)(t,f),onClick:(0,s.v)(e.onClick,T),onKeyDown:(0,s.v)(e.onKeyDown,k),onMouseDown:(0,s.v)(e.onMouseDown,w)}},[k,w,T]);return{isOpen:t,onClose:n,headerId:v,bodyId:y,setBodyMounted:C,setHeaderMounted:E,dialogRef:d,overlayRef:f,getDialogProps:O,getDialogContainerProps:A,index:b}}(t),autoFocus:l,trapFocus:u,initialFocusRef:c,finalFocusRef:d,returnFocusOnClose:f,blockScrollOnMount:h,allowPinchZoom:x,preserveScrollBarGap:k,motionPreset:S,lockFocusAcrossFrames:E};return(0,r.jsx)(w,{value:T,children:(0,r.jsx)(b,{value:O,children:(0,r.jsx)(o.M,{..._,onExitComplete:C,children:T.isOpen&&(0,r.jsx)(v.h,{...n,children:i})})})})};S.displayName="Modal"},46706:function(e,t,n){"use strict";n.d(t,{b:function(){return l}});var r=n(20130),i=n(90010),o=n(76151),a=n(43906),s=n(49110);let l=(0,a.G)(function(e,t){let{getBodyProps:n}=(0,o.lp)(),a=(0,o.SV)();return(0,r.jsx)(s.m.div,{...n(e,t),className:(0,i.cx)("chakra-popover__body",e.className),__css:a.body})});l.displayName="PopoverBody"},72682:function(e,t,n){"use strict";n.d(t,{y:function(){return p}});var r=n(20130),i=n(71034),o=n(11915),a=n(90010),s=n(76151),l=n(42349),u=n(49110),c=n(43906);let d={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},f=(0,u.m)(l.E.section),h=(0,c.G)(function(e,t){let{variants:n=d,...i}=e,{isOpen:o}=(0,s.lp)();return(0,r.jsx)(f,{ref:t,variants:function(e){if(e)return{enter:{...e.enter,visibility:"visible"},exit:{...e.exit,transitionEnd:{visibility:"hidden"}}}}(n),initial:!1,animate:o?"enter":"exit",...i})});h.displayName="PopoverTransition";let p=(0,c.G)(function(e,t){let{rootProps:n,motionProps:l,...c}=e,{getPopoverProps:d,getPopoverPositionerProps:f,onAnimationComplete:p}=(0,s.lp)(),m=(0,s.SV)(),g=(0,i.k0)({position:"relative",display:"flex",flexDirection:"column",...m.content});return(0,r.jsx)(u.m.div,{...f(n),__css:m.popper,className:"chakra-popover__popper",children:(0,r.jsx)(h,{...l,...d(c,t),onAnimationComplete:(0,o.P)(p,c.onAnimationComplete),className:(0,a.cx)("chakra-popover__content",e.className),__css:g})})});p.displayName="PopoverContent"},76151:function(e,t,n){"use strict";n.d(t,{H2:function(){return i},SV:function(){return s},WG:function(){return a},lp:function(){return o}});var r=n(9396);let[i,o]=(0,r.k)({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Popover />`"}),[a,s]=(0,r.k)({name:"PopoverStylesContext",errorMessage:"usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Popover />\" "})},34885:function(e,t,n){"use strict";n.d(t,{x:function(){return s}});var r=n(20130),i=n(66703),o=n(76151),a=n(6010);function s(e){let t=i.Children.only(e.children),{getTriggerProps:n}=(0,o.lp)();return(0,r.jsx)(r.Fragment,{children:(0,i.cloneElement)(t,n(t.props,(0,a.e)(t)))})}s.displayName="PopoverTrigger"},7749:function(e,t,n){"use strict";n.d(t,{J:function(){return A}});var r=n(20130),i=n(66861),o=n(69072),a=n(76151),s=n(85071),l=n(19774),u=n(37584);let c=()=>"undefined"!=typeof window,d=e=>c()&&e.test(navigator.vendor),f=e=>c()&&e.test(function(){var e;let t=navigator.userAgentData;return null!==(e=null==t?void 0:t.platform)&&void 0!==e?e:navigator.platform}()),h=()=>f(/mac|iphone|ipad|ipod/i),p=()=>h()&&d(/apple/i);var m=n(15749),g=n(18404),v=n(6461),y=n(94279),b=n(27425),x=n(11915),w=n(66703),k=n(48961),S=n(74833);let E={click:"click",hover:"hover"};function _(e,t){return e===t||(null==e?void 0:e.contains(t))}function C(e){var t;let n=e.currentTarget.ownerDocument.activeElement;return null!==(t=e.relatedTarget)&&void 0!==t?t:n}var O=n(35518),T=n(35364);function A(e){let t=(0,T.j)("Popover",e),{children:n,...c}=(0,i.L)(e),d=(0,O.F)(),f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{closeOnBlur:t=!0,closeOnEsc:n=!0,initialFocusRef:r,id:i,returnFocusOnClose:o=!0,autoFocus:a=!0,arrowSize:c,arrowShadowColor:d,trigger:f=E.click,openDelay:h=200,closeDelay:O=200,isLazy:T,lazyBehavior:A="unmount",computePositionOnMount:P,...I}=e,{isOpen:R,onClose:j,onOpen:M,onToggle:N}=(0,s.q)(e),[D,L]=(0,w.useState)(o);(0,w.useEffect)(()=>L(o),[o]);let z=(0,w.useRef)(null),F=(0,w.useRef)(null),B=(0,w.useRef)(null),$=(0,w.useRef)(!1),V=(0,w.useRef)(!1);R&&(V.current=!0);let[U,W]=(0,w.useState)(!1),[q,H]=(0,w.useState)(!1),Z=(0,w.useId)(),G=null!=i?i:Z,[K,Y,X,J]=["popover-trigger","popover-content","popover-header","popover-body"].map(e=>"".concat(e,"-").concat(G)),{referenceRef:Q,getArrowProps:ee,getPopperProps:et,getArrowInnerProps:en,forceUpdate:er}=(0,k.D)({...I,enabled:R||!!P}),ei=(0,l.h)({isOpen:R,ref:B});!function(e){let{ref:t,elements:n,enabled:r}=e,i=()=>{var e,n;return null!==(n=null===(e=t.current)||void 0===e?void 0:e.ownerDocument)&&void 0!==n?n:document};(0,u.O)(i,"pointerdown",e=>{var o,a,s;if(!p()||!r)return;let l=null!==(s=null===(a=e.composedPath)||void 0===a?void 0:null===(o=a.call(e))||void 0===o?void 0:o[0])&&void 0!==s?s:e.target,u=(null!=n?n:[t]).some(e=>{let t="current"in e?e.current:e;return(null==t?void 0:t.contains(l))||t===l});i().activeElement!==l&&u&&(e.preventDefault(),l.focus())})}({enabled:R,ref:F}),(0,m.C)(B,{focusRef:F,visible:R,shouldFocus:D&&f===E.click}),(0,m.G)(B,{focusRef:r,visible:R,shouldFocus:a&&f===E.click}),(0,g.O)({enabled:R&&t,ref:B,handler(e){var t,n;let r=null!==(n=null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])&&void 0!==n?n:[e.target];_(F.current,r)||(r&&L(!(0,y.EB)(r)),j())}});let eo=(0,b.k)({wasSelected:V.current,enabled:T,mode:A,isSelected:ei.present}),ea=(0,w.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i={...e,style:{...e.style,transformOrigin:S.Dq.transformOrigin.varRef,[S.Dq.arrowSize.var]:c?"".concat(c,"px"):void 0,[S.Dq.arrowShadowColor.var]:d},ref:(0,v.lq)(B,r),children:eo?e.children:null,id:Y,tabIndex:-1,role:"dialog",onKeyDown:(0,x.v)(e.onKeyDown,e=>{!e.nativeEvent.isComposing&&n&&"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),j())}),onBlur:(0,x.v)(e.onBlur,e=>{let n=C(e),r=_(B.current,n),i=_(F.current,n);n&&L(!(0,y.EB)(n)),R&&t&&!r&&!i&&j()}),"aria-labelledby":U?X:void 0,"aria-describedby":q?J:void 0};return f===E.hover&&(i.role="tooltip",i.onMouseEnter=(0,x.v)(e.onMouseEnter,()=>{$.current=!0}),i.onMouseLeave=(0,x.v)(e.onMouseLeave,e=>{null!==e.nativeEvent.relatedTarget&&($.current=!1,setTimeout(()=>j(),O))})),i},[eo,Y,U,X,q,J,f,n,j,R,t,O,d,c]),es=(0,w.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return et({...e,style:{visibility:R?"visible":"hidden",...e.style}},t)},[R,et]),el=(0,w.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:(0,v.lq)(t,z,Q)}},[z,Q]),eu=(0,w.useRef)(void 0),ec=(0,w.useRef)(void 0),ed=(0,w.useCallback)(e=>{null==z.current&&Q(e)},[Q]),ef=(0,w.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={...e,ref:(0,v.lq)(F,n,ed),id:K,"aria-haspopup":"dialog","aria-expanded":R,"aria-controls":Y};return f===E.click&&(r.onClick=(0,x.v)(e.onClick,N)),f===E.hover&&(r.onFocus=(0,x.v)(e.onFocus,()=>{void 0===eu.current&&M()}),r.onBlur=(0,x.v)(e.onBlur,e=>{let n=C(e),r=!_(B.current,n);R&&t&&r&&j()}),r.onKeyDown=(0,x.v)(e.onKeyDown,e=>{"Escape"===e.key&&j()}),r.onMouseEnter=(0,x.v)(e.onMouseEnter,()=>{$.current=!0,eu.current=window.setTimeout(()=>M(),h)}),r.onMouseLeave=(0,x.v)(e.onMouseLeave,()=>{$.current=!1,eu.current&&(clearTimeout(eu.current),eu.current=void 0),ec.current=window.setTimeout(()=>{!1===$.current&&j()},O)})),r},[K,R,Y,f,ed,N,M,t,j,h,O]);(0,w.useEffect)(()=>()=>{eu.current&&clearTimeout(eu.current),ec.current&&clearTimeout(ec.current)},[]);let eh=(0,w.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,id:X,ref:(0,v.lq)(t,e=>{W(!!e)})}},[X]),ep=(0,w.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,id:J,ref:(0,v.lq)(t,e=>{H(!!e)})}},[J]);return{forceUpdate:er,isOpen:R,onAnimationComplete:ei.onComplete,onClose:j,getAnchorProps:el,getArrowProps:ee,getArrowInnerProps:en,getPopoverPositionerProps:es,getPopoverProps:ea,getTriggerProps:ef,getHeaderProps:eh,getBodyProps:ep}}({...c,direction:d.direction});return(0,r.jsx)(a.H2,{value:f,children:(0,r.jsx)(a.WG,{value:t,children:(0,o.P)(n,{isOpen:f.isOpen,onClose:f.onClose,forceUpdate:f.forceUpdate})})})}A.displayName="Popover"},48961:function(e,t,n){"use strict";n.d(t,{D:function(){return eS}});var r,i,o,a,s,l=n(6461);function u(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function c(e){var t=u(e).Element;return e instanceof t||e instanceof Element}function d(e){var t=u(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function f(e){if("undefined"==typeof ShadowRoot)return!1;var t=u(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var h=Math.max,p=Math.min,m=Math.round;function g(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function v(){return!/^((?!chrome|android).)*safari/i.test(g())}function y(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&d(e)&&(i=e.offsetWidth>0&&m(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&m(r.height)/e.offsetHeight||1);var a=(c(e)?u(e):window).visualViewport,s=!v()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/i,f=(r.top+(s&&a?a.offsetTop:0))/o,h=r.width/i,p=r.height/o;return{width:h,height:p,top:f,right:l+h,bottom:f+p,left:l,x:l,y:f}}function b(e){var t=u(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function x(e){return e?(e.nodeName||"").toLowerCase():null}function w(e){return((c(e)?e.ownerDocument:e.document)||window.document).documentElement}function k(e){return y(w(e)).left+b(e).scrollLeft}function S(e){return u(e).getComputedStyle(e)}function E(e){var t=S(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function _(e){var t=y(e),n=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function C(e){return"html"===x(e)?e:e.assignedSlot||e.parentNode||(f(e)?e.host:null)||w(e)}function O(e,t){void 0===t&&(t=[]);var n,r=function e(t){return["html","body","#document"].indexOf(x(t))>=0?t.ownerDocument.body:d(t)&&E(t)?t:e(C(t))}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=u(r),a=i?[o].concat(o.visualViewport||[],E(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(O(C(a)))}function T(e){return d(e)&&"fixed"!==S(e).position?e.offsetParent:null}function A(e){for(var t=u(e),n=T(e);n&&["table","td","th"].indexOf(x(n))>=0&&"static"===S(n).position;)n=T(n);return n&&("html"===x(n)||"body"===x(n)&&"static"===S(n).position)?t:n||function(e){var t=/firefox/i.test(g());if(/Trident/i.test(g())&&d(e)&&"fixed"===S(e).position)return null;var n=C(e);for(f(n)&&(n=n.host);d(n)&&0>["html","body"].indexOf(x(n));){var r=S(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var P="bottom",I="right",R="left",j="auto",M=["top",P,I,R],N="start",D="viewport",L="popper",z=M.reduce(function(e,t){return e.concat([t+"-"+N,t+"-end"])},[]),F=[].concat(M,[j]).reduce(function(e,t){return e.concat([t,t+"-"+N,t+"-end"])},[]),B=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],$={placement:"bottom",modifiers:[],strategy:"absolute"};function V(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}var U={passive:!0};function W(e){return e.split("-")[0]}function q(e){return e.split("-")[1]}function H(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Z(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?W(i):null,a=i?q(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case"top":t={x:s,y:n.y-r.height};break;case P:t={x:s,y:n.y+n.height};break;case I:t={x:n.x+n.width,y:l};break;case R:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=o?H(o):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case N:t[u]=t[u]-(n[c]/2-r[c]/2);break;case"end":t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var G={top:"auto",right:"auto",bottom:"auto",left:"auto"};function K(e){var t,n,r,i,o,a,s,l=e.popper,c=e.popperRect,d=e.placement,f=e.variation,h=e.offsets,p=e.position,g=e.gpuAcceleration,v=e.adaptive,y=e.roundOffsets,b=e.isFixed,x=h.x,k=void 0===x?0:x,E=h.y,_=void 0===E?0:E,C="function"==typeof y?y({x:k,y:_}):{x:k,y:_};k=C.x,_=C.y;var O=h.hasOwnProperty("x"),T=h.hasOwnProperty("y"),j=R,M="top",N=window;if(v){var D=A(l),L="clientHeight",z="clientWidth";D===u(l)&&"static"!==S(D=w(l)).position&&"absolute"===p&&(L="scrollHeight",z="scrollWidth"),("top"===d||(d===R||d===I)&&"end"===f)&&(M=P,_-=(b&&D===N&&N.visualViewport?N.visualViewport.height:D[L])-c.height,_*=g?1:-1),(d===R||("top"===d||d===P)&&"end"===f)&&(j=I,k-=(b&&D===N&&N.visualViewport?N.visualViewport.width:D[z])-c.width,k*=g?1:-1)}var F=Object.assign({position:p},v&&G),B=!0===y?(t={x:k,y:_},n=u(l),r=t.x,i=t.y,{x:m(r*(o=n.devicePixelRatio||1))/o||0,y:m(i*o)/o||0}):{x:k,y:_};return(k=B.x,_=B.y,g)?Object.assign({},F,((s={})[M]=T?"0":"",s[j]=O?"0":"",s.transform=1>=(N.devicePixelRatio||1)?"translate("+k+"px, "+_+"px)":"translate3d("+k+"px, "+_+"px, 0)",s)):Object.assign({},F,((a={})[M]=T?_+"px":"",a[j]=O?k+"px":"",a.transform="",a))}var Y={left:"right",right:"left",bottom:"top",top:"bottom"};function X(e){return e.replace(/left|right|bottom|top/g,function(e){return Y[e]})}var J={start:"end",end:"start"};function Q(e){return e.replace(/start|end/g,function(e){return J[e]})}function ee(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&f(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function et(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function en(e,t,n){var r,i,o,a,s,l,d,f,p,m;return t===D?et(function(e,t){var n=u(e),r=w(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=v();(c||!c&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+k(e),y:l}}(e,n)):c(t)?((r=y(t,!1,"fixed"===n)).top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r):et((i=w(e),a=w(i),s=b(i),l=null==(o=i.ownerDocument)?void 0:o.body,d=h(a.scrollWidth,a.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),f=h(a.scrollHeight,a.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),p=-s.scrollLeft+k(i),m=-s.scrollTop,"rtl"===S(l||a).direction&&(p+=h(a.clientWidth,l?l.clientWidth:0)-d),{width:d,height:f,x:p,y:m}))}function er(){return{top:0,right:0,bottom:0,left:0}}function ei(e){return Object.assign({},er(),e)}function eo(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function ea(e,t){void 0===t&&(t={});var n,r,i,o,a,s,l,u,f=t,m=f.placement,g=void 0===m?e.placement:m,v=f.strategy,b=void 0===v?e.strategy:v,k=f.boundary,E=f.rootBoundary,_=f.elementContext,T=void 0===_?L:_,R=f.altBoundary,j=f.padding,N=void 0===j?0:j,z=ei("number"!=typeof N?N:eo(N,M)),F=e.rects.popper,B=e.elements[void 0!==R&&R?T===L?"reference":L:T],$=(n=c(B)?B:B.contextElement||w(e.elements.popper),r=void 0===k?"clippingParents":k,i=void 0===E?D:E,l=(s=[].concat("clippingParents"===r?(o=O(C(n)),c(a=["absolute","fixed"].indexOf(S(n).position)>=0&&d(n)?A(n):n)?o.filter(function(e){return c(e)&&ee(e,a)&&"body"!==x(e)}):[]):[].concat(r),[i]))[0],(u=s.reduce(function(e,t){var r=en(n,t,b);return e.top=h(r.top,e.top),e.right=p(r.right,e.right),e.bottom=p(r.bottom,e.bottom),e.left=h(r.left,e.left),e},en(n,l,b))).width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u),V=y(e.elements.reference),U=Z({reference:V,element:F,strategy:"absolute",placement:g}),W=et(Object.assign({},F,U)),q=T===L?W:V,H={top:$.top-q.top+z.top,bottom:q.bottom-$.bottom+z.bottom,left:$.left-q.left+z.left,right:q.right-$.right+z.right},G=e.modifiersData.offset;if(T===L&&G){var K=G[g];Object.keys(H).forEach(function(e){var t=[I,P].indexOf(e)>=0?1:-1,n=["top",P].indexOf(e)>=0?"y":"x";H[e]+=K[n]*t})}return H}function es(e,t,n){return h(e,p(t,n))}function el(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function eu(e){return["top",I,P,R].some(function(t){return e[t]>=0})}var ec=(o=void 0===(i=(r={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,l=u(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(e){e.addEventListener("scroll",n.update,U)}),s&&l.addEventListener("resize",n.update,U),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",n.update,U)}),s&&l.removeEventListener("resize",n.update,U)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Z({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=n.adaptive,o=n.roundOffsets,a=void 0===o||o,s={placement:W(t.placement),variation:q(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===r||r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,K(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===i||i,roundOffsets:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,K(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];d(i)&&x(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});d(r)&&x(r)&&(Object.assign(r.style,o),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=F.reduce(function(e,n){var r,i,a,s,l,u;return e[n]=(r=t.rects,a=[R,"top"].indexOf(i=W(n))>=0?-1:1,l=(s="function"==typeof o?o(Object.assign({},r,{placement:n})):o)[0],u=s[1],l=l||0,u=(u||0)*a,[R,I].indexOf(i)>=0?{x:u,y:l}:{x:l,y:u}),e},{}),s=a[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=void 0===h||h,m=n.allowedAutoPlacements,g=t.options.placement,v=W(g)===g,y=l||(v||!p?[X(g)]:function(e){if(W(e)===j)return[];var t=X(e);return[Q(e),t,Q(t)]}(g)),b=[g].concat(y).reduce(function(e,n){var r,i,o,a,s,l,f,h,g,v,y,b;return e.concat(W(n)===j?(i=(r={placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:m}).placement,o=r.boundary,a=r.rootBoundary,s=r.padding,l=r.flipVariations,h=void 0===(f=r.allowedAutoPlacements)?F:f,0===(y=(v=(g=q(i))?l?z:z.filter(function(e){return q(e)===g}):M).filter(function(e){return h.indexOf(e)>=0})).length&&(y=v),Object.keys(b=y.reduce(function(e,n){return e[n]=ea(t,{placement:n,boundary:o,rootBoundary:a,padding:s})[W(n)],e},{})).sort(function(e,t){return b[e]-b[t]})):n)},[]),x=t.rects.reference,w=t.rects.popper,k=new Map,S=!0,E=b[0],_=0;_<b.length;_++){var C=b[_],O=W(C),T=q(C)===N,A=["top",P].indexOf(O)>=0,D=A?"width":"height",L=ea(t,{placement:C,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),B=A?T?I:R:T?P:"top";x[D]>w[D]&&(B=X(B));var $=X(B),V=[];if(o&&V.push(L[O]<=0),s&&V.push(L[B]<=0,L[$]<=0),V.every(function(e){return e})){E=C,S=!1;break}k.set(C,V)}if(S)for(var U=p?3:1,H=function(e){var t=b.find(function(t){var n=k.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return E=t,"break"},Z=U;Z>0&&"break"!==H(Z);Z--);t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=n.altAxis,a=n.boundary,s=n.rootBoundary,l=n.altBoundary,u=n.padding,c=n.tether,d=void 0===c||c,f=n.tetherOffset,m=void 0===f?0:f,g=ea(t,{boundary:a,rootBoundary:s,padding:u,altBoundary:l}),v=W(t.placement),y=q(t.placement),b=!y,x=H(v),w="x"===x?"y":"x",k=t.modifiersData.popperOffsets,S=t.rects.reference,E=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,O="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(k){if(void 0===i||i){var M,D="y"===x?"top":R,L="y"===x?P:I,z="y"===x?"height":"width",F=k[x],B=F+g[D],$=F-g[L],V=d?-E[z]/2:0,U=y===N?S[z]:E[z],Z=y===N?-E[z]:-S[z],G=t.elements.arrow,K=d&&G?_(G):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:er(),X=Y[D],J=Y[L],Q=es(0,S[z],K[z]),ee=b?S[z]/2-V-Q-X-O.mainAxis:U-Q-X-O.mainAxis,et=b?-S[z]/2+V+Q+J+O.mainAxis:Z+Q+J+O.mainAxis,en=t.elements.arrow&&A(t.elements.arrow),ei=en?"y"===x?en.clientTop||0:en.clientLeft||0:0,eo=null!=(M=null==T?void 0:T[x])?M:0,el=es(d?p(B,F+ee-eo-ei):B,F,d?h($,F+et-eo):$);k[x]=el,j[x]=el-F}if(void 0!==o&&o){var eu,ec,ed="x"===x?"top":R,ef="x"===x?P:I,eh=k[w],ep="y"===w?"height":"width",em=eh+g[ed],eg=eh-g[ef],ev=-1!==["top",R].indexOf(v),ey=null!=(ec=null==T?void 0:T[w])?ec:0,eb=ev?em:eh-S[ep]-E[ep]-ey+O.altAxis,ex=ev?eh+S[ep]+E[ep]-ey-O.altAxis:eg,ew=d&&ev?(eu=es(eb,eh,ex))>ex?ex:eu:es(d?eb:em,eh,d?ex:eg);k[w]=ew,j[w]=ew-eh}t.modifiersData[r]=j}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n,r=e.state,i=e.name,o=e.options,a=r.elements.arrow,s=r.modifiersData.popperOffsets,l=W(r.placement),u=H(l),c=[R,I].indexOf(l)>=0?"height":"width";if(a&&s){var d=ei("number"!=typeof(t="function"==typeof(t=o.padding)?t(Object.assign({},r.rects,{placement:r.placement})):t)?t:eo(t,M)),f=_(a),h="y"===u?"top":R,p="y"===u?P:I,m=r.rects.reference[c]+r.rects.reference[u]-s[u]-r.rects.popper[c],g=s[u]-r.rects.reference[u],v=A(a),y=v?"y"===u?v.clientHeight||0:v.clientWidth||0:0,b=d[h],x=y-f[c]-d[p],w=y/2-f[c]/2+(m/2-g/2),k=es(b,w,x);r.modifiersData[i]=((n={})[u]=k,n.centerOffset=k-w,n)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ee(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=ea(t,{elementContext:"reference"}),s=ea(t,{altBoundary:!0}),l=el(a,r),u=el(s,i,o),c=eu(l),d=eu(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}).defaultModifiers)?[]:i,s=void 0===(a=r.defaultOptions)?$:a,function(e,t,n){void 0===n&&(n=s);var r,i,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},$,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],f=!1,h={state:a,setOptions:function(n){var r,i,u,d,f,m="function"==typeof n?n(a.options):n;p(),a.options=Object.assign({},s,a.options,m),a.scrollParents={reference:c(e)?O(e):e.contextElement?O(e.contextElement):[],popper:O(t)};var g=(i=Object.keys(r=[].concat(o,a.options.modifiers).reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{})).map(function(e){return r[e]}),u=new Map,d=new Set,f=[],i.forEach(function(e){u.set(e.name,e)}),i.forEach(function(e){d.has(e.name)||function e(t){d.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!d.has(t)){var n=u.get(t);n&&e(n)}}),f.push(t)}(e)}),B.reduce(function(e,t){return e.concat(f.filter(function(e){return e.phase===t}))},[]));return a.orderedModifiers=g.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=e.effect;if("function"==typeof r){var i=r({state:a,name:t,instance:h,options:void 0===n?{}:n});l.push(i||function(){})}}),h.update()},forceUpdate:function(){if(!f){var e,t,n,r,i,o,s,l,c,p,g,v,S=a.elements,C=S.reference,O=S.popper;if(V(C,O)){a.rects={reference:(t=A(O),n="fixed"===a.options.strategy,r=d(t),l=d(t)&&(o=m((i=t.getBoundingClientRect()).width)/t.offsetWidth||1,s=m(i.height)/t.offsetHeight||1,1!==o||1!==s),c=w(t),p=y(C,l,n),g={scrollLeft:0,scrollTop:0},v={x:0,y:0},(r||!r&&!n)&&(("body"!==x(t)||E(c))&&(g=(e=t)!==u(e)&&d(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:b(e)),d(t)?(v=y(t,!0),v.x+=t.clientLeft,v.y+=t.clientTop):c&&(v.x=k(c))),{x:p.left+g.scrollLeft-v.x,y:p.top+g.scrollTop-v.y,width:p.width,height:p.height}),popper:_(O)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var T=0;T<a.orderedModifiers.length;T++){if(!0===a.reset){a.reset=!1,T=-1;continue}var P=a.orderedModifiers[T],I=P.fn,R=P.options,j=void 0===R?{}:R,M=P.name;"function"==typeof I&&(a=I({state:a,options:j,name:M,instance:h})||a)}}}},update:(r=function(){return new Promise(function(e){h.forceUpdate(),e(a)})},function(){return i||(i=new Promise(function(e){Promise.resolve().then(function(){i=void 0,e(r())})})),i}),destroy:function(){p(),f=!0}};if(!V(e,t))return h;function p(){l.forEach(function(e){return e()}),l=[]}return h.setOptions(n).then(function(e){!f&&n.onFirstUpdate&&n.onFirstUpdate(e)}),h}),ed=n(66703),ef=n(74833);let eh={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:e=>{let{state:t}=e;t.styles.popper.width="".concat(t.rects.reference.width,"px")},effect:e=>{let{state:t}=e;return()=>{let e=t.elements.reference;t.elements.popper.style.width="".concat(e.offsetWidth,"px")}}},ep={name:"transformOrigin",enabled:!0,phase:"write",fn:e=>{let{state:t}=e;em(t)},effect:e=>{let{state:t}=e;return()=>{em(t)}}},em=e=>{e.elements.popper.style.setProperty(ef.Dq.transformOrigin.var,(0,ef.mv)(e.placement))},eg={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:e=>{let{state:t}=e;ev(t)}},ev=e=>{var t;if(!e.placement)return;let n=ey(e.placement);if((null===(t=e.elements)||void 0===t?void 0:t.arrow)&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:ef.Dq.arrowSize.varRef,height:ef.Dq.arrowSize.varRef,zIndex:-1});let t={[ef.Dq.arrowSizeHalf.var]:"calc(".concat(ef.Dq.arrowSize.varRef," / 2 - 1px)"),[ef.Dq.arrowOffset.var]:"calc(".concat(ef.Dq.arrowSizeHalf.varRef," * -1)")};for(let n in t)e.elements.arrow.style.setProperty(n,t[n])}},ey=e=>e.startsWith("top")?{property:"bottom",value:ef.Dq.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:ef.Dq.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:ef.Dq.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:ef.Dq.arrowOffset.varRef}:void 0,eb={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:e=>{let{state:t}=e;ex(t)},effect:e=>{let{state:t}=e;return()=>{ex(t)}}},ex=e=>{if(!e.elements.arrow)return;let t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;let n=(0,ef.Ke)(e.placement);n&&t.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(t.style,{transform:"rotate(45deg)",background:ef.Dq.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},ew={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},ek={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function eS(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{enabled:t=!0,modifiers:n,placement:r="bottom",strategy:i="absolute",arrowPadding:o=8,eventListeners:a=!0,offset:s,gutter:u=8,flip:c=!0,boundary:d="clippingParents",preventOverflow:f=!0,matchWidth:h,direction:p="ltr"}=e,m=(0,ed.useRef)(null),g=(0,ed.useRef)(null),v=(0,ed.useRef)(null),y=function(e){var t,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ltr",i=(null===(t=ew[e])||void 0===t?void 0:t[r])||e;return"ltr"===r?i:null!==(n=ek[e])&&void 0!==n?n:i}(r,p),b=(0,ed.useRef)(()=>{}),x=(0,ed.useCallback)(()=>{var e;t&&m.current&&g.current&&(null===(e=b.current)||void 0===e||e.call(b),v.current=ec(m.current,g.current,{placement:y,modifiers:[eb,eg,ep,{...eh,enabled:!!h},{name:"eventListeners",...(0,ef.$B)(a)},{name:"arrow",options:{padding:o}},{name:"offset",options:{offset:null!=s?s:[0,u]}},{name:"flip",enabled:!!c,options:{padding:8}},{name:"preventOverflow",enabled:!!f,options:{boundary:d}},...null!=n?n:[]],strategy:i}),v.current.forceUpdate(),b.current=v.current.destroy)},[y,t,n,h,a,o,s,u,c,f,d,i]);(0,ed.useEffect)(()=>()=>{if(!m.current&&!g.current){var e;null===(e=v.current)||void 0===e||e.destroy(),v.current=null}},[]);let w=(0,ed.useCallback)(e=>{m.current=e,x()},[x]),k=(0,ed.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:(0,l.lq)(w,t)}},[w]),S=(0,ed.useCallback)(e=>{g.current=e,x()},[x]),E=(0,ed.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:(0,l.lq)(S,t),style:{...e.style,position:i,minWidth:h?void 0:"max-content",inset:"0 auto auto 0"}}},[i,S,h]),_=(0,ed.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,{size:n,shadowColor:r,bg:i,style:o,...a}=e;return{...a,ref:t,"data-popper-arrow":"",style:function(e){let{size:t,shadowColor:n,bg:r,style:i}=e,o={...i,position:"absolute"};return t&&(o["--popper-arrow-size"]=t),n&&(o["--popper-arrow-shadow-color"]=n),r&&(o["--popper-arrow-bg"]=r),o}(e)}},[]),C=(0,ed.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:t,"data-popper-arrow-inner":""}},[]);return{update(){var e;null===(e=v.current)||void 0===e||e.update()},forceUpdate(){var e;null===(e=v.current)||void 0===e||e.forceUpdate()},transformOrigin:ef.Dq.transformOrigin.varRef,referenceRef:w,popperRef:S,getPopperProps:E,getArrowProps:_,getArrowInnerProps:C,getReferenceProps:k}}},74833:function(e,t,n){"use strict";n.d(t,{$B:function(){return u},Dq:function(){return i},Ke:function(){return o},mv:function(){return s}});let r=(e,t)=>({var:e,varRef:t?"var(".concat(e,", ").concat(t,")"):"var(".concat(e,")")}),i={arrowShadowColor:r("--popper-arrow-shadow-color"),arrowSize:r("--popper-arrow-size","8px"),arrowSizeHalf:r("--popper-arrow-size-half"),arrowBg:r("--popper-arrow-bg"),transformOrigin:r("--popper-transform-origin"),arrowOffset:r("--popper-arrow-offset")};function o(e){return e.includes("top")?"1px 1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("bottom")?"-1px -1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("right")?"-1px 1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("left")?"1px -1px 0px 0 var(--popper-arrow-shadow-color)":void 0}let a={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},s=e=>a[e],l={scroll:!0,resize:!0};function u(e){return"object"==typeof e?{enabled:!0,options:{...l,...e}}:{enabled:e,options:l}}},43415:function(e,t,n){"use strict";n.d(t,{L:function(){return o},h:function(){return a}});var r=n(20130);let[i,o]=(0,n(9396).k)({strict:!1,name:"PortalManagerContext"});function a(e){let{children:t,zIndex:n}=e;return(0,r.jsx)(i,{value:{zIndex:n},children:t})}a.displayName="PortalManager"},72669:function(e,t,n){"use strict";n.d(t,{h:function(){return m}});var r=n(20130),i=n(59129),o=n(9396),a=n(66703),s=n(93694),l=n(43415);let[u,c]=(0,o.k)({strict:!1,name:"PortalContext"}),d="chakra-portal",f=e=>(0,r.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),h=e=>{let{appendToParentPortal:t,children:n}=e,[o,h]=(0,a.useState)(null),p=(0,a.useRef)(null),[,m]=(0,a.useState)({});(0,a.useEffect)(()=>m({}),[]);let g=c(),v=(0,l.L)();(0,i.G)(()=>{if(!o)return;let e=o.ownerDocument,n=t&&null!=g?g:e.body;if(!n)return;p.current=e.createElement("div"),p.current.className=d,n.appendChild(p.current),m({});let r=p.current;return()=>{n.contains(r)&&n.removeChild(r)}},[o]);let y=(null==v?void 0:v.zIndex)?(0,r.jsx)(f,{zIndex:null==v?void 0:v.zIndex,children:n}):n;return p.current?(0,s.createPortal)((0,r.jsx)(u,{value:p.current,children:y}),p.current):(0,r.jsx)("span",{ref:e=>{e&&h(e)}})},p=e=>{let{children:t,containerRef:n,appendToParentPortal:o}=e,l=n.current,c=null!=l?l:"undefined"!=typeof window?document.body:void 0,f=(0,a.useMemo)(()=>{let e=null==l?void 0:l.ownerDocument.createElement("div");return e&&(e.className=d),e},[l]),[,h]=(0,a.useState)({});return((0,i.G)(()=>h({}),[]),(0,i.G)(()=>{if(f&&c)return c.appendChild(f),()=>{c.removeChild(f)}},[f,c]),c&&f)?(0,s.createPortal)((0,r.jsx)(u,{value:o?f:null,children:t}),f):null};function m(e){let{containerRef:t,...n}={appendToParentPortal:!0,...e};return t?(0,r.jsx)(p,{containerRef:t,...n}):(0,r.jsx)(h,{...n})}m.className=d,m.selector=".chakra-portal",m.displayName="Portal"},83722:function(e,t,n){"use strict";n.d(t,{D:function(){return u}});var r=n(20130),i=n(71034),o=n(49110);let a=e=>(0,r.jsx)(o.m.circle,{cx:50,cy:50,r:42,fill:"transparent",...e});a.displayName="Circle";var s=n(90913);let l=e=>{let{size:t,isIndeterminate:n,...i}=e;return(0,r.jsx)(o.m.svg,{viewBox:"0 0 100 100",__css:{width:t,height:t,animation:n?"".concat(s.U1," 2s linear infinite"):void 0},...i})};l.displayName="Shape";let u=(0,n(43906).G)((e,t)=>{var n;let{size:u="48px",max:c=100,min:d=0,valueText:f,getValueText:h,value:p,capIsRound:m,children:g,thickness:v="10px",color:y="#0078d4",trackColor:b="#edebe9",isIndeterminate:x,...w}=e,k=(0,s.Wt)({min:d,max:c,value:p,valueText:f,getValueText:h,isIndeterminate:x}),S=x?void 0:(null!==(n=k.percent)&&void 0!==n?n:0)*2.64,E=null==S?void 0:"".concat(S," ").concat(264-S),_=x?{css:{animation:"".concat(s.O2," 1.5s linear infinite")}}:{strokeDashoffset:66,strokeDasharray:E,transitionProperty:"stroke-dasharray, stroke",transitionDuration:"0.6s",transitionTimingFunction:"ease"},C=(0,i.k0)({display:"inline-block",position:"relative",verticalAlign:"middle",fontSize:u});return(0,r.jsxs)(o.m.div,{ref:t,className:"chakra-progress",...k.bind,...w,__css:C,children:[(0,r.jsxs)(l,{size:u,isIndeterminate:x,children:[(0,r.jsx)(a,{stroke:b,strokeWidth:v,className:"chakra-progress__track"}),(0,r.jsx)(a,{stroke:y,strokeWidth:v,className:"chakra-progress__indicator",strokeLinecap:m?"round":void 0,opacity:0!==k.value||x?void 0:0,..._})]}),g]})});u.displayName="CircularProgress"},93457:function(e,t,n){"use strict";n.d(t,{E:function(){return h}});var r=n(20130),i=n(66861),o=n(9396),a=n(90913),s=n(43906),l=n(49110),u=n(35364);let[c,d]=(0,o.k)({name:"ProgressStylesContext",errorMessage:"useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Progress />\" "}),f=(0,s.G)((e,t)=>{let{min:n,max:i,value:o,isIndeterminate:s,role:u,...c}=e,f=(0,a.Wt)({value:o,min:n,max:i,isIndeterminate:s,role:u}),h={height:"100%",...d().filledTrack};return(0,r.jsx)(l.m.div,{ref:t,style:{width:"".concat(f.percent,"%"),...c.style},...f.bind,...c,__css:h})}),h=(0,s.G)((e,t)=>{var n;let{value:o,min:s=0,max:d=100,hasStripe:h,isAnimated:p,children:m,borderRadius:g,isIndeterminate:v,"aria-label":y,"aria-labelledby":b,"aria-valuetext":x,title:w,role:k,...S}=(0,i.L)(e),E=(0,u.j)("Progress",e),_=null!=g?g:null===(n=E.track)||void 0===n?void 0:n.borderRadius,C={animation:"".concat(a.Ag," 1s linear infinite")},O={...!v&&h&&p&&C,...v&&{position:"absolute",willChange:"left",minWidth:"50%",animation:"".concat(a.YD," 1s ease infinite normal none running")}},T={overflow:"hidden",position:"relative",...E.track};return(0,r.jsx)(l.m.div,{ref:t,borderRadius:_,__css:T,...S,children:(0,r.jsxs)(c,{value:E,children:[(0,r.jsx)(f,{"aria-label":y,"aria-labelledby":b,"aria-valuetext":x,min:s,max:d,value:o,isIndeterminate:v,css:O,borderRadius:_,title:w,role:k}),m]})})});h.displayName="Progress"},90913:function(e,t,n){"use strict";n.d(t,{Ag:function(){return s},O2:function(){return i},U1:function(){return o},Wt:function(){return l},YD:function(){return a}});var r=n(68312);let i=(0,r.F4)({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}}),o=(0,r.F4)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),a=(0,r.F4)({"0%":{left:"-40%"},"100%":{left:"100%"}}),s=(0,r.F4)({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function l(e){let{value:t=0,min:n,max:r,valueText:i,getValueText:o,isIndeterminate:a,role:s="progressbar"}=e,l=(t-n)*100/(r-n);return{bind:{"data-indeterminate":a?"":void 0,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":a?void 0:t,"aria-valuetext":(()=>{if(null!=t)return"function"==typeof o?o(t,l):i})(),role:s},percent:l,value:t}}},18707:function(e,t,n){"use strict";n.d(t,{E:function(){return h},X:function(){return f}});var r=n(20130),i=n(9396),o=n(90010),a=n(66703),s=n(6461),l=n(93031),u=n(43906),c=n(49110);let[d,f]=(0,i.k)({name:"RadioGroupContext",strict:!1}),h=(0,u.G)((e,t)=>{let{colorScheme:n,size:i,variant:u,children:f,className:h,isDisabled:p,isFocusable:m,...g}=e,{value:v,onChange:y,getRootProps:b,name:x,htmlProps:w}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{onChange:t,value:n,defaultValue:r,name:i,isDisabled:o,isFocusable:u,isNative:c,...d}=e,[f,h]=(0,a.useState)(r||""),p=void 0!==n,m=p?n:f,g=(0,a.useRef)(null),v=(0,a.useCallback)(()=>{let e=g.current;if(!e)return;let t="input:not(:disabled):checked",n=e.querySelector(t);if(n){n.focus();return}t="input:not(:disabled)";let r=e.querySelector(t);null==r||r.focus()},[]),y=(0,a.useId)(),b=i||"radio-".concat(y),x=(0,a.useCallback)(e=>{let n=e&&(0,l.Kn)(e)&&(0,l.Kn)(e.target)?e.target.value:e;p||h(n),null==t||t(String(n))},[t,p]);return{getRootProps:(0,a.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:(0,s.lq)(t,g),role:"radiogroup"}},[]),getRadioProps:(0,a.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=c?"checked":"isChecked";return{...e,ref:t,name:b,[n]:null!=m?e.value===m:void 0,onChange(e){x(e)},"data-radiogroup":!0}},[c,b,x,m]),name:b,ref:g,focus:v,setValue:h,value:m,onChange:x,isDisabled:o,isFocusable:u,htmlProps:d}}(g),k=(0,a.useMemo)(()=>({name:x,size:i,onChange:y,colorScheme:n,value:v,variant:u,isDisabled:p,isFocusable:m}),[x,i,y,n,v,u,p,m]);return(0,r.jsx)(d,{value:k,children:(0,r.jsx)(c.m.div,{...b(w,t),className:(0,o.cx)("chakra-radio-group",h),children:f})})});h.displayName="RadioGroup"},48262:function(e,t,n){"use strict";n.d(t,{Y:function(){return y}});var r=n(20130),i=n(66861),o=n(60571),a=n(11915),s=n(57835),l=n(18707),u=n(26934),c=n(99466),d=n(66703),f=n(22488),h=n(28770);function p(e){e.preventDefault(),e.stopPropagation()}var m=n(43906),g=n(35364),v=n(49110);let y=(0,m.G)((e,t)=>{var n;let m=(0,l.X)(),{onChange:y,value:b}=e,x=(0,g.j)("Radio",{...m,...e}),{spacing:w="0.5rem",children:k,isDisabled:S=null==m?void 0:m.isDisabled,isFocusable:E=null==m?void 0:m.isFocusable,inputProps:_,...C}=(0,i.L)(e),O=e.isChecked;(null==m?void 0:m.value)!=null&&null!=b&&(O=m.value===b);let T=y;(null==m?void 0:m.onChange)&&null!=b&&(T=(0,a.P)(m.onChange,y));let A=null!==(n=null==e?void 0:e.name)&&void 0!==n?n:null==m?void 0:m.name,{getInputProps:P,getRadioProps:I,getLabelProps:R,getRootProps:j,htmlProps:M}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultChecked:t,isChecked:n,isFocusable:r,isDisabled:i,isReadOnly:o,isRequired:s,onChange:m,isInvalid:g,name:v,value:y,id:b,"data-radiogroup":x,"aria-describedby":w,...k}=e,S="radio-".concat((0,d.useId)()),E=(0,f.NJ)(),_=(0,l.X)(),C=E&&!(_||x)?E.id:S;C=null!=b?b:C;let O=null!=i?i:null==E?void 0:E.isDisabled,T=null!=o?o:null==E?void 0:E.isReadOnly,A=null!=s?s:null==E?void 0:E.isRequired,P=null!=g?g:null==E?void 0:E.isInvalid,[I,R]=(0,d.useState)(!1),[j,M]=(0,d.useState)(!1),[N,D]=(0,d.useState)(!1),[L,z]=(0,d.useState)(!1),[F,B]=(0,d.useState)(!!t),$=void 0!==n,V=$?n:F;(0,d.useEffect)(()=>(0,c.BT)(R),[]);let U=(0,d.useCallback)(e=>{if(T||O){e.preventDefault();return}$||B(e.currentTarget.checked),null==m||m(e)},[$,O,T,m]),W=(0,d.useCallback)(e=>{" "===e.key&&z(!0)},[z]),q=(0,d.useCallback)(e=>{" "===e.key&&z(!1)},[z]),H=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:t,"data-active":(0,u.P)(L),"data-hover":(0,u.P)(N),"data-disabled":(0,u.P)(O),"data-invalid":(0,u.P)(P),"data-checked":(0,u.P)(V),"data-focus":(0,u.P)(j),"data-focus-visible":(0,u.P)(j&&I),"data-readonly":(0,u.P)(T),"aria-hidden":!0,onMouseDown:(0,a.v)(e.onMouseDown,()=>z(!0)),onMouseUp:(0,a.v)(e.onMouseUp,()=>z(!1)),onMouseEnter:(0,a.v)(e.onMouseEnter,()=>D(!0)),onMouseLeave:(0,a.v)(e.onMouseLeave,()=>D(!1))}},[L,N,O,P,V,j,T,I]),{onFocus:Z,onBlur:G}=null!=E?E:{},K=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=O&&!r;return{...e,id:C,ref:t,type:"radio",name:v,value:y,onChange:(0,a.v)(e.onChange,U),onBlur:(0,a.v)(G,e.onBlur,()=>M(!1)),onFocus:(0,a.v)(Z,e.onFocus,()=>M(!0)),onKeyDown:(0,a.v)(e.onKeyDown,W),onKeyUp:(0,a.v)(e.onKeyUp,q),checked:V,disabled:n,readOnly:T,required:A,"aria-invalid":(0,u.Q)(P),"aria-disabled":(0,u.Q)(n),"aria-required":(0,u.Q)(A),"data-readonly":(0,u.P)(T),"aria-describedby":w,style:h.N}},[O,r,C,v,y,U,G,Z,W,q,V,T,A,P,w]);return{state:{isInvalid:P,isFocused:j,isChecked:V,isActive:L,isHovered:N,isDisabled:O,isReadOnly:T,isRequired:A},getRadioProps:H,getInputProps:K,getLabelProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:t,onMouseDown:(0,a.v)(e.onMouseDown,p),"data-disabled":(0,u.P)(O),"data-checked":(0,u.P)(V),"data-invalid":(0,u.P)(P)}},getRootProps:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{htmlFor:C,...e,ref:t,"data-disabled":(0,u.P)(O),"data-checked":(0,u.P)(V),"data-invalid":(0,u.P)(P)}},htmlProps:k}}({...C,isChecked:O,isFocusable:E,isDisabled:S,onChange:T,name:A}),[N,D]=(0,s.V)(M,o.oE),L=I(D),z=P(_,t),F=R(),B=Object.assign({},N,j()),$={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...x.container},V={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...x.control},U={userSelect:"none",marginStart:w,...x.label};return(0,r.jsxs)(v.m.label,{className:"chakra-radio",...B,__css:$,children:[(0,r.jsx)("input",{className:"chakra-radio__input",...z}),(0,r.jsx)(v.m.span,{className:"chakra-radio__control",...L,__css:V}),k&&(0,r.jsx)(v.m.span,{className:"chakra-radio__label",...F,__css:U,children:k})]})});y.displayName="Radio"},15615:function(e,t,n){"use strict";n.d(t,{P:function(){return m}});var r=n(20130),i=n(66861),o=n(60571),a=n(57835),s=n(26934),l=n(66703),u=n(90010),c=n(43906),d=n(49110);let f=(0,c.G)(function(e,t){let{children:n,placeholder:i,className:o,...a}=e;return(0,r.jsxs)(d.m.select,{...a,ref:t,className:(0,u.cx)("chakra-select",o),children:[i&&(0,r.jsx)("option",{value:"",children:i}),n]})});f.displayName="SelectField";var h=n(31172),p=n(35364);let m=(0,c.G)((e,t)=>{var n;let l=(0,p.j)("Select",e),{rootProps:u,placeholder:c,icon:m,color:g,height:v,h:b,minH:x,minHeight:w,iconColor:k,iconSize:S,...E}=(0,i.L)(e),[_,C]=(0,a.V)(E,o.oE),O=(0,h.Y)(C),T={paddingEnd:"2rem",...l.field,_focus:{zIndex:"unset",...null===(n=l.field)||void 0===n?void 0:n._focus}};return(0,r.jsxs)(d.m.div,{className:"chakra-select__wrapper",__css:{width:"100%",height:"fit-content",position:"relative",color:g},..._,...u,children:[(0,r.jsx)(f,{ref:t,height:null!=b?b:v,minH:null!=x?x:w,placeholder:c,...O,__css:T,children:e.children}),(0,r.jsx)(y,{"data-disabled":(0,s.P)(O.disabled),...(k||g)&&{color:k||g},__css:l.icon,...S&&{fontSize:S},children:m})]})});m.displayName="Select";let g=e=>(0,r.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),v=(0,d.m)("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),y=e=>{let{children:t=(0,r.jsx)(g,{}),...n}=e,i=(0,l.cloneElement)(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return(0,r.jsx)(v,{...n,className:"chakra-select__icon-wrapper",children:(0,l.isValidElement)(t)?i:null})};y.displayName="SelectIcon"},48409:function(e,t,n){"use strict";n.d(t,{N:function(){return x}});var r=n(20130),i=n(90010),o=n(66703),a=n(41293),s=n(66861),l=n(68312),u=n(94181),c=n(49110),d=n(43906),f=n(35364);let h=(0,c.m)("div",{baseStyle:{boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none","&::before, &::after, *":{visibility:"hidden"}}}),p=(0,a.gJ)("skeleton-start-color"),m=(0,a.gJ)("skeleton-end-color"),g=(0,l.F4)({from:{opacity:0},to:{opacity:1}}),v=(0,l.F4)({from:{borderColor:p.reference,background:p.reference},to:{borderColor:m.reference,background:m.reference}}),y=(0,d.G)((e,t)=>{let n={...e,fadeDuration:"number"==typeof e.fadeDuration?e.fadeDuration:.4,speed:"number"==typeof e.speed?e.speed:.8},a=(0,f.m)("Skeleton",n),l=function(){let e=(0,o.useRef)(!0);return(0,o.useEffect)(()=>{e.current=!1},[]),e.current}(),{startColor:d="",endColor:y="",isLoaded:b,fadeDuration:x,speed:w,className:k,fitContent:S,animation:E,..._}=(0,s.L)(n),[C,O]=(0,u.dQ)("colors",[d,y]),T=function(e){let t=(0,o.useRef)(void 0);return(0,o.useEffect)(()=>{t.current=e},[e]),t.current}(b),A=(0,i.cx)("chakra-skeleton",k),P={...C&&{[p.variable]:C},...O&&{[m.variable]:O}};if(b){let e=l||T?"none":"".concat(g," ").concat(x,"s");return(0,r.jsx)(c.m.div,{ref:t,className:A,__css:{animation:e},..._})}return(0,r.jsx)(h,{ref:t,className:A,..._,__css:{width:S?"fit-content":void 0,...a,...P,_dark:{...a._dark,...P},animation:E||"".concat(w,"s linear infinite alternate ").concat(v)}})});y.displayName="Skeleton";var b=n(20395);let x=e=>{let{noOfLines:t=3,spacing:n="0.5rem",skeletonHeight:o="0.5rem",className:a,startColor:s,endColor:l,isLoaded:u,fadeDuration:d,speed:f,variant:h,size:p,colorScheme:m,children:g,...v}=e,x=(0,b.S)("number"==typeof t?[t]:t)||3,w=Array(x).fill(1).map((e,t)=>t+1),k=e=>x>1&&e===w.length?"80%":"100%",S=(0,i.cx)("chakra-skeleton__group",a);return(0,r.jsx)(c.m.div,{className:S,...v,children:w.map((e,t)=>{if(u&&t>0)return null;let i=u?null:{mb:e===w.length?"0":n,width:k(e),height:o};return(0,r.jsx)(y,{startColor:s,endColor:l,isLoaded:u,fadeDuration:d,speed:f,variant:h,size:p,colorScheme:m,...i,children:0===t?g:void 0},w.length.toString()+e)})})};x.displayName="SkeletonText"},31198:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});let r=(0,n(49110).m)("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});r.displayName="Spacer"},56756:function(e,t,n){"use strict";n.d(t,{$:function(){return d}});var r=n(20130),i=n(66861),o=n(90010),a=n(68312),s=n(43906),l=n(35364),u=n(49110);let c=(0,a.F4)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),d=(0,s.G)((e,t)=>{let n=(0,l.m)("Spinner",e),{label:a="Loading...",thickness:s="2px",speed:d="0.45s",emptyColor:f="transparent",className:h,...p}=(0,i.L)(e),m=(0,o.cx)("chakra-spinner",h),g={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:s,borderBottomColor:f,borderLeftColor:f,animation:"".concat(c," ").concat(d," linear infinite"),...n};return(0,r.jsx)(u.m.div,{ref:t,__css:g,className:m,...p,children:a&&(0,r.jsx)(u.m.span,{srOnly:!0,children:a})})});d.displayName="Spinner"},55182:function(e,t,n){"use strict";n.d(t,{U:function(){return o}});var r=n(20130),i=n(17301);let o=(0,n(43906).G)((e,t)=>(0,r.jsx)(i.K,{align:"center",...e,direction:"row",ref:t}));o.displayName="HStack"},76096:function(e,t,n){"use strict";n.d(t,{c:function(){return o}});var r=n(20130),i=n(49110);let o=e=>(0,r.jsx)(i.m.div,{className:"chakra-stack__divider",...e,__css:{...e.__css,borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"}});o.displayName="StackDivider"},17301:function(e,t,n){"use strict";n.d(t,{K:function(){return c}});var r=n(20130),i=n(84535),o=n(90010),a=n(66703),s=n(49110);let l=e=>(0,r.jsx)(s.m.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});l.displayName="StackItem";var u=n(69475);let c=(0,n(43906).G)((e,t)=>{let{isInline:n,direction:c,align:d,justify:f,spacing:h="0.5rem",wrap:p,children:m,divider:g,className:v,shouldWrapChildren:y,...b}=e,x=n?"row":null!=c?c:"column",w=(0,a.useMemo)(()=>(function(e){let{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":(0,u.XQ)(n,e=>r[e])}})({spacing:h,direction:x}),[h,x]),k=!!g,S=!y&&!k,E=(0,a.useMemo)(()=>{let e=(0,i.W)(m);return S?e:e.map((t,n)=>{let i=void 0!==t.key?t.key:n,o=n+1===e.length,s=(0,r.jsx)(l,{children:t},i),u=y?s:t;if(!k)return u;let c=(0,a.cloneElement)(g,{__css:w});return(0,r.jsxs)(a.Fragment,{children:[u,o?null:c]},i)})},[g,w,k,S,y,m]),_=(0,o.cx)("chakra-stack",v);return(0,r.jsx)(s.m.div,{ref:t,display:"flex",alignItems:d,justifyContent:f,flexDirection:x,flexWrap:p,gap:k?void 0:h,className:_,...b,children:E})});c.displayName="Stack"},40613:function(e,t,n){"use strict";n.d(t,{g:function(){return o}});var r=n(20130),i=n(17301);let o=(0,n(43906).G)((e,t)=>(0,r.jsx)(i.K,{align:"center",...e,direction:"column",ref:t}));o.displayName="VStack"},64723:function(e,t,n){"use strict";n.d(t,{r:function(){return d}});var r=n(20130),i=n(66861),o=n(90010),a=n(66703),s=n(50192),l=n(43906),u=n(35364),c=n(49110);let d=(0,l.G)(function(e,t){let n=(0,u.j)("Switch",e),{spacing:l="0.5rem",children:d,...f}=(0,i.L)(e),{getIndicatorProps:h,getInputProps:p,getCheckboxProps:m,getRootProps:g,getLabelProps:v}=(0,s.O)(f),y=(0,a.useMemo)(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...n.container}),[n.container]),b=(0,a.useMemo)(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...n.track}),[n.track]),x=(0,a.useMemo)(()=>({userSelect:"none",marginStart:l,...n.label}),[l,n.label]);return(0,r.jsxs)(c.m.label,{...g(),className:(0,o.cx)("chakra-switch",e.className),__css:y,children:[(0,r.jsx)("input",{className:"chakra-switch__input",...p({},t)}),(0,r.jsx)(c.m.span,{...m(),className:"chakra-switch__track",__css:b,children:(0,r.jsx)(c.m.span,{__css:n.thumb,className:"chakra-switch__thumb",...h()})}),d&&(0,r.jsx)(c.m.span,{className:"chakra-switch__label",...v(),__css:x,children:d})]})});d.displayName="Switch"},49110:function(e,t,n){"use strict";n.d(t,{m:function(){return T}});var r=n(60571),i=n(57898),o=n(69072),a=n(33164),s=n(52409),l=n(9116),u=n(73513),c=n(93949),d=n(37362),f=n(66703),h=n(74580),p=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,m=(0,h.Z)(function(e){return p.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),g=function(e){return"theme"!==e},v=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?m:g},y=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},b=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,d.hC)(t,n,r),(0,c.L)(function(){return(0,d.My)(t,n,r)}),null},x=(function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var c=y(t,n,o),h=c||v(a),p=!h("as");return function(){var m=arguments,g=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&g.push("label:"+r+";"),null==m[0]||void 0===m[0].raw)g.push.apply(g,m);else{var x=m[0];g.push(x[0]);for(var w=m.length,k=1;k<w;k++)g.push(m[k],x[k])}var S=(0,l.w)(function(e,t,n){var r=p&&e.as||a,o="",s=[],m=e;if(null==e.theme){for(var y in m={},e)m[y]=e[y];m.theme=f.useContext(l.T)}"string"==typeof e.className?o=(0,d.fp)(t.registered,s,e.className):null!=e.className&&(o=e.className+" ");var x=(0,u.O)(g.concat(s),t.registered,m);o+=t.key+"-"+x.name,void 0!==i&&(o+=" "+i);var w=p&&void 0===c?v(r):h,k={};for(var S in e)(!p||"as"!==S)&&w(S)&&(k[S]=e[S]);return k.className=o,n&&(k.ref=n),f.createElement(f.Fragment,null,f.createElement(b,{cache:t,serialized:x,isStringTag:"string"==typeof r}),f.createElement(r,k))});return S.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",S.defaultProps=t.defaultProps,S.__emotion_real=S,S.__emotion_base=a,S.__emotion_styles=g,S.__emotion_forwardProp=c,Object.defineProperty(S,"toString",{value:function(){return"."+i}}),S.withComponent=function(t,r){return e(t,(0,s.Z)({},n,r,{shouldForwardProp:y(S,r,!0)})).apply(void 0,g)},S}}).bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){x[e]=x(e)});let w=new Set([...r.cC,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),k=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function S(e){return(k.has(e)||!w.has(e))&&"_"!==e[0]}var E=n(16276);let _=x.default||x,C=e=>{let{baseStyle:t}=e;return e=>{let{theme:n,css:s,__css:l,sx:u,...c}=e,[d]=function(e,...t){let n=Object.getOwnPropertyDescriptors(e),r=Object.keys(n),i=e=>{let t={};for(let r=0;r<e.length;r++){let i=e[r];n[i]&&(Object.defineProperty(t,i,n[i]),delete n[i])}return t};return t.map(e=>i(Array.isArray(e)?e:r.filter(e))).concat(i(r))}(c,r.ZR),f=function(e,...t){if(null==e)throw TypeError("Cannot convert undefined or null to object");let n={...e};for(let e of t)if(null!=e)for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(t in n&&delete n[t],n[t]=e[t]);return n}({},l,(0,o.P)(t,e),(0,a.o)(d),u),h=(0,i.i)(f)(e.theme);return s?[h,s]:h}};function O(e,t){let{baseStyle:n,...r}=null!=t?t:{};r.shouldForwardProp||(r.shouldForwardProp=S);let i=C({baseStyle:n}),o=_(e,r)(i);return(0,f.forwardRef)(function(e,t){let{children:n,...r}=e,{colorMode:i,forced:a}=(0,E.If)();return(0,f.createElement)(o,{ref:t,"data-theme":a?i:void 0,...r},n)})}let T=function(){let e=new Map;return new Proxy(O,{apply:(e,t,n)=>O(...n),get:(t,n)=>(e.has(n)||e.set(n,O(n)),e.get(n))})}()},43906:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var r=n(66703);function i(e){return(0,r.forwardRef)(e)}},94181:function(e,t,n){"use strict";n.d(t,{dQ:function(){return a},uP:function(){return o}});var r=n(35518),i=n(16276);function o(){let e=(0,i.If)(),t=(0,r.F)();return{...e,theme:t}}function a(e,t,n){let i=(0,r.F)();return(function(e,t,n){let r=Array.isArray(t)?t:[t],i=Array.isArray(n)?n:[n];return n=>{let o=i.filter(Boolean),a=r.map((t,r)=>{var i,a;return"breakpoints"===e?function(e,t,n){var r,i;if(null==t)return t;let o=t=>{var n,r;return null===(r=e.__breakpoints)||void 0===r?void 0:null===(n=r.asArray)||void 0===n?void 0:n[t]};return null!==(i=null!==(r=o(t))&&void 0!==r?r:o(n))&&void 0!==i?i:n}(n,t,null!==(i=o[r])&&void 0!==i?i:t):function(e,t,n){var r,i;if(null==t)return t;let o=t=>{var n,r;return null===(r=e.__cssMap)||void 0===r?void 0:null===(n=r[t])||void 0===n?void 0:n.value};return null!==(i=null!==(r=o(t))&&void 0!==r?r:o(n))&&void 0!==i?i:n}(n,"".concat(e,".").concat(t),null!==(a=o[r])&&void 0!==a?a:t)});return Array.isArray(t)?a:a[0]}})(e,t,n)(i)}},35364:function(e,t,n){"use strict";n.d(t,{j:function(){return m},m:function(){return p}});var r=n(93031),i=n(96549),o=n(69072),a=n(58450),s=n(85680),l=n(33164),u=n(40810),c=n(66703),d=n(44307),f=n(94181);function h(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{styleConfig:h,...p}=n,{theme:m,colorMode:g}=(0,f.uP)(),v=e?(0,s.W)(m,"components.".concat(e)):void 0,y=h||v,b=a({theme:m,colorMode:g},null!==(t=null==y?void 0:y.defaultProps)&&void 0!==t?t:{},(0,l.o)((0,u.C)(p,["children"])),(e,t)=>e?void 0:t),x=(0,c.useRef)({});if(y){let e=(e=>{let{variant:t,size:n,theme:s}=e,l=function(e){let t=e.__breakpoints;return function(e,n,s,l){var u;if(!t)return;let c={},d=(u=t.toArrayValue,Array.isArray(s)?s:(0,r.Kn)(s)?u(s):null!=s?[s]:void 0);if(!d)return c;let f=d.length,h=1===f,p=!!e.parts;for(let r=0;r<f;r++){let s=t.details[r],u=t.details[function(e,t){for(let n=t+1;n<e.length;n++)if(null!=e[n])return n;return -1}(d,r)],f=(0,i.Y)(s.minW,u?._minW),m=(0,o.P)(e[n]?.[d[r]],l);if(m){if(p){e.parts?.forEach(e=>{a(c,{[e]:h?m[e]:{[f]:m[e]}})});continue}if(!p){h?a(c,m):c[f]=m;continue}c[f]=m}}return c}}(s);return a({},(0,o.P)(y.baseStyle??{},e),l(y,"sizes",n,e),l(y,"variants",t,e))})(b);d(x.current,e)||(x.current=e)}return x.current}function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h(e,t)}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h(e,t)}},35518:function(e,t,n){"use strict";n.d(t,{F:function(){return o}});var r=n(9116),i=n(66703);function o(){let e=(0,i.useContext)(r.T);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}},95869:function(e,t,n){"use strict";n.d(t,{x:function(){return s}});var r=n(20130),i=n(90010),o=n(43906),a=n(49110);let s=(0,o.G)((e,t)=>{var n;let{overflow:o,overflowX:s,className:l,...u}=e;return(0,r.jsx)(a.m.div,{ref:t,className:(0,i.cx)("chakra-table__container",l),...u,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:null!==(n=null!=o?o:s)&&void 0!==n?n:"auto",overflowY:"hidden",maxWidth:"100%"}})})},65610:function(e,t,n){"use strict";n.d(t,{i:function(){return f},p:function(){return d}});var r=n(20130),i=n(66861),o=n(9396),a=n(90010),s=n(43906),l=n(35364),u=n(49110);let[c,d]=(0,o.k)({name:"TableStylesContext",errorMessage:"useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Table />\" "}),f=(0,s.G)((e,t)=>{let n=(0,l.j)("Table",e),{className:o,layout:s,...d}=(0,i.L)(e);return(0,r.jsx)(c,{value:n,children:(0,r.jsx)(u.m.table,{ref:t,__css:{tableLayout:s,...n.table},className:(0,a.cx)("chakra-table",o),...d})})});f.displayName="Table"},68100:function(e,t,n){"use strict";n.d(t,{p:function(){return s}});var r=n(20130),i=n(65610),o=n(43906),a=n(49110);let s=(0,o.G)((e,t)=>{let n=(0,i.p)();return(0,r.jsx)(a.m.tbody,{...e,ref:t,__css:n.tbody})})},29313:function(e,t,n){"use strict";n.d(t,{Td:function(){return s}});var r=n(20130),i=n(65610),o=n(43906),a=n(49110);let s=(0,o.G)((e,t)=>{let{isNumeric:n,...o}=e,s=(0,i.p)();return(0,r.jsx)(a.m.td,{...o,ref:t,__css:s.td,"data-is-numeric":n})})},46321:function(e,t,n){"use strict";n.d(t,{Th:function(){return s}});var r=n(20130),i=n(65610),o=n(43906),a=n(49110);let s=(0,o.G)((e,t)=>{let{isNumeric:n,...o}=e,s=(0,i.p)();return(0,r.jsx)(a.m.th,{...o,ref:t,__css:s.th,"data-is-numeric":n})})},30874:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(20130),i=n(65610),o=n(43906),a=n(49110);let s=(0,o.G)((e,t)=>{let n=(0,i.p)();return(0,r.jsx)(a.m.thead,{...e,ref:t,__css:n.thead})})},97020:function(e,t,n){"use strict";n.d(t,{Tr:function(){return s}});var r=n(20130),i=n(65610),o=n(43906),a=n(49110);let s=(0,o.G)((e,t)=>{let n=(0,i.p)();return(0,r.jsx)(a.m.tr,{...e,ref:t,__css:n.tr})})},17200:function(e,t,n){"use strict";n.d(t,{t:function(){return c}});var r=n(20130),i=n(71034),o=n(90010),a=n(69711),s=n(4751),l=n(43906),u=n(49110);let c=(0,l.G)(function(e,t){let n=(0,s.hp)({...e,ref:t}),l=(0,a.s)(),c=(0,i.k0)({display:"flex",...l.tablist});return(0,r.jsx)(u.m.div,{...n,className:(0,o.cx)("chakra-tabs__tablist",e.className),__css:c})});c.displayName="TabList"},76569:function(e,t,n){"use strict";n.d(t,{x:function(){return u}});var r=n(20130),i=n(90010),o=n(69711),a=n(4751),s=n(43906),l=n(49110);let u=(0,s.G)(function(e,t){let n=(0,a.WE)({...e,ref:t}),s=(0,o.s)();return(0,r.jsx)(l.m.div,{outline:"0",...n,className:(0,i.cx)("chakra-tabs__tab-panel",e.className),__css:s.tabpanel})});u.displayName="TabPanel"},17658:function(e,t,n){"use strict";n.d(t,{n:function(){return u}});var r=n(20130),i=n(90010),o=n(69711),a=n(4751),s=n(43906),l=n(49110);let u=(0,s.G)(function(e,t){let n=(0,a.bt)(e),s=(0,o.s)();return(0,r.jsx)(l.m.div,{...n,width:"100%",ref:t,className:(0,i.cx)("chakra-tabs__tab-panels",e.className),__css:s.tabpanels})});u.displayName="TabPanels"},94136:function(e,t,n){"use strict";n.d(t,{O:function(){return c}});var r=n(20130),i=n(71034),o=n(90010),a=n(69711),s=n(4751),l=n(43906),u=n(49110);let c=(0,l.G)(function(e,t){let n=(0,a.s)(),l=(0,s.xD)({...e,ref:t}),c=(0,i.k0)({outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...n.tab});return(0,r.jsx)(u.m.button,{...l,className:(0,o.cx)("chakra-tabs__tab",e.className),__css:c})});c.displayName="Tab"},69711:function(e,t,n){"use strict";n.d(t,{m:function(){return p},s:function(){return h}});var r=n(20130),i=n(66861),o=n(9396),a=n(90010),s=n(66703),l=n(4751),u=n(43906),c=n(35364),d=n(49110);let[f,h]=(0,o.k)({name:"TabsStylesContext",errorMessage:"useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Tabs />\" "}),p=(0,u.G)(function(e,t){let n=(0,c.j)("Tabs",e),{children:o,className:u,...h}=(0,i.L)(e),{htmlProps:p,descendants:m,...g}=(0,l.YE)(h),v=(0,s.useMemo)(()=>g,[g]),{isFitted:y,...b}=p,x={position:"relative",...n.root};return(0,r.jsx)(l.mE,{value:m,children:(0,r.jsx)(l.X,{value:v,children:(0,r.jsx)(f,{value:n,children:(0,r.jsx)(d.m.div,{className:(0,a.cx)("chakra-tabs",u),ref:t,...b,__css:x,children:o})})})})});p.displayName="Tabs"},4751:function(e,t,n){"use strict";n.d(t,{mE:function(){return f},X:function(){return v},xD:function(){return x},hp:function(){return b},WE:function(){return E},bt:function(){return S},YE:function(){return g}});var r=n(66703),i=n(55229),o=n(6461),a=n(9396),s=n(11915),l=n(84535),u=n(27425),c=n(39577),d=n(74269);let[f,h,p,m]=(0,c.n)();function g(e){var t;let{defaultIndex:n,onChange:o,index:a,isManual:s,isLazy:l,lazyBehavior:u="unmount",orientation:c="horizontal",direction:d="ltr",...f}=e,[h,m]=(0,r.useState)(null!=n?n:0),[g,v]=function(e){let{value:t,defaultValue:n,onChange:o,shouldUpdate:a=(e,t)=>e!==t}=e,s=(0,i.W)(o),l=(0,i.W)(a),[u,c]=(0,r.useState)(n),d=void 0!==t,f=d?t:u,h=(0,i.W)(e=>{let t="function"==typeof e?e(f):e;l(f,t)&&(d||c(t),s(t))},[d,s,f,l]);return[f,h]}({defaultValue:null!=n?n:0,value:a,onChange:o});(0,r.useEffect)(()=>{null!=a&&m(a)},[a]);let y=p(),b=(0,r.useId)(),x=null!==(t=e.id)&&void 0!==t?t:b;return{id:"tabs-".concat(x),selectedIndex:g,focusedIndex:h,setSelectedIndex:v,setFocusedIndex:m,isManual:s,isLazy:l,lazyBehavior:u,orientation:c,descendants:y,direction:d,htmlProps:f}}let[v,y]=(0,a.k)({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within <Tabs />"});function b(e){let{focusedIndex:t,orientation:n,direction:i}=y(),o=h(),a=(0,r.useCallback)(e=>{let r=()=>{var e;let n=o.nextEnabled(t);n&&(null===(e=n.node)||void 0===e||e.focus())},a=()=>{var e;let n=o.prevEnabled(t);n&&(null===(e=n.node)||void 0===e||e.focus())},s="horizontal"===n,l="vertical"===n,u={["ltr"===i?"ArrowLeft":"ArrowRight"]:()=>s&&a(),["ltr"===i?"ArrowRight":"ArrowLeft"]:()=>s&&r(),ArrowDown:()=>l&&r(),ArrowUp:()=>l&&a(),Home:()=>{var e;let t=o.firstEnabled();t&&(null===(e=t.node)||void 0===e||e.focus())},End:()=>{var e;let t=o.lastEnabled();t&&(null===(e=t.node)||void 0===e||e.focus())}}[e.key];u&&(e.preventDefault(),u(e))},[o,t,n,i]);return{...e,role:"tablist","aria-orientation":n,onKeyDown:(0,s.v)(e.onKeyDown,a)}}function x(e){let{isDisabled:t=!1,isFocusable:n=!1,...r}=e,{setSelectedIndex:i,isManual:a,id:l,setFocusedIndex:u,selectedIndex:c}=y(),{index:f,register:h}=m({disabled:t&&!n}),p=f===c;return{...(0,d.h)({...r,ref:(0,o.lq)(h,e.ref),isDisabled:t,isFocusable:n,onClick:(0,s.v)(e.onClick,()=>{i(f)})}),id:_(l,f),role:"tab",tabIndex:p?0:-1,type:"button","aria-selected":p,"aria-controls":C(l,f),onFocus:t?void 0:(0,s.v)(e.onFocus,()=>{u(f);let e=t&&n;a||e||i(f)})}}let[w,k]=(0,a.k)({});function S(e){let{id:t,selectedIndex:n}=y(),i=(0,l.W)(e.children).map((e,i)=>{var o;return(0,r.createElement)(w,{key:null!==(o=e.key)&&void 0!==o?o:i,value:{isSelected:i===n,id:C(t,i),tabId:_(t,i),selectedIndex:n}},e)});return{...e,children:i}}function E(e){let{children:t,...n}=e,{isLazy:i,lazyBehavior:o}=y(),{isSelected:a,id:s,tabId:l}=k(),c=(0,r.useRef)(!1);a&&(c.current=!0);let d=(0,u.k)({wasSelected:c.current,isSelected:a,enabled:i,mode:o});return{tabIndex:0,...n,children:d?t:null,role:"tabpanel","aria-labelledby":l,hidden:!a,id:s}}function _(e,t){return"".concat(e,"--tab-").concat(t)}function C(e,t){return"".concat(e,"--tabpanel-").concat(t)}},43400:function(e,t,n){"use strict";n.d(t,{AD:function(){return p},SD:function(){return v},Sn:function(){return h},Vp:function(){return f},bq:function(){return m}});var r=n(20130),i=n(66861),o=n(9396),a=n(5845),s=n(43906),l=n(35364),u=n(49110);let[c,d]=(0,o.k)({name:"TagStylesContext",errorMessage:"useTagStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Tag />\" "}),f=(0,s.G)((e,t)=>{let n=(0,l.j)("Tag",e),o=(0,i.L)(e),a={display:"inline-flex",verticalAlign:"top",alignItems:"center",maxWidth:"100%",...n.container};return(0,r.jsx)(c,{value:n,children:(0,r.jsx)(u.m.span,{ref:t,...o,__css:a})})});f.displayName="Tag";let h=(0,s.G)((e,t)=>{let n=d();return(0,r.jsx)(u.m.span,{ref:t,noOfLines:1,...e,__css:n.label})});h.displayName="TagLabel";let p=(0,s.G)((e,t)=>(0,r.jsx)(a.J,{ref:t,verticalAlign:"top",marginEnd:"0.5rem",...e}));p.displayName="TagLeftIcon";let m=(0,s.G)((e,t)=>(0,r.jsx)(a.J,{ref:t,verticalAlign:"top",marginStart:"0.5rem",...e}));m.displayName="TagRightIcon";let g=e=>(0,r.jsx)(a.J,{verticalAlign:"inherit",viewBox:"0 0 512 512",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})});g.displayName="TagCloseIcon";let v=(0,s.G)((e,t)=>{let{isDisabled:n,children:i,...o}=e,a={display:"flex",alignItems:"center",justifyContent:"center",outline:"0",...d().closeButton};return(0,r.jsx)(u.m.button,{ref:t,"aria-label":"close",...o,type:"button",disabled:n,__css:a,children:i||(0,r.jsx)(g,{})})});v.displayName="TagCloseButton"},34367:function(e,t,n){"use strict";n.d(t,{g:function(){return f}});var r=n(20130),i=n(66861),o=n(40810),a=n(90010),s=n(31172),l=n(43906),u=n(35364),c=n(49110);let d=["h","minH","height","minHeight"],f=(0,l.G)((e,t)=>{let n=(0,u.m)("Textarea",e),{className:l,rows:f,...h}=(0,i.L)(e),p=(0,s.Y)(h),m=f?(0,o.C)(n,d):n;return(0,r.jsx)(c.m.textarea,{ref:t,rows:f,...p,className:(0,a.cx)("chakra-textarea",l),__css:m})});f.displayName="Textarea"},78850:function(e,t,n){"use strict";n.d(t,{C:function(){return p}});var r=n(20130),i=n(18422),o=n(49956),a=n(90010),s=n(50393),l=n(43906),u=n(49110);let c=(0,l.G)(function(e,t){let n=(0,s.uL)(),{status:i}=(0,s.oX)();return(0,r.jsx)(u.m.div,{ref:t,"data-status":i,...e,className:(0,a.cx)("chakra-alert__title",e.className),__css:n.title})});c.displayName="AlertTitle";var d=n(76902),f=n(10994);let h=e=>{let{status:t,variant:n="solid",id:a,title:s,isClosable:l,onClose:h,description:p,colorScheme:m,icon:g}=e,v=a?{root:"toast-".concat(a),title:"toast-".concat(a,"-title"),description:"toast-".concat(a,"-description")}:void 0;return(0,r.jsxs)(i.b,{addRole:!1,status:t,variant:n,id:null==v?void 0:v.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:m,children:[(0,r.jsx)(o.z,{children:g}),(0,r.jsxs)(u.m.div,{flex:"1",maxWidth:"100%",children:[s&&(0,r.jsx)(c,{id:null==v?void 0:v.title,children:s}),p&&(0,r.jsx)(d.X,{id:null==v?void 0:v.description,display:"block",children:p})]}),l&&(0,r.jsx)(f.P,{size:"sm",onClick:h,position:"absolute",insetEnd:1,top:1})]})};function p(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{render:t,toastComponent:n=h}=e;return i=>"function"==typeof t?t({...i,...e}):(0,r.jsx)(n,{...i,...e})}},76694:function(e,t,n){"use strict";n.d(t,{Qi:function(){return y},VW:function(){return x},OX:function(){return b}});var r=n(20130),i=n(9396),o=n(40880),a=n(66703),s=n(95318),l=n(55229),u=n(69072),c=n(86231),d=n(42349),f=n(97038),h=n(49110);let p={initial:e=>{let{position:t}=e,n=["top","bottom"].includes(t)?"y":"x",r=["top-right","bottom-right"].includes(t)?1:-1;return"bottom"===t&&(r=1),{opacity:0,[n]:24*r}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},m=(0,a.memo)(e=>{let{id:t,message:n,onCloseComplete:i,onRequestRemove:o,requestClose:m=!1,position:g="bottom",duration:v=5e3,containerStyle:y,motionVariants:b=p,toastSpacing:x="0.5rem"}=e,[w,k]=(0,a.useState)(v),S=(0,c.hO)();(0,s.r)(()=>{S||null==i||i()},[S]),(0,s.r)(()=>{k(v)},[v]);let E=()=>{S&&o()};(0,a.useEffect)(()=>{S&&m&&o()},[S,m,o]),function(e,t){let n=(0,l.W)(e);(0,a.useEffect)(()=>{if(null==t)return;let e=null;return e=window.setTimeout(()=>{n()},t),()=>{e&&window.clearTimeout(e)}},[t,n])}(E,w);let _=(0,a.useMemo)(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:x,...y}),[y,x]),C=(0,a.useMemo)(()=>(0,f.sv)(g),[g]);return(0,r.jsx)(d.E.div,{layout:!0,className:"chakra-toast",variants:b,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>k(null),onHoverEnd:()=>k(v),custom:{position:g},style:C,children:(0,r.jsx)(h.m.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:_,children:(0,u.P)(n,{id:t,onClose:E})})})});m.displayName="ToastComponent";var g=n(43317),v=n(72669);let[y,b]=(0,i.k)({name:"ToastOptionsContext",strict:!1}),x=e=>{let t=(0,a.useSyncExternalStore)(g.f.subscribe,g.f.getState,g.f.getState),{motionVariants:n,component:i=m,portalProps:s,animatePresenceProps:l}=e,u=Object.keys(t).map(e=>{let a=t[e];return(0,r.jsx)("div",{role:"region","aria-live":"polite","aria-label":"Notifications-".concat(e),id:"chakra-toast-manager-".concat(e),style:(0,f.IW)(e),children:(0,r.jsx)(o.M,{...l,initial:!1,children:a.map(e=>(0,r.jsx)(i,{motionVariants:n,...e},e.id))})},e)});return(0,r.jsx)(v.h,{...s,children:u})}},43317:function(e,t,n){"use strict";n.d(t,{f:function(){return o}});var r=n(78850),i=n(97038);let o=function(e){let t=e,n=new Set,s=e=>{t=e(t),n.forEach(e=>e())};return{getState:()=>t,subscribe:t=>(n.add(t),()=>{s(()=>e),n.delete(t)}),removeToast:(e,t)=>{s(n=>({...n,[t]:n[t].filter(t=>t.id!=e)}))},notify:(e,t)=>{let n=function(e){var t,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a+=1;let i=null!==(t=r.id)&&void 0!==t?t:a,s=null!==(n=r.position)&&void 0!==n?n:"bottom";return{id:i,message:e,position:s,duration:r.duration,onCloseComplete:r.onCloseComplete,onRequestRemove:()=>o.removeToast(String(i),s),status:r.status,requestClose:!1,containerStyle:r.containerStyle}}(e,t),{position:r,id:i}=n;return s(e=>{var t,i;let o=r.includes("top")?[n,...null!==(t=e[r])&&void 0!==t?t:[]]:[...null!==(i=e[r])&&void 0!==i?i:[],n];return{...e,[r]:o}}),i},update:(e,t)=>{e&&s(n=>{let o={...n},{position:a,index:s}=(0,i.Dn)(o,e);return a&&-1!==s&&(o[a][s]={...o[a][s],...t,message:(0,r.C)(t)}),o})},closeAll:function(){let{positions:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(t=>(null!=e?e:["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((e,n)=>(e[n]=t[n].map(e=>({...e,requestClose:!0})),e),{...t}))},close:e=>{s(t=>{let n=(0,i.ym)(t,e);return n?{...t,[n]:t[n].map(t=>t.id==e?{...t,requestClose:!0}:t)}:t})},isActive:e=>!!(0,i.Dn)(o.getState(),e).position}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]}),a=0},97038:function(e,t,n){"use strict";n.d(t,{Dn:function(){return i},IW:function(){return s},sv:function(){return a},ym:function(){return o}});let r=(e,t)=>e.find(e=>e.id===t);function i(e,t){let n=o(e,t),r=n?e[n].findIndex(e=>e.id===t):-1;return{position:n,index:r}}function o(e,t){for(let[n,i]of Object.entries(e))if(r(i,t))return n}function a(e){let t=e.includes("right"),n=e.includes("left"),r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function s(e){let t=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,n=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,r=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",i=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:"top"===e||"bottom"===e?"0 auto":void 0,top:t,bottom:n,right:r,left:i}}},55261:function(e,t,n){"use strict";n.d(t,{p:function(){return u}});var r=n(66703),i=n(69072),o=n(78850),a=n(43317),s=n(76694),l=n(94181);function u(e){let{theme:t}=(0,l.uP)(),n=(0,s.OX)();return(0,r.useMemo)(()=>(function(e,t){let n=n=>{var r;return{...t,...n,position:function(e,t){var n;let r=null!=e?e:"bottom",i={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[r];return null!==(n=null==i?void 0:i[t])&&void 0!==n?n:r}(null!==(r=null==n?void 0:n.position)&&void 0!==r?r:null==t?void 0:t.position,e)}},r=e=>{let t=n(e),r=(0,o.C)(t);return a.f.notify(r,t)};return r.update=(e,t)=>{a.f.update(e,n(t))},r.promise=(e,t)=>{let n=r({...t.loading,status:"loading",duration:null});e.then(e=>r.update(n,{status:"success",duration:5e3,...(0,i.P)(t.success,e)})).catch(e=>r.update(n,{status:"error",duration:5e3,...(0,i.P)(t.error,e)}))},r.closeAll=a.f.closeAll,r.close=a.f.close,r.isActive=a.f.isActive,r})(t.direction,{...n,...e}),[e,t.direction,n])}},81145:function(e,t,n){"use strict";n.d(t,{u:function(){return T}});var r=n(20130),i=n(66861),o=n(40810),a=n(47301),s=n(42349),l=n(40880),u=n(66703),c=n(6010);let d={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}};var f=n(85071),h=n(37584),p=n(6461),m=n(19249),g=n(11915),v=n(48961),y=n(74833);let b=e=>{var t;return(null===(t=e.current)||void 0===t?void 0:t.ownerDocument)||document},x=e=>{var t,n;return(null===(n=e.current)||void 0===n?void 0:null===(t=n.ownerDocument)||void 0===t?void 0:t.defaultView)||window},w="chakra-ui:close-tooltip";var k=n(35518),S=n(72669),E=n(49110),_=n(43906),C=n(35364);let O=(0,E.m)(s.E.div),T=(0,_.G)((e,t)=>{var n,s;let _;let T=(0,C.m)("Tooltip",e),A=(0,i.L)(e),P=(0,k.F)(),{children:I,label:R,shouldWrapChildren:j,"aria-label":M,hasArrow:N,bg:D,portalProps:L,background:z,backgroundColor:F,bgColor:B,motionProps:$,animatePresenceProps:V,...U}=A,W=null!==(s=null!==(n=null!=z?z:F)&&void 0!==n?n:D)&&void 0!==s?s:B;if(W){T.bg=W;let e=P.__cssMap?.[`colors.${W}`]?.varRef??W;T[y.Dq.arrowBg.var]=e}let q=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{openDelay:t=0,closeDelay:n=0,closeOnClick:r=!0,closeOnMouseDown:i,closeOnScroll:o,closeOnPointerDown:a=i,closeOnEsc:s=!0,onOpen:l,onClose:c,placement:d,id:k,isOpen:S,defaultIsOpen:E,arrowSize:_=10,arrowShadowColor:C,arrowPadding:O,modifiers:T,isDisabled:A,gutter:P,offset:I,direction:R,...j}=e,{isOpen:M,onOpen:N,onClose:D}=(0,f.q)({isOpen:S,defaultIsOpen:E,onOpen:l,onClose:c}),{referenceRef:L,getPopperProps:z,getArrowInnerProps:F,getArrowProps:B}=(0,v.D)({enabled:M,placement:d,arrowPadding:O,modifiers:T,gutter:P,offset:I,direction:R}),$=(0,u.useId)(),V="tooltip-".concat(null!=k?k:$),U=(0,u.useRef)(null),W=(0,u.useRef)(void 0),q=(0,u.useCallback)(()=>{W.current&&(clearTimeout(W.current),W.current=void 0)},[]),H=(0,u.useRef)(void 0),Z=(0,u.useCallback)(()=>{H.current&&(clearTimeout(H.current),H.current=void 0)},[]),G=(0,u.useCallback)(()=>{Z(),D()},[D,Z]),K=((0,u.useEffect)(()=>{let e=b(U);return e.addEventListener(w,G),()=>e.removeEventListener(w,G)},[G,U]),()=>{let e=b(U),t=x(U);e.dispatchEvent(new t.CustomEvent(w))}),Y=(0,u.useCallback)(()=>{if(!A&&!W.current){M&&K();let e=x(U);W.current=e.setTimeout(N,t)}},[K,A,M,N,t]),X=(0,u.useCallback)(()=>{q();let e=x(U);H.current=e.setTimeout(G,n)},[n,G,q]),J=(0,u.useCallback)(()=>{M&&r&&X()},[r,X,M]),Q=(0,u.useCallback)(()=>{M&&a&&X()},[a,X,M]),ee=(0,u.useCallback)(e=>{M&&"Escape"===e.key&&X()},[M,X]);(0,h.O)(()=>b(U),"keydown",s?ee:void 0),(0,h.O)(()=>{if(!o)return null;let e=U.current;if(!e)return null;let t=function e(t){return["html","body","#document"].includes(t.localName)?t.ownerDocument.body:(0,m.Re)(t)&&function(e){let{overflow:t,overflowX:n,overflowY:r}=(e.ownerDocument.defaultView||window).getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}(t)?t:e("html"===t.localName?t:t.assignedSlot||t.parentElement||t.ownerDocument.documentElement)}(e);return"body"===t.localName?x(U):t},"scroll",()=>{M&&o&&G()},{passive:!0,capture:!0}),(0,u.useEffect)(()=>{A&&(q(),M&&D())},[A,M,D,q]),(0,u.useEffect)(()=>()=>{q(),Z()},[q,Z]),(0,h.O)(()=>U.current,"pointerleave",X);let et=(0,u.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:(0,p.lq)(U,t,L),onPointerEnter:(0,g.v)(e.onPointerEnter,e=>{"touch"!==e.pointerType&&Y()}),onClick:(0,g.v)(e.onClick,J),onPointerDown:(0,g.v)(e.onPointerDown,Q),onFocus:(0,g.v)(e.onFocus,Y),onBlur:(0,g.v)(e.onBlur,X),"aria-describedby":M?V:void 0}},[Y,X,Q,M,V,J,L]),en=(0,u.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return z({...e,style:{...e.style,[y.Dq.arrowSize.var]:_?"".concat(_,"px"):void 0,[y.Dq.arrowShadowColor.var]:C}},t)},[z,_,C]);return{isOpen:M,show:Y,hide:X,getTriggerProps:et,getTooltipProps:(0,u.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n={...e.style,position:"relative",transformOrigin:y.Dq.transformOrigin.varRef};return{ref:t,...j,...e,id:V,role:"tooltip",style:n}},[j,V]),getTooltipPositionerProps:en,getArrowProps:B,getArrowInnerProps:F}}({...U,direction:P.direction});if(!(0,u.isValidElement)(I)||j)_=(0,r.jsx)(E.m.span,{display:"inline-block",tabIndex:0,...q.getTriggerProps(),children:I});else{let e=u.Children.only(I);_=(0,u.cloneElement)(e,q.getTriggerProps(e.props,(0,c.e)(e)))}let H=!!M,Z=q.getTooltipProps({},t),G=H?(0,o.C)(Z,["role","id"]):Z,K=(0,a.e)(Z,["role","id"]);return R?(0,r.jsxs)(r.Fragment,{children:[_,(0,r.jsx)(l.M,{...V,children:q.isOpen&&(0,r.jsx)(S.h,{...L,children:(0,r.jsx)(E.m.div,{...q.getTooltipPositionerProps(),__css:{zIndex:T.zIndex,pointerEvents:"none"},children:(0,r.jsxs)(O,{variants:d,initial:"exit",animate:"enter",exit:"exit",...$,...G,__css:T,children:[R,H&&(0,r.jsx)(E.m.span,{srOnly:!0,...K,children:M}),N&&(0,r.jsx)(E.m.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:(0,r.jsx)(E.m.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:T.bg}})})]})})})})]}):(0,r.jsx)(r.Fragment,{children:I})});T.displayName="Tooltip"},35278:function(e,t,n){"use strict";n.d(t,{Sh:function(){return r},p$:function(){return i}});let r={enter:{duration:.2,ease:[0,0,.2,1]},exit:{duration:.1,ease:[.4,0,1,1]}},i={enter:(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.enter}),exit:(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.exit})}},41450:function(e,t,n){"use strict";n.d(t,{X:function(){return u}});var r=n(20130),i=n(66861),o=n(90010),a=n(43906),s=n(35364),l=n(49110);let u=(0,a.G)(function(e,t){let n=(0,s.m)("Heading",e),{className:a,...u}=(0,i.L)(e);return(0,r.jsx)(l.m.h2,{ref:t,className:(0,o.cx)("chakra-heading",e.className),...u,__css:n})});u.displayName="Heading"},55169:function(e,t,n){"use strict";n.d(t,{x:function(){return c}});var r=n(20130),i=n(66861),o=n(33164),a=n(90010),s=n(43906),l=n(35364),u=n(49110);let c=(0,s.G)(function(e,t){let n=(0,l.m)("Text",e),{className:s,align:c,decoration:d,casing:f,...h}=(0,i.L)(e),p=(0,o.o)({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return(0,r.jsx)(u.m.p,{ref:t,className:(0,a.cx)("chakra-text",e.className),...p,...h,__css:n})});c.displayName="Text"},28770:function(e,t,n){"use strict";n.d(t,{N:function(){return r}});let r={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"}},71381:function(e,t,n){"use strict";n.d(t,{E:function(){return l},U:function(){return u}});var r=n(20130),i=n(90010),o=n(66703),a=n(43906),s=n(49110);let l=(0,a.G)(function(e,t){let{spacing:n="0.5rem",spacingX:a,spacingY:l,children:c,justify:d,direction:f,align:h,className:p,shouldWrapChildren:m,...g}=e,v=(0,o.useMemo)(()=>m?o.Children.map(c,(e,t)=>(0,r.jsx)(u,{children:e},t)):c,[c,m]);return(0,r.jsx)(s.m.div,{ref:t,className:(0,i.cx)("chakra-wrap",p),...g,children:(0,r.jsx)(s.m.ul,{className:"chakra-wrap__list",__css:{display:"flex",flexWrap:"wrap",justifyContent:d,alignItems:h,flexDirection:f,listStyleType:"none",gap:n,columnGap:a,rowGap:l,padding:"0"},children:v})})});l.displayName="Wrap";let u=(0,a.G)(function(e,t){let{className:n,...o}=e;return(0,r.jsx)(s.m.li,{ref:t,__css:{display:"flex",alignItems:"flex-start"},className:(0,i.cx)("chakra-wrap__listitem",n),...o})});u.displayName="WrapItem"},92475:function(e,t,n){"use strict";function r(e){return e}function i(e){return{definePartsStyle:e=>e,defineMultiStyleConfig:t=>({parts:e,...t})}}n.d(t,{D:function(){return i},k0:function(){return r}})},23880:function(e,t,n){"use strict";n.d(t,{y:function(){return d}});var r=n(93031);function i(e){return(0,r.Kn)(e)&&e.reference?e.reference:String(e)}let o=(e,...t)=>t.map(i).join(` ${e} `).replace(/calc/g,""),a=(...e)=>`calc(${o("+",...e)})`,s=(...e)=>`calc(${o("-",...e)})`,l=(...e)=>`calc(${o("*",...e)})`,u=(...e)=>`calc(${o("/",...e)})`,c=e=>{let t=i(e);return null==t||Number.isNaN(parseFloat(t))?l(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},d=Object.assign(e=>({add:(...t)=>d(a(e,...t)),subtract:(...t)=>d(s(e,...t)),multiply:(...t)=>d(l(e,...t)),divide:(...t)=>d(u(e,...t)),negate:()=>d(c(e)),toString:()=>e.toString()}),{add:a,subtract:s,multiply:l,divide:u,negate:c})},41293:function(e,t,n){"use strict";function r(e,t,n){let r=function(e,t=""){var n;return((n=function(e,t="-"){return e.replace(/\s+/g,t)}(`--${(function(e,t=""){return[t,e].filter(Boolean).join("-")})(e,t)}`.toString())).includes("\\.")?n:Number.isInteger(parseFloat(n.toString()))?n:n.replace(".","\\.")).replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}(e,n);return{variable:r,reference:`var(${r}${t?`, ${t}`:""})`}}function i(e,t){let n={};for(let i of t){if(Array.isArray(i)){let[t,o]=i;n[t]=r(`${e}-${t}`,o);continue}n[i]=r(`${e}-${i}`)}return n}n.d(t,{_6:function(){return i},gJ:function(){return r}})},57898:function(e,t,n){"use strict";n.d(t,{i:function(){return d}});var r=n(69072),i=n(93031),o=n(58450),a=n(57386),s=n(60571);let l=e=>t=>{if(!t.__breakpoints)return e;let{isResponsive:n,toArrayValue:o,media:a}=t.__breakpoints,s={};for(let l in e){let u=(0,r.P)(e[l],t);if(null==u)continue;if(!Array.isArray(u=(0,i.Kn)(u)&&n(u)?o(u):u)){s[l]=u;continue}let c=u.slice(0,a.length).length;for(let e=0;e<c;e+=1){let t=a?.[e];if(!t){s[l]=u[e];continue}s[t]=s[t]||{},null!=u[e]&&(s[t][l]=u[e])}}return s},u=(e,t)=>e.startsWith("--")&&"string"==typeof t&&!/^var\(--.+\)$/.test(t),c=(e,t)=>{if(null==t)return t;let n=t=>e.__cssMap?.[t]?.varRef,r=e=>n(e)??e,[i,o]=function(e){let t=[],n="",r=!1;for(let i=0;i<e.length;i++){let o=e[i];"("===o?(r=!0,n+=o):")"===o?(r=!1,n+=o):","!==o||r?n+=o:(t.push(n),n="")}return(n=n.trim())&&t.push(n),t}(t);return t=n(i)??r(o)??r(t)},d=e=>t=>(function(e){let{configs:t={},pseudos:n={},theme:a}=e,s=(e,d=!1)=>{let f=(0,r.P)(e,a),h=l(f)(a),p={};for(let e in h){let l=h[e],m=(0,r.P)(l,a);e in n&&(e=n[e]),u(e,m)&&(m=c(a,m));let g=t[e];if(!0===g&&(g={property:e}),(0,i.Kn)(m)){p[e]=p[e]??{},p[e]=o({},p[e],s(m,!0));continue}let v=g?.transform?.(m,a,f)??m;v=g?.processResult?s(v,!0):v;let y=(0,r.P)(g?.property,a);if(!d&&g?.static&&(p=o({},p,(0,r.P)(g.static,a))),y&&Array.isArray(y)){for(let e of y)p[e]=v;continue}if(y){"&"===y&&(0,i.Kn)(v)?p=o({},p,v):p[y]=v;continue}if((0,i.Kn)(v)){p=o({},p,v);continue}p[e]=v}return p};return s})({theme:t,pseudos:a.v,configs:s.Ul})(e)},71034:function(e,t,n){"use strict";function r(e){return e}function i(e){return e}function o(e){return{definePartsStyle:e=>e,defineMultiStyleConfig:t=>({parts:e,...t})}}n.d(t,{D:function(){return o},fj:function(){return i},k0:function(){return r}})},57386:function(e,t,n){"use strict";n.d(t,{_:function(){return m},v:function(){return p}});let r=(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,i=(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,o=(e,t)=>`${e}:focus-visible ${t}`,a=(e,t)=>`${e}:focus-within ${t}`,s=(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,l=(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,u=(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,c=(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,d=e=>h(t=>e(t,"&"),"[role=group]","[data-group]",".group"),f=e=>h(t=>e(t,"~ &"),"[data-peer]",".peer"),h=(e,...t)=>t.map(e).join(", "),p={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-focus-within]",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate], &[data-state=indeterminate]",_groupOpen:d((e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`),_groupClosed:d((e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`),_groupHover:d(r),_peerHover:f(r),_groupFocus:d(i),_peerFocus:f(i),_groupFocusVisible:d(o),_peerFocusVisible:f(o),_groupActive:d(s),_peerActive:f(s),_groupDisabled:d(l),_peerDisabled:f(l),_groupInvalid:d(u),_peerInvalid:f(u),_groupChecked:d(c),_peerChecked:f(c),_groupFocusWithin:d(a),_peerFocusWithin:f(a),_peerPlaceholderShown:f((e,t)=>`${e}:placeholder-shown ${t}`),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-fullscreen]",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"},m=Object.keys(p)},60571:function(e,t,n){"use strict";n.d(t,{ZR:function(){return Y},oE:function(){return Z},cC:function(){return G},Ul:function(){return H}});var r=n(58450),i=n(57386),o=n(93031);let a=e=>/!(important)?$/.test(e),s=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e,l=(e,t)=>n=>{let r=String(t),i=a(r),l=s(r),u=e?`${e}.${l}`:l,c=(0,o.Kn)(n.__cssMap)&&u in n.__cssMap?n.__cssMap[u].varRef:t;return c=s(c),i?`${c} !important`:c};function u(e){let{scale:t,transform:n,compose:r}=e;return(e,i)=>{let o=l(t,e)(i),a=n?.(o,i)??o;return r&&(a=r(a,i)),a}}let c=(...e)=>t=>e.reduce((e,t)=>t(e),t);function d(e,t){return n=>{let r={property:n,scale:e};return r.transform=u({scale:e,transform:t}),r}}let f=({rtl:e,ltr:t})=>n=>"rtl"===n.direction?e:t,h=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"],p={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:"var(--chakra-blur) var(--chakra-brightness) var(--chakra-contrast) var(--chakra-grayscale) var(--chakra-hue-rotate) var(--chakra-invert) var(--chakra-saturate) var(--chakra-sepia) var(--chakra-drop-shadow)"},m={backdropFilter:"var(--chakra-backdrop-blur) var(--chakra-backdrop-brightness) var(--chakra-backdrop-contrast) var(--chakra-backdrop-grayscale) var(--chakra-backdrop-hue-rotate) var(--chakra-backdrop-invert) var(--chakra-backdrop-opacity) var(--chakra-backdrop-saturate) var(--chakra-backdrop-sepia)","--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"},g={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},v={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},y=new Set(Object.values(v)),b=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),x=e=>e.trim(),w=e=>"string"==typeof e&&e.includes("(")&&e.includes(")"),k=e=>{let t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},S=e=>t=>`${e}(${t})`,E={filter:e=>"auto"!==e?e:p,backdropFilter:e=>"auto"!==e?e:m,ring:e=>({"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":E.px(e),boxShadow:"var(--chakra-ring-offset-shadow), var(--chakra-ring-shadow), var(--chakra-shadow, 0 0 #0000)"}),bgClip:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e},transform:e=>"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...h].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...h].join(" "):e,vh:e=>"$100vh"===e?"var(--chakra-vh)":e,px(e){if(null==e)return e;let{unitless:t}=k(e);return t||"number"==typeof e?`${e}px`:e},fraction:e=>"number"!=typeof e||e>1?e:`${100*e}%`,float:(e,t)=>"rtl"===t.direction?({left:"right",right:"left"})[e]:e,degree(e){if(/^var\(--.+\)$/.test(e)||null==e)return e;let t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},gradient:(e,t)=>(function(e,t){if(null==e||b.has(e))return e;if(!(w(e)||b.has(e)))return`url('${e}')`;let n=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),r=n?.[1],i=n?.[2];if(!r||!i)return e;let o=r.includes("-gradient")?r:`${r}-gradient`,[a,...s]=i.split(",").map(x).filter(Boolean);if(s?.length===0)return e;let l=a in v?v[a]:a;s.unshift(l);let u=s.map(e=>{if(y.has(e))return e;let n=e.indexOf(" "),[r,i]=-1!==n?[e.substr(0,n),e.substr(n+1)]:[e],o=w(i)?i:i&&i.split(" "),a=`colors.${r}`,s=a in t.__cssMap?t.__cssMap[a].varRef:r;return o?[s,...Array.isArray(o)?o:[o]].join(" "):s});return`${o}(${u.join(", ")})`})(e,t??{}),blur:S("blur"),opacity:S("opacity"),brightness:S("brightness"),contrast:S("contrast"),dropShadow:S("drop-shadow"),grayscale:S("grayscale"),hueRotate:e=>S("hue-rotate")(E.degree(e)),invert:S("invert"),saturate:S("saturate"),sepia:S("sepia"),bgImage:e=>null==e?e:w(e)||b.has(e)?e:`url(${e})`,outline(e){let t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){let{space:t,divide:n}=g[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},_={borderWidths:d("borderWidths"),borderStyles:d("borderStyles"),colors:d("colors"),borders:d("borders"),gradients:d("gradients",E.gradient),radii:d("radii",E.px),space:d("space",c(E.vh,E.px)),spaceT:d("space",c(E.vh,E.px)),degreeT:e=>({property:e,transform:E.degree}),prop:(e,t,n)=>({property:e,scale:t,...t&&{transform:u({scale:t,transform:n})}}),propT:(e,t)=>({property:e,transform:t}),sizes:d("sizes",c(E.vh,E.px)),sizesT:d("sizes",c(E.vh,E.fraction)),shadows:d("shadows"),logical:function(e){let{property:t,scale:n,transform:r}=e;return{scale:n,property:f(t),transform:n?u({scale:n,compose:r}):r}},blur:d("blur",E.blur)},C={background:_.colors("background"),backgroundColor:_.colors("backgroundColor"),backgroundImage:_.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:E.bgClip},bgSize:_.prop("backgroundSize"),bgPosition:_.prop("backgroundPosition"),bg:_.colors("background"),bgColor:_.colors("backgroundColor"),bgPos:_.prop("backgroundPosition"),bgRepeat:_.prop("backgroundRepeat"),bgAttachment:_.prop("backgroundAttachment"),bgGradient:_.gradients("backgroundImage"),bgClip:{transform:E.bgClip}};Object.assign(C,{bgImage:C.backgroundImage,bgImg:C.backgroundImage});let O={border:_.borders("border"),borderWidth:_.borderWidths("borderWidth"),borderStyle:_.borderStyles("borderStyle"),borderColor:_.colors("borderColor"),borderRadius:_.radii("borderRadius"),borderTop:_.borders("borderTop"),borderBlockStart:_.borders("borderBlockStart"),borderTopLeftRadius:_.radii("borderTopLeftRadius"),borderStartStartRadius:_.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:_.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:_.radii("borderTopRightRadius"),borderStartEndRadius:_.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:_.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:_.borders("borderRight"),borderInlineEnd:_.borders("borderInlineEnd"),borderBottom:_.borders("borderBottom"),borderBlockEnd:_.borders("borderBlockEnd"),borderBottomLeftRadius:_.radii("borderBottomLeftRadius"),borderBottomRightRadius:_.radii("borderBottomRightRadius"),borderLeft:_.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:_.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:_.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:_.borders(["borderLeft","borderRight"]),borderInline:_.borders("borderInline"),borderY:_.borders(["borderTop","borderBottom"]),borderBlock:_.borders("borderBlock"),borderTopWidth:_.borderWidths("borderTopWidth"),borderBlockStartWidth:_.borderWidths("borderBlockStartWidth"),borderTopColor:_.colors("borderTopColor"),borderBlockStartColor:_.colors("borderBlockStartColor"),borderTopStyle:_.borderStyles("borderTopStyle"),borderBlockStartStyle:_.borderStyles("borderBlockStartStyle"),borderBottomWidth:_.borderWidths("borderBottomWidth"),borderBlockEndWidth:_.borderWidths("borderBlockEndWidth"),borderBottomColor:_.colors("borderBottomColor"),borderBlockEndColor:_.colors("borderBlockEndColor"),borderBottomStyle:_.borderStyles("borderBottomStyle"),borderBlockEndStyle:_.borderStyles("borderBlockEndStyle"),borderLeftWidth:_.borderWidths("borderLeftWidth"),borderInlineStartWidth:_.borderWidths("borderInlineStartWidth"),borderLeftColor:_.colors("borderLeftColor"),borderInlineStartColor:_.colors("borderInlineStartColor"),borderLeftStyle:_.borderStyles("borderLeftStyle"),borderInlineStartStyle:_.borderStyles("borderInlineStartStyle"),borderRightWidth:_.borderWidths("borderRightWidth"),borderInlineEndWidth:_.borderWidths("borderInlineEndWidth"),borderRightColor:_.colors("borderRightColor"),borderInlineEndColor:_.colors("borderInlineEndColor"),borderRightStyle:_.borderStyles("borderRightStyle"),borderInlineEndStyle:_.borderStyles("borderInlineEndStyle"),borderTopRadius:_.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:_.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:_.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:_.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(O,{rounded:O.borderRadius,roundedTop:O.borderTopRadius,roundedTopLeft:O.borderTopLeftRadius,roundedTopRight:O.borderTopRightRadius,roundedTopStart:O.borderStartStartRadius,roundedTopEnd:O.borderStartEndRadius,roundedBottom:O.borderBottomRadius,roundedBottomLeft:O.borderBottomLeftRadius,roundedBottomRight:O.borderBottomRightRadius,roundedBottomStart:O.borderEndStartRadius,roundedBottomEnd:O.borderEndEndRadius,roundedLeft:O.borderLeftRadius,roundedRight:O.borderRightRadius,roundedStart:O.borderInlineStartRadius,roundedEnd:O.borderInlineEndRadius,borderStart:O.borderInlineStart,borderEnd:O.borderInlineEnd,borderTopStartRadius:O.borderStartStartRadius,borderTopEndRadius:O.borderStartEndRadius,borderBottomStartRadius:O.borderEndStartRadius,borderBottomEndRadius:O.borderEndEndRadius,borderStartRadius:O.borderInlineStartRadius,borderEndRadius:O.borderInlineEndRadius,borderStartWidth:O.borderInlineStartWidth,borderEndWidth:O.borderInlineEndWidth,borderStartColor:O.borderInlineStartColor,borderEndColor:O.borderInlineEndColor,borderStartStyle:O.borderInlineStartStyle,borderEndStyle:O.borderInlineEndStyle});let T={color:_.colors("color"),textColor:_.colors("color"),fill:_.colors("fill"),stroke:_.colors("stroke"),accentColor:_.colors("accentColor"),textFillColor:_.colors("textFillColor")},A={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:E.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:_.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:_.space("gap"),rowGap:_.space("rowGap"),columnGap:_.space("columnGap")};Object.assign(A,{flexDir:A.flexDirection});let P={width:_.sizesT("width"),inlineSize:_.sizesT("inlineSize"),height:_.sizes("height"),blockSize:_.sizes("blockSize"),boxSize:_.sizes(["width","height"]),minWidth:_.sizes("minWidth"),minInlineSize:_.sizes("minInlineSize"),minHeight:_.sizes("minHeight"),minBlockSize:_.sizes("minBlockSize"),maxWidth:_.sizes("maxWidth"),maxInlineSize:_.sizes("maxInlineSize"),maxHeight:_.sizes("maxHeight"),maxBlockSize:_.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{let n=t.__breakpoints?.get(e)?.minW??e;return{[`@media screen and (min-width: ${n})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{let n=t.__breakpoints?.get(e)?._minW??e;return{[`@media screen and (max-width: ${n})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:_.propT("float",E.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(P,{w:P.width,h:P.height,minW:P.minWidth,maxW:P.maxWidth,minH:P.minHeight,maxH:P.maxHeight,overscroll:P.overscrollBehavior,overscrollX:P.overscrollBehaviorX,overscrollY:P.overscrollBehaviorY});let I={filter:{transform:E.filter},blur:_.blur("--chakra-blur"),brightness:_.propT("--chakra-brightness",E.brightness),contrast:_.propT("--chakra-contrast",E.contrast),hueRotate:_.propT("--chakra-hue-rotate",E.hueRotate),invert:_.propT("--chakra-invert",E.invert),saturate:_.propT("--chakra-saturate",E.saturate),dropShadow:_.propT("--chakra-drop-shadow",E.dropShadow),backdropFilter:{transform:E.backdropFilter},backdropBlur:_.blur("--chakra-backdrop-blur"),backdropBrightness:_.propT("--chakra-backdrop-brightness",E.brightness),backdropContrast:_.propT("--chakra-backdrop-contrast",E.contrast),backdropHueRotate:_.propT("--chakra-backdrop-hue-rotate",E.hueRotate),backdropInvert:_.propT("--chakra-backdrop-invert",E.invert),backdropSaturate:_.propT("--chakra-backdrop-saturate",E.saturate)},R={ring:{transform:E.ring},ringColor:_.colors("--chakra-ring-color"),ringOffset:_.prop("--chakra-ring-offset-width"),ringOffsetColor:_.colors("--chakra-ring-offset-color"),ringInset:_.prop("--chakra-ring-inset")},j={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:E.outline},outlineOffset:!0,outlineColor:_.colors("outlineColor")},M={gridGap:_.space("gridGap"),gridColumnGap:_.space("gridColumnGap"),gridRowGap:_.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},N=(e=>{let t=new WeakMap;return(n,r,i,o)=>{if(void 0===n)return e(n,r,i);t.has(n)||t.set(n,new Map);let a=t.get(n);if(a.has(r))return a.get(r);let s=e(n,r,i,o);return a.set(r,s),s}})(function(e,t,n,r){let i="string"==typeof t?t.split("."):[t];for(r=0;r<i.length&&e;r+=1)e=e[i[r]];return void 0===e?n:e}),D={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},L={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},z=(e,t,n)=>{let r={},i=N(e,t,{});for(let e in i)e in n&&null!=n[e]||(r[e]=i[e]);return r},F={position:!0,pos:_.prop("position"),zIndex:_.prop("zIndex","zIndices"),inset:_.spaceT("inset"),insetX:_.spaceT(["left","right"]),insetInline:_.spaceT("insetInline"),insetY:_.spaceT(["top","bottom"]),insetBlock:_.spaceT("insetBlock"),top:_.spaceT("top"),insetBlockStart:_.spaceT("insetBlockStart"),bottom:_.spaceT("bottom"),insetBlockEnd:_.spaceT("insetBlockEnd"),left:_.spaceT("left"),insetInlineStart:_.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:_.spaceT("right"),insetInlineEnd:_.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(F,{insetStart:F.insetInlineStart,insetEnd:F.insetInlineEnd});let B={boxShadow:_.shadows("boxShadow"),mixBlendMode:!0,blendMode:_.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:_.prop("backgroundBlendMode"),opacity:!0};Object.assign(B,{shadow:B.boxShadow});let $={margin:_.spaceT("margin"),marginTop:_.spaceT("marginTop"),marginBlockStart:_.spaceT("marginBlockStart"),marginRight:_.spaceT("marginRight"),marginInlineEnd:_.spaceT("marginInlineEnd"),marginBottom:_.spaceT("marginBottom"),marginBlockEnd:_.spaceT("marginBlockEnd"),marginLeft:_.spaceT("marginLeft"),marginInlineStart:_.spaceT("marginInlineStart"),marginX:_.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:_.spaceT("marginInline"),marginY:_.spaceT(["marginTop","marginBottom"]),marginBlock:_.spaceT("marginBlock"),padding:_.space("padding"),paddingTop:_.space("paddingTop"),paddingBlockStart:_.space("paddingBlockStart"),paddingRight:_.space("paddingRight"),paddingBottom:_.space("paddingBottom"),paddingBlockEnd:_.space("paddingBlockEnd"),paddingLeft:_.space("paddingLeft"),paddingInlineStart:_.space("paddingInlineStart"),paddingInlineEnd:_.space("paddingInlineEnd"),paddingX:_.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:_.space("paddingInline"),paddingY:_.space(["paddingTop","paddingBottom"]),paddingBlock:_.space("paddingBlock")};Object.assign($,{m:$.margin,mt:$.marginTop,mr:$.marginRight,me:$.marginInlineEnd,marginEnd:$.marginInlineEnd,mb:$.marginBottom,ml:$.marginLeft,ms:$.marginInlineStart,marginStart:$.marginInlineStart,mx:$.marginX,my:$.marginY,p:$.padding,pt:$.paddingTop,py:$.paddingY,px:$.paddingX,pb:$.paddingBottom,pl:$.paddingLeft,ps:$.paddingInlineStart,paddingStart:$.paddingInlineStart,pr:$.paddingRight,pe:$.paddingInlineEnd,paddingEnd:$.paddingInlineEnd});let V={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:_.spaceT("scrollMargin"),scrollMarginTop:_.spaceT("scrollMarginTop"),scrollMarginBottom:_.spaceT("scrollMarginBottom"),scrollMarginLeft:_.spaceT("scrollMarginLeft"),scrollMarginRight:_.spaceT("scrollMarginRight"),scrollMarginX:_.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:_.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:_.spaceT("scrollPadding"),scrollPaddingTop:_.spaceT("scrollPaddingTop"),scrollPaddingBottom:_.spaceT("scrollPaddingBottom"),scrollPaddingLeft:_.spaceT("scrollPaddingLeft"),scrollPaddingRight:_.spaceT("scrollPaddingRight"),scrollPaddingX:_.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:_.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},U={fontFamily:_.prop("fontFamily","fonts"),fontSize:_.prop("fontSize","fontSizes",E.px),fontWeight:_.prop("fontWeight","fontWeights"),lineHeight:_.prop("lineHeight","lineHeights"),letterSpacing:_.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(!0===e)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},W={textDecorationColor:_.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:_.shadows("textShadow")},q={clipPath:!0,transform:_.propT("transform",E.transform),transformOrigin:!0,translateX:_.spaceT("--chakra-translate-x"),translateY:_.spaceT("--chakra-translate-y"),skewX:_.degreeT("--chakra-skew-x"),skewY:_.degreeT("--chakra-skew-y"),scaleX:_.prop("--chakra-scale-x"),scaleY:_.prop("--chakra-scale-y"),scale:_.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:_.degreeT("--chakra-rotate")},H=r({},C,O,T,A,P,I,R,j,M,{srOnly:{transform:e=>!0===e?D:"focusable"===e?L:{}},layerStyle:{processResult:!0,transform:(e,t,n)=>z(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>z(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>z(t,e,n)}},F,B,$,V,U,W,q,{listStyleType:!0,listStylePosition:!0,listStylePos:_.prop("listStylePosition"),listStyleImage:!0,listStyleImg:_.prop("listStyleImage")},{transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:_.prop("transitionDuration","transition.duration"),transitionProperty:_.prop("transitionProperty","transition.property"),transitionTimingFunction:_.prop("transitionTimingFunction","transition.easing")}),Z=Object.keys(Object.assign({},$,P,A,M,F)),G=[...Object.keys(H),...i._],K={...H,...i.v},Y=e=>e in K},66861:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(40810);function i(e){return(0,r.C)(e,["styleConfig","size","variant","colorScheme"])}},30171:function(e,t,n){"use strict";function r(e,t={}){let n=!1;function i(t){let n=(["container","root"].includes(t??"")?[e]:[e,t]).filter(Boolean).join("__"),r=`chakra-${n}`;return{className:r,selector:`.${r}`,toString:()=>t}}return{parts:function(...o){for(let e of(!function(){if(!n){n=!0;return}throw Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}(),o))t[e]=i(e);return r(e,t)},toPart:i,extend:function(...n){for(let e of n)e in t||(t[e]=i(e));return r(e,t)},selectors:function(){return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.selector]))},classnames:function(){return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.className]))},get keys(){return Object.keys(t)},__type:{}}}n.d(t,{wE:function(){return iQ},rS:function(){return iJ}});let i=r("accordion").parts("root","container","button","panel","icon"),o=r("alert").parts("title","description","container","icon","spinner"),a=r("avatar").parts("label","badge","container","excessLabel","group"),s=r("breadcrumb").parts("link","item","container","separator");r("button").parts();let l=r("checkbox").parts("control","icon","container","label");r("progress").parts("track","filledTrack","label");let u=r("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),c=r("editable").parts("preview","input","textarea"),d=r("form").parts("container","requiredIndicator","helperText"),f=r("formError").parts("text","icon"),h=r("input").parts("addon","field","element","group"),p=r("list").parts("container","item","icon"),m=r("menu").parts("button","list","item","groupTitle","icon","command","divider"),g=r("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),v=r("numberinput").parts("root","field","stepperGroup","stepper");r("pininput").parts("field");let y=r("popover").parts("content","header","body","footer","popper","arrow","closeButton"),b=r("progress").parts("label","filledTrack","track"),x=r("radio").parts("container","control","label"),w=r("select").parts("field","icon"),k=r("slider").parts("container","track","thumb","filledTrack","mark"),S=r("stat").parts("container","label","helpText","number","icon"),E=r("switch").parts("container","track","thumb","label"),_=r("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),C=r("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),O=r("tag").parts("container","label","closeButton"),T=r("card").parts("container","header","body","footer");r("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");var A=n(71034);let{definePartsStyle:P,defineMultiStyleConfig:I}=(0,A.D)(i.keys),R=(0,A.k0)({borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}}),j=I({baseStyle:P({container:R,button:(0,A.k0)({transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"}),panel:(0,A.k0)({pt:"2",px:"4",pb:"5"}),icon:(0,A.k0)({fontSize:"1.25em"})})});var M=n(41293);function N(e,t,n){return Math.min(Math.max(e,n),t)}class D extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}function L(e){if("string"!=typeof e)throw new D(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=q.test(e)?function(e){let t=F[function(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return(t>>>0)%2341}(e.toLowerCase().trim())];if(!t)throw new D(e);return`#${t}`}(e):e;let n=$.exec(t);if(n){let e=Array.from(n).slice(1);return[...e.slice(0,3).map(e=>parseInt(B(e,2),16)),parseInt(B(e[3]||"f",2),16)/255]}let r=V.exec(t);if(r){let e=Array.from(r).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,16)),parseInt(e[3]||"ff",16)/255]}let i=U.exec(t);if(i){let e=Array.from(i).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,10)),parseFloat(e[3]||"1")]}let o=W.exec(t);if(o){let[t,n,r,i]=Array.from(o).slice(1).map(parseFloat);if(N(0,100,n)!==n||N(0,100,r)!==r)throw new D(e);return[...Z(t,n,r),Number.isNaN(i)?1:i]}throw new D(e)}let z=e=>parseInt(e.replace(/_/g,""),36),F="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{let n=z(t.substring(0,3)),r=z(t.substring(3)).toString(16),i="";for(let e=0;e<6-r.length;e++)i+="0";return e[n]=`${i}${r}`,e},{}),B=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),$=RegExp(`^#${B("([a-f0-9])",3)}([a-f0-9])?$`,"i"),V=RegExp(`^#${B("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),U=RegExp(`^rgba?\\(\\s*(\\d+)\\s*${B(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),W=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,q=/^[a-z]+$/i,H=e=>Math.round(255*e),Z=(e,t,n)=>{let r=n/100;if(0===t)return[r,r,r].map(H);let i=(e%360+360)%360/60,o=t/100*(1-Math.abs(2*r-1)),a=o*(1-Math.abs(i%2-1)),s=0,l=0,u=0;i>=0&&i<1?(s=o,l=a):i>=1&&i<2?(s=a,l=o):i>=2&&i<3?(l=o,u=a):i>=3&&i<4?(l=a,u=o):i>=4&&i<5?(s=a,u=o):i>=5&&i<6&&(s=o,u=a);let c=r-o/2;return[s+c,l+c,u+c].map(H)},G=e=>0===Object.keys(e).length,K=(e,t,n)=>{let r=function(e,t,n,r,i){for(r=0,t=t.split?t.split("."):t;r<t.length;r++)e=e?e[t[r]]:void 0;return void 0===e?n:e}(e,`colors.${t}`,t);try{return!function(e){let[t,n,r,i]=L(e),o=e=>{let t=N(0,255,e).toString(16);return 1===t.length?`0${t}`:t};o(t),o(n),o(r),i<1&&o(Math.round(255*i))}(r),r}catch{return n??"#000000"}},Y=e=>{let[t,n,r]=L(e);return(299*t+587*n+114*r)/1e3},X=e=>t=>128>Y(K(t,e))?"dark":"light",J=e=>t=>"dark"===X(e)(t),Q=(e,t)=>n=>(function(e,t){var n;let[r,i,o,a]=L(e);return n=a-t,`rgba(${N(0,255,r).toFixed()}, ${N(0,255,i).toFixed()}, ${N(0,255,o).toFixed()}, ${parseFloat(N(0,1,n).toFixed(3))})`})(K(n,e),1-t);function ee(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
18
+ `),e}_(()=>{N.current=void 0,R.current=void 0,O.current=i});let z=l.useMemo(()=>l.createElement(e,(0,f.Z)({},i,{ref:a})),[a,e,i]);return l.useMemo(()=>C?l.createElement(u.Provider,{value:S},z):z,[u,z,S])}let y=l.memo(d);if(y.WrappedComponent=e,y.displayName=d.displayName=n,u){let t=l.forwardRef(function(e,t){return l.createElement(y,(0,f.Z)({},e,{reactReduxForwardedRef:t}))});return t.displayName=n,t.WrappedComponent=e,m()(t,e)}return m()(y,e)}},j=function({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:o="once"}){let a=l.useMemo(()=>{let t=E(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:o}},[e,r,i,o]),s=l.useMemo(()=>e.getState(),[e]);return _(()=>{let{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}},[a,s]),l.createElement((t||d).Provider,{value:a},n)};i.useSyncExternalStoreWithSelector,A=r.useSyncExternalStore,a=o.unstable_batchedUpdates},27818:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(66703),i=n(14836),o=n.n(i),a="undefined"!=typeof window?window:null,s=null===a,l=s?void 0:a.document,u="addEventListener",c="removeEventListener",d="getBoundingClientRect",f="horizontal",h=function(){return!1},p=s?"calc":["","-webkit-","-moz-","-o-"].filter(function(e){var t=l.createElement("div");return t.style.cssText="width:"+e+"calc(9px)",!!t.style.length}).shift()+"calc",m=function(e){return"string"==typeof e||e instanceof String},g=function(e){if(m(e)){var t=l.querySelector(e);if(!t)throw Error("Selector "+e+" did not match a DOM element");return t}return e},v=function(e,t,n){var r=e[t];return void 0!==r?r:n},y=function(e,t,n,r){if(t){if("end"===r)return 0;if("center"===r)return e/2}else if(n){if("start"===r)return 0;if("center"===r)return e/2}return e},b=function(e,t){var n=l.createElement("div");return n.className="gutter gutter-"+t,n},x=function(e,t,n){var r={};return m(t)?r[e]=t:r[e]=p+"("+t+"% - "+n+"px)",r},w=function(e,t){var n;return(n={})[e]=t+"px",n},k=function(e,t){if(void 0===t&&(t={}),s)return{};var n,r,i,o,p,m,k=e;Array.from&&(k=Array.from(k));var S=g(k[0]).parentNode,E=getComputedStyle?getComputedStyle(S):null,_=E?E.flexDirection:null,C=v(t,"sizes")||k.map(function(){return 100/k.length}),O=v(t,"minSize",100),T=Array.isArray(O)?O:k.map(function(){return O}),A=v(t,"maxSize",1/0),P=Array.isArray(A)?A:k.map(function(){return A}),I=v(t,"expandToMin",!1),R=v(t,"gutterSize",10),j=v(t,"gutterAlign","center"),M=v(t,"snapOffset",30),N=Array.isArray(M)?M:k.map(function(){return M}),D=v(t,"dragInterval",1),L=v(t,"direction",f),z=v(t,"cursor",L===f?"col-resize":"row-resize"),F=v(t,"gutter",b),B=v(t,"elementStyle",x),$=v(t,"gutterStyle",w);function V(e,t,r,i){var o=B(n,t,r,i);Object.keys(o).forEach(function(t){e.style[t]=o[t]})}function U(){return m.map(function(e){return e.size})}function W(e){return"touches"in e?e.touches[0][r]:e[r]}function q(e){var t=m[this.a],n=m[this.b],r=t.size+n.size;t.size=e/this.size*r,n.size=r-e/this.size*r,V(t.element,t.size,this._b,t.i),V(n.element,n.size,this._c,n.i)}function H(e){var n,r=m[this.a],i=m[this.b];this.dragging&&(n=W(e)-this.start+(this._b-this.dragOffset),D>1&&(n=Math.round(n/D)*D),n<=r.minSize+r.snapOffset+this._b?n=r.minSize+this._b:n>=this.size-(i.minSize+i.snapOffset+this._c)&&(n=this.size-(i.minSize+this._c)),n>=r.maxSize-r.snapOffset+this._b?n=r.maxSize+this._b:n<=this.size-(i.maxSize-i.snapOffset+this._c)&&(n=this.size-(i.maxSize+this._c)),q.call(this,n),v(t,"onDrag",h)(U()))}function Z(){var e=m[this.a].element,t=m[this.b].element,r=e[d](),a=t[d]();this.size=r[n]+a[n]+this._b+this._c,this.start=r[i],this.end=r[o]}function G(e){var t=function(e){if(!getComputedStyle)return null;var t=getComputedStyle(e);if(!t)return null;var n=e[p];return 0===n?null:(L===f?n-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight):n-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),n)}(S);if(null===t||T.reduce(function(e,t){return e+t},0)>t)return e;var n=0,r=[],i=e.map(function(i,o){var a=t*i/100,s=y(R,0===o,o===e.length-1,j),l=T[o]+s;return a<l?(n+=l-a,r.push(0),l):(r.push(a-l),a)});return 0===n?e:i.map(function(e,i){var o=e;if(n>0&&r[i]-n>0){var a=Math.min(n,r[i]-n);n-=a,o=e-a}return o/t*100})}function K(){var e=m[this.a].element,n=m[this.b].element;this.dragging&&v(t,"onDragEnd",h)(U()),this.dragging=!1,a[c]("mouseup",this.stop),a[c]("touchend",this.stop),a[c]("touchcancel",this.stop),a[c]("mousemove",this.move),a[c]("touchmove",this.move),this.stop=null,this.move=null,e[c]("selectstart",h),e[c]("dragstart",h),n[c]("selectstart",h),n[c]("dragstart",h),e.style.userSelect="",e.style.webkitUserSelect="",e.style.MozUserSelect="",e.style.pointerEvents="",n.style.userSelect="",n.style.webkitUserSelect="",n.style.MozUserSelect="",n.style.pointerEvents="",this.gutter.style.cursor="",this.parent.style.cursor="",l.body.style.cursor=""}function Y(e){if(!("button"in e)||0===e.button){var n=m[this.a].element,r=m[this.b].element;this.dragging||v(t,"onDragStart",h)(U()),e.preventDefault(),this.dragging=!0,this.move=H.bind(this),this.stop=K.bind(this),a[u]("mouseup",this.stop),a[u]("touchend",this.stop),a[u]("touchcancel",this.stop),a[u]("mousemove",this.move),a[u]("touchmove",this.move),n[u]("selectstart",h),n[u]("dragstart",h),r[u]("selectstart",h),r[u]("dragstart",h),n.style.userSelect="none",n.style.webkitUserSelect="none",n.style.MozUserSelect="none",n.style.pointerEvents="none",r.style.userSelect="none",r.style.webkitUserSelect="none",r.style.MozUserSelect="none",r.style.pointerEvents="none",this.gutter.style.cursor=z,this.parent.style.cursor=z,l.body.style.cursor=z,Z.call(this),this.dragOffset=W(e)-this.end}}L===f?(n="width",r="clientX",i="left",o="right",p="clientWidth"):"vertical"===L&&(n="height",r="clientY",i="top",o="bottom",p="clientHeight"),C=G(C);var X=[];function J(e){var t=e.i===X.length,n=t?X[e.i-1]:X[e.i];Z.call(n);var r=t?n.size-e.minSize-n._c:e.minSize+n._b;q.call(n,r)}return(m=k.map(function(e,t){var r,i={element:g(e),size:C[t],minSize:T[t],maxSize:P[t],snapOffset:N[t],i:t};if(t>0&&((r={a:t-1,b:t,dragging:!1,direction:L,parent:S})._b=y(R,t-1==0,!1,j),r._c=y(R,!1,t===k.length-1,j),"row-reverse"===_||"column-reverse"===_)){var o=r.a;r.a=r.b,r.b=o}if(t>0){var a,s=F(t,L,i.element);Object.keys(a=$(n,R,t)).forEach(function(e){s.style[e]=a[e]}),r._a=Y.bind(r),s[u]("mousedown",r._a),s[u]("touchstart",r._a),S.insertBefore(s,i.element),r.gutter=s}return V(i.element,i.size,y(R,0===t,t===k.length-1,j),t),t>0&&X.push(r),i})).forEach(function(e){var t=e.element[d]()[n];t<e.minSize&&(I?J(e):e.minSize=t)}),{setSizes:function(e){var t=G(e);t.forEach(function(e,n){if(n>0){var r=X[n-1],i=m[r.a],o=m[r.b];i.size=t[n-1],o.size=e,V(i.element,i.size,r._b,i.i),V(o.element,o.size,r._c,o.i)}})},getSizes:U,collapse:function(e){J(m[e])},destroy:function(e,t){X.forEach(function(r){!0!==t?r.parent.removeChild(r.gutter):(r.gutter[c]("mousedown",r._a),r.gutter[c]("touchstart",r._a)),!0!==e&&Object.keys(B(n,r.a.size,r._b)).forEach(function(e){m[r.a].element.style[e]="",m[r.b].element.style[e]=""})})},parent:S,pairs:X}};function S(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}var E=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentDidMount=function(){var e=this.props;e.children;var t=e.gutter,n=S(e,["children","gutter"]);n.gutter=function(e,n){var r;return t?r=t(e,n):(r=document.createElement("div")).className="gutter gutter-"+n,r.__isSplitGutter=!0,r},this.split=k(this.parent.children,n)},t.prototype.componentDidUpdate=function(e){var t=this,n=this.props;n.children;var r=n.minSize,i=n.sizes,o=n.collapsed,a=S(n,["children","minSize","sizes","collapsed"]),s=e.minSize,l=e.sizes,u=e.collapsed,c=["maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor"].map(function(n){return t.props[n]!==e[n]}).reduce(function(e,t){return e||t},!1);if(Array.isArray(r)&&Array.isArray(s)){var d=!1;r.forEach(function(e,t){d=d||e!==s[t]}),c=c||d}else c=!!(Array.isArray(r)||Array.isArray(s))||c||r!==s;if(c)a.minSize=r,a.sizes=i||this.split.getSizes(),this.split.destroy(!0,!0),a.gutter=function(e,t,n){return n.previousSibling},this.split=k(Array.from(this.parent.children).filter(function(e){return!e.__isSplitGutter}),a);else if(i){var f=!1;i.forEach(function(e,t){f=f||e!==l[t]}),f&&this.split.setSizes(this.props.sizes)}Number.isInteger(o)&&(o!==u||c)&&this.split.collapse(o)},t.prototype.componentWillUnmount=function(){this.split.destroy(),delete this.split},t.prototype.render=function(){var e=this,t=this.props;t.sizes,t.minSize,t.maxSize,t.expandToMin,t.gutterSize,t.gutterAlign,t.snapOffset,t.dragInterval,t.direction,t.cursor,t.gutter,t.elementStyle,t.gutterStyle,t.onDrag,t.onDragStart,t.onDragEnd,t.collapsed;var n=t.children,i=S(t,["sizes","minSize","maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor","gutter","elementStyle","gutterStyle","onDrag","onDragStart","onDragEnd","collapsed","children"]);return r.createElement("div",Object.assign({},{ref:function(t){e.parent=t}},i),n)},t}(r.Component);E.propTypes={sizes:o().arrayOf(o().number),minSize:o().oneOfType([o().number,o().arrayOf(o().number)]),maxSize:o().oneOfType([o().number,o().arrayOf(o().number)]),expandToMin:o().bool,gutterSize:o().number,gutterAlign:o().string,snapOffset:o().oneOfType([o().number,o().arrayOf(o().number)]),dragInterval:o().number,direction:o().string,cursor:o().string,gutter:o().func,elementStyle:o().func,gutterStyle:o().func,onDrag:o().func,onDragStart:o().func,onDragEnd:o().func,collapsed:o().number,children:o().arrayOf(o().element)},E.defaultProps={sizes:void 0,minSize:void 0,maxSize:void 0,expandToMin:void 0,gutterSize:void 0,gutterAlign:void 0,snapOffset:void 0,dragInterval:void 0,direction:void 0,cursor:void 0,gutter:void 0,elementStyle:void 0,gutterStyle:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0,collapsed:void 0,children:void 0};var _=E},46432:function(e,t,n){"use strict";n.d(t,{DE:function(){return c},MT:function(){return l},md:function(){return f},qC:function(){return d}});var r=n(52826);function i(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var o="function"==typeof Symbol&&Symbol.observable||"@@observable",a=function(){return Math.random().toString(36).substring(7).split("").join(".")},s={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function l(e,t,n){if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw Error(i(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw Error(i(1));return n(l)(e,t)}if("function"!=typeof e)throw Error(i(2));var r,a=e,u=t,c=[],d=c,f=!1;function h(){d===c&&(d=c.slice())}function p(){if(f)throw Error(i(3));return u}function m(e){if("function"!=typeof e)throw Error(i(4));if(f)throw Error(i(5));var t=!0;return h(),d.push(e),function(){if(t){if(f)throw Error(i(6));t=!1,h();var n=d.indexOf(e);d.splice(n,1),c=null}}}function g(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw Error(i(7));if(void 0===e.type)throw Error(i(8));if(f)throw Error(i(9));try{f=!0,u=a(u,e)}finally{f=!1}for(var t=c=d,n=0;n<t.length;n++)(0,t[n])();return e}return g({type:s.INIT}),(r={dispatch:g,subscribe:m,getState:p,replaceReducer:function(e){if("function"!=typeof e)throw Error(i(10));a=e,g({type:s.REPLACE})}})[o]=function(){var e;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw Error(i(11));function t(){e.next&&e.next(p())}return t(),{unsubscribe:m(t)}}})[o]=function(){return this},e},r}function u(e,t){return function(){return t(e.apply(this,arguments))}}function c(e,t){if("function"==typeof e)return u(e,t);if("object"!=typeof e||null===e)throw Error(i(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=u(o,t))}return n}function d(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function f(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),o=function(){throw Error(i(15))},a={getState:n.getState,dispatch:function(){return o.apply(void 0,arguments)}},s=t.map(function(e){return e(a)});return o=d.apply(void 0,s)(n.dispatch),(0,r.Z)((0,r.Z)({},n),{},{dispatch:o})}}}},76153:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},2600:function(e,t,n){"use strict";n.d(t,{I4:function(){return a},Ye:function(){return o}});var r=n(66703);function i(e,t){var n=(0,r.useState)(function(){return{inputs:t,result:e()}})[0],i=(0,r.useRef)(!0),o=(0,r.useRef)(n),a=i.current||t&&o.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,o.current.inputs)?o.current:{inputs:t,result:e()};return(0,r.useEffect)(function(){i.current=!1,o.current=a},[a]),a.result}var o=i,a=function(e,t){return i(function(){return e},t)}},89907:function(e,t,n){"use strict";var r=n(66703),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),a(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},13562:function(e,t,n){"use strict";var r=n(66703),i=n(18638),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useSyncExternalStore,s=r.useRef,l=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var h=a(e,(d=u(function(){function e(e){if(!l){if(l=!0,a=e,e=r(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(a=e,t):(a=e,s=n)}var a,s,l=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,n,r,i]))[0],d[1]);return l(function(){f.hasValue=!0,f.value=h},[h]),c(h),h}},18638:function(e,t,n){"use strict";e.exports=n(89907)},85355:function(e,t,n){"use strict";e.exports=n(13562)},50710:function(){},7903:function(){},98215:function(){},30848:function(){},51982:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},64729:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(23438);function i(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},52409:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}n.d(t,{Z:function(){return r}})},52826:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(64729);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}},48111:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{Z:function(){return r}})},2890:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{Z:function(){return r}})},23438:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(28108);function i(e){var t=function(e,t){if("object"!=(0,r.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=(0,r.Z)(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.Z)(t)?t:t+""}},28108:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:function(){return r}})},74614:function(e,t,n){"use strict";function r(e,t={}){let n=!1;function i(t){let n=(["container","root"].includes(t??"")?[e]:[e,t]).filter(Boolean).join("__"),r=`chakra-${n}`;return{className:r,selector:`.${r}`,toString:()=>t}}return{parts:function(...o){for(let e of(!function(){if(!n){n=!0;return}throw Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}(),o))t[e]=i(e);return r(e,t)},toPart:i,extend:function(...n){for(let e of n)e in t||(t[e]=i(e));return r(e,t)},selectors:function(){return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.selector]))},classnames:function(){return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.className]))},get keys(){return Object.keys(t)},__type:{}}}n.d(t,{TB:function(){return i}}),r("accordion").parts("root","container","button","panel","icon"),r("alert").parts("title","description","container","icon","spinner"),r("avatar").parts("label","badge","container","excessLabel","group"),r("breadcrumb").parts("link","item","container","separator"),r("button").parts();let i=r("checkbox").parts("control","icon","container","label");r("progress").parts("track","filledTrack","label"),r("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),r("editable").parts("preview","input","textarea"),r("form").parts("container","requiredIndicator","helperText"),r("formError").parts("text","icon"),r("input").parts("addon","field","element","group"),r("list").parts("container","item","icon"),r("menu").parts("button","list","item","groupTitle","icon","command","divider"),r("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),r("numberinput").parts("root","field","stepperGroup","stepper"),r("pininput").parts("field"),r("popover").parts("content","header","body","footer","popper","arrow","closeButton"),r("progress").parts("label","filledTrack","track"),r("radio").parts("container","control","label"),r("select").parts("field","icon"),r("slider").parts("container","track","thumb","filledTrack","mark"),r("stat").parts("container","label","helpText","number","icon"),r("switch").parts("container","track","thumb","label"),r("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),r("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),r("tag").parts("container","label","closeButton"),r("card").parts("container","header","body","footer"),r("stepper").parts("stepper","step","title","description","indicator","separator","icon","number")},19774:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var r=n(95034),i=n(66703),o=n(37584);function a(e){let{isOpen:t,ref:n}=e,[a,s]=(0,i.useState)(t),[l,u]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{l||(s(t),u(!0))},[t,l,a]),(0,o.O)(()=>n.current,"animationend",()=>{s(t)}),{present:!(!t&&!a),onComplete(){var e;let t=new((0,r.kR)(n.current)).CustomEvent("animationend",{bubbles:!0});null===(e=n.current)||void 0===e||e.dispatchEvent(t)}}}},55229:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(66703);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,r.useRef)(e);return(0,r.useEffect)(()=>{n.current=e}),(0,r.useCallback)(function(){for(var e,t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return null===(e=n.current)||void 0===e?void 0:e.call(n,...r)},t)}},64126:function(e,t,n){"use strict";n.d(t,{V:function(){return o}});var r=n(66703),i=n(24989);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},[n,o]=(0,r.useState)(!1),[a,s]=(0,r.useState)(e);(0,r.useEffect)(()=>s(e),[e]);let{timeout:l=1500,...u}="number"==typeof t?{timeout:t}:t,c=(0,r.useCallback)(e=>{let t="string"==typeof e?e:a;"clipboard"in navigator?navigator.clipboard.writeText(t).then(()=>o(!0)).catch(()=>o(i(t,u))):o(i(t,u))},[a,u]);return(0,r.useEffect)(()=>{let e=null;return n&&(e=window.setTimeout(()=>{o(!1)},l)),()=>{e&&window.clearTimeout(e)}},[l,n]),{value:a,setValue:s,onCopy:c,hasCopied:n}}},85071:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(55229),i=n(66703);function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{onClose:t,onOpen:n,isOpen:o,id:a}=e,s=(0,r.W)(n),l=(0,r.W)(t),[u,c]=(0,i.useState)(e.defaultIsOpen||!1),d=void 0!==o?o:u,f=void 0!==o,h=(0,i.useId)(),p=null!=a?a:"disclosure-".concat(h),m=(0,i.useCallback)(()=>{f||c(!1),null==l||l()},[f,l]),g=(0,i.useCallback)(()=>{f||c(!0),null==s||s()},[f,s]),v=(0,i.useCallback)(()=>{d?m():g()},[d,g,m]);return{isOpen:d,onOpen:g,onClose:m,onToggle:v,isControlled:f,getButtonProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,"aria-expanded":d,"aria-controls":p,onClick(t){var n;null===(n=e.onClick)||void 0===n||n.call(e,t),v()}}},getDisclosureProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,hidden:!d,id:p}}}}},37584:function(e,t,n){"use strict";n.d(t,{O:function(){return o}});var r=n(66703),i=n(55229);function o(e,t,n,o){let a=(0,i.W)(n);return(0,r.useEffect)(()=>{let r="function"==typeof e?e():null!=e?e:document;if(n&&r)return r.addEventListener(t,a,o),()=>{r.removeEventListener(t,a,o)}},[t,e,o,a,n]),()=>{let n="function"==typeof e?e():null!=e?e:document;null==n||n.removeEventListener(t,a,o)}}},15749:function(e,t,n){"use strict";n.d(t,{C:function(){return c},G:function(){return f}});var r=n(95034),i=n(94279),o=n(29239),a=n(66703),s=n(37584),l=n(59129),u=n(95318);function c(e,t){let{shouldFocus:n,visible:o,focusRef:a}=t,s=n&&!o;(0,u.r)(()=>{let t;if(!s||function(e){let t=e.current;if(!t)return!1;let n=(0,r.vY)(t);return!(!n||t.contains(n))&&!!(0,i.Wq)(n)}(e))return;let n=(null==a?void 0:a.current)||e.current;if(n)return t=requestAnimationFrame(()=>{n.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(t)}},[s,e,a])}let d={preventScroll:!0,shouldFocus:!1};function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d,{focusRef:n,preventScroll:r,shouldFocus:i,visible:c}=t,f="current"in e?e.current:e,h=i&&c,p=(0,a.useRef)(h),m=(0,a.useRef)(c);(0,l.G)(()=>{!m.current&&c&&(p.current=h),m.current=c},[c,h]);let g=(0,a.useCallback)(()=>{if(c&&f&&p.current&&(p.current=!1,!f.contains(document.activeElement))){if(null==n?void 0:n.current)requestAnimationFrame(()=>{var e;null===(e=n.current)||void 0===e||e.focus({preventScroll:r})});else{let e=(0,o.t5)(f);e.length>0&&requestAnimationFrame(()=>{e[0].focus({preventScroll:r})})}}},[c,r,f,n]);(0,u.r)(()=>{g()},[g]),(0,s.O)(f,"transitionend",g)}},6461:function(e,t,n){"use strict";n.d(t,{lq:function(){return i},qq:function(){return o}});var r=n(66703);function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach(t=>{!function(e,t){if(null!=e){if("function"==typeof e){e(t);return}try{e.current=t}catch(n){throw Error("Cannot assign value '".concat(t,"' to ref '").concat(e,"'"))}}}(t,e)})}}function o(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)(()=>i(...t),t)}},18404:function(e,t,n){"use strict";n.d(t,{O:function(){return o}});var r=n(66703),i=n(55229);function o(e){let{ref:t,handler:n,enabled:o=!0}=e,l=(0,i.W)(n),u=(0,r.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,r.useEffect)(()=>{if(!o)return;let e=e=>{a(e,t)&&(u.isPointerDown=!0)},r=e=>{if(u.ignoreEmulatedMouseEvents){u.ignoreEmulatedMouseEvents=!1;return}u.isPointerDown&&n&&a(e,t)&&(u.isPointerDown=!1,l(e))},i=e=>{u.ignoreEmulatedMouseEvents=!0,n&&u.isPointerDown&&a(e,t)&&(u.isPointerDown=!1,l(e))},c=s(t.current);return c.addEventListener("mousedown",e,!0),c.addEventListener("mouseup",r,!0),c.addEventListener("touchstart",e,!0),c.addEventListener("touchend",i,!0),()=>{c.removeEventListener("mousedown",e,!0),c.removeEventListener("mouseup",r,!0),c.removeEventListener("touchstart",e,!0),c.removeEventListener("touchend",i,!0)}},[n,t,l,u,o])}function a(e,t){var n,r,i;let o=null!==(i=null===(n=e.composedPath)||void 0===n?void 0:n.call(e)[0])&&void 0!==i?i:e.target;return(!o||!!s(o).contains(o))&&!(null===(r=t.current)||void 0===r?void 0:r.contains(o))}function s(e){var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document}},59129:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});var r,i=n(66703);let o=(null===(r=globalThis)||void 0===r?void 0:r.document)?i.useLayoutEffect:i.useEffect},95318:function(e,t,n){"use strict";n.d(t,{r:function(){return i}});var r=n(66703);let i=(e,t)=>{let n=(0,r.useRef)(!1),i=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(n.current&&i.current)return e();i.current=!0},t),(0,r.useEffect)(()=>(n.current=!0,()=>{n.current=!1}),[])}},78129:function(e,t,n){"use strict";n.d(t,{n:function(){return i}});var r=n(20130);let i=(0,n(64274).I)({viewBox:"0 0 14 14",path:(0,r.jsx)("g",{fill:"currentColor",children:(0,r.jsx)("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})})})},68156:function(e,t,n){"use strict";n.d(t,{r:function(){return r}});let r=(0,n(64274).I)({displayName:"CheckCircleIcon",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})},85041:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});let r=(0,n(64274).I)({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})},82598:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});let r=(0,n(64274).I)({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"})},82946:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});let r=(0,n(64274).I)({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})},93166:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});let r=(0,n(64274).I)({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"})},50056:function(e,t,n){"use strict";n.d(t,{p:function(){return i}});var r=n(20130);let i=(0,n(64274).I)({displayName:"DeleteIcon",path:(0,r.jsx)("g",{fill:"currentColor",children:(0,r.jsx)("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"})})})},44550:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var r=n(20130);let i=(0,n(64274).I)({displayName:"ExternalLinkIcon",path:(0,r.jsxs)("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[(0,r.jsx)("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),(0,r.jsx)("path",{d:"M15 3h6v6"}),(0,r.jsx)("path",{d:"M10 14L21 3"})]})})},55859:function(e,t,n){"use strict";n.d(t,{s:function(){return r}});let r=(0,n(64274).I)({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})},77938:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var r=n(20130);let i=(0,n(64274).I)({displayName:"InfoOutlineIcon",path:(0,r.jsxs)("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2",children:[(0,r.jsx)("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),(0,r.jsx)("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),(0,r.jsx)("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"})]})})},36387:function(e,t,n){"use strict";n.d(t,{n:function(){return i}});var r=n(20130);let i=(0,n(64274).I)({displayName:"RepeatIcon",path:(0,r.jsxs)("g",{fill:"currentColor",children:[(0,r.jsx)("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"}),(0,r.jsx)("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"})]})})},32165:function(e,t,n){"use strict";n.d(t,{a:function(){return r}});let r=(0,n(64274).I)({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"})},54405:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});let r=(0,n(64274).I)({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"})},50393:function(e,t,n){"use strict";n.d(t,{uZ:function(){return l},Hm:function(){return c},TR:function(){return h},XO:function(){return p},oX:function(){return u},uL:function(){return d}});var r=n(9396),i=n(20130),o=n(5845);function a(e){return(0,i.jsx)(o.J,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var s=n(56756);let[l,u]=(0,r.k)({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[c,d]=(0,r.k)({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),f={info:{icon:function(e){return(0,i.jsx)(o.J,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})},colorScheme:"blue"},warning:{icon:a,colorScheme:"orange"},success:{icon:function(e){return(0,i.jsx)(o.J,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})},colorScheme:"green"},error:{icon:a,colorScheme:"red"},loading:{icon:s.$,colorScheme:"blue"}};function h(e){return f[e].colorScheme}function p(e){return f[e].icon}},76902:function(e,t,n){"use strict";n.d(t,{X:function(){return u}});var r=n(20130),i=n(71034),o=n(90010),a=n(50393),s=n(43906),l=n(49110);let u=(0,s.G)(function(e,t){let{status:n}=(0,a.oX)(),s=(0,a.uL)(),u=(0,i.k0)({display:"inline",...s.description});return(0,r.jsx)(l.m.div,{ref:t,"data-status":n,...e,className:(0,o.cx)("chakra-alert__desc",e.className),__css:u})});u.displayName="AlertDescription"},49956:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var r=n(20130),i=n(90010),o=n(50393),a=n(49110);function s(e){let{status:t}=(0,o.oX)(),n=(0,o.XO)(t),s=(0,o.uL)(),l="loading"===t?s.spinner:s.icon;return(0,r.jsx)(a.m.span,{display:"inherit","data-status":t,...e,className:(0,i.cx)("chakra-alert__icon",e.className),__css:l,children:e.children||(0,r.jsx)(n,{h:"100%",w:"100%"})})}s.displayName="AlertIcon"},18422:function(e,t,n){"use strict";n.d(t,{b:function(){return d}});var r=n(20130),i=n(66861),o=n(71034),a=n(90010),s=n(50393),l=n(35364),u=n(43906),c=n(49110);let d=(0,u.G)(function(e,t){var n;let{status:u="info",addRole:d=!0,...f}=(0,i.L)(e),h=null!==(n=e.colorScheme)&&void 0!==n?n:(0,s.TR)(u),p=(0,l.j)("Alert",{...e,colorScheme:h}),m=(0,o.k0)({width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...p.container});return(0,r.jsx)(s.uZ,{value:{status:u},children:(0,r.jsx)(s.Hm,{value:p,children:(0,r.jsx)(c.m.div,{"data-status":u,role:d?"alert":void 0,ref:t,...f,className:(0,a.cx)("chakra-alert",e.className),__css:m})})})});d.displayName="Alert"},82772:function(e,t,n){"use strict";n.d(t,{C:function(){return u}});var r=n(20130),i=n(66861),o=n(90010),a=n(43906),s=n(35364),l=n(49110);let u=(0,a.G)(function(e,t){let n=(0,s.m)("Badge",e),{className:a,...u}=(0,i.L)(e);return(0,r.jsx)(l.m.span,{ref:t,className:(0,o.cx)("chakra-badge",e.className),...u,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...n}})});u.displayName="Badge"},28561:function(e,t,n){"use strict";n.d(t,{x:function(){return r}});let r=(0,n(49110).m)("div");r.displayName="Box"},27133:function(e,t,n){"use strict";n.d(t,{W:function(){return r},w:function(){return i}});let[r,i]=(0,n(9396).k)({name:"BreadcrumbStylesContext",errorMessage:"useBreadcrumbStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Breadcrumb />\" "})},48736:function(e,t,n){"use strict";n.d(t,{g:function(){return h}});var r=n(20130),i=n(71034),o=n(84535),a=n(90010),s=n(66703),l=n(27133),u=n(43906),c=n(49110);let d=(0,u.G)(function(e,t){let{isCurrentPage:n,as:i,className:o,href:s,...u}=e,d=(0,l.w)(),f={ref:t,as:i,className:(0,a.cx)("chakra-breadcrumb__link",o),...u};return n?(0,r.jsx)(c.m.span,{"aria-current":"page",__css:d.link,...f}):(0,r.jsx)(c.m.a,{__css:d.link,href:s,...f})});d.displayName="BreadcrumbLink";let f=(0,u.G)(function(e,t){let{spacing:n,...o}=e,a=(0,l.w)(),s=(0,i.k0)({mx:n,...a.separator});return(0,r.jsx)(c.m.span,{ref:t,role:"presentation",...o,__css:s})});f.displayName="BreadcrumbSeparator";let h=(0,u.G)(function(e,t){let{isCurrentPage:n,separator:u,isLastChild:h,spacing:p,children:m,className:g,...v}=e,y=(0,o.W)(m).map(e=>e.type===d?(0,s.cloneElement)(e,{isCurrentPage:n}):e.type===f?(0,s.cloneElement)(e,{spacing:p,children:e.props.children||u}):e),b=(0,l.w)(),x=(0,i.k0)({display:"inline-flex",alignItems:"center",...b.item}),w=(0,a.cx)("chakra-breadcrumb__list-item",g);return(0,r.jsxs)(c.m.li,{ref:t,className:w,...v,__css:x,children:[y,!h&&(0,r.jsx)(f,{spacing:p,children:u})]})});h.displayName="BreadcrumbItem"},98972:function(e,t,n){"use strict";n.d(t,{a:function(){return f}});var r=n(20130),i=n(66861),o=n(84535),a=n(90010),s=n(66703),l=n(27133),u=n(43906),c=n(35364),d=n(49110);let f=(0,u.G)(function(e,t){let n=(0,c.j)("Breadcrumb",e),{children:u,spacing:f="0.5rem",separator:h="/",className:p,listProps:m,...g}=(0,i.L)(e),v=(0,o.W)(u),y=v.length,b=v.map((e,t)=>(0,s.cloneElement)(e,{separator:h,spacing:f,isLastChild:y===t+1})),x=(0,a.cx)("chakra-breadcrumb",p);return(0,r.jsx)(d.m.nav,{ref:t,"aria-label":"breadcrumb",className:x,__css:n.container,...g,children:(0,r.jsx)(l.W,{value:n,children:(0,r.jsx)(d.m.ol,{className:"chakra-breadcrumb__list",...m,__css:{display:"flex",alignItems:"center",...n.list},children:b})})})});f.displayName="Breadcrumb"},13319:function(e,t,n){"use strict";n.d(t,{D:function(){return r},i:function(){return i}});let[r,i]=(0,n(9396).k)({strict:!1,name:"ButtonGroupContext"})},30566:function(e,t,n){"use strict";n.d(t,{h:function(){return d}});var r=n(20130),i=n(90010),o=n(66703),a=n(13319),s=n(43906),l=n(49110);let u={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},c={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},d=(0,s.G)(function(e,t){let{size:n,colorScheme:s,variant:d,className:f,spacing:h="0.5rem",isAttached:p,isDisabled:m,orientation:g="horizontal",...v}=e,y=(0,i.cx)("chakra-button__group",f),b=(0,o.useMemo)(()=>({size:n,colorScheme:s,variant:d,isDisabled:m}),[n,s,d,m]),x={display:"inline-flex",...p?u[g]:c[g](h)},w="vertical"===g;return(0,r.jsx)(a.D,{value:b,children:(0,r.jsx)(l.m.div,{ref:t,role:"group",__css:x,className:y,"data-attached":p?"":void 0,"data-orientation":g,flexDir:w?"column":void 0,...v})})});d.displayName="ButtonGroup"},19736:function(e,t,n){"use strict";n.d(t,{z:function(){return v}});var r=n(20130),i=n(6461),o=n(66861),a=n(26934),s=n(90010),l=n(66703),u=n(13319),c=n(49110);function d(e){let{children:t,className:n,...i}=e,o=(0,l.isValidElement)(t)?(0,l.cloneElement)(t,{"aria-hidden":!0,focusable:!1}):t,a=(0,s.cx)("chakra-button__icon",n);return(0,r.jsx)(c.m.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...i,className:a,children:o})}d.displayName="ButtonIcon";var f=n(71034),h=n(56756);function p(e){let{label:t,placement:n,spacing:i="0.5rem",children:o=(0,r.jsx)(h.$,{color:"currentColor",width:"1em",height:"1em"}),className:a,__css:u,...d}=e,p=(0,s.cx)("chakra-button__spinner",a),m="start"===n?"marginEnd":"marginStart",g=(0,l.useMemo)(()=>(0,f.k0)({display:"flex",alignItems:"center",position:t?"relative":"absolute",[m]:t?i:0,fontSize:"1em",lineHeight:"normal",...u}),[u,t,m,i]);return(0,r.jsx)(c.m.div,{className:p,...d,__css:g,children:o})}p.displayName="ButtonSpinner";var m=n(43906),g=n(35364);let v=(0,m.G)((e,t)=>{let n=(0,u.i)(),d=(0,g.m)("Button",{...n,...e}),{isDisabled:f=null==n?void 0:n.isDisabled,isLoading:h,isActive:m,children:v,leftIcon:b,rightIcon:x,loadingText:w,iconSpacing:k="0.5rem",type:S,spinner:E,spinnerPlacement:_="start",className:C,as:O,shouldWrapChildren:T,...A}=(0,o.L)(e),P=(0,l.useMemo)(()=>{let e={...null==d?void 0:d._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...d,...!!n&&{_focus:e}}},[d,n]),{ref:I,type:R}=function(e){let[t,n]=(0,l.useState)(!e);return{ref:(0,l.useCallback)(e=>{e&&n("BUTTON"===e.tagName)},[]),type:t?"button":void 0}}(O),j={rightIcon:x,leftIcon:b,iconSpacing:k,children:v,shouldWrapChildren:T};return(0,r.jsxs)(c.m.button,{disabled:f||h,ref:(0,i.qq)(t,I),as:O,type:null!=S?S:R,"data-active":(0,a.P)(m),"data-loading":(0,a.P)(h),__css:P,className:(0,s.cx)("chakra-button",C),...A,children:[h&&"start"===_&&(0,r.jsx)(p,{className:"chakra-button__spinner--start",label:w,placement:"start",spacing:k,children:E}),h?w||(0,r.jsx)(c.m.span,{opacity:0,children:(0,r.jsx)(y,{...j})}):(0,r.jsx)(y,{...j}),h&&"end"===_&&(0,r.jsx)(p,{className:"chakra-button__spinner--end",label:w,placement:"end",spacing:k,children:E})]})});function y(e){let{leftIcon:t,rightIcon:n,children:i,iconSpacing:o,shouldWrapChildren:a}=e;return a?(0,r.jsxs)("span",{style:{display:"contents"},children:[t&&(0,r.jsx)(d,{marginEnd:o,children:t}),i,n&&(0,r.jsx)(d,{marginStart:o,children:n})]}):(0,r.jsxs)(r.Fragment,{children:[t&&(0,r.jsx)(d,{marginEnd:o,children:t}),i,n&&(0,r.jsx)(d,{marginStart:o,children:n})]})}v.displayName="Button"},71676:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var r=n(20130),i=n(66703),o=n(19736);let a=(0,n(43906).G)((e,t)=>{let{icon:n,children:a,isRound:s,"aria-label":l,...u}=e,c=n||a,d=(0,i.isValidElement)(c)?(0,i.cloneElement)(c,{"aria-hidden":!0,focusable:!1}):null;return(0,r.jsx)(o.z,{px:"0",py:"0",borderRadius:s?"full":void 0,ref:t,"aria-label":l,...u,children:d})});a.displayName="IconButton"},50537:function(e,t,n){"use strict";n.d(t,{M:function(){return a}});var r=n(20130),i=n(49110),o=n(43906);let a=(0,i.m)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});a.displayName="Center";let s={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};(0,o.G)(function(e,t){let{axis:n="both",...o}=e;return(0,r.jsx)(i.m.div,{ref:t,__css:s[n],...o,position:"absolute"})})},29354:function(e,t,n){"use strict";let r;n.d(t,{x:function(){return G}});var i=n(30171),o=n(20130),a=n(19249),s=n(9116),l=n(66703),u=n(16276);let c={light:"chakra-ui-light",dark:"chakra-ui-dark"},d="chakra-ui-color-mode",f={ssr:!1,type:"localStorage",get(e){var t;let n;if(!(null===(t=globalThis)||void 0===t?void 0:t.document))return e;try{n=localStorage.getItem(d)||e}catch(e){}return n||e},set(e){try{localStorage.setItem(d,e)}catch(e){}}},h=()=>{},p=(0,a.jU)()?l.useLayoutEffect:l.useEffect;function m(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}let g=function(e){let{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:i,disableTransitionOnChange:a}={},colorModeManager:d=f}=e,g=(0,s._)(),v="dark"===i?"dark":"light",[y,b]=(0,l.useState)(()=>m(d,v)),[x,w]=(0,l.useState)(()=>m(d)),{getSystemTheme:k,setClassName:S,setDataset:E,addListener:_}=(0,l.useMemo)(()=>(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{preventTransition:t=!0,nonce:n}=e,r={setDataset:e=>{let n=t?r.preventTransition():void 0;document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e,null==n||n()},setClassName(e){document.body.classList.add(e?c.dark:c.light),document.body.classList.remove(e?c.light:c.dark)},query:()=>window.matchMedia("(prefers-color-scheme: dark)"),getSystemTheme(e){var t;return(null!==(t=r.query().matches)&&void 0!==t?t:"dark"===e)?"dark":"light"},addListener(e){let t=r.query(),n=t=>{e(t.matches?"dark":"light")};return"function"==typeof t.addListener?t.addListener(n):t.addEventListener("change",n),()=>{"function"==typeof t.removeListener?t.removeListener(n):t.removeEventListener("change",n)}},preventTransition(){let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),void 0!==n&&(e.nonce=n),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(e)})})}}};return r})({preventTransition:a,nonce:null==g?void 0:g.nonce}),[a,null==g?void 0:g.nonce]),C="system"!==i||y?y:x,O=(0,l.useCallback)(e=>{let t="system"===e?k():e;b(t),S("dark"===t),E(t),d.set(t)},[d,k,S,E]);p(()=>{"system"===i&&w(k())},[]),(0,l.useEffect)(()=>{let e=d.get();if(e){O(e);return}if("system"===i){O("system");return}O(v)},[d,v,i,O]);let T=(0,l.useCallback)(()=>{O("dark"===C?"light":"dark")},[C,O]);(0,l.useEffect)(()=>{if(r)return _(O)},[r,_,O]);let A=(0,l.useMemo)(()=>({colorMode:null!=t?t:C,toggleColorMode:t?h:T,setColorMode:t?h:O,forced:void 0!==t}),[C,T,O,t]);return(0,o.jsx)(u.kc.Provider,{value:A,children:n})};g.displayName="ColorModeProvider";var v=n(30220),y=n(68312);function b(){let e=(0,v._)(["\n :root,\n :host {\n --chakra-vh: 100vh;\n }\n\n @supports (height: -webkit-fill-available) {\n :root,\n :host {\n --chakra-vh: -webkit-fill-available;\n }\n }\n\n @supports (height: -moz-fill-available) {\n :root,\n :host {\n --chakra-vh: -moz-fill-available;\n }\n }\n\n @supports (height: 100dvh) {\n :root,\n :host {\n --chakra-vh: 100dvh;\n }\n }\n"]);return b=function(){return e},e}function x(){let e=(0,v._)(['\n html {\n line-height: 1.5;\n -webkit-text-size-adjust: 100%;\n font-family: system-ui, sans-serif;\n -webkit-font-smoothing: antialiased;\n text-rendering: optimizeLegibility;\n -moz-osx-font-smoothing: grayscale;\n touch-action: manipulation;\n }\n\n body {\n position: relative;\n min-height: 100%;\n margin: 0;\n font-feature-settings: "kern";\n }\n\n '," :where(*, *::before, *::after) {\n border-width: 0;\n border-style: solid;\n box-sizing: border-box;\n word-wrap: break-word;\n }\n\n main {\n display: block;\n }\n\n "," hr {\n border-top-width: 1px;\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n }\n\n "," :where(pre, code, kbd,samp) {\n font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n font-size: 1em;\n }\n\n "," a {\n background-color: transparent;\n color: inherit;\n text-decoration: inherit;\n }\n\n "," abbr[title] {\n border-bottom: none;\n text-decoration: underline;\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n }\n\n "," :where(b, strong) {\n font-weight: bold;\n }\n\n "," small {\n font-size: 80%;\n }\n\n "," :where(sub,sup) {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n\n "," sub {\n bottom: -0.25em;\n }\n\n "," sup {\n top: -0.5em;\n }\n\n "," img {\n border-style: none;\n }\n\n "," :where(button, input, optgroup, select, textarea) {\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n }\n\n "," :where(button, input) {\n overflow: visible;\n }\n\n "," :where(button, select) {\n text-transform: none;\n }\n\n ",' :where(\n button::-moz-focus-inner,\n [type="button"]::-moz-focus-inner,\n [type="reset"]::-moz-focus-inner,\n [type="submit"]::-moz-focus-inner\n ) {\n border-style: none;\n padding: 0;\n }\n\n '," fieldset {\n padding: 0.35em 0.75em 0.625em;\n }\n\n "," legend {\n box-sizing: border-box;\n color: inherit;\n display: table;\n max-width: 100%;\n padding: 0;\n white-space: normal;\n }\n\n "," progress {\n vertical-align: baseline;\n }\n\n "," textarea {\n overflow: auto;\n }\n\n ",' :where([type="checkbox"], [type="radio"]) {\n box-sizing: border-box;\n padding: 0;\n }\n\n ',' input[type="number"]::-webkit-inner-spin-button,\n ',' input[type="number"]::-webkit-outer-spin-button {\n -webkit-appearance: none !important;\n }\n\n ',' input[type="number"] {\n -moz-appearance: textfield;\n }\n\n ',' input[type="search"] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n }\n\n ',' input[type="search"]::-webkit-search-decoration {\n -webkit-appearance: none !important;\n }\n\n '," ::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n }\n\n "," details {\n display: block;\n }\n\n "," summary {\n display: list-item;\n }\n\n template {\n display: none;\n }\n\n [hidden] {\n display: none !important;\n }\n\n "," :where(\n blockquote,\n dl,\n dd,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n hr,\n figure,\n p,\n pre\n ) {\n margin: 0;\n }\n\n "," button {\n background: transparent;\n padding: 0;\n }\n\n "," fieldset {\n margin: 0;\n padding: 0;\n }\n\n "," :where(ol, ul) {\n margin: 0;\n padding: 0;\n }\n\n "," textarea {\n resize: vertical;\n }\n\n ",' :where(button, [role="button"]) {\n cursor: pointer;\n }\n\n '," button::-moz-focus-inner {\n border: 0 !important;\n }\n\n "," table {\n border-collapse: collapse;\n }\n\n "," :where(h1, h2, h3, h4, h5, h6) {\n font-size: inherit;\n font-weight: inherit;\n }\n\n "," :where(button, input, optgroup, select, textarea) {\n padding: 0;\n line-height: inherit;\n color: inherit;\n }\n\n "," :where(img, svg, video, canvas, audio, iframe, embed, object) {\n display: block;\n }\n\n "," :where(img, video) {\n max-width: 100%;\n height: auto;\n }\n\n [data-js-focus-visible]\n :focus:not([data-focus-visible-added]):not(\n [data-focus-visible-disabled]\n ) {\n outline: none;\n box-shadow: none;\n }\n\n "," select::-ms-expand {\n display: none;\n }\n\n ","\n "]);return x=function(){return e},e}let w=String.raw,k=w(b()),S=()=>(0,o.jsx)(y.xB,{styles:k}),E=e=>{let{scope:t=""}=e;return(0,o.jsx)(y.xB,{styles:w(x(),t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,k)})};var _=n(96549),C=n(93031),O=n(58450),T=n(23880),A=n(41293);function P(e,t,n={}){let{stop:r,getKey:i}=n;return function e(n,o=[]){if((0,C.Kn)(n)||Array.isArray(n)){let a={};for(let[s,l]of Object.entries(n)){let u=i?.(s)??s,c=[...o,u];if(r?.(n,c))return t(n,o);a[u]=e(l,c)}return a}return t(n,o)}(e)}var I=n(57386),R=n(47301);let j=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function M(e,t){return(0,A.gJ)(String(e).replace(/\./g,"-"),void 0,t)}var N=n(57898),D=n(9396),L=n(85680),z=n(69072);function F(e){let{cssVarsRoot:t,theme:n,children:r}=e,i=(0,l.useMemo)(()=>(function(e){let t=function(e){let{__cssMap:t,__cssVars:n,__breakpoints:r,...i}=e;return i}(e),{cssMap:n,cssVars:r}=function(e){let t=function(e){let t=(0,R.e)(e,j),n=e.semanticTokens,r=e=>I._.includes(e)||"default"===e,i={};return P(t,(e,t)=>{null!=e&&(i[t.join(".")]={isSemantic:!1,value:e})}),P(n,(e,t)=>{null!=e&&(i[t.join(".")]={isSemantic:!0,value:e})},{stop:e=>Object.keys(e).every(r)}),i}(e),n=e.config?.cssVarPrefix,r={},i={};for(let[e,o]of Object.entries(t)){let{isSemantic:a,value:s}=o,{variable:l,reference:u}=M(e,n);if(!a){if(e.startsWith("space")){let[t,...n]=e.split("."),r=`${t}.-${n.join(".")}`,o=T.y.negate(s),a=T.y.negate(u);i[r]={value:o,var:l,varRef:a}}r[l]=s,i[e]={value:s,var:l,varRef:u};continue}r=O(r,Object.entries((0,C.Kn)(s)?s:{default:s}).reduce((r,[i,o])=>{if(!o)return r;let a=function(e,r){let i=[String(e).split(".")[0],r].join(".");if(!t[i])return r;let{reference:o}=M(i,n);return o}(e,`${o}`);return"default"===i?r[l]=a:r[I.v?.[i]??i]={[l]:a},r},{})),i[e]={value:u,var:l,varRef:u}}return{cssVars:r,cssMap:i}}(t);return Object.assign(t,{__cssVars:{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0",...r},__cssMap:n,__breakpoints:(0,_.y)(t.breakpoints)}),t})(n),[n]);return(0,o.jsxs)(s.a,{theme:i,children:[(0,o.jsx)(B,{root:t}),r]})}function B(e){let{root:t=":host, :root"}=e,n=[t,"[data-theme]"].join(",");return(0,o.jsx)(y.xB,{styles:e=>({[n]:e.__cssVars})})}let[$,V]=(0,D.k)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function U(){let{colorMode:e}=(0,u.If)();return(0,o.jsx)(y.xB,{styles:t=>{let n=(0,L.W)(t,"styles.global"),r=(0,z.P)(n,{theme:t,colorMode:e});if(r)return(0,N.i)(r)(t)}})}var W=n(43415),q=n(16909);let H=e=>{let{children:t,colorModeManager:n,portalZIndex:r,resetScope:i,resetCSS:a=!0,theme:s={},environment:l,cssVarsRoot:u,disableEnvironment:c,disableGlobalStyle:d}=e,f=(0,o.jsx)(q.u,{environment:l,disabled:c,children:t});return(0,o.jsx)(F,{theme:s,cssVarsRoot:u,children:(0,o.jsxs)(g,{colorModeManager:n,options:s.config,children:[a?(0,o.jsx)(E,{scope:i}):(0,o.jsx)(S,{}),!d&&(0,o.jsx)(U,{}),r?(0,o.jsx)(W.h,{zIndex:r,children:f}):f]})})};var Z=n(76694);let G=(r=i.rS,function(e){let{children:t,theme:n=r,toastOptions:i,...a}=e;return(0,o.jsxs)(H,{theme:n,...a,children:[(0,o.jsx)(Z.Qi,{value:null==i?void 0:i.defaultOptions,children:t}),(0,o.jsx)(Z.VW,{...i})]})})},70549:function(e,t,n){"use strict";n.d(t,{X:function(){return E}});var r=n(20130),i=n(66861),o=n(11915),a=n(33164),s=n(90010),l=n(68312),u=n(66703);let[c,d]=(0,n(9396).k)({name:"CheckboxGroupContext",strict:!1});var f=n(49110);function h(e){return(0,r.jsx)(f.m.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:(0,r.jsx)("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function p(e){return(0,r.jsx)(f.m.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:(0,r.jsx)("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function m(e){let{isIndeterminate:t,isChecked:n,...i}=e;return n||t?(0,r.jsx)(f.m.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,r.jsx)(t?p:h,{...i})}):null}var g=n(50192),v=n(43906),y=n(35364);let b={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},x={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},w=(0,l.F4)({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),k=(0,l.F4)({from:{opacity:0},to:{opacity:1}}),S=(0,l.F4)({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),E=(0,v.G)(function(e,t){let n=d(),l={...n,...e},c=(0,y.j)("Checkbox",l),h=(0,i.L)(e),{spacing:p="0.5rem",className:v,children:E,iconColor:_,iconSize:C,icon:O=(0,r.jsx)(m,{}),isChecked:T,isDisabled:A=null==n?void 0:n.isDisabled,onChange:P,inputProps:I,...R}=h,j=T;(null==n?void 0:n.value)&&h.value&&(j=n.value.includes(h.value));let M=P;(null==n?void 0:n.onChange)&&h.value&&(M=(0,o.P)(n.onChange,P));let{state:N,getInputProps:D,getCheckboxProps:L,getLabelProps:z,getRootProps:F}=(0,g.O)({...R,isDisabled:A,isChecked:j,onChange:M}),B=function(e){let[t,n]=(0,u.useState)(e),[r,i]=(0,u.useState)(!1);return e!==t&&(i(!0),n(e)),r}(N.isChecked),$=(0,u.useMemo)(()=>({animation:B?N.isIndeterminate?"".concat(k," 20ms linear, ").concat(S," 200ms linear"):"".concat(w," 200ms linear"):void 0,...c.icon,...(0,a.o)({fontSize:C,color:_})}),[_,C,B,N.isIndeterminate,c.icon]),V=(0,u.cloneElement)(O,{__css:$,isIndeterminate:N.isIndeterminate,isChecked:N.isChecked});return(0,r.jsxs)(f.m.label,{__css:{...x,...c.container},className:(0,s.cx)("chakra-checkbox",v),...F(),children:[(0,r.jsx)("input",{className:"chakra-checkbox__input",...D(I,t)}),(0,r.jsx)(f.m.span,{__css:{...b,...c.control},className:"chakra-checkbox__control",...L(),children:V}),E&&(0,r.jsx)(f.m.span,{className:"chakra-checkbox__label",...z(),__css:{marginStart:p,...c.label},children:E})]})});E.displayName="Checkbox"},50192:function(e,t,n){"use strict";n.d(t,{O:function(){return p}});var r=n(55229),i=n(59129),o=n(95318),a=n(6461),s=n(40810),l=n(26934),u=n(11915),c=n(99466),d=n(66703),f=n(31172),h=n(28770);function p(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{isDisabled:t,isReadOnly:n,isRequired:p,isInvalid:g,id:v,onBlur:y,onFocus:b,"aria-describedby":x}=(0,f.K)(e),{defaultChecked:w,isChecked:k,isFocusable:S,onChange:E,isIndeterminate:_,name:C,value:O,tabIndex:T,"aria-label":A,"aria-labelledby":P,"aria-invalid":I,...R}=e,j=(0,s.C)(R,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),M=(0,r.W)(E),N=(0,r.W)(y),D=(0,r.W)(b),[L,z]=(0,d.useState)(!1),[F,B]=(0,d.useState)(!1),[$,V]=(0,d.useState)(!1),[U,W]=(0,d.useState)(!1);(0,d.useEffect)(()=>(0,c.BT)(z),[]);let q=(0,d.useRef)(null),[H,Z]=(0,d.useState)(!0),[G,K]=(0,d.useState)(!!w),Y=void 0!==k,X=Y?k:G,J=(0,d.useCallback)(e=>{if(n||t){e.preventDefault();return}Y||(X?K(e.currentTarget.checked):K(!!_||e.currentTarget.checked)),null==M||M(e)},[n,t,X,Y,_,M]);(0,i.G)(()=>{q.current&&(q.current.indeterminate=!!_)},[_]),(0,o.r)(()=>{t&&B(!1)},[t,B]),(0,i.G)(()=>{let e=q.current;if(!(null==e?void 0:e.form))return;let t=()=>{K(!!w)};return e.form.addEventListener("reset",t),()=>{var n;return null===(n=e.form)||void 0===n?void 0:n.removeEventListener("reset",t)}},[]);let Q=t&&!S,ee=(0,d.useCallback)(e=>{" "===e.key&&W(!0)},[W]),et=(0,d.useCallback)(e=>{" "===e.key&&W(!1)},[W]);(0,i.G)(()=>{q.current&&q.current.checked!==X&&K(q.current.checked)},[q.current]);let en=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:r,"data-active":(0,l.P)(U),"data-hover":(0,l.P)($),"data-checked":(0,l.P)(X),"data-focus":(0,l.P)(F),"data-focus-visible":(0,l.P)(F&&L),"data-indeterminate":(0,l.P)(_),"data-disabled":(0,l.P)(t),"data-invalid":(0,l.P)(g),"data-readonly":(0,l.P)(n),"aria-hidden":!0,onMouseDown:(0,u.v)(e.onMouseDown,e=>{F&&e.preventDefault(),W(!0)}),onMouseUp:(0,u.v)(e.onMouseUp,()=>W(!1)),onMouseEnter:(0,u.v)(e.onMouseEnter,()=>V(!0)),onMouseLeave:(0,u.v)(e.onMouseLeave,()=>V(!1))}},[U,X,t,F,L,$,_,g,n]),er=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:r,"data-active":(0,l.P)(U),"data-hover":(0,l.P)($),"data-checked":(0,l.P)(X),"data-focus":(0,l.P)(F),"data-focus-visible":(0,l.P)(F&&L),"data-indeterminate":(0,l.P)(_),"data-disabled":(0,l.P)(t),"data-invalid":(0,l.P)(g),"data-readonly":(0,l.P)(n)}},[U,X,t,F,L,$,_,g,n]),ei=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...j,htmlFor:H?v:void 0,...e,ref:(0,a.lq)(n,e=>{e&&Z("LABEL"===e.tagName)}),onClick:(0,u.v)(e.onClick,()=>{if(!H){var e;null===(e=q.current)||void 0===e||e.click(),requestAnimationFrame(()=>{var e;null===(e=q.current)||void 0===e||e.focus({preventScroll:!0})})}}),"data-disabled":(0,l.P)(t),"data-checked":(0,l.P)(X),"data-invalid":(0,l.P)(g)}},[j,t,X,g,H,v]),eo=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:(0,a.lq)(q,r),type:"checkbox",name:C,value:O,id:v,tabIndex:T,onChange:(0,u.v)(e.onChange,J),onBlur:(0,u.v)(e.onBlur,N,()=>B(!1)),onFocus:(0,u.v)(e.onFocus,D,()=>B(!0)),onKeyDown:(0,u.v)(e.onKeyDown,ee),onKeyUp:(0,u.v)(e.onKeyUp,et),required:p,checked:X,disabled:Q,readOnly:n,"aria-label":A,"aria-labelledby":P,"aria-invalid":I?!!I:g,"aria-describedby":x,"aria-disabled":t,"aria-checked":_?"mixed":X,style:h.N}},[C,O,v,T,J,N,D,ee,et,p,X,Q,n,A,P,I,g,x,t,_]),ea=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:n,onMouseDown:(0,u.v)(e.onMouseDown,m),"data-disabled":(0,l.P)(t),"data-checked":(0,l.P)(X),"data-invalid":(0,l.P)(g)}},[X,t,g]);return{state:{isInvalid:g,isFocused:F,isChecked:X,isActive:U,isHovered:$,isIndeterminate:_,isDisabled:t,isReadOnly:n,isRequired:p},getRootProps:ei,getCheckboxProps:en,getIndicatorProps:er,getInputProps:eo,getLabelProps:ea,htmlProps:j}}function m(e){e.preventDefault(),e.stopPropagation()}},74269:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(6461),i=n(26934),o=n(66703);function a(e){var t,n,r;let{tagName:i,isContentEditable:o}=null!==(r=null===(n=e.composedPath)||void 0===n?void 0:null===(t=n.call(e))||void 0===t?void 0:t[0])&&void 0!==r?r:e.target;return"INPUT"!==i&&"TEXTAREA"!==i&&!0!==o}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{ref:t,isDisabled:n,isFocusable:s,clickOnEnter:l=!0,clickOnSpace:u=!0,onMouseDown:c,onMouseUp:d,onClick:f,onKeyDown:h,onKeyUp:p,tabIndex:m,onMouseOver:g,onMouseLeave:v,...y}=e,[b,x]=(0,o.useState)(!0),[w,k]=(0,o.useState)(!1),S=function(){let e=(0,o.useRef)(new Map),t=e.current,n=(0,o.useCallback)((t,n,r,i)=>{e.current.set(r,{type:n,el:t,options:i}),t.addEventListener(n,r,i)},[]),r=(0,o.useCallback)((t,n,r,i)=>{t.removeEventListener(n,r,i),e.current.delete(r)},[]);return(0,o.useEffect)(()=>()=>{t.forEach((e,t)=>{r(e.el,e.type,t,e.options)})},[r,t]),{add:n,remove:r}}(),E=b?m:m||0,_=n&&!s,C=(0,o.useCallback)(e=>{if(n){e.stopPropagation(),e.preventDefault();return}e.currentTarget.focus(),null==f||f(e)},[n,f]),O=(0,o.useCallback)(e=>{w&&a(e)&&(e.preventDefault(),e.stopPropagation(),k(!1),S.remove(document,"keyup",O,!1))},[w,S]),T=(0,o.useCallback)(e=>{if(null==h||h(e),n||e.defaultPrevented||e.metaKey||!a(e.nativeEvent)||b)return;let t=l&&"Enter"===e.key;u&&" "===e.key&&(e.preventDefault(),k(!0)),t&&(e.preventDefault(),e.currentTarget.click()),S.add(document,"keyup",O,!1)},[n,b,h,l,u,S,O]),A=(0,o.useCallback)(e=>{null==p||p(e),!n&&!e.defaultPrevented&&!e.metaKey&&a(e.nativeEvent)&&!b&&u&&" "===e.key&&(e.preventDefault(),k(!1),e.currentTarget.click())},[u,b,n,p]),P=(0,o.useCallback)(e=>{0===e.button&&(k(!1),S.remove(document,"mouseup",P,!1))},[S]),I=(0,o.useCallback)(e=>{if(0===e.button){if(n){e.stopPropagation(),e.preventDefault();return}b||k(!0),e.currentTarget.focus({preventScroll:!0}),S.add(document,"mouseup",P,!1),null==c||c(e)}},[n,b,c,S,P]),R=(0,o.useCallback)(e=>{0===e.button&&(b||k(!1),null==d||d(e))},[d,b]),j=(0,o.useCallback)(e=>{if(n){e.preventDefault();return}null==g||g(e)},[n,g]),M=(0,o.useCallback)(e=>{w&&(e.preventDefault(),k(!1)),null==v||v(e)},[w,v]),N=(0,r.lq)(t,e=>{e&&"BUTTON"!==e.tagName&&x(!1)});return b?{...y,ref:N,type:"button","aria-disabled":_?void 0:n,disabled:_,onClick:C,onMouseDown:c,onMouseUp:d,onKeyUp:p,onKeyDown:h,onMouseOver:g,onMouseLeave:v}:{...y,ref:N,role:"button","data-active":(0,i.P)(w),"aria-disabled":n?"true":void 0,tabIndex:_?void 0:E,onClick:C,onMouseDown:I,onMouseUp:R,onKeyUp:A,onKeyDown:T,onMouseOver:j,onMouseLeave:M}}},10994:function(e,t,n){"use strict";n.d(t,{P:function(){return c}});var r=n(20130),i=n(66861),o=n(5845),a=n(43906),s=n(35364),l=n(49110);function u(e){return(0,r.jsx)(o.J,{focusable:"false","aria-hidden":!0,...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}let c=(0,a.G)(function(e,t){let n=(0,s.m)("CloseButton",e),{children:o,isDisabled:a,__css:c,...d}=(0,i.L)(e);return(0,r.jsx)(l.m.button,{type:"button","aria-label":"Close",ref:t,disabled:a,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...n,...c},...d,children:o||(0,r.jsx)(u,{width:"1em",height:"1em"})})});c.displayName="CloseButton"},80717:function(e,t,n){"use strict";n.d(t,{E:function(){return u}});var r=n(20130),i=n(66861),o=n(90010),a=n(43906),s=n(35364),l=n(49110);let u=(0,a.G)(function(e,t){let n=(0,s.m)("Code",e),{className:a,...u}=(0,i.L)(e);return(0,r.jsx)(l.m.code,{ref:t,className:(0,o.cx)("chakra-code",e.className),...u,__css:{display:"inline-block",...n}})});u.displayName="Code"},16276:function(e,t,n){"use strict";n.d(t,{If:function(){return o},ff:function(){return a},kc:function(){return i}});var r=n(66703);let i=(0,r.createContext)({});function o(){let e=(0,r.useContext)(i);if(void 0===e)throw Error("useColorMode must be used within a ColorModeProvider");return e}function a(e,t){let{colorMode:n}=o();return"dark"===n?t:e}i.displayName="ColorModeContext"},39577:function(e,t,n){"use strict";n.d(t,{n:function(){return g}});var r=n(6461),i=n(9396),o=n(66703);function a(e){return e.sort((e,t)=>{let n=e.compareDocumentPosition(t);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return -1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(!(n&Node.DOCUMENT_POSITION_DISCONNECTED)&&!(n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC))return 0;throw Error("Cannot sort the given nodes.")})}let s=e=>"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function l(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function u(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}let c="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,d=e=>e;var f=Object.defineProperty,h=(e,t,n)=>t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,p=(e,t,n)=>(h(e,"symbol"!=typeof t?t+"":t,n),n);class m{constructor(){var e=this;p(this,"descendants",new Map),p(this,"register",e=>{if(null!=e)return s(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),p(this,"unregister",e=>{this.descendants.delete(e);let t=a(Array.from(this.descendants.keys()));this.assignIndex(t)}),p(this,"destroy",()=>{this.descendants.clear()}),p(this,"assignIndex",e=>{this.descendants.forEach(t=>{let n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})}),p(this,"count",()=>this.descendants.size),p(this,"enabledCount",()=>this.enabledValues().length),p(this,"values",()=>Array.from(this.descendants.values()).sort((e,t)=>e.index-t.index)),p(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),p(this,"item",e=>{if(0!==this.count())return this.values()[e]}),p(this,"enabledItem",e=>{if(0!==this.enabledCount())return this.enabledValues()[e]}),p(this,"first",()=>this.item(0)),p(this,"firstEnabled",()=>this.enabledItem(0)),p(this,"last",()=>this.item(this.descendants.size-1)),p(this,"lastEnabled",()=>{let e=this.enabledValues().length-1;return this.enabledItem(e)}),p(this,"indexOf",e=>{var t,n;return e&&null!==(n=null===(t=this.descendants.get(e))||void 0===t?void 0:t.index)&&void 0!==n?n:-1}),p(this,"enabledIndexOf",e=>null==e?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),p(this,"next",function(t){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=l(t,e.count(),n);return e.item(r)}),p(this,"nextEnabled",function(t){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=e.item(t);if(!r)return;let i=l(e.enabledIndexOf(r.node),e.enabledCount(),n);return e.enabledItem(i)}),p(this,"prev",function(t){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=u(t,e.count()-1,n);return e.item(r)}),p(this,"prevEnabled",function(t){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=e.item(t);if(!r)return;let i=u(e.enabledIndexOf(r.node),e.enabledCount()-1,n);return e.enabledItem(i)}),p(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;let n=a(Array.from(this.descendants.keys()).concat(e));(null==t?void 0:t.disabled)&&(t.disabled=!!t.disabled);let r={node:e,index:-1,...t};this.descendants.set(e,r),this.assignIndex(n)})}}function g(){let[e,t]=(0,i.k)({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});return[e,t,()=>{let e=(0,o.useRef)(new m);return c(()=>()=>e.current.destroy()),e.current},e=>{let n=t(),[i,a]=(0,o.useState)(-1),s=(0,o.useRef)(null);c(()=>()=>{s.current&&n.unregister(s.current)},[]),c(()=>{if(!s.current)return;let e=Number(s.current.dataset.index);i==e||Number.isNaN(e)||a(e)});let l=e?d(n.register(e)):d(n.register);return{descendants:n,index:i,enabledIndex:n.enabledIndexOf(s.current),register:(0,r.lq)(l,s)}}]}},38622:function(e,t,n){"use strict";n.d(t,{i:function(){return u}});var r=n(20130),i=n(66861),o=n(90010),a=n(43906),s=n(35364),l=n(49110);let u=(0,a.G)(function(e,t){let{borderLeftWidth:n,borderBottomWidth:a,borderTopWidth:u,borderRightWidth:c,borderWidth:d,borderStyle:f,borderColor:h,...p}=(0,s.m)("Divider",e),{className:m,orientation:g="horizontal",__css:v,...y}=(0,i.L)(e);return(0,r.jsx)(l.m.hr,{ref:t,"aria-orientation":g,...y,__css:{...p,border:"0",borderColor:h,borderStyle:f,...{vertical:{borderLeftWidth:n||c||d||"1px",height:"100%"},horizontal:{borderBottomWidth:a||u||d||"1px",width:"100%"}}[g],...v},className:(0,o.cx)("chakra-divider",m)})});u.displayName="Divider"},6010:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r=n(66703);function i(e){var t;let n=r.version;return"string"!=typeof n||n.startsWith("18.")?null==e?void 0:e.ref:null==e?void 0:null===(t=e.props)||void 0===t?void 0:t.ref}},16909:function(e,t,n){"use strict";n.d(t,{O:function(){return s},u:function(){return l}});var r=n(20130),i=n(59129),o=n(66703);let a=(0,o.createContext)({getDocument:()=>document,getWindow:()=>window});function s(){let{defer:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[,t]=(0,o.useReducer)(e=>e+1,0);return(0,i.G)(()=>{e&&t()},[e]),(0,o.useContext)(a)}function l(e){let{children:t,environment:n,disabled:i}=e,s=(0,o.useRef)(null),l=(0,o.useMemo)(()=>n||{getDocument:()=>{var e,t;return null!==(t=null===(e=s.current)||void 0===e?void 0:e.ownerDocument)&&void 0!==t?t:document},getWindow:()=>{var e,t;return null!==(t=null===(e=s.current)||void 0===e?void 0:e.ownerDocument.defaultView)&&void 0!==t?t:window}},[n]),u=!i||!n;return(0,r.jsxs)(a.Provider,{value:l,children:[t,u&&(0,r.jsx)("span",{id:"__chakra_env",hidden:!0,ref:s})]})}a.displayName="EnvironmentContext",l.displayName="EnvironmentProvider"},31973:function(e,t,n){"use strict";n.d(t,{B1:function(){return u}});var r=n(93031);let i=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];var o=n(30171),a=n(58450);function s(e){return"function"==typeof e}let l=e=>function(){for(var t,n=arguments.length,o=Array(n),l=0;l<n;l++)o[l]=arguments[l];let u=[...o],d=o[o.length-1];return(t=d,(0,r.Kn)(t)&&i.every(e=>Object.prototype.hasOwnProperty.call(t,e))&&u.length>1)?u=u.slice(0,u.length-1):d=e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>t.reduce((e,t)=>t(e),e)})(...u.map(e=>t=>s(e)?e(t):function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return a({},...t,c)}(t,e)))(d)},u=l(o.rS);function c(e,t,n,i){return(s(e)||s(t))&&Object.prototype.hasOwnProperty.call(i,n)?function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return a({},s(e)?e(...r):e,s(t)?t(...r):t,c)}:(0,r.Kn)(e)&&(0,r.kJ)(t)||(0,r.kJ)(e)&&(0,r.Kn)(t)?t:void 0}l(o.wE)},51895:function(e,t,n){"use strict";n.d(t,{k:function(){return a}});var r=n(20130),i=n(43906),o=n(49110);let a=(0,i.G)(function(e,t){let{direction:n,align:i,justify:a,wrap:s,basis:l,grow:u,shrink:c,...d}=e;return(0,r.jsx)(o.m.div,{ref:t,__css:{display:"flex",flexDirection:n,alignItems:i,justifyContent:a,flexWrap:s,flexBasis:l,flexGrow:u,flexShrink:c},...d})});a.displayName="Flex"},22488:function(e,t,n){"use strict";n.d(t,{NI:function(){return v},NJ:function(){return g},e:function(){return p}});var r=n(20130),i=n(6461),o=n(66861),a=n(9396),s=n(26934),l=n(90010),u=n(66703),c=n(43906),d=n(35364),f=n(49110);let[h,p]=(0,a.k)({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<FormControl />\" "}),[m,g]=(0,a.k)({strict:!1,name:"FormControlContext"}),v=(0,c.G)(function(e,t){let n=(0,d.j)("Form",e),{getRootProps:a,htmlProps:c,...p}=function(e){let{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:a,...l}=e,c=(0,u.useId)(),d=t||"field-".concat(c),f="".concat(d,"-label"),h="".concat(d,"-feedback"),p="".concat(d,"-helptext"),[m,g]=(0,u.useState)(!1),[v,y]=(0,u.useState)(!1),[b,x]=(0,u.useState)(!1),w=(0,u.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{id:p,...e,ref:(0,i.lq)(t,e=>{e&&y(!0)})}},[p]),k=(0,u.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:t,"data-focus":(0,s.P)(b),"data-disabled":(0,s.P)(o),"data-invalid":(0,s.P)(r),"data-readonly":(0,s.P)(a),id:void 0!==e.id?e.id:f,htmlFor:void 0!==e.htmlFor?e.htmlFor:d}},[d,o,b,r,a,f]),S=(0,u.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{id:h,...e,ref:(0,i.lq)(t,e=>{e&&g(!0)}),"aria-live":"polite"}},[h]),E=(0,u.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,...l,ref:t,role:"group","data-focus":(0,s.P)(b),"data-disabled":(0,s.P)(o),"data-invalid":(0,s.P)(r),"data-readonly":(0,s.P)(a)}},[l,o,b,r,a]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!a,isDisabled:!!o,isFocused:!!b,onFocus:()=>x(!0),onBlur:()=>x(!1),hasFeedbackText:m,setHasFeedbackText:g,hasHelpText:v,setHasHelpText:y,id:d,labelId:f,feedbackId:h,helpTextId:p,htmlProps:l,getHelpTextProps:w,getErrorMessageProps:S,getRootProps:E,getLabelProps:k,getRequiredIndicatorProps:(0,u.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"}},[])}}((0,o.L)(e)),g=(0,l.cx)("chakra-form-control",e.className);return(0,r.jsx)(m,{value:p,children:(0,r.jsx)(h,{value:n,children:(0,r.jsx)(f.m.div,{...a({},t),className:g,__css:n.container})})})});v.displayName="FormControl",(0,c.G)(function(e,t){let n=g(),i=p(),o=(0,l.cx)("chakra-form__helper-text",e.className);return(0,r.jsx)(f.m.div,{...null==n?void 0:n.getHelpTextProps(e,t),__css:i.helperText,className:o})}).displayName="FormHelperText"},91153:function(e,t,n){"use strict";n.d(t,{J1:function(){return p}});var r=n(20130),i=n(66861),o=n(9396),a=n(90010),s=n(22488),l=n(5845),u=n(43906),c=n(35364),d=n(49110);let[f,h]=(0,o.k)({name:"FormErrorStylesContext",errorMessage:"useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<FormError />\" "}),p=(0,u.G)((e,t)=>{let n=(0,c.j)("FormError",e),o=(0,i.L)(e),l=(0,s.NJ)();return(null==l?void 0:l.isInvalid)?(0,r.jsx)(f,{value:n,children:(0,r.jsx)(d.m.div,{...null==l?void 0:l.getErrorMessageProps(o,t),className:(0,a.cx)("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...n.text}})}):null});p.displayName="FormErrorMessage",(0,u.G)((e,t)=>{let n=h(),i=(0,s.NJ)();if(!(null==i?void 0:i.isInvalid))return null;let o=(0,a.cx)("chakra-form__error-icon",e.className);return(0,r.jsx)(l.J,{ref:t,"aria-hidden":!0,...e,__css:n.icon,className:o,children:(0,r.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}).displayName="FormErrorIcon"},49151:function(e,t,n){"use strict";n.d(t,{l:function(){return c}});var r=n(20130),i=n(66861),o=n(90010),a=n(22488),s=n(43906),l=n(35364),u=n(49110);let c=(0,s.G)(function(e,t){var n;let s=(0,l.m)("FormLabel",e),c=(0,i.L)(e),{className:f,children:h,requiredIndicator:p=(0,r.jsx)(d,{}),optionalIndicator:m=null,...g}=c,v=(0,a.NJ)(),y=null!==(n=null==v?void 0:v.getLabelProps(g,t))&&void 0!==n?n:{ref:t,...g};return(0,r.jsxs)(u.m.label,{...y,className:(0,o.cx)("chakra-form__label",c.className),__css:{display:"block",textAlign:"start",...s},children:[h,(null==v?void 0:v.isRequired)?p:m]})});c.displayName="FormLabel";let d=(0,s.G)(function(e,t){let n=(0,a.NJ)(),i=(0,a.e)();if(!(null==n?void 0:n.isRequired))return null;let s=(0,o.cx)("chakra-form__required-indicator",e.className);return(0,r.jsx)(u.m.span,{...null==n?void 0:n.getRequiredIndicatorProps(e,t),__css:i.requiredIndicator,className:s})});d.displayName="RequiredIndicator"},31172:function(e,t,n){"use strict";n.d(t,{K:function(){return s},Y:function(){return a}});var r=n(26934),i=n(11915),o=n(22488);function a(e){let{isDisabled:t,isInvalid:n,isReadOnly:i,isRequired:o,...a}=s(e);return{...a,disabled:t,readOnly:i,required:o,"aria-invalid":(0,r.Q)(n),"aria-required":(0,r.Q)(o),"aria-readonly":(0,r.Q)(i)}}function s(e){var t,n,r;let a=(0,o.NJ)(),{id:s,disabled:l,readOnly:u,required:c,isRequired:d,isInvalid:f,isReadOnly:h,isDisabled:p,onFocus:m,onBlur:g,...v}=e,y=e["aria-describedby"]?[e["aria-describedby"]]:[];return(null==a?void 0:a.hasFeedbackText)&&(null==a?void 0:a.isInvalid)&&y.push(a.feedbackId),(null==a?void 0:a.hasHelpText)&&y.push(a.helpTextId),{...v,"aria-describedby":y.join(" ")||void 0,id:null!=s?s:null==a?void 0:a.id,isDisabled:null!==(t=null!=l?l:p)&&void 0!==t?t:null==a?void 0:a.isDisabled,isReadOnly:null!==(n=null!=u?u:h)&&void 0!==n?n:null==a?void 0:a.isReadOnly,isRequired:null!==(r=null!=c?c:d)&&void 0!==r?r:null==a?void 0:a.isRequired,isInvalid:null!=f?f:null==a?void 0:a.isInvalid,onFocus:(0,i.v)(null==a?void 0:a.onFocus,m),onBlur:(0,i.v)(null==a?void 0:a.onBlur,g)}}},72025:function(e,t,n){"use strict";n.d(t,{r:function(){return a}});var r=n(20130),i=n(43906),o=n(49110);let a=(0,i.G)(function(e,t){let{templateAreas:n,gap:i,rowGap:a,columnGap:s,column:l,row:u,autoFlow:c,autoRows:d,templateRows:f,autoColumns:h,templateColumns:p,...m}=e;return(0,r.jsx)(o.m.div,{ref:t,__css:{display:"grid",gridTemplateAreas:n,gridGap:i,gridRowGap:a,gridColumnGap:s,gridAutoColumns:h,gridColumn:l,gridRow:u,gridAutoFlow:c,gridAutoRows:d,gridTemplateRows:f,gridTemplateColumns:p},...m})});a.displayName="Grid"},73463:function(e,t,n){"use strict";n.d(t,{y:function(){return d}});var r=n(20130),i=n(66703),o=n(66861),a=n(28561),s=n(43906),l=n(35364);let u=(0,s.G)(function(e,t){let n=(0,l.m)("Mark",e),i=(0,o.L)(e);return(0,r.jsx)(a.x,{ref:t,...i,as:"mark",__css:{bg:"transparent",whiteSpace:"nowrap",...n}})}),c=e=>e.replace(/[|\\{}()[\]^$+*?.-]/g,e=>"\\".concat(e));function d(e){let{children:t,query:n,styles:o}=e;if("string"!=typeof t)throw Error("The children prop of Highlight must be a string");let a=function(e){let{text:t,query:n}=e;return(0,i.useMemo)(()=>(function(e){let{text:t,query:n}=e,r=function(e){let t=e.filter(e=>0!==e.length).map(e=>c(e.trim()));return t.length?RegExp("(".concat(t.join("|"),")"),"ig"):null}(Array.isArray(n)?n:[n]);return r?t.split(r).filter(Boolean).map(e=>({text:e,match:r.test(e)})):[{text:t,match:!1}]})({text:t,query:n}),[t,n])}({query:n,text:t});return(0,r.jsx)(r.Fragment,{children:a.map((e,t)=>e.match?(0,r.jsx)(u,{sx:o,children:e.text},t):(0,r.jsx)(i.Fragment,{children:e.text},t))})}},64274:function(e,t,n){"use strict";n.d(t,{I:function(){return s}});var r=n(20130),i=n(66703),o=n(5845),a=n(43906);function s(e){let{viewBox:t="0 0 24 24",d:n,displayName:s,defaultProps:l={}}=e,u=i.Children.toArray(e.path),c=(0,a.G)((e,i)=>(0,r.jsx)(o.J,{ref:i,viewBox:t,...l,...e,children:u.length?u:(0,r.jsx)("path",{fill:"currentColor",d:n})}));return c.displayName=s,c}},5845:function(e,t,n){"use strict";n.d(t,{J:function(){return u}});var r=n(20130),i=n(90010),o=n(43906),a=n(35364),s=n(49110);let l={path:(0,r.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,r.jsx)("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),(0,r.jsx)("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),(0,r.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},u=(0,o.G)((e,t)=>{let{as:n,viewBox:o,color:u="currentColor",focusable:c=!1,children:d,className:f,__css:h,...p}=e,m=(0,i.cx)("chakra-icon",f),g=(0,a.m)("Icon",e),v={ref:t,focusable:c,className:m,__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:u,...h,...g}},y=null!=o?o:l.viewBox;if(n&&"string"!=typeof n)return(0,r.jsx)(s.m.svg,{as:n,...v,...p});let b=null!=d?d:l.path;return(0,r.jsx)(s.m.svg,{verticalAlign:"middle",viewBox:y,...v,...p,children:b})});u.displayName="Icon"},8656:function(e,t,n){"use strict";n.d(t,{E:function(){return d}});var r=n(20130),i=n(40810),o=n(43906);let a=(0,o.G)(function(e,t){let{htmlWidth:n,htmlHeight:i,alt:o,...a}=e;return(0,r.jsx)("img",{width:n,height:i,ref:t,alt:o,...a})});a.displayName="NativeImage";var s=n(59129),l=n(66703);let u=(e,t)=>"loaded"!==e&&"beforeLoadOrError"===t||"failed"===e&&"onError"===t;var c=n(49110);let d=(0,o.G)(function(e,t){let{fallbackSrc:n,fallback:o,src:d,srcSet:f,align:h,fit:p,loading:m,ignoreFallback:g,crossOrigin:v,fallbackStrategy:y="beforeLoadOrError",referrerPolicy:b,...x}=e,w=void 0!==n||void 0!==o,k=null!=m||g||!w,S=u(function(e){let{loading:t,src:n,srcSet:r,onLoad:i,onError:o,crossOrigin:a,sizes:u,ignoreFallback:c}=e,[d,f]=(0,l.useState)("pending");(0,l.useEffect)(()=>{f(n?"loading":"pending")},[n]);let h=(0,l.useRef)(null),p=(0,l.useCallback)(()=>{if(!n)return;m();let e=new Image;e.src=n,a&&(e.crossOrigin=a),r&&(e.srcset=r),u&&(e.sizes=u),t&&(e.loading=t),e.onload=e=>{m(),f("loaded"),null==i||i(e)},e.onerror=e=>{m(),f("failed"),null==o||o(e)},h.current=e},[n,a,r,u,i,o,t]),m=()=>{h.current&&(h.current.onload=null,h.current.onerror=null,h.current=null)};return(0,s.G)(()=>{if(!c)return"loading"===d&&p(),()=>{m()}},[d,p,c]),c?"loaded":d}({...e,crossOrigin:v,ignoreFallback:k}),y),E={ref:t,objectFit:p,objectPosition:h,...k?x:(0,i.C)(x,["onError","onLoad"])};return S?o||(0,r.jsx)(c.m.img,{as:a,className:"chakra-image__placeholder",src:n,...E}):(0,r.jsx)(c.m.img,{as:a,src:d,srcSet:f,crossOrigin:v,loading:m,referrerPolicy:b,className:"chakra-image",...E})});d.displayName="Image"},2097:function(e,t,n){"use strict";n.d(t,{x:function(){return d}});var r=n(20130),i=n(90010),o=n(27951),a=n(49110),s=n(43906);let l=(0,a.m)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),u=(0,s.G)(function(e,t){var n,i;let{placement:a="left",...s}=e,u=(0,o.m)(),c=u.field,d={["left"===a?"insetStart":"insetEnd"]:"0",width:null!==(n=null==c?void 0:c.height)&&void 0!==n?n:null==c?void 0:c.h,height:null!==(i=null==c?void 0:c.height)&&void 0!==i?i:null==c?void 0:c.h,fontSize:null==c?void 0:c.fontSize,...u.element};return(0,r.jsx)(l,{ref:t,__css:d,...s})});u.id="InputElement",u.displayName="InputElement";let c=(0,s.G)(function(e,t){let{className:n,...o}=e,a=(0,i.cx)("chakra-input__left-element",n);return(0,r.jsx)(u,{ref:t,placement:"left",className:a,...o})});c.id="InputLeftElement",c.displayName="InputLeftElement";let d=(0,s.G)(function(e,t){let{className:n,...o}=e,a=(0,i.cx)("chakra-input__right-element",n);return(0,r.jsx)(u,{ref:t,placement:"right",className:a,...o})});d.id="InputRightElement",d.displayName="InputRightElement"},27951:function(e,t,n){"use strict";n.d(t,{B:function(){return m},m:function(){return p}});var r=n(20130),i=n(66861),o=n(9396),a=n(90010),s=n(84535),l=n(33164),u=n(66703),c=n(43906),d=n(35364),f=n(49110);let[h,p]=(0,o.k)({name:"InputGroupStylesContext",errorMessage:"useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<InputGroup />\" "}),m=(0,c.G)(function(e,t){let n=(0,d.j)("Input",e),{children:o,className:c,...p}=(0,i.L)(e),m=(0,a.cx)("chakra-input__group",c),g={},v=(0,s.W)(o),y=n.field;v.forEach(e=>{var t,r;n&&(y&&"InputLeftElement"===e.type.id&&(g.paddingStart=null!==(t=y.height)&&void 0!==t?t:y.h),y&&"InputRightElement"===e.type.id&&(g.paddingEnd=null!==(r=y.height)&&void 0!==r?r:y.h),"InputRightAddon"===e.type.id&&(g.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(g.borderStartRadius=0))});let b=v.map(t=>{var n,r;let i=(0,l.o)({size:(null===(n=t.props)||void 0===n?void 0:n.size)||e.size,variant:(null===(r=t.props)||void 0===r?void 0:r.variant)||e.variant});return"Input"!==t.type.id?(0,u.cloneElement)(t,i):(0,u.cloneElement)(t,Object.assign(i,g,t.props))});return(0,r.jsx)(f.m.div,{className:m,ref:t,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...n.group},"data-group":!0,...p,children:(0,r.jsx)(h,{value:n,children:b})})});m.displayName="InputGroup"},87452:function(e,t,n){"use strict";n.d(t,{I:function(){return c}});var r=n(20130),i=n(66861),o=n(90010),a=n(31172),s=n(43906),l=n(35364),u=n(49110);let c=(0,s.G)(function(e,t){let{htmlSize:n,...s}=e,c=(0,l.j)("Input",s),d=(0,i.L)(s),f=(0,a.Y)(d),h=(0,o.cx)("chakra-input",e.className);return(0,r.jsx)(u.m.input,{size:n,...f,__css:c.field,ref:t,className:h})});c.displayName="Input",c.id="Input"},90545:function(e,t,n){"use strict";n.d(t,{r:function(){return u}});var r=n(20130),i=n(66861),o=n(90010),a=n(43906),s=n(35364),l=n(49110);let u=(0,a.G)(function(e,t){let n=(0,s.m)("Link",e),{className:a,isExternal:u,...c}=(0,i.L)(e);return(0,r.jsx)(l.m.a,{target:u?"_blank":void 0,rel:u?"noopener":void 0,ref:t,className:(0,o.cx)("chakra-link",a),...c,__css:n})});u.displayName="Link"},29537:function(e,t,n){"use strict";n.d(t,{HC:function(){return m},QI:function(){return p},aV:function(){return h}});var r=n(20130),i=n(66861),o=n(9396),a=n(84535),s=n(5845),l=n(43906),u=n(35364),c=n(49110);let[d,f]=(0,o.k)({name:"ListStylesContext",errorMessage:"useListStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<List />\" "}),h=(0,l.G)(function(e,t){let n=(0,u.j)("List",e),{children:o,styleType:s="none",stylePosition:l,spacing:f,...h}=(0,i.L)(e),p=(0,a.W)(o);return(0,r.jsx)(d,{value:n,children:(0,r.jsx)(c.m.ul,{ref:t,listStyleType:s,listStylePosition:l,role:"list",__css:{...n.container,...f?{"& > *:not(style) ~ *:not(style)":{mt:f}}:{}},...h,children:p})})});h.displayName="List",(0,l.G)((e,t)=>{let{as:n,...i}=e;return(0,r.jsx)(h,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...i})}).displayName="OrderedList";let p=(0,l.G)(function(e,t){let{as:n,...i}=e;return(0,r.jsx)(h,{ref:t,as:"ul",styleType:"initial",marginStart:"1em",...i})});p.displayName="UnorderedList";let m=(0,l.G)(function(e,t){let n=f();return(0,r.jsx)(c.m.li,{ref:t,...e,__css:n.item})});m.displayName="ListItem",(0,l.G)(function(e,t){let n=f();return(0,r.jsx)(s.J,{ref:t,role:"presentation",...e,__css:n.icon})}).displayName="ListIcon"},20395:function(e,t,n){"use strict";n.d(t,{S:function(){return l}});var r=n(93031),i=n(69475),o=n(66703),a=n(16909),s=n(35518);function l(e,t){var n;let l=function(e){var t,n;let i=(0,r.Kn)(e)?e:{fallback:null!=e?e:"base"},l=(0,s.F)().__breakpoints.details.map(e=>{let{minMaxQuery:t,breakpoint:n}=e;return{breakpoint:n,query:t.replace("@media screen and ","")}}),u=l.map(e=>e.breakpoint===i.fallback),c=(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{ssr:n=!0,fallback:r}=t,{getWindow:i}=(0,a.O)(),s=Array.isArray(e)?e:[e],l=Array.isArray(r)?r:[r];l=l.filter(e=>null!=e);let[u,c]=(0,o.useState)(()=>s.map((e,t)=>({media:e,matches:n?!!l[t]:i().matchMedia(e).matches})));return(0,o.useEffect)(()=>{let e=i();c(s.map(t=>({media:t,matches:e.matchMedia(t).matches})));let t=s.map(t=>e.matchMedia(t)),n=e=>{c(t=>t.slice().map(t=>t.media===e.media?{...t,matches:e.matches}:t))};return t.forEach(e=>{"function"==typeof e.addListener?e.addListener(n):e.addEventListener("change",n)}),()=>{t.forEach(e=>{"function"==typeof e.removeListener?e.removeListener(n):e.removeEventListener("change",n)})}},[i]),u.map(e=>e.matches)})(l.map(e=>e.query),{fallback:u,ssr:i.ssr}).findIndex(e=>!0==e);return null!==(n=null===(t=l[c])||void 0===t?void 0:t.breakpoint)&&void 0!==n?n:i.fallback}((0,r.Kn)(t)?t:{fallback:null!=t?t:"base"}),u=(0,s.F)();if(!l)return;let c=Array.from((null===(n=u.__breakpoints)||void 0===n?void 0:n.keys)||[]);return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.AV,r=Object.keys(e).indexOf(t);if(-1!==r)return e[t];let o=n.indexOf(t);for(;o>=0;){let t=n[o];if(e.hasOwnProperty(t)){r=o;break}o-=1}if(-1!==r)return e[n[r]]}(Array.isArray(e)?Object.fromEntries(Object.entries((0,i.Yq)(e,c)).map(e=>{let[t,n]=e;return[t,n]})):e,l,c)}},76421:function(e,t,n){"use strict";n.d(t,{j:function(){return c}});var r=n(20130),i=n(90010),o=n(91504),a=n(37261),s=n(43906),l=n(49110);let u=(0,s.G)((e,t)=>{let n=(0,o.x)();return(0,r.jsx)(l.m.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...n.button}})}),c=(0,s.G)((e,t)=>{let{children:n,as:o,...s}=e,c=(0,a.zZ)(s,t),d=o||u;return(0,r.jsx)(d,{...c,className:(0,i.cx)("chakra-menu__menu-button",e.className),children:(0,r.jsx)(l.m.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:e.children})})});c.displayName="MenuButton"},28469:function(e,t,n){"use strict";n.d(t,{R:function(){return s}});var r=n(20130),i=n(90010),o=n(91504),a=n(49110);let s=e=>{let{className:t,...n}=e,s=(0,o.x)();return(0,r.jsx)(a.m.hr,{"aria-orientation":"horizontal",className:(0,i.cx)("chakra-menu__divider",t),...n,__css:s.divider})};s.displayName="MenuDivider"},64871:function(e,t,n){"use strict";n.d(t,{k:function(){return l}});var r=n(20130),i=n(90010),o=n(91504),a=n(43906),s=n(49110);let l=(0,a.G)((e,t)=>{let{title:n,children:a,className:l,...u}=e,c=(0,i.cx)("chakra-menu__group__title",l),d=(0,o.x)();return(0,r.jsxs)("div",{ref:t,className:"chakra-menu__group",role:"group",children:[n&&(0,r.jsx)(s.m.p,{className:c,...u,__css:d.groupTitle,children:n}),a]})});l.displayName="MenuGroup"},33028:function(e,t,n){"use strict";n.d(t,{O:function(){return l}});var r=n(20130),i=n(90010),o=n(66703),a=n(91504),s=n(49110);let l=e=>{let{className:t,children:n,...l}=e,u=(0,a.x)(),c=o.Children.only(n),d=(0,o.isValidElement)(c)?(0,o.cloneElement)(c,{focusable:"false","aria-hidden":!0,className:(0,i.cx)("chakra-menu__icon",c.props.className)}):null,f=(0,i.cx)("chakra-menu__icon-wrapper",t);return(0,r.jsx)(s.m.span,{className:f,...l,__css:u.icon,children:d})};l.displayName="MenuIcon"},31319:function(e,t,n){"use strict";n.d(t,{s:function(){return h}});var r=n(20130),i=n(90010),o=n(91504),a=n(43906),s=n(49110);let l=(0,a.G)((e,t)=>{let n=(0,o.x)();return(0,r.jsx)(s.m.span,{ref:t,...e,__css:n.command,className:"chakra-menu__command"})});l.displayName="MenuCommand";var u=n(33028),c=n(66703);let d=(0,a.G)((e,t)=>{let{type:n,...i}=e,a=(0,o.x)(),l=i.as||n?null!=n?n:void 0:"button",u=(0,c.useMemo)(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...a.item}),[a.item]);return(0,r.jsx)(s.m.button,{ref:t,type:l,...i,__css:u})});var f=n(37261);let h=(0,a.G)((e,t)=>{let{icon:n,iconSpacing:o="0.75rem",command:a,commandSpacing:s="0.75rem",children:c,...h}=e,p=(0,f.iX)(h,t),m=n||a?(0,r.jsx)("span",{style:{pointerEvents:"none",flex:1},children:c}):c;return(0,r.jsxs)(d,{...p,className:(0,i.cx)("chakra-menu__menuitem",p.className),children:[n&&(0,r.jsx)(u.O,{fontSize:"0.8em",marginEnd:o,children:n}),m,a&&(0,r.jsx)(l,{marginStart:s,children:a})]})});h.displayName="MenuItem"},12353:function(e,t,n){"use strict";n.d(t,{q:function(){return h}});var r=n(20130),i=n(90010),o=n(11915),a=n(42349),s=n(91504),l=n(37261),u=n(49110),c=n(43906);let d={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},f=(0,u.m)(a.E.div),h=(0,c.G)(function(e,t){var n,a;let{rootProps:c,motionProps:h,...p}=e,{isOpen:m,onTransitionEnd:g,unstable__animationState:v}=(0,l.Xh)(),y=(0,l._l)(p,t),b=(0,l.Qh)(c),x=(0,s.x)();return(0,r.jsx)(u.m.div,{...b,__css:{zIndex:null!==(a=e.zIndex)&&void 0!==a?a:null===(n=x.list)||void 0===n?void 0:n.zIndex},children:(0,r.jsx)(f,{variants:d,initial:!1,animate:m?"enter":"exit",__css:{outline:0,...x.list},...h,...y,className:(0,i.cx)("chakra-menu__menu-list",y.className),onUpdate:g,onAnimationComplete:(0,o.P)(v.onComplete,y.onAnimationComplete)})})});h.displayName="MenuList"},91504:function(e,t,n){"use strict";n.d(t,{v:function(){return h},x:function(){return f}});var r=n(20130),i=n(66861),o=n(9396),a=n(69072),s=n(66703),l=n(37261),u=n(35518),c=n(35364);let[d,f]=(0,o.k)({name:"MenuStylesContext",errorMessage:"useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Menu />\" "}),h=e=>{let{children:t}=e,n=(0,c.j)("Menu",e),o=(0,i.L)(e),{direction:f}=(0,u.F)(),{descendants:h,...p}=(0,l.H9)({...o,direction:f}),m=(0,s.useMemo)(()=>p,[p]),{isOpen:g,onClose:v,forceUpdate:y}=m;return(0,r.jsx)(l.wN,{value:h,children:(0,r.jsx)(l.Kb,{value:m,children:(0,r.jsx)(d,{value:n,children:(0,a.P)(t,{isOpen:g,onClose:v,forceUpdate:y})})})})};h.displayName="Menu"},37261:function(e,t,n){"use strict";n.d(t,{wN:function(){return v},Kb:function(){return w},H9:function(){return E},zZ:function(){return _},Xh:function(){return k},iX:function(){return A},_l:function(){return O},Qh:function(){return T}});var r=n(85071),i=n(18404),o=n(15749),a=n(19774),s=n(66703),l=n(95318),u=n(6461),c=n(9396),d=n(26934),f=n(11915),h=n(27425),p=n(39577),m=n(48961),g=n(74269);let[v,y,b,x]=(0,p.n)(),[w,k]=(0,c.k)({strict:!1,name:"MenuContext"});function S(e){var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document}function E(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{id:t,closeOnSelect:n=!0,closeOnBlur:u=!0,initialFocusRef:c,autoSelect:d=!0,isLazy:f,isOpen:h,defaultIsOpen:p,onClose:g,onOpen:v,placement:y="bottom-start",lazyBehavior:x="unmount",direction:w,computePositionOnMount:k=!1,...E}=e,_=(0,s.useRef)(null),C=(0,s.useRef)(null),O=(0,s.useRef)(!0),T=b(),A=(0,s.useCallback)(()=>{requestAnimationFrame(()=>{var e;null===(e=_.current)||void 0===e||e.focus({preventScroll:!1})})},[]),P=(0,s.useCallback)(()=>{let e=setTimeout(()=>{var e,t;if(c)null===(e=c.current)||void 0===e||e.focus();else if(T.count()){let e=T.firstEnabled();e&&F(e.index)}else null===(t=_.current)||void 0===t||t.focus({preventScroll:!1})});W.current.add(e)},[T,c]),I=(0,s.useCallback)(()=>{let e=setTimeout(()=>{if(T.count()){let e=T.lastEnabled();e&&F(e.index)}else{var e;null===(e=_.current)||void 0===e||e.focus({preventScroll:!1})}});W.current.add(e)},[T]),R=(0,s.useCallback)(()=>{null==v||v(),d?P():A()},[d,P,A,v]),{isOpen:j,onOpen:M,onClose:N,onToggle:D}=(0,r.q)({isOpen:h,defaultIsOpen:p,onClose:g,onOpen:R});(0,i.O)({enabled:j&&u,ref:_,handler:e=>{var t,n,r,i;let o=null!==(i=null===(n=e.composedPath)||void 0===n?void 0:null===(t=n.call(e))||void 0===t?void 0:t[0])&&void 0!==i?i:e.target;(null===(r=C.current)||void 0===r?void 0:r.contains(o))||N()}});let L=(0,m.D)({...E,enabled:j||k,placement:y,direction:w}),[z,F]=(0,s.useState)(-1);(0,o.C)(_,{focusRef:C,visible:j,shouldFocus:!0});let B=(0,a.h)({isOpen:j,ref:_}),[$,V]=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let i=function(e,t){let n=(0,s.useId)();return(0,s.useMemo)(()=>e||[void 0,n].filter(Boolean).join("-"),[e,void 0,n])}(e);return(0,s.useMemo)(()=>n.map(e=>"".concat(e,"-").concat(i)),[i,n])}(t,"menu-button","menu-list"),U=(0,s.useCallback)(()=>{M(),A()},[M,A]),W=(0,s.useRef)(new Set([]));return(0,s.useEffect)(()=>{let e=W.current;return()=>{e.forEach(e=>clearTimeout(e)),e.clear()}},[]),(0,l.r)(()=>{var e;j||(F(-1),null===(e=_.current)||void 0===e||e.scrollTo(0,0))},[j]),(0,l.r)(()=>{j&&-1===z&&A()},[z,j]),(0,s.useEffect)(()=>{var e;if(!j)return;let t=T.item(z);null==t||null===(e=t.node)||void 0===e||e.focus({preventScroll:!O.current})},[T,z,j]),{openAndFocusMenu:U,openAndFocusFirstItem:(0,s.useCallback)(()=>{M(),P()},[P,M]),openAndFocusLastItem:(0,s.useCallback)(()=>{O.current=!0,M(),I()},[M,I]),onTransitionEnd:(0,s.useCallback)(()=>{var e,t;let n=S(_.current),r=null===(e=_.current)||void 0===e?void 0:e.contains(n.activeElement);if(!(j&&!r))return;let i=null===(t=T.item(z))||void 0===t?void 0:t.node;null==i||i.focus({preventScroll:!O.current})},[j,z,T]),unstable__animationState:B,descendants:T,popper:L,buttonId:$,menuId:V,forceUpdate:L.forceUpdate,orientation:"vertical",isOpen:j,onToggle:D,onOpen:M,onClose:N,menuRef:_,buttonRef:C,focusedIndex:z,closeOnSelect:n,closeOnBlur:u,autoSelect:d,setFocusedIndex:F,isLazy:f,lazyBehavior:x,initialFocusRef:c,scrollIntoViewRef:O}}function _(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=k(),{onToggle:r,popper:i,openAndFocusFirstItem:o,openAndFocusLastItem:a,scrollIntoViewRef:l}=n,c=(0,s.useCallback)(e=>{let t={Enter:o,ArrowDown:o,ArrowUp:a}[e.key];t&&(l.current=!0,e.preventDefault(),e.stopPropagation(),t(e))},[o,a,l]);return{...e,ref:(0,u.lq)(n.buttonRef,t,i.referenceRef),id:n.buttonId,"data-active":(0,d.P)(n.isOpen),"aria-expanded":n.isOpen,"aria-haspopup":"menu","aria-controls":n.menuId,onClick:(0,f.v)(e.onClick,r),onKeyDown:(0,f.v)(e.onKeyDown,c)}}function C(e){var t;return function(e){var t;if(!(null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE))return!1;let n=null!==(t=e.ownerDocument.defaultView)&&void 0!==t?t:window;return e instanceof n.HTMLElement}(e)&&!!(null==e?void 0:null===(t=e.getAttribute("role"))||void 0===t?void 0:t.startsWith("menuitem"))}function O(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=k();if(!n)throw Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");let{focusedIndex:r,setFocusedIndex:i,menuRef:o,isOpen:a,onClose:l,menuId:c,isLazy:d,lazyBehavior:p,scrollIntoViewRef:m,unstable__animationState:g}=n,v=y(),b=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{timeout:t=300,preventDefault:n=()=>!0}=e,[r,i]=(0,s.useState)([]),o=(0,s.useRef)(void 0),a=()=>{o.current&&(clearTimeout(o.current),o.current=null)},l=()=>{a(),o.current=setTimeout(()=>{i([]),o.current=null},t)};return(0,s.useEffect)(()=>a,[]),function(e){return t=>{if("Backspace"===t.key){let e=[...r];e.pop(),i(e);return}if(function(e){let{key:t}=e;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(t)){let o=r.concat(t.key);n(t)&&(t.preventDefault(),t.stopPropagation()),i(o),e(o.join("")),l()}}}}({preventDefault:e=>" "!==e.key&&C(e.target)}),x=(0,s.useCallback)(e=>{if(!e.currentTarget.contains(e.target))return;let t={Tab:e=>e.preventDefault(),Escape:e=>{e.stopPropagation(),l()},ArrowDown:()=>{var e;m.current=!0;let t=null!==(e=v.nextEnabled(r))&&void 0!==e?e:v.firstEnabled();t&&i(t.index)},ArrowUp:()=>{var e;m.current=!0;let t=null!==(e=v.prevEnabled(r))&&void 0!==e?e:v.firstEnabled();t&&i(t.index)}}[e.key];if(t){e.preventDefault(),t(e);return}let n=b(e=>{let t=function(e,t,n,r){if(null==t)return r;if(!r)return e.find(e=>n(e).toLowerCase().startsWith(t.toLowerCase()));let i=e.filter(e=>n(e).toLowerCase().startsWith(t.toLowerCase()));if(i.length>0){let t;return i.includes(r)?((t=i.indexOf(r)+1)===i.length&&(t=0),i[t]):(t=e.indexOf(i[0]),e[t])}return r}(v.values(),e,e=>{var t,n;return null!==(n=null==e?void 0:null===(t=e.node)||void 0===t?void 0:t.textContent)&&void 0!==n?n:""},v.item(r));t&&i(v.indexOf(t.node))});C(e.target)&&n(e)},[v,r,b,l,i,m]),w=(0,s.useRef)(!1);a&&(w.current=!0);let S=(0,h.k)({wasSelected:w.current,enabled:d,mode:p,isSelected:g.present});return{...e,ref:(0,u.lq)(o,t),children:S?e.children:null,tabIndex:-1,role:"menu",id:c,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:(0,f.v)(e.onKeyDown,x)}}function T(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{popper:t,isOpen:n}=k();return t.getPopperProps({...e,style:{visibility:n?"visible":"hidden",...e.style}})}function A(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,{onMouseEnter:n,onMouseMove:r,onMouseLeave:i,onClick:o,onFocus:a,isDisabled:l,isFocusable:c,closeOnSelect:d,type:f,...h}=e,{setFocusedIndex:p,focusedIndex:m,closeOnSelect:v,onClose:y,menuId:b,scrollIntoViewRef:w}=k(),E=(0,s.useRef)(null),_="".concat(b,"-menuitem-").concat((0,s.useId)()),{index:O,register:T}=x({disabled:l&&!c}),A=(0,s.useCallback)(e=>{null==n||n(e),l||(w.current=!1,p(O))},[p,O,l,n,w]),P=(0,s.useCallback)(e=>{var t;null==r||r(e),E.current&&S(t=E.current).activeElement!==t&&A(e)},[A,r]),I=(0,s.useCallback)(e=>{null==i||i(e),l||p(-1)},[p,l,i]),R=(0,s.useCallback)(e=>{null==o||o(e),C(e.currentTarget)&&(null!=d?d:v)&&y()},[y,o,v,d]),j=(0,s.useCallback)(e=>{null==a||a(e),p(O)},[p,a,O]),M=O===m,N=(0,g.h)({onClick:R,onFocus:j,onMouseEnter:A,onMouseMove:P,onMouseLeave:I,ref:(0,u.lq)(T,E,t),isDisabled:l,isFocusable:c});return{...h,...N,type:null!=f?f:N.type,id:_,role:"menuitem",tabIndex:M?0:-1}}},12276:function(e,t,n){"use strict";n.d(t,{_T:function(){return s},aR:function(){return a}});var r=n(20130),i=n(32850),o=n(44016);function a(e){let{leastDestructiveRef:t,...n}=e;return(0,r.jsx)(i.u_,{...n,initialFocusRef:t})}let s=(0,n(43906).G)((e,t)=>(0,r.jsx)(o.h,{ref:t,role:"alertdialog",...e}))},38029:function(e,t,n){"use strict";n.d(t,{f:function(){return u}});var r=n(20130),i=n(90010),o=n(66703),a=n(32850),s=n(43906),l=n(49110);let u=(0,s.G)((e,t)=>{let{className:n,...s}=e,{bodyId:u,setBodyMounted:c}=(0,a.vR)();(0,o.useEffect)(()=>(c(!0),()=>c(!1)),[c]);let d=(0,i.cx)("chakra-modal__body",n),f=(0,a.I_)();return(0,r.jsx)(l.m.div,{ref:t,className:d,id:u,...s,__css:f.body})});u.displayName="ModalBody"},60667:function(e,t,n){"use strict";n.d(t,{o:function(){return l}});var r=n(20130),i=n(90010),o=n(11915),a=n(32850),s=n(10994);let l=(0,n(43906).G)((e,t)=>{let{onClick:n,className:l,...u}=e,{onClose:c}=(0,a.vR)(),d=(0,i.cx)("chakra-modal__close-btn",l),f=(0,a.I_)();return(0,r.jsx)(s.P,{ref:t,__css:f.closeButton,className:d,onClick:(0,o.v)(n,e=>{e.stopPropagation(),c()}),...u})});l.displayName="ModalCloseButton"},44016:function(e,t,n){"use strict";n.d(t,{h:function(){return tX}});var r,i,o,a,s,l=n(20130),u=n(71034),c=n(90010),d=n(32850),f=n(86231),h=n(66703),p=n(95379),m="right-scroll-bar-position",g="width-before-scroll-bar";function v(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var y="undefined"!=typeof window?h.useLayoutEffect:h.useEffect,b=new WeakMap;function x(e,t){var n,r,i,o=(n=t||null,r=function(t){return e.forEach(function(e){return v(e,t)})},(i=(0,h.useState)(function(){return{value:n,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,i.facade);return y(function(){var t=b.get(o);if(t){var n=new Set(t),r=new Set(e),i=o.current;n.forEach(function(e){r.has(e)||v(e,null)}),r.forEach(function(e){n.has(e)||v(e,i)})}b.set(o,e)},[e]),o}function w(e){return e}function k(e,t){void 0===t&&(t=w);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var o=function(){var n=t;t=[],n.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}}}}}function S(e,t){return void 0===t&&(t=w),k(e,t)}function E(e){void 0===e&&(e={});var t=k(null);return t.options=(0,p.pi)({async:!0,ssr:!1},e),t}var _=E(),C=function(){},O=h.forwardRef(function(e,t){var n=h.useRef(null),r=h.useState({onScrollCapture:C,onWheelCapture:C,onTouchMoveCapture:C}),i=r[0],o=r[1],a=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,m=e.noIsolation,g=e.inert,v=e.allowPinchZoom,y=e.as,b=e.gapMode,w=(0,p._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=x([n,t]),S=(0,p.pi)((0,p.pi)({},w),i);return h.createElement(h.Fragment,null,c&&h.createElement(f,{sideCar:_,removeScrollBar:u,shards:d,noIsolation:m,inert:g,setCallbacks:o,allowPinchZoom:!!v,lockRef:n,gapMode:b}),a?h.cloneElement(h.Children.only(s),(0,p.pi)((0,p.pi)({},S),{ref:k})):h.createElement(void 0===y?"div":y,(0,p.pi)({},S,{className:l,ref:k}),s))});O.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},O.classNames={fullWidth:g,zeroRight:m};var T=function(e){var t=e.sideCar,n=(0,p._T)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return h.createElement(r,(0,p.pi)({},n))};T.isSideCarExport=!0;var A=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=a||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},P=function(){var e=A();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},I=function(){var e=P();return function(t){return e(t.styles,t.dynamic),null}},R={left:0,top:0,right:0,gap:0},j=function(e){return parseInt(e||"",10)||0},M=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[j(n),j(r),j(i)]},N=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return R;var t=M(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},D=I(),L="data-scroll-locked",z=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(L,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\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(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(m," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(g," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(m," .").concat(m," {\n right: 0 ").concat(r,";\n }\n \n .").concat(g," .").concat(g," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(L,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},F=function(){var e=parseInt(document.body.getAttribute(L)||"0",10);return isFinite(e)?e:0},B=function(){h.useEffect(function(){return document.body.setAttribute(L,(F()+1).toString()),function(){var e=F()-1;e<=0?document.body.removeAttribute(L):document.body.setAttribute(L,e.toString())}},[])},$=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;B();var o=h.useMemo(function(){return N(i)},[i]);return h.createElement(D,{styles:z(o,!t,i,n?"":"!important")})},V=!1;if("undefined"!=typeof window)try{var U=Object.defineProperty({},"passive",{get:function(){return V=!0,!0}});window.addEventListener("test",U,U),window.removeEventListener("test",U,U)}catch(e){V=!1}var W=!!V&&{passive:!1},q=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},H=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Z(e,r)){var i=G(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Z=function(e,t){return"v"===e?q(t,"overflowY"):q(t,"overflowX")},G=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},K=function(e,t,n,r,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*r,l=n.target,u=t.contains(l),c=!1,d=s>0,f=0,h=0;do{var p=G(e,l),m=p[0],g=p[1]-p[2]-a*m;(m||g)&&Z(e,l)&&(f+=g,h+=m),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&1>Math.abs(f)||!i&&s>f)?c=!0:!d&&(i&&1>Math.abs(h)||!i&&-s>h)&&(c=!0),c},Y=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},X=function(e){return[e.deltaX,e.deltaY]},J=function(e){return e&&"current"in e?e.current:e},Q=0,ee=[],et=(r=function(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),i=h.useState(Q++)[0],o=h.useState(I)[0],a=h.useRef(e);h.useEffect(function(){a.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,p.ev)([e.lockRef.current],(e.shards||[]).map(J),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=h.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var i,o=Y(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-o[0],u="deltaY"in e?e.deltaY:s[1]-o[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=H(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=H(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var h=r.current||i;return K(h,t,e,"h"===h?l:u,!0)},[]),l=h.useCallback(function(e){if(ee.length&&ee[ee.length-1]===o){var n="deltaY"in e?X(e):Y(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(a.current.shards||[]).map(J).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=h.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,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}(r)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),c=h.useCallback(function(e){n.current=Y(e),r.current=void 0},[]),d=h.useCallback(function(t){u(t.type,X(t),t.target,s(t,e.lockRef.current))},[]),f=h.useCallback(function(t){u(t.type,Y(t),t.target,s(t,e.lockRef.current))},[]);h.useEffect(function(){return ee.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,W),document.addEventListener("touchmove",l,W),document.addEventListener("touchstart",c,W),function(){ee=ee.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,W),document.removeEventListener("touchmove",l,W),document.removeEventListener("touchstart",c,W)}},[]);var m=e.removeScrollBar,g=e.inert;return h.createElement(h.Fragment,null,g?h.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,m?h.createElement($,{gapMode:e.gapMode}):null)},_.useMedium(r),T),en=h.forwardRef(function(e,t){return h.createElement(O,(0,p.pi)({},e,{ref:t,sideCar:et}))});en.classNames=O.classNames;var er=n(2610),ei=n(48111),eo=n(52409),ea="data-focus-lock",es="data-focus-lock-disabled",el={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},eu=S({},function(e){return{target:e.target,currentTarget:e.currentTarget}}),ec=S(),ed=S(),ef=E({async:!0,ssr:"undefined"!=typeof document}),eh=(0,h.createContext)(void 0),ep=[],em=(0,h.forwardRef)(function(e,t){var n,r=(0,h.useState)(),i=r[0],o=r[1],a=(0,h.useRef)(),s=(0,h.useRef)(!1),l=(0,h.useRef)(null),u=(0,h.useState)({})[1],c=e.children,d=e.disabled,f=void 0!==d&&d,p=e.noFocusGuards,m=void 0!==p&&p,g=e.persistentFocus,v=e.crossFrame,y=e.autoFocus,b=(e.allowTextSelection,e.group),w=e.className,k=e.whiteList,S=e.hasPositiveIndices,E=e.shards,_=void 0===E?ep:E,C=e.as,O=e.lockProps,T=e.sideCar,A=e.returnFocus,P=void 0!==A&&A,I=e.focusOptions,R=e.onActivation,j=e.onDeactivation,M=(0,h.useState)({})[0],N=(0,h.useCallback)(function(e){var t=e.captureFocusRestore;if(!l.current){var n,r=null==(n=document)?void 0:n.activeElement;l.current=r,r!==document.body&&(l.current=t(r))}a.current&&R&&R(a.current),s.current=!0,u()},[R]),D=(0,h.useCallback)(function(){s.current=!1,j&&j(a.current),u()},[j]),L=(0,h.useCallback)(function(e){var t=l.current;if(t){var n=("function"==typeof t?t():t)||document.body,r="function"==typeof P?P(n):P;if(r){var i="object"==typeof r?r:void 0;l.current=null,e?Promise.resolve().then(function(){return n.focus(i)}):n.focus(i)}}},[P]),z=(0,h.useCallback)(function(e){s.current&&eu.useMedium(e)},[]),F=ec.useMedium,B=(0,h.useCallback)(function(e){a.current!==e&&(a.current=e,o(e))},[]),$=(0,eo.Z)(((n={})[es]=f&&"disabled",n[ea]=b,n),void 0===O?{}:O),V=!0!==m,U=V&&"tail"!==m,W=x([t,B]),q=(0,h.useMemo)(function(){return{observed:a,shards:_,enabled:!f,active:s.current}},[f,s.current,_,i]);return h.createElement(h.Fragment,null,V&&[h.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:f?-1:0,style:el}),S?h.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:f?-1:1,style:el}):null],!f&&h.createElement(T,{id:M,sideCar:ef,observed:i,disabled:f,persistentFocus:void 0!==g&&g,crossFrame:void 0===v||v,autoFocus:void 0===y||y,whiteList:k,shards:_,onActivation:N,onDeactivation:D,returnFocus:L,focusOptions:I,noFocusGuards:m}),h.createElement(void 0===C?"div":C,(0,eo.Z)({ref:W},$,{className:w,onBlur:F,onFocus:z}),h.createElement(eh.Provider,{value:q},c)),U&&h.createElement("div",{"data-focus-guard":!0,tabIndex:f?-1:0,style:el}))});em.propTypes={};var eg=n(2890),ev=n(64729),ey=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},eb=function(e){return Array.isArray(e)?e:[e]},ex=function(e){return Array.isArray(e)?e[0]:e},ew=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!!t&&!!t.getPropertyValue&&("none"===t.getPropertyValue("display")||"hidden"===t.getPropertyValue("visibility"))},ek=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},eS=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},eE=function(e,t){var n,r=e.get(t);if(void 0!==r)return r;var i=(n=eE.bind(void 0,e),!t||eS(t)||!ew(t)&&!t.hasAttribute("inert")&&n(ek(t)));return e.set(t,i),i},e_=function(e,t){var n,r=e.get(t);if(void 0!==r)return r;var i=(n=e_.bind(void 0,e),!t||!!eS(t)||!!eA(t)&&n(ek(t)));return e.set(t,i),i},eC=function(e){return e.dataset},eO=function(e){return"INPUT"===e.tagName},eT=function(e){return eO(e)&&"radio"===e.type},eA=function(e){return![!0,"true",""].includes(e.getAttribute("data-no-autofocus"))},eP=function(e){var t;return!!(e&&(null===(t=eC(e))||void 0===t?void 0:t.focusGuard))},eI=function(e){return!eP(e)},eR=function(e){return!!e},ej=function(e,t){var n=Math.max(0,e.tabIndex),r=Math.max(0,t.tabIndex),i=n-r,o=e.index-t.index;if(i){if(!n)return 1;if(!r)return -1}return i||o},eM=function(e,t,n){return ey(e).map(function(e,t){var r=e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex;return{node:e,index:t,tabIndex:n&&-1===r?(e.dataset||{}).focusGuard?0:-1:r}}).filter(function(e){return!t||e.tabIndex>=0}).sort(ej)},eN="button:enabled,select:enabled,textarea:enabled,input:enabled,a[href],area[href],summary,iframe,object,embed,audio[controls],video[controls],[tabindex],[contenteditable],[autofocus]",eD="".concat(eN,", [data-focus-guard]"),eL=function(e,t){return ey((e.shadowRoot||e).children).reduce(function(e,n){return e.concat(n.matches(t?eD:eN)?[n]:[],eL(n))},[])},ez=function(e,t){var n;return e instanceof HTMLIFrameElement&&(null===(n=e.contentDocument)||void 0===n?void 0:n.body)?eF([e.contentDocument.body],t):[e]},eF=function(e,t){return e.reduce(function(e,n){var r,i=eL(n,t),o=(r=[]).concat.apply(r,i.map(function(e){return ez(e,t)}));return e.concat(o,n.parentNode?ey(n.parentNode.querySelectorAll(eN)).filter(function(e){return e===n}):[])},[])},eB=function(e,t){return ey(e).filter(function(e){return eE(t,e)}).filter(function(e){return!((eO(e)||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))})},e$=function(e,t){return void 0===t&&(t=new Map),ey(e).filter(function(e){return e_(t,e)})},eV=function(e,t,n){return eM(eB(eF(e,n),t),!0,n)},eU=function(e,t){return eM(eB(eF(e),t),!1)},eW=function(e,t){return e.shadowRoot?eW(e.shadowRoot,t):!!(void 0!==Object.getPrototypeOf(e).contains&&Object.getPrototypeOf(e).contains.call(e,t))||ey(e.children).some(function(e){var n;if(e instanceof HTMLIFrameElement){var r=null===(n=e.contentDocument)||void 0===n?void 0:n.body;return!!r&&eW(r,t)}return eW(e,t)})},eq=function(e){try{return e()}catch(e){return}},eH=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?eH(t.shadowRoot):t instanceof HTMLIFrameElement&&eq(function(){return t.contentWindow.document})?eH(t.contentWindow.document):t}},eZ=function(e){void 0===e&&(e=document);var t=eH(e);return!!t&&ey(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some(function(e){return eW(e,t)})},eG=function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var i=r+1;i<n;i+=1){var o=e[r].compareDocumentPosition(e[i]);(o&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(e,n){return!t.has(n)})},eK=function(e){return e.parentNode?eK(e.parentNode):e},eY=function(e){return eb(e).filter(Boolean).reduce(function(e,t){var n=t.getAttribute(ea);return e.push.apply(e,n?eG(ey(eK(t).querySelectorAll("[".concat(ea,'="').concat(n,'"]:not([').concat(es,'="disabled"])')))):[t]),e},[])},eX=function(e,t){return void 0===t&&(t=eH(ex(e).ownerDocument)),!!t&&(!t.dataset||!t.dataset.focusGuard)&&eY(e).some(function(e){var n;return eW(e,t)||(n=t,!!ey(e.querySelectorAll("iframe")).some(function(e){return e===n}))})},eJ=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},eQ=function(e,t){return eT(e)&&e.name&&t.filter(eT).filter(function(t){return t.name===e.name}).filter(function(e){return e.checked})[0]||e},e0=function(e){var t=new Set;return e.forEach(function(n){return t.add(eQ(n,e))}),e.filter(function(e){return t.has(e)})},e1=function(e){return e[0]&&e.length>1?eQ(e[0],e):e[0]},e2=function(e,t){return e.indexOf(eQ(t,e))},e5="NEW_FOCUS",e3=function(e,t,n,r,i){var o=e.length,a=e[0],s=e[o-1],l=eP(r);if(!(r&&e.indexOf(r)>=0)){var u=void 0!==r?n.indexOf(r):-1,c=i?n.indexOf(i):u,d=i?e.indexOf(i):-1;if(-1===u)return -1!==d?d:e5;if(-1===d)return e5;var f=u-c,h=n.indexOf(a),p=n.indexOf(s),m=e0(n),g=void 0!==r?m.indexOf(r):-1,v=i?m.indexOf(i):g,y=m.filter(function(e){return e.tabIndex>=0}),b=void 0!==r?y.indexOf(r):-1,x=i?y.indexOf(i):b;if(!f&&d>=0||0===t.length)return d;var w=e2(e,t[0]),k=e2(e,t[t.length-1]);if(u<=h&&l&&Math.abs(f)>1)return k;if(u>=p&&l&&Math.abs(f)>1)return w;if(f&&Math.abs(b>=0&&x>=0?x-b:v-g)>1)return d;if(u<=h)return k;if(u>p)return w;if(f)return Math.abs(f)>1?d:(o+d+f)%o}},e4=function(e,t,n){var r=e$(e.map(function(e){return e.node}).filter(function(e){var t,r=null===(t=eC(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==r&&"false"!==r||n.indexOf(e)>=0}));return r&&r.length?e1(r):e1(e$(t))},e6=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&e6(e.parentNode.host||e.parentNode,t),t},e9=function(e,t){for(var n=e6(e),r=e6(t),i=0;i<n.length;i+=1){var o=n[i];if(r.indexOf(o)>=0)return o}return!1},e8=function(e,t,n){var r=eb(e),i=eb(t),o=r[0],a=!1;return i.filter(Boolean).forEach(function(e){a=e9(a||e,e)||a,n.filter(Boolean).forEach(function(e){var t=e9(o,e);t&&(a=!a||eW(t,a)?t:e9(t,a))})}),a},e7=function(e,t){return e.reduce(function(e,n){return e.concat(eB(ey(n.querySelectorAll("[".concat("data-autofocus-inside","]"))).map(function(e){return eF([e])}).reduce(function(e,t){return e.concat(t)},[]),t))},[])},te=function(e,t){var n=new Map;return t.forEach(function(e){return n.set(e.node,e)}),e.map(function(e){return n.get(e)}).filter(eR)},tt=function(e,t){var n=eH(eb(e).length>0?document:ex(e).ownerDocument),r=eY(e).filter(eI),i=e8(n||e,e,r),o=new Map,a=eU(r,o),s=a.filter(function(e){return eI(e.node)});if(s[0]){var l=eU([i],o).map(function(e){return e.node}),u=te(l,s),c=u.map(function(e){return e.node}),d=u.filter(function(e){return e.tabIndex>=0}).map(function(e){return e.node}),f=e3(c,d,l,n,t);if(f===e5){var h=e4(a,d,e7(r,o))||e4(a,c,e7(r,o));return h?{node:h}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===f?f:u[f]}},tn=0,tr=!1,ti=function(e,t,n){void 0===n&&(n={});var r=tt(e,t);if(!tr&&r){if(tn>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),tr=!0,setTimeout(function(){tr=!1},1);return}tn++,eJ(r.node,n.focusOptions),tn--}};function to(e){if(!e)return null;if("undefined"==typeof WeakRef)return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(null==t?void 0:t.deref())||null}}var ta=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:to(n),parent:to(n.parentElement),left:to(n.previousElementSibling),right:to(n.nextElementSibling)}),n=n.parentElement;return{element:to(e),stack:t,ownerDocument:e.ownerDocument}},ts=function(e){if(e)for(var t,n,r,i,o,a=e.stack,s=e.ownerDocument,l=new Map,u=0;u<a.length;u++){var c=a[u],d=null===(t=c.parent)||void 0===t?void 0:t.call(c);if(d&&s.contains(d)){for(var f=null===(n=c.left)||void 0===n?void 0:n.call(c),h=c.current(),p=d.contains(h)?h:void 0,m=null===(r=c.right)||void 0===r?void 0:r.call(c),g=eV([d],l),v=null!==(o=null!==(i=null!=p?p:null==f?void 0:f.nextElementSibling)&&void 0!==i?i:m)&&void 0!==o?o:f;v;){for(var y=0;y<g.length;y++){var b=g[y];if(null==v?void 0:v.contains(b.node))return b.node}v=v.nextElementSibling}if(g.length)return g[0].node}}},tl=function(e){var t=ta(e);return function(){return ts(t)}},tu=function(e){var t=eY(e).filter(eI),n=eM(eF([e8(e,e,t)],!0),!0,!0),r=eF(t,!1);return n.map(function(e){var t=e.node;return{node:t,index:e.index,lockItem:r.indexOf(t)>=0,guard:eP(t)}})},tc=function(e,t,n){if(!e||!t)return console.error("no element or scope given"),{};var r=eb(t);if(r.every(function(t){return!eW(t,e)}))return console.error("Active element is not contained in the scope"),{};var i=n?eV(r,new Map):eU(r,new Map),o=i.findIndex(function(t){return t.node===e});if(-1!==o)return{prev:i[o-1],next:i[o+1],first:i[0],last:i[i.length-1]}},td=function(e,t){var n=t?eV(eb(e),new Map):eU(eb(e),new Map);return{first:n[0],last:n[n.length-1]}},tf=function(e,t,n){void 0===t&&(t={});var r,i=(r=t,Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},r)),o=tc(e,i.scope,i.onlyTabbable);if(o){var a=n(o,i.cycle);a&&eJ(a.node,i.focusOptions)}},th=function(e,t,n){var r,i=td(e,null===(r=t.onlyTabbable)||void 0===r||r)[n];i&&eJ(i.node,t.focusOptions)};function tp(e){setTimeout(e,1)}var tm=function(e){return e&&"current"in e?e.current:e},tg=function(){return document&&document.activeElement===document.body},tv=null,ty=null,tb=function(){return null},tx=null,tw=!1,tk=!1,tS=function(e,t){tx={observerNode:e,portaledElement:t}};function tE(e,t,n,r){var i=null,o=e;do{var a=r[o];if(a.guard)a.node.dataset.focusAutoGuard&&(i=a);else if(a.lockItem){if(o!==e)return;i=null}else break}while((o+=n)!==t);i&&(i.node.tabIndex=0)}var t_=function(e){return eU(e,new Map)},tC=function(){var e=!1;if(tv){var t=tv,n=t.observed,r=t.persistentFocus,i=t.autoFocus,o=t.shards,a=t.crossFrame,s=t.focusOptions,l=t.noFocusGuards,u=n||tx&&tx.portaledElement;if(tg()&&ty&&ty!==document.body&&(!document.body.contains(ty)||!t_([(f=ty).parentNode]).some(function(e){return e.node===f}))){var c=tb();c&&c.focus()}var d=document&&document.activeElement;if(u){var f,h=[u].concat(o.map(tm).filter(Boolean));if((!d||(tv.whiteList||function(){return!0})(d))&&(r||function(){if(!(a?!!tw:"meanwhile"===tw)||!l||!ty||tk)return!1;var e=t_(h),t=e.findIndex(function(e){return e.node===ty});return 0===t||t===e.length-1}()||!(tg()||eZ())||!ty&&i)&&(u&&!(eX(h)||d&&h.some(function(e){return function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))}(d,e,e)})||tx&&tx.portaledElement===d)&&(document&&!ty&&d&&!i?(d.blur&&d.blur(),document.body.focus()):(e=ti(h,ty,{focusOptions:s}),tx={})),(ty=document&&document.activeElement)!==document.body&&(tb=tl(ty)),tw=!1),document&&d!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var p=document&&document.activeElement,m=tu(h),g=m.map(function(e){return e.node}).indexOf(p);g>-1&&(m.filter(function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard}).forEach(function(e){return e.node.removeAttribute("tabIndex")}),tE(g,m.length,1,m),tE(g,-1,-1,m))}}}return e},tO=function(e){tC()&&e&&(e.stopPropagation(),e.preventDefault())},tT=function(){return tp(tC)},tA=function(){tk=!0},tP=function(){tk=!1,tw="just",tp(function(){tw="meanwhile"})},tI=function(){document.addEventListener("focusin",tO),document.addEventListener("focusout",tT),window.addEventListener("focus",tA),window.addEventListener("blur",tP)},tR=function(){document.removeEventListener("focusin",tO),document.removeEventListener("focusout",tT),window.removeEventListener("focus",tA),window.removeEventListener("blur",tP)},tj={moveFocusInside:ti,focusInside:eX,focusNextElement:function(e,t){void 0===t&&(t={}),tf(e,t,function(e,t){var n=e.next,r=e.first;return n||t&&r})},focusPrevElement:function(e,t){void 0===t&&(t={}),tf(e,t,function(e,t){var n=e.prev,r=e.last;return n||t&&r})},focusFirstElement:function(e,t){void 0===t&&(t={}),th(e,t,"first")},focusLastElement:function(e,t){void 0===t&&(t={}),th(e,t,"last")},captureFocusRestore:tl};eu.assignSyncMedium(function(e){var t=e.target,n=e.currentTarget;n.contains(t)||tS(n,t)}),ec.assignMedium(tT),ed.assignMedium(function(e){return e(tj)});var tM=(i=function(e){return e.filter(function(e){return!e.disabled})},o=function(e){var t=e.slice(-1)[0];t&&!tv&&tI();var n=tv,r=n&&t&&t.id===n.id;tv=t,!n||r||(n.onDeactivation(),e.filter(function(e){return e.id===n.id}).length||n.returnFocus(!t)),t?(ty=null,r&&n.observed===t.observed||t.onActivation(tj),tC(!0),tp(tC)):(tR(),ty=null)},function(e){var t,n=[];function r(){o(t=i(n.map(function(e){return e.props})))}var a=function(i){function o(){return i.apply(this,arguments)||this}o.prototype=Object.create(i.prototype),o.prototype.constructor=o,(0,eg.Z)(o,i),o.peek=function(){return t};var a=o.prototype;return a.componentDidMount=function(){n.push(this),r()},a.componentDidUpdate=function(){r()},a.componentWillUnmount=function(){var e=n.indexOf(this);n.splice(e,1),r()},a.render=function(){return h.createElement(e,this.props)},o}(h.PureComponent);return(0,ev.Z)(a,"displayName","SideEffect("+(e.displayName||e.name||"Component")+")"),a})(function(){return null}),tN=(0,h.forwardRef)(function(e,t){return h.createElement(em,(0,eo.Z)({sideCar:tM,ref:t},e))}),tD=em.propTypes||{};tD.sideCar,(0,ei.Z)(tD,["sideCar"]),tN.propTypes={};var tL=n(29239);let tz=null!==(s=tN.default)&&void 0!==s?s:tN,tF=e=>{let{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:i,children:o,isDisabled:a,autoFocus:s,persistentFocus:u,lockFocusAcrossFrames:c}=e,d=(0,h.useCallback)(()=>{(null==t?void 0:t.current)?t.current.focus():(null==r?void 0:r.current)&&0===(0,tL.t5)(r.current).length&&requestAnimationFrame(()=>{var e;null===(e=r.current)||void 0===e||e.focus()})},[t,r]),f=(0,h.useCallback)(()=>{var e;null==n||null===(e=n.current)||void 0===e||e.focus()},[n]),p=i&&!n;return(0,l.jsx)(tz,{crossFrame:c,persistentFocus:u,autoFocus:s,disabled:a,onActivation:d,onDeactivation:f,returnFocus:p,children:o})};function tB(e){let{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:i,blockScrollOnMount:o,allowPinchZoom:a,finalFocusRef:s,returnFocusOnClose:u,preserveScrollBarGap:c,lockFocusAcrossFrames:p,isOpen:m}=(0,d.vR)(),[g,v]=(0,f.oO)();(0,h.useEffect)(()=>{!g&&v&&setTimeout(v)},[g,v]);let y=(0,er.$)(r,m);return(0,l.jsx)(tF,{autoFocus:t,isDisabled:!n,initialFocusRef:i,finalFocusRef:s,restoreFocus:u,contentRef:r,lockFocusAcrossFrames:p,children:(0,l.jsx)(en,{removeScrollBar:!c,allowPinchZoom:a,enabled:1===y&&o,forwardProps:!0,children:e.children})})}tF.displayName="FocusLock";var t$=n(42349),tV=n(40880),tU=n(35278);let tW={initial:"initial",animate:"enter",exit:"exit",variants:{initial:e=>{var t;let{offsetX:n,offsetY:r,transition:i,transitionEnd:o,delay:a}=e;return{opacity:0,x:n,y:r,transition:null!==(t=null==i?void 0:i.exit)&&void 0!==t?t:tU.p$.exit(tU.Sh.exit,a),transitionEnd:null==o?void 0:o.exit}},enter:e=>{var t;let{transition:n,transitionEnd:r,delay:i}=e;return{opacity:1,x:0,y:0,transition:null!==(t=null==n?void 0:n.enter)&&void 0!==t?t:tU.p$.enter(tU.Sh.enter,i),transitionEnd:null==r?void 0:r.enter}},exit:e=>{var t;let{offsetY:n,offsetX:r,transition:i,transitionEnd:o,reverse:a,delay:s}=e,l={x:r,y:n};return{opacity:0,transition:null!==(t=null==i?void 0:i.exit)&&void 0!==t?t:tU.p$.exit(tU.Sh.exit,s),...a?{...l,transitionEnd:null==o?void 0:o.exit}:{transitionEnd:{...l,...null==o?void 0:o.exit}}}}}};(0,h.forwardRef)(function(e,t){let{unmountOnExit:n,in:r,reverse:i=!0,className:o,offsetX:a=0,offsetY:s=8,transition:u,transitionEnd:d,delay:f,animatePresenceProps:h,...p}=e,m=!n||r&&n,g=r||n?"enter":"exit",v={offsetX:a,offsetY:s,reverse:i,transition:u,transitionEnd:d,delay:f};return(0,l.jsx)(tV.M,{...h,custom:v,children:m&&(0,l.jsx)(t$.E.div,{ref:t,className:(0,c.cx)("chakra-offset-slide",o),custom:v,...tW,animate:g,...p})})}).displayName="SlideFade";let tq={initial:"exit",animate:"enter",exit:"exit",variants:{exit:e=>{var t;let{reverse:n,initialScale:r,transition:i,transitionEnd:o,delay:a}=e;return{opacity:0,...n?{scale:r,transitionEnd:null==o?void 0:o.exit}:{transitionEnd:{scale:r,...null==o?void 0:o.exit}},transition:null!==(t=null==i?void 0:i.exit)&&void 0!==t?t:tU.p$.exit(tU.Sh.exit,a)}},enter:e=>{var t;let{transitionEnd:n,transition:r,delay:i}=e;return{opacity:1,scale:1,transition:null!==(t=null==r?void 0:r.enter)&&void 0!==t?t:tU.p$.enter(tU.Sh.enter,i),transitionEnd:null==n?void 0:n.enter}}}};(0,h.forwardRef)(function(e,t){let{unmountOnExit:n,in:r,reverse:i=!0,initialScale:o=.95,className:a,transition:s,transitionEnd:u,delay:d,animatePresenceProps:f,...h}=e,p=!n||r&&n,m=r||n?"enter":"exit",g={initialScale:o,reverse:i,transition:s,transitionEnd:u,delay:d};return(0,l.jsx)(tV.M,{...f,custom:g,children:p&&(0,l.jsx)(t$.E.div,{ref:t,className:(0,c.cx)("chakra-offset-slide",a),...tq,animate:m,custom:g,...h})})}).displayName="ScaleFade";var tH=n(49110);let tZ={slideInBottom:{...tW,custom:{offsetY:16,reverse:!0}},slideInRight:{...tW,custom:{offsetX:16,reverse:!0}},slideInTop:{...tW,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...tW,custom:{offsetX:-16,reverse:!0}},scale:{...tq,custom:{initialScale:.95,reverse:!0}},none:{}},tG=(0,tH.m)(t$.E.section),tK=e=>tZ[e||"none"],tY=(0,h.forwardRef)((e,t)=>{let{preset:n,motionProps:r=tK(n),...i}=e;return(0,l.jsx)(tG,{ref:t,...r,...i})});tY.displayName="ModalTransition";let tX=(0,n(43906).G)((e,t)=>{let{className:n,children:r,containerProps:i,motionProps:o,...a}=e,{getDialogProps:s,getDialogContainerProps:f}=(0,d.vR)(),h=s(a,t),p=f(i),m=(0,c.cx)("chakra-modal__content",n),g=(0,d.I_)(),v=(0,u.k0)({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...g.dialog}),y=(0,u.k0)({display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...g.dialogContainer}),{motionPreset:b}=(0,d.vR)();return(0,l.jsx)(tB,{children:(0,l.jsx)(tH.m.div,{...p,className:"chakra-modal__content-container",tabIndex:-1,__css:y,children:(0,l.jsx)(tY,{preset:b,motionProps:o,className:m,...h,__css:v,children:r})})})});tX.displayName="ModalContent"},61608:function(e,t,n){"use strict";n.d(t,{m:function(){return u}});var r=n(20130),i=n(71034),o=n(90010),a=n(32850),s=n(43906),l=n(49110);let u=(0,s.G)((e,t)=>{let{className:n,...s}=e,u=(0,o.cx)("chakra-modal__footer",n),c=(0,a.I_)(),d=(0,i.k0)({display:"flex",alignItems:"center",justifyContent:"flex-end",...c.footer});return(0,r.jsx)(l.m.footer,{ref:t,...s,__css:d,className:u})});u.displayName="ModalFooter"},58407:function(e,t,n){"use strict";n.d(t,{x:function(){return c}});var r=n(20130),i=n(71034),o=n(90010),a=n(66703),s=n(32850),l=n(43906),u=n(49110);let c=(0,l.G)((e,t)=>{let{className:n,...l}=e,{headerId:c,setHeaderMounted:d}=(0,s.vR)();(0,a.useEffect)(()=>(d(!0),()=>d(!1)),[d]);let f=(0,o.cx)("chakra-modal__header",n),h=(0,s.I_)(),p=(0,i.k0)({flex:0,...h.header});return(0,r.jsx)(u.m.header,{ref:t,className:f,id:c,...l,__css:p})});c.displayName="ModalHeader"},2610:function(e,t,n){"use strict";n.d(t,{$:function(){return u},m:function(){return l}});var r=n(66703),i=Object.defineProperty,o=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,a=(e,t,n)=>(o(e,"symbol"!=typeof t?t+"":t,n),n);class s{add(e){return this.modals.add(e),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return!!e&&e===Array.from(this.modals)[this.modals.size-1]}constructor(){a(this,"modals"),this.modals=new Set}}let l=new s;function u(e,t){let[n,i]=(0,r.useState)(0);return(0,r.useEffect)(()=>{let n=e.current;if(n)return t&&i(l.add(n)),()=>{l.remove(n),i(0)}},[t,e]),n}},36198:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(20130),i=n(90010),o=n(42349),a=n(32850),s=n(40880),l=n(66703),u=n(35278);let c={initial:"exit",animate:"enter",exit:"exit",variants:{enter:function(){var e;let{transition:t,transitionEnd:n,delay:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{opacity:1,transition:null!==(e=null==t?void 0:t.enter)&&void 0!==e?e:u.p$.enter(u.Sh.enter,r),transitionEnd:null==n?void 0:n.enter}},exit:function(){var e;let{transition:t,transitionEnd:n,delay:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{opacity:0,transition:null!==(e=null==t?void 0:t.exit)&&void 0!==e?e:u.p$.exit(u.Sh.exit,r),transitionEnd:null==n?void 0:n.exit}}}};(0,l.forwardRef)(function(e,t){let{unmountOnExit:n,in:a,className:l,transition:u,transitionEnd:d,delay:f,animatePresenceProps:h,...p}=e,m=a||n?"enter":"exit",g=!n||a&&n,v={transition:u,transitionEnd:d,delay:f};return(0,r.jsx)(s.M,{...h,custom:v,children:g&&(0,r.jsx)(o.E.div,{ref:t,className:(0,i.cx)("chakra-fade",l),custom:v,...c,animate:m,...p})})}).displayName="Fade";var d=n(49110),f=n(43906);let h=(0,d.m)(o.E.div),p=(0,f.G)((e,t)=>{let{className:n,transition:o,motionProps:s,...l}=e,u=(0,i.cx)("chakra-modal__overlay",n),d={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...(0,a.I_)().overlay},{motionPreset:f}=(0,a.vR)(),p="none"===f?{}:c;return(0,r.jsx)(h,{...s||p,__css:d,ref:t,className:u,...l})});p.displayName="ModalOverlay"},32850:function(e,t,n){"use strict";n.d(t,{u_:function(){return S},vR:function(){return k},I_:function(){return x}});var r=n(20130),i=n(9396),o=n(40880),a=n(6461),s=n(11915),l=new WeakMap,u=new WeakMap,c={},d=0,f=function(e){return e&&(e.host||f(e.parentNode))},h=function(e,t,n,r){var i=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=f(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});c[n]||(c[n]=new WeakMap);var o=c[n],a=[],s=new Set,h=new Set(i),p=function(e){!e||s.has(e)||(s.add(e),p(e.parentNode))};i.forEach(p);var m=function(e){!e||h.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))m(e);else try{var t=e.getAttribute(r),i=null!==t&&"false"!==t,c=(l.get(e)||0)+1,d=(o.get(e)||0)+1;l.set(e,c),o.set(e,d),a.push(e),1===c&&i&&u.set(e,!0),1===d&&e.setAttribute(n,"true"),i||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),s.clear(),d++,function(){a.forEach(function(e){var t=l.get(e)-1,i=o.get(e)-1;l.set(e,t),o.set(e,i),t||(u.has(e)||e.removeAttribute(r),u.delete(e)),i||e.removeAttribute(n)}),--d||(l=new WeakMap,l=new WeakMap,u=new WeakMap,c={})}},p=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),h(r,i,n,"aria-hidden")):function(){return null}},m=n(66703),g=n(2610),v=n(72669),y=n(35364);let[b,x]=(0,i.k)({name:"ModalStylesContext",errorMessage:"useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Modal />\" "}),[w,k]=(0,i.k)({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),S=e=>{let t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,preserveScrollBarGap:!0,motionPreset:"scale",...e,lockFocusAcrossFrames:e.lockFocusAcrossFrames||!0},{portalProps:n,children:i,autoFocus:l,trapFocus:u,initialFocusRef:c,finalFocusRef:d,returnFocusOnClose:f,blockScrollOnMount:h,allowPinchZoom:x,preserveScrollBarGap:k,motionPreset:S,lockFocusAcrossFrames:E,animatePresenceProps:_,onCloseComplete:C}=t,O=(0,y.j)("Modal",t),T={...function(e){let{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:o=!0,useInert:l=!0,onOverlayClick:u,onEsc:c}=e,d=(0,m.useRef)(null),f=(0,m.useRef)(null),[h,v,y]=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let i=(0,m.useId)(),o=e||i;return(0,m.useMemo)(()=>n.map(e=>"".concat(e,"-").concat(o)),[o,n])}(r,"chakra-modal","chakra-modal--header","chakra-modal--body");!function(e,t){let n=e.current;(0,m.useEffect)(()=>{if(e.current&&t)return p(e.current)},[t,e,n])}(d,t&&l);let b=(0,g.$)(d,t),x=(0,m.useRef)(null),w=(0,m.useCallback)(e=>{x.current=e.target},[]),k=(0,m.useCallback)(e=>{"Escape"===e.key&&(e.stopPropagation(),o&&(null==n||n()),null==c||c())},[o,n,c]),[S,E]=(0,m.useState)(!1),[_,C]=(0,m.useState)(!1),O=(0,m.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{role:"dialog",...e,ref:(0,a.lq)(t,d),id:h,tabIndex:-1,"aria-modal":!0,"aria-labelledby":S?v:void 0,"aria-describedby":_?y:void 0,onClick:(0,s.v)(e.onClick,e=>e.stopPropagation())}},[y,_,h,v,S]),T=(0,m.useCallback)(e=>{e.stopPropagation(),x.current===e.target&&g.m.isTopModal(d.current)&&(i&&(null==n||n()),null==u||u())},[n,i,u]),A=(0,m.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:(0,a.lq)(t,f),onClick:(0,s.v)(e.onClick,T),onKeyDown:(0,s.v)(e.onKeyDown,k),onMouseDown:(0,s.v)(e.onMouseDown,w)}},[k,w,T]);return{isOpen:t,onClose:n,headerId:v,bodyId:y,setBodyMounted:C,setHeaderMounted:E,dialogRef:d,overlayRef:f,getDialogProps:O,getDialogContainerProps:A,index:b}}(t),autoFocus:l,trapFocus:u,initialFocusRef:c,finalFocusRef:d,returnFocusOnClose:f,blockScrollOnMount:h,allowPinchZoom:x,preserveScrollBarGap:k,motionPreset:S,lockFocusAcrossFrames:E};return(0,r.jsx)(w,{value:T,children:(0,r.jsx)(b,{value:O,children:(0,r.jsx)(o.M,{..._,onExitComplete:C,children:T.isOpen&&(0,r.jsx)(v.h,{...n,children:i})})})})};S.displayName="Modal"},46706:function(e,t,n){"use strict";n.d(t,{b:function(){return l}});var r=n(20130),i=n(90010),o=n(76151),a=n(43906),s=n(49110);let l=(0,a.G)(function(e,t){let{getBodyProps:n}=(0,o.lp)(),a=(0,o.SV)();return(0,r.jsx)(s.m.div,{...n(e,t),className:(0,i.cx)("chakra-popover__body",e.className),__css:a.body})});l.displayName="PopoverBody"},72682:function(e,t,n){"use strict";n.d(t,{y:function(){return p}});var r=n(20130),i=n(71034),o=n(11915),a=n(90010),s=n(76151),l=n(42349),u=n(49110),c=n(43906);let d={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},f=(0,u.m)(l.E.section),h=(0,c.G)(function(e,t){let{variants:n=d,...i}=e,{isOpen:o}=(0,s.lp)();return(0,r.jsx)(f,{ref:t,variants:function(e){if(e)return{enter:{...e.enter,visibility:"visible"},exit:{...e.exit,transitionEnd:{visibility:"hidden"}}}}(n),initial:!1,animate:o?"enter":"exit",...i})});h.displayName="PopoverTransition";let p=(0,c.G)(function(e,t){let{rootProps:n,motionProps:l,...c}=e,{getPopoverProps:d,getPopoverPositionerProps:f,onAnimationComplete:p}=(0,s.lp)(),m=(0,s.SV)(),g=(0,i.k0)({position:"relative",display:"flex",flexDirection:"column",...m.content});return(0,r.jsx)(u.m.div,{...f(n),__css:m.popper,className:"chakra-popover__popper",children:(0,r.jsx)(h,{...l,...d(c,t),onAnimationComplete:(0,o.P)(p,c.onAnimationComplete),className:(0,a.cx)("chakra-popover__content",e.className),__css:g})})});p.displayName="PopoverContent"},76151:function(e,t,n){"use strict";n.d(t,{H2:function(){return i},SV:function(){return s},WG:function(){return a},lp:function(){return o}});var r=n(9396);let[i,o]=(0,r.k)({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Popover />`"}),[a,s]=(0,r.k)({name:"PopoverStylesContext",errorMessage:"usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Popover />\" "})},34885:function(e,t,n){"use strict";n.d(t,{x:function(){return s}});var r=n(20130),i=n(66703),o=n(76151),a=n(6010);function s(e){let t=i.Children.only(e.children),{getTriggerProps:n}=(0,o.lp)();return(0,r.jsx)(r.Fragment,{children:(0,i.cloneElement)(t,n(t.props,(0,a.e)(t)))})}s.displayName="PopoverTrigger"},7749:function(e,t,n){"use strict";n.d(t,{J:function(){return A}});var r=n(20130),i=n(66861),o=n(69072),a=n(76151),s=n(85071),l=n(19774),u=n(37584);let c=()=>"undefined"!=typeof window,d=e=>c()&&e.test(navigator.vendor),f=e=>c()&&e.test(function(){var e;let t=navigator.userAgentData;return null!==(e=null==t?void 0:t.platform)&&void 0!==e?e:navigator.platform}()),h=()=>f(/mac|iphone|ipad|ipod/i),p=()=>h()&&d(/apple/i);var m=n(15749),g=n(18404),v=n(6461),y=n(94279),b=n(27425),x=n(11915),w=n(66703),k=n(48961),S=n(74833);let E={click:"click",hover:"hover"};function _(e,t){return e===t||(null==e?void 0:e.contains(t))}function C(e){var t;let n=e.currentTarget.ownerDocument.activeElement;return null!==(t=e.relatedTarget)&&void 0!==t?t:n}var O=n(35518),T=n(35364);function A(e){let t=(0,T.j)("Popover",e),{children:n,...c}=(0,i.L)(e),d=(0,O.F)(),f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{closeOnBlur:t=!0,closeOnEsc:n=!0,initialFocusRef:r,id:i,returnFocusOnClose:o=!0,autoFocus:a=!0,arrowSize:c,arrowShadowColor:d,trigger:f=E.click,openDelay:h=200,closeDelay:O=200,isLazy:T,lazyBehavior:A="unmount",computePositionOnMount:P,...I}=e,{isOpen:R,onClose:j,onOpen:M,onToggle:N}=(0,s.q)(e),[D,L]=(0,w.useState)(o);(0,w.useEffect)(()=>L(o),[o]);let z=(0,w.useRef)(null),F=(0,w.useRef)(null),B=(0,w.useRef)(null),$=(0,w.useRef)(!1),V=(0,w.useRef)(!1);R&&(V.current=!0);let[U,W]=(0,w.useState)(!1),[q,H]=(0,w.useState)(!1),Z=(0,w.useId)(),G=null!=i?i:Z,[K,Y,X,J]=["popover-trigger","popover-content","popover-header","popover-body"].map(e=>"".concat(e,"-").concat(G)),{referenceRef:Q,getArrowProps:ee,getPopperProps:et,getArrowInnerProps:en,forceUpdate:er}=(0,k.D)({...I,enabled:R||!!P}),ei=(0,l.h)({isOpen:R,ref:B});!function(e){let{ref:t,elements:n,enabled:r}=e,i=()=>{var e,n;return null!==(n=null===(e=t.current)||void 0===e?void 0:e.ownerDocument)&&void 0!==n?n:document};(0,u.O)(i,"pointerdown",e=>{var o,a,s;if(!p()||!r)return;let l=null!==(s=null===(a=e.composedPath)||void 0===a?void 0:null===(o=a.call(e))||void 0===o?void 0:o[0])&&void 0!==s?s:e.target,u=(null!=n?n:[t]).some(e=>{let t="current"in e?e.current:e;return(null==t?void 0:t.contains(l))||t===l});i().activeElement!==l&&u&&(e.preventDefault(),l.focus())})}({enabled:R,ref:F}),(0,m.C)(B,{focusRef:F,visible:R,shouldFocus:D&&f===E.click}),(0,m.G)(B,{focusRef:r,visible:R,shouldFocus:a&&f===E.click}),(0,g.O)({enabled:R&&t,ref:B,handler(e){var t,n;let r=null!==(n=null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])&&void 0!==n?n:[e.target];_(F.current,r)||(r&&L(!(0,y.EB)(r)),j())}});let eo=(0,b.k)({wasSelected:V.current,enabled:T,mode:A,isSelected:ei.present}),ea=(0,w.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i={...e,style:{...e.style,transformOrigin:S.Dq.transformOrigin.varRef,[S.Dq.arrowSize.var]:c?"".concat(c,"px"):void 0,[S.Dq.arrowShadowColor.var]:d},ref:(0,v.lq)(B,r),children:eo?e.children:null,id:Y,tabIndex:-1,role:"dialog",onKeyDown:(0,x.v)(e.onKeyDown,e=>{!e.nativeEvent.isComposing&&n&&"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),j())}),onBlur:(0,x.v)(e.onBlur,e=>{let n=C(e),r=_(B.current,n),i=_(F.current,n);n&&L(!(0,y.EB)(n)),R&&t&&!r&&!i&&j()}),"aria-labelledby":U?X:void 0,"aria-describedby":q?J:void 0};return f===E.hover&&(i.role="tooltip",i.onMouseEnter=(0,x.v)(e.onMouseEnter,()=>{$.current=!0}),i.onMouseLeave=(0,x.v)(e.onMouseLeave,e=>{null!==e.nativeEvent.relatedTarget&&($.current=!1,setTimeout(()=>j(),O))})),i},[eo,Y,U,X,q,J,f,n,j,R,t,O,d,c]),es=(0,w.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return et({...e,style:{visibility:R?"visible":"hidden",...e.style}},t)},[R,et]),el=(0,w.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:(0,v.lq)(t,z,Q)}},[z,Q]),eu=(0,w.useRef)(void 0),ec=(0,w.useRef)(void 0),ed=(0,w.useCallback)(e=>{null==z.current&&Q(e)},[Q]),ef=(0,w.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={...e,ref:(0,v.lq)(F,n,ed),id:K,"aria-haspopup":"dialog","aria-expanded":R,"aria-controls":Y};return f===E.click&&(r.onClick=(0,x.v)(e.onClick,N)),f===E.hover&&(r.onFocus=(0,x.v)(e.onFocus,()=>{void 0===eu.current&&M()}),r.onBlur=(0,x.v)(e.onBlur,e=>{let n=C(e),r=!_(B.current,n);R&&t&&r&&j()}),r.onKeyDown=(0,x.v)(e.onKeyDown,e=>{"Escape"===e.key&&j()}),r.onMouseEnter=(0,x.v)(e.onMouseEnter,()=>{$.current=!0,eu.current=window.setTimeout(()=>M(),h)}),r.onMouseLeave=(0,x.v)(e.onMouseLeave,()=>{$.current=!1,eu.current&&(clearTimeout(eu.current),eu.current=void 0),ec.current=window.setTimeout(()=>{!1===$.current&&j()},O)})),r},[K,R,Y,f,ed,N,M,t,j,h,O]);(0,w.useEffect)(()=>()=>{eu.current&&clearTimeout(eu.current),ec.current&&clearTimeout(ec.current)},[]);let eh=(0,w.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,id:X,ref:(0,v.lq)(t,e=>{W(!!e)})}},[X]),ep=(0,w.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,id:J,ref:(0,v.lq)(t,e=>{H(!!e)})}},[J]);return{forceUpdate:er,isOpen:R,onAnimationComplete:ei.onComplete,onClose:j,getAnchorProps:el,getArrowProps:ee,getArrowInnerProps:en,getPopoverPositionerProps:es,getPopoverProps:ea,getTriggerProps:ef,getHeaderProps:eh,getBodyProps:ep}}({...c,direction:d.direction});return(0,r.jsx)(a.H2,{value:f,children:(0,r.jsx)(a.WG,{value:t,children:(0,o.P)(n,{isOpen:f.isOpen,onClose:f.onClose,forceUpdate:f.forceUpdate})})})}A.displayName="Popover"},48961:function(e,t,n){"use strict";n.d(t,{D:function(){return eS}});var r,i,o,a,s,l=n(6461);function u(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function c(e){var t=u(e).Element;return e instanceof t||e instanceof Element}function d(e){var t=u(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function f(e){if("undefined"==typeof ShadowRoot)return!1;var t=u(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var h=Math.max,p=Math.min,m=Math.round;function g(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function v(){return!/^((?!chrome|android).)*safari/i.test(g())}function y(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&d(e)&&(i=e.offsetWidth>0&&m(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&m(r.height)/e.offsetHeight||1);var a=(c(e)?u(e):window).visualViewport,s=!v()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/i,f=(r.top+(s&&a?a.offsetTop:0))/o,h=r.width/i,p=r.height/o;return{width:h,height:p,top:f,right:l+h,bottom:f+p,left:l,x:l,y:f}}function b(e){var t=u(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function x(e){return e?(e.nodeName||"").toLowerCase():null}function w(e){return((c(e)?e.ownerDocument:e.document)||window.document).documentElement}function k(e){return y(w(e)).left+b(e).scrollLeft}function S(e){return u(e).getComputedStyle(e)}function E(e){var t=S(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function _(e){var t=y(e),n=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function C(e){return"html"===x(e)?e:e.assignedSlot||e.parentNode||(f(e)?e.host:null)||w(e)}function O(e,t){void 0===t&&(t=[]);var n,r=function e(t){return["html","body","#document"].indexOf(x(t))>=0?t.ownerDocument.body:d(t)&&E(t)?t:e(C(t))}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=u(r),a=i?[o].concat(o.visualViewport||[],E(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(O(C(a)))}function T(e){return d(e)&&"fixed"!==S(e).position?e.offsetParent:null}function A(e){for(var t=u(e),n=T(e);n&&["table","td","th"].indexOf(x(n))>=0&&"static"===S(n).position;)n=T(n);return n&&("html"===x(n)||"body"===x(n)&&"static"===S(n).position)?t:n||function(e){var t=/firefox/i.test(g());if(/Trident/i.test(g())&&d(e)&&"fixed"===S(e).position)return null;var n=C(e);for(f(n)&&(n=n.host);d(n)&&0>["html","body"].indexOf(x(n));){var r=S(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var P="bottom",I="right",R="left",j="auto",M=["top",P,I,R],N="start",D="viewport",L="popper",z=M.reduce(function(e,t){return e.concat([t+"-"+N,t+"-end"])},[]),F=[].concat(M,[j]).reduce(function(e,t){return e.concat([t,t+"-"+N,t+"-end"])},[]),B=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],$={placement:"bottom",modifiers:[],strategy:"absolute"};function V(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}var U={passive:!0};function W(e){return e.split("-")[0]}function q(e){return e.split("-")[1]}function H(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Z(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?W(i):null,a=i?q(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case"top":t={x:s,y:n.y-r.height};break;case P:t={x:s,y:n.y+n.height};break;case I:t={x:n.x+n.width,y:l};break;case R:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=o?H(o):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case N:t[u]=t[u]-(n[c]/2-r[c]/2);break;case"end":t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var G={top:"auto",right:"auto",bottom:"auto",left:"auto"};function K(e){var t,n,r,i,o,a,s,l=e.popper,c=e.popperRect,d=e.placement,f=e.variation,h=e.offsets,p=e.position,g=e.gpuAcceleration,v=e.adaptive,y=e.roundOffsets,b=e.isFixed,x=h.x,k=void 0===x?0:x,E=h.y,_=void 0===E?0:E,C="function"==typeof y?y({x:k,y:_}):{x:k,y:_};k=C.x,_=C.y;var O=h.hasOwnProperty("x"),T=h.hasOwnProperty("y"),j=R,M="top",N=window;if(v){var D=A(l),L="clientHeight",z="clientWidth";D===u(l)&&"static"!==S(D=w(l)).position&&"absolute"===p&&(L="scrollHeight",z="scrollWidth"),("top"===d||(d===R||d===I)&&"end"===f)&&(M=P,_-=(b&&D===N&&N.visualViewport?N.visualViewport.height:D[L])-c.height,_*=g?1:-1),(d===R||("top"===d||d===P)&&"end"===f)&&(j=I,k-=(b&&D===N&&N.visualViewport?N.visualViewport.width:D[z])-c.width,k*=g?1:-1)}var F=Object.assign({position:p},v&&G),B=!0===y?(t={x:k,y:_},n=u(l),r=t.x,i=t.y,{x:m(r*(o=n.devicePixelRatio||1))/o||0,y:m(i*o)/o||0}):{x:k,y:_};return(k=B.x,_=B.y,g)?Object.assign({},F,((s={})[M]=T?"0":"",s[j]=O?"0":"",s.transform=1>=(N.devicePixelRatio||1)?"translate("+k+"px, "+_+"px)":"translate3d("+k+"px, "+_+"px, 0)",s)):Object.assign({},F,((a={})[M]=T?_+"px":"",a[j]=O?k+"px":"",a.transform="",a))}var Y={left:"right",right:"left",bottom:"top",top:"bottom"};function X(e){return e.replace(/left|right|bottom|top/g,function(e){return Y[e]})}var J={start:"end",end:"start"};function Q(e){return e.replace(/start|end/g,function(e){return J[e]})}function ee(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&f(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function et(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function en(e,t,n){var r,i,o,a,s,l,d,f,p,m;return t===D?et(function(e,t){var n=u(e),r=w(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=v();(c||!c&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+k(e),y:l}}(e,n)):c(t)?((r=y(t,!1,"fixed"===n)).top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r):et((i=w(e),a=w(i),s=b(i),l=null==(o=i.ownerDocument)?void 0:o.body,d=h(a.scrollWidth,a.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),f=h(a.scrollHeight,a.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),p=-s.scrollLeft+k(i),m=-s.scrollTop,"rtl"===S(l||a).direction&&(p+=h(a.clientWidth,l?l.clientWidth:0)-d),{width:d,height:f,x:p,y:m}))}function er(){return{top:0,right:0,bottom:0,left:0}}function ei(e){return Object.assign({},er(),e)}function eo(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function ea(e,t){void 0===t&&(t={});var n,r,i,o,a,s,l,u,f=t,m=f.placement,g=void 0===m?e.placement:m,v=f.strategy,b=void 0===v?e.strategy:v,k=f.boundary,E=f.rootBoundary,_=f.elementContext,T=void 0===_?L:_,R=f.altBoundary,j=f.padding,N=void 0===j?0:j,z=ei("number"!=typeof N?N:eo(N,M)),F=e.rects.popper,B=e.elements[void 0!==R&&R?T===L?"reference":L:T],$=(n=c(B)?B:B.contextElement||w(e.elements.popper),r=void 0===k?"clippingParents":k,i=void 0===E?D:E,l=(s=[].concat("clippingParents"===r?(o=O(C(n)),c(a=["absolute","fixed"].indexOf(S(n).position)>=0&&d(n)?A(n):n)?o.filter(function(e){return c(e)&&ee(e,a)&&"body"!==x(e)}):[]):[].concat(r),[i]))[0],(u=s.reduce(function(e,t){var r=en(n,t,b);return e.top=h(r.top,e.top),e.right=p(r.right,e.right),e.bottom=p(r.bottom,e.bottom),e.left=h(r.left,e.left),e},en(n,l,b))).width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u),V=y(e.elements.reference),U=Z({reference:V,element:F,strategy:"absolute",placement:g}),W=et(Object.assign({},F,U)),q=T===L?W:V,H={top:$.top-q.top+z.top,bottom:q.bottom-$.bottom+z.bottom,left:$.left-q.left+z.left,right:q.right-$.right+z.right},G=e.modifiersData.offset;if(T===L&&G){var K=G[g];Object.keys(H).forEach(function(e){var t=[I,P].indexOf(e)>=0?1:-1,n=["top",P].indexOf(e)>=0?"y":"x";H[e]+=K[n]*t})}return H}function es(e,t,n){return h(e,p(t,n))}function el(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function eu(e){return["top",I,P,R].some(function(t){return e[t]>=0})}var ec=(o=void 0===(i=(r={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,l=u(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(e){e.addEventListener("scroll",n.update,U)}),s&&l.addEventListener("resize",n.update,U),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",n.update,U)}),s&&l.removeEventListener("resize",n.update,U)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Z({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=n.adaptive,o=n.roundOffsets,a=void 0===o||o,s={placement:W(t.placement),variation:q(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===r||r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,K(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===i||i,roundOffsets:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,K(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];d(i)&&x(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});d(r)&&x(r)&&(Object.assign(r.style,o),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=F.reduce(function(e,n){var r,i,a,s,l,u;return e[n]=(r=t.rects,a=[R,"top"].indexOf(i=W(n))>=0?-1:1,l=(s="function"==typeof o?o(Object.assign({},r,{placement:n})):o)[0],u=s[1],l=l||0,u=(u||0)*a,[R,I].indexOf(i)>=0?{x:u,y:l}:{x:l,y:u}),e},{}),s=a[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=void 0===h||h,m=n.allowedAutoPlacements,g=t.options.placement,v=W(g)===g,y=l||(v||!p?[X(g)]:function(e){if(W(e)===j)return[];var t=X(e);return[Q(e),t,Q(t)]}(g)),b=[g].concat(y).reduce(function(e,n){var r,i,o,a,s,l,f,h,g,v,y,b;return e.concat(W(n)===j?(i=(r={placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:m}).placement,o=r.boundary,a=r.rootBoundary,s=r.padding,l=r.flipVariations,h=void 0===(f=r.allowedAutoPlacements)?F:f,0===(y=(v=(g=q(i))?l?z:z.filter(function(e){return q(e)===g}):M).filter(function(e){return h.indexOf(e)>=0})).length&&(y=v),Object.keys(b=y.reduce(function(e,n){return e[n]=ea(t,{placement:n,boundary:o,rootBoundary:a,padding:s})[W(n)],e},{})).sort(function(e,t){return b[e]-b[t]})):n)},[]),x=t.rects.reference,w=t.rects.popper,k=new Map,S=!0,E=b[0],_=0;_<b.length;_++){var C=b[_],O=W(C),T=q(C)===N,A=["top",P].indexOf(O)>=0,D=A?"width":"height",L=ea(t,{placement:C,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),B=A?T?I:R:T?P:"top";x[D]>w[D]&&(B=X(B));var $=X(B),V=[];if(o&&V.push(L[O]<=0),s&&V.push(L[B]<=0,L[$]<=0),V.every(function(e){return e})){E=C,S=!1;break}k.set(C,V)}if(S)for(var U=p?3:1,H=function(e){var t=b.find(function(t){var n=k.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return E=t,"break"},Z=U;Z>0&&"break"!==H(Z);Z--);t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=n.altAxis,a=n.boundary,s=n.rootBoundary,l=n.altBoundary,u=n.padding,c=n.tether,d=void 0===c||c,f=n.tetherOffset,m=void 0===f?0:f,g=ea(t,{boundary:a,rootBoundary:s,padding:u,altBoundary:l}),v=W(t.placement),y=q(t.placement),b=!y,x=H(v),w="x"===x?"y":"x",k=t.modifiersData.popperOffsets,S=t.rects.reference,E=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,O="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(k){if(void 0===i||i){var M,D="y"===x?"top":R,L="y"===x?P:I,z="y"===x?"height":"width",F=k[x],B=F+g[D],$=F-g[L],V=d?-E[z]/2:0,U=y===N?S[z]:E[z],Z=y===N?-E[z]:-S[z],G=t.elements.arrow,K=d&&G?_(G):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:er(),X=Y[D],J=Y[L],Q=es(0,S[z],K[z]),ee=b?S[z]/2-V-Q-X-O.mainAxis:U-Q-X-O.mainAxis,et=b?-S[z]/2+V+Q+J+O.mainAxis:Z+Q+J+O.mainAxis,en=t.elements.arrow&&A(t.elements.arrow),ei=en?"y"===x?en.clientTop||0:en.clientLeft||0:0,eo=null!=(M=null==T?void 0:T[x])?M:0,el=es(d?p(B,F+ee-eo-ei):B,F,d?h($,F+et-eo):$);k[x]=el,j[x]=el-F}if(void 0!==o&&o){var eu,ec,ed="x"===x?"top":R,ef="x"===x?P:I,eh=k[w],ep="y"===w?"height":"width",em=eh+g[ed],eg=eh-g[ef],ev=-1!==["top",R].indexOf(v),ey=null!=(ec=null==T?void 0:T[w])?ec:0,eb=ev?em:eh-S[ep]-E[ep]-ey+O.altAxis,ex=ev?eh+S[ep]+E[ep]-ey-O.altAxis:eg,ew=d&&ev?(eu=es(eb,eh,ex))>ex?ex:eu:es(d?eb:em,eh,d?ex:eg);k[w]=ew,j[w]=ew-eh}t.modifiersData[r]=j}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n,r=e.state,i=e.name,o=e.options,a=r.elements.arrow,s=r.modifiersData.popperOffsets,l=W(r.placement),u=H(l),c=[R,I].indexOf(l)>=0?"height":"width";if(a&&s){var d=ei("number"!=typeof(t="function"==typeof(t=o.padding)?t(Object.assign({},r.rects,{placement:r.placement})):t)?t:eo(t,M)),f=_(a),h="y"===u?"top":R,p="y"===u?P:I,m=r.rects.reference[c]+r.rects.reference[u]-s[u]-r.rects.popper[c],g=s[u]-r.rects.reference[u],v=A(a),y=v?"y"===u?v.clientHeight||0:v.clientWidth||0:0,b=d[h],x=y-f[c]-d[p],w=y/2-f[c]/2+(m/2-g/2),k=es(b,w,x);r.modifiersData[i]=((n={})[u]=k,n.centerOffset=k-w,n)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ee(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=ea(t,{elementContext:"reference"}),s=ea(t,{altBoundary:!0}),l=el(a,r),u=el(s,i,o),c=eu(l),d=eu(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}).defaultModifiers)?[]:i,s=void 0===(a=r.defaultOptions)?$:a,function(e,t,n){void 0===n&&(n=s);var r,i,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},$,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],f=!1,h={state:a,setOptions:function(n){var r,i,u,d,f,m="function"==typeof n?n(a.options):n;p(),a.options=Object.assign({},s,a.options,m),a.scrollParents={reference:c(e)?O(e):e.contextElement?O(e.contextElement):[],popper:O(t)};var g=(i=Object.keys(r=[].concat(o,a.options.modifiers).reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{})).map(function(e){return r[e]}),u=new Map,d=new Set,f=[],i.forEach(function(e){u.set(e.name,e)}),i.forEach(function(e){d.has(e.name)||function e(t){d.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!d.has(t)){var n=u.get(t);n&&e(n)}}),f.push(t)}(e)}),B.reduce(function(e,t){return e.concat(f.filter(function(e){return e.phase===t}))},[]));return a.orderedModifiers=g.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=e.effect;if("function"==typeof r){var i=r({state:a,name:t,instance:h,options:void 0===n?{}:n});l.push(i||function(){})}}),h.update()},forceUpdate:function(){if(!f){var e,t,n,r,i,o,s,l,c,p,g,v,S=a.elements,C=S.reference,O=S.popper;if(V(C,O)){a.rects={reference:(t=A(O),n="fixed"===a.options.strategy,r=d(t),l=d(t)&&(o=m((i=t.getBoundingClientRect()).width)/t.offsetWidth||1,s=m(i.height)/t.offsetHeight||1,1!==o||1!==s),c=w(t),p=y(C,l,n),g={scrollLeft:0,scrollTop:0},v={x:0,y:0},(r||!r&&!n)&&(("body"!==x(t)||E(c))&&(g=(e=t)!==u(e)&&d(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:b(e)),d(t)?(v=y(t,!0),v.x+=t.clientLeft,v.y+=t.clientTop):c&&(v.x=k(c))),{x:p.left+g.scrollLeft-v.x,y:p.top+g.scrollTop-v.y,width:p.width,height:p.height}),popper:_(O)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var T=0;T<a.orderedModifiers.length;T++){if(!0===a.reset){a.reset=!1,T=-1;continue}var P=a.orderedModifiers[T],I=P.fn,R=P.options,j=void 0===R?{}:R,M=P.name;"function"==typeof I&&(a=I({state:a,options:j,name:M,instance:h})||a)}}}},update:(r=function(){return new Promise(function(e){h.forceUpdate(),e(a)})},function(){return i||(i=new Promise(function(e){Promise.resolve().then(function(){i=void 0,e(r())})})),i}),destroy:function(){p(),f=!0}};if(!V(e,t))return h;function p(){l.forEach(function(e){return e()}),l=[]}return h.setOptions(n).then(function(e){!f&&n.onFirstUpdate&&n.onFirstUpdate(e)}),h}),ed=n(66703),ef=n(74833);let eh={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:e=>{let{state:t}=e;t.styles.popper.width="".concat(t.rects.reference.width,"px")},effect:e=>{let{state:t}=e;return()=>{let e=t.elements.reference;t.elements.popper.style.width="".concat(e.offsetWidth,"px")}}},ep={name:"transformOrigin",enabled:!0,phase:"write",fn:e=>{let{state:t}=e;em(t)},effect:e=>{let{state:t}=e;return()=>{em(t)}}},em=e=>{e.elements.popper.style.setProperty(ef.Dq.transformOrigin.var,(0,ef.mv)(e.placement))},eg={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:e=>{let{state:t}=e;ev(t)}},ev=e=>{var t;if(!e.placement)return;let n=ey(e.placement);if((null===(t=e.elements)||void 0===t?void 0:t.arrow)&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:ef.Dq.arrowSize.varRef,height:ef.Dq.arrowSize.varRef,zIndex:-1});let t={[ef.Dq.arrowSizeHalf.var]:"calc(".concat(ef.Dq.arrowSize.varRef," / 2 - 1px)"),[ef.Dq.arrowOffset.var]:"calc(".concat(ef.Dq.arrowSizeHalf.varRef," * -1)")};for(let n in t)e.elements.arrow.style.setProperty(n,t[n])}},ey=e=>e.startsWith("top")?{property:"bottom",value:ef.Dq.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:ef.Dq.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:ef.Dq.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:ef.Dq.arrowOffset.varRef}:void 0,eb={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:e=>{let{state:t}=e;ex(t)},effect:e=>{let{state:t}=e;return()=>{ex(t)}}},ex=e=>{if(!e.elements.arrow)return;let t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;let n=(0,ef.Ke)(e.placement);n&&t.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(t.style,{transform:"rotate(45deg)",background:ef.Dq.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},ew={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},ek={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function eS(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{enabled:t=!0,modifiers:n,placement:r="bottom",strategy:i="absolute",arrowPadding:o=8,eventListeners:a=!0,offset:s,gutter:u=8,flip:c=!0,boundary:d="clippingParents",preventOverflow:f=!0,matchWidth:h,direction:p="ltr"}=e,m=(0,ed.useRef)(null),g=(0,ed.useRef)(null),v=(0,ed.useRef)(null),y=function(e){var t,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ltr",i=(null===(t=ew[e])||void 0===t?void 0:t[r])||e;return"ltr"===r?i:null!==(n=ek[e])&&void 0!==n?n:i}(r,p),b=(0,ed.useRef)(()=>{}),x=(0,ed.useCallback)(()=>{var e;t&&m.current&&g.current&&(null===(e=b.current)||void 0===e||e.call(b),v.current=ec(m.current,g.current,{placement:y,modifiers:[eb,eg,ep,{...eh,enabled:!!h},{name:"eventListeners",...(0,ef.$B)(a)},{name:"arrow",options:{padding:o}},{name:"offset",options:{offset:null!=s?s:[0,u]}},{name:"flip",enabled:!!c,options:{padding:8}},{name:"preventOverflow",enabled:!!f,options:{boundary:d}},...null!=n?n:[]],strategy:i}),v.current.forceUpdate(),b.current=v.current.destroy)},[y,t,n,h,a,o,s,u,c,f,d,i]);(0,ed.useEffect)(()=>()=>{if(!m.current&&!g.current){var e;null===(e=v.current)||void 0===e||e.destroy(),v.current=null}},[]);let w=(0,ed.useCallback)(e=>{m.current=e,x()},[x]),k=(0,ed.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:(0,l.lq)(w,t)}},[w]),S=(0,ed.useCallback)(e=>{g.current=e,x()},[x]),E=(0,ed.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:(0,l.lq)(S,t),style:{...e.style,position:i,minWidth:h?void 0:"max-content",inset:"0 auto auto 0"}}},[i,S,h]),_=(0,ed.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,{size:n,shadowColor:r,bg:i,style:o,...a}=e;return{...a,ref:t,"data-popper-arrow":"",style:function(e){let{size:t,shadowColor:n,bg:r,style:i}=e,o={...i,position:"absolute"};return t&&(o["--popper-arrow-size"]=t),n&&(o["--popper-arrow-shadow-color"]=n),r&&(o["--popper-arrow-bg"]=r),o}(e)}},[]),C=(0,ed.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:t,"data-popper-arrow-inner":""}},[]);return{update(){var e;null===(e=v.current)||void 0===e||e.update()},forceUpdate(){var e;null===(e=v.current)||void 0===e||e.forceUpdate()},transformOrigin:ef.Dq.transformOrigin.varRef,referenceRef:w,popperRef:S,getPopperProps:E,getArrowProps:_,getArrowInnerProps:C,getReferenceProps:k}}},74833:function(e,t,n){"use strict";n.d(t,{$B:function(){return u},Dq:function(){return i},Ke:function(){return o},mv:function(){return s}});let r=(e,t)=>({var:e,varRef:t?"var(".concat(e,", ").concat(t,")"):"var(".concat(e,")")}),i={arrowShadowColor:r("--popper-arrow-shadow-color"),arrowSize:r("--popper-arrow-size","8px"),arrowSizeHalf:r("--popper-arrow-size-half"),arrowBg:r("--popper-arrow-bg"),transformOrigin:r("--popper-transform-origin"),arrowOffset:r("--popper-arrow-offset")};function o(e){return e.includes("top")?"1px 1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("bottom")?"-1px -1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("right")?"-1px 1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("left")?"1px -1px 0px 0 var(--popper-arrow-shadow-color)":void 0}let a={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},s=e=>a[e],l={scroll:!0,resize:!0};function u(e){return"object"==typeof e?{enabled:!0,options:{...l,...e}}:{enabled:e,options:l}}},43415:function(e,t,n){"use strict";n.d(t,{L:function(){return o},h:function(){return a}});var r=n(20130);let[i,o]=(0,n(9396).k)({strict:!1,name:"PortalManagerContext"});function a(e){let{children:t,zIndex:n}=e;return(0,r.jsx)(i,{value:{zIndex:n},children:t})}a.displayName="PortalManager"},72669:function(e,t,n){"use strict";n.d(t,{h:function(){return m}});var r=n(20130),i=n(59129),o=n(9396),a=n(66703),s=n(93694),l=n(43415);let[u,c]=(0,o.k)({strict:!1,name:"PortalContext"}),d="chakra-portal",f=e=>(0,r.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),h=e=>{let{appendToParentPortal:t,children:n}=e,[o,h]=(0,a.useState)(null),p=(0,a.useRef)(null),[,m]=(0,a.useState)({});(0,a.useEffect)(()=>m({}),[]);let g=c(),v=(0,l.L)();(0,i.G)(()=>{if(!o)return;let e=o.ownerDocument,n=t&&null!=g?g:e.body;if(!n)return;p.current=e.createElement("div"),p.current.className=d,n.appendChild(p.current),m({});let r=p.current;return()=>{n.contains(r)&&n.removeChild(r)}},[o]);let y=(null==v?void 0:v.zIndex)?(0,r.jsx)(f,{zIndex:null==v?void 0:v.zIndex,children:n}):n;return p.current?(0,s.createPortal)((0,r.jsx)(u,{value:p.current,children:y}),p.current):(0,r.jsx)("span",{ref:e=>{e&&h(e)}})},p=e=>{let{children:t,containerRef:n,appendToParentPortal:o}=e,l=n.current,c=null!=l?l:"undefined"!=typeof window?document.body:void 0,f=(0,a.useMemo)(()=>{let e=null==l?void 0:l.ownerDocument.createElement("div");return e&&(e.className=d),e},[l]),[,h]=(0,a.useState)({});return((0,i.G)(()=>h({}),[]),(0,i.G)(()=>{if(f&&c)return c.appendChild(f),()=>{c.removeChild(f)}},[f,c]),c&&f)?(0,s.createPortal)((0,r.jsx)(u,{value:o?f:null,children:t}),f):null};function m(e){let{containerRef:t,...n}={appendToParentPortal:!0,...e};return t?(0,r.jsx)(p,{containerRef:t,...n}):(0,r.jsx)(h,{...n})}m.className=d,m.selector=".chakra-portal",m.displayName="Portal"},83722:function(e,t,n){"use strict";n.d(t,{D:function(){return u}});var r=n(20130),i=n(71034),o=n(49110);let a=e=>(0,r.jsx)(o.m.circle,{cx:50,cy:50,r:42,fill:"transparent",...e});a.displayName="Circle";var s=n(90913);let l=e=>{let{size:t,isIndeterminate:n,...i}=e;return(0,r.jsx)(o.m.svg,{viewBox:"0 0 100 100",__css:{width:t,height:t,animation:n?"".concat(s.U1," 2s linear infinite"):void 0},...i})};l.displayName="Shape";let u=(0,n(43906).G)((e,t)=>{var n;let{size:u="48px",max:c=100,min:d=0,valueText:f,getValueText:h,value:p,capIsRound:m,children:g,thickness:v="10px",color:y="#0078d4",trackColor:b="#edebe9",isIndeterminate:x,...w}=e,k=(0,s.Wt)({min:d,max:c,value:p,valueText:f,getValueText:h,isIndeterminate:x}),S=x?void 0:(null!==(n=k.percent)&&void 0!==n?n:0)*2.64,E=null==S?void 0:"".concat(S," ").concat(264-S),_=x?{css:{animation:"".concat(s.O2," 1.5s linear infinite")}}:{strokeDashoffset:66,strokeDasharray:E,transitionProperty:"stroke-dasharray, stroke",transitionDuration:"0.6s",transitionTimingFunction:"ease"},C=(0,i.k0)({display:"inline-block",position:"relative",verticalAlign:"middle",fontSize:u});return(0,r.jsxs)(o.m.div,{ref:t,className:"chakra-progress",...k.bind,...w,__css:C,children:[(0,r.jsxs)(l,{size:u,isIndeterminate:x,children:[(0,r.jsx)(a,{stroke:b,strokeWidth:v,className:"chakra-progress__track"}),(0,r.jsx)(a,{stroke:y,strokeWidth:v,className:"chakra-progress__indicator",strokeLinecap:m?"round":void 0,opacity:0!==k.value||x?void 0:0,..._})]}),g]})});u.displayName="CircularProgress"},93457:function(e,t,n){"use strict";n.d(t,{E:function(){return h}});var r=n(20130),i=n(66861),o=n(9396),a=n(90913),s=n(43906),l=n(49110),u=n(35364);let[c,d]=(0,o.k)({name:"ProgressStylesContext",errorMessage:"useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Progress />\" "}),f=(0,s.G)((e,t)=>{let{min:n,max:i,value:o,isIndeterminate:s,role:u,...c}=e,f=(0,a.Wt)({value:o,min:n,max:i,isIndeterminate:s,role:u}),h={height:"100%",...d().filledTrack};return(0,r.jsx)(l.m.div,{ref:t,style:{width:"".concat(f.percent,"%"),...c.style},...f.bind,...c,__css:h})}),h=(0,s.G)((e,t)=>{var n;let{value:o,min:s=0,max:d=100,hasStripe:h,isAnimated:p,children:m,borderRadius:g,isIndeterminate:v,"aria-label":y,"aria-labelledby":b,"aria-valuetext":x,title:w,role:k,...S}=(0,i.L)(e),E=(0,u.j)("Progress",e),_=null!=g?g:null===(n=E.track)||void 0===n?void 0:n.borderRadius,C={animation:"".concat(a.Ag," 1s linear infinite")},O={...!v&&h&&p&&C,...v&&{position:"absolute",willChange:"left",minWidth:"50%",animation:"".concat(a.YD," 1s ease infinite normal none running")}},T={overflow:"hidden",position:"relative",...E.track};return(0,r.jsx)(l.m.div,{ref:t,borderRadius:_,__css:T,...S,children:(0,r.jsxs)(c,{value:E,children:[(0,r.jsx)(f,{"aria-label":y,"aria-labelledby":b,"aria-valuetext":x,min:s,max:d,value:o,isIndeterminate:v,css:O,borderRadius:_,title:w,role:k}),m]})})});h.displayName="Progress"},90913:function(e,t,n){"use strict";n.d(t,{Ag:function(){return s},O2:function(){return i},U1:function(){return o},Wt:function(){return l},YD:function(){return a}});var r=n(68312);let i=(0,r.F4)({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}}),o=(0,r.F4)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),a=(0,r.F4)({"0%":{left:"-40%"},"100%":{left:"100%"}}),s=(0,r.F4)({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function l(e){let{value:t=0,min:n,max:r,valueText:i,getValueText:o,isIndeterminate:a,role:s="progressbar"}=e,l=(t-n)*100/(r-n);return{bind:{"data-indeterminate":a?"":void 0,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":a?void 0:t,"aria-valuetext":(()=>{if(null!=t)return"function"==typeof o?o(t,l):i})(),role:s},percent:l,value:t}}},18707:function(e,t,n){"use strict";n.d(t,{E:function(){return h},X:function(){return f}});var r=n(20130),i=n(9396),o=n(90010),a=n(66703),s=n(6461),l=n(93031),u=n(43906),c=n(49110);let[d,f]=(0,i.k)({name:"RadioGroupContext",strict:!1}),h=(0,u.G)((e,t)=>{let{colorScheme:n,size:i,variant:u,children:f,className:h,isDisabled:p,isFocusable:m,...g}=e,{value:v,onChange:y,getRootProps:b,name:x,htmlProps:w}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{onChange:t,value:n,defaultValue:r,name:i,isDisabled:o,isFocusable:u,isNative:c,...d}=e,[f,h]=(0,a.useState)(r||""),p=void 0!==n,m=p?n:f,g=(0,a.useRef)(null),v=(0,a.useCallback)(()=>{let e=g.current;if(!e)return;let t="input:not(:disabled):checked",n=e.querySelector(t);if(n){n.focus();return}t="input:not(:disabled)";let r=e.querySelector(t);null==r||r.focus()},[]),y=(0,a.useId)(),b=i||"radio-".concat(y),x=(0,a.useCallback)(e=>{let n=e&&(0,l.Kn)(e)&&(0,l.Kn)(e.target)?e.target.value:e;p||h(n),null==t||t(String(n))},[t,p]);return{getRootProps:(0,a.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:(0,s.lq)(t,g),role:"radiogroup"}},[]),getRadioProps:(0,a.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=c?"checked":"isChecked";return{...e,ref:t,name:b,[n]:null!=m?e.value===m:void 0,onChange(e){x(e)},"data-radiogroup":!0}},[c,b,x,m]),name:b,ref:g,focus:v,setValue:h,value:m,onChange:x,isDisabled:o,isFocusable:u,htmlProps:d}}(g),k=(0,a.useMemo)(()=>({name:x,size:i,onChange:y,colorScheme:n,value:v,variant:u,isDisabled:p,isFocusable:m}),[x,i,y,n,v,u,p,m]);return(0,r.jsx)(d,{value:k,children:(0,r.jsx)(c.m.div,{...b(w,t),className:(0,o.cx)("chakra-radio-group",h),children:f})})});h.displayName="RadioGroup"},48262:function(e,t,n){"use strict";n.d(t,{Y:function(){return y}});var r=n(20130),i=n(66861),o=n(60571),a=n(11915),s=n(57835),l=n(18707),u=n(26934),c=n(99466),d=n(66703),f=n(22488),h=n(28770);function p(e){e.preventDefault(),e.stopPropagation()}var m=n(43906),g=n(35364),v=n(49110);let y=(0,m.G)((e,t)=>{var n;let m=(0,l.X)(),{onChange:y,value:b}=e,x=(0,g.j)("Radio",{...m,...e}),{spacing:w="0.5rem",children:k,isDisabled:S=null==m?void 0:m.isDisabled,isFocusable:E=null==m?void 0:m.isFocusable,inputProps:_,...C}=(0,i.L)(e),O=e.isChecked;(null==m?void 0:m.value)!=null&&null!=b&&(O=m.value===b);let T=y;(null==m?void 0:m.onChange)&&null!=b&&(T=(0,a.P)(m.onChange,y));let A=null!==(n=null==e?void 0:e.name)&&void 0!==n?n:null==m?void 0:m.name,{getInputProps:P,getRadioProps:I,getLabelProps:R,getRootProps:j,htmlProps:M}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultChecked:t,isChecked:n,isFocusable:r,isDisabled:i,isReadOnly:o,isRequired:s,onChange:m,isInvalid:g,name:v,value:y,id:b,"data-radiogroup":x,"aria-describedby":w,...k}=e,S="radio-".concat((0,d.useId)()),E=(0,f.NJ)(),_=(0,l.X)(),C=E&&!(_||x)?E.id:S;C=null!=b?b:C;let O=null!=i?i:null==E?void 0:E.isDisabled,T=null!=o?o:null==E?void 0:E.isReadOnly,A=null!=s?s:null==E?void 0:E.isRequired,P=null!=g?g:null==E?void 0:E.isInvalid,[I,R]=(0,d.useState)(!1),[j,M]=(0,d.useState)(!1),[N,D]=(0,d.useState)(!1),[L,z]=(0,d.useState)(!1),[F,B]=(0,d.useState)(!!t),$=void 0!==n,V=$?n:F;(0,d.useEffect)(()=>(0,c.BT)(R),[]);let U=(0,d.useCallback)(e=>{if(T||O){e.preventDefault();return}$||B(e.currentTarget.checked),null==m||m(e)},[$,O,T,m]),W=(0,d.useCallback)(e=>{" "===e.key&&z(!0)},[z]),q=(0,d.useCallback)(e=>{" "===e.key&&z(!1)},[z]),H=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:t,"data-active":(0,u.P)(L),"data-hover":(0,u.P)(N),"data-disabled":(0,u.P)(O),"data-invalid":(0,u.P)(P),"data-checked":(0,u.P)(V),"data-focus":(0,u.P)(j),"data-focus-visible":(0,u.P)(j&&I),"data-readonly":(0,u.P)(T),"aria-hidden":!0,onMouseDown:(0,a.v)(e.onMouseDown,()=>z(!0)),onMouseUp:(0,a.v)(e.onMouseUp,()=>z(!1)),onMouseEnter:(0,a.v)(e.onMouseEnter,()=>D(!0)),onMouseLeave:(0,a.v)(e.onMouseLeave,()=>D(!1))}},[L,N,O,P,V,j,T,I]),{onFocus:Z,onBlur:G}=null!=E?E:{},K=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=O&&!r;return{...e,id:C,ref:t,type:"radio",name:v,value:y,onChange:(0,a.v)(e.onChange,U),onBlur:(0,a.v)(G,e.onBlur,()=>M(!1)),onFocus:(0,a.v)(Z,e.onFocus,()=>M(!0)),onKeyDown:(0,a.v)(e.onKeyDown,W),onKeyUp:(0,a.v)(e.onKeyUp,q),checked:V,disabled:n,readOnly:T,required:A,"aria-invalid":(0,u.Q)(P),"aria-disabled":(0,u.Q)(n),"aria-required":(0,u.Q)(A),"data-readonly":(0,u.P)(T),"aria-describedby":w,style:h.N}},[O,r,C,v,y,U,G,Z,W,q,V,T,A,P,w]);return{state:{isInvalid:P,isFocused:j,isChecked:V,isActive:L,isHovered:N,isDisabled:O,isReadOnly:T,isRequired:A},getRadioProps:H,getInputProps:K,getLabelProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:t,onMouseDown:(0,a.v)(e.onMouseDown,p),"data-disabled":(0,u.P)(O),"data-checked":(0,u.P)(V),"data-invalid":(0,u.P)(P)}},getRootProps:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{htmlFor:C,...e,ref:t,"data-disabled":(0,u.P)(O),"data-checked":(0,u.P)(V),"data-invalid":(0,u.P)(P)}},htmlProps:k}}({...C,isChecked:O,isFocusable:E,isDisabled:S,onChange:T,name:A}),[N,D]=(0,s.V)(M,o.oE),L=I(D),z=P(_,t),F=R(),B=Object.assign({},N,j()),$={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...x.container},V={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...x.control},U={userSelect:"none",marginStart:w,...x.label};return(0,r.jsxs)(v.m.label,{className:"chakra-radio",...B,__css:$,children:[(0,r.jsx)("input",{className:"chakra-radio__input",...z}),(0,r.jsx)(v.m.span,{className:"chakra-radio__control",...L,__css:V}),k&&(0,r.jsx)(v.m.span,{className:"chakra-radio__label",...F,__css:U,children:k})]})});y.displayName="Radio"},15615:function(e,t,n){"use strict";n.d(t,{P:function(){return m}});var r=n(20130),i=n(66861),o=n(60571),a=n(57835),s=n(26934),l=n(66703),u=n(90010),c=n(43906),d=n(49110);let f=(0,c.G)(function(e,t){let{children:n,placeholder:i,className:o,...a}=e;return(0,r.jsxs)(d.m.select,{...a,ref:t,className:(0,u.cx)("chakra-select",o),children:[i&&(0,r.jsx)("option",{value:"",children:i}),n]})});f.displayName="SelectField";var h=n(31172),p=n(35364);let m=(0,c.G)((e,t)=>{var n;let l=(0,p.j)("Select",e),{rootProps:u,placeholder:c,icon:m,color:g,height:v,h:b,minH:x,minHeight:w,iconColor:k,iconSize:S,...E}=(0,i.L)(e),[_,C]=(0,a.V)(E,o.oE),O=(0,h.Y)(C),T={paddingEnd:"2rem",...l.field,_focus:{zIndex:"unset",...null===(n=l.field)||void 0===n?void 0:n._focus}};return(0,r.jsxs)(d.m.div,{className:"chakra-select__wrapper",__css:{width:"100%",height:"fit-content",position:"relative",color:g},..._,...u,children:[(0,r.jsx)(f,{ref:t,height:null!=b?b:v,minH:null!=x?x:w,placeholder:c,...O,__css:T,children:e.children}),(0,r.jsx)(y,{"data-disabled":(0,s.P)(O.disabled),...(k||g)&&{color:k||g},__css:l.icon,...S&&{fontSize:S},children:m})]})});m.displayName="Select";let g=e=>(0,r.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),v=(0,d.m)("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),y=e=>{let{children:t=(0,r.jsx)(g,{}),...n}=e,i=(0,l.cloneElement)(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return(0,r.jsx)(v,{...n,className:"chakra-select__icon-wrapper",children:(0,l.isValidElement)(t)?i:null})};y.displayName="SelectIcon"},48409:function(e,t,n){"use strict";n.d(t,{N:function(){return x}});var r=n(20130),i=n(90010),o=n(66703),a=n(41293),s=n(66861),l=n(68312),u=n(94181),c=n(49110),d=n(43906),f=n(35364);let h=(0,c.m)("div",{baseStyle:{boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none","&::before, &::after, *":{visibility:"hidden"}}}),p=(0,a.gJ)("skeleton-start-color"),m=(0,a.gJ)("skeleton-end-color"),g=(0,l.F4)({from:{opacity:0},to:{opacity:1}}),v=(0,l.F4)({from:{borderColor:p.reference,background:p.reference},to:{borderColor:m.reference,background:m.reference}}),y=(0,d.G)((e,t)=>{let n={...e,fadeDuration:"number"==typeof e.fadeDuration?e.fadeDuration:.4,speed:"number"==typeof e.speed?e.speed:.8},a=(0,f.m)("Skeleton",n),l=function(){let e=(0,o.useRef)(!0);return(0,o.useEffect)(()=>{e.current=!1},[]),e.current}(),{startColor:d="",endColor:y="",isLoaded:b,fadeDuration:x,speed:w,className:k,fitContent:S,animation:E,..._}=(0,s.L)(n),[C,O]=(0,u.dQ)("colors",[d,y]),T=function(e){let t=(0,o.useRef)(void 0);return(0,o.useEffect)(()=>{t.current=e},[e]),t.current}(b),A=(0,i.cx)("chakra-skeleton",k),P={...C&&{[p.variable]:C},...O&&{[m.variable]:O}};if(b){let e=l||T?"none":"".concat(g," ").concat(x,"s");return(0,r.jsx)(c.m.div,{ref:t,className:A,__css:{animation:e},..._})}return(0,r.jsx)(h,{ref:t,className:A,..._,__css:{width:S?"fit-content":void 0,...a,...P,_dark:{...a._dark,...P},animation:E||"".concat(w,"s linear infinite alternate ").concat(v)}})});y.displayName="Skeleton";var b=n(20395);let x=e=>{let{noOfLines:t=3,spacing:n="0.5rem",skeletonHeight:o="0.5rem",className:a,startColor:s,endColor:l,isLoaded:u,fadeDuration:d,speed:f,variant:h,size:p,colorScheme:m,children:g,...v}=e,x=(0,b.S)("number"==typeof t?[t]:t)||3,w=Array(x).fill(1).map((e,t)=>t+1),k=e=>x>1&&e===w.length?"80%":"100%",S=(0,i.cx)("chakra-skeleton__group",a);return(0,r.jsx)(c.m.div,{className:S,...v,children:w.map((e,t)=>{if(u&&t>0)return null;let i=u?null:{mb:e===w.length?"0":n,width:k(e),height:o};return(0,r.jsx)(y,{startColor:s,endColor:l,isLoaded:u,fadeDuration:d,speed:f,variant:h,size:p,colorScheme:m,...i,children:0===t?g:void 0},w.length.toString()+e)})})};x.displayName="SkeletonText"},31198:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});let r=(0,n(49110).m)("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});r.displayName="Spacer"},56756:function(e,t,n){"use strict";n.d(t,{$:function(){return d}});var r=n(20130),i=n(66861),o=n(90010),a=n(68312),s=n(43906),l=n(35364),u=n(49110);let c=(0,a.F4)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),d=(0,s.G)((e,t)=>{let n=(0,l.m)("Spinner",e),{label:a="Loading...",thickness:s="2px",speed:d="0.45s",emptyColor:f="transparent",className:h,...p}=(0,i.L)(e),m=(0,o.cx)("chakra-spinner",h),g={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:s,borderBottomColor:f,borderLeftColor:f,animation:"".concat(c," ").concat(d," linear infinite"),...n};return(0,r.jsx)(u.m.div,{ref:t,__css:g,className:m,...p,children:a&&(0,r.jsx)(u.m.span,{srOnly:!0,children:a})})});d.displayName="Spinner"},55182:function(e,t,n){"use strict";n.d(t,{U:function(){return o}});var r=n(20130),i=n(17301);let o=(0,n(43906).G)((e,t)=>(0,r.jsx)(i.K,{align:"center",...e,direction:"row",ref:t}));o.displayName="HStack"},76096:function(e,t,n){"use strict";n.d(t,{c:function(){return o}});var r=n(20130),i=n(49110);let o=e=>(0,r.jsx)(i.m.div,{className:"chakra-stack__divider",...e,__css:{...e.__css,borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"}});o.displayName="StackDivider"},17301:function(e,t,n){"use strict";n.d(t,{K:function(){return c}});var r=n(20130),i=n(84535),o=n(90010),a=n(66703),s=n(49110);let l=e=>(0,r.jsx)(s.m.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});l.displayName="StackItem";var u=n(69475);let c=(0,n(43906).G)((e,t)=>{let{isInline:n,direction:c,align:d,justify:f,spacing:h="0.5rem",wrap:p,children:m,divider:g,className:v,shouldWrapChildren:y,...b}=e,x=n?"row":null!=c?c:"column",w=(0,a.useMemo)(()=>(function(e){let{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":(0,u.XQ)(n,e=>r[e])}})({spacing:h,direction:x}),[h,x]),k=!!g,S=!y&&!k,E=(0,a.useMemo)(()=>{let e=(0,i.W)(m);return S?e:e.map((t,n)=>{let i=void 0!==t.key?t.key:n,o=n+1===e.length,s=(0,r.jsx)(l,{children:t},i),u=y?s:t;if(!k)return u;let c=(0,a.cloneElement)(g,{__css:w});return(0,r.jsxs)(a.Fragment,{children:[u,o?null:c]},i)})},[g,w,k,S,y,m]),_=(0,o.cx)("chakra-stack",v);return(0,r.jsx)(s.m.div,{ref:t,display:"flex",alignItems:d,justifyContent:f,flexDirection:x,flexWrap:p,gap:k?void 0:h,className:_,...b,children:E})});c.displayName="Stack"},40613:function(e,t,n){"use strict";n.d(t,{g:function(){return o}});var r=n(20130),i=n(17301);let o=(0,n(43906).G)((e,t)=>(0,r.jsx)(i.K,{align:"center",...e,direction:"column",ref:t}));o.displayName="VStack"},64723:function(e,t,n){"use strict";n.d(t,{r:function(){return d}});var r=n(20130),i=n(66861),o=n(90010),a=n(66703),s=n(50192),l=n(43906),u=n(35364),c=n(49110);let d=(0,l.G)(function(e,t){let n=(0,u.j)("Switch",e),{spacing:l="0.5rem",children:d,...f}=(0,i.L)(e),{getIndicatorProps:h,getInputProps:p,getCheckboxProps:m,getRootProps:g,getLabelProps:v}=(0,s.O)(f),y=(0,a.useMemo)(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...n.container}),[n.container]),b=(0,a.useMemo)(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...n.track}),[n.track]),x=(0,a.useMemo)(()=>({userSelect:"none",marginStart:l,...n.label}),[l,n.label]);return(0,r.jsxs)(c.m.label,{...g(),className:(0,o.cx)("chakra-switch",e.className),__css:y,children:[(0,r.jsx)("input",{className:"chakra-switch__input",...p({},t)}),(0,r.jsx)(c.m.span,{...m(),className:"chakra-switch__track",__css:b,children:(0,r.jsx)(c.m.span,{__css:n.thumb,className:"chakra-switch__thumb",...h()})}),d&&(0,r.jsx)(c.m.span,{className:"chakra-switch__label",...v(),__css:x,children:d})]})});d.displayName="Switch"},49110:function(e,t,n){"use strict";n.d(t,{m:function(){return T}});var r=n(60571),i=n(57898),o=n(69072),a=n(33164),s=n(52409),l=n(9116),u=n(73513),c=n(93949),d=n(37362),f=n(66703),h=n(74580),p=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,m=(0,h.Z)(function(e){return p.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),g=function(e){return"theme"!==e},v=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?m:g},y=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},b=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,d.hC)(t,n,r),(0,c.L)(function(){return(0,d.My)(t,n,r)}),null},x=(function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var c=y(t,n,o),h=c||v(a),p=!h("as");return function(){var m=arguments,g=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&g.push("label:"+r+";"),null==m[0]||void 0===m[0].raw)g.push.apply(g,m);else{var x=m[0];g.push(x[0]);for(var w=m.length,k=1;k<w;k++)g.push(m[k],x[k])}var S=(0,l.w)(function(e,t,n){var r=p&&e.as||a,o="",s=[],m=e;if(null==e.theme){for(var y in m={},e)m[y]=e[y];m.theme=f.useContext(l.T)}"string"==typeof e.className?o=(0,d.fp)(t.registered,s,e.className):null!=e.className&&(o=e.className+" ");var x=(0,u.O)(g.concat(s),t.registered,m);o+=t.key+"-"+x.name,void 0!==i&&(o+=" "+i);var w=p&&void 0===c?v(r):h,k={};for(var S in e)(!p||"as"!==S)&&w(S)&&(k[S]=e[S]);return k.className=o,n&&(k.ref=n),f.createElement(f.Fragment,null,f.createElement(b,{cache:t,serialized:x,isStringTag:"string"==typeof r}),f.createElement(r,k))});return S.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",S.defaultProps=t.defaultProps,S.__emotion_real=S,S.__emotion_base=a,S.__emotion_styles=g,S.__emotion_forwardProp=c,Object.defineProperty(S,"toString",{value:function(){return"."+i}}),S.withComponent=function(t,r){return e(t,(0,s.Z)({},n,r,{shouldForwardProp:y(S,r,!0)})).apply(void 0,g)},S}}).bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){x[e]=x(e)});let w=new Set([...r.cC,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),k=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function S(e){return(k.has(e)||!w.has(e))&&"_"!==e[0]}var E=n(16276);let _=x.default||x,C=e=>{let{baseStyle:t}=e;return e=>{let{theme:n,css:s,__css:l,sx:u,...c}=e,[d]=function(e,...t){let n=Object.getOwnPropertyDescriptors(e),r=Object.keys(n),i=e=>{let t={};for(let r=0;r<e.length;r++){let i=e[r];n[i]&&(Object.defineProperty(t,i,n[i]),delete n[i])}return t};return t.map(e=>i(Array.isArray(e)?e:r.filter(e))).concat(i(r))}(c,r.ZR),f=function(e,...t){if(null==e)throw TypeError("Cannot convert undefined or null to object");let n={...e};for(let e of t)if(null!=e)for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(t in n&&delete n[t],n[t]=e[t]);return n}({},l,(0,o.P)(t,e),(0,a.o)(d),u),h=(0,i.i)(f)(e.theme);return s?[h,s]:h}};function O(e,t){let{baseStyle:n,...r}=null!=t?t:{};r.shouldForwardProp||(r.shouldForwardProp=S);let i=C({baseStyle:n}),o=_(e,r)(i);return(0,f.forwardRef)(function(e,t){let{children:n,...r}=e,{colorMode:i,forced:a}=(0,E.If)();return(0,f.createElement)(o,{ref:t,"data-theme":a?i:void 0,...r},n)})}let T=function(){let e=new Map;return new Proxy(O,{apply:(e,t,n)=>O(...n),get:(t,n)=>(e.has(n)||e.set(n,O(n)),e.get(n))})}()},43906:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var r=n(66703);function i(e){return(0,r.forwardRef)(e)}},94181:function(e,t,n){"use strict";n.d(t,{dQ:function(){return a},uP:function(){return o}});var r=n(35518),i=n(16276);function o(){let e=(0,i.If)(),t=(0,r.F)();return{...e,theme:t}}function a(e,t,n){let i=(0,r.F)();return(function(e,t,n){let r=Array.isArray(t)?t:[t],i=Array.isArray(n)?n:[n];return n=>{let o=i.filter(Boolean),a=r.map((t,r)=>{var i,a;return"breakpoints"===e?function(e,t,n){var r,i;if(null==t)return t;let o=t=>{var n,r;return null===(r=e.__breakpoints)||void 0===r?void 0:null===(n=r.asArray)||void 0===n?void 0:n[t]};return null!==(i=null!==(r=o(t))&&void 0!==r?r:o(n))&&void 0!==i?i:n}(n,t,null!==(i=o[r])&&void 0!==i?i:t):function(e,t,n){var r,i;if(null==t)return t;let o=t=>{var n,r;return null===(r=e.__cssMap)||void 0===r?void 0:null===(n=r[t])||void 0===n?void 0:n.value};return null!==(i=null!==(r=o(t))&&void 0!==r?r:o(n))&&void 0!==i?i:n}(n,"".concat(e,".").concat(t),null!==(a=o[r])&&void 0!==a?a:t)});return Array.isArray(t)?a:a[0]}})(e,t,n)(i)}},35364:function(e,t,n){"use strict";n.d(t,{j:function(){return m},m:function(){return p}});var r=n(93031),i=n(96549),o=n(69072),a=n(58450),s=n(85680),l=n(33164),u=n(40810),c=n(66703),d=n(44307),f=n(94181);function h(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{styleConfig:h,...p}=n,{theme:m,colorMode:g}=(0,f.uP)(),v=e?(0,s.W)(m,"components.".concat(e)):void 0,y=h||v,b=a({theme:m,colorMode:g},null!==(t=null==y?void 0:y.defaultProps)&&void 0!==t?t:{},(0,l.o)((0,u.C)(p,["children"])),(e,t)=>e?void 0:t),x=(0,c.useRef)({});if(y){let e=(e=>{let{variant:t,size:n,theme:s}=e,l=function(e){let t=e.__breakpoints;return function(e,n,s,l){var u;if(!t)return;let c={},d=(u=t.toArrayValue,Array.isArray(s)?s:(0,r.Kn)(s)?u(s):null!=s?[s]:void 0);if(!d)return c;let f=d.length,h=1===f,p=!!e.parts;for(let r=0;r<f;r++){let s=t.details[r],u=t.details[function(e,t){for(let n=t+1;n<e.length;n++)if(null!=e[n])return n;return -1}(d,r)],f=(0,i.Y)(s.minW,u?._minW),m=(0,o.P)(e[n]?.[d[r]],l);if(m){if(p){e.parts?.forEach(e=>{a(c,{[e]:h?m[e]:{[f]:m[e]}})});continue}if(!p){h?a(c,m):c[f]=m;continue}c[f]=m}}return c}}(s);return a({},(0,o.P)(y.baseStyle??{},e),l(y,"sizes",n,e),l(y,"variants",t,e))})(b);d(x.current,e)||(x.current=e)}return x.current}function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h(e,t)}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h(e,t)}},35518:function(e,t,n){"use strict";n.d(t,{F:function(){return o}});var r=n(9116),i=n(66703);function o(){let e=(0,i.useContext)(r.T);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}},95869:function(e,t,n){"use strict";n.d(t,{x:function(){return s}});var r=n(20130),i=n(90010),o=n(43906),a=n(49110);let s=(0,o.G)((e,t)=>{var n;let{overflow:o,overflowX:s,className:l,...u}=e;return(0,r.jsx)(a.m.div,{ref:t,className:(0,i.cx)("chakra-table__container",l),...u,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:null!==(n=null!=o?o:s)&&void 0!==n?n:"auto",overflowY:"hidden",maxWidth:"100%"}})})},65610:function(e,t,n){"use strict";n.d(t,{i:function(){return f},p:function(){return d}});var r=n(20130),i=n(66861),o=n(9396),a=n(90010),s=n(43906),l=n(35364),u=n(49110);let[c,d]=(0,o.k)({name:"TableStylesContext",errorMessage:"useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Table />\" "}),f=(0,s.G)((e,t)=>{let n=(0,l.j)("Table",e),{className:o,layout:s,...d}=(0,i.L)(e);return(0,r.jsx)(c,{value:n,children:(0,r.jsx)(u.m.table,{ref:t,__css:{tableLayout:s,...n.table},className:(0,a.cx)("chakra-table",o),...d})})});f.displayName="Table"},68100:function(e,t,n){"use strict";n.d(t,{p:function(){return s}});var r=n(20130),i=n(65610),o=n(43906),a=n(49110);let s=(0,o.G)((e,t)=>{let n=(0,i.p)();return(0,r.jsx)(a.m.tbody,{...e,ref:t,__css:n.tbody})})},29313:function(e,t,n){"use strict";n.d(t,{Td:function(){return s}});var r=n(20130),i=n(65610),o=n(43906),a=n(49110);let s=(0,o.G)((e,t)=>{let{isNumeric:n,...o}=e,s=(0,i.p)();return(0,r.jsx)(a.m.td,{...o,ref:t,__css:s.td,"data-is-numeric":n})})},46321:function(e,t,n){"use strict";n.d(t,{Th:function(){return s}});var r=n(20130),i=n(65610),o=n(43906),a=n(49110);let s=(0,o.G)((e,t)=>{let{isNumeric:n,...o}=e,s=(0,i.p)();return(0,r.jsx)(a.m.th,{...o,ref:t,__css:s.th,"data-is-numeric":n})})},30874:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(20130),i=n(65610),o=n(43906),a=n(49110);let s=(0,o.G)((e,t)=>{let n=(0,i.p)();return(0,r.jsx)(a.m.thead,{...e,ref:t,__css:n.thead})})},97020:function(e,t,n){"use strict";n.d(t,{Tr:function(){return s}});var r=n(20130),i=n(65610),o=n(43906),a=n(49110);let s=(0,o.G)((e,t)=>{let n=(0,i.p)();return(0,r.jsx)(a.m.tr,{...e,ref:t,__css:n.tr})})},17200:function(e,t,n){"use strict";n.d(t,{t:function(){return c}});var r=n(20130),i=n(71034),o=n(90010),a=n(69711),s=n(4751),l=n(43906),u=n(49110);let c=(0,l.G)(function(e,t){let n=(0,s.hp)({...e,ref:t}),l=(0,a.s)(),c=(0,i.k0)({display:"flex",...l.tablist});return(0,r.jsx)(u.m.div,{...n,className:(0,o.cx)("chakra-tabs__tablist",e.className),__css:c})});c.displayName="TabList"},76569:function(e,t,n){"use strict";n.d(t,{x:function(){return u}});var r=n(20130),i=n(90010),o=n(69711),a=n(4751),s=n(43906),l=n(49110);let u=(0,s.G)(function(e,t){let n=(0,a.WE)({...e,ref:t}),s=(0,o.s)();return(0,r.jsx)(l.m.div,{outline:"0",...n,className:(0,i.cx)("chakra-tabs__tab-panel",e.className),__css:s.tabpanel})});u.displayName="TabPanel"},17658:function(e,t,n){"use strict";n.d(t,{n:function(){return u}});var r=n(20130),i=n(90010),o=n(69711),a=n(4751),s=n(43906),l=n(49110);let u=(0,s.G)(function(e,t){let n=(0,a.bt)(e),s=(0,o.s)();return(0,r.jsx)(l.m.div,{...n,width:"100%",ref:t,className:(0,i.cx)("chakra-tabs__tab-panels",e.className),__css:s.tabpanels})});u.displayName="TabPanels"},94136:function(e,t,n){"use strict";n.d(t,{O:function(){return c}});var r=n(20130),i=n(71034),o=n(90010),a=n(69711),s=n(4751),l=n(43906),u=n(49110);let c=(0,l.G)(function(e,t){let n=(0,a.s)(),l=(0,s.xD)({...e,ref:t}),c=(0,i.k0)({outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...n.tab});return(0,r.jsx)(u.m.button,{...l,className:(0,o.cx)("chakra-tabs__tab",e.className),__css:c})});c.displayName="Tab"},69711:function(e,t,n){"use strict";n.d(t,{m:function(){return p},s:function(){return h}});var r=n(20130),i=n(66861),o=n(9396),a=n(90010),s=n(66703),l=n(4751),u=n(43906),c=n(35364),d=n(49110);let[f,h]=(0,o.k)({name:"TabsStylesContext",errorMessage:"useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Tabs />\" "}),p=(0,u.G)(function(e,t){let n=(0,c.j)("Tabs",e),{children:o,className:u,...h}=(0,i.L)(e),{htmlProps:p,descendants:m,...g}=(0,l.YE)(h),v=(0,s.useMemo)(()=>g,[g]),{isFitted:y,...b}=p,x={position:"relative",...n.root};return(0,r.jsx)(l.mE,{value:m,children:(0,r.jsx)(l.X,{value:v,children:(0,r.jsx)(f,{value:n,children:(0,r.jsx)(d.m.div,{className:(0,a.cx)("chakra-tabs",u),ref:t,...b,__css:x,children:o})})})})});p.displayName="Tabs"},4751:function(e,t,n){"use strict";n.d(t,{mE:function(){return f},X:function(){return v},xD:function(){return x},hp:function(){return b},WE:function(){return E},bt:function(){return S},YE:function(){return g}});var r=n(66703),i=n(55229),o=n(6461),a=n(9396),s=n(11915),l=n(84535),u=n(27425),c=n(39577),d=n(74269);let[f,h,p,m]=(0,c.n)();function g(e){var t;let{defaultIndex:n,onChange:o,index:a,isManual:s,isLazy:l,lazyBehavior:u="unmount",orientation:c="horizontal",direction:d="ltr",...f}=e,[h,m]=(0,r.useState)(null!=n?n:0),[g,v]=function(e){let{value:t,defaultValue:n,onChange:o,shouldUpdate:a=(e,t)=>e!==t}=e,s=(0,i.W)(o),l=(0,i.W)(a),[u,c]=(0,r.useState)(n),d=void 0!==t,f=d?t:u,h=(0,i.W)(e=>{let t="function"==typeof e?e(f):e;l(f,t)&&(d||c(t),s(t))},[d,s,f,l]);return[f,h]}({defaultValue:null!=n?n:0,value:a,onChange:o});(0,r.useEffect)(()=>{null!=a&&m(a)},[a]);let y=p(),b=(0,r.useId)(),x=null!==(t=e.id)&&void 0!==t?t:b;return{id:"tabs-".concat(x),selectedIndex:g,focusedIndex:h,setSelectedIndex:v,setFocusedIndex:m,isManual:s,isLazy:l,lazyBehavior:u,orientation:c,descendants:y,direction:d,htmlProps:f}}let[v,y]=(0,a.k)({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within <Tabs />"});function b(e){let{focusedIndex:t,orientation:n,direction:i}=y(),o=h(),a=(0,r.useCallback)(e=>{let r=()=>{var e;let n=o.nextEnabled(t);n&&(null===(e=n.node)||void 0===e||e.focus())},a=()=>{var e;let n=o.prevEnabled(t);n&&(null===(e=n.node)||void 0===e||e.focus())},s="horizontal"===n,l="vertical"===n,u={["ltr"===i?"ArrowLeft":"ArrowRight"]:()=>s&&a(),["ltr"===i?"ArrowRight":"ArrowLeft"]:()=>s&&r(),ArrowDown:()=>l&&r(),ArrowUp:()=>l&&a(),Home:()=>{var e;let t=o.firstEnabled();t&&(null===(e=t.node)||void 0===e||e.focus())},End:()=>{var e;let t=o.lastEnabled();t&&(null===(e=t.node)||void 0===e||e.focus())}}[e.key];u&&(e.preventDefault(),u(e))},[o,t,n,i]);return{...e,role:"tablist","aria-orientation":n,onKeyDown:(0,s.v)(e.onKeyDown,a)}}function x(e){let{isDisabled:t=!1,isFocusable:n=!1,...r}=e,{setSelectedIndex:i,isManual:a,id:l,setFocusedIndex:u,selectedIndex:c}=y(),{index:f,register:h}=m({disabled:t&&!n}),p=f===c;return{...(0,d.h)({...r,ref:(0,o.lq)(h,e.ref),isDisabled:t,isFocusable:n,onClick:(0,s.v)(e.onClick,()=>{i(f)})}),id:_(l,f),role:"tab",tabIndex:p?0:-1,type:"button","aria-selected":p,"aria-controls":C(l,f),onFocus:t?void 0:(0,s.v)(e.onFocus,()=>{u(f);let e=t&&n;a||e||i(f)})}}let[w,k]=(0,a.k)({});function S(e){let{id:t,selectedIndex:n}=y(),i=(0,l.W)(e.children).map((e,i)=>{var o;return(0,r.createElement)(w,{key:null!==(o=e.key)&&void 0!==o?o:i,value:{isSelected:i===n,id:C(t,i),tabId:_(t,i),selectedIndex:n}},e)});return{...e,children:i}}function E(e){let{children:t,...n}=e,{isLazy:i,lazyBehavior:o}=y(),{isSelected:a,id:s,tabId:l}=k(),c=(0,r.useRef)(!1);a&&(c.current=!0);let d=(0,u.k)({wasSelected:c.current,isSelected:a,enabled:i,mode:o});return{tabIndex:0,...n,children:d?t:null,role:"tabpanel","aria-labelledby":l,hidden:!a,id:s}}function _(e,t){return"".concat(e,"--tab-").concat(t)}function C(e,t){return"".concat(e,"--tabpanel-").concat(t)}},43400:function(e,t,n){"use strict";n.d(t,{AD:function(){return p},SD:function(){return v},Sn:function(){return h},Vp:function(){return f},bq:function(){return m}});var r=n(20130),i=n(66861),o=n(9396),a=n(5845),s=n(43906),l=n(35364),u=n(49110);let[c,d]=(0,o.k)({name:"TagStylesContext",errorMessage:"useTagStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Tag />\" "}),f=(0,s.G)((e,t)=>{let n=(0,l.j)("Tag",e),o=(0,i.L)(e),a={display:"inline-flex",verticalAlign:"top",alignItems:"center",maxWidth:"100%",...n.container};return(0,r.jsx)(c,{value:n,children:(0,r.jsx)(u.m.span,{ref:t,...o,__css:a})})});f.displayName="Tag";let h=(0,s.G)((e,t)=>{let n=d();return(0,r.jsx)(u.m.span,{ref:t,noOfLines:1,...e,__css:n.label})});h.displayName="TagLabel";let p=(0,s.G)((e,t)=>(0,r.jsx)(a.J,{ref:t,verticalAlign:"top",marginEnd:"0.5rem",...e}));p.displayName="TagLeftIcon";let m=(0,s.G)((e,t)=>(0,r.jsx)(a.J,{ref:t,verticalAlign:"top",marginStart:"0.5rem",...e}));m.displayName="TagRightIcon";let g=e=>(0,r.jsx)(a.J,{verticalAlign:"inherit",viewBox:"0 0 512 512",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})});g.displayName="TagCloseIcon";let v=(0,s.G)((e,t)=>{let{isDisabled:n,children:i,...o}=e,a={display:"flex",alignItems:"center",justifyContent:"center",outline:"0",...d().closeButton};return(0,r.jsx)(u.m.button,{ref:t,"aria-label":"close",...o,type:"button",disabled:n,__css:a,children:i||(0,r.jsx)(g,{})})});v.displayName="TagCloseButton"},34367:function(e,t,n){"use strict";n.d(t,{g:function(){return f}});var r=n(20130),i=n(66861),o=n(40810),a=n(90010),s=n(31172),l=n(43906),u=n(35364),c=n(49110);let d=["h","minH","height","minHeight"],f=(0,l.G)((e,t)=>{let n=(0,u.m)("Textarea",e),{className:l,rows:f,...h}=(0,i.L)(e),p=(0,s.Y)(h),m=f?(0,o.C)(n,d):n;return(0,r.jsx)(c.m.textarea,{ref:t,rows:f,...p,className:(0,a.cx)("chakra-textarea",l),__css:m})});f.displayName="Textarea"},78850:function(e,t,n){"use strict";n.d(t,{C:function(){return p}});var r=n(20130),i=n(18422),o=n(49956),a=n(90010),s=n(50393),l=n(43906),u=n(49110);let c=(0,l.G)(function(e,t){let n=(0,s.uL)(),{status:i}=(0,s.oX)();return(0,r.jsx)(u.m.div,{ref:t,"data-status":i,...e,className:(0,a.cx)("chakra-alert__title",e.className),__css:n.title})});c.displayName="AlertTitle";var d=n(76902),f=n(10994);let h=e=>{let{status:t,variant:n="solid",id:a,title:s,isClosable:l,onClose:h,description:p,colorScheme:m,icon:g}=e,v=a?{root:"toast-".concat(a),title:"toast-".concat(a,"-title"),description:"toast-".concat(a,"-description")}:void 0;return(0,r.jsxs)(i.b,{addRole:!1,status:t,variant:n,id:null==v?void 0:v.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:m,children:[(0,r.jsx)(o.z,{children:g}),(0,r.jsxs)(u.m.div,{flex:"1",maxWidth:"100%",children:[s&&(0,r.jsx)(c,{id:null==v?void 0:v.title,children:s}),p&&(0,r.jsx)(d.X,{id:null==v?void 0:v.description,display:"block",children:p})]}),l&&(0,r.jsx)(f.P,{size:"sm",onClick:h,position:"absolute",insetEnd:1,top:1})]})};function p(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{render:t,toastComponent:n=h}=e;return i=>"function"==typeof t?t({...i,...e}):(0,r.jsx)(n,{...i,...e})}},76694:function(e,t,n){"use strict";n.d(t,{Qi:function(){return y},VW:function(){return x},OX:function(){return b}});var r=n(20130),i=n(9396),o=n(40880),a=n(66703),s=n(95318),l=n(55229),u=n(69072),c=n(86231),d=n(42349),f=n(97038),h=n(49110);let p={initial:e=>{let{position:t}=e,n=["top","bottom"].includes(t)?"y":"x",r=["top-right","bottom-right"].includes(t)?1:-1;return"bottom"===t&&(r=1),{opacity:0,[n]:24*r}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},m=(0,a.memo)(e=>{let{id:t,message:n,onCloseComplete:i,onRequestRemove:o,requestClose:m=!1,position:g="bottom",duration:v=5e3,containerStyle:y,motionVariants:b=p,toastSpacing:x="0.5rem"}=e,[w,k]=(0,a.useState)(v),S=(0,c.hO)();(0,s.r)(()=>{S||null==i||i()},[S]),(0,s.r)(()=>{k(v)},[v]);let E=()=>{S&&o()};(0,a.useEffect)(()=>{S&&m&&o()},[S,m,o]),function(e,t){let n=(0,l.W)(e);(0,a.useEffect)(()=>{if(null==t)return;let e=null;return e=window.setTimeout(()=>{n()},t),()=>{e&&window.clearTimeout(e)}},[t,n])}(E,w);let _=(0,a.useMemo)(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:x,...y}),[y,x]),C=(0,a.useMemo)(()=>(0,f.sv)(g),[g]);return(0,r.jsx)(d.E.div,{layout:!0,className:"chakra-toast",variants:b,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>k(null),onHoverEnd:()=>k(v),custom:{position:g},style:C,children:(0,r.jsx)(h.m.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:_,children:(0,u.P)(n,{id:t,onClose:E})})})});m.displayName="ToastComponent";var g=n(43317),v=n(72669);let[y,b]=(0,i.k)({name:"ToastOptionsContext",strict:!1}),x=e=>{let t=(0,a.useSyncExternalStore)(g.f.subscribe,g.f.getState,g.f.getState),{motionVariants:n,component:i=m,portalProps:s,animatePresenceProps:l}=e,u=Object.keys(t).map(e=>{let a=t[e];return(0,r.jsx)("div",{role:"region","aria-live":"polite","aria-label":"Notifications-".concat(e),id:"chakra-toast-manager-".concat(e),style:(0,f.IW)(e),children:(0,r.jsx)(o.M,{...l,initial:!1,children:a.map(e=>(0,r.jsx)(i,{motionVariants:n,...e},e.id))})},e)});return(0,r.jsx)(v.h,{...s,children:u})}},43317:function(e,t,n){"use strict";n.d(t,{f:function(){return o}});var r=n(78850),i=n(97038);let o=function(e){let t=e,n=new Set,s=e=>{t=e(t),n.forEach(e=>e())};return{getState:()=>t,subscribe:t=>(n.add(t),()=>{s(()=>e),n.delete(t)}),removeToast:(e,t)=>{s(n=>({...n,[t]:n[t].filter(t=>t.id!=e)}))},notify:(e,t)=>{let n=function(e){var t,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a+=1;let i=null!==(t=r.id)&&void 0!==t?t:a,s=null!==(n=r.position)&&void 0!==n?n:"bottom";return{id:i,message:e,position:s,duration:r.duration,onCloseComplete:r.onCloseComplete,onRequestRemove:()=>o.removeToast(String(i),s),status:r.status,requestClose:!1,containerStyle:r.containerStyle}}(e,t),{position:r,id:i}=n;return s(e=>{var t,i;let o=r.includes("top")?[n,...null!==(t=e[r])&&void 0!==t?t:[]]:[...null!==(i=e[r])&&void 0!==i?i:[],n];return{...e,[r]:o}}),i},update:(e,t)=>{e&&s(n=>{let o={...n},{position:a,index:s}=(0,i.Dn)(o,e);return a&&-1!==s&&(o[a][s]={...o[a][s],...t,message:(0,r.C)(t)}),o})},closeAll:function(){let{positions:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(t=>(null!=e?e:["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((e,n)=>(e[n]=t[n].map(e=>({...e,requestClose:!0})),e),{...t}))},close:e=>{s(t=>{let n=(0,i.ym)(t,e);return n?{...t,[n]:t[n].map(t=>t.id==e?{...t,requestClose:!0}:t)}:t})},isActive:e=>!!(0,i.Dn)(o.getState(),e).position}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]}),a=0},97038:function(e,t,n){"use strict";n.d(t,{Dn:function(){return i},IW:function(){return s},sv:function(){return a},ym:function(){return o}});let r=(e,t)=>e.find(e=>e.id===t);function i(e,t){let n=o(e,t),r=n?e[n].findIndex(e=>e.id===t):-1;return{position:n,index:r}}function o(e,t){for(let[n,i]of Object.entries(e))if(r(i,t))return n}function a(e){let t=e.includes("right"),n=e.includes("left"),r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function s(e){let t=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,n=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,r=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",i=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:"top"===e||"bottom"===e?"0 auto":void 0,top:t,bottom:n,right:r,left:i}}},55261:function(e,t,n){"use strict";n.d(t,{p:function(){return u}});var r=n(66703),i=n(69072),o=n(78850),a=n(43317),s=n(76694),l=n(94181);function u(e){let{theme:t}=(0,l.uP)(),n=(0,s.OX)();return(0,r.useMemo)(()=>(function(e,t){let n=n=>{var r;return{...t,...n,position:function(e,t){var n;let r=null!=e?e:"bottom",i={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[r];return null!==(n=null==i?void 0:i[t])&&void 0!==n?n:r}(null!==(r=null==n?void 0:n.position)&&void 0!==r?r:null==t?void 0:t.position,e)}},r=e=>{let t=n(e),r=(0,o.C)(t);return a.f.notify(r,t)};return r.update=(e,t)=>{a.f.update(e,n(t))},r.promise=(e,t)=>{let n=r({...t.loading,status:"loading",duration:null});e.then(e=>r.update(n,{status:"success",duration:5e3,...(0,i.P)(t.success,e)})).catch(e=>r.update(n,{status:"error",duration:5e3,...(0,i.P)(t.error,e)}))},r.closeAll=a.f.closeAll,r.close=a.f.close,r.isActive=a.f.isActive,r})(t.direction,{...n,...e}),[e,t.direction,n])}},81145:function(e,t,n){"use strict";n.d(t,{u:function(){return T}});var r=n(20130),i=n(66861),o=n(40810),a=n(47301),s=n(42349),l=n(40880),u=n(66703),c=n(6010);let d={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}};var f=n(85071),h=n(37584),p=n(6461),m=n(19249),g=n(11915),v=n(48961),y=n(74833);let b=e=>{var t;return(null===(t=e.current)||void 0===t?void 0:t.ownerDocument)||document},x=e=>{var t,n;return(null===(n=e.current)||void 0===n?void 0:null===(t=n.ownerDocument)||void 0===t?void 0:t.defaultView)||window},w="chakra-ui:close-tooltip";var k=n(35518),S=n(72669),E=n(49110),_=n(43906),C=n(35364);let O=(0,E.m)(s.E.div),T=(0,_.G)((e,t)=>{var n,s;let _;let T=(0,C.m)("Tooltip",e),A=(0,i.L)(e),P=(0,k.F)(),{children:I,label:R,shouldWrapChildren:j,"aria-label":M,hasArrow:N,bg:D,portalProps:L,background:z,backgroundColor:F,bgColor:B,motionProps:$,animatePresenceProps:V,...U}=A,W=null!==(s=null!==(n=null!=z?z:F)&&void 0!==n?n:D)&&void 0!==s?s:B;if(W){T.bg=W;let e=P.__cssMap?.[`colors.${W}`]?.varRef??W;T[y.Dq.arrowBg.var]=e}let q=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{openDelay:t=0,closeDelay:n=0,closeOnClick:r=!0,closeOnMouseDown:i,closeOnScroll:o,closeOnPointerDown:a=i,closeOnEsc:s=!0,onOpen:l,onClose:c,placement:d,id:k,isOpen:S,defaultIsOpen:E,arrowSize:_=10,arrowShadowColor:C,arrowPadding:O,modifiers:T,isDisabled:A,gutter:P,offset:I,direction:R,...j}=e,{isOpen:M,onOpen:N,onClose:D}=(0,f.q)({isOpen:S,defaultIsOpen:E,onOpen:l,onClose:c}),{referenceRef:L,getPopperProps:z,getArrowInnerProps:F,getArrowProps:B}=(0,v.D)({enabled:M,placement:d,arrowPadding:O,modifiers:T,gutter:P,offset:I,direction:R}),$=(0,u.useId)(),V="tooltip-".concat(null!=k?k:$),U=(0,u.useRef)(null),W=(0,u.useRef)(void 0),q=(0,u.useCallback)(()=>{W.current&&(clearTimeout(W.current),W.current=void 0)},[]),H=(0,u.useRef)(void 0),Z=(0,u.useCallback)(()=>{H.current&&(clearTimeout(H.current),H.current=void 0)},[]),G=(0,u.useCallback)(()=>{Z(),D()},[D,Z]),K=((0,u.useEffect)(()=>{let e=b(U);return e.addEventListener(w,G),()=>e.removeEventListener(w,G)},[G,U]),()=>{let e=b(U),t=x(U);e.dispatchEvent(new t.CustomEvent(w))}),Y=(0,u.useCallback)(()=>{if(!A&&!W.current){M&&K();let e=x(U);W.current=e.setTimeout(N,t)}},[K,A,M,N,t]),X=(0,u.useCallback)(()=>{q();let e=x(U);H.current=e.setTimeout(G,n)},[n,G,q]),J=(0,u.useCallback)(()=>{M&&r&&X()},[r,X,M]),Q=(0,u.useCallback)(()=>{M&&a&&X()},[a,X,M]),ee=(0,u.useCallback)(e=>{M&&"Escape"===e.key&&X()},[M,X]);(0,h.O)(()=>b(U),"keydown",s?ee:void 0),(0,h.O)(()=>{if(!o)return null;let e=U.current;if(!e)return null;let t=function e(t){return["html","body","#document"].includes(t.localName)?t.ownerDocument.body:(0,m.Re)(t)&&function(e){let{overflow:t,overflowX:n,overflowY:r}=(e.ownerDocument.defaultView||window).getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}(t)?t:e("html"===t.localName?t:t.assignedSlot||t.parentElement||t.ownerDocument.documentElement)}(e);return"body"===t.localName?x(U):t},"scroll",()=>{M&&o&&G()},{passive:!0,capture:!0}),(0,u.useEffect)(()=>{A&&(q(),M&&D())},[A,M,D,q]),(0,u.useEffect)(()=>()=>{q(),Z()},[q,Z]),(0,h.O)(()=>U.current,"pointerleave",X);let et=(0,u.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:(0,p.lq)(U,t,L),onPointerEnter:(0,g.v)(e.onPointerEnter,e=>{"touch"!==e.pointerType&&Y()}),onClick:(0,g.v)(e.onClick,J),onPointerDown:(0,g.v)(e.onPointerDown,Q),onFocus:(0,g.v)(e.onFocus,Y),onBlur:(0,g.v)(e.onBlur,X),"aria-describedby":M?V:void 0}},[Y,X,Q,M,V,J,L]),en=(0,u.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return z({...e,style:{...e.style,[y.Dq.arrowSize.var]:_?"".concat(_,"px"):void 0,[y.Dq.arrowShadowColor.var]:C}},t)},[z,_,C]);return{isOpen:M,show:Y,hide:X,getTriggerProps:et,getTooltipProps:(0,u.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n={...e.style,position:"relative",transformOrigin:y.Dq.transformOrigin.varRef};return{ref:t,...j,...e,id:V,role:"tooltip",style:n}},[j,V]),getTooltipPositionerProps:en,getArrowProps:B,getArrowInnerProps:F}}({...U,direction:P.direction});if(!(0,u.isValidElement)(I)||j)_=(0,r.jsx)(E.m.span,{display:"inline-block",tabIndex:0,...q.getTriggerProps(),children:I});else{let e=u.Children.only(I);_=(0,u.cloneElement)(e,q.getTriggerProps(e.props,(0,c.e)(e)))}let H=!!M,Z=q.getTooltipProps({},t),G=H?(0,o.C)(Z,["role","id"]):Z,K=(0,a.e)(Z,["role","id"]);return R?(0,r.jsxs)(r.Fragment,{children:[_,(0,r.jsx)(l.M,{...V,children:q.isOpen&&(0,r.jsx)(S.h,{...L,children:(0,r.jsx)(E.m.div,{...q.getTooltipPositionerProps(),__css:{zIndex:T.zIndex,pointerEvents:"none"},children:(0,r.jsxs)(O,{variants:d,initial:"exit",animate:"enter",exit:"exit",...$,...G,__css:T,children:[R,H&&(0,r.jsx)(E.m.span,{srOnly:!0,...K,children:M}),N&&(0,r.jsx)(E.m.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:(0,r.jsx)(E.m.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:T.bg}})})]})})})})]}):(0,r.jsx)(r.Fragment,{children:I})});T.displayName="Tooltip"},35278:function(e,t,n){"use strict";n.d(t,{Sh:function(){return r},p$:function(){return i}});let r={enter:{duration:.2,ease:[0,0,.2,1]},exit:{duration:.1,ease:[.4,0,1,1]}},i={enter:(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.enter}),exit:(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.exit})}},41450:function(e,t,n){"use strict";n.d(t,{X:function(){return u}});var r=n(20130),i=n(66861),o=n(90010),a=n(43906),s=n(35364),l=n(49110);let u=(0,a.G)(function(e,t){let n=(0,s.m)("Heading",e),{className:a,...u}=(0,i.L)(e);return(0,r.jsx)(l.m.h2,{ref:t,className:(0,o.cx)("chakra-heading",e.className),...u,__css:n})});u.displayName="Heading"},55169:function(e,t,n){"use strict";n.d(t,{x:function(){return c}});var r=n(20130),i=n(66861),o=n(33164),a=n(90010),s=n(43906),l=n(35364),u=n(49110);let c=(0,s.G)(function(e,t){let n=(0,l.m)("Text",e),{className:s,align:c,decoration:d,casing:f,...h}=(0,i.L)(e),p=(0,o.o)({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return(0,r.jsx)(u.m.p,{ref:t,className:(0,a.cx)("chakra-text",e.className),...p,...h,__css:n})});c.displayName="Text"},28770:function(e,t,n){"use strict";n.d(t,{N:function(){return r}});let r={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"}},71381:function(e,t,n){"use strict";n.d(t,{E:function(){return l},U:function(){return u}});var r=n(20130),i=n(90010),o=n(66703),a=n(43906),s=n(49110);let l=(0,a.G)(function(e,t){let{spacing:n="0.5rem",spacingX:a,spacingY:l,children:c,justify:d,direction:f,align:h,className:p,shouldWrapChildren:m,...g}=e,v=(0,o.useMemo)(()=>m?o.Children.map(c,(e,t)=>(0,r.jsx)(u,{children:e},t)):c,[c,m]);return(0,r.jsx)(s.m.div,{ref:t,className:(0,i.cx)("chakra-wrap",p),...g,children:(0,r.jsx)(s.m.ul,{className:"chakra-wrap__list",__css:{display:"flex",flexWrap:"wrap",justifyContent:d,alignItems:h,flexDirection:f,listStyleType:"none",gap:n,columnGap:a,rowGap:l,padding:"0"},children:v})})});l.displayName="Wrap";let u=(0,a.G)(function(e,t){let{className:n,...o}=e;return(0,r.jsx)(s.m.li,{ref:t,__css:{display:"flex",alignItems:"flex-start"},className:(0,i.cx)("chakra-wrap__listitem",n),...o})});u.displayName="WrapItem"},92475:function(e,t,n){"use strict";function r(e){return e}function i(e){return{definePartsStyle:e=>e,defineMultiStyleConfig:t=>({parts:e,...t})}}n.d(t,{D:function(){return i},k0:function(){return r}})},23880:function(e,t,n){"use strict";n.d(t,{y:function(){return d}});var r=n(93031);function i(e){return(0,r.Kn)(e)&&e.reference?e.reference:String(e)}let o=(e,...t)=>t.map(i).join(` ${e} `).replace(/calc/g,""),a=(...e)=>`calc(${o("+",...e)})`,s=(...e)=>`calc(${o("-",...e)})`,l=(...e)=>`calc(${o("*",...e)})`,u=(...e)=>`calc(${o("/",...e)})`,c=e=>{let t=i(e);return null==t||Number.isNaN(parseFloat(t))?l(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},d=Object.assign(e=>({add:(...t)=>d(a(e,...t)),subtract:(...t)=>d(s(e,...t)),multiply:(...t)=>d(l(e,...t)),divide:(...t)=>d(u(e,...t)),negate:()=>d(c(e)),toString:()=>e.toString()}),{add:a,subtract:s,multiply:l,divide:u,negate:c})},41293:function(e,t,n){"use strict";function r(e,t,n){let r=function(e,t=""){var n;return((n=function(e,t="-"){return e.replace(/\s+/g,t)}(`--${(function(e,t=""){return[t,e].filter(Boolean).join("-")})(e,t)}`.toString())).includes("\\.")?n:Number.isInteger(parseFloat(n.toString()))?n:n.replace(".","\\.")).replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}(e,n);return{variable:r,reference:`var(${r}${t?`, ${t}`:""})`}}function i(e,t){let n={};for(let i of t){if(Array.isArray(i)){let[t,o]=i;n[t]=r(`${e}-${t}`,o);continue}n[i]=r(`${e}-${i}`)}return n}n.d(t,{_6:function(){return i},gJ:function(){return r}})},57898:function(e,t,n){"use strict";n.d(t,{i:function(){return d}});var r=n(69072),i=n(93031),o=n(58450),a=n(57386),s=n(60571);let l=e=>t=>{if(!t.__breakpoints)return e;let{isResponsive:n,toArrayValue:o,media:a}=t.__breakpoints,s={};for(let l in e){let u=(0,r.P)(e[l],t);if(null==u)continue;if(!Array.isArray(u=(0,i.Kn)(u)&&n(u)?o(u):u)){s[l]=u;continue}let c=u.slice(0,a.length).length;for(let e=0;e<c;e+=1){let t=a?.[e];if(!t){s[l]=u[e];continue}s[t]=s[t]||{},null!=u[e]&&(s[t][l]=u[e])}}return s},u=(e,t)=>e.startsWith("--")&&"string"==typeof t&&!/^var\(--.+\)$/.test(t),c=(e,t)=>{if(null==t)return t;let n=t=>e.__cssMap?.[t]?.varRef,r=e=>n(e)??e,[i,o]=function(e){let t=[],n="",r=!1;for(let i=0;i<e.length;i++){let o=e[i];"("===o?(r=!0,n+=o):")"===o?(r=!1,n+=o):","!==o||r?n+=o:(t.push(n),n="")}return(n=n.trim())&&t.push(n),t}(t);return t=n(i)??r(o)??r(t)},d=e=>t=>(function(e){let{configs:t={},pseudos:n={},theme:a}=e,s=(e,d=!1)=>{let f=(0,r.P)(e,a),h=l(f)(a),p={};for(let e in h){let l=h[e],m=(0,r.P)(l,a);e in n&&(e=n[e]),u(e,m)&&(m=c(a,m));let g=t[e];if(!0===g&&(g={property:e}),(0,i.Kn)(m)){p[e]=p[e]??{},p[e]=o({},p[e],s(m,!0));continue}let v=g?.transform?.(m,a,f)??m;v=g?.processResult?s(v,!0):v;let y=(0,r.P)(g?.property,a);if(!d&&g?.static&&(p=o({},p,(0,r.P)(g.static,a))),y&&Array.isArray(y)){for(let e of y)p[e]=v;continue}if(y){"&"===y&&(0,i.Kn)(v)?p=o({},p,v):p[y]=v;continue}if((0,i.Kn)(v)){p=o({},p,v);continue}p[e]=v}return p};return s})({theme:t,pseudos:a.v,configs:s.Ul})(e)},71034:function(e,t,n){"use strict";function r(e){return e}function i(e){return e}function o(e){return{definePartsStyle:e=>e,defineMultiStyleConfig:t=>({parts:e,...t})}}n.d(t,{D:function(){return o},fj:function(){return i},k0:function(){return r}})},57386:function(e,t,n){"use strict";n.d(t,{_:function(){return m},v:function(){return p}});let r=(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,i=(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,o=(e,t)=>`${e}:focus-visible ${t}`,a=(e,t)=>`${e}:focus-within ${t}`,s=(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,l=(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,u=(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,c=(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,d=e=>h(t=>e(t,"&"),"[role=group]","[data-group]",".group"),f=e=>h(t=>e(t,"~ &"),"[data-peer]",".peer"),h=(e,...t)=>t.map(e).join(", "),p={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-focus-within]",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate], &[data-state=indeterminate]",_groupOpen:d((e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`),_groupClosed:d((e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`),_groupHover:d(r),_peerHover:f(r),_groupFocus:d(i),_peerFocus:f(i),_groupFocusVisible:d(o),_peerFocusVisible:f(o),_groupActive:d(s),_peerActive:f(s),_groupDisabled:d(l),_peerDisabled:f(l),_groupInvalid:d(u),_peerInvalid:f(u),_groupChecked:d(c),_peerChecked:f(c),_groupFocusWithin:d(a),_peerFocusWithin:f(a),_peerPlaceholderShown:f((e,t)=>`${e}:placeholder-shown ${t}`),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-fullscreen]",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"},m=Object.keys(p)},60571:function(e,t,n){"use strict";n.d(t,{ZR:function(){return Y},oE:function(){return Z},cC:function(){return G},Ul:function(){return H}});var r=n(58450),i=n(57386),o=n(93031);let a=e=>/!(important)?$/.test(e),s=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e,l=(e,t)=>n=>{let r=String(t),i=a(r),l=s(r),u=e?`${e}.${l}`:l,c=(0,o.Kn)(n.__cssMap)&&u in n.__cssMap?n.__cssMap[u].varRef:t;return c=s(c),i?`${c} !important`:c};function u(e){let{scale:t,transform:n,compose:r}=e;return(e,i)=>{let o=l(t,e)(i),a=n?.(o,i)??o;return r&&(a=r(a,i)),a}}let c=(...e)=>t=>e.reduce((e,t)=>t(e),t);function d(e,t){return n=>{let r={property:n,scale:e};return r.transform=u({scale:e,transform:t}),r}}let f=({rtl:e,ltr:t})=>n=>"rtl"===n.direction?e:t,h=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"],p={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:"var(--chakra-blur) var(--chakra-brightness) var(--chakra-contrast) var(--chakra-grayscale) var(--chakra-hue-rotate) var(--chakra-invert) var(--chakra-saturate) var(--chakra-sepia) var(--chakra-drop-shadow)"},m={backdropFilter:"var(--chakra-backdrop-blur) var(--chakra-backdrop-brightness) var(--chakra-backdrop-contrast) var(--chakra-backdrop-grayscale) var(--chakra-backdrop-hue-rotate) var(--chakra-backdrop-invert) var(--chakra-backdrop-opacity) var(--chakra-backdrop-saturate) var(--chakra-backdrop-sepia)","--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"},g={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},v={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},y=new Set(Object.values(v)),b=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),x=e=>e.trim(),w=e=>"string"==typeof e&&e.includes("(")&&e.includes(")"),k=e=>{let t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},S=e=>t=>`${e}(${t})`,E={filter:e=>"auto"!==e?e:p,backdropFilter:e=>"auto"!==e?e:m,ring:e=>({"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":E.px(e),boxShadow:"var(--chakra-ring-offset-shadow), var(--chakra-ring-shadow), var(--chakra-shadow, 0 0 #0000)"}),bgClip:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e},transform:e=>"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...h].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...h].join(" "):e,vh:e=>"$100vh"===e?"var(--chakra-vh)":e,px(e){if(null==e)return e;let{unitless:t}=k(e);return t||"number"==typeof e?`${e}px`:e},fraction:e=>"number"!=typeof e||e>1?e:`${100*e}%`,float:(e,t)=>"rtl"===t.direction?({left:"right",right:"left"})[e]:e,degree(e){if(/^var\(--.+\)$/.test(e)||null==e)return e;let t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},gradient:(e,t)=>(function(e,t){if(null==e||b.has(e))return e;if(!(w(e)||b.has(e)))return`url('${e}')`;let n=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),r=n?.[1],i=n?.[2];if(!r||!i)return e;let o=r.includes("-gradient")?r:`${r}-gradient`,[a,...s]=i.split(",").map(x).filter(Boolean);if(s?.length===0)return e;let l=a in v?v[a]:a;s.unshift(l);let u=s.map(e=>{if(y.has(e))return e;let n=e.indexOf(" "),[r,i]=-1!==n?[e.substr(0,n),e.substr(n+1)]:[e],o=w(i)?i:i&&i.split(" "),a=`colors.${r}`,s=a in t.__cssMap?t.__cssMap[a].varRef:r;return o?[s,...Array.isArray(o)?o:[o]].join(" "):s});return`${o}(${u.join(", ")})`})(e,t??{}),blur:S("blur"),opacity:S("opacity"),brightness:S("brightness"),contrast:S("contrast"),dropShadow:S("drop-shadow"),grayscale:S("grayscale"),hueRotate:e=>S("hue-rotate")(E.degree(e)),invert:S("invert"),saturate:S("saturate"),sepia:S("sepia"),bgImage:e=>null==e?e:w(e)||b.has(e)?e:`url(${e})`,outline(e){let t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){let{space:t,divide:n}=g[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},_={borderWidths:d("borderWidths"),borderStyles:d("borderStyles"),colors:d("colors"),borders:d("borders"),gradients:d("gradients",E.gradient),radii:d("radii",E.px),space:d("space",c(E.vh,E.px)),spaceT:d("space",c(E.vh,E.px)),degreeT:e=>({property:e,transform:E.degree}),prop:(e,t,n)=>({property:e,scale:t,...t&&{transform:u({scale:t,transform:n})}}),propT:(e,t)=>({property:e,transform:t}),sizes:d("sizes",c(E.vh,E.px)),sizesT:d("sizes",c(E.vh,E.fraction)),shadows:d("shadows"),logical:function(e){let{property:t,scale:n,transform:r}=e;return{scale:n,property:f(t),transform:n?u({scale:n,compose:r}):r}},blur:d("blur",E.blur)},C={background:_.colors("background"),backgroundColor:_.colors("backgroundColor"),backgroundImage:_.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:E.bgClip},bgSize:_.prop("backgroundSize"),bgPosition:_.prop("backgroundPosition"),bg:_.colors("background"),bgColor:_.colors("backgroundColor"),bgPos:_.prop("backgroundPosition"),bgRepeat:_.prop("backgroundRepeat"),bgAttachment:_.prop("backgroundAttachment"),bgGradient:_.gradients("backgroundImage"),bgClip:{transform:E.bgClip}};Object.assign(C,{bgImage:C.backgroundImage,bgImg:C.backgroundImage});let O={border:_.borders("border"),borderWidth:_.borderWidths("borderWidth"),borderStyle:_.borderStyles("borderStyle"),borderColor:_.colors("borderColor"),borderRadius:_.radii("borderRadius"),borderTop:_.borders("borderTop"),borderBlockStart:_.borders("borderBlockStart"),borderTopLeftRadius:_.radii("borderTopLeftRadius"),borderStartStartRadius:_.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:_.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:_.radii("borderTopRightRadius"),borderStartEndRadius:_.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:_.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:_.borders("borderRight"),borderInlineEnd:_.borders("borderInlineEnd"),borderBottom:_.borders("borderBottom"),borderBlockEnd:_.borders("borderBlockEnd"),borderBottomLeftRadius:_.radii("borderBottomLeftRadius"),borderBottomRightRadius:_.radii("borderBottomRightRadius"),borderLeft:_.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:_.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:_.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:_.borders(["borderLeft","borderRight"]),borderInline:_.borders("borderInline"),borderY:_.borders(["borderTop","borderBottom"]),borderBlock:_.borders("borderBlock"),borderTopWidth:_.borderWidths("borderTopWidth"),borderBlockStartWidth:_.borderWidths("borderBlockStartWidth"),borderTopColor:_.colors("borderTopColor"),borderBlockStartColor:_.colors("borderBlockStartColor"),borderTopStyle:_.borderStyles("borderTopStyle"),borderBlockStartStyle:_.borderStyles("borderBlockStartStyle"),borderBottomWidth:_.borderWidths("borderBottomWidth"),borderBlockEndWidth:_.borderWidths("borderBlockEndWidth"),borderBottomColor:_.colors("borderBottomColor"),borderBlockEndColor:_.colors("borderBlockEndColor"),borderBottomStyle:_.borderStyles("borderBottomStyle"),borderBlockEndStyle:_.borderStyles("borderBlockEndStyle"),borderLeftWidth:_.borderWidths("borderLeftWidth"),borderInlineStartWidth:_.borderWidths("borderInlineStartWidth"),borderLeftColor:_.colors("borderLeftColor"),borderInlineStartColor:_.colors("borderInlineStartColor"),borderLeftStyle:_.borderStyles("borderLeftStyle"),borderInlineStartStyle:_.borderStyles("borderInlineStartStyle"),borderRightWidth:_.borderWidths("borderRightWidth"),borderInlineEndWidth:_.borderWidths("borderInlineEndWidth"),borderRightColor:_.colors("borderRightColor"),borderInlineEndColor:_.colors("borderInlineEndColor"),borderRightStyle:_.borderStyles("borderRightStyle"),borderInlineEndStyle:_.borderStyles("borderInlineEndStyle"),borderTopRadius:_.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:_.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:_.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:_.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(O,{rounded:O.borderRadius,roundedTop:O.borderTopRadius,roundedTopLeft:O.borderTopLeftRadius,roundedTopRight:O.borderTopRightRadius,roundedTopStart:O.borderStartStartRadius,roundedTopEnd:O.borderStartEndRadius,roundedBottom:O.borderBottomRadius,roundedBottomLeft:O.borderBottomLeftRadius,roundedBottomRight:O.borderBottomRightRadius,roundedBottomStart:O.borderEndStartRadius,roundedBottomEnd:O.borderEndEndRadius,roundedLeft:O.borderLeftRadius,roundedRight:O.borderRightRadius,roundedStart:O.borderInlineStartRadius,roundedEnd:O.borderInlineEndRadius,borderStart:O.borderInlineStart,borderEnd:O.borderInlineEnd,borderTopStartRadius:O.borderStartStartRadius,borderTopEndRadius:O.borderStartEndRadius,borderBottomStartRadius:O.borderEndStartRadius,borderBottomEndRadius:O.borderEndEndRadius,borderStartRadius:O.borderInlineStartRadius,borderEndRadius:O.borderInlineEndRadius,borderStartWidth:O.borderInlineStartWidth,borderEndWidth:O.borderInlineEndWidth,borderStartColor:O.borderInlineStartColor,borderEndColor:O.borderInlineEndColor,borderStartStyle:O.borderInlineStartStyle,borderEndStyle:O.borderInlineEndStyle});let T={color:_.colors("color"),textColor:_.colors("color"),fill:_.colors("fill"),stroke:_.colors("stroke"),accentColor:_.colors("accentColor"),textFillColor:_.colors("textFillColor")},A={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:E.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:_.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:_.space("gap"),rowGap:_.space("rowGap"),columnGap:_.space("columnGap")};Object.assign(A,{flexDir:A.flexDirection});let P={width:_.sizesT("width"),inlineSize:_.sizesT("inlineSize"),height:_.sizes("height"),blockSize:_.sizes("blockSize"),boxSize:_.sizes(["width","height"]),minWidth:_.sizes("minWidth"),minInlineSize:_.sizes("minInlineSize"),minHeight:_.sizes("minHeight"),minBlockSize:_.sizes("minBlockSize"),maxWidth:_.sizes("maxWidth"),maxInlineSize:_.sizes("maxInlineSize"),maxHeight:_.sizes("maxHeight"),maxBlockSize:_.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{let n=t.__breakpoints?.get(e)?.minW??e;return{[`@media screen and (min-width: ${n})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{let n=t.__breakpoints?.get(e)?._minW??e;return{[`@media screen and (max-width: ${n})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:_.propT("float",E.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(P,{w:P.width,h:P.height,minW:P.minWidth,maxW:P.maxWidth,minH:P.minHeight,maxH:P.maxHeight,overscroll:P.overscrollBehavior,overscrollX:P.overscrollBehaviorX,overscrollY:P.overscrollBehaviorY});let I={filter:{transform:E.filter},blur:_.blur("--chakra-blur"),brightness:_.propT("--chakra-brightness",E.brightness),contrast:_.propT("--chakra-contrast",E.contrast),hueRotate:_.propT("--chakra-hue-rotate",E.hueRotate),invert:_.propT("--chakra-invert",E.invert),saturate:_.propT("--chakra-saturate",E.saturate),dropShadow:_.propT("--chakra-drop-shadow",E.dropShadow),backdropFilter:{transform:E.backdropFilter},backdropBlur:_.blur("--chakra-backdrop-blur"),backdropBrightness:_.propT("--chakra-backdrop-brightness",E.brightness),backdropContrast:_.propT("--chakra-backdrop-contrast",E.contrast),backdropHueRotate:_.propT("--chakra-backdrop-hue-rotate",E.hueRotate),backdropInvert:_.propT("--chakra-backdrop-invert",E.invert),backdropSaturate:_.propT("--chakra-backdrop-saturate",E.saturate)},R={ring:{transform:E.ring},ringColor:_.colors("--chakra-ring-color"),ringOffset:_.prop("--chakra-ring-offset-width"),ringOffsetColor:_.colors("--chakra-ring-offset-color"),ringInset:_.prop("--chakra-ring-inset")},j={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:E.outline},outlineOffset:!0,outlineColor:_.colors("outlineColor")},M={gridGap:_.space("gridGap"),gridColumnGap:_.space("gridColumnGap"),gridRowGap:_.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},N=(e=>{let t=new WeakMap;return(n,r,i,o)=>{if(void 0===n)return e(n,r,i);t.has(n)||t.set(n,new Map);let a=t.get(n);if(a.has(r))return a.get(r);let s=e(n,r,i,o);return a.set(r,s),s}})(function(e,t,n,r){let i="string"==typeof t?t.split("."):[t];for(r=0;r<i.length&&e;r+=1)e=e[i[r]];return void 0===e?n:e}),D={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},L={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},z=(e,t,n)=>{let r={},i=N(e,t,{});for(let e in i)e in n&&null!=n[e]||(r[e]=i[e]);return r},F={position:!0,pos:_.prop("position"),zIndex:_.prop("zIndex","zIndices"),inset:_.spaceT("inset"),insetX:_.spaceT(["left","right"]),insetInline:_.spaceT("insetInline"),insetY:_.spaceT(["top","bottom"]),insetBlock:_.spaceT("insetBlock"),top:_.spaceT("top"),insetBlockStart:_.spaceT("insetBlockStart"),bottom:_.spaceT("bottom"),insetBlockEnd:_.spaceT("insetBlockEnd"),left:_.spaceT("left"),insetInlineStart:_.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:_.spaceT("right"),insetInlineEnd:_.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(F,{insetStart:F.insetInlineStart,insetEnd:F.insetInlineEnd});let B={boxShadow:_.shadows("boxShadow"),mixBlendMode:!0,blendMode:_.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:_.prop("backgroundBlendMode"),opacity:!0};Object.assign(B,{shadow:B.boxShadow});let $={margin:_.spaceT("margin"),marginTop:_.spaceT("marginTop"),marginBlockStart:_.spaceT("marginBlockStart"),marginRight:_.spaceT("marginRight"),marginInlineEnd:_.spaceT("marginInlineEnd"),marginBottom:_.spaceT("marginBottom"),marginBlockEnd:_.spaceT("marginBlockEnd"),marginLeft:_.spaceT("marginLeft"),marginInlineStart:_.spaceT("marginInlineStart"),marginX:_.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:_.spaceT("marginInline"),marginY:_.spaceT(["marginTop","marginBottom"]),marginBlock:_.spaceT("marginBlock"),padding:_.space("padding"),paddingTop:_.space("paddingTop"),paddingBlockStart:_.space("paddingBlockStart"),paddingRight:_.space("paddingRight"),paddingBottom:_.space("paddingBottom"),paddingBlockEnd:_.space("paddingBlockEnd"),paddingLeft:_.space("paddingLeft"),paddingInlineStart:_.space("paddingInlineStart"),paddingInlineEnd:_.space("paddingInlineEnd"),paddingX:_.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:_.space("paddingInline"),paddingY:_.space(["paddingTop","paddingBottom"]),paddingBlock:_.space("paddingBlock")};Object.assign($,{m:$.margin,mt:$.marginTop,mr:$.marginRight,me:$.marginInlineEnd,marginEnd:$.marginInlineEnd,mb:$.marginBottom,ml:$.marginLeft,ms:$.marginInlineStart,marginStart:$.marginInlineStart,mx:$.marginX,my:$.marginY,p:$.padding,pt:$.paddingTop,py:$.paddingY,px:$.paddingX,pb:$.paddingBottom,pl:$.paddingLeft,ps:$.paddingInlineStart,paddingStart:$.paddingInlineStart,pr:$.paddingRight,pe:$.paddingInlineEnd,paddingEnd:$.paddingInlineEnd});let V={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:_.spaceT("scrollMargin"),scrollMarginTop:_.spaceT("scrollMarginTop"),scrollMarginBottom:_.spaceT("scrollMarginBottom"),scrollMarginLeft:_.spaceT("scrollMarginLeft"),scrollMarginRight:_.spaceT("scrollMarginRight"),scrollMarginX:_.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:_.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:_.spaceT("scrollPadding"),scrollPaddingTop:_.spaceT("scrollPaddingTop"),scrollPaddingBottom:_.spaceT("scrollPaddingBottom"),scrollPaddingLeft:_.spaceT("scrollPaddingLeft"),scrollPaddingRight:_.spaceT("scrollPaddingRight"),scrollPaddingX:_.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:_.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},U={fontFamily:_.prop("fontFamily","fonts"),fontSize:_.prop("fontSize","fontSizes",E.px),fontWeight:_.prop("fontWeight","fontWeights"),lineHeight:_.prop("lineHeight","lineHeights"),letterSpacing:_.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(!0===e)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},W={textDecorationColor:_.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:_.shadows("textShadow")},q={clipPath:!0,transform:_.propT("transform",E.transform),transformOrigin:!0,translateX:_.spaceT("--chakra-translate-x"),translateY:_.spaceT("--chakra-translate-y"),skewX:_.degreeT("--chakra-skew-x"),skewY:_.degreeT("--chakra-skew-y"),scaleX:_.prop("--chakra-scale-x"),scaleY:_.prop("--chakra-scale-y"),scale:_.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:_.degreeT("--chakra-rotate")},H=r({},C,O,T,A,P,I,R,j,M,{srOnly:{transform:e=>!0===e?D:"focusable"===e?L:{}},layerStyle:{processResult:!0,transform:(e,t,n)=>z(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>z(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>z(t,e,n)}},F,B,$,V,U,W,q,{listStyleType:!0,listStylePosition:!0,listStylePos:_.prop("listStylePosition"),listStyleImage:!0,listStyleImg:_.prop("listStyleImage")},{transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:_.prop("transitionDuration","transition.duration"),transitionProperty:_.prop("transitionProperty","transition.property"),transitionTimingFunction:_.prop("transitionTimingFunction","transition.easing")}),Z=Object.keys(Object.assign({},$,P,A,M,F)),G=[...Object.keys(H),...i._],K={...H,...i.v},Y=e=>e in K},66861:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(40810);function i(e){return(0,r.C)(e,["styleConfig","size","variant","colorScheme"])}},30171:function(e,t,n){"use strict";function r(e,t={}){let n=!1;function i(t){let n=(["container","root"].includes(t??"")?[e]:[e,t]).filter(Boolean).join("__"),r=`chakra-${n}`;return{className:r,selector:`.${r}`,toString:()=>t}}return{parts:function(...o){for(let e of(!function(){if(!n){n=!0;return}throw Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}(),o))t[e]=i(e);return r(e,t)},toPart:i,extend:function(...n){for(let e of n)e in t||(t[e]=i(e));return r(e,t)},selectors:function(){return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.selector]))},classnames:function(){return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.className]))},get keys(){return Object.keys(t)},__type:{}}}n.d(t,{wE:function(){return iQ},rS:function(){return iJ}});let i=r("accordion").parts("root","container","button","panel","icon"),o=r("alert").parts("title","description","container","icon","spinner"),a=r("avatar").parts("label","badge","container","excessLabel","group"),s=r("breadcrumb").parts("link","item","container","separator");r("button").parts();let l=r("checkbox").parts("control","icon","container","label");r("progress").parts("track","filledTrack","label");let u=r("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),c=r("editable").parts("preview","input","textarea"),d=r("form").parts("container","requiredIndicator","helperText"),f=r("formError").parts("text","icon"),h=r("input").parts("addon","field","element","group"),p=r("list").parts("container","item","icon"),m=r("menu").parts("button","list","item","groupTitle","icon","command","divider"),g=r("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),v=r("numberinput").parts("root","field","stepperGroup","stepper");r("pininput").parts("field");let y=r("popover").parts("content","header","body","footer","popper","arrow","closeButton"),b=r("progress").parts("label","filledTrack","track"),x=r("radio").parts("container","control","label"),w=r("select").parts("field","icon"),k=r("slider").parts("container","track","thumb","filledTrack","mark"),S=r("stat").parts("container","label","helpText","number","icon"),E=r("switch").parts("container","track","thumb","label"),_=r("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),C=r("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),O=r("tag").parts("container","label","closeButton"),T=r("card").parts("container","header","body","footer");r("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");var A=n(71034);let{definePartsStyle:P,defineMultiStyleConfig:I}=(0,A.D)(i.keys),R=(0,A.k0)({borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}}),j=I({baseStyle:P({container:R,button:(0,A.k0)({transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"}),panel:(0,A.k0)({pt:"2",px:"4",pb:"5"}),icon:(0,A.k0)({fontSize:"1.25em"})})});var M=n(41293);function N(e,t,n){return Math.min(Math.max(e,n),t)}class D extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}function L(e){if("string"!=typeof e)throw new D(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=q.test(e)?function(e){let t=F[function(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return(t>>>0)%2341}(e.toLowerCase().trim())];if(!t)throw new D(e);return`#${t}`}(e):e;let n=$.exec(t);if(n){let e=Array.from(n).slice(1);return[...e.slice(0,3).map(e=>parseInt(B(e,2),16)),parseInt(B(e[3]||"f",2),16)/255]}let r=V.exec(t);if(r){let e=Array.from(r).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,16)),parseInt(e[3]||"ff",16)/255]}let i=U.exec(t);if(i){let e=Array.from(i).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,10)),parseFloat(e[3]||"1")]}let o=W.exec(t);if(o){let[t,n,r,i]=Array.from(o).slice(1).map(parseFloat);if(N(0,100,n)!==n||N(0,100,r)!==r)throw new D(e);return[...Z(t,n,r),Number.isNaN(i)?1:i]}throw new D(e)}let z=e=>parseInt(e.replace(/_/g,""),36),F="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{let n=z(t.substring(0,3)),r=z(t.substring(3)).toString(16),i="";for(let e=0;e<6-r.length;e++)i+="0";return e[n]=`${i}${r}`,e},{}),B=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),$=RegExp(`^#${B("([a-f0-9])",3)}([a-f0-9])?$`,"i"),V=RegExp(`^#${B("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),U=RegExp(`^rgba?\\(\\s*(\\d+)\\s*${B(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),W=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,q=/^[a-z]+$/i,H=e=>Math.round(255*e),Z=(e,t,n)=>{let r=n/100;if(0===t)return[r,r,r].map(H);let i=(e%360+360)%360/60,o=t/100*(1-Math.abs(2*r-1)),a=o*(1-Math.abs(i%2-1)),s=0,l=0,u=0;i>=0&&i<1?(s=o,l=a):i>=1&&i<2?(s=a,l=o):i>=2&&i<3?(l=o,u=a):i>=3&&i<4?(l=a,u=o):i>=4&&i<5?(s=a,u=o):i>=5&&i<6&&(s=o,u=a);let c=r-o/2;return[s+c,l+c,u+c].map(H)},G=e=>0===Object.keys(e).length,K=(e,t,n)=>{let r=function(e,t,n,r,i){for(r=0,t=t.split?t.split("."):t;r<t.length;r++)e=e?e[t[r]]:void 0;return void 0===e?n:e}(e,`colors.${t}`,t);try{return!function(e){let[t,n,r,i]=L(e),o=e=>{let t=N(0,255,e).toString(16);return 1===t.length?`0${t}`:t};o(t),o(n),o(r),i<1&&o(Math.round(255*i))}(r),r}catch{return n??"#000000"}},Y=e=>{let[t,n,r]=L(e);return(299*t+587*n+114*r)/1e3},X=e=>t=>128>Y(K(t,e))?"dark":"light",J=e=>t=>"dark"===X(e)(t),Q=(e,t)=>n=>(function(e,t){var n;let[r,i,o,a]=L(e);return n=a-t,`rgba(${N(0,255,r).toFixed()}, ${N(0,255,i).toFixed()}, ${N(0,255,o).toFixed()}, ${parseFloat(N(0,1,n).toFixed(3))})`})(K(n,e),1-t);function ee(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
19
19
  45deg,
20
20
  ${t} 25%,
21
21
  transparent 25%,