recce-nightly 1.4.0.20250520__py3-none-any.whl → 1.5.0.20250521__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.
- recce/VERSION +1 -1
- recce/cli.py +40 -23
- recce/data/404.html +1 -1
- recce/data/_next/static/chunks/{778-aef312bffb4c0312.js → 758-5bc37e5174e24ea3.js} +2 -2
- recce/data/_next/static/chunks/9746af58-013fa80917592388.js +1 -0
- recce/data/_next/static/chunks/app/page-4b2bbb416449c209.js +1 -0
- recce/data/index.html +2 -2
- recce/data/index.txt +2 -2
- recce/event/__init__.py +4 -0
- recce/models/__init__.py +3 -0
- recce/tasks/__init__.py +16 -0
- recce/util/__init__.py +3 -0
- recce/util/api_token.py +69 -0
- recce/util/io.py +3 -0
- recce/util/recce_cloud.py +18 -0
- {recce_nightly-1.4.0.20250520.dist-info → recce_nightly-1.5.0.20250521.dist-info}/METADATA +1 -1
- {recce_nightly-1.4.0.20250520.dist-info → recce_nightly-1.5.0.20250521.dist-info}/RECORD +31 -30
- tests/adapter/dbt_adapter/dbt_test_helper.py +2 -2
- tests/tasks/conftest.py +1 -1
- tests/tasks/test_profile.py +0 -1
- tests/tasks/test_query.py +7 -7
- tests/test_core.py +1 -1
- tests/test_dbt.py +1 -1
- tests/test_server.py +1 -1
- tests/test_state.py +0 -2
- recce/data/_next/static/chunks/9746af58-d74bef4d03eea6ab.js +0 -1
- recce/data/_next/static/chunks/app/page-7086764277331fcb.js +0 -1
- /recce/data/_next/static/{POqJHyxRZAKc5Vb7Bi6Gz → c4FL-WGbZZW6QqfPTZTNc}/_buildManifest.js +0 -0
- /recce/data/_next/static/{POqJHyxRZAKc5Vb7Bi6Gz → c4FL-WGbZZW6QqfPTZTNc}/_ssgManifest.js +0 -0
- {recce_nightly-1.4.0.20250520.dist-info → recce_nightly-1.5.0.20250521.dist-info}/WHEEL +0 -0
- {recce_nightly-1.4.0.20250520.dist-info → recce_nightly-1.5.0.20250521.dist-info}/entry_points.txt +0 -0
- {recce_nightly-1.4.0.20250520.dist-info → recce_nightly-1.5.0.20250521.dist-info}/licenses/LICENSE +0 -0
- {recce_nightly-1.4.0.20250520.dist-info → recce_nightly-1.5.0.20250521.dist-info}/top_level.txt +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[778],{4874:function(e,t,n){"use strict";n.d(t,{IH:function(){return rp},S1:function(){return rm},j:function(){return rg}});var r,i,o,s,a,l,u,c,d,f,h,p,m,g,v,y,b,w,x,S,k,E,_=n(38231),C=n(95379),O=n(55199),T=n(37843),I=function(){var e,t=(0,T.l)();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=P(n[0]),i=P(n[1]);return i&&(e[r]=i),e},{}):{}},P=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(e){return""}},A=n(56493),R=n(98018),M=n(68501),j=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},[])},N=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=R.q.Unknown),{event:e,code:t,message:n}},D=n(50119),L=(0,C.ev)([],(0,C.CR)(Array(256).keys()),!1).map(function(e){return e.toString(16).padStart(2,"0")}),z=function(e){var t,n=(0,T.l)();if(!(null===(t=null==n?void 0:n.crypto)||void 0===t?void 0:t.getRandomValues))return e?(e^16*Math.random()>>e/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,z);var r=n.crypto.getRandomValues(new Uint8Array(16));return r[6]=15&r[6]|64,r[8]=63&r[8]|128,(0,C.ev)([],(0,C.CR)(r.entries()),!1).map(function(e){var t=(0,C.CR)(e,2),n=t[0],r=t[1];return[4,6,8,10].includes(n)?"-".concat(L[r]):L[r]}).join("")};function F(e){var t="";try{"body"in e&&(t=JSON.stringify(e.body,null,2))}catch(e){}return t}var B=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,C.mG)(this,void 0,void 0,function(){var n,r=this;return(0,C.Jh)(this,function(i){switch(i.label){case 0:return this.config=e,this.storageKey="".concat(M.f1,"_").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=z()),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,C.mG)(this,void 0,void 0,function(){var t,n,r=this;return(0,C.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,j(t,this.config.flushQueueSize).reduce(function(t,n){return(0,C.mG)(r,void 0,void 0,function(){return(0,C.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,C.mG)(this,void 0,void 0,function(){var n,r,i,o;return(0,C.Jh)(this,function(s){switch(s.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,C._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 D.Dg,s.label=1;case 1:return s.trys.push([1,3,,4]),r=(0,D.RG)(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(r,n)];case 2:if(null===(i=s.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(F(i))):this.fulfillRequest(e,i.statusCode,i.status),[2];return this.handleResponse(i,e),[3,4];case 3:var a;return o=(a=s.sent())instanceof Error?a.message:String(a),this.config.loggerProvider.error(o),this.handleResponse({status:R.q.Failed,statusCode:0},e),[3,4];case 4:return[2]}})})},e.prototype.handleResponse=function(e,t){var n=e.status;switch(n){case R.q.Success:this.handleSuccessResponse(e,t);break;case R.q.Invalid:this.handleInvalidResponse(e,t);break;case R.q.PayloadTooLarge:this.handlePayloadTooLargeResponse(e,t);break;case R.q.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,C.ev)((0,C.ev)((0,C.ev)((0,C.ev)([],(0,C.CR)(Object.values(e.body.eventsWithInvalidFields)),!1),(0,C.CR)(Object.values(e.body.eventsWithMissingFields)),!1),(0,C.CR)(Object.values(e.body.eventsWithInvalidIdLengths)),!1),(0,C.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(F(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(F(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,s=new Set(r),a=new Set(i),l=new Set(o),u=t.filter(function(t,r){if(t.event.user_id&&s.has(t.event.user_id)||t.event.device_id&&a.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(F(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(N(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}(),$=function(){function e(){this.name="identity",this.type="before",this.identityStore=(0,A.bM)().identityStore}return e.prototype.execute=function(e){return(0,C.mG)(this,void 0,void 0,function(){var t;return(0,C.Jh)(this,function(n){return(t=e.user_properties)&&this.identityStore.editIdentity().updateUserProperties(t).commit(),[2,e]})})},e.prototype.setup=function(e){return(0,C.mG)(this,void 0,void 0,function(){return(0,C.Jh)(this,function(t){return e.instanceName&&(this.identityStore=(0,A.bM)(e.instanceName).identityStore),[2]})})},e}(),U=function(e){if(Object.keys(e).length>1e3)return!1;for(var t in e){var n=e[t];if(!V(t,n))return!1}return!0},V=function(e,t){var n,r;if("string"!=typeof e)return!1;if(Array.isArray(t)){var i=!0;try{for(var o=(0,C.XA)(t),s=o.next();!s.done;s=o.next()){var a=s.value;if(Array.isArray(a))return!1;if("object"==typeof a)i=i&&U(a);else if(!["number","string"].includes(typeof a))return!1;if(!i)return!1}}catch(e){n={error:e}}finally{try{s&&!s.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 U(t);else if(!["number","string","boolean"].includes(typeof t))return!1;return!0},q=function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return(0,C.pi)({},this._properties)},e.prototype.set=function(e,t){return this._safeSet(p.SET,e,t),this},e.prototype.setOnce=function(e,t){return this._safeSet(p.SET_ONCE,e,t),this},e.prototype.append=function(e,t){return this._safeSet(p.APPEND,e,t),this},e.prototype.prepend=function(e,t){return this._safeSet(p.PREPEND,e,t),this},e.prototype.postInsert=function(e,t){return this._safeSet(p.POSTINSERT,e,t),this},e.prototype.preInsert=function(e,t){return this._safeSet(p.PREINSERT,e,t),this},e.prototype.remove=function(e,t){return this._safeSet(p.REMOVE,e,t),this},e.prototype.add=function(e,t){return this._safeSet(p.ADD,e,t),this},e.prototype.unset=function(e){return this._safeSet(p.UNSET,e,M.q$),this},e.prototype.clearAll=function(){return this._properties={},this._properties[p.CLEAR_ALL]=M.q$,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[p.CLEAR_ALL]||this._propertySet.has(t))&&(e===p.ADD?"number"==typeof n:e===p.UNSET||e===p.REMOVE||V(t,n))},e}();(r=p||(p={})).SET="$set",r.SET_ONCE="$setOnce",r.ADD="$add",r.APPEND="$append",r.PREPEND="$prepend",r.REMOVE="$remove",r.PREINSERT="$preInsert",r.POSTINSERT="$postInsert",r.UNSET="$unset",r.CLEAR_ALL="$clearAll";var W=[p.CLEAR_ALL,p.UNSET,p.SET,p.SET_ONCE,p.ADD,p.APPEND,p.PREPEND,p.PREINSERT,p.POSTINSERT,p.REMOVE],H=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.setReceipt=function(e){return this.receipt=e,this},e.prototype.setReceiptSig=function(e){return this.receiptSig=e,this},e.prototype.setEventProperties=function(e){return U(e)&&(this.properties=e),this},e.prototype.getEventProperties=function(){var e=this.properties?(0,C.pi)({},this.properties):{};return e[m.REVENUE_PRODUCT_ID]=this.productId,e[m.REVENUE_QUANTITY]=this.quantity,e[m.REVENUE_PRICE]=this.price,e[m.REVENUE_TYPE]=this.revenueType,e[m.REVENUE_CURRENCY]=this.currency,e[m.REVENUE]=this.revenue,e[m.RECEIPT]=this.receipt,e[m.RECEIPT_SIG]=this.receiptSig,e},e}();(i=m||(m={})).REVENUE_PRODUCT_ID="$productId",i.REVENUE_QUANTITY="$quantity",i.REVENUE_PRICE="$price",i.REVENUE_TYPE="$revenueType",i.REVENUE_CURRENCY="$currency",i.REVENUE="$revenue",i.RECEIPT="$receipt",i.RECEIPT_SIG="$receiptSig";var G=function(e,t){return void 0===t&&(t=Date.now()),Date.now()-t>e};(o=g||(g={})).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",(s=v||(v={})).IDENTIFY="$identify",s.GROUP_IDENTIFY="$groupidentify",s.REVENUE="revenue_amount";var Z=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,C.mG)(this,void 0,void 0,function(){return(0,C.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=z(),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,C.mG)(this,void 0,void 0,function(){var r,i;return(0,C.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,C.mG)(this,void 0,void 0,function(){var t,n,r,i,o,s,a,l,u,c,d,f,h,p;return(0,C.Jh)(this,function(m){switch(m.label){case 0:if(!e)return[2];t=(0,C.CR)(e,1)[0],n=(0,C.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,C.XA)(r)).next(),m.label=2;case 2:if(o.done)return[3,5];if(!(s=o.value).execute)return[3,4];return[4,s.execute((0,C.pi)({},t))];case 3:if(null===(a=m.sent()))return n({event:t,code:0,message:""}),[2];t=a,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,C.XA)(l)).next(),m.label=10;case 10:if(c.done)return[3,13];if(!(s=c.value).execute)return[3,12];return[4,s.execute((0,C.pi)({},t))];case 11:if(null===(a=m.sent()))return n({event:t,code:0,message:""}),[2];t=a,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,C.pi)({},t);return e.execute(n).catch(function(e){return N(n,0,String(e))})})).then(function(e){var r=(0,C.CR)(e,1)[0]||N(t,100,"Event not tracked, no destination plugins on the instance");n(r)}),[2]}})})},e.prototype.flush=function(){return(0,C.mG)(this,void 0,void 0,function(){var e,t=this;return(0,C.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.prototype.onIdentityChanged=function(e){this.plugins.forEach(function(t){var n;null===(n=t.onIdentityChanged)||void 0===n||n.call(t,e)})},e.prototype.onSessionIdChanged=function(e){this.plugins.forEach(function(t){var n;null===(n=t.onSessionIdChanged)||void 0===n||n.call(t,e)})},e.prototype.onOptOutChanged=function(e){this.plugins.forEach(function(t){var n;null===(n=t.onOptOutChanged)||void 0===n||n.call(t,e)})},e}(),K=function(e,t){return(0,C.pi)((0,C.pi)({},t),{event_type:v.IDENTIFY,user_properties:e.getUserProperties()})},Y=function(e,t,n,r){var i;return(0,C.pi)((0,C.pi)({},r),{event_type:v.GROUP_IDENTIFY,group_properties:n.getUserProperties(),groups:((i={})[e]=t,i)})},J=function(e,t,n){var r,i=new q;return i.set(e,t),(0,C.pi)((0,C.pi)({},n),{event_type:v.IDENTIFY,user_properties:i.getUserProperties(),groups:((r={})[e]=t,r)})},X=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 Z(this),this.name=e}return e.prototype._init=function(e){return(0,C.mG)(this,void 0,void 0,function(){return(0,C.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,C.mG)(this,void 0,void 0,function(){var t,n,r,i,o,s;return(0,C.Jh)(this,function(a){switch(a.label){case 0:t=this[e],this[e]=[],a.label=1;case 1:a.trys.push([1,8,9,10]),r=(n=(0,C.XA)(t)).next(),a.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 a.sent(),[3,6];case 4:return[4,i];case 5:a.sent(),a.label=6;case 6:return r=n.next(),[3,2];case 7:return[3,10];case 8:return o={error:a.sent()},[3,10];case 9:try{r&&!r.done&&(s=n.return)&&s.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:a.sent(),a.label=12;case 12:return[2]}})})},e.prototype.track=function(e,t,n){var r=(0,C.pi)((0,C.pi)((0,C.pi)({},"string"==typeof e?{event_type:e}:e),n),t&&{event_properties:t});return(0,O.S)(this.dispatch(r))},e.prototype.identify=function(e,t){var n=K(e,t);return(0,O.S)(this.dispatch(n))},e.prototype.groupIdentify=function(e,t,n,r){var i=Y(e,t,n,r);return(0,O.S)(this.dispatch(i))},e.prototype.setGroup=function(e,t,n){var r=J(e,t,n);return(0,O.S)(this.dispatch(r))},e.prototype.revenue=function(e,t){var n=(0,C.pi)((0,C.pi)({},t),{event_type:v.REVENUE,event_properties:e.getEventProperties()});return(0,O.S)(this.dispatch(n))},e.prototype.add=function(e){return this.isReady?this._addPlugin(e):(this.q.push(this._addPlugin.bind(this,e)),(0,O.S)())},e.prototype._addPlugin=function(e){return(0,O.S)(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)),(0,O.S)())},e.prototype._removePlugin=function(e){return(0,O.S)(this.timeline.deregister(e,this.config))},e.prototype.dispatchWithCallback=function(e,t){if(!this.isReady)return t(N(e,0,"Client not initialized"));this.process(e).then(t)},e.prototype.dispatch=function(e){return(0,C.mG)(this,void 0,void 0,function(){var t=this;return(0,C.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.getOperationAppliedUserProperties=function(e){var t={};if(void 0===e)return t;var n={};return Object.keys(e).forEach(function(t){Object.values(g).includes(t)||(n[t]=e[t])}),W.forEach(function(n){if(Object.keys(e).includes(n)){var r=e[n];switch(n){case g.CLEAR_ALL:Object.keys(t).forEach(function(e){delete t[e]});break;case g.UNSET:Object.keys(r).forEach(function(e){delete t[e]});break;case g.SET:Object.assign(t,r)}}}),Object.assign(t,n),t},e.prototype.process=function(e){return(0,C.mG)(this,void 0,void 0,function(){var t,n,r;return(0,C.Jh)(this,function(i){switch(i.label){case 0:if(i.trys.push([0,2,,3]),this.config.optOut)return[2,N(e,0,"Event skipped due to optOut config")];return e.event_type===v.IDENTIFY&&(t=this.getOperationAppliedUserProperties(e.user_properties),this.timeline.onIdentityChanged({userProperties:t})),[4,this.timeline.push(e)];case 1:return 200===(n=i.sent()).code?this.config.loggerProvider.log(n.message):100===n.code?this.config.loggerProvider.warn(n.message):this.config.loggerProvider.error(n.message),[2,n];case 2:return r=String(i.sent()),this.config.loggerProvider.error(r),[2,n=N(e,0,r)];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&&(this.timeline.onOptOutChanged(e),this.config.optOut=!!e)},e.prototype.flush=function(){return(0,O.S)(this.timeline.flush())},e.prototype.plugin=function(e){var t=this.timeline.plugins.find(function(t){return t.name===e});if(void 0===t){this.config.loggerProvider.debug("Cannot find plugin with name ".concat(e));return}return t},e}(),Q=function(e,t,n){if("boolean"==typeof e)return e;if(null!==e&&"object"==typeof e){if(!1===e[t])return!1;if(void 0===e[t])return n}return!0},ee=function(e){return Q(e,"attribution",!0)},et=function(e){return Q(e,"pageViews",!0)},en=function(e){return Q(e,"sessions",!0)},er=function(e){return Q(e,"networkTracking",!1)},ei=function(e){return"boolean"==typeof e?e:"object"==typeof e&&(!0===e.elementInteractions||"object"==typeof e.elementInteractions)},eo=function(e){if(ei(e.autocapture)&&"object"==typeof e.autocapture&&"object"==typeof e.autocapture.elementInteractions)return e.autocapture.elementInteractions},es=function(e){if(er(e.autocapture)&&e.networkTrackingOptions)return e.networkTrackingOptions},ea=function(e){var t,n=function(){return!1},r=void 0,i=e.pageCounter;return et(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}},el=function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.name,o=r.args,s=r.resolve,a=e&&e[i];if("function"==typeof a){var l=a.apply(e,o);"function"==typeof s&&s(null==l?void 0:l.promise)}}return e},eu=function(e){return e&&void 0!==e._q},ec=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:""},ed="2.17.3",ef=function(){function e(){this.name="@amplitude/plugin-context-browser",this.type="before",this.library="".concat("amplitude-ts","/").concat(ed),"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){var t,n;return(0,C.mG)(this,void 0,void 0,function(){var r,i,o;return(0,C.Jh)(this,function(s){return r=new Date().getTime(),i=null!==(t=this.config.lastEventId)&&void 0!==t?t:-1,o=null!==(n=e.event_id)&&void 0!==n?n:i+1,this.config.lastEventId=o,e.time||(this.config.lastEventTime=r),[2,(0,C.pi)((0,C.pi)((0,C.pi)((0,C.pi)((0,C.pi)((0,C.pi)((0,C.pi)((0,C.pi)({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:r},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:"Web"}),this.config.trackingOptions.language&&{language:ec()}),this.config.trackingOptions.ipAddress&&{ip:"$remote"}),{insert_id:z(),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:o,library:this.library,user_agent:this.userAgent})]})})},e}(),eh=function(){function e(){this.memoryStorage=new Map}return e.prototype.isEnabled=function(){return(0,C.mG)(this,void 0,void 0,function(){return(0,C.Jh)(this,function(e){return[2,!0]})})},e.prototype.get=function(e){return(0,C.mG)(this,void 0,void 0,function(){return(0,C.Jh)(this,function(t){return[2,this.memoryStorage.get(e)]})})},e.prototype.getRaw=function(e){return(0,C.mG)(this,void 0,void 0,function(){var t;return(0,C.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,C.mG)(this,void 0,void 0,function(){return(0,C.Jh)(this,function(n){return this.memoryStorage.set(e,t),[2]})})},e.prototype.remove=function(e){return(0,C.mG)(this,void 0,void 0,function(){return(0,C.Jh)(this,function(t){return this.memoryStorage.delete(e),[2]})})},e.prototype.reset=function(){return(0,C.mG)(this,void 0,void 0,function(){return(0,C.Jh)(this,function(e){return this.memoryStorage.clear(),[2]})})},e}(),ep=n(34102),em=n(45745),eg=function(e,t,n){return void 0===t&&(t=""),void 0===n&&(n=10),[M.xp,t,e.substring(0,n)].filter(Boolean).join("_")},ev=function(){function e(e){this.options=(0,C.pi)({},e)}return e.prototype.isEnabled=function(){return(0,C.mG)(this,void 0,void 0,function(){var t,n;return(0,C.Jh)(this,function(r){switch(r.label){case 0:if(!(0,T.l)())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,C.mG)(this,void 0,void 0,function(){var n,r;return(0,C.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=ey(n))&&void 0!==t?t:eb(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,C.mG)(this,void 0,void 0,function(){var r,i;return(0,C.Jh)(this,function(o){return(i=(null!==(n=null===(t=null==(r=(0,T.l)())?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,C.mG)(this,void 0,void 0,function(){var r,i,o,s,a,l,u;return(0,C.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&&((s=new Date).setTime(s.getTime()+864e5*i),o=s),a="".concat(e,"=").concat(btoa(encodeURIComponent(JSON.stringify(t)))),o&&(a+="; expires=".concat(o.toUTCString())),a+="; path=/",this.options.domain&&(a+="; domain=".concat(this.options.domain)),this.options.secure&&(a+="; Secure"),this.options.sameSite&&(a+="; SameSite=".concat(this.options.sameSite)),(l=(0,T.l)())&&(l.document.cookie=a)}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,C.mG)(this,void 0,void 0,function(){return(0,C.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,C.mG)(this,void 0,void 0,function(){return(0,C.Jh)(this,function(e){return[2]})})},e}(),ey=function(e){try{return decodeURIComponent(atob(e))}catch(e){return}},eb=function(e){try{return decodeURIComponent(atob(decodeURIComponent(e)))}catch(e){return}},ew=n(4481),ex=function(){function e(e){this.storage=e}return e.prototype.isEnabled=function(){return(0,C.mG)(this,void 0,void 0,function(){var t,n,r;return(0,C.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,C.mG)(this,void 0,void 0,function(){var t;return(0,C.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){var t;return(0,C.mG)(this,void 0,void 0,function(){return(0,C.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){var n;return(0,C.mG)(this,void 0,void 0,function(){return(0,C.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){var t;return(0,C.mG)(this,void 0,void 0,function(){return(0,C.Jh)(this,function(n){try{null===(t=this.storage)||void 0===t||t.removeItem(e)}catch(e){}return[2]})})},e.prototype.reset=function(){var e;return(0,C.mG)(this,void 0,void 0,function(){return(0,C.Jh)(this,function(t){try{null===(e=this.storage)||void 0===e||e.clear()}catch(e){}return[2]})})},e}(),eS=function(e){function t(t){var n,r,i,o=this;try{i=null===(n=(0,T.l)())||void 0===n?void 0:n.localStorage}catch(e){null===(r=null==t?void 0:t.loggerProvider)||void 0===r||r.debug("Failed to access localStorage. error=".concat(JSON.stringify(e))),i=void 0}return(o=e.call(this,i)||this).loggerProvider=null==t?void 0:t.loggerProvider,o}return(0,C.ZT)(t,e),t.prototype.set=function(t,n){var r;return(0,C.mG)(this,void 0,void 0,function(){var i;return(0,C.Jh)(this,function(o){switch(o.label){case 0:if(!(Array.isArray(n)&&n.length>1e3))return[3,2];return i=n.length-1e3,[4,e.prototype.set.call(this,t,n.slice(0,1e3))];case 1:return o.sent(),null===(r=this.loggerProvider)||void 0===r||r.error("Failed to save ".concat(i," 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}(ex),ek=function(e){function t(){var t;return e.call(this,null===(t=(0,T.l)())||void 0===t?void 0:t.sessionStorage)||this}return(0,C.ZT)(t,e),t}(ex),eE=n(35077),e_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={done:4},t}return(0,C.ZT)(t,e),t.prototype.send=function(e,t){return(0,C.mG)(this,void 0,void 0,function(){var n=this;return(0,C.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}(eE.d),eC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,C.ZT)(t,e),t.prototype.send=function(e,t){return(0,C.mG)(this,void 0,void 0,function(){var n=this;return(0,C.Jh)(this,function(r){return[2,new Promise(function(r,i){var o=(0,T.l)();if(!(null==o?void 0:o.navigator.sendBeacon))throw Error("SendBeaconTransport is not supported");try{var s=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:s.length,server_upload_time:Date.now()}));return r(n.buildResponse({code:500}))}catch(e){i(e)}})]})})},t}(eE.d),eO=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},eT=function(e){if(atob&&escape&&e)try{return decodeURIComponent(escape(atob(e)))}catch(e){return}},eI="[Amplitude]",eP="".concat(eI," Form Started"),eA="".concat(eI," Form Submitted"),eR="".concat(eI," File Downloaded"),eM="session_start",ej="session_end",eN="".concat(eI," File Extension"),eD="".concat(eI," File Name"),eL="".concat(eI," Link ID"),ez="".concat(eI," Link Text"),eF="".concat(eI," Link URL"),eB="".concat(eI," Form ID"),e$="".concat(eI," Form Name"),eU="".concat(eI," Form Destination"),eV="cookie",eq=function(e){function t(t,n,r,i,o,s,a,l,u,c,d,f,h,p,m,g,v,y,b,w,x,S,k,E,_,C,O,T,I,P,A,R,M,j,N){void 0===r&&(r=new eh),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===d&&(d=eV),void 0===g&&(g=new ep.Y),void 0===v&&(v=em.i.Warn),void 0===b&&(b=!1),void 0===w&&(w=!1),void 0===k&&(k=""),void 0===E&&(E="US"),void 0===C&&(C=18e5),void 0===O&&(O=new eS({loggerProvider:g})),void 0===T&&(T={ipAddress:!0,language:!0,platform:!0}),void 0===I&&(I="fetch"),void 0===P&&(P=!1),void 0===A&&(A=!0);var D=e.call(this,{apiKey:t,storageProvider:O,transportProvider:eH(I)})||this;return D.apiKey=t,D.appVersion=n,D.cookieOptions=i,D.defaultTracking=o,D.autocapture=s,D.flushIntervalMillis=l,D.flushMaxRetries=u,D.flushQueueSize=c,D.identityStorage=d,D.ingestionMetadata=f,D.instanceName=h,D.loggerProvider=g,D.logLevel=v,D.minIdLength=y,D.offline=b,D.partnerId=x,D.plan=S,D.serverUrl=k,D.serverZone=E,D.sessionTimeout=C,D.storageProvider=O,D.trackingOptions=T,D.transport=I,D.useBatch=P,D.fetchRemoteConfig=A,D.networkTrackingOptions=N,D.version=ed,D._optOut=!1,D._cookieStorage=r,D.deviceId=a,D.lastEventId=p,D.lastEventTime=m,D.optOut=w,D.sessionId=_,D.pageCounter=M,D.userId=R,D.debugLogsEnabled=j,D.loggerProvider.enable(j?em.i.Debug:D.logLevel),D.networkTrackingOptions=N,D}return(0,C.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(eg(this.apiKey),e)},t}(D.De),eW=function(e,t){switch(void 0===e&&(e=eV),void 0===t&&(t={}),e){case"localStorage":return new eS;case"sessionStorage":return new ek;case"none":return new eh;default:return new ev((0,C.pi)((0,C.pi)({},t),{expirationDays:t.expiration}))}},eH=function(e){return"xhr"===e?new e_:"beacon"===e?new eC:new ew.V},eG=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},eZ=function(){var e,t=eG();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=eK(n[0]),i=eK(n[1]);return i&&(e[r]=i),e},{}):{}},eK=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(e){return""}},eY="dclid",eJ="fbclid",eX="gbraid",eQ="gclid",e0="ko_click_id",e1="li_fat_id",e2="msclkid",e3="rtd_cid",e5="ttclid",e4="twclid",e6="wbraid",e9={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},e8=function(){function e(){}return e.prototype.parse=function(){return(0,C.mG)(this,void 0,void 0,function(){return(0,C.Jh)(this,function(e){return[2,(0,C.pi)((0,C.pi)((0,C.pi)((0,C.pi)({},e9),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var e=eZ();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=eZ();return(e={})[eY]=t[eY],e[eJ]=t[eJ],e[eX]=t[eX],e[eQ]=t[eQ],e[e0]=t[e0],e[e1]=t[e1],e[e2]=t[e2],e[e3]=t[e3],e[e5]=t[e5],e[e4]=t[e4],e[e6]=t[e6],e},e}();(a=y||(y={})).SET="$set",a.SET_ONCE="$setOnce",a.ADD="$add",a.APPEND="$append",a.PREPEND="$prepend",a.REMOVE="$remove",a.PREINSERT="$preInsert",a.POSTINSERT="$postInsert",a.UNSET="$unset",a.CLEAR_ALL="$clearAll",(l=b||(b={})).REVENUE_PRODUCT_ID="$productId",l.REVENUE_QUANTITY="$quantity",l.REVENUE_PRICE="$price",l.REVENUE_TYPE="$revenueType",l.REVENUE_CURRENCY="$currency",l.REVENUE="$revenue",(u=w||(w={})).IDENTIFY="$identify",u.GROUP_IDENTIFY="$groupidentify",u.REVENUE="revenue_amount";var e7=function(e){var t={};for(var n in e){var r=e[n];r&&(t[n]=r)}return t},te=function(e){void 0===e&&(e={});var t,n,r,i=eG(),o=void 0,s=e.trackOn,a=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,C.mG)(void 0,void 0,void 0,function(){var e,t,n;return(0,C.Jh)(this,function(r){switch(r.label){case 0:return e=c("undefined"!=typeof location&&location.href||""),n={event_type:u},t=[{}],[4,tt()];case 1:return[2,(n.event_properties=C.pi.apply(void 0,[C.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===s||"function"==typeof s&&s()},h="undefined"!=typeof location?location.href:null,p=function(){return(0,C.mG)(void 0,void 0,void 0,function(){var e,n,r,i;return(0,C.Jh)(this,function(s){switch(s.label){case 0:if(n=tr(a,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,[s.sent()]),s.label=3;case 3:s.label=4;case 4:return[2]}})})},m=function(){p()};return{name:"@amplitude/plugin-page-view-tracking-browser",type:"enrichment",setup:function(e,s){return(0,C.mG)(void 0,void 0,void 0,function(){var a,l;return(0,C.Jh)(this,function(u){switch(u.label){case 0:if(t=s,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,C.CR)(n,3),i=r[0],o=r[1],s=r[2];e.apply(t,[i,o,s]),p()}})),!f())return[3,2];return o.log("Tracking page view event"),l=(a=t).track,[4,d()];case 1:l.apply(a,[u.sent()]),u.label=2;case 2:return[2]}})})},execute:function(e){return(0,C.mG)(void 0,void 0,void 0,function(){var t;return(0,C.Jh)(this,function(n){switch(n.label){case 0:if(!("attribution"===s&&tn(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,C.pi)((0,C.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,C.pi)((0,C.pi)({},e.event_properties),{"[Amplitude] Page Counter":r.pageCounter})),[2,e]}})})},teardown:function(){return(0,C.mG)(void 0,void 0,void 0,function(){return(0,C.Jh)(this,function(e){return i&&(i.removeEventListener("popstate",m),n&&(i.history.pushState=n)),[2]})})}}},tt=function(){return(0,C.mG)(void 0,void 0,void 0,function(){var e;return(0,C.Jh)(this,function(t){switch(t.label){case 0:return e=e7,[4,new e8().parse()];case 1:return[2,e.apply(void 0,[t.sent()])]}})})},tn=function(e){if("$identify"===e.event_type&&e.user_properties){var t=e.user_properties,n=t[y.SET]||{},r=t[y.UNSET]||{},i=(0,C.ev)((0,C.ev)([],(0,C.CR)(Object.keys(n)),!1),(0,C.CR)(Object.keys(r)),!1);return Object.keys(e9).every(function(e){return i.includes(e)})}return!1},tr=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},ti=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,C.mG)(void 0,void 0,void 0,function(){var i,o;return(0,C.Jh)(this,function(s){return i=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=ts(e);t||r.track(eP,((n={})[eB]=to(e.id),n[e$]=to(e.name),n[eU]=i,n)),t=!0}),n(e,"submit",function(){var n,i,o=ts(e);t||r.track(eP,((n={})[eB]=to(e.id),n[e$]=to(e.name),n[eU]=o,n)),r.track(eA,((i={})[eB]=to(e.id),i[e$]=to(e.name),i[eU]=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})}},"complete"===document.readyState?i():(o=(0,T.l)())?o.addEventListener("load",i):t.loggerProvider.debug("Form interaction tracking is not installed because global is undefined."),[2]})})},execute:function(e){return(0,C.mG)(void 0,void 0,void 0,function(){return(0,C.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,C.mG)(void 0,void 0,void 0,function(){return(0,C.Jh)(this,function(t){return null==e||e.disconnect(),r(),[2]})})}}},to=function(e){if("string"==typeof e)return e},ts=function(e){var t=e.getAttribute("action");try{t=new URL(encodeURI(null!=t?t:""),window.location.href).href}catch(e){}return t},ta=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,C.mG)(void 0,void 0,void 0,function(){var i,o;return(0,C.Jh)(this,function(s){return i=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),s=null==i?void 0:i[1];s&&n(e,"click",function(){var n;s&&r.track(eR,((n={})[eN]=s,n[eD]=t.pathname,n[eL]=e.id,n[ez]=e.text,n[eF]=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})}},"complete"===document.readyState?i():(o=(0,T.l)())?o.addEventListener("load",i):t.loggerProvider.debug("File download tracking is not installed because global is undefined."),[2]})})},execute:function(e){return(0,C.mG)(void 0,void 0,void 0,function(){return(0,C.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,C.mG)(void 0,void 0,void 0,function(){return(0,C.Jh)(this,function(t){return null==e||e.disconnect(),r(),[2]})})}}},tl=!1,tu=function(e){tl||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."),tl=!0)},tc=function(){var e=(0,T.l)(),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,C.mG)(void 0,void 0,void 0,function(){return(0,C.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,C.mG)(void 0,void 0,void 0,function(){return(0,C.Jh)(this,function(e){return r(),[2]})})}}};(c=x||(x={})).Unknown="unknown",c.Skipped="skipped",c.Success="success",c.RateLimit="rate_limit",c.PayloadTooLarge="payload_too_large",c.Invalid="invalid",c.Failed="failed",c.Timeout="Timeout",c.SystemError="SystemError",(d=S||(S={})).US="US",d.EU="EU";var td="Remote config fetch rejected due to timeout after 5 seconds",tf="Unexpected error occurred",th=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,C.mG)(r,void 0,void 0,function(){var r,i,o;return(0,C.Jh)(this,function(s){switch(s.label){case 0:return r=Date.now(),[4,this.fetchWithTimeout(n)];case 1:if((i=s.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,C.mG)(r,void 0,void 0,function(){var t,n,r;return(0,C.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,C.mG)(r,void 0,void 0,function(){var n,r,i,o,s,a,l,u,c,d,f;return(0,C.Jh)(this,function(h){switch(h.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:td})];t!==this.lastFetchedSessionId&&(this.lastFetchedSessionId=t,this.attempts=0),h.label=1;case 1:h.trys.push([1,3,,4]),n=new URLSearchParams({api_key:this.localConfig.apiKey});try{for(i=(r=(0,C.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)),s={headers:{Accept:"*/*"},method:"GET"},a="".concat(this.getServerUrl(),"?").concat(n.toString()),this.attempts+=1,[4,fetch(a,(0,C.pi)((0,C.pi)({},s),{signal:e}))];case 2:if(null===(l=h.sent()))return[2,this.completeRequest({err:tf})];switch(new eE.d().buildStatus(l.status)){case x.Success:return this.attempts=0,[2,this.parseAndStoreConfig(l)];case x.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=h.sent(),e.aborted)return[2,this.completeRequest({err:td})];return[2,this.completeRequest({err:null!==(f=u.message)&&void 0!==f?f:tf})];case 4:return[2]}})})},this.retryFetch=function(e,t){return(0,C.mG)(r,void 0,void 0,function(){var n=this;return(0,C.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,C.mG)(r,void 0,void 0,function(){var t;return(0,C.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===S.STAGING?"https://sr-client-cfg.stag2.amplitude.com/config":this.localConfig.serverZone===S.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}(),tp=function(e){var t=e.localConfig,n=e.configKeys;return(0,C.mG)(void 0,void 0,void 0,function(){return(0,C.Jh)(this,function(e){return[2,new th({localConfig:t,configKeys:n})]})})},tm=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,C.mG)(this,void 0,void 0,function(){var e;return(0,C.Jh)(this,function(t){switch(t.label){case 0:return e=this,[4,tp({localConfig:this.config,configKeys:["analyticsSDK"]})];case 1:return e.remoteConfigFetch=t.sent(),[2]}})})},e.prototype.generateJoinedConfig=function(){var e,t,n,r,i,o;return(0,C.mG)(this,void 0,void 0,function(){var s,a,l,u,c,d,f,h,p,m,g,v,y;return(0,C.Jh)(this,function(b){switch(b.label){case 0:if(b.trys.push([0,3,,4]),!(a=this.remoteConfigFetch))return[3,2];return[4,this.remoteConfigFetch.getRemoteConfig("analyticsSDK","browserSDK",this.config.sessionId)];case 1:a=b.sent(),b.label=2;case 2:if(s=a,this.config.loggerProvider.debug("Remote configuration:",JSON.stringify(s,null,2)),s&&"autocapture"in s){if("boolean"==typeof s.autocapture&&(this.config.autocapture=s.autocapture),"object"==typeof s.autocapture){if(l=(0,C.pi)({},s.autocapture),void 0===this.config.autocapture&&(this.config.autocapture=s.autocapture),"object"==typeof s.autocapture.elementInteractions&&(null===(e=s.autocapture.elementInteractions.pageUrlAllowlistRegex)||void 0===e?void 0:e.length)){l.elementInteractions=(0,C.pi)({},s.autocapture.elementInteractions),c=null!==(t=(u=l.elementInteractions).pageUrlAllowlist)&&void 0!==t?t:[],d=[];try{for(h=(f=(0,C.XA)(s.autocapture.elementInteractions.pageUrlAllowlistRegex)).next();!h.done;h=f.next()){p=h.value;try{d.push(new RegExp(p))}catch(e){this.config.loggerProvider.warn("Invalid regex pattern: ".concat(p),e)}}}catch(e){v={error:e}}finally{try{h&&!h.done&&(y=f.return)&&y.call(f)}finally{if(v)throw v.error}}m=c.concat(d),u.pageUrlAllowlist=m,delete u.pageUrlAllowlistRegex}"boolean"==typeof this.config.autocapture&&(this.config.autocapture=(0,C.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},l)),"object"==typeof this.config.autocapture&&(this.config.autocapture=(0,C.pi)((0,C.pi)({},this.config.autocapture),l))}this.config.defaultTracking=this.config.autocapture}return this.config.loggerProvider.debug("Joined configuration: ",JSON.stringify(this.config,null,2)),null!==(n=(o=this.config).requestMetadata)&&void 0!==n||(o.requestMetadata=new D.Dg),(null===(r=this.remoteConfigFetch)||void 0===r?void 0:r.metrics.fetchTimeAPISuccess)&&this.config.requestMetadata.recordHistogram("remote_config_fetch_time_API_success",this.remoteConfigFetch.metrics.fetchTimeAPISuccess),(null===(i=this.remoteConfigFetch)||void 0===i?void 0:i.metrics.fetchTimeAPIFail)&&this.config.requestMetadata.recordHistogram("remote_config_fetch_time_API_fail",this.remoteConfigFetch.metrics.fetchTimeAPIFail),[3,4];case 3:return g=b.sent(),this.config.loggerProvider.error("Failed to fetch remote configuration because of error: ",g),[3,4];case 4:return[2,this.config]}})})},e}(),tg=["a","button","input","select","textarea","label","video","audio",'[contenteditable="true" i]',"[data-amp-default-track]",".amp-default-track"],tv=["div","span","h1","h2","h3","h4","h5","h6"],ty="[Amplitude] Element Clicked",tb="[Amplitude] Element Tag",tw="[Amplitude] Element Text",tx="[Amplitude] Page URL",tS="https://app.amplitude.com",tk={US:tS,EU:"https://app.eu.amplitude.com",STAGING:"https://apps.stag2.amplitude.com"},tE=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function t_(e){return"function"==typeof e}function tC(e){return t_(null==e?void 0:e.then)}function tO(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 tT=tO(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 tI(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var tP=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 s=(0,C.XA)(o),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this)}var l=this.initialTeardown;if(t_(l))try{l()}catch(e){i=e instanceof tT?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=(0,C.XA)(u),d=c.next();!d.done;d=c.next()){var f=d.value;try{tM(f)}catch(e){i=null!=i?i:[],e instanceof tT?i=(0,C.ev)((0,C.ev)([],(0,C.CR)(i)),(0,C.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 tT(i)}},t.prototype.add=function(e){var n;if(e&&e!==this){if(this.closed)tM(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)&&tI(t,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&tI(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),tA=tP.EMPTY;function tR(e){return e instanceof tP||e&&"closed"in e&&t_(e.remove)&&t_(e.add)&&t_(e.unsubscribe)}function tM(e){t_(e)?e():e.unsubscribe()}var tj={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},tN={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=tN.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,(0,C.ev)([e,t],(0,C.CR)(n))):setTimeout.apply(void 0,(0,C.ev)([e,t],(0,C.CR)(n)))},clearTimeout:function(e){var t=tN.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function tD(e){tN.setTimeout(function(){var t=tj.onUnhandledError;if(t)t(e);else throw e})}function tL(){}var tz=tF("C",void 0,void 0);function tF(e,t,n){return{kind:e,value:t,error:n}}var tB=null;function t$(e){if(tj.useDeprecatedSynchronousErrorHandling){var t=!tB;if(t&&(tB={errorThrown:!1,error:null}),e(),t){var n=tB,r=n.errorThrown,i=n.error;if(tB=null,r)throw i}}else e()}var tU=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,tR(t)&&t.add(n)):n.destination=tK,n}return(0,C.ZT)(t,e),t.create=function(e,t,n){return new tH(e,t,n)},t.prototype.next=function(e){this.isStopped?tZ(tF("N",e,void 0),this):this._next(e)},t.prototype.error=function(e){this.isStopped?tZ(tF("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?tZ(tz,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}(tP),tV=Function.prototype.bind;function tq(e,t){return tV.call(e,t)}var tW=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){tG(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){tG(e)}else tG(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){tG(e)}},e}(),tH=function(e){function t(t,n,r){var i,o,s=e.call(this)||this;return t_(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:s&&tj.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},i={next:t.next&&tq(t.next,o),error:t.error&&tq(t.error,o),complete:t.complete&&tq(t.complete,o)}):i=t,s.destination=new tW(i),s}return(0,C.ZT)(t,e),t}(tU);function tG(e){tj.useDeprecatedSynchronousErrorHandling?tj.useDeprecatedSynchronousErrorHandling&&tB&&(tB.errorThrown=!0,tB.error=e):tD(e)}function tZ(e,t){var n=tj.onStoppedNotification;n&&tN.setTimeout(function(){return n(e,t)})}var tK={closed:!0,next:tL,error:function(e){throw e},complete:tL},tY="function"==typeof Symbol&&Symbol.observable||"@@observable";function tJ(e){return e}var tX=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 tU||r&&t_(r.next)&&t_(r.error)&&t_(r.complete)&&tR(r)?e:new tH(e,t,n);return t$(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=tQ(t))(function(t,r){var i=new tH({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[tY]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0===e.length?tJ: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=tQ(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 tQ(e){var t;return null!==(t=null!=e?e:tj.Promise)&&void 0!==t?t:Promise}function t0(e){return Symbol.asyncIterator&&t_(null==e?void 0:e[Symbol.asyncIterator])}function t1(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 t2="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function t3(e){return t_(null==e?void 0:e[t2])}function t5(e){return(0,C.FC)(this,arguments,function(){var t,n,r;return(0,C.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,C.qq)(t.read())];case 3:if(r=(n=i.sent()).value,!n.done)return[3,5];return[4,(0,C.qq)(void 0)];case 4:return[2,i.sent()];case 5:return[4,(0,C.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 t4(e){return t_(null==e?void 0:e.getReader)}function t6(e){if(e instanceof tX)return e;if(null!=e){if(t_(e[tY]))return new tX(function(t){var n=e[tY]();if(t_(n.subscribe))return n.subscribe(t);throw TypeError("Provided object does not correctly implement Symbol.observable")});if(tE(e))return new tX(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()});if(tC(e))return new tX(function(t){e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,tD)});if(t0(e))return t9(e);if(t3(e))return new tX(function(t){var n,r;try{for(var i=(0,C.XA)(e),o=i.next();!o.done;o=i.next()){var s=o.value;if(t.next(s),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(t4(e))return t9(t5(e))}throw t1(e)}function t9(e){return new tX(function(t){(function(e,t){var n,r,i,o;return(0,C.mG)(this,void 0,void 0,function(){var s;return(0,C.Jh)(this,function(a){switch(a.label){case 0:a.trys.push([0,5,6,11]),n=(0,C.KL)(e),a.label=1;case 1:return[4,n.next()];case 2:if((r=a.sent()).done)return[3,4];if(s=r.value,t.next(s),t.closed)return[2];a.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i={error:a.sent()},[3,11];case 6:if(a.trys.push([6,,9,10]),!(r&&!r.done&&(o=n.return)))return[3,8];return[4,o.call(n)];case 7:a.sent(),a.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 t8(e){return function(t){if(t_(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 t7(e,t,n,r,i){return new ne(e,t,n,r,i)}var ne=function(e){function t(t,n,r,i,o,s){var a=e.call(this,t)||this;return a.onFinalize=o,a.shouldUnsubscribe=s,a._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return(0,C.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}(tU);function nt(e,t){return t8(function(n,r){var i=0;n.subscribe(t7(r,function(n){r.next(e.call(t,n,i++))}))})}function nn(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 nr(e,t,n){return(void 0===n&&(n=1/0),t_(t))?nr(function(n,r){return nt(function(e,i){return t(n,e,r,i)})(t6(e(n,r)))},n):("number"==typeof t&&(n=t),t8(function(t,r){var i,o,s,a,l,u,c,d,f;return i=n,s=[],a=0,l=0,u=!1,c=function(){!u||s.length||a||r.complete()},d=function(e){return a<i?f(e):s.push(e)},f=function(t){a++;var n=!1;t6(e(t,l++)).subscribe(t7(r,function(e){o?d(e):r.next(e)},function(){n=!0},void 0,function(){if(n)try{for(a--;s.length&&a<i;)!function(){var e=s.shift();f(e)}();c()}catch(e){r.error(e)}}))},t.subscribe(t7(r,d,function(){u=!0,c()})),function(){}}))}var ni=Array.isArray,no=["addListener","removeListener"],ns=["addEventListener","removeEventListener"],na=["on","off"];function nl(e,t,n,r){if(t_(n)&&(r=n,n=void 0),r)return nl(e,t,n).pipe((i=r,nt(function(e){return ni(e)?i.apply(void 0,(0,C.ev)([],(0,C.CR)(e))):i(e)})));var i,o=(0,C.CR)(t_(e.addEventListener)&&t_(e.removeEventListener)?ns.map(function(r){return function(i){return e[r](t,i,n)}}):t_(e.addListener)&&t_(e.removeListener)?no.map(nu(e,t)):t_(e.on)&&t_(e.off)?na.map(nu(e,t)):[],2),s=o[0],a=o[1];if(!s&&tE(e))return nr(function(e){return nl(e,t,n)})(t6(e));if(!s)throw TypeError("Invalid event target");return new tX(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 s(t),function(){return a(t)}})}function nu(e,t){return function(n){return function(r){return e[n](t,r)}}}var nc=tO(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),nd=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return(0,C.ZT)(t,e),t.prototype.lift=function(e){var t=new nf(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new nc},t.prototype.next=function(e){var t=this;t$(function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=(0,C.XA)(t.currentObservers),o=i.next();!o.done;o=i.next())o.value.next(e)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var t=this;t$(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;t$(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this.hasError,r=this.isStopped,i=this.observers;return n||r?tA:(this.currentObservers=null,i.push(e),new tP(function(){t.currentObservers=null,tI(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},t.prototype.asObservable=function(){var e=new tX;return e.source=this,e},t.create=function(e,t){return new nf(e,t)},t}(tX),nf=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return(0,C.ZT)(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:tA},t}(nd);function nh(e){void 0===e&&(e={});var t=e.connector,n=void 0===t?function(){return new nd}:t,r=e.resetOnError,i=void 0===r||r,o=e.resetOnComplete,s=void 0===o||o,a=e.resetOnRefCountZero,l=void 0===a||a;return function(e){var t,r,o,a=0,u=!1,c=!1,d=function(){null==r||r.unsubscribe(),r=void 0},f=function(){d(),t=o=void 0,u=c=!1},h=function(){var e=t;f(),null==e||e.unsubscribe()};return t8(function(e,p){a++,c||u||d();var m=o=null!=o?o:n();p.add(function(){0!=--a||c||u||(r=np(h,l))}),m.subscribe(p),!t&&a>0&&(t=new tH({next:function(e){return m.next(e)},error:function(e){c=!0,d(),r=np(f,i,e),m.error(e)},complete:function(){u=!0,d(),r=np(f,s),m.complete()}}),t6(e).subscribe(t))})(e)}}function np(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!0===t){e();return}if(!1!==t){var i=new tH({next:function(){i.unsubscribe(),e()}});return t6(t.apply(void 0,(0,C.ev)([],(0,C.CR)(n)))).subscribe(i)}}var nm=["input","select","textarea"],ng=function(e,t){return function(n,r){var i,o,s,a=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(!nw(window.location.href,a))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===(s=null==window?void 0:window.getComputedStyle)||void 0===s?void 0:s.call(window,r);if(d&&"pointer"===d.getPropertyValue("cursor")&&"click"===n)return!0;return"click"===n}}},nv=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)))},ny=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},nb=function(e){var t="";return ny(e)&&e.childNodes&&e.childNodes.length&&e.childNodes.forEach(function(e){var n="";e&&3===e.nodeType?e.textContent&&(n=e.textContent):n=nb(e),t+=n.split(/(\s+)/).filter(nv).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}),t},nw=function(e,t){return!t||!t.length||t.some(function(t){return"string"==typeof t?e===t:e.match(t)})},nx=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},{})},nS=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 nv(r)?r:""}return nS(n)},nk=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:nk(null==e?void 0:e.parentElement,t):null},nE=function(e){if(!e)return{};var t,n,r,i=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);return nx(((t={})[tb]=i,t[tw]=nb(e),t[tx]=window.location.href.split("?")[0],t))},n_=function(e){return null!==e.event.target&&!!e.closestTrackedAncestor},nC=function(){function e(e){var t=(void 0===e?{}:e).origin,n=this;this.endpoint=tS,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?tS: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,s){r.requestCallbacks[i]={resolve:t,reject:s},r.notify(o),(null==n?void 0:n.timeout)>0&&setTimeout(function(){s(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,s=n.cssSelectorAllowlist,a=n.actionClickAllowlist;this.logger=r,i&&this.endpoint===tS&&(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:nE,isElementSelectable:function(e){return!o||o((null==p?void 0:p.actionType)||"click",e)},onTrack:t.onTrack,onSelect:t.onSelect,visualHighlightClass:"amp-visual-tagging-selector-highlight",messenger:t,cssSelectorAllowlist:s,actionClickAllowlist:a}),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}(),nO=["id","class","style","value","onclick","onchange","oninput","onblur","onsubmit","onfocus","onkeydown","onkeyup","onkeypress","data-reactid","data-react-checksum","data-reactroot"],nT=["type"],nI=["svg","path","g"],nP=["password","hidden"];function nA(e,t){return t8(function(n,r){var i=0;n.subscribe(t7(r,function(n){return e.call(t,n,i++)&&r.next(n)}))})}var nR=function(e){function t(t,n){return e.call(this)||this}return(0,C.ZT)(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(tP),nM={setInterval:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=nM.delegate;return(null==i?void 0:i.setInterval)?i.setInterval.apply(i,(0,C.ev)([e,t],(0,C.CR)(n))):setInterval.apply(void 0,(0,C.ev)([e,t],(0,C.CR)(n)))},clearInterval:function(e){var t=nM.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},nj=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,C.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),nM.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&&nM.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,tI(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(nR),nN={now:function(){return(nN.delegate||Date).now()},delegate:void 0},nD=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=nN.now,e}(),nL=new(function(e){function t(t,n){void 0===n&&(n=nD.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r}return(0,C.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}(nD))(nj);function nz(e){return void 0===e&&(e=1/0),nr(tJ,e)}var nF=new tX(function(e){return e.complete()});function nB(e){return e&&t_(e.schedule)}function n$(e){return e[e.length-1]}function nU(e){return nB(n$(e))?e.pop():void 0}function nV(e,t){return void 0===t&&(t=0),t8(function(n,r){n.subscribe(t7(r,function(n){return nn(r,e,function(){return r.next(n)},t)},function(){return nn(r,e,function(){return r.complete()},t)},function(n){return nn(r,e,function(){return r.error(n)},t)}))})}function nq(e,t){return void 0===t&&(t=0),t8(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function nW(e,t){if(!e)throw Error("Iterable cannot be null");return new tX(function(n){nn(n,t,function(){var r=e[Symbol.asyncIterator]();nn(n,t,function(){r.next().then(function(e){e.done?n.complete():n.next(e.value)})},0,!0)})})}function nH(e,t){return t?function(e,t){if(null!=e){if(t_(e[tY]))return t6(e).pipe(nq(t),nV(t));if(tE(e))return new tX(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})});if(tC(e))return t6(e).pipe(nq(t),nV(t));if(t0(e))return nW(e,t);if(t3(e))return new tX(function(n){var r;return nn(n,t,function(){r=e[t2](),nn(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 t_(null==r?void 0:r.return)&&r.return()}});if(t4(e))return nW(t5(e),t)}throw t1(e)}(e,t):t6(e)}function nG(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=nU(t),i=(e=1/0,"number"==typeof n$(t)?t.pop():e);return t.length?1===t.length?t6(t[0]):nz(i)(nH(t,r)):nF}function nZ(e){return e<=0?function(){return nF}:t8(function(t,n){var r=0;t.subscribe(t7(n,function(t){++r<=e&&(n.next(t),e<=r&&n.complete())}))})}function nK(e){return e instanceof Date&&!isNaN(e)}var nY=tO(function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}});function nJ(e){throw new nY(e)}(f=k||(k={})).ClickObservable="clickObservable",f.ChangeObservable="changeObservable",f.NavigateObservable="navigateObservable",f.MutationObservable="mutationObservable";var nX=function(e){void 0===e&&(e={});var t,n,r,i=e.dataAttributePrefix,o=void 0===i?"data-amp-track-":i,s=e.visualTaggingOptions,a=void 0===s?{enabled:!0,messenger:new nC}:s;e.cssSelectorAllowlist=null!==(t=e.cssSelectorAllowlist)&&void 0!==t?t:tg,e.actionClickAllowlist=null!==(n=e.actionClickAllowlist)&&void 0!==n?n:tv,e.debounceTime=null!==(r=e.debounceTime)&&void 0!==r?r:0;var l="@amplitude/plugin-autocapture-browser",u=[],c=function(){var e,t,n=nl(document,"click",{capture:!0}).pipe(nt(function(e){return f(e,"click")}),nh()),r=nl(document,"change",{capture:!0}).pipe(nt(function(e){return f(e,"change")}),nh());window.navigation&&(t=nl(window.navigation,"navigate").pipe(nt(function(e){return f(e,"navigate")}),nh()));var i=new tX(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(nt(function(e){return f(e,"mutation")}),nh());return(e={})[k.ClickObservable]=n,e[k.ChangeObservable]=r,e[k.NavigateObservable]=t,e[k.MutationObservable]=i,e},d=function(e,t){var n,r,i,s,a=null===(s=null===(i=null==t?void 0:t.tagName)||void 0===i?void 0:i.toLowerCase)||void 0===s?void 0:s.call(i),l="function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{left:null,top:null},u=t.getAttribute("aria-label"),c=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},{}),d=nS(t),f=((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,C.CR)(e,1)[0];return null!=t}).map(function(t){var n=(0,C.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,s,a=String(e.tagName).toLowerCase(),l={tag:a},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===(s=null===(o=e.previousElementSibling)||void 0===o?void 0:o.tagName)||void 0===s?void 0:s.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!nO.includes(e.name)}),m=!ny(e);if(!nP.includes(String(e.getAttribute("type")))&&!nI.includes(a))try{for(var g=(0,C.XA)(p),v=g.next();!v.done;v=g.next()){var y=v.value;(!m||nT.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[tb]=a,r[tw]=nb(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"]=c,r["[Amplitude] Element Parent Label"]=d,r[tx]=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"===a&&"click"===e&&t instanceof HTMLAnchorElement&&(f["[Amplitude] Element Href"]=t.href),nx(f)},f=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=nk(r.event.target,e.cssSelectorAllowlist);i&&(r.closestTrackedAncestor=i,r.targetElementProperties=d(r.type,i))}return r};return{name:l,type:"enrichment",setup:function(t,n){return(0,C.mG)(void 0,void 0,void 0,function(){var r,i,o,s,f,h,p,m,g,v;return(0,C.Jh)(this,function(y){var b,w,x,S,k,E,_,O,T,I,P,A,R,M,j,N,D,L,z,F,B,$,U,V,q,W,H,G,Z,K,Y,J,X,Q;return"undefined"==typeof document||(r=ng(e,e.cssSelectorAllowlist),i=ng(e,e.actionClickAllowlist),w=(b={allObservables:o=c(),options:e,amplitude:n,shouldTrackEvent:r}).amplitude,x=b.allObservables,S=b.options,k=b.shouldTrackEvent,T=nG((E=x.clickObservable).pipe(t8(function(e,t){var n,r=!1;e.subscribe(t7(t,function(e){var i=n;n=e,r&&t.next([i,e]),r=!0}))}),nA(function(e){var t=(0,C.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})),E.pipe((_=S.debounceTime,void 0===O&&(O=nL),t8(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 s(){var e=i+_,r=O.now();if(r<e){n=this.schedule(void 0,e-r),t.add(n);return}o()}e.subscribe(t7(t,function(e){r=e,i=O.now(),n||(n=O.schedule(s,_),t.add(n))},function(){o(),t.complete()},void 0,function(){r=n=null}))})),nt(function(){return"timeout"}))),s=E.pipe((void 0===I&&(I=nL),P=0,A=I,void 0===P&&(P=0),void 0===R&&(R=nL),M=-1,null!=A&&(nB(A)?R=A:M=A),j=new tX(function(e){var t=nK(P)?+P-R.now():P;t<0&&(t=0);var n=0;return R.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 nz(1)(nH(e,nU(e)))}(n.pipe(nZ(1),t8(function(e,t){e.subscribe(t7(t,tL))})),r.pipe(e(t)))}:nr(function(e,n){return t6(t(e,n)).pipe(nZ(1),nt(function(){return e}))})}(function(){return j})),nA(n_),nA(function(e){return k("click",e.closestTrackedAncestor)}),t8(function(e,t){var n=[];return e.subscribe(t7(t,function(e){return n.push(e)},function(){t.next(n),t.complete()})),t6(T).subscribe(t7(t,function(){var e=n;n=[],t.next(e)},tL)),function(){n=null}})).subscribe(function(e){var t,n,r=(e.length,ty);try{for(var i=(0,C.XA)(e),o=i.next();!o.done;o=i.next()){var s=o.value;null==w||w.track(r,s.targetElementProperties)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}),u.push(s),D=(N={allObservables:o,getEventProperties:d,amplitude:n,shouldTrackEvent:r}).amplitude,L=N.allObservables,z=N.getEventProperties,F=N.shouldTrackEvent,f=L.changeObservable.pipe(nA(n_),nA(function(e){return F("change",e.closestTrackedAncestor)})).subscribe(function(e){null==D||D.track("[Amplitude] Element Changed",z("change",e.closestTrackedAncestor))}),u.push(f),$=(B={allObservables:o,options:e,getEventProperties:d,amplitude:n,shouldTrackEvent:r,shouldTrackActionClick:i}).amplitude,U=B.allObservables,V=B.options,q=B.getEventProperties,W=B.shouldTrackEvent,H=B.shouldTrackActionClick,G=U.clickObservable,Z=U.mutationObservable,K=U.navigateObservable,Y=G.pipe(nA(function(e){return!W("click",e.closestTrackedAncestor)}),nt(function(e){var t=nk(e.event.target,V.actionClickAllowlist);return e.closestTrackedAncestor=t,null!==e.closestTrackedAncestor&&(e.targetElementProperties=q(e.type,e.closestTrackedAncestor)),e}),nA(n_),nA(function(e){return H("click",e.closestTrackedAncestor)})),J=[Z],K&&J.push(K),X=nG.apply(void 0,(0,C.ev)([],(0,C.CR)(J),!1)),h=Y.pipe((Q=function(e){return X.pipe(nZ(1),function(e,t){var n=nK(e)?{first:e}:"number"==typeof e?{each:e}:e,r=n.first,i=n.each,o=n.with,s=void 0===o?nJ:o,a=n.scheduler,l=void 0===a?nL:a,u=n.meta,c=void 0===u?null:u;if(null==r&&null==i)throw TypeError("No timeout provided.");return t8(function(e,t){var n,o,a=null,u=0,d=function(e){o=nn(t,l,function(){try{n.unsubscribe(),t6(s({meta:c,lastValue:a,seen:u})).subscribe(t)}catch(e){t.error(e)}},e)};n=e.subscribe(t7(t,function(e){null==o||o.unsubscribe(),u++,t.next(a=e),i>0&&d(i)},void 0,void 0,function(){(null==o?void 0:o.closed)||null==o||o.unsubscribe(),a=null})),u||d(null!=r?"number"==typeof r?r:+r-l.now():i)})}({first:500,with:function(){return nF}}),nt(function(){return e}))},t8(function(e,t){var n=null,r=0,i=!1,o=function(){return i&&!n&&t.complete()};e.subscribe(t7(t,function(e){null==n||n.unsubscribe(),t6(Q(e,r++)).subscribe(n=t7(t,function(e){return t.next(e)},function(){n=null,o()}))},function(){i=!0,o()}))}))).subscribe(function(e){null==$||$.track(ty,q("click",e.closestTrackedAncestor))}),u.push(h),null===(g=null==t?void 0:t.loggerProvider)||void 0===g||g.log("".concat(l," has been successfully added.")),window.opener&&a.enabled&&(p=e.cssSelectorAllowlist,m=e.actionClickAllowlist,null===(v=a.messenger)||void 0===v||v.setup((0,C.pi)((0,C.pi)({logger:null==t?void 0:t.loggerProvider},(null==t?void 0:t.serverZone)&&{endpoint:tk[t.serverZone]}),{isElementSelectable:ng(e,(0,C.ev)((0,C.ev)([],(0,C.CR)(p),!1),(0,C.CR)(m),!1)),cssSelectorAllowlist:p,actionClickAllowlist:m})))),[2]})})},execute:function(e){return(0,C.mG)(void 0,void 0,void 0,function(){return(0,C.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,C.mG)(void 0,void 0,void 0,function(){var e,t,n,r;return(0,C.Jh)(this,function(i){try{for(t=(e=(0,C.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]})})}}},nQ=function(e,t){void 0===t&&(t=z()),this.callback=e,this.id=t},n0=new(function(){function e(t){this.eventCallbacks=new Map,this.isObserving=!1;var n,r=(0,T.l)();if(!e.isSupported()){null==t||t.error("Fetch API is not supported in this environment.");return}this.globalScope=r,this.originalFetch=null===(n=this.globalScope)||void 0===n?void 0:n.fetch}return e.isSupported=function(){var e=(0,T.l)();return!!e&&!!e.fetch},e.prototype.subscribe=function(e){this.eventCallbacks.set(e.id,e),this.isObserving||(this.observeFetch(),this.isObserving=!0)},e.prototype.unsubscribe=function(e){this.eventCallbacks.delete(e.id),this.originalFetch&&this.globalScope&&0===this.eventCallbacks.size&&this.isObserving&&(this.globalScope.fetch=this.originalFetch,this.isObserving=!1)},e.prototype.triggerEventCallbacks=function(e){this.eventCallbacks.forEach(function(t){t.callback(e)})},e.prototype.observeFetch=function(){var e=this;if(this.globalScope&&this.originalFetch){var t=this.globalScope.fetch;this.globalScope.fetch=function(n,r){return(0,C.mG)(e,void 0,void 0,function(){var e,i,o,s,a,l,u,c,d;return(0,C.Jh)(this,function(f){switch(f.label){case 0:e=Date.now(),i=performance.now(),o={timestamp:e,startTime:e,type:"fetch",method:(null==r?void 0:r.method)||"GET",url:n.toString(),requestHeaders:null==r?void 0:r.headers,requestBodySize:function(e){var t,n,r=(0,T.l)();if(null==r?void 0:r.TextEncoder){var i=r.TextEncoder;if("string"==typeof e)return new i().encode(e).length;if(e instanceof Blob)return e.size;if(e instanceof URLSearchParams)return new i().encode(e.toString()).length;if(e instanceof ArrayBuffer)return e.byteLength;if(ArrayBuffer.isView(e))return e.byteLength;else if(e instanceof FormData){var o=0,s=0;try{for(var a=(0,C.XA)(e.entries()),l=a.next();!l.done;l=a.next()){var u=(0,C.CR)(l.value,2),c=u[0],d=u[1];if(o+=c.length,"string"==typeof d?o+=new i().encode(d).length:d.size&&(o+=d.size),++s>=100)return}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return o}}}(null==r?void 0:r.body)},f.label=1;case 1:return f.trys.push([1,3,,4]),[4,t(n,r)];case 2:return s=f.sent(),o.status=s.status,o.duration=Math.floor(performance.now()-i),o.startTime=e,o.endTime=Math.floor(e+o.duration),a={},l=void 0,s.headers.forEach(function(e,t){a[t]=e,"content-length"===t&&(l=parseInt(e,10)||void 0)}),o.responseHeaders=a,o.responseBodySize=l,this.triggerEventCallbacks(o),[2,s];case 3:throw u=f.sent(),c=Date.now(),o.duration=c-e,d=u,o.error={name:d.name||"UnknownError",message:d.message||"An unknown error occurred"},this.triggerEventCallbacks(o),u;case 4:return[2]}})})}}},e}()),n1="500-599";function n2(e,t){return RegExp("^"+t.replace(/[-[\]{}()+?.,\\^$|#\s]/g,"\\$&").replace(/\*/g,".*")+"$").test(e)}function n3(e,t){var n,r,i=t.split(",");try{for(var o=(0,C.XA)(i),s=o.next();!s.done;s=o.next()){var a=s.value,l=(0,C.CR)(a.split("-").map(Number),2),u=l[0],c=l[1];if(e===u&&void 0===c||e>=u&&e<=c)return!0}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1}(E||(E={})).NetworkObservable="networkObservable";var n5=function(e){void 0===e&&(e={});var t="@amplitude/plugin-network-capture-browser",n=[],r=function(){var e,t=new tX(function(e){var t=new nQ(function(t){var n={event:t,timestamp:Date.now(),type:"network"};e.next(n)});return n0.subscribe(t),function(){n0.unsubscribe(t)}});return(e={})[E.NetworkObservable]=t,e};return{name:t,type:"enrichment",setup:function(i,o){return(0,C.mG)(void 0,void 0,void 0,function(){var s,a;return(0,C.Jh)(this,function(l){var u,c,d,f;return"undefined"==typeof document||(c=(u={allObservables:r(),networkTrackingOptions:e,amplitude:o}).allObservables,d=u.networkTrackingOptions,f=u.amplitude,s=c.networkObservable.pipe(nA(function(e){var t,n,r,i,o;return t=e.event,void 0===(n=d)&&(n={}),o=new URL(t.url).hostname,!(!1!==n.ignoreAmplitudeRequests&&(n2(o,"*.amplitude.com")||n2(o,"amplitude.com"))||(null===(r=n.ignoreHosts)||void 0===r?void 0:r.find(function(e){return n2(o,e)})))&&(!!n.captureRules||void 0===t.status||!!n3(t.status,n1))&&(!n.captureRules||((0,C.ev)([],(0,C.CR)(n.captureRules),!1).reverse().find(function(e){var n;return n=t.status,void 0!==(i=e.hosts&&!e.hosts.find(function(e){return n2(o,e)})?void 0:!n&&0!==n||!!n3(n,e.statusCodeRange||n1))}),!!i))})).subscribe(function(e){var t,n,r,i,o=e.event;try{r=(n=new URL(o.url)).searchParams.toString(),i=n.hash.replace("#","")}catch(e){}var s=((t={})["[Amplitude] URL"]=o.url,t["[Amplitude] URL Query"]=r,t["[Amplitude] URL Fragment"]=i,t["[Amplitude] Request Method"]=o.method,t["[Amplitude] Status Code"]=o.status,t["[Amplitude] Start Time"]=o.startTime,t["[Amplitude] Completion Time"]=o.endTime,t["[Amplitude] Duration"]=o.duration,t["[Amplitude] Request Body Size"]=o.requestBodySize,t["[Amplitude] Response Body Size"]=o.responseBodySize,t);null==f||f.track("[Amplitude] Network Request",s)}),n.push(s),null===(a=null==i?void 0:i.loggerProvider)||void 0===a||a.log("".concat(t," has been successfully added."))),[2]})})},execute:function(e){return(0,C.mG)(void 0,void 0,void 0,function(){return(0,C.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,C.mG)(void 0,void 0,void 0,function(){var e,t,r,i;return(0,C.Jh)(this,function(o){try{for(t=(e=(0,C.XA)(n)).next();!t.done;t=e.next())t.value.unsubscribe()}catch(e){r={error:e}}finally{try{t&&!t.done&&(i=e.return)&&i.call(e)}finally{if(r)throw r.error}}return[2]})})}}},n4="dclid",n6="fbclid",n9="gbraid",n8="gclid",n7="ko_click_id",re="li_fat_id",rt="msclkid",rn="rtd_cid",rr="ttclid",ri="twclid",ro="wbraid",rs={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},ra=function(e){var t=e.split(".");return t.length<=2?e:t.slice(t.length-2,t.length).join(".")},rl=function(e,t,n,r,i){void 0===i&&(i=!0),e.referrer;var o=e.referring_domain,s=(0,C._T)(e,["referrer","referring_domain"]),a=t||{},l=(a.referrer,a.referring_domain),u=(0,C._T)(a,["referrer","referring_domain"]);if(ru(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(s)!==JSON.stringify(u),d=ra(o||"")!==ra(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},ru=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})},rc=function(e){var t=e;return t?(t.startsWith(".")&&(t=t.substring(1)),[new RegExp("".concat(t.replace(".","\\."),"$"))]):[]},rd=function(){function e(){}return e.prototype.parse=function(){return(0,C.mG)(this,void 0,void 0,function(){return(0,C.Jh)(this,function(e){return[2,(0,C.pi)((0,C.pi)((0,C.pi)((0,C.pi)({},rs),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var e=I();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=I();return(e={})[n4]=t[n4],e[n6]=t[n6],e[n9]=t[n9],e[n8]=t[n8],e[n7]=t[n7],e[re]=t[re],e[rt]=t[rt],e[rn]=t[rn],e[rr]=t[rr],e[ri]=t[ri],e[ro]=t[ro],e},e}(),rf=function(){function e(e,t){var n,r,i,o;this.shouldTrackNewCampaign=!1,this.options=(0,C.pi)({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:rc(null===(n=t.cookieOptions)||void 0===n?void 0:n.domain)},e),this.storage=t.cookieStorage,this.storageKey=(r=t.apiKey,i="MKTG",void 0===o&&(o=10),[M.xp,i,r.substring(0,o)].filter(Boolean).join("_")),this.currentCampaign=rs,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,C.mG)(this,void 0,void 0,function(){var e,t;return(0,C.Jh)(this,function(n){switch(n.label){case 0:return[4,this.fetchCampaign()];case 1:if(t=C.CR.apply(void 0,[n.sent(),2]),this.currentCampaign=t[0],this.previousCampaign=t[1],e=!this.lastEventTime||G(this.sessionTimeout,this.lastEventTime),!rl(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,C.mG)(this,void 0,void 0,function(){return(0,C.Jh)(this,function(e){switch(e.label){case 0:return[4,Promise.all([new rd().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,K(Object.entries((0,C.pi)((0,C.pi)({},rs),t)).reduce(function(e,t){var r,i=(0,C.CR)(t,2),o=i[0],s=i[1];return(e.setOnce("initial_".concat(o),null!==(r=null!=s?s:n.initialEmptyValue)&&void 0!==r?r:"EMPTY"),s)?e.set(o,s):e.unset(o)},new q)));return e&&(r.event_id=e),r},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e}(),rh=(h=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,C.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),(0,O.S)(this._init((0,C.pi)((0,C.pi)({},i),{userId:r,apiKey:e})))},t.prototype._init=function(t){var n,r,i;return(0,C.mG)(this,void 0,void 0,function(){var o,s,a,l,u,c=this;return(0,C.Jh)(this,function(d){var f,h,p,m,g;switch(d.label){case 0:if(this.initializing)return[2];return this.initializing=!0,[4,(f=t.apiKey,h=t,p=this,void 0===h&&(h={}),(0,C.mG)(void 0,void 0,void 0,function(){var e,t,n,r,i,o,s,a,l,u,c,d,m,g,v,y,b,w,x,S,k,E,_,O,T,P,A,R,j,N,D,L,F,B,$,U,V,q,W,H,G,Z,K;return(0,C.Jh)(this,function(Y){var J,X,Q;switch(Y.label){case 0:if(e=h.identityStorage||eV,x={},!(e!==eV))return[3,1];return n="",[3,5];case 1:if(!(null!==(k=null===(S=h.cookieOptions)||void 0===S?void 0:S.domain)&&void 0!==k))return[3,2];return r=k,[3,4];case 2:return[4,(0,C.mG)(void 0,void 0,void 0,function(){var e,t,n,r,i,o;return(0,C.Jh)(this,function(s){switch(s.label){case 0:return[4,new ev().isEnabled()];case 1:if(!s.sent()||"undefined"==typeof location||!location.hostname)return[2,""];for(e=(null!=J?J:location.hostname).split("."),t=[],n="AMP_TLDTEST",r=e.length-2;r>=0;--r)t.push(e.slice(r).join("."));r=0,s.label=2;case 2:if(!(r<t.length))return[3,7];return[4,(o=new ev({domain:"."+(i=t[r])})).set(n,1)];case 3:return s.sent(),[4,o.get(n)];case 4:if(!s.sent())return[3,6];return[4,o.remove(n)];case 5:return s.sent(),[2,"."+i];case 6:return r++,[3,2];case 7:return[2,""]}})})];case 3:r=Y.sent(),Y.label=4;case 4:n=r,Y.label=5;case 5:return t=C.pi.apply(void 0,[(x.domain=n,x.expiration=365,x.sameSite="Lax",x.secure=!1,x.upgrade=!0,x),h.cookieOptions]),[4,(X=i=eW(h.identityStorage,t),void 0===(Q=null===(_=null===(E=h.cookieOptions)||void 0===E?void 0:E.upgrade)||void 0===_||_)&&(Q=!0),(0,C.mG)(void 0,void 0,void 0,function(){var e,t,n,r,i,o,s,a,l;return(0,C.Jh)(this,function(u){switch(u.label){case 0:return e="".concat(M.xp.toLowerCase(),"_").concat(f.substring(0,6)),[4,X.getRaw(e)];case 1:if(!(t=u.sent()))return[2,{optOut:!1}];if(!Q)return[3,3];return[4,X.remove(e)];case 2:u.sent(),u.label=3;case 3:return r=(n=(0,C.CR)(t.split("."),6))[0],i=n[1],o=n[2],s=n[3],a=n[4],l=n[5],[2,{deviceId:r,userId:eT(i),sessionId:eO(s),lastEventId:eO(l),lastEventTime:eO(a),optOut:!!o}]}})}))];case 6:return o=Y.sent(),[4,i.get(eg(f))];case 7:return s=Y.sent(),a=I(),l=null!==(R=null!==(A=null!==(P=null!==(T=null!==(O=h.deviceId)&&void 0!==O?O:a.ampDeviceId)&&void 0!==T?T:a.deviceId)&&void 0!==P?P:null==s?void 0:s.deviceId)&&void 0!==A?A:o.deviceId)&&void 0!==R?R:z(),u=null!==(j=null==s?void 0:s.lastEventId)&&void 0!==j?j:o.lastEventId,c=null!==(N=null==s?void 0:s.lastEventTime)&&void 0!==N?N:o.lastEventTime,d=null!==(L=null!==(D=h.optOut)&&void 0!==D?D:null==s?void 0:s.optOut)&&void 0!==L?L:o.optOut,m=null!==(F=null==s?void 0:s.sessionId)&&void 0!==F?F:o.sessionId,g=null!==($=null!==(B=h.userId)&&void 0!==B?B:null==s?void 0:s.userId)&&void 0!==$?$:o.userId,p.previousSessionDeviceId=null!==(U=null==s?void 0:s.deviceId)&&void 0!==U?U:o.deviceId,p.previousSessionUserId=null!==(V=null==s?void 0:s.userId)&&void 0!==V?V:o.userId,v={ipAddress:null===(W=null===(q=h.trackingOptions)||void 0===q?void 0:q.ipAddress)||void 0===W||W,language:null===(G=null===(H=h.trackingOptions)||void 0===H?void 0:H.language)||void 0===G||G,platform:null===(K=null===(Z=h.trackingOptions)||void 0===Z?void 0:Z.platform)||void 0===K||K},y=null==s?void 0:s.pageCounter,b=null==s?void 0:s.debugLogsEnabled,void 0!==h.autocapture&&(h.defaultTracking=h.autocapture),[4,(w=new eq(f,h.appVersion,i,t,h.defaultTracking,h.autocapture,l,h.flushIntervalMillis,h.flushMaxRetries,h.flushQueueSize,e,h.ingestionMetadata,h.instanceName,u,c,h.loggerProvider,h.logLevel,h.minIdLength,h.offline,d,h.partnerId,h.plan,h.serverUrl,h.serverZone,m,h.sessionTimeout,h.storageProvider,v,h.transport,h.useBatch,h.fetchRemoteConfig,g,y,b,h.networkTrackingOptions)).storageProvider.isEnabled()];case 8:return Y.sent()||(w.loggerProvider.warn("Storage provider ".concat(w.storageProvider.constructor.name," is not enabled. Falling back to MemoryStorage.")),w.storageProvider=new eh),[2,w]}})}))];case 1:if(!(o=d.sent()).fetchRemoteConfig)return[3,4];return[4,(m=o,(0,C.mG)(void 0,void 0,void 0,function(){var e;return(0,C.Jh)(this,function(t){switch(t.label){case 0:return[4,(e=new tm(m)).initialize()];case 1:return t.sent(),[2,e]}})}))];case 2:return[4,d.sent().generateJoinedConfig()];case 3:o=d.sent(),d.label=4;case 4:return[4,e.prototype._init.call(this,o)];case 5:if(d.sent(),this.logBrowserOptions(o),!ee(this.config.defaultTracking))return[3,7];return s=ee((g=this.config).defaultTracking)&&g.defaultTracking&&"object"==typeof g.defaultTracking&&g.defaultTracking.attribution&&"object"==typeof g.defaultTracking.attribution?(0,C.pi)({},g.defaultTracking.attribution):{},this.webAttribution=new rf(s,this.config),[4,this.webAttribution.init()];case 6:d.sent(),d.label=7;case 7:if(l=Number.isNaN(Number((a=I()).ampSessionId))?void 0:Number(a.ampSessionId),this.setSessionId(null!==(i=null!==(r=null!==(n=t.sessionId)&&void 0!==n?n:l)&&void 0!==r?r:this.config.sessionId)&&void 0!==i?i:Date.now()),(u=(0,A.bM)(t.instanceName)).identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),!(null!==this.config.offline))return[3,9];return[4,this.add(tc()).promise];case 8:d.sent(),d.label=9;case 9:return[4,this.add(new B).promise];case 10:return d.sent(),[4,this.add(new ef).promise];case 11:return d.sent(),[4,this.add(new $).promise];case 12:if(d.sent(),tu(this.config),!Q(this.config.defaultTracking,"fileDownloads",!0))return[3,14];return this.config.loggerProvider.debug("Adding file download tracking plugin"),[4,this.add(ta()).promise];case 13:d.sent(),d.label=14;case 14:if(!Q(this.config.defaultTracking,"formInteractions",!0))return[3,16];return this.config.loggerProvider.debug("Adding form interaction plugin"),[4,this.add(ti()).promise];case 15:d.sent(),d.label=16;case 16:if(!et(this.config.defaultTracking))return[3,18];return this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(te(ea(this.config))).promise];case 17:d.sent(),d.label=18;case 18:if(!ei(this.config.autocapture))return[3,20];return this.config.loggerProvider.debug("Adding user interactions plugin (autocapture plugin)"),[4,this.add(nX(eo(this.config))).promise];case 19:d.sent(),d.label=20;case 20:if(!(er(this.config.autocapture)&&this.config.networkTrackingOptions))return[3,22];return this.config.loggerProvider.debug("Adding network tracking plugin"),[4,this.add(n5(es(this.config))).promise];case 21:d.sent(),d.label=22;case 22:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 23:return d.sent(),u.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,this.timeline.onIdentityChanged({userId:e}),(0,A.x)(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),e!==this.config.deviceId&&(this.config.deviceId=e,this.timeline.onIdentityChanged({deviceId:e}),(0,A.Sb)(e,this.config.instanceName))},t.prototype.reset=function(){this.setDeviceId(z()),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)),(0,O.S)(Promise.resolve());if(e===this.config.sessionId)return(0,O.S)(Promise.resolve());this.config.loggerProvider.debug("function setSessionId: ",e);var r=this.getSessionId();r!==e&&this.timeline.onSessionIdChanged(e);var 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,en(this.config.defaultTracking)&&(r&&i&&n.push(this.track(ej,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 s=this.trackCampaignEventIfNeeded(++o,n);return en(this.config.defaultTracking)&&n.push(this.track(eM,void 0,{event_id:s?++o:o,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,(0,O.S)(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=eH(e)},t.prototype.identify=function(t,n){if(eu(t)){var r=t._q;t._q=[],t=el(new q,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(eu(r)){var o=r._q;r._q=[],r=el(new q,o)}return e.prototype.groupIdentify.call(this,t,n,r,i)},t.prototype.revenue=function(t,n){if(eu(t)){var r=t._q;t._q=[],t=el(new H,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,C.mG)(this,void 0,void 0,function(){var n,r,i;return(0,C.Jh)(this,function(o){return n=Date.now(),r=G(this.config.sessionTimeout,this.config.lastEventTime),i=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),t.event_type===eM||t.event_type===ej||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,C.pi)((0,C.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}(X)),{init:(0,_.w_)(h.init.bind(h),"init",(0,_.yh)(h),(0,_.zn)(h,["config"])),add:(0,_.w_)(h.add.bind(h),"add",(0,_.yh)(h),(0,_.zn)(h,["config.apiKey","timeline.plugins"])),remove:(0,_.w_)(h.remove.bind(h),"remove",(0,_.yh)(h),(0,_.zn)(h,["config.apiKey","timeline.plugins"])),track:(0,_.w_)(h.track.bind(h),"track",(0,_.yh)(h),(0,_.zn)(h,["config.apiKey","timeline.queue.length"])),logEvent:(0,_.w_)(h.logEvent.bind(h),"logEvent",(0,_.yh)(h),(0,_.zn)(h,["config.apiKey","timeline.queue.length"])),identify:(0,_.w_)(h.identify.bind(h),"identify",(0,_.yh)(h),(0,_.zn)(h,["config.apiKey","timeline.queue.length"])),groupIdentify:(0,_.w_)(h.groupIdentify.bind(h),"groupIdentify",(0,_.yh)(h),(0,_.zn)(h,["config.apiKey","timeline.queue.length"])),setGroup:(0,_.w_)(h.setGroup.bind(h),"setGroup",(0,_.yh)(h),(0,_.zn)(h,["config.apiKey","timeline.queue.length"])),revenue:(0,_.w_)(h.revenue.bind(h),"revenue",(0,_.yh)(h),(0,_.zn)(h,["config.apiKey","timeline.queue.length"])),flush:(0,_.w_)(h.flush.bind(h),"flush",(0,_.yh)(h),(0,_.zn)(h,["config.apiKey","timeline.queue.length"])),getUserId:(0,_.w_)(h.getUserId.bind(h),"getUserId",(0,_.yh)(h),(0,_.zn)(h,["config","config.userId"])),setUserId:(0,_.w_)(h.setUserId.bind(h),"setUserId",(0,_.yh)(h),(0,_.zn)(h,["config","config.userId"])),getDeviceId:(0,_.w_)(h.getDeviceId.bind(h),"getDeviceId",(0,_.yh)(h),(0,_.zn)(h,["config","config.deviceId"])),setDeviceId:(0,_.w_)(h.setDeviceId.bind(h),"setDeviceId",(0,_.yh)(h),(0,_.zn)(h,["config","config.deviceId"])),reset:(0,_.w_)(h.reset.bind(h),"reset",(0,_.yh)(h),(0,_.zn)(h,["config","config.userId","config.deviceId"])),getSessionId:(0,_.w_)(h.getSessionId.bind(h),"getSessionId",(0,_.yh)(h),(0,_.zn)(h,["config"])),setSessionId:(0,_.w_)(h.setSessionId.bind(h),"setSessionId",(0,_.yh)(h),(0,_.zn)(h,["config"])),extendSession:(0,_.w_)(h.extendSession.bind(h),"extendSession",(0,_.yh)(h),(0,_.zn)(h,["config"])),setOptOut:(0,_.w_)(h.setOptOut.bind(h),"setOptOut",(0,_.yh)(h),(0,_.zn)(h,["config"])),setTransport:(0,_.w_)(h.setTransport.bind(h),"setTransport",(0,_.yh)(h),(0,_.zn)(h,["config"]))}),rp=rh.add,rm=(rh.extendSession,rh.flush,rh.getDeviceId,rh.getSessionId,rh.getUserId,rh.groupIdentify,rh.identify,rh.init),rg=(rh.logEvent,rh.remove,rh.reset,rh.revenue,rh.setDeviceId,rh.setGroup,rh.setOptOut,rh.setSessionId,rh.setTransport,rh.setUserId,rh.track)},56493:function(e,t,n){"use strict";n.d(t,{bM:function(){return h},Sb:function(){return m},x:function(){return p}});var r=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:i(),platform:"Web",os:void 0,deviceModel:void 0}},e}(),i=function(){return"undefined"!=typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},o=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}(),s=function(){return(s=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 a(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 l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.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 s}"function"==typeof SuppressedError&&SuppressedError;var u=function(e,t){var n,r,i=typeof e;if(i!==typeof t)return!1;try{for(var o=a(["string","number","boolean","undefined"]),s=o.next();!s.done;s=o.next())if(s.value===i)return e===t}catch(e){n={error:e}}finally{try{s&&!s.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 l=Array.isArray(e),c=Array.isArray(t);if(l!==c)return!1;if(l&&c){for(var d=0;d<e.length;d++)if(!u(e[d],t[d]))return!1}else{if(!u(Object.keys(e).sort(),Object.keys(t).sort()))return!1;var f=!0;return Object.keys(e).forEach(function(n){u(e[n],t[n])||(f=!1)}),f}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 c=function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var e=this,t=s({},this.identity.userProperties),n=s(s({},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,s,u,c=n.userProperties||{};try{for(var d=a(Object.entries(e)),f=d.next();!f.done;f=d.next()){var h=l(f.value,2),p=h[0],m=h[1];switch(p){case"$set":try{for(var g=(i=void 0,a(Object.entries(m))),v=g.next();!v.done;v=g.next()){var y=l(v.value,2),b=y[0],w=y[1];c[b]=w}}catch(e){i={error:e}}finally{try{v&&!v.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}break;case"$unset":try{for(var x=(s=void 0,a(Object.keys(m))),S=x.next();!S.done;S=x.next()){var b=S.value;delete c[b]}}catch(e){s={error:e}}finally{try{S&&!S.done&&(u=x.return)&&u.call(x)}finally{if(s)throw s.error}}break;case"$clearAll":c={}}}}catch(e){t={error:e}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(t)throw t.error}}return n.userProperties=c,this},commit:function(){return e.setIdentity(n),this}}},e.prototype.getIdentity=function(){return s({},this.identity)},e.prototype.setIdentity=function(e){var t=s({},this.identity);this.identity=s({},e),u(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}(),d="undefined"!=typeof globalThis?globalThis:void 0!==n.g?n.g:self,f=function(){function e(){this.identityStore=new c,this.eventBridge=new o,this.applicationContextProvider=new r}return e.getInstance=function(t){return d.analyticsConnectorInstances||(d.analyticsConnectorInstances={}),d.analyticsConnectorInstances[t]||(d.analyticsConnectorInstances[t]=new e),d.analyticsConnectorInstances[t]},e}(),h=function(e){return void 0===e&&(e="$default_instance"),f.getInstance(e)},p=function(e,t){h(t).identityStore.editIdentity().setUserId(e).commit()},m=function(e,t){h(t).identityStore.editIdentity().setDeviceId(e).commit()}},50119:function(e,t,n){"use strict";n.d(t,{De:function(){return a},Dg:function(){return u},RG:function(){return l}});var r=n(68501),i=n(34102),o=n(45745),s=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,instanceName:"$default_instance",logLevel:o.i.Warn,loggerProvider:new i.Y,offline:!1,optOut:!1,serverUrl:r.EG,serverZone:"US",useBatch:!1}},a=function(){function e(e){this._optOut=!1;var t,n,r,i,o=s();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=l(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}(),l=function(e,t,n){if(void 0===e&&(e=""),void 0===t&&(t=s().serverZone),void 0===n&&(n=s().useBatch),e)return{serverUrl:e,serverZone:void 0};var i,o=["US","EU"].includes(t)?t:s().serverZone;return{serverZone:o,serverUrl:(i=n,"EU"===o?i?r.RE:r.y_:i?r.h8:r.EG)}},u=function(){function e(){this.sdk={metrics:{histogram:{}}}}return e.prototype.recordHistogram=function(e,t){this.sdk.metrics.histogram[e]=t},e}()},37843:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});var r=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}},34102:function(e,t,n){"use strict";n.d(t,{Y:function(){return o}});var r=n(45745),i="Amplitude Logger ",o=function(){function e(){this.logLevel=r.i.None}return e.prototype.disable=function(){this.logLevel=r.i.None},e.prototype.enable=function(e){void 0===e&&(e=r.i.Warn),this.logLevel=e},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<r.i.Verbose||console.log("".concat(i,"[Log]: ").concat(e.join(" ")))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<r.i.Warn||console.warn("".concat(i,"[Warn]: ").concat(e.join(" ")))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<r.i.Error||console.error("".concat(i,"[Error]: ").concat(e.join(" ")))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<r.i.Debug||console.log("".concat(i,"[Debug]: ").concat(e.join(" ")))},e}()},35077:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var r=n(98018),i=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,i,o,s,a,l,u,c,d,f,h,p,m,g,v,y,b,w,x,S,k,E=e.code||0,_=this.buildStatus(E);switch(_){case r.q.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!==(i=e.server_upload_time)&&void 0!==i?i:0}};case r.q.Invalid:return{status:_,statusCode:E,body:{error:null!==(o=e.error)&&void 0!==o?o:"",missingField:null!==(s=e.missing_field)&&void 0!==s?s:"",eventsWithInvalidFields:null!==(a=e.events_with_invalid_fields)&&void 0!==a?a:{},eventsWithMissingFields:null!==(l=e.events_with_missing_fields)&&void 0!==l?l:{},eventsWithInvalidIdLengths:null!==(u=e.events_with_invalid_id_lengths)&&void 0!==u?u:{},epsThreshold:null!==(c=e.eps_threshold)&&void 0!==c?c:0,exceededDailyQuotaDevices:null!==(d=e.exceeded_daily_quota_devices)&&void 0!==d?d:{},silencedDevices:null!==(f=e.silenced_devices)&&void 0!==f?f:[],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 r.q.PayloadTooLarge:return{status:_,statusCode:E,body:{error:null!==(g=e.error)&&void 0!==g?g:""}};case r.q.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!==(w=e.throttled_users)&&void 0!==w?w:{},exceededDailyQuotaDevices:null!==(x=e.exceeded_daily_quota_devices)&&void 0!==x?x:{},exceededDailyQuotaUsers:null!==(S=e.exceeded_daily_quota_users)&&void 0!==S?S:{},throttledEvents:null!==(k=e.throttled_events)&&void 0!==k?k:[]}};case r.q.Timeout:default:return{status:_,statusCode:E}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?r.q.Success:429===e?r.q.RateLimit:413===e?r.q.PayloadTooLarge:408===e?r.q.Timeout:e>=400&&e<500?r.q.Invalid:e>=500?r.q.Failed:r.q.Unknown},e}()},4481:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var r=n(95379),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t.prototype.send=function(e,t){return(0,r.mG)(this,void 0,void 0,function(){var n,i;return(0,r.Jh)(this,function(r){switch(r.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=r.sent()).text()];case 2:i=r.sent();try{return[2,this.buildResponse(JSON.parse(i))]}catch(e){return[2,this.buildResponse({code:n.status})]}return[2]}})})},t}(n(35077).d)},68501:function(e,t,n){"use strict";n.d(t,{EG:function(){return s},RE:function(){return u},f1:function(){return o},h8:function(){return l},q$:function(){return r},xp:function(){return i},y_:function(){return a}});var r="-",i="AMP",o="".concat(i,"_unsent"),s="https://api2.amplitude.com/2/httpapi",a="https://api.eu.amplitude.com/2/httpapi",l="https://api2.amplitude.com/batch",u="https://api.eu.amplitude.com/batch"},45745:function(e,t,n){"use strict";var r,i;n.d(t,{i:function(){return r}}),(i=r||(r={}))[i.None=0]="None",i[i.Error=1]="Error",i[i.Warn=2]="Warn",i[i.Verbose=3]="Verbose",i[i.Debug=4]="Debug"},98018:function(e,t,n){"use strict";var r,i;n.d(t,{q:function(){return r}}),(i=r||(r={})).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"},38231:function(e,t,n){"use strict";n.d(t,{w_:function(){return l},yh:function(){return o},zn:function(){return a}});var r=n(95379),i=n(45745),o=function(e){return function(){var t=(0,r.pi)({},e.config);return{logger:t.loggerProvider,logLevel:t.logLevel}}},s=function(e,t){var n,i;t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"");try{for(var o=(0,r.XA)(t.split(".")),s=o.next();!s.done;s=o.next()){var a=s.value;if(!(a in e))return;e=e[a]}}catch(e){n={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return e},a=function(e,t){return function(){var n,i,o={};try{for(var a=(0,r.XA)(t),l=a.next();!l.done;l=a.next()){var u=l.value;o[u]=s(e,u)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return o}},l=function(e,t,n,r,o){return void 0===o&&(o=null),function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];var l=n(),u=l.logger,c=l.logLevel;if(c&&c<i.i.Debug||!c||!u)return e.apply(o,s);var d={type:"invoke public method",name:t,args:s,stacktrace:(Error().stack||"").split("\n").slice(3).map(function(e){return e.trim()}),time:{start:new Date().toISOString()},states:{}};r&&d.states&&(d.states.before=r());var f=e.apply(o,s);return f&&f.promise?f.promise.then(function(){r&&d.states&&(d.states.after=r()),d.time&&(d.time.end=new Date().toISOString()),u.debug(JSON.stringify(d,null,2))}):(r&&d.states&&(d.states.after=r()),d.time&&(d.time.end=new Date().toISOString()),u.debug(JSON.stringify(d,null,2))),f}}},55199:function(e,t,n){"use strict";n.d(t,{S:function(){return r}});var r=function(e){return{promise:e||Promise.resolve()}}},8536:function(e,t,n){"use strict";let r,i,o,s;n.d(t,{k:function(){return t2}});var a,l,u,c,d,f,h,p,m,g,v,y,b,w,x,S,k,E,_,C,O,T,I=n(95379),P=n(38231),A=n(45745),R=n(34102),M=n(4481),j=n(50119);(a=x||(x={})).US="US",a.EU="EU",a.STAGING="STAGING";var N=n(68501),D="[Amplitude]",L="".concat(D," Session Replay ID"),z=x.US,F="".concat(D," Session Replay Debug"),B="amp-mask";N.xp,(l=S||(S={})).GET_SR_PROPS="get-sr-props",l.DEBUG_INFO="debug-info",l.FETCH_REQUEST="fetch-request";var $=function(){function e(e){this.logger=e,this.log=this.getSafeMethod("log"),this.warn=this.getSafeMethod("warn"),this.error=this.getSafeMethod("error"),this.debug=this.getSafeMethod("debug")}return e.prototype.getSafeMethod=function(e){if(!this.logger)return function(){};var t,n=this.logger[e];return"function"==typeof n?(null!==(t=n.__rrweb_original__)&&void 0!==t?t:n).bind(this.logger):function(){}},e.prototype.enable=function(e){this.logger.enable(e)},e.prototype.disable=function(){this.logger.disable()},e}(),U=function(){return{flushMaxRetries:2,logLevel:A.i.Warn,loggerProvider:new R.Y,transportProvider:new M.V}},V=function(e){function t(t,n){var r,i=this,o=U();return(i=e.call(this,(0,I.pi)((0,I.pi)({transportProvider:o.transportProvider,loggerProvider:new $(n.loggerProvider||o.loggerProvider)},n),{apiKey:t}))||this).flushMaxRetries=void 0!==n.flushMaxRetries&&n.flushMaxRetries<=o.flushMaxRetries?n.flushMaxRetries:o.flushMaxRetries,i.apiKey=t,i.sampleRate=n.sampleRate||0,i.serverZone=n.serverZone||z,i.configServerUrl=n.configServerUrl,i.trackServerUrl=n.trackServerUrl,i.shouldInlineStylesheet=n.shouldInlineStylesheet,i.version=n.version,i.performanceConfig=n.performanceConfig,i.storeType=null!==(r=n.storeType)&&void 0!==r?r:"idb",n.privacyConfig&&(i.privacyConfig=n.privacyConfig),n.debugMode&&(i.debugMode=n.debugMode),n.experimental&&(i.experimental=n.experimental),i}return(0,I.ZT)(t,e),t}(j.De),q=n(37843),W=n(55199),H=n(56493),G=n(57508);(u=k||(k={})).Unknown="unknown",u.Skipped="skipped",u.Success="success",u.RateLimit="rate_limit",u.PayloadTooLarge="payload_too_large",u.Invalid="invalid",u.Failed="failed",u.Timeout="Timeout",u.SystemError="SystemError";var Z=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,s,a,l,u,c,d,f,h,p,m,g,v,y,b,w,x,S,E=e.code||0,_=this.buildStatus(E);switch(_){case k.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 k.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!==(s=e.events_with_invalid_fields)&&void 0!==s?s:{},eventsWithMissingFields:null!==(a=e.events_with_missing_fields)&&void 0!==a?a:{},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!==(f=e.silenced_events)&&void 0!==f?f:[],throttledDevices:null!==(h=e.throttled_devices)&&void 0!==h?h:{},throttledEvents:null!==(p=e.throttled_events)&&void 0!==p?p:[]}};case k.PayloadTooLarge:return{status:_,statusCode:E,body:{error:null!==(m=e.error)&&void 0!==m?m:""}};case k.RateLimit:return{status:_,statusCode:E,body:{error:null!==(g=e.error)&&void 0!==g?g:"",epsThreshold:null!==(v=e.eps_threshold)&&void 0!==v?v:0,throttledDevices:null!==(y=e.throttled_devices)&&void 0!==y?y:{},throttledUsers:null!==(b=e.throttled_users)&&void 0!==b?b:{},exceededDailyQuotaDevices:null!==(w=e.exceeded_daily_quota_devices)&&void 0!==w?w:{},exceededDailyQuotaUsers:null!==(x=e.exceeded_daily_quota_users)&&void 0!==x?x:{},throttledEvents:null!==(S=e.throttled_events)&&void 0!==S?S:[]}};case k.Timeout:default:return{status:_,statusCode:E}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?k.Success:429===e?k.RateLimit:413===e?k.PayloadTooLarge:408===e?k.Timeout:e>=400&&e<500?k.Invalid:e>=500?k.Failed:k.Unknown},e}();(c=E||(E={})).US="US",c.EU="EU",c.STAGING="STAGING";var K="Remote config fetch rejected due to timeout after 5 seconds",Y="Unexpected error occurred",J=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,I.mG)(r,void 0,void 0,function(){var r,i,o;return(0,I.Jh)(this,function(s){switch(s.label){case 0:return r=Date.now(),[4,this.fetchWithTimeout(n)];case 1:if((i=s.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,I.mG)(r,void 0,void 0,function(){var t,n,r;return(0,I.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,I.mG)(r,void 0,void 0,function(){var n,r,i,o,s,a,l,u,c,d,f;return(0,I.Jh)(this,function(h){switch(h.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:K})];t!==this.lastFetchedSessionId&&(this.lastFetchedSessionId=t,this.attempts=0),h.label=1;case 1:h.trys.push([1,3,,4]),n=new URLSearchParams({api_key:this.localConfig.apiKey});try{for(i=(r=(0,I.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)),s={headers:{Accept:"*/*"},method:"GET"},a="".concat(this.getServerUrl(),"?").concat(n.toString()),this.attempts+=1,[4,fetch(a,(0,I.pi)((0,I.pi)({},s),{signal:e}))];case 2:if(null===(l=h.sent()))return[2,this.completeRequest({err:Y})];switch(new Z().buildStatus(l.status)){case k.Success:return this.attempts=0,[2,this.parseAndStoreConfig(l)];case k.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=h.sent(),e.aborted)return[2,this.completeRequest({err:K})];return[2,this.completeRequest({err:null!==(f=u.message)&&void 0!==f?f:Y})];case 4:return[2]}})})},this.retryFetch=function(e,t){return(0,I.mG)(r,void 0,void 0,function(){var n=this;return(0,I.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,I.mG)(r,void 0,void 0,function(){var t;return(0,I.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.configServerUrl?this.localConfig.configServerUrl:this.localConfig.serverZone===E.STAGING?"https://sr-client-cfg.stag2.amplitude.com/config":this.localConfig.serverZone===E.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}(),X=function(e){var t=e.localConfig,n=e.configKeys;return(0,I.mG)(void 0,void 0,void 0,function(){return(0,I.Jh)(this,function(e){return[2,new J({localConfig:t,configKeys:n})]})})},Q=n(77918),ee="medium",et=function(e,t,n){switch(t){case"light":if("input"!==e)return!0;var r=n?(0,Q.kv)(n):"";if(!r)return!1;if(["password","hidden","email","tel"].includes(r)||n.autocomplete.startsWith("cc-"))return!0;return!1;case"medium":case"conservative":return!0;default:return et(e,ee,n)}},en=function(e,t,n){var r,i,o;if(void 0===t&&(t={defaultMaskLevel:ee}),n){if(n.closest("."+B)||(null!==(r=t.maskSelector)&&void 0!==r?r:[]).some(function(e){return n.closest(e)}))return!0;if(n.closest(".amp-unmask")||(null!==(i=t.unmaskSelector)&&void 0!==i?i:[]).some(function(e){return n.closest(e)}))return!1}return et(e,null!==(o=t.defaultMaskLevel)&&void 0!==o?o:ee,n)},er=function(e,t){return function(n,r){return en(e,t,r)?n.replace(/[^\s]/g,"*"):n}},ei=function(e){var t=0;if(0===e.length)return t;for(var n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return t},eo=function(){var e=(0,q.l)();return(null==e?void 0:e.location)?e.location.href:""},es=function(e,t){return t||(e===x.STAGING?"https://api-sr.stag2.amplitude.com/sessions/v2/track":e===x.EU?"https://api-sr.eu.amplitude.com/sessions/v2/track":"https://api-sr.amplitude.com/sessions/v2/track")},ea=function(){return(0,I.mG)(void 0,void 0,void 0,function(){var e,t,n,r;return(0,I.Jh)(this,function(i){switch(i.label){case 0:if(i.trys.push([0,3,,4]),!(e=(0,q.l)()))return[3,2];return[4,e.navigator.storage.estimate()];case 1:return n=(t=i.sent()).usage,r=t.quota,[2,{totalStorageSize:n?Math.round(n/1024):0,percentOfQuota:n&&r?Math.round((n/r+Number.EPSILON)*1e3)/1e3:0,usageDetails:JSON.stringify(t.usageDetails)}];case 2:return[3,4];case 3:return i.sent(),[3,4];case 4:return[2,{totalStorageSize:0,percentOfQuota:0,usageDetails:""}]}})})},el=function(e){var t=(0,I.pi)({},e),n=t.apiKey;return t.apiKey="****".concat(n.substring(n.length-4)),t},eu=function(e,t){var n=document.createDocumentFragment(),r=function(e){if(void 0===e&&(e=[]),"string"==typeof e&&(e=[e]),0!==(e=e.filter(function(e){try{n.querySelector(e)}catch(n){return t.warn('[session-replay-browser] omitting selector "'.concat(e,'" because it is invalid')),!1}return!0})).length)return e};return e.blockSelector=r(e.blockSelector),e.maskSelector=r(e.maskSelector),e.unmaskSelector=r(e.unmaskSelector),e},ec=function(){function e(e,t){this.localConfig=t,this.remoteConfigFetch=e}return e.prototype.generateJoinedConfig=function(e){var t,n,r;return(0,I.mG)(this,void 0,void 0,function(){var i,o,s,a,l,u,c,d,f,h,p,m,g,v,y,b,w,x,S,k;return(0,I.Jh)(this,function(E){switch(E.label){case 0:(i=(0,I.pi)({},this.localConfig)).optOut=this.localConfig.optOut,i.captureEnabled=!0,E.label=1;case 1:return E.trys.push([1,6,,7]),[4,this.remoteConfigFetch.getRemoteConfig("sessionReplay","sr_sampling_config",e)];case 2:return s=E.sent(),[4,this.remoteConfigFetch.getRemoteConfig("sessionReplay","sr_privacy_config",e)];case 3:return a=E.sent(),l=i,[4,this.remoteConfigFetch.getRemoteConfig("sessionReplay","sr_interaction_config",e)];case 4:return l.interactionConfig=E.sent(),u=i,[4,this.remoteConfigFetch.getRemoteConfig("sessionReplay","sr_logging_config",e)];case 5:return u.loggingConfig=E.sent(),(s||a)&&(o={},s&&(o.sr_sampling_config=s),a&&(o.sr_privacy_config=a)),[3,7];case 6:return c=E.sent(),this.localConfig.loggerProvider.warn(c.message),i.captureEnabled=!1,[3,7];case 7:if(!o)return[2,i];if(d=o.sr_sampling_config,f=o.sr_privacy_config,d&&Object.keys(d).length>0?(Object.prototype.hasOwnProperty.call(d,"capture_enabled")?i.captureEnabled=d.capture_enabled:i.captureEnabled=!1,Object.prototype.hasOwnProperty.call(d,"sample_rate")&&(i.sampleRate=d.sample_rate)):(i.captureEnabled=!0,this.localConfig.loggerProvider.debug("Remote config successfully fetched, but no values set for project, Session Replay capture enabled.")),f){h=null!==(t=i.privacyConfig)&&void 0!==t?t:{},p={defaultMaskLevel:null!==(r=null!==(n=f.defaultMaskLevel)&&void 0!==n?n:h.defaultMaskLevel)&&void 0!==r?r:"medium",blockSelector:[],maskSelector:[],unmaskSelector:[]},m=function(e){var t,n,r,i,o,s,a,l,u,c={};"string"==typeof e.blockSelector&&(e.blockSelector=[e.blockSelector]);try{for(var d=(0,I.XA)(null!==(a=e.blockSelector)&&void 0!==a?a:[]),f=d.next();!f.done;f=d.next()){var h=f.value;c[h]="block"}}catch(e){t={error:e}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(t)throw t.error}}try{for(var p=(0,I.XA)(null!==(l=e.maskSelector)&&void 0!==l?l:[]),m=p.next();!m.done;m=p.next()){var h=m.value;c[h]="mask"}}catch(e){r={error:e}}finally{try{m&&!m.done&&(i=p.return)&&i.call(p)}finally{if(r)throw r.error}}try{for(var g=(0,I.XA)(null!==(u=e.unmaskSelector)&&void 0!==u?u:[]),v=g.next();!v.done;v=g.next()){var h=v.value;c[h]="unmask"}}catch(e){o={error:e}}finally{try{v&&!v.done&&(s=g.return)&&s.call(g)}finally{if(o)throw o.error}}return c},g=(0,I.pi)((0,I.pi)({},m(h)),m(f));try{for(y=(v=(0,I.XA)(Object.entries(g))).next();!y.done;y=v.next())w=(b=(0,I.CR)(y.value,2))[0],x=b[1],"mask"===x?p.maskSelector.push(w):"block"===x?p.blockSelector.push(w):"unmask"===x&&p.unmaskSelector.push(w)}catch(e){S={error:e}}finally{try{y&&!y.done&&(k=v.return)&&k.call(v)}finally{if(S)throw S.error}}i.privacyConfig=eu(p,this.localConfig.loggerProvider)}return this.localConfig.loggerProvider.debug(JSON.stringify({name:"session replay joined config",config:el(i)},null,2)),[2,i]}})})},e}(),ed=n(35077),ef=n(98018),eh="Failed to store session replay events in IndexedDB",ep="1.22.5",em=function(){function e(e){var t=e.trackServerUrl,n=e.loggerProvider,r=e.payloadBatcher;this.storageKey="",this.retryTimeout=1e3,this.scheduled=null,this.queue=[],this.loggerProvider=n,this.payloadBatcher=r||function(e){return e},this.trackServerUrl=t}return e.prototype.sendEventsList=function(e){this.addToQueue((0,I.pi)((0,I.pi)({},e),{attempts:0,timeout:0}))},e.prototype.addToQueue=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];t.filter(function(t){return t.attempts<(t.flushMaxRetries||0)?(t.attempts+=1,!0):(e.completeRequest({context:t,err:"Session replay event batch rejected due to exceeded retry count"}),!1)}).forEach(function(t){if(e.queue=e.queue.concat(t),0===t.timeout){e.schedule(0);return}setTimeout(function(){t.timeout=0,e.schedule(0)},t.timeout)})},e.prototype.schedule=function(e){var t=this;this.scheduled||(this.scheduled=setTimeout(function(){t.flush(!0).then(function(){t.queue.length>0&&t.schedule(e)})},e))},e.prototype.flush=function(e){return void 0===e&&(e=!1),(0,I.mG)(this,void 0,void 0,function(){var t,n,r=this;return(0,I.Jh)(this,function(i){switch(i.label){case 0:return t=[],n=[],this.queue.forEach(function(e){return 0===e.timeout?t.push(e):n.push(e)}),this.queue=n,this.scheduled&&(clearTimeout(this.scheduled),this.scheduled=null),[4,Promise.all(t.map(function(t){return r.send(t,e)}))];case 1:return i.sent(),[2]}})})},e.prototype.send=function(e,t){var n,r;return void 0===t&&(t=!0),(0,I.mG)(this,void 0,void 0,function(){var i,o,s,a,l,u,c,d,f,h,p,m;return(0,I.Jh)(this,function(g){switch(g.label){case 0:if(!(i=e.apiKey))return[2,this.completeRequest({context:e,err:"Session replay event batch not sent due to missing api key"})];if(!(o=e.deviceId))return[2,this.completeRequest({context:e,err:"Session replay event batch not sent due to missing device ID"})];if(s=eo(),a=ep,l=e.sampleRate,u=new URLSearchParams({device_id:o,session_id:"".concat(e.sessionId),type:"".concat(e.type)}),c="".concat((null===(n=e.version)||void 0===n?void 0:n.type)||"standalone","/").concat((null===(r=e.version)||void 0===r?void 0:r.version)||a),0===(d=this.payloadBatcher({version:1,events:e.events})).events.length)return this.completeRequest({context:e}),[2];g.label=1;case 1:return g.trys.push([1,3,,4]),f={headers:{"Content-Type":"application/json",Accept:"*/*",Authorization:"Bearer ".concat(i),"X-Client-Version":a,"X-Client-Library":c,"X-Client-Url":s.substring(0,1e3),"X-Client-Sample-Rate":"".concat(l)},body:JSON.stringify(d),method:"POST"},[4,fetch("".concat(es(e.serverZone,this.trackServerUrl),"?").concat(u.toString()),f)];case 2:if(null===(h=g.sent()))return this.completeRequest({context:e,err:"Unexpected error occurred"}),[2];if(t)this.handleReponse(h.status,e);else{p="";try{p=JSON.stringify(h.body,null,2)}catch(e){}this.completeRequest({context:e,success:"".concat(h.status,": ").concat(p)})}return[3,4];case 3:return m=g.sent(),this.completeRequest({context:e,err:m}),[3,4];case 4:return[2]}})})},e.prototype.handleReponse=function(e,t){switch(new ed.d().buildStatus(e)){case ef.q.Success:this.handleSuccessResponse(t);break;case ef.q.Failed:this.handleOtherResponse(t);break;default:this.completeRequest({context:t,err:"Network error occurred, event batch rejected"})}},e.prototype.handleSuccessResponse=function(e){var t=Math.round(new Blob(e.events).size/1024);this.completeRequest({context:e,success:"Session replay event batch tracked successfully for session id ".concat(e.sessionId,", size of events: ").concat(t," KB")})},e.prototype.handleOtherResponse=function(e){this.addToQueue((0,I.pi)((0,I.pi)({},e),{timeout:e.attempts*this.retryTimeout}))},e.prototype.completeRequest=function(e){var t=e.context,n=e.err,r=e.success;t.onComplete(),n?this.loggerProvider.warn(n):r&&this.loggerProvider.log(r)},e}();let eg=(e,t)=>t.some(t=>e instanceof t),ev=new WeakMap,ey=new WeakMap,eb=new WeakMap,ew={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return ev.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return ex(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function ex(e){var t;if(e instanceof IDBRequest)return function(e){let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(ex(e.result)),r()},o=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",o)});return eb.set(t,e),t}(e);if(ey.has(e))return ey.get(e);let n="function"==typeof(t=e)?(i||(i=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(eS(this),e),ex(this.request)}:function(...e){return ex(t.apply(eS(this),e))}:(t instanceof IDBTransaction&&function(e){if(ev.has(e))return;let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),r()},o=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)});ev.set(e,t)}(t),eg(t,r||(r=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(t,ew):t;return n!==e&&(ey.set(e,n),eb.set(n,e)),n}let eS=e=>eb.get(e),ek=["get","getKey","getAll","getAllKeys","count"],eE=["put","add","delete","clear"],e_=new Map;function eC(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(e_.get(t))return e_.get(t);let n=t.replace(/FromIndex$/,""),r=t!==n,i=eE.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||ek.includes(n)))return;let o=async function(e,...t){let o=this.transaction(e,i?"readwrite":"readonly"),s=o.store;return r&&(s=s.index(t.shift())),(await Promise.all([s[n](...t),i&&o.done]))[0]};return e_.set(t,o),o}ew={...o=ew,get:(e,t,n)=>eC(e,t)||o.get(e,t,n),has:(e,t)=>!!eC(e,t)||o.has(e,t)};let eO=["continue","continuePrimaryKey","advance"],eT={},eI=new WeakMap,eP=new WeakMap,eA={get(e,t){if(!eO.includes(t))return e[t];let n=eT[t];return n||(n=eT[t]=function(...e){eI.set(this,eP.get(this)[t](...e))}),n}};async function*eR(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;let n=new Proxy(t,eA);for(eP.set(n,t),eb.set(n,eS(t));t;)yield n,t=await (eI.get(n)||t.continue()),eI.delete(n)}function eM(e,t){return t===Symbol.asyncIterator&&eg(e,[IDBIndex,IDBObjectStore,IDBCursor])||"iterate"===t&&eg(e,[IDBIndex,IDBObjectStore])}ew={...s=ew,get:(e,t,n)=>eM(e,t)?eR:s.get(e,t,n),has:(e,t)=>eM(e,t)||s.has(e,t)};var ej=function(){function e(e){var t,n,r,i=this;this.minInterval=500,this.maxInterval=1e4,this.maxPersistedEventsSize=1e6,this.interval=this.minInterval,this._timeAtLastSplit=Date.now(),this.shouldSplitEventsList=function(e,t){var n=new Blob([t]).size;return new Blob(e).size+n>=i.maxPersistedEventsSize||Date.now()-i.timeAtLastSplit>i.interval&&!!e.length&&(i.interval=Math.min(i.maxInterval,i.interval+i.minInterval),i._timeAtLastSplit=Date.now(),!0)},this.loggerProvider=e.loggerProvider,this.minInterval=null!==(t=e.minInterval)&&void 0!==t?t:this.minInterval,this.maxInterval=null!==(n=e.maxInterval)&&void 0!==n?n:this.maxInterval,this.maxPersistedEventsSize=null!==(r=e.maxPersistedEventsSize)&&void 0!==r?r:this.maxPersistedEventsSize}return Object.defineProperty(e.prototype,"timeAtLastSplit",{get:function(){return this._timeAtLastSplit},enumerable:!1,configurable:!0}),e}();(d=_||(_={})).RECORDING="recording",d.SENT="sent";var eN="sessionCurrentSequence",eD="sequencesToSend",eL=function(){var e=(0,q.l)();return new Promise(function(t,n){if(!e)return n(Error("Global scope not found"));if(!e.indexedDB)return n(Error("Session Replay: cannot find indexedDB"));try{var r=e.indexedDB.open("keyval-store");r.onupgradeneeded=function(){1===r.result.version&&(r.result.close(),r.transaction&&r.transaction.abort(),e.indexedDB.deleteDatabase("keyval-store"),t())},r.onsuccess=function(){t(r.result)}}catch(e){n(e)}})},ez=function(e){return(0,I.mG)(void 0,void 0,void 0,function(){return(0,I.Jh)(this,function(t){switch(t.label){case 0:if(!(e.length>0))return[3,2];return[4,Promise.all(e.splice(0,10))];case 1:return t.sent(),[3,0];case 2:return[2]}})})},eF=function(e){var t,n;return e.objectStoreNames.contains(eN)||(n=e.createObjectStore(eN,{keyPath:"sessionId"})),e.objectStoreNames.contains(eD)||(t=e.createObjectStore(eD,{keyPath:"sequenceId",autoIncrement:!0})).createIndex("sessionId","sessionId"),{sequencesStore:t,currentSequenceStore:n}},eB=function(e){function t(t){var n=e.call(this,t)||this;return n.getSequencesToSend=function(){return(0,I.mG)(n,void 0,void 0,function(){var e,t,n,r,i,o;return(0,I.Jh)(this,function(s){switch(s.label){case 0:return s.trys.push([0,5,,6]),e=[],[4,this.db.transaction("sequencesToSend").store.openCursor()];case 1:t=s.sent(),s.label=2;case 2:if(!t)return[3,4];return r=(n=t.value).sessionId,i=n.events,e.push({events:i,sequenceId:t.key,sessionId:r}),[4,t.continue()];case 3:return t=s.sent(),[3,2];case 4:return[2,e];case 5:return o=s.sent(),this.loggerProvider.warn("".concat(eh,": ").concat(o)),[3,6];case 6:return[2,void 0]}})})},n.storeCurrentSequence=function(e){return(0,I.mG)(n,void 0,void 0,function(){var t,n,r;return(0,I.Jh)(this,function(i){switch(i.label){case 0:return i.trys.push([0,4,,5]),[4,this.db.get(eN,e)];case 1:if(!(t=i.sent()))return[2,void 0];return[4,this.db.put(eD,{sessionId:e,events:t.events})];case 2:return n=i.sent(),[4,this.db.put(eN,{sessionId:e,events:[]})];case 3:return i.sent(),[2,(0,I.pi)((0,I.pi)({},t),{sessionId:e,sequenceId:n})];case 4:return r=i.sent(),this.loggerProvider.warn("".concat(eh,": ").concat(r)),[3,5];case 5:return[2,void 0]}})})},n.addEventToCurrentSequence=function(e,t){return(0,I.mG)(n,void 0,void 0,function(){var n,r,i,o,s,a;return(0,I.Jh)(this,function(l){switch(l.label){case 0:return l.trys.push([0,10,,11]),[4,(n=this.db.transaction(eN,"readwrite")).store.get(e)];case 1:if(r=l.sent())return[3,3];return[4,n.store.put({sessionId:e,events:[t]})];case 2:return l.sent(),[2];case 3:if(i=void 0,!this.shouldSplitEventsList(r.events,t))return[3,5];return i=r.events,[4,n.store.put({sessionId:e,events:[t]})];case 4:return l.sent(),[3,7];case 5:return o=r.events.concat(t),[4,n.store.put({sessionId:e,events:o})];case 6:l.sent(),l.label=7;case 7:return[4,n.done];case 8:if(l.sent(),!i)return[2,void 0];return[4,this.storeSendingEvents(e,i)];case 9:if(!(s=l.sent()))return[2,void 0];return[2,{events:i,sessionId:e,sequenceId:s}];case 10:return a=l.sent(),this.loggerProvider.warn("".concat(eh,": ").concat(a)),[3,11];case 11:return[2,void 0]}})})},n.storeSendingEvents=function(e,t){return(0,I.mG)(n,void 0,void 0,function(){var n;return(0,I.Jh)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.db.put(eD,{sessionId:e,events:t})];case 1:return[2,r.sent()];case 2:return n=r.sent(),this.loggerProvider.warn("".concat(eh,": ").concat(n)),[3,3];case 3:return[2,void 0]}})})},n.cleanUpSessionEventsStore=function(e,t){return(0,I.mG)(n,void 0,void 0,function(){var e;return(0,I.Jh)(this,function(n){switch(n.label){case 0:if(!t)return[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.db.delete(eD,t)];case 2:return n.sent(),[3,4];case 3:return e=n.sent(),this.loggerProvider.warn("".concat(eh,": ").concat(e)),[3,4];case 4:return[2]}})})},n.transitionFromKeyValStore=function(e){return(0,I.mG)(n,void 0,void 0,function(){var t,n,r,i,o,s,a,l=this;return(0,I.Jh)(this,function(u){switch(u.label){case 0:return u.trys.push([0,6,,7]),[4,eL()];case 1:if(!(t=u.sent()))return[2];n=function(e,t){return(0,I.mG)(l,void 0,void 0,function(){var n,r,i=this;return(0,I.Jh)(this,function(o){switch(o.label){case 0:return n=t.sessionSequences,r=[],Object.keys(n).forEach(function(o){var s=parseInt(o,10),a=n[s];if(s===t.currentSequenceId){var l=a.events.map(function(t){return(0,I.mG)(i,void 0,void 0,function(){return(0,I.Jh)(this,function(n){return[2,this.addEventToCurrentSequence(e,t)]})})});r.concat(l)}else a.status!==_.SENT&&r.push(i.storeSendingEvents(e,a.events))}),[4,ez(r)];case 1:return o.sent(),[2]}})})},r="".concat(N.f1,"_").concat(this.apiKey.substring(0,10)),u.label=2;case 2:return u.trys.push([2,4,,5]),i=t.transaction("keyval").objectStore("keyval").getAll(r),[4,new Promise(function(t){i.onsuccess=function(r){return(0,I.mG)(l,void 0,void 0,function(){var i,o,s,a=this;return(0,I.Jh)(this,function(l){switch(l.label){case 0:if(!(o=(i=r&&r.target.result)&&i[0]))return[3,2];return s=[],Object.keys(o).forEach(function(t){var r=parseInt(t,10),i=o[r];if(e===r)s.push(n(r,i));else{var l=i.sessionSequences;Object.keys(l).forEach(function(e){var t=parseInt(e,10);l[t].status!==_.SENT&&s.push(a.storeSendingEvents(r,l[t].events))})}}),[4,ez(s)];case 1:l.sent(),l.label=2;case 2:return t(),[2]}})})}})];case 3:return u.sent(),(o=(0,q.l)())&&o.indexedDB.deleteDatabase("keyval-store"),[3,5];case 4:return s=u.sent(),this.loggerProvider.warn("Failed to transition session replay events from keyval to new store: ".concat(s)),[3,5];case 5:return[3,7];case 6:return a=u.sent(),this.loggerProvider.warn("Failed to access keyval store: ".concat(a,". For more information, visit: https://www.docs.developers.amplitude.com/session-replay/sdks/standalone/#indexeddb-best-practices")),[3,7];case 7:return[2]}})})},n.apiKey=t.apiKey,n.db=t.db,n}return(0,I.ZT)(t,e),t.new=function(e,n,r){return(0,I.mG)(this,void 0,void 0,function(){var i,o,s,a;return(0,I.Jh)(this,function(l){switch(l.label){case 0:var u;return l.trys.push([0,3,,4]),i="replay"===e?"":"_".concat(e),[4,(u="".concat(n.apiKey.substring(0,10),"_amp_session_replay_events").concat(i),(0,I.mG)(void 0,void 0,void 0,function(){return(0,I.Jh)(this,function(e){switch(e.label){case 0:return[4,function(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){let s=indexedDB.open(e,1),a=ex(s);return r&&s.addEventListener("upgradeneeded",e=>{r(ex(s.result),e.oldVersion,e.newVersion,ex(s.transaction),e)}),n&&s.addEventListener("blocked",e=>n(e.oldVersion,e.newVersion,e)),a.then(e=>{o&&e.addEventListener("close",()=>o()),i&&e.addEventListener("versionchange",e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),a}(u,0,{upgrade:eF})];case 1:return[2,e.sent()]}})}))];case 1:return o=l.sent(),[4,(s=new t((0,I.pi)((0,I.pi)({},n),{db:o}))).transitionFromKeyValStore(r)];case 2:return l.sent(),[2,s];case 3:return a=l.sent(),n.loggerProvider.warn("".concat(eh,": ").concat(a)),[3,4];case 4:return[2]}})})},t.prototype.getCurrentSequenceEvents=function(e){return(0,I.mG)(this,void 0,void 0,function(){var t,n,r,i,o,s;return(0,I.Jh)(this,function(a){switch(a.label){case 0:if(!e)return[3,2];return[4,this.db.get("sessionCurrentSequence",e)];case 1:if(!(t=a.sent()))return[2,void 0];return[2,[t]];case 2:n=[],a.label=3;case 3:return a.trys.push([3,8,9,10]),[4,this.db.getAll("sessionCurrentSequence")];case 4:i=(r=I.XA.apply(void 0,[a.sent()])).next(),a.label=5;case 5:if(i.done)return[3,7];t=i.value,n.push(t),a.label=6;case 6:return i=r.next(),[3,5];case 7:return[3,10];case 8:return o={error:a.sent()},[3,10];case 9:try{i&&!i.done&&(s=r.return)&&s.call(r)}finally{if(o)throw o.error}return[7];case 10:return[2,n]}})})},t}(ej),e$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.finalizedSequences={},t.sequences={},t.sequenceId=0,t}return(0,I.ZT)(t,e),t.prototype.resetCurrentSequence=function(e){this.sequences[e]=[]},t.prototype.addSequence=function(e){var t=this.sequenceId++,n=(0,I.ev)([],(0,I.CR)(this.sequences[e]),!1);return this.finalizedSequences[t]={sessionId:e,events:n},this.resetCurrentSequence(e),{sequenceId:t,events:n,sessionId:e}},t.prototype.getSequencesToSend=function(){return(0,I.mG)(this,void 0,void 0,function(){return(0,I.Jh)(this,function(e){return[2,Object.entries(this.finalizedSequences).map(function(e){var t=(0,I.CR)(e,2),n=t[0],r=t[1],i=r.sessionId,o=r.events;return{sequenceId:Number(n),sessionId:i,events:o}})]})})},t.prototype.storeCurrentSequence=function(e){return(0,I.mG)(this,void 0,void 0,function(){return(0,I.Jh)(this,function(t){return this.sequences[e]?[2,this.addSequence(e)]:[2,void 0]})})},t.prototype.addEventToCurrentSequence=function(e,t){return(0,I.mG)(this,void 0,void 0,function(){var n;return(0,I.Jh)(this,function(r){return this.sequences[e]||this.resetCurrentSequence(e),this.shouldSplitEventsList(this.sequences[e],t)&&(n=this.addSequence(e)),this.sequences[e].push(t),[2,n]})})},t.prototype.storeSendingEvents=function(e,t){return(0,I.mG)(this,void 0,void 0,function(){return(0,I.Jh)(this,function(n){return this.finalizedSequences[this.sequenceId]={sessionId:e,events:t},[2,this.sequenceId++]})})},t.prototype.cleanUpSessionEventsStore=function(e,t){return(0,I.mG)(this,void 0,void 0,function(){return(0,I.Jh)(this,function(e){return void 0!==t&&delete this.finalizedSequences[t],[2]})})},t}(ej),eU=function(e){var t=e.config,n=e.sessionId,r=e.minInterval,i=e.maxInterval,o=e.type,s=e.payloadBatcher,a=e.storeType;return(0,I.mG)(void 0,void 0,void 0,function(){var e,l,u,c,d,f;function h(t){return void 0===t&&(t=!1),(0,I.mG)(this,void 0,void 0,function(){return(0,I.Jh)(this,function(n){return[2,e.flush(t)]})})}return(0,I.Jh)(this,function(p){switch(p.label){case 0:if(e=new em((0,I.pi)((0,I.pi)({},t),{loggerProvider:t.loggerProvider,payloadBatcher:s})),l=function(){return new e$({loggerProvider:t.loggerProvider,maxInterval:i,minInterval:r})},u=function(){return(0,I.mG)(void 0,void 0,void 0,function(){var e;return(0,I.Jh)(this,function(s){switch(s.label){case 0:return[4,eB.new(o,{loggerProvider:t.loggerProvider,minInterval:r,maxInterval:i,apiKey:t.apiKey},n)];case 1:return e=s.sent(),t.loggerProvider.log("Failed to initialize idb store, falling back to memory store."),[2,null!=e?e:l()]}})})},"idb"!==a)return[3,2];return[4,u()];case 1:return d=p.sent(),[3,3];case 2:d=l(),p.label=3;case 3:return c=d,f=function(n){var r=n.events,i=n.sessionId,s=n.deviceId,a=n.sequenceId;t.debugMode&&ea().then(function(e){var n=e.totalStorageSize,r=e.percentOfQuota,i=e.usageDetails;t.loggerProvider.debug("Total storage size: ".concat(n," KB, percentage of quota: ").concat(r,"%, usage details: ").concat(i))}).catch(function(){}),e.sendEventsList({events:r,sessionId:i,flushMaxRetries:t.flushMaxRetries,apiKey:t.apiKey,deviceId:s,sampleRate:t.sampleRate,serverZone:t.serverZone,version:t.version,type:o,onComplete:function(){return(0,I.mG)(void 0,void 0,void 0,function(){return(0,I.Jh)(this,function(e){switch(e.label){case 0:return[4,c.cleanUpSessionEventsStore(i,a)];case 1:return e.sent(),[2]}})})}})},[2,{sendCurrentSequenceEvents:function(e){var n=e.sessionId,r=e.deviceId;c.storeCurrentSequence(n).then(function(e){e&&f({sequenceId:e.sequenceId,events:e.events,sessionId:e.sessionId,deviceId:r})}).catch(function(e){t.loggerProvider.warn("Failed to get current sequence of session replay events for session:",e)})},addEvent:function(e){var n=e.event,r=e.sessionId,i=e.deviceId;c.addEventToCurrentSequence(r,n.data).then(function(e){return e&&f({sequenceId:e.sequenceId,events:e.events,sessionId:e.sessionId,deviceId:i})}).catch(function(e){t.loggerProvider.warn("Failed to add event to session replay capture:",e)})},sendStoredEvents:function(e){var t=e.deviceId;return(0,I.mG)(void 0,void 0,void 0,function(){var e;return(0,I.Jh)(this,function(n){switch(n.label){case 0:return[4,c.getSequencesToSend()];case 1:return(e=n.sent())&&e.forEach(function(e){f({sequenceId:e.sequenceId,events:e.events,sessionId:e.sessionId,deviceId:t})}),[2]}})})},flush:h}]}})})},eV=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=new Map;e.forEach(function(e){n.set(e.name,e.manager)}),this.managers=n}return e.prototype.sendStoredEvents=function(e){return(0,I.mG)(this,void 0,void 0,function(){var t;return(0,I.Jh)(this,function(n){switch(n.label){case 0:return t=[],this.managers.forEach(function(n){t.push(n.sendStoredEvents(e))}),[4,Promise.all(t)];case 1:return n.sent(),[2]}})})},e.prototype.addEvent=function(e){var t,n=e.sessionId,r=e.event,i=e.deviceId;null===(t=this.managers.get(r.type))||void 0===t||t.addEvent({sessionId:n,event:r,deviceId:i})},e.prototype.sendCurrentSequenceEvents=function(e){var t=e.sessionId,n=e.deviceId;this.managers.forEach(function(e){e.sendCurrentSequenceEvents({sessionId:t,deviceId:n})})},e.prototype.flush=function(e){return(0,I.mG)(this,void 0,void 0,function(){var t;return(0,I.Jh)(this,function(n){switch(n.label){case 0:return t=[],this.managers.forEach(function(n){t.push(n.flush(e))}),[4,Promise.all(t)];case 1:return n.sent(),[2]}})})},e}(),eq=((f=eq||{})[f.DomContentLoaded=0]="DomContentLoaded",f[f.Load=1]="Load",f[f.FullSnapshot=2]="FullSnapshot",f[f.IncrementalSnapshot=3]="IncrementalSnapshot",f[f.Meta=4]="Meta",f[f.Custom=5]="Custom",f[f.Plugin=6]="Plugin",f),eW=((h=eW||{})[h.Mutation=0]="Mutation",h[h.MouseMove=1]="MouseMove",h[h.MouseInteraction=2]="MouseInteraction",h[h.Scroll=3]="Scroll",h[h.ViewportResize=4]="ViewportResize",h[h.Input=5]="Input",h[h.TouchMove=6]="TouchMove",h[h.MediaInteraction=7]="MediaInteraction",h[h.StyleSheetRule=8]="StyleSheetRule",h[h.CanvasMutation=9]="CanvasMutation",h[h.Font=10]="Font",h[h.Log=11]="Log",h[h.Drag=12]="Drag",h[h.StyleDeclaration=13]="StyleDeclaration",h[h.Selection=14]="Selection",h[h.AdoptedStyleSheet=15]="AdoptedStyleSheet",h[h.CustomElement=16]="CustomElement",h),eH=((p=eH||{})[p.MouseUp=0]="MouseUp",p[p.MouseDown=1]="MouseDown",p[p.Click=2]="Click",p[p.ContextMenu=3]="ContextMenu",p[p.DblClick=4]="DblClick",p[p.Focus=5]="Focus",p[p.Blur=6]="Blur",p[p.TouchStart=7]="TouchStart",p[p.TouchMove_Departed=8]="TouchMove_Departed",p[p.TouchEnd=9]="TouchEnd",p[p.TouchCancel=10]="TouchCancel",p),eG=((m=eG||{})[m.Mouse=0]="Mouse",m[m.Pen=1]="Pen",m[m.Touch=2]="Touch",m),eZ=((g=eZ||{})[g["2D"]=0]="2D",g[g.WebGL=1]="WebGL",g[g.WebGL2=2]="WebGL2",g),eK=((v=eK||{})[v.Play=0]="Play",v[v.Pause=1]="Pause",v[v.Seeked=2]="Seeked",v[v.VolumeChange=3]="VolumeChange",v[v.RateChange=4]="RateChange",v),eY=((y=eY||{}).Start="start",y.Pause="pause",y.Resume="resume",y.Resize="resize",y.Finish="finish",y.FullsnapshotRebuilded="fullsnapshot-rebuilded",y.LoadStylesheetStart="load-stylesheet-start",y.LoadStylesheetEnd="load-stylesheet-end",y.SkipStart="skip-start",y.SkipEnd="skip-end",y.MouseInteraction="mouse-interaction",y.EventCast="event-cast",y.CustomEvent="custom-event",y.Flush="flush",y.StateChange="state-change",y.PlayBack="play-back",y.Destroy="destroy",y),eJ=((b=eJ||{})[b.Document=0]="Document",b[b.DocumentType=1]="DocumentType",b[b.Element=2]="Element",b[b.Text=3]="Text",b[b.CDATA=4]="CDATA",b[b.Comment=5]="Comment",b);function eX(e,t,n){for(var r=null,i=[],o=e,s=0;o&&"break"!==function(){var e,a,l,u,c=new Date().getTime()-T.getTime();if(void 0!==C.timeoutMs&&c>C.timeoutMs)throw Error("Timeout: Can't find a unique selector after ".concat(c,"ms"));var d=e6((e=o.getAttribute("id"))&&C.idName(e)?{name:"#"+CSS.escape(e),penalty:0}:null)||e6.apply(void 0,(0,I.ev)([],(0,I.CR)(Array.from(o.attributes).filter(function(e){return C.attr(e.name,e.value)}).map(function(e){return{name:"[".concat(CSS.escape(e.name),'="').concat(CSS.escape(e.value),'"]'),penalty:.5}})),!1))||e6.apply(void 0,(0,I.ev)([],(0,I.CR)(Array.from(o.classList).filter(C.className).map(function(e){return{name:"."+CSS.escape(e),penalty:1}})),!1))||e6((a=o.tagName.toLowerCase(),C.tagName(a)?{name:a,penalty:2}:null))||[e3()],f=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)f&&(d=d.concat(d.filter(e4).map(function(e){return e5(e,f)})));else if("two"==t)d=d.slice(0,1),f&&(d=d.concat(d.filter(e4).map(function(e){return e5(e,f)})));else if("one"==t){var h=(0,I.CR)(d=d.slice(0,1),1)[0];f&&e4(h)&&(d=[e5(h,f)])}else"none"==t&&(d=[e3()],f&&(d=[e5(d[0],f)]));try{for(var p=(l=void 0,(0,I.XA)(d)),m=p.next();!m.done;m=p.next()){var h=m.value;h.level=s}}catch(e){l={error:e}}finally{try{m&&!m.done&&(u=p.return)&&u.call(p)}finally{if(l)throw l.error}}if(i.push(d),i.length>=C.seedMinLength&&(r=eQ(i,n)))return"break";o=o.parentElement,s++}(););return(r||(r=eQ(i,n)),!r&&n)?n():r}function eQ(e,t){var n,r,i=e8(function e(t,n){var r,i,o,s,a;return void 0===n&&(n=[]),(0,I.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,I.XA)(t[0])).next(),l.label=2;case 2:if(i.done)return[3,5];return o=i.value,[5,(0,I.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 s={error:l.sent()},[3,8];case 7:try{i&&!i.done&&(a=r.return)&&a.call(r)}finally{if(s)throw s.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));if(i.length>C.threshold)return t?t():null;try{for(var o=(0,I.XA)(i),s=o.next();!s.done;s=o.next()){var a=s.value;if(e2(a))return a}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}function e0(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 e1(e){return e.map(function(e){return e.penalty}).reduce(function(e,t){return e+t},0)}function e2(e){var t=e0(e);switch(O.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 e3(){return{name:"*",penalty:3}}function e5(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function e4(e){return"html"!==e.name&&!e.name.startsWith("#")}function e6(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter(e9);return n.length>0?n:null}function e9(e){return null!=e}function e8(e){return(0,I.ev)([],(0,I.CR)(e),!1).sort(function(e,t){return e1(e)-e1(t)})}var e7=function(e){var t=e.version,n=e.events,r=[];return n.forEach(function(e){var t=JSON.parse(e);t.count=1,"click"===t.type&&r.push(t)}),{version:t,events:r}},te=function(e){var t=e.version,n=e.events,r=[];return n.forEach(function(e){var t=JSON.parse(e);"click"===t.type&&r.push(t)}),{version:t,events:Object.values(r.reduce(function(e,t){var n=t.x,r=t.y,i=t.selector,o=t.timestamp,s=o-o%36e5,a="".concat(n,":").concat(r,":").concat(null!=i?i:"",":").concat(s);return e[a]?e[a].count+=1:e[a]=(0,I.pi)((0,I.pi)({},t),{timestamp:s,count:1}),e},{}))}},tt=function(e,t){var n=t.eventsManager,r=t.sessionId,i=t.deviceIdFn;return function(t){if(t.type===eH.Click){var o,s=(0,q.l)();if(s){var a=s.location,l=s.innerHeight,u=s.innerWidth;if(a){var c=t.x,d=t.y;if(void 0!==c&&void 0!==d){var f=G.IM.mirror.getNode(t.id);if(f)try{o=function(e,t){if(T=new Date,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,timeoutMs:void 0};O=(n=(C=(0,I.pi)((0,I.pi)({},r),void 0)).root).nodeType===Node.DOCUMENT_NODE?n:n===r.root?n.ownerDocument:n;var i=eX(e,"all",function(){return eX(e,"two",function(){return eX(e,"one",function(){return eX(e,"none")})})});if(i){var o=e8(function e(t,n,r){var i,o,s;return void 0===r&&(r={counter:0,visited:new Map}),(0,I.Jh)(this,function(a){switch(a.label){case 0:if(!(t.length>2&&t.length>C.optimizedMinLength))return[3,5];i=1,a.label=1;case 1:var l;if(!(i<t.length-1))return[3,5];if(r.counter>C.maxNumberOfTries||(r.counter+=1,(o=(0,I.ev)([],(0,I.CR)(t),!1)).splice(i,1),s=e0(o),r.visited.has(s)))return[2];if(!(e2(o)&&(l=o,O.querySelector(e0(l))===n)))return[3,4];return[4,o];case 2:return a.sent(),r.visited.set(s,!0),[5,(0,I.XA)(e(o,n,r))];case 3:a.sent(),a.label=4;case 4:return i++,[3,1];case 5:return[2]}})}(i,e));return o.length>0&&(i=o[0]),e0(i)}throw Error("Selector was not found.")}(f)}catch(t){e.debug("error resolving selector from finder")}var h=G.P6.getWindowScroll(s),p={x:c+h.left,y:d+h.top,selector:o,viewportHeight:l,viewportWidth:u,pageUrl:a.href,timestamp:Date.now(),type:"click"},m=i();m&&n.addEvent({sessionId:r,event:{type:"interaction",data:JSON.stringify(p)},deviceId:m})}}}}}},tn=function(){function e(e,t){var n=(0,q.l)();n&&n.navigator&&"function"==typeof n.navigator.sendBeacon?this.sendBeacon=function(e,t){try{if(n.navigator.sendBeacon(e,JSON.stringify(t)))return!0}catch(e){}return!1}:this.sendBeacon=function(){return!1},this.sendXhr=function(e,t){var n=new XMLHttpRequest;return n.open("POST",e,!0),n.setRequestHeader("Accept","*/*"),n.send(JSON.stringify(t)),!0},this.basePageUrl=es(t.serverZone,t.trackServerUrl),this.apiKey=t.apiKey,this.context=e}return e.prototype.send=function(e,t){var n=this.context,r=n.sessionId,i=n.type,o=new URLSearchParams({device_id:e,session_id:String(r),type:String(i),api_key:this.apiKey}),s="".concat(this.basePageUrl,"?").concat(o.toString());this.sendBeacon(s,t)||this.sendXhr(s,t)},e}(),tr=G.P6.getWindowHeight,ti=G.P6.getWindowWidth,to=function(){function e(e){var t=this;this.timestamp=Date.now(),this.hook=function(e){t.update(e)},this.send=function(e){return function(n){var r=e(),i=(0,q.l)();i&&r&&t.transport.send(r,{version:1,events:[{maxScrollX:t._maxScrollX,maxScrollY:t._maxScrollY,maxScrollWidth:t._maxScrollWidth,maxScrollHeight:t._maxScrollHeight,viewportHeight:tr(),viewportWidth:ti(),pageUrl:i.location.href,timestamp:t.timestamp,type:"scroll"}]})}},this._maxScrollX=0,this._maxScrollY=0,this._maxScrollWidth=ti(),this._maxScrollHeight=tr(),this.transport=e}return e.default=function(t,n){return new e(new tn(t,n))},Object.defineProperty(e.prototype,"maxScrollX",{get:function(){return this._maxScrollX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollY",{get:function(){return this._maxScrollY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollWidth",{get:function(){return this._maxScrollWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollHeight",{get:function(){return this._maxScrollHeight},enumerable:!1,configurable:!0}),e.prototype.update=function(e){var t=Date.now();if(e.x>this._maxScrollX){var n=ti();this._maxScrollX=e.x;var r=e.x+n;r>this._maxScrollWidth&&(this._maxScrollWidth=r),this.timestamp=t}if(e.y>this._maxScrollY){var i=tr();this._maxScrollY=e.y;var o=e.y+i;o>this._maxScrollHeight&&(this._maxScrollHeight=o),this.timestamp=t}},e}(),ts=function(e){var t=e.sessionId,n=e.deviceId;this.deviceId=n,this.sessionId=t,t&&n&&(this.sessionReplayId="".concat(n,"/").concat(t))},ta=Uint8Array,tl=Uint16Array,tu=Uint32Array,tc=new ta([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),td=new ta([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),tf=new ta([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),th=function(e,t){for(var n=new tl(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new tu(n[30]),r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return[n,i]},tp=th(tc,2),tm=tp[0],tg=tp[1];tm[28]=258,tg[258]=28;for(var tv=th(td,0),ty=(tv[0],tv[1]),tb=new tl(32768),tw=0;tw<32768;++tw){var tx=(43690&tw)>>>1|(21845&tw)<<1;tx=(61680&(tx=(52428&tx)>>>2|(13107&tx)<<2))>>>4|(3855&tx)<<4,tb[tw]=((65280&tx)>>>8|(255&tx)<<8)>>>1}for(var tS=function(e,t,n){for(var r,i=e.length,o=0,s=new tl(t);o<i;++o)++s[e[o]-1];var a=new tl(t);for(o=0;o<t;++o)a[o]=a[o-1]+s[o-1]<<1;if(n){r=new tl(1<<t);var l=15-t;for(o=0;o<i;++o)if(e[o])for(var u=o<<4|e[o],c=t-e[o],d=a[e[o]-1]++<<c,f=d|(1<<c)-1;d<=f;++d)r[tb[d]>>>l]=u}else for(o=0,r=new tl(i);o<i;++o)r[o]=tb[a[e[o]-1]++]>>>15-e[o];return r},tk=new ta(288),tw=0;tw<144;++tw)tk[tw]=8;for(var tw=144;tw<256;++tw)tk[tw]=9;for(var tw=256;tw<280;++tw)tk[tw]=7;for(var tw=280;tw<288;++tw)tk[tw]=8;for(var tE=new ta(32),tw=0;tw<32;++tw)tE[tw]=5;var t_=tS(tk,9,0),tC=tS(tE,5,0),tO=function(e){return(e/8>>0)+(7&e&&1)},tT=function(e,t,n){(null==n||n>e.length)&&(n=e.length);var r=new(e instanceof tl?tl:e instanceof tu?tu:ta)(n-t);return r.set(e.subarray(t,n)),r},tI=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8},tP=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},tA=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,o=n.slice();if(!i)return[new ta(0),0];if(1==i){var s=new ta(n[0].s+1);return s[n[0].s]=1,[s,1]}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var a=n[0],l=n[1],u=0,c=1,d=2;for(n[0]={s:-1,f:a.f+l.f,l:a,r:l};c!=i-1;)a=n[n[u].f<n[d].f?u++:d++],l=n[u!=c&&n[u].f<n[d].f?u++:d++],n[c++]={s:-1,f:a.f+l.f,l:a,r:l};for(var f=o[0].s,r=1;r<i;++r)o[r].s>f&&(f=o[r].s);var h=new tl(f+1),p=tR(n[c-1],h,0);if(p>t){var r=0,m=0,g=p-t,v=1<<g;for(o.sort(function(e,t){return h[t.s]-h[e.s]||e.f-t.f});r<i;++r){var y=o[r].s;if(h[y]>t)m+=v-(1<<p-h[y]),h[y]=t;else break}for(m>>>=g;m>0;){var b=o[r].s;h[b]<t?m-=1<<t-h[b]++-1:++r}for(;r>=0&&m;--r){var w=o[r].s;h[w]==t&&(--h[w],++m)}p=t}return[new ta(h),p]},tR=function(e,t,n){return -1==e.s?Math.max(tR(e.l,t,n+1),tR(e.r,t,n+1)):t[e.s]=n},tM=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new tl(++t),r=0,i=e[0],o=1,s=function(e){n[r++]=e},a=1;a<=t;++a)if(e[a]==i&&a!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(i),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(i);o=1,i=e[a]}return[n.subarray(0,r),t]},tj=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},tN=function(e,t,n){var r=n.length,i=tO(t+2);e[i]=255&r,e[i+1]=r>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<r;++o)e[i+o+4]=n[o];return(i+4+r)*8},tD=function(e,t,n,r,i,o,s,a,l,u,c){tI(t,c++,n),++i[256];for(var d,f,h,p,m=tA(i,15),g=m[0],v=m[1],y=tA(o,15),b=y[0],w=y[1],x=tM(g),S=x[0],k=x[1],E=tM(b),_=E[0],C=E[1],O=new tl(19),T=0;T<S.length;++T)O[31&S[T]]++;for(var T=0;T<_.length;++T)O[31&_[T]]++;for(var I=tA(O,7),P=I[0],A=I[1],R=19;R>4&&!P[tf[R-1]];--R);var M=u+5<<3,j=tj(i,tk)+tj(o,tE)+s,N=tj(i,g)+tj(o,b)+s+14+3*R+tj(O,P)+(2*O[16]+3*O[17]+7*O[18]);if(M<=j&&M<=N)return tN(t,c,e.subarray(l,l+u));if(tI(t,c,1+(N<j)),c+=2,N<j){d=tS(g,v,0),f=g,h=tS(b,w,0),p=b;var D=tS(P,A,0);tI(t,c,k-257),tI(t,c+5,C-1),tI(t,c+10,R-4),c+=14;for(var T=0;T<R;++T)tI(t,c+3*T,P[tf[T]]);c+=3*R;for(var L=[S,_],z=0;z<2;++z)for(var F=L[z],T=0;T<F.length;++T){var B=31&F[T];tI(t,c,D[B]),c+=P[B],B>15&&(tI(t,c,F[T]>>>5&127),c+=F[T]>>>12)}}else d=t_,f=tk,h=tC,p=tE;for(var T=0;T<a;++T)if(r[T]>255){var B=r[T]>>>18&31;tP(t,c,d[B+257]),c+=f[B+257],B>7&&(tI(t,c,r[T]>>>23&31),c+=tc[B]);var $=31&r[T];tP(t,c,h[$]),c+=p[$],$>3&&(tP(t,c,r[T]>>>5&8191),c+=td[$])}else tP(t,c,d[r[T]]),c+=f[r[T]];return tP(t,c,d[256]),c+f[256]},tL=new tu([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),tz=function(e,t,n,r,i,o){var s=e.length,a=new ta(r+s+5*(1+Math.floor(s/7e3))+i),l=a.subarray(r,a.length-i),u=0;if(!t||s<8)for(var c=0;c<=s;c+=65535){var d=c+65535;d<s?u=tN(l,u,e.subarray(c,d)):(l[c]=o,u=tN(l,u,e.subarray(c,s)))}else{for(var f=tL[t-1],h=f>>>13,p=8191&f,m=(1<<n)-1,g=new tl(32768),v=new tl(m+1),y=Math.ceil(n/3),b=2*y,w=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<b)&m},x=new tu(25e3),S=new tl(288),k=new tl(32),E=0,_=0,c=0,C=0,O=0,T=0;c<s;++c){var I=w(c),P=32767&c,A=v[I];if(g[P]=A,v[I]=P,O<=c){var R=s-c;if((E>7e3||C>24576)&&R>423){u=tD(e,l,0,x,S,k,_,C,T,c-T,u),C=E=_=0,T=c;for(var M=0;M<286;++M)S[M]=0;for(var M=0;M<30;++M)k[M]=0}var j=2,N=0,D=p,L=P-A&32767;if(R>2&&I==w(c-L))for(var z=Math.min(h,R)-1,F=Math.min(32767,c),B=Math.min(258,R);L<=F&&--D&&P!=A;){if(e[c+j]==e[c+j-L]){for(var $=0;$<B&&e[c+$]==e[c+$-L];++$);if($>j){if(j=$,N=L,$>z)break;for(var U=Math.min(L,$-2),V=0,M=0;M<U;++M){var q=c-L+M+32768&32767,W=g[q],H=q-W+32768&32767;H>V&&(V=H,A=q)}}}A=g[P=A],L+=P-A+32768&32767}if(N){x[C++]=268435456|tg[j]<<18|ty[N];var G=31&tg[j],Z=31&ty[N];_+=tc[G]+td[Z],++S[257+G],++k[Z],O=c+j,++E}else x[C++]=e[c],++S[e[c]]}}u=tD(e,l,o,x,S,k,_,C,T,c-T,u)}return tT(a,0,r+tO(u)+i)},tF=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,o=n.length,s=0;s!=o;){for(var a=Math.min(s+5552,o);s<a;++s)r+=n[s],i+=r;r%=65521,i%=65521}e=r,t=i},d:function(){return(e>>>8<<16|(255&t)<<8|t>>>8)+((255&e)<<23)*2}}},tB=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},t$=function(e,t){var n=t.level,r=0==n?0:n<6?1:9==n?3:2;e[0]=120,e[1]=r<<6|(r?32-2*r:1)};let tU=e=>{var t,n,r,i,o;return function(e,t){var n="";if(!t&&"undefined"!=typeof TextDecoder)return new TextDecoder().decode(e);for(var r=0;r<e.length;){var i=e[r++];i<128||t?n+=String.fromCharCode(i):i<224?n+=String.fromCharCode((31&i)<<6|63&e[r++]):i<240?n+=String.fromCharCode((15&i)<<12|(63&e[r++])<<6|63&e[r++]):n+=String.fromCharCode(55296|(i=((15&i)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-65536)>>10,56320|1023&i)}return n}((t=function(e,t){var n=e.length;if("undefined"!=typeof TextEncoder)return new TextEncoder().encode(e);for(var r=new ta(e.length+(e.length>>>1)),i=0,o=function(e){r[i++]=e},s=0;s<n;++s){if(i+5>r.length){var a=new ta(i+8+(n-s<<1));a.set(r),r=a}var l=e.charCodeAt(s);l<128?o(l):(l<2048?o(192|l>>>6):(l>55295&&l<57344?(o(240|(l=65536+(1047552&l)|1023&e.charCodeAt(++s))>>>18),o(128|l>>>12&63)):o(224|l>>>12),o(128|l>>>6&63)),o(128|63&l))}return tT(r,0,i)}(JSON.stringify({...e,v:"v1"})),void 0===n&&(n={}),(r=tF()).p(t),t$(o=tz(t,null==(i=n).level?6:i.level,null==i.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+i.mem,2,4,!0),n),tB(o,o.length-4,r.d()),o),!0)};var tV=function(){function e(e,t,n,r){var i,o,s,a=this;this.taskQueue=[],this.isProcessing=!1,this.compressEvent=function(e){return JSON.stringify(tU(e))},this.addCompressedEventToManager=function(e,t){a.eventsManager&&a.deviceId&&a.eventsManager.addEvent({event:{type:"replay",data:e},sessionId:t,deviceId:a.deviceId})},this.addCompressedEvent=function(e,t){if(a.worker)a.worker.postMessage({event:e,sessionId:t});else{var n=a.compressEvent(e);a.addCompressedEventToManager(n,t)}},this.terminate=function(){var e;null===(e=a.worker)||void 0===e||e.terminate()};var l=(0,q.l)();this.canUseIdleCallback=l&&"requestIdleCallback"in l,this.eventsManager=e,this.config=t,this.deviceId=n,this.timeout=(null===(i=t.performanceConfig)||void 0===i?void 0:i.timeout)||2e3;var u=null!==(o=({}).COMPRESSION_WEBWORKER_BODY)&&void 0!==o?o:r;if((null===(s=this.config.experimental)||void 0===s?void 0:s.useWebWorker)&&l&&l.Worker&&u){t.loggerProvider.log("[Experimental] Enabling web worker for compression");var c=new Worker(URL.createObjectURL(new Blob([u],{type:"application/javascript"})));c.onerror=function(e){t.loggerProvider.error(e)},c.onmessage=function(e){var t=e.data,n=t.compressedEvent,r=t.sessionId;a.addCompressedEventToManager(n,r)},this.worker=c}}return e.prototype.scheduleIdleProcessing=function(){var e=this;this.isProcessing||(this.isProcessing=!0,requestIdleCallback(function(t){e.processQueue(t)},{timeout:this.timeout}))},e.prototype.enqueueEvent=function(e,t){var n;this.canUseIdleCallback&&(null===(n=this.config.performanceConfig)||void 0===n?void 0:n.enabled)?(this.config.loggerProvider.debug("Enqueuing event for processing during idle time."),this.taskQueue.push({event:e,sessionId:t}),this.scheduleIdleProcessing()):(this.config.loggerProvider.debug("Processing event without idle callback."),this.addCompressedEvent(e,t))},e.prototype.processQueue=function(e){for(var t=this;this.taskQueue.length>0&&(e.timeRemaining()>0||e.didTimeout);){var n=this.taskQueue.shift();if(n){var r=n.event,i=n.sessionId;this.addCompressedEvent(r,i)}}this.taskQueue.length>0?requestIdleCallback(function(e){t.processQueue(e)},{timeout:this.timeout}):this.isProcessing=!1},e}(),tq=function(){function e(){this.fetchObserver=null}return e.prototype.start=function(e){this.eventCallback=e,this.observeFetch()},e.prototype.stop=function(){var e;null===(e=this.fetchObserver)||void 0===e||e.call(this),this.fetchObserver=null,this.eventCallback=void 0},e.prototype.notifyEvent=function(e){var t;null===(t=this.eventCallback)||void 0===t||t.call(this,e)},e.prototype.observeFetch=function(){var e=this,t=(0,q.l)();if(t){var n=t.fetch;n&&(t.fetch=function(t,r){return(0,I.mG)(e,void 0,void 0,function(){var e,i,o,s,a,l,u;return(0,I.Jh)(this,function(c){switch(c.label){case 0:i={timestamp:e=Date.now(),type:"fetch",method:(null==r?void 0:r.method)||"GET",url:t.toString(),requestHeaders:null==r?void 0:r.headers},c.label=1;case 1:return c.trys.push([1,3,,4]),[4,n(t,r)];case 2:return o=c.sent(),s=Date.now(),i.status=o.status,i.duration=s-e,a={},o.headers.forEach(function(e,t){a[t]=e}),i.responseHeaders=a,this.notifyEvent(i),[2,o];case 3:throw l=c.sent(),s=Date.now(),i.duration=s-e,u=l,i.error={name:u.name||"UnknownError",message:u.message||"An unknown error occurred"},this.notifyEvent(i),l;case 4:return[2]}})})},this.fetchObserver=function(){t.fetch=n})}},e}(),tW=function(){function e(){var e=this;this.name="@amplitude/session-replay-browser",this.recordCancelCallback=null,this.eventCount=0,this.pageLeaveFns=[],this.teardownEventListeners=function(t){var n=(0,q.l)();n&&(n.removeEventListener("blur",e.blurListener),n.removeEventListener("focus",e.focusListener),t||n.addEventListener("blur",e.blurListener),t||n.addEventListener("focus",e.focusListener),n.self&&"onpagehide"in n.self?(n.removeEventListener("pagehide",e.pageLeaveListener),t||n.addEventListener("pagehide",e.pageLeaveListener)):(n.removeEventListener("beforeunload",e.pageLeaveListener),t||n.addEventListener("beforeunload",e.pageLeaveListener)))},this.blurListener=function(){e.sendEvents()},this.focusListener=function(){e.recordEvents()},this.pageLeaveListener=function(t){e.pageLeaveFns.forEach(function(e){e(t)})},this.addCustomRRWebEvent=function(t,n,r){return void 0===n&&(n={}),void 0===r&&(r=!0),(0,I.mG)(e,void 0,void 0,function(){var e,i,o,s;return(0,I.Jh)(this,function(a){switch(a.label){case 0:if(a.trys.push([0,3,,4]),e=void 0,!(i=this.config)||(e={config:el(i),version:ep},!r))return[3,2];return[4,ea()];case 1:o=a.sent(),e=(0,I.pi)((0,I.pi)({},o),e),a.label=2;case 2:return this.recordCancelCallback?G.IM.addCustomEvent(t,(0,I.pi)((0,I.pi)({},n),e)):this.loggerProvider.debug("Not able to add custom replay capture event ".concat(t," due to no ongoing recording.")),[3,4];case 3:return s=a.sent(),this.loggerProvider.debug("Error while adding custom replay capture event: ",s),[3,4];case 4:return[2]}})})},this.stopRecordingEvents=function(){var t;try{e.loggerProvider.log("Session Replay capture stopping."),e.recordCancelCallback&&e.recordCancelCallback(),e.recordCancelCallback=null,null===(t=e.networkObservers)||void 0===t||t.stop()}catch(t){e.loggerProvider.warn("Error occurred while stopping replay capture: ".concat(t.toString()))}},this.loggerProvider=new $(new R.Y)}return e.prototype.init=function(e,t){return(0,W.S)(this._init(e,t))},e.prototype._init=function(e,t){var n,r,i,o,s,a;return(0,I.mG)(this,void 0,void 0,function(){var l,u,c,d,f,h,p,m,g;return(0,I.Jh)(this,function(v){switch(v.label){case 0:return this.loggerProvider=new $(t.loggerProvider||new R.Y),Object.prototype.hasOwnProperty.call(t,"logLevel")&&this.loggerProvider.enable(t.logLevel),this.identifiers=new ts({sessionId:t.sessionId,deviceId:t.deviceId}),l=this,[4,(0,I.mG)(void 0,void 0,void 0,function(){var n;return(0,I.Jh)(this,function(r){switch(r.label){case 0:return[4,X({localConfig:n=new V(e,t),configKeys:["sessionReplay"]})];case 1:return[2,new ec(r.sent(),n)]}})})];case 1:return l.joinedConfigGenerator=v.sent(),u=this,[4,this.joinedConfigGenerator.generateJoinedConfig(this.identifiers.sessionId)];case 2:u.config=v.sent(),t.sessionId&&(null===(n=this.config.interactionConfig)||void 0===n?void 0:n.enabled)&&(c=to.default({sessionId:t.sessionId,type:"interaction"},this.config),this.pageLeaveFns=[c.send(this.getDeviceId.bind(this)).bind(c)],this.scrollHook=c.hook.bind(c)),d=[],"idb"!==(f=this.config.storeType)||(null===(r=(0,q.l)())||void 0===r?void 0:r.indexedDB)||(f="memory",this.loggerProvider.warn("Could not use preferred indexedDB storage, reverting to in memory option.")),this.loggerProvider.log("Using ".concat(f," for event storage.")),v.label=3;case 3:return v.trys.push([3,5,,6]),[4,eU({config:this.config,sessionId:this.identifiers.sessionId,type:"replay",storeType:f})];case 4:return h=v.sent(),d.push({name:"replay",manager:h}),[3,6];case 5:return p=v.sent(),this.loggerProvider.warn("Error occurred while creating replay events manager: ".concat(p.toString())),[3,6];case 6:if(!(null===(i=this.config.interactionConfig)||void 0===i?void 0:i.enabled))return[3,10];m=this.config.interactionConfig.batch?te:e7,v.label=7;case 7:return v.trys.push([7,9,,10]),[4,eU({config:this.config,sessionId:this.identifiers.sessionId,type:"interaction",minInterval:null!==(o=this.config.interactionConfig.trackEveryNms)&&void 0!==o?o:3e4,maxInterval:6e4,payloadBatcher:m,storeType:f})];case 8:return g=v.sent(),d.push({name:"interaction",manager:g}),[3,10];case 9:return p=v.sent(),this.loggerProvider.warn("Error occurred while creating interaction events manager: ".concat(p.toString())),[3,10];case 10:return this.eventsManager=new(eV.bind.apply(eV,(0,I.ev)([void 0],(0,I.CR)(d),!1))),this.eventCompressor&&this.eventCompressor.terminate(),this.eventCompressor=new tV(this.eventsManager,this.config,this.getDeviceId()),(null===(a=null===(s=this.config.loggingConfig)||void 0===s?void 0:s.network)||void 0===a?void 0:a.enabled)&&(this.networkObservers=new tq),this.loggerProvider.log("Installing @amplitude/session-replay-browser."),this.teardownEventListeners(!1),this.initialize(!0),[2]}})})},e.prototype.setSessionId=function(e,t){return(0,W.S)(this.asyncSetSessionId(e,t))},e.prototype.asyncSetSessionId=function(e,t){return(0,I.mG)(this,void 0,void 0,function(){var n,r,i;return(0,I.Jh)(this,function(o){switch(o.label){case 0:if((n=this.identifiers&&this.identifiers.sessionId)&&this.sendEvents(n),r=t||this.getDeviceId(),this.identifiers=new ts({sessionId:e,deviceId:r}),!(this.joinedConfigGenerator&&n))return[3,2];return i=this,[4,this.joinedConfigGenerator.generateJoinedConfig(this.identifiers.sessionId)];case 1:i.config=o.sent(),o.label=2;case 2:return this.recordEvents(),[2]}})})},e.prototype.getSessionReplayProperties=function(){var e,t=this.config,n=this.identifiers;if(!t||!n)return this.loggerProvider.warn("Session replay init has not been called, cannot get session replay properties."),{};var r=this.getShouldRecord(),i={};return r&&((e={})[L]=n.sessionReplayId?n.sessionReplayId:null,i=e,t.debugMode&&(i[F]=JSON.stringify({appHash:ei(t.apiKey).toString()}))),this.addCustomRRWebEvent(S.GET_SR_PROPS,{shouldRecord:r,eventProperties:i},10===this.eventCount),10===this.eventCount&&(this.eventCount=0),this.eventCount++,i},e.prototype.sendEvents=function(e){var t,n=e||(null===(t=this.identifiers)||void 0===t?void 0:t.sessionId),r=this.getDeviceId();this.eventsManager&&n&&r&&this.eventsManager.sendCurrentSequenceEvents({sessionId:n,deviceId:r})},e.prototype.initialize=function(e){var t;return void 0===e&&(e=!1),(0,I.mG)(this,void 0,void 0,function(){var n;return(0,I.Jh)(this,function(r){return(null===(t=this.identifiers)||void 0===t?void 0:t.sessionId)?(n=this.getDeviceId())?(this.eventsManager&&e&&this.eventsManager.sendStoredEvents({deviceId:n}),[2,this.recordEvents()]):(this.loggerProvider.log("Session is not being recorded due to lack of device id."),[2,Promise.resolve()]):(this.loggerProvider.log("Session is not being recorded due to lack of session id."),[2,Promise.resolve()])})})},e.prototype.shouldOptOut=function(){if(null===(e=this.config)||void 0===e?void 0:e.instanceName){var e,t,n;n=(0,H.bM)(this.config.instanceName).identityStore.getIdentity().optOut}return void 0!==n?n:null===(t=this.config)||void 0===t?void 0:t.optOut},e.prototype.getShouldRecord=function(){if(!this.identifiers||!this.config||!this.identifiers.sessionId)return this.loggerProvider.warn("Session is not being recorded due to lack of config, please call sessionReplay.init."),!1;if(!this.config.captureEnabled)return this.loggerProvider.log("Session ".concat(this.identifiers.sessionId," not being captured due to capture being disabled for project or because the remote config could not be fetched.")),!1;if(this.shouldOptOut())return this.loggerProvider.log("Opting session ".concat(this.identifiers.sessionId," out of recording due to optOut config.")),!1;var e,t,n=(e=this.identifiers.sessionId,t=this.config.sampleRate,31*Math.abs(ei(e.toString()))%1e6/1e6<t);return n||this.loggerProvider.log("Opting session ".concat(this.identifiers.sessionId," out of recording due to sample rate.")),n},e.prototype.getBlockSelectors=function(){var e,t,n,r=null!==(n=null===(t=null===(e=this.config)||void 0===e?void 0:e.privacyConfig)||void 0===t?void 0:t.blockSelector)&&void 0!==n?n:[];if(0!==r.length)return r},e.prototype.getMaskTextSelectors=function(){if((null===(t=null===(e=this.config)||void 0===e?void 0:e.privacyConfig)||void 0===t?void 0:t.defaultMaskLevel)==="conservative")return"*";var e,t,n,r,i=null===(r=null===(n=this.config)||void 0===n?void 0:n.privacyConfig)||void 0===r?void 0:r.maskSelector;if(i)return i},e.prototype.getRecordingPlugins=function(e){var t;return(0,I.mG)(this,void 0,void 0,function(){var r,i,o;return(0,I.Jh)(this,function(s){switch(s.label){case 0:if(r=[],!(null===(t=null==e?void 0:e.console)||void 0===t?void 0:t.enabled))return[3,4];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,n.e(881).then(n.bind(n,96142))];case 2:return i=s.sent().getRecordConsolePlugin,r.push(i({level:e.console.levels})),[3,4];case 3:return o=s.sent(),this.loggerProvider.warn("Failed to load console plugin:",o),[3,4];case 4:return[2,r.length>0?r:void 0]}})})},e.prototype.recordEvents=function(){var e,t;return(0,I.mG)(this,void 0,void 0,function(){var n,r,i,o,s,a,l,u,c,d,f,h=this;return(0,I.Jh)(this,function(p){switch(p.label){case 0:if(n=this.config,r=this.getShouldRecord(),i=null===(e=this.identifiers)||void 0===e?void 0:e.sessionId,!r||!i||!n)return[2];this.stopRecordingEvents(),null===(t=this.networkObservers)||void 0===t||t.start(function(e){h.addCustomRRWebEvent(S.FETCH_REQUEST,e)}),o=n.privacyConfig,s=n.interactionConfig,a=n.loggingConfig,l=(null==s?void 0:s.enabled)?{mouseInteraction:this.eventsManager&&tt(this.loggerProvider,{eventsManager:this.eventsManager,sessionId:i,deviceIdFn:this.getDeviceId.bind(this)}),scroll:this.scrollHook}:{},this.loggerProvider.log("Session Replay capture beginning for ".concat(i,".")),p.label=1;case 1:return p.trys.push([1,3,,4]),u=this,c=G.IM,f={emit:function(e){if(h.shouldOptOut()){h.loggerProvider.log("Opting session ".concat(i," out of recording due to optOut config.")),h.stopRecordingEvents(),h.sendEvents();return}h.eventCompressor&&h.eventCompressor.enqueueEvent(e,i)},inlineStylesheet:n.shouldInlineStylesheet,hooks:l,maskAllInputs:!0,maskTextClass:B,blockClass:"amp-block",blockSelector:this.getBlockSelectors(),maskInputFn:er("input",o),maskTextFn:er("text",o),maskTextSelector:this.getMaskTextSelectors(),recordCanvas:!1,errorHandler:function(e){if(e.message.includes("insertRule")&&e.message.includes("CSSStyleSheet")||e._external_)throw e;return h.loggerProvider.warn("Error while capturing replay: ",e.toString()),!0}},[4,this.getRecordingPlugins(a)];case 2:return u.recordCancelCallback=c.apply(void 0,[(f.plugins=p.sent(),f)]),this.addCustomRRWebEvent(S.DEBUG_INFO),[3,4];case 3:return d=p.sent(),this.loggerProvider.warn("Failed to initialize session replay:",d),[3,4];case 4:return[2]}})})},e.prototype.getDeviceId=function(){var e;return null===(e=this.identifiers)||void 0===e?void 0:e.deviceId},e.prototype.getSessionId=function(){var e;return null===(e=this.identifiers)||void 0===e?void 0:e.sessionId},e.prototype.flush=function(e){var t;return void 0===e&&(e=!1),(0,I.mG)(this,void 0,void 0,function(){return(0,I.Jh)(this,function(n){return[2,null===(t=this.eventsManager)||void 0===t?void 0:t.flush(e)]})})},e.prototype.shutdown=function(){this.teardownEventListeners(!0),this.stopRecordingEvents(),this.sendEvents()},e}(),tH=function(e){return function(){var t=e.config||U();return{logger:t.loggerProvider,logLevel:t.logLevel}}},tG=(w=new tW,{init:(0,P.w_)(w.init.bind(w),"init",tH(w)),setSessionId:(0,P.w_)(w.setSessionId.bind(w),"setSessionId",tH(w)),getSessionId:(0,P.w_)(w.getSessionId.bind(w),"getSessionId",tH(w)),getSessionReplayProperties:(0,P.w_)(w.getSessionReplayProperties.bind(w),"getSessionReplayProperties",tH(w)),flush:(0,P.w_)(w.flush.bind(w),"flush",tH(w)),shutdown:(0,P.w_)(w.shutdown.bind(w),"shutdown",tH(w))}),tZ=tG.init,tK=tG.setSessionId,tY=tG.getSessionId,tJ=tG.getSessionReplayProperties,tX=tG.flush,tQ=tG.shutdown,t0="1.16.7",t1=function(){function e(t){this.name=e.pluginName,this.type="enrichment",this.sr={flush:tX,getSessionId:tY,getSessionReplayProperties:tJ,init:tZ,setSessionId:tK,shutdown:tQ},this.options=(0,I.pi)({forceSessionTracking:!1},t),this.srInitOptions=this.options}return e.prototype.setup=function(e,t){var n,r,i,o,s;return(0,I.mG)(this,void 0,void 0,function(){var t;return(0,I.Jh)(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),null==e||e.loggerProvider.log("Installing @amplitude/plugin-session-replay, version ".concat(t0,".")),this.config=e,this.options.forceSessionTracking&&("boolean"==typeof e.defaultTracking?!1===e.defaultTracking&&(e.defaultTracking={pageViews:!1,formInteractions:!1,fileDownloads:!1,sessions:!0}):e.defaultTracking=(0,I.pi)((0,I.pi)({},e.defaultTracking),{sessions:!0})),this.srInitOptions={instanceName:this.config.instanceName,deviceId:null!==(n=this.options.deviceId)&&void 0!==n?n:this.config.deviceId,optOut:this.config.optOut,sessionId:this.options.customSessionId?void 0:this.config.sessionId,loggerProvider:this.config.loggerProvider,logLevel:this.config.logLevel,flushMaxRetries:this.config.flushMaxRetries,serverZone:this.config.serverZone,configServerUrl:this.options.configServerUrl,trackServerUrl:this.options.trackServerUrl,sampleRate:this.options.sampleRate,privacyConfig:{blockSelector:null===(r=this.options.privacyConfig)||void 0===r?void 0:r.blockSelector,maskSelector:null===(i=this.options.privacyConfig)||void 0===i?void 0:i.maskSelector,unmaskSelector:null===(o=this.options.privacyConfig)||void 0===o?void 0:o.unmaskSelector,defaultMaskLevel:null===(s=this.options.privacyConfig)||void 0===s?void 0:s.defaultMaskLevel},debugMode:this.options.debugMode,shouldInlineStylesheet:this.options.shouldInlineStylesheet,version:{type:"plugin",version:t0},performanceConfig:this.options.performanceConfig,storeType:this.options.storeType,experimental:this.options.experimental},[4,this.sr.init(e.apiKey,this.srInitOptions).promise];case 1:return a.sent(),[3,3];case 2:return t=a.sent(),null==e||e.loggerProvider.error("Session Replay: Failed to initialize due to ".concat(t.message)),[3,3];case 3:return[2]}})})},e.prototype.onSessionIdChanged=function(e){return(0,I.mG)(this,void 0,void 0,function(){return(0,I.Jh)(this,function(t){switch(t.label){case 0:return this.config.loggerProvider.debug("Analytics session id is changed to ".concat(e,", SR session id is ").concat(String(this.sr.getSessionId()),".")),[4,this.sr.setSessionId(e).promise];case 1:return t.sent(),[2]}})})},e.prototype.onOptOutChanged=function(e){return(0,I.mG)(this,void 0,void 0,function(){return(0,I.Jh)(this,function(t){switch(t.label){case 0:if(this.config.loggerProvider.debug("optOut is changed to ".concat(String(e),", calling ").concat(e?"sessionReplay.shutdown()":"sessionReplay.init()",".")),!e)return[3,1];return this.sr.shutdown(),[3,3];case 1:return[4,this.sr.init(this.config.apiKey,this.srInitOptions).promise];case 2:t.sent(),t.label=3;case 3:return[2]}})})},e.prototype.execute=function(e){var t;return(0,I.mG)(this,void 0,void 0,function(){var n,r,i;return(0,I.Jh)(this,function(o){switch(o.label){case 0:if(o.trys.push([0,8,,9]),!this.options.customSessionId)return[3,4];if(!(n=this.options.customSessionId(e)))return[3,3];if(!(n!==this.sr.getSessionId()))return[3,2];return[4,this.sr.setSessionId(n).promise];case 1:o.sent(),o.label=2;case 2:r=this.sr.getSessionReplayProperties(),e.event_properties=(0,I.pi)((0,I.pi)({},e.event_properties),r),o.label=3;case 3:return[3,7];case 4:if(!((n=this.config.sessionId)&&n!==this.sr.getSessionId()))return[3,6];return[4,this.sr.setSessionId(n).promise];case 5:o.sent(),o.label=6;case 6:n&&n===e.session_id&&(r=this.sr.getSessionReplayProperties(),e.event_properties=(0,I.pi)((0,I.pi)({},e.event_properties),r)),o.label=7;case 7:return[2,Promise.resolve(e)];case 8:return i=o.sent(),null===(t=this.config)||void 0===t||t.loggerProvider.error("Session Replay: Failed to enrich event due to ".concat(i.message)),[2,Promise.resolve(e)];case 9:return[2]}})})},e.prototype.teardown=function(){var e;return(0,I.mG)(this,void 0,void 0,function(){return(0,I.Jh)(this,function(t){try{this.sr.shutdown(),this.config=null}catch(t){null===(e=this.config)||void 0===e||e.loggerProvider.error("Session Replay: teardown failed due to ".concat(t.message))}return[2]})})},e.prototype.getSessionReplayProperties=function(){return this.sr.getSessionReplayProperties()},e.pluginName="@amplitude/plugin-session-replay-browser",e}(),t2=function(e){return new t1(e)}},76317:function(e,t,n){"use strict";n.d(t,{Z:function(){return q}});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,s=Object.assign;function a(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,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:h,column:p,length:s,return:""}}function w(e,t){return s(b("",null,null,"",null,null,0),e,{length:-e.length},t)}function x(){return v=g<m?u(y,g++):0,p++,10===v&&(p=1,h++),v}function S(){return u(y,g)}function k(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(;x();)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:x()}return g}(91===e?e+2:40===e?e+1:e),c(y,t,n)).trim()}var C="-ms-",O="-moz-",T="-webkit-",I="comm",P="rule",A="decl",R="@keyframes";function M(e,t){for(var n="",r=e.length,i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function j(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case A:return e.return=e.return||e.value;case I:return"";case R:return e.return=e.value+"{"+M(e.children,r)+"}";case P:e.value=e.props.join(",")}return d(n=M(e.children,r))?e.return=e.value+"{"+n+"}":""}function N(e,t,n,r,o,s,l,u,d,f,h){for(var p=o-1,m=0===o?s:[""],g=m.length,v=0,y=0,w=0;v<r;++v)for(var x=0,S=c(e,p+1,p=i(y=l[v])),k=e;x<g;++x)(k=(y>0?m[x]+" "+S:a(S,/&\f/g,m[x])).trim())&&(d[w++]=k);return b(e,t,n,0===o?P:u,d,f,h)}function D(e,t,n,r){return b(e,t,n,A,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=S(),38===r&&12===i&&(t[n]=1),!k(i);)x();return c(y,e,g)},z=function(e,t){var n=-1,r=44;do switch(k(r)){case 0:38===r&&12===S()&&(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===S()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}while(r=x());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),s=n.props,a=0,l=0;a<o.length;a++)for(var u=0;u<s.length;u++,l++)e.props[l]=i[a]?o[a].replace(/&\f/g,s[u]):s[u]+" "+o[a]}}},U=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},V=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case A: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+a(t,/(\w+).+(:[^]+)/,T+"box-$1$2"+C+"flex-$1$2")+t;case 5443:return T+t+C+"flex-item-"+a(t,/flex-|-self/,"")+t;case 4675:return T+t+C+"flex-line-pack"+a(t,/align-content|flex-|-self/,"")+t;case 5548:return T+t+C+a(t,"shrink","negative")+t;case 5292:return T+t+C+a(t,"basis","preferred-size")+t;case 6060:return T+"box-"+a(t,"-grow","")+T+t+C+a(t,"grow","positive")+t;case 4554:return T+a(t,/([^-])(transform)/g,"$1"+T+"$2")+t;case 6187:return a(a(a(t,/(zoom-|grab)/,T+"$1"),/(image-set)/,T+"$1"),t,"")+t;case 5495:case 3959:return a(t,/(image-set\([^]*)/,T+"$1$`$1");case 4968:return a(a(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 a(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 a(t,/(.+:)(.+)-([^]+)/,"$1"+T+"$2-$3$1"+O+(108==u(t,n+3)?"$3":"$2-$3"))+t;case 115:return~l(t,"stretch")?e(a(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 a(t,":",":"+T)+t;case 101:return a(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+a(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return T+t+C+a(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return T+t+C+a(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return T+t+C+t+t}return t}(e.value,e.length);break;case R:return M([w(e,{value:a(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 M([w(e,{props:[a(t,/:(read-\w+)/,":"+O+"$1")]})],r);case"::placeholder":return M([w(e,{props:[a(t,/:(plac\w+)/,":"+T+"input-$1")]}),w(e,{props:[a(t,/:(plac\w+)/,":"+O+"$1")]}),w(e,{props:[a(t,/:(plac\w+)/,C+"input-$1")]})],r)}return""},i.map(o).join("")}}}],q=function(e){var t,n,i,s,m,w,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||V,P={},A=[];s=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;A.push(e)});var R=(n=(t=[$,U].concat(T,[j,(i=function(e){w.insert(e)},function(e){!e.root&&(e=e.return)&&i(e)})])).length,function(e,r,i,o){for(var s="",a=0;a<n;a++)s+=t[a](e,r,i,o)||"";return s}),L=function(e){var t,n;return M((n=function e(t,n,r,i,s,m,w,E,C){for(var O,T=0,P=0,A=w,R=0,M=0,j=0,L=1,z=1,F=1,B=0,$="",U=s,V=m,q=i,W=$;z;)switch(j=B,B=x()){case 40:if(108!=j&&58==u(W,A-1)){-1!=l(W+=a(_(B),"&","&\f"),"&\f")&&(F=-1);break}case 34:case 39:case 91:W+=_(B);break;case 9:case 10:case 13:case 32:W+=function(e){for(;v=S();)if(v<33)x();else break;return k(e)>2||k(v)>3?"":" "}(j);break;case 92:W+=function(e,t){for(var n;--t&&x()&&!(v<48)&&!(v>102)&&(!(v>57)||!(v<65))&&(!(v>70)||!(v<97)););return n=g+(t<6&&32==S()&&32==x()),c(y,e,n)}(g-1,7);continue;case 47:switch(S()){case 42:case 47:f(b(O=function(e,t){for(;x();)if(e+v===57)break;else if(e+v===84&&47===S())break;return"/*"+c(y,t,g-1)+"*"+o(47===e?e:x())}(x(),g),n,r,I,o(v),c(O,2,-2),0),C);break;default:W+="/"}break;case 123*L:E[T++]=d(W)*F;case 125*L:case 59:case 0:switch(B){case 0:case 125:z=0;case 59+P:-1==F&&(W=a(W,/\f/g,"")),M>0&&d(W)-A&&f(M>32?D(W+";",i,r,A-1):D(a(W," ","")+";",i,r,A-2),C);break;case 59:W+=";";default:if(f(q=N(W,n,r,T,P,s,E,$,U=[],V=[],A),m),123===B){if(0===P)e(W,n,q,q,U,m,A,E,V);else switch(99===R&&110===u(W,3)?100:R){case 100:case 108:case 109:case 115:e(t,q,q,i&&f(N(t,q,q,0,0,s,E,$,s,U=[],A),V),s,V,A,E,i?U:V);break;default:e(W,q,q,q,[""],V,0,E,V)}}}T=P=M=0,L=F=1,$=W="",A=w;break;case 58:A=1+d(W),M=j;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(W+=o(B),B*L){case 38:F=P>0?1:(W+="\f",-1);break;case 44:E[T++]=(d(W)-1)*F,F=1;break;case 64:45===S()&&(W+=_(x())),R=S(),P=A=d($=W+=function(e){for(;!k(S());)x();return c(y,e,g)}(g)),B++;break;case 45:45===j&&2==d(W)&&(L=0)}}return m}("",null,null,null,[""],t=E(t=e),0,[0],t),y="",n),R)};m=function(e,t,n,r){w=n,L(e?e+"{"+t.styles+"}":t.styles),r&&(z.inserted[t.name]=!0)};var z={key:C,sheet:new r({key:C,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:P,registered:{},insert:m};return z.sheet.hydrate(A),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 w},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(82040),s=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}},a=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=s(function(e){return s(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,a.hC)(t,n,r),(0,u.L)(function(){return(0,a.My)(t,n,r)}),null},w=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],s=[i],u="";"string"==typeof e.className?u=(0,a.fp)(t.registered,s,e.className):null!=e.className&&(u=e.className+" ");var c=(0,l.O)(s,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),s=n(66703),a=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 s.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 a=2;a<r;a++)i[a]=n[a];return s.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,s.useContext(o.T)),i=s.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,s=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==s&&(o=!0,s.setAttribute("data-emotion",e),n.hydrate([s])),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,a.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),s=/[A-Z]|^ms/g,a=/_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(s,"-$&").toLowerCase()}),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(a,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 s=n[o];if("object"!=typeof s)null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":u(s)&&(r+=c(o)+":"+d(o,s)+";");else if(Array.isArray(s)&&"string"==typeof s[0]&&(null==t||void 0===t[s[0]]))for(var a=0;a<s.length;a++)u(s[a])&&(r+=c(o)+":"+d(o,s[a])+";");else{var l=f(e,t,s);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,s=n(e);return r=o,f(e,t,s)}}if(null==t)return n;var a=t[n];return void 0!==a?a: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,s="";r=void 0;var a=e[0];null==a||void 0===a.raw?(o=!1,s+=f(n,t,a)):s+=a[0];for(var l=1;l<e.length;l++)s+=f(n,t,e[l]),o&&(s+=a[l]);h.lastIndex=0;for(var u="";null!==(i=h.exec(s));)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)}(s)+u,styles:s,next:r}}},93949:function(e,t,n){"use strict";n.d(t,{L:function(){return s},j:function(){return a}});var r,i=n(66703),o=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,s=o||function(e){return e()},a=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 k}});var r=n(82040),i=n(14022),o=n(66703);let s=o.createContext(null);function a(){return o.useContext(s)}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=a(),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)(s.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 s=n(o),a=e?(0,r.Z)({},t,{[e]:s}):s;return i?()=>a:a}return e?(0,r.Z)({},t,{[e]:n}):(0,r.Z)({},t,n)},[e,t,n,i])}var w=function(e){let{children:t,theme:n,themeId:r}=e,i=f(y),o=a()||y,s=b(r,i,n),l=b(r,o,n,!0),h="rtl"===s.direction;return(0,u.jsx)(c,{theme:l,children:(0,u.jsx)(d.T.Provider,{value:s,children:(0,u.jsx)(m,{value:h,children:(0,u.jsx)(v,{value:null==s?void 0:s.components,children:t})})})})},x="$$material";let S=["theme"];function k(e){let{theme:t}=e,n=(0,i.Z)(e,S),o=t[x];return(0,u.jsx)(w,(0,r.Z)({},n,{themeId:o?x:void 0,theme:o||t}))}},9779:function(e,t,n){"use strict";n.d(t,{Z:function(){return eV}});var r=n(82040),i=n(14022),o=n(20139),s=n(66703);function a(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 a(e)&&a(t)&&Object.keys(t).forEach(r=>{s.isValidElement(t[r])?i[r]=t[r]:a(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&a(e[r])?i[r]=l(e[r],t[r],n):n.clone?i[r]=a(t[r])?function e(t){if(s.isValidElement(t)||!a(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],s=h(e.theme,r)||{};return d(e,o,e=>{let r=p(s,i,e);return(e===r&&"string"==typeof e&&(r=p(s,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"},w=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]}),x=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],S=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],k=[...x,...S];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=w(n),e=>i.reduce((t,n)=>(t[n]=C(r,e),t),{})),s=e[n];return d(e,s,o)})(e,t,r,n)).reduce(g,{})}function T(e){return O(e,x)}function I(e){return O(e,S)}function P(e){return O(e,k)}T.propTypes={},T.filterProps=x,I.propTypes={},I.filterProps=S,P.propTypes={},P.filterProps=k;var A=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 M(e,t){return m({prop:e,themeKey:"borders",transform:t})}let j=M("border",R),N=M("borderTop",R),D=M("borderRight",R),L=M("borderBottom",R),z=M("borderLeft",R),F=M("borderColor"),B=M("borderTopColor"),$=M("borderRightColor"),U=M("borderBottomColor"),V=M("borderLeftColor"),q=M("outline",R),W=M("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"],A(j,N,D,L,z,F,B,$,U,V,H,q,W);let G=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};G.propTypes={},G.filterProps=["gap"];let Z=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};Z.propTypes={},Z.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"}),J=m({prop:"gridRow"}),X=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}A(G,Z,K,Y,J,X,Q,ee,et,m({prop:"gridTemplateRows"}),m({prop:"gridTemplateAreas"}),m({prop:"gridArea"})),A(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 es=m({prop:"minWidth",transform:er}),ea=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}),A(ei,eo,es,ea,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:I},pt:{style:I},pr:{style:I},pb:{style:I},pl:{style:I},px:{style:I},py:{style:I},padding:{style:I},paddingTop:{style:I},paddingRight:{style:I},paddingBottom:{style:I},paddingLeft:{style:I},paddingX:{style:I},paddingY:{style:I},paddingInline:{style:I},paddingInlineStart:{style:I},paddingInlineEnd:{style:I},paddingBlock:{style:I},paddingBlockStart:{style:I},paddingBlockEnd:{style:I},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:G},rowGap:{style:K},columnGap:{style:Z},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:s=e,themeKey:a,transform:l,style:u}=o;if(null==t)return null;if("typography"===a&&"inherit"===t)return{[e]:t};let c=h(n,a)||{};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===s)?n:{[s]:n}})}return function t(n){var r;let{sx:i,theme:o={}}=n||{};if(!i)return null;let s=null!=(r=o.unstable_sxConfig)?r:ec;function a(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 a=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(a),u=a;return Object.keys(i).forEach(n=>{var r;let a="function"==typeof(r=i[n])?r(o):r;if(null!=a){if("object"==typeof a){if(s[n])u=g(u,e(n,a,o,s));else{let e=d({theme:o},a,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,a)?u[n]=t({sx:a,theme:o}):u=g(u,e)}}else u=g(u,e(n,a,o,s))}}),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(a):a(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:s,shape:a={}}=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,s=(0,i.Z)(e,ef),a=eh(t),l=Object.keys(a);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:a,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},s)}(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}(s),f=l({breakpoints:c,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},o),spacing:d,shape:(0,r.Z)({},ep,a)},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"},ew={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"},ex={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"},eS={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"},ek={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}},eI={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 eA=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],eR={textTransform:"uppercase"},eM='"Roboto", "Helvetica", "Arial", sans-serif';function ej(){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",ej(0,2,1,-1,0,1,1,0,0,1,3,0),ej(0,3,1,-2,0,2,2,0,0,1,5,0),ej(0,3,3,-2,0,3,4,0,0,1,8,0),ej(0,2,4,-1,0,4,5,0,0,1,10,0),ej(0,3,5,-1,0,5,8,0,0,1,14,0),ej(0,3,5,-1,0,6,10,0,0,1,18,0),ej(0,4,5,-2,0,7,10,1,0,2,16,1),ej(0,5,5,-3,0,8,10,1,0,3,14,2),ej(0,5,6,-3,0,9,12,1,0,3,16,2),ej(0,6,6,-3,0,10,14,1,0,4,18,3),ej(0,6,7,-4,0,11,15,1,0,4,20,3),ej(0,7,8,-4,0,12,17,2,0,5,22,4),ej(0,7,8,-4,0,13,19,2,0,5,24,4),ej(0,7,9,-4,0,14,21,2,0,5,26,4),ej(0,8,9,-5,0,15,22,2,0,6,28,5),ej(0,8,10,-5,0,16,24,2,0,6,30,5),ej(0,8,11,-5,0,17,26,2,0,6,32,5),ej(0,9,11,-5,0,18,28,2,0,7,34,6),ej(0,9,12,-6,0,19,29,2,0,7,36,6),ej(0,10,13,-6,0,20,31,3,0,8,38,7),ej(0,10,13,-6,0,21,33,3,0,8,40,7),ej(0,10,14,-6,0,22,35,3,0,8,42,7),ej(0,11,14,-7,0,23,36,3,0,9,44,8),ej(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 eU=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];var eV=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t,n=arguments.length,s=Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];let{mixins:u={},palette:c={},transitions:d={},typography:f={}}=e,h=(0,i.Z)(e,eU);if(e.vars)throw Error((0,o.Z)(18));let p=function(e){let{mode:t="light",contrastThreshold:n=3,tonalOffset:s=.2}=e,a=(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:ex[200],light:ex[50],dark:ex[400]}:{main:ex[500],light:ex[300],dark:ex[700]}}(t),d=e.error||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:eS[500],light:eS[300],dark:eS[700]}:{main:eS[700],light:eS[400],dark:eS[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:ek[400],light:ek[300],dark:ek[700]}:{main:"#ed6c02",light:ek[500],dark:ek[900]}}(t);function m(e){return(0,ey.mi)(e,eI.text.primary)>=n?eI.text.primary:eT.text.primary}let g=e=>{let{color:t,name:n,mainShade:i=500,lightShade:a=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",a,s),eP(t,"dark",l,s),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:ew,contrastThreshold:n,getContrastText:m,augmentColor:g,tonalOffset:s},{dark:eI,light:eT}[t]),a)}(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=eM,fontSize:s=14,fontWeightLight:a=300,fontWeightRegular:u=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:f=16,allVariants:h,pxToRem:p}=n,m=(0,i.Z)(n,eA),g=s/14,v=p||(e=>"".concat(e/f*g,"rem")),y=(e,t,n,i,s)=>(0,r.Z)({fontFamily:o,fontWeight:e,fontSize:v(t),lineHeight:n},o===eM?{letterSpacing:"".concat(Math.round(i/t*1e5)/1e5,"em")}:{},s,h),b={h1:y(a,96,1.167,-1.5),h2:y(a,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:s,fontWeightLight:a,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:s=t.easeInOut,delay:a=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(s," ").concat("string"==typeof a?a:eF(a))).join(",")}},e,{easing:t,duration:n})}(d),zIndex:(0,r.Z)({},e$)});return g=l(g,h),(g=s.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(4776);t._j=function(e,t){if(e=a(e),t=s(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=a(e),t=s(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 s(e,t=0,n=1){return(0,o.default)(e,t,n)}function a(e){let t;if(e.type)return e;if("#"===e.charAt(0))return a(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=a(e)).type||"hsla"===e.type?a(function(e){let{values:t}=e=a(e),n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),s=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1),u="rgb",c=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(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,s,a;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 w(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}function x(e){return e&&e.Math==Math?e:void 0}let S="object"==typeof globalThis&&x(globalThis)||"object"==typeof window&&x(window)||"object"==typeof self&&x(self)||"object"==typeof n.g&&x(n.g)||function(){return this}()||{};function k(e,t,n){let r=n||S,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}function E(){let e=S.crypto||S.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 I(){return Date.now()/1e3}let P=function(){let{performance:e}=S;if(!e||!e.now)return I;let t=Date.now()-e.now(),n=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();(()=>{let{performance:e}=S;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 A="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,R=["debug","info","warn","error","log","assert","trace"],M={};function j(e){if(!("console"in S))return e();let t=S.console,n={},r=Object.keys(M);r.forEach(e=>{let r=M[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 A?R.forEach(n=>{t[n]=(...t)=>{e&&j(()=>{S.console[n](`Sentry Logger [${n}]:`,...t)})}}):R.forEach(e=>{t[e]=()=>void 0}),t}(),D="production",L="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;(tx=tS||(tS={}))[tx.PENDING=0]="PENDING",tx[tx.RESOLVED=1]="RESOLVED",tx[tx.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=tS.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(tS.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(tS.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===tS.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===tS.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===tS.RESOLVED&&e[1](this._value),this._state===tS.REJECTED&&e[2](this._value),e[0]=!0)})}}}function F(e,t={}){if(!e)return"<unknown>";try{let n,r=e,i=[],o=0,s=0,a=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,s;let a=[];if(!e||!e.tagName)return"";if(S.HTMLElement&&e instanceof HTMLElement&&e.dataset&&e.dataset.sentryComponent)return e.dataset.sentryComponent;a.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=>{a.push(`[${e[0]}="${e[1]}"]`)});else if(e.id&&a.push(`#${e.id}`),(n=e.className)&&h(n))for(s=0,r=n.split(/\s+/);s<r.length;s++)a.push(`.${r[s]}`);let u=["aria-label","type","name","title","alt"];for(s=0;s<u.length;s++)i=u[s],(o=e.getAttribute(i))&&a.push(`[${i}="${o}"]`);return a.join("")}(r,a),"html"!==n&&(!(o>1)||!(s+3*i.length+n.length>=l)));)i.push(n),s+=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{w(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function U(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 V(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);"function"==typeof i&&W(i,r),e[t]=i}function q(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){A&&N.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function W(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,q(e,"__sentry_original__",t)}catch(e){}}function H(e){return e.__sentry_original__}function G(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:Z(e.target),currentTarget:Z(e.currentTarget),...K(e)};return"undefined"!=typeof CustomEvent&&b(e,CustomEvent)&&(t.detail=e.detail),t}}function Z(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 J(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 X(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&&J(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:I(),...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:s,_fingerprint:a,_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:s,fingerprint:a||[],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:s}=t;(function(e,t){let{extra:n,tags:r,user:i,contexts:o,level:s,transactionName:a}=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}),s&&(e.level=s),a&&(e.transaction=a)})(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:s,tags:a,origin:l}=Q(e);return Y({data:r,op:i,parent_span_id:o,span_id:t,status:s,tags:a,trace_id:n,origin:l})}(t),...e.contexts};let n=X(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()||{},s=Y({environment:r.environment||D,release:r.release,user_segment:o,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",s),s}(Q(e).trace_id||"",t,es().getScope()),r=X(e);if(!r)return n;let i=r&&r._frozenDynamicSamplingContext;if(i)return i;let{sampleRate:o,source:s}=r.metadata;null!=o&&(n.sample_rate=`${o}`);let a=Q(r);return s&&"url"!==s&&(n.transaction=a.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,...s}}(e,this.getScopeData()),function e(t,n,r,i=0){return new z((o,s)=>{let a=t[i];if(null===n||"function"!=typeof a)o(n);else{let l=a({...n},r);L&&a.id&&null===l&&N.log(`Event processor "${a.id}" dropped event`),y(l)?l.then(n=>e(t,n,r,i+1).then(o)).then(null,s):e(t,l,r,i+1).then(o).then(null,s)}})}([...n,...k("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 s={timestamp:I(),...e},a=i?j(()=>i(s,t)):s;null!==a&&(r.emit&&r.emit("beforeAddBreadcrumb",a,t),n.addBreadcrumb(a,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([[758],{4874:function(e,t,n){"use strict";n.d(t,{IH:function(){return rp},S1:function(){return rm},j:function(){return rg}});var r,i,o,s,a,l,u,c,d,f,h,p,m,g,v,y,b,w,x,S,k,E,_=n(38231),C=n(95379),O=n(55199),T=n(37843),I=function(){var e,t=(0,T.l)();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=P(n[0]),i=P(n[1]);return i&&(e[r]=i),e},{}):{}},P=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(e){return""}},A=n(56493),R=n(98018),M=n(68501),j=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},[])},N=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=R.q.Unknown),{event:e,code:t,message:n}},D=n(50119),L=(0,C.ev)([],(0,C.CR)(Array(256).keys()),!1).map(function(e){return e.toString(16).padStart(2,"0")}),z=function(e){var t,n=(0,T.l)();if(!(null===(t=null==n?void 0:n.crypto)||void 0===t?void 0:t.getRandomValues))return e?(e^16*Math.random()>>e/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,z);var r=n.crypto.getRandomValues(new Uint8Array(16));return r[6]=15&r[6]|64,r[8]=63&r[8]|128,(0,C.ev)([],(0,C.CR)(r.entries()),!1).map(function(e){var t=(0,C.CR)(e,2),n=t[0],r=t[1];return[4,6,8,10].includes(n)?"-".concat(L[r]):L[r]}).join("")};function F(e){var t="";try{"body"in e&&(t=JSON.stringify(e.body,null,2))}catch(e){}return t}var B=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,C.mG)(this,void 0,void 0,function(){var n,r=this;return(0,C.Jh)(this,function(i){switch(i.label){case 0:return this.config=e,this.storageKey="".concat(M.f1,"_").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=z()),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,C.mG)(this,void 0,void 0,function(){var t,n,r=this;return(0,C.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,j(t,this.config.flushQueueSize).reduce(function(t,n){return(0,C.mG)(r,void 0,void 0,function(){return(0,C.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,C.mG)(this,void 0,void 0,function(){var n,r,i,o;return(0,C.Jh)(this,function(s){switch(s.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,C._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 D.Dg,s.label=1;case 1:return s.trys.push([1,3,,4]),r=(0,D.RG)(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(r,n)];case 2:if(null===(i=s.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(F(i))):this.fulfillRequest(e,i.statusCode,i.status),[2];return this.handleResponse(i,e),[3,4];case 3:var a;return o=(a=s.sent())instanceof Error?a.message:String(a),this.config.loggerProvider.error(o),this.handleResponse({status:R.q.Failed,statusCode:0},e),[3,4];case 4:return[2]}})})},e.prototype.handleResponse=function(e,t){var n=e.status;switch(n){case R.q.Success:this.handleSuccessResponse(e,t);break;case R.q.Invalid:this.handleInvalidResponse(e,t);break;case R.q.PayloadTooLarge:this.handlePayloadTooLargeResponse(e,t);break;case R.q.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,C.ev)((0,C.ev)((0,C.ev)((0,C.ev)([],(0,C.CR)(Object.values(e.body.eventsWithInvalidFields)),!1),(0,C.CR)(Object.values(e.body.eventsWithMissingFields)),!1),(0,C.CR)(Object.values(e.body.eventsWithInvalidIdLengths)),!1),(0,C.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(F(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(F(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,s=new Set(r),a=new Set(i),l=new Set(o),u=t.filter(function(t,r){if(t.event.user_id&&s.has(t.event.user_id)||t.event.device_id&&a.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(F(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(N(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}(),$=function(){function e(){this.name="identity",this.type="before",this.identityStore=(0,A.bM)().identityStore}return e.prototype.execute=function(e){return(0,C.mG)(this,void 0,void 0,function(){var t;return(0,C.Jh)(this,function(n){return(t=e.user_properties)&&this.identityStore.editIdentity().updateUserProperties(t).commit(),[2,e]})})},e.prototype.setup=function(e){return(0,C.mG)(this,void 0,void 0,function(){return(0,C.Jh)(this,function(t){return e.instanceName&&(this.identityStore=(0,A.bM)(e.instanceName).identityStore),[2]})})},e}(),U=function(e){if(Object.keys(e).length>1e3)return!1;for(var t in e){var n=e[t];if(!V(t,n))return!1}return!0},V=function(e,t){var n,r;if("string"!=typeof e)return!1;if(Array.isArray(t)){var i=!0;try{for(var o=(0,C.XA)(t),s=o.next();!s.done;s=o.next()){var a=s.value;if(Array.isArray(a))return!1;if("object"==typeof a)i=i&&U(a);else if(!["number","string"].includes(typeof a))return!1;if(!i)return!1}}catch(e){n={error:e}}finally{try{s&&!s.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 U(t);else if(!["number","string","boolean"].includes(typeof t))return!1;return!0},q=function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return(0,C.pi)({},this._properties)},e.prototype.set=function(e,t){return this._safeSet(p.SET,e,t),this},e.prototype.setOnce=function(e,t){return this._safeSet(p.SET_ONCE,e,t),this},e.prototype.append=function(e,t){return this._safeSet(p.APPEND,e,t),this},e.prototype.prepend=function(e,t){return this._safeSet(p.PREPEND,e,t),this},e.prototype.postInsert=function(e,t){return this._safeSet(p.POSTINSERT,e,t),this},e.prototype.preInsert=function(e,t){return this._safeSet(p.PREINSERT,e,t),this},e.prototype.remove=function(e,t){return this._safeSet(p.REMOVE,e,t),this},e.prototype.add=function(e,t){return this._safeSet(p.ADD,e,t),this},e.prototype.unset=function(e){return this._safeSet(p.UNSET,e,M.q$),this},e.prototype.clearAll=function(){return this._properties={},this._properties[p.CLEAR_ALL]=M.q$,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[p.CLEAR_ALL]||this._propertySet.has(t))&&(e===p.ADD?"number"==typeof n:e===p.UNSET||e===p.REMOVE||V(t,n))},e}();(r=p||(p={})).SET="$set",r.SET_ONCE="$setOnce",r.ADD="$add",r.APPEND="$append",r.PREPEND="$prepend",r.REMOVE="$remove",r.PREINSERT="$preInsert",r.POSTINSERT="$postInsert",r.UNSET="$unset",r.CLEAR_ALL="$clearAll";var W=[p.CLEAR_ALL,p.UNSET,p.SET,p.SET_ONCE,p.ADD,p.APPEND,p.PREPEND,p.PREINSERT,p.POSTINSERT,p.REMOVE],H=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.setReceipt=function(e){return this.receipt=e,this},e.prototype.setReceiptSig=function(e){return this.receiptSig=e,this},e.prototype.setEventProperties=function(e){return U(e)&&(this.properties=e),this},e.prototype.getEventProperties=function(){var e=this.properties?(0,C.pi)({},this.properties):{};return e[m.REVENUE_PRODUCT_ID]=this.productId,e[m.REVENUE_QUANTITY]=this.quantity,e[m.REVENUE_PRICE]=this.price,e[m.REVENUE_TYPE]=this.revenueType,e[m.REVENUE_CURRENCY]=this.currency,e[m.REVENUE]=this.revenue,e[m.RECEIPT]=this.receipt,e[m.RECEIPT_SIG]=this.receiptSig,e},e}();(i=m||(m={})).REVENUE_PRODUCT_ID="$productId",i.REVENUE_QUANTITY="$quantity",i.REVENUE_PRICE="$price",i.REVENUE_TYPE="$revenueType",i.REVENUE_CURRENCY="$currency",i.REVENUE="$revenue",i.RECEIPT="$receipt",i.RECEIPT_SIG="$receiptSig";var G=function(e,t){return void 0===t&&(t=Date.now()),Date.now()-t>e};(o=g||(g={})).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",(s=v||(v={})).IDENTIFY="$identify",s.GROUP_IDENTIFY="$groupidentify",s.REVENUE="revenue_amount";var Z=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,C.mG)(this,void 0,void 0,function(){return(0,C.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=z(),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,C.mG)(this,void 0,void 0,function(){var r,i;return(0,C.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,C.mG)(this,void 0,void 0,function(){var t,n,r,i,o,s,a,l,u,c,d,f,h,p;return(0,C.Jh)(this,function(m){switch(m.label){case 0:if(!e)return[2];t=(0,C.CR)(e,1)[0],n=(0,C.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,C.XA)(r)).next(),m.label=2;case 2:if(o.done)return[3,5];if(!(s=o.value).execute)return[3,4];return[4,s.execute((0,C.pi)({},t))];case 3:if(null===(a=m.sent()))return n({event:t,code:0,message:""}),[2];t=a,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,C.XA)(l)).next(),m.label=10;case 10:if(c.done)return[3,13];if(!(s=c.value).execute)return[3,12];return[4,s.execute((0,C.pi)({},t))];case 11:if(null===(a=m.sent()))return n({event:t,code:0,message:""}),[2];t=a,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,C.pi)({},t);return e.execute(n).catch(function(e){return N(n,0,String(e))})})).then(function(e){var r=(0,C.CR)(e,1)[0]||N(t,100,"Event not tracked, no destination plugins on the instance");n(r)}),[2]}})})},e.prototype.flush=function(){return(0,C.mG)(this,void 0,void 0,function(){var e,t=this;return(0,C.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.prototype.onIdentityChanged=function(e){this.plugins.forEach(function(t){var n;null===(n=t.onIdentityChanged)||void 0===n||n.call(t,e)})},e.prototype.onSessionIdChanged=function(e){this.plugins.forEach(function(t){var n;null===(n=t.onSessionIdChanged)||void 0===n||n.call(t,e)})},e.prototype.onOptOutChanged=function(e){this.plugins.forEach(function(t){var n;null===(n=t.onOptOutChanged)||void 0===n||n.call(t,e)})},e}(),K=function(e,t){return(0,C.pi)((0,C.pi)({},t),{event_type:v.IDENTIFY,user_properties:e.getUserProperties()})},Y=function(e,t,n,r){var i;return(0,C.pi)((0,C.pi)({},r),{event_type:v.GROUP_IDENTIFY,group_properties:n.getUserProperties(),groups:((i={})[e]=t,i)})},J=function(e,t,n){var r,i=new q;return i.set(e,t),(0,C.pi)((0,C.pi)({},n),{event_type:v.IDENTIFY,user_properties:i.getUserProperties(),groups:((r={})[e]=t,r)})},X=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 Z(this),this.name=e}return e.prototype._init=function(e){return(0,C.mG)(this,void 0,void 0,function(){return(0,C.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,C.mG)(this,void 0,void 0,function(){var t,n,r,i,o,s;return(0,C.Jh)(this,function(a){switch(a.label){case 0:t=this[e],this[e]=[],a.label=1;case 1:a.trys.push([1,8,9,10]),r=(n=(0,C.XA)(t)).next(),a.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 a.sent(),[3,6];case 4:return[4,i];case 5:a.sent(),a.label=6;case 6:return r=n.next(),[3,2];case 7:return[3,10];case 8:return o={error:a.sent()},[3,10];case 9:try{r&&!r.done&&(s=n.return)&&s.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:a.sent(),a.label=12;case 12:return[2]}})})},e.prototype.track=function(e,t,n){var r=(0,C.pi)((0,C.pi)((0,C.pi)({},"string"==typeof e?{event_type:e}:e),n),t&&{event_properties:t});return(0,O.S)(this.dispatch(r))},e.prototype.identify=function(e,t){var n=K(e,t);return(0,O.S)(this.dispatch(n))},e.prototype.groupIdentify=function(e,t,n,r){var i=Y(e,t,n,r);return(0,O.S)(this.dispatch(i))},e.prototype.setGroup=function(e,t,n){var r=J(e,t,n);return(0,O.S)(this.dispatch(r))},e.prototype.revenue=function(e,t){var n=(0,C.pi)((0,C.pi)({},t),{event_type:v.REVENUE,event_properties:e.getEventProperties()});return(0,O.S)(this.dispatch(n))},e.prototype.add=function(e){return this.isReady?this._addPlugin(e):(this.q.push(this._addPlugin.bind(this,e)),(0,O.S)())},e.prototype._addPlugin=function(e){return(0,O.S)(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)),(0,O.S)())},e.prototype._removePlugin=function(e){return(0,O.S)(this.timeline.deregister(e,this.config))},e.prototype.dispatchWithCallback=function(e,t){if(!this.isReady)return t(N(e,0,"Client not initialized"));this.process(e).then(t)},e.prototype.dispatch=function(e){return(0,C.mG)(this,void 0,void 0,function(){var t=this;return(0,C.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.getOperationAppliedUserProperties=function(e){var t={};if(void 0===e)return t;var n={};return Object.keys(e).forEach(function(t){Object.values(g).includes(t)||(n[t]=e[t])}),W.forEach(function(n){if(Object.keys(e).includes(n)){var r=e[n];switch(n){case g.CLEAR_ALL:Object.keys(t).forEach(function(e){delete t[e]});break;case g.UNSET:Object.keys(r).forEach(function(e){delete t[e]});break;case g.SET:Object.assign(t,r)}}}),Object.assign(t,n),t},e.prototype.process=function(e){return(0,C.mG)(this,void 0,void 0,function(){var t,n,r;return(0,C.Jh)(this,function(i){switch(i.label){case 0:if(i.trys.push([0,2,,3]),this.config.optOut)return[2,N(e,0,"Event skipped due to optOut config")];return e.event_type===v.IDENTIFY&&(t=this.getOperationAppliedUserProperties(e.user_properties),this.timeline.onIdentityChanged({userProperties:t})),[4,this.timeline.push(e)];case 1:return 200===(n=i.sent()).code?this.config.loggerProvider.log(n.message):100===n.code?this.config.loggerProvider.warn(n.message):this.config.loggerProvider.error(n.message),[2,n];case 2:return r=String(i.sent()),this.config.loggerProvider.error(r),[2,n=N(e,0,r)];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&&(this.timeline.onOptOutChanged(e),this.config.optOut=!!e)},e.prototype.flush=function(){return(0,O.S)(this.timeline.flush())},e.prototype.plugin=function(e){var t=this.timeline.plugins.find(function(t){return t.name===e});if(void 0===t){this.config.loggerProvider.debug("Cannot find plugin with name ".concat(e));return}return t},e}(),Q=function(e,t,n){if("boolean"==typeof e)return e;if(null!==e&&"object"==typeof e){if(!1===e[t])return!1;if(void 0===e[t])return n}return!0},ee=function(e){return Q(e,"attribution",!0)},et=function(e){return Q(e,"pageViews",!0)},en=function(e){return Q(e,"sessions",!0)},er=function(e){return Q(e,"networkTracking",!1)},ei=function(e){return"boolean"==typeof e?e:"object"==typeof e&&(!0===e.elementInteractions||"object"==typeof e.elementInteractions)},eo=function(e){if(ei(e.autocapture)&&"object"==typeof e.autocapture&&"object"==typeof e.autocapture.elementInteractions)return e.autocapture.elementInteractions},es=function(e){if(er(e.autocapture)&&e.networkTrackingOptions)return e.networkTrackingOptions},ea=function(e){var t,n=function(){return!1},r=void 0,i=e.pageCounter;return et(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}},el=function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.name,o=r.args,s=r.resolve,a=e&&e[i];if("function"==typeof a){var l=a.apply(e,o);"function"==typeof s&&s(null==l?void 0:l.promise)}}return e},eu=function(e){return e&&void 0!==e._q},ec=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:""},ed="2.17.3",ef=function(){function e(){this.name="@amplitude/plugin-context-browser",this.type="before",this.library="".concat("amplitude-ts","/").concat(ed),"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){var t,n;return(0,C.mG)(this,void 0,void 0,function(){var r,i,o;return(0,C.Jh)(this,function(s){return r=new Date().getTime(),i=null!==(t=this.config.lastEventId)&&void 0!==t?t:-1,o=null!==(n=e.event_id)&&void 0!==n?n:i+1,this.config.lastEventId=o,e.time||(this.config.lastEventTime=r),[2,(0,C.pi)((0,C.pi)((0,C.pi)((0,C.pi)((0,C.pi)((0,C.pi)((0,C.pi)((0,C.pi)({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:r},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:"Web"}),this.config.trackingOptions.language&&{language:ec()}),this.config.trackingOptions.ipAddress&&{ip:"$remote"}),{insert_id:z(),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:o,library:this.library,user_agent:this.userAgent})]})})},e}(),eh=function(){function e(){this.memoryStorage=new Map}return e.prototype.isEnabled=function(){return(0,C.mG)(this,void 0,void 0,function(){return(0,C.Jh)(this,function(e){return[2,!0]})})},e.prototype.get=function(e){return(0,C.mG)(this,void 0,void 0,function(){return(0,C.Jh)(this,function(t){return[2,this.memoryStorage.get(e)]})})},e.prototype.getRaw=function(e){return(0,C.mG)(this,void 0,void 0,function(){var t;return(0,C.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,C.mG)(this,void 0,void 0,function(){return(0,C.Jh)(this,function(n){return this.memoryStorage.set(e,t),[2]})})},e.prototype.remove=function(e){return(0,C.mG)(this,void 0,void 0,function(){return(0,C.Jh)(this,function(t){return this.memoryStorage.delete(e),[2]})})},e.prototype.reset=function(){return(0,C.mG)(this,void 0,void 0,function(){return(0,C.Jh)(this,function(e){return this.memoryStorage.clear(),[2]})})},e}(),ep=n(34102),em=n(45745),eg=function(e,t,n){return void 0===t&&(t=""),void 0===n&&(n=10),[M.xp,t,e.substring(0,n)].filter(Boolean).join("_")},ev=function(){function e(e){this.options=(0,C.pi)({},e)}return e.prototype.isEnabled=function(){return(0,C.mG)(this,void 0,void 0,function(){var t,n;return(0,C.Jh)(this,function(r){switch(r.label){case 0:if(!(0,T.l)())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,C.mG)(this,void 0,void 0,function(){var n,r;return(0,C.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=ey(n))&&void 0!==t?t:eb(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,C.mG)(this,void 0,void 0,function(){var r,i;return(0,C.Jh)(this,function(o){return(i=(null!==(n=null===(t=null==(r=(0,T.l)())?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,C.mG)(this,void 0,void 0,function(){var r,i,o,s,a,l,u;return(0,C.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&&((s=new Date).setTime(s.getTime()+864e5*i),o=s),a="".concat(e,"=").concat(btoa(encodeURIComponent(JSON.stringify(t)))),o&&(a+="; expires=".concat(o.toUTCString())),a+="; path=/",this.options.domain&&(a+="; domain=".concat(this.options.domain)),this.options.secure&&(a+="; Secure"),this.options.sameSite&&(a+="; SameSite=".concat(this.options.sameSite)),(l=(0,T.l)())&&(l.document.cookie=a)}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,C.mG)(this,void 0,void 0,function(){return(0,C.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,C.mG)(this,void 0,void 0,function(){return(0,C.Jh)(this,function(e){return[2]})})},e}(),ey=function(e){try{return decodeURIComponent(atob(e))}catch(e){return}},eb=function(e){try{return decodeURIComponent(atob(decodeURIComponent(e)))}catch(e){return}},ew=n(4481),ex=function(){function e(e){this.storage=e}return e.prototype.isEnabled=function(){return(0,C.mG)(this,void 0,void 0,function(){var t,n,r;return(0,C.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,C.mG)(this,void 0,void 0,function(){var t;return(0,C.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){var t;return(0,C.mG)(this,void 0,void 0,function(){return(0,C.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){var n;return(0,C.mG)(this,void 0,void 0,function(){return(0,C.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){var t;return(0,C.mG)(this,void 0,void 0,function(){return(0,C.Jh)(this,function(n){try{null===(t=this.storage)||void 0===t||t.removeItem(e)}catch(e){}return[2]})})},e.prototype.reset=function(){var e;return(0,C.mG)(this,void 0,void 0,function(){return(0,C.Jh)(this,function(t){try{null===(e=this.storage)||void 0===e||e.clear()}catch(e){}return[2]})})},e}(),eS=function(e){function t(t){var n,r,i,o=this;try{i=null===(n=(0,T.l)())||void 0===n?void 0:n.localStorage}catch(e){null===(r=null==t?void 0:t.loggerProvider)||void 0===r||r.debug("Failed to access localStorage. error=".concat(JSON.stringify(e))),i=void 0}return(o=e.call(this,i)||this).loggerProvider=null==t?void 0:t.loggerProvider,o}return(0,C.ZT)(t,e),t.prototype.set=function(t,n){var r;return(0,C.mG)(this,void 0,void 0,function(){var i;return(0,C.Jh)(this,function(o){switch(o.label){case 0:if(!(Array.isArray(n)&&n.length>1e3))return[3,2];return i=n.length-1e3,[4,e.prototype.set.call(this,t,n.slice(0,1e3))];case 1:return o.sent(),null===(r=this.loggerProvider)||void 0===r||r.error("Failed to save ".concat(i," 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}(ex),ek=function(e){function t(){var t;return e.call(this,null===(t=(0,T.l)())||void 0===t?void 0:t.sessionStorage)||this}return(0,C.ZT)(t,e),t}(ex),eE=n(35077),e_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={done:4},t}return(0,C.ZT)(t,e),t.prototype.send=function(e,t){return(0,C.mG)(this,void 0,void 0,function(){var n=this;return(0,C.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}(eE.d),eC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,C.ZT)(t,e),t.prototype.send=function(e,t){return(0,C.mG)(this,void 0,void 0,function(){var n=this;return(0,C.Jh)(this,function(r){return[2,new Promise(function(r,i){var o=(0,T.l)();if(!(null==o?void 0:o.navigator.sendBeacon))throw Error("SendBeaconTransport is not supported");try{var s=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:s.length,server_upload_time:Date.now()}));return r(n.buildResponse({code:500}))}catch(e){i(e)}})]})})},t}(eE.d),eO=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},eT=function(e){if(atob&&escape&&e)try{return decodeURIComponent(escape(atob(e)))}catch(e){return}},eI="[Amplitude]",eP="".concat(eI," Form Started"),eA="".concat(eI," Form Submitted"),eR="".concat(eI," File Downloaded"),eM="session_start",ej="session_end",eN="".concat(eI," File Extension"),eD="".concat(eI," File Name"),eL="".concat(eI," Link ID"),ez="".concat(eI," Link Text"),eF="".concat(eI," Link URL"),eB="".concat(eI," Form ID"),e$="".concat(eI," Form Name"),eU="".concat(eI," Form Destination"),eV="cookie",eq=function(e){function t(t,n,r,i,o,s,a,l,u,c,d,f,h,p,m,g,v,y,b,w,x,S,k,E,_,C,O,T,I,P,A,R,M,j,N){void 0===r&&(r=new eh),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===d&&(d=eV),void 0===g&&(g=new ep.Y),void 0===v&&(v=em.i.Warn),void 0===b&&(b=!1),void 0===w&&(w=!1),void 0===k&&(k=""),void 0===E&&(E="US"),void 0===C&&(C=18e5),void 0===O&&(O=new eS({loggerProvider:g})),void 0===T&&(T={ipAddress:!0,language:!0,platform:!0}),void 0===I&&(I="fetch"),void 0===P&&(P=!1),void 0===A&&(A=!0);var D=e.call(this,{apiKey:t,storageProvider:O,transportProvider:eH(I)})||this;return D.apiKey=t,D.appVersion=n,D.cookieOptions=i,D.defaultTracking=o,D.autocapture=s,D.flushIntervalMillis=l,D.flushMaxRetries=u,D.flushQueueSize=c,D.identityStorage=d,D.ingestionMetadata=f,D.instanceName=h,D.loggerProvider=g,D.logLevel=v,D.minIdLength=y,D.offline=b,D.partnerId=x,D.plan=S,D.serverUrl=k,D.serverZone=E,D.sessionTimeout=C,D.storageProvider=O,D.trackingOptions=T,D.transport=I,D.useBatch=P,D.fetchRemoteConfig=A,D.networkTrackingOptions=N,D.version=ed,D._optOut=!1,D._cookieStorage=r,D.deviceId=a,D.lastEventId=p,D.lastEventTime=m,D.optOut=w,D.sessionId=_,D.pageCounter=M,D.userId=R,D.debugLogsEnabled=j,D.loggerProvider.enable(j?em.i.Debug:D.logLevel),D.networkTrackingOptions=N,D}return(0,C.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(eg(this.apiKey),e)},t}(D.De),eW=function(e,t){switch(void 0===e&&(e=eV),void 0===t&&(t={}),e){case"localStorage":return new eS;case"sessionStorage":return new ek;case"none":return new eh;default:return new ev((0,C.pi)((0,C.pi)({},t),{expirationDays:t.expiration}))}},eH=function(e){return"xhr"===e?new e_:"beacon"===e?new eC:new ew.V},eG=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},eZ=function(){var e,t=eG();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=eK(n[0]),i=eK(n[1]);return i&&(e[r]=i),e},{}):{}},eK=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(e){return""}},eY="dclid",eJ="fbclid",eX="gbraid",eQ="gclid",e0="ko_click_id",e1="li_fat_id",e2="msclkid",e3="rtd_cid",e5="ttclid",e4="twclid",e6="wbraid",e9={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},e8=function(){function e(){}return e.prototype.parse=function(){return(0,C.mG)(this,void 0,void 0,function(){return(0,C.Jh)(this,function(e){return[2,(0,C.pi)((0,C.pi)((0,C.pi)((0,C.pi)({},e9),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var e=eZ();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=eZ();return(e={})[eY]=t[eY],e[eJ]=t[eJ],e[eX]=t[eX],e[eQ]=t[eQ],e[e0]=t[e0],e[e1]=t[e1],e[e2]=t[e2],e[e3]=t[e3],e[e5]=t[e5],e[e4]=t[e4],e[e6]=t[e6],e},e}();(a=y||(y={})).SET="$set",a.SET_ONCE="$setOnce",a.ADD="$add",a.APPEND="$append",a.PREPEND="$prepend",a.REMOVE="$remove",a.PREINSERT="$preInsert",a.POSTINSERT="$postInsert",a.UNSET="$unset",a.CLEAR_ALL="$clearAll",(l=b||(b={})).REVENUE_PRODUCT_ID="$productId",l.REVENUE_QUANTITY="$quantity",l.REVENUE_PRICE="$price",l.REVENUE_TYPE="$revenueType",l.REVENUE_CURRENCY="$currency",l.REVENUE="$revenue",(u=w||(w={})).IDENTIFY="$identify",u.GROUP_IDENTIFY="$groupidentify",u.REVENUE="revenue_amount";var e7=function(e){var t={};for(var n in e){var r=e[n];r&&(t[n]=r)}return t},te=function(e){void 0===e&&(e={});var t,n,r,i=eG(),o=void 0,s=e.trackOn,a=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,C.mG)(void 0,void 0,void 0,function(){var e,t,n;return(0,C.Jh)(this,function(r){switch(r.label){case 0:return e=c("undefined"!=typeof location&&location.href||""),n={event_type:u},t=[{}],[4,tt()];case 1:return[2,(n.event_properties=C.pi.apply(void 0,[C.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===s||"function"==typeof s&&s()},h="undefined"!=typeof location?location.href:null,p=function(){return(0,C.mG)(void 0,void 0,void 0,function(){var e,n,r,i;return(0,C.Jh)(this,function(s){switch(s.label){case 0:if(n=tr(a,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,[s.sent()]),s.label=3;case 3:s.label=4;case 4:return[2]}})})},m=function(){p()};return{name:"@amplitude/plugin-page-view-tracking-browser",type:"enrichment",setup:function(e,s){return(0,C.mG)(void 0,void 0,void 0,function(){var a,l;return(0,C.Jh)(this,function(u){switch(u.label){case 0:if(t=s,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,C.CR)(n,3),i=r[0],o=r[1],s=r[2];e.apply(t,[i,o,s]),p()}})),!f())return[3,2];return o.log("Tracking page view event"),l=(a=t).track,[4,d()];case 1:l.apply(a,[u.sent()]),u.label=2;case 2:return[2]}})})},execute:function(e){return(0,C.mG)(void 0,void 0,void 0,function(){var t;return(0,C.Jh)(this,function(n){switch(n.label){case 0:if(!("attribution"===s&&tn(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,C.pi)((0,C.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,C.pi)((0,C.pi)({},e.event_properties),{"[Amplitude] Page Counter":r.pageCounter})),[2,e]}})})},teardown:function(){return(0,C.mG)(void 0,void 0,void 0,function(){return(0,C.Jh)(this,function(e){return i&&(i.removeEventListener("popstate",m),n&&(i.history.pushState=n)),[2]})})}}},tt=function(){return(0,C.mG)(void 0,void 0,void 0,function(){var e;return(0,C.Jh)(this,function(t){switch(t.label){case 0:return e=e7,[4,new e8().parse()];case 1:return[2,e.apply(void 0,[t.sent()])]}})})},tn=function(e){if("$identify"===e.event_type&&e.user_properties){var t=e.user_properties,n=t[y.SET]||{},r=t[y.UNSET]||{},i=(0,C.ev)((0,C.ev)([],(0,C.CR)(Object.keys(n)),!1),(0,C.CR)(Object.keys(r)),!1);return Object.keys(e9).every(function(e){return i.includes(e)})}return!1},tr=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},ti=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,C.mG)(void 0,void 0,void 0,function(){var i,o;return(0,C.Jh)(this,function(s){return i=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=ts(e);t||r.track(eP,((n={})[eB]=to(e.id),n[e$]=to(e.name),n[eU]=i,n)),t=!0}),n(e,"submit",function(){var n,i,o=ts(e);t||r.track(eP,((n={})[eB]=to(e.id),n[e$]=to(e.name),n[eU]=o,n)),r.track(eA,((i={})[eB]=to(e.id),i[e$]=to(e.name),i[eU]=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})}},"complete"===document.readyState?i():(o=(0,T.l)())?o.addEventListener("load",i):t.loggerProvider.debug("Form interaction tracking is not installed because global is undefined."),[2]})})},execute:function(e){return(0,C.mG)(void 0,void 0,void 0,function(){return(0,C.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,C.mG)(void 0,void 0,void 0,function(){return(0,C.Jh)(this,function(t){return null==e||e.disconnect(),r(),[2]})})}}},to=function(e){if("string"==typeof e)return e},ts=function(e){var t=e.getAttribute("action");try{t=new URL(encodeURI(null!=t?t:""),window.location.href).href}catch(e){}return t},ta=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,C.mG)(void 0,void 0,void 0,function(){var i,o;return(0,C.Jh)(this,function(s){return i=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),s=null==i?void 0:i[1];s&&n(e,"click",function(){var n;s&&r.track(eR,((n={})[eN]=s,n[eD]=t.pathname,n[eL]=e.id,n[ez]=e.text,n[eF]=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})}},"complete"===document.readyState?i():(o=(0,T.l)())?o.addEventListener("load",i):t.loggerProvider.debug("File download tracking is not installed because global is undefined."),[2]})})},execute:function(e){return(0,C.mG)(void 0,void 0,void 0,function(){return(0,C.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,C.mG)(void 0,void 0,void 0,function(){return(0,C.Jh)(this,function(t){return null==e||e.disconnect(),r(),[2]})})}}},tl=!1,tu=function(e){tl||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."),tl=!0)},tc=function(){var e=(0,T.l)(),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,C.mG)(void 0,void 0,void 0,function(){return(0,C.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,C.mG)(void 0,void 0,void 0,function(){return(0,C.Jh)(this,function(e){return r(),[2]})})}}};(c=x||(x={})).Unknown="unknown",c.Skipped="skipped",c.Success="success",c.RateLimit="rate_limit",c.PayloadTooLarge="payload_too_large",c.Invalid="invalid",c.Failed="failed",c.Timeout="Timeout",c.SystemError="SystemError",(d=S||(S={})).US="US",d.EU="EU";var td="Remote config fetch rejected due to timeout after 5 seconds",tf="Unexpected error occurred",th=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,C.mG)(r,void 0,void 0,function(){var r,i,o;return(0,C.Jh)(this,function(s){switch(s.label){case 0:return r=Date.now(),[4,this.fetchWithTimeout(n)];case 1:if((i=s.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,C.mG)(r,void 0,void 0,function(){var t,n,r;return(0,C.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,C.mG)(r,void 0,void 0,function(){var n,r,i,o,s,a,l,u,c,d,f;return(0,C.Jh)(this,function(h){switch(h.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:td})];t!==this.lastFetchedSessionId&&(this.lastFetchedSessionId=t,this.attempts=0),h.label=1;case 1:h.trys.push([1,3,,4]),n=new URLSearchParams({api_key:this.localConfig.apiKey});try{for(i=(r=(0,C.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)),s={headers:{Accept:"*/*"},method:"GET"},a="".concat(this.getServerUrl(),"?").concat(n.toString()),this.attempts+=1,[4,fetch(a,(0,C.pi)((0,C.pi)({},s),{signal:e}))];case 2:if(null===(l=h.sent()))return[2,this.completeRequest({err:tf})];switch(new eE.d().buildStatus(l.status)){case x.Success:return this.attempts=0,[2,this.parseAndStoreConfig(l)];case x.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=h.sent(),e.aborted)return[2,this.completeRequest({err:td})];return[2,this.completeRequest({err:null!==(f=u.message)&&void 0!==f?f:tf})];case 4:return[2]}})})},this.retryFetch=function(e,t){return(0,C.mG)(r,void 0,void 0,function(){var n=this;return(0,C.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,C.mG)(r,void 0,void 0,function(){var t;return(0,C.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===S.STAGING?"https://sr-client-cfg.stag2.amplitude.com/config":this.localConfig.serverZone===S.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}(),tp=function(e){var t=e.localConfig,n=e.configKeys;return(0,C.mG)(void 0,void 0,void 0,function(){return(0,C.Jh)(this,function(e){return[2,new th({localConfig:t,configKeys:n})]})})},tm=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,C.mG)(this,void 0,void 0,function(){var e;return(0,C.Jh)(this,function(t){switch(t.label){case 0:return e=this,[4,tp({localConfig:this.config,configKeys:["analyticsSDK"]})];case 1:return e.remoteConfigFetch=t.sent(),[2]}})})},e.prototype.generateJoinedConfig=function(){var e,t,n,r,i,o;return(0,C.mG)(this,void 0,void 0,function(){var s,a,l,u,c,d,f,h,p,m,g,v,y;return(0,C.Jh)(this,function(b){switch(b.label){case 0:if(b.trys.push([0,3,,4]),!(a=this.remoteConfigFetch))return[3,2];return[4,this.remoteConfigFetch.getRemoteConfig("analyticsSDK","browserSDK",this.config.sessionId)];case 1:a=b.sent(),b.label=2;case 2:if(s=a,this.config.loggerProvider.debug("Remote configuration:",JSON.stringify(s,null,2)),s&&"autocapture"in s){if("boolean"==typeof s.autocapture&&(this.config.autocapture=s.autocapture),"object"==typeof s.autocapture){if(l=(0,C.pi)({},s.autocapture),void 0===this.config.autocapture&&(this.config.autocapture=s.autocapture),"object"==typeof s.autocapture.elementInteractions&&(null===(e=s.autocapture.elementInteractions.pageUrlAllowlistRegex)||void 0===e?void 0:e.length)){l.elementInteractions=(0,C.pi)({},s.autocapture.elementInteractions),c=null!==(t=(u=l.elementInteractions).pageUrlAllowlist)&&void 0!==t?t:[],d=[];try{for(h=(f=(0,C.XA)(s.autocapture.elementInteractions.pageUrlAllowlistRegex)).next();!h.done;h=f.next()){p=h.value;try{d.push(new RegExp(p))}catch(e){this.config.loggerProvider.warn("Invalid regex pattern: ".concat(p),e)}}}catch(e){v={error:e}}finally{try{h&&!h.done&&(y=f.return)&&y.call(f)}finally{if(v)throw v.error}}m=c.concat(d),u.pageUrlAllowlist=m,delete u.pageUrlAllowlistRegex}"boolean"==typeof this.config.autocapture&&(this.config.autocapture=(0,C.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},l)),"object"==typeof this.config.autocapture&&(this.config.autocapture=(0,C.pi)((0,C.pi)({},this.config.autocapture),l))}this.config.defaultTracking=this.config.autocapture}return this.config.loggerProvider.debug("Joined configuration: ",JSON.stringify(this.config,null,2)),null!==(n=(o=this.config).requestMetadata)&&void 0!==n||(o.requestMetadata=new D.Dg),(null===(r=this.remoteConfigFetch)||void 0===r?void 0:r.metrics.fetchTimeAPISuccess)&&this.config.requestMetadata.recordHistogram("remote_config_fetch_time_API_success",this.remoteConfigFetch.metrics.fetchTimeAPISuccess),(null===(i=this.remoteConfigFetch)||void 0===i?void 0:i.metrics.fetchTimeAPIFail)&&this.config.requestMetadata.recordHistogram("remote_config_fetch_time_API_fail",this.remoteConfigFetch.metrics.fetchTimeAPIFail),[3,4];case 3:return g=b.sent(),this.config.loggerProvider.error("Failed to fetch remote configuration because of error: ",g),[3,4];case 4:return[2,this.config]}})})},e}(),tg=["a","button","input","select","textarea","label","video","audio",'[contenteditable="true" i]',"[data-amp-default-track]",".amp-default-track"],tv=["div","span","h1","h2","h3","h4","h5","h6"],ty="[Amplitude] Element Clicked",tb="[Amplitude] Element Tag",tw="[Amplitude] Element Text",tx="[Amplitude] Page URL",tS="https://app.amplitude.com",tk={US:tS,EU:"https://app.eu.amplitude.com",STAGING:"https://apps.stag2.amplitude.com"},tE=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function t_(e){return"function"==typeof e}function tC(e){return t_(null==e?void 0:e.then)}function tO(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 tT=tO(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 tI(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var tP=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 s=(0,C.XA)(o),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this)}var l=this.initialTeardown;if(t_(l))try{l()}catch(e){i=e instanceof tT?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=(0,C.XA)(u),d=c.next();!d.done;d=c.next()){var f=d.value;try{tM(f)}catch(e){i=null!=i?i:[],e instanceof tT?i=(0,C.ev)((0,C.ev)([],(0,C.CR)(i)),(0,C.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 tT(i)}},t.prototype.add=function(e){var n;if(e&&e!==this){if(this.closed)tM(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)&&tI(t,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&tI(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),tA=tP.EMPTY;function tR(e){return e instanceof tP||e&&"closed"in e&&t_(e.remove)&&t_(e.add)&&t_(e.unsubscribe)}function tM(e){t_(e)?e():e.unsubscribe()}var tj={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},tN={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=tN.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,(0,C.ev)([e,t],(0,C.CR)(n))):setTimeout.apply(void 0,(0,C.ev)([e,t],(0,C.CR)(n)))},clearTimeout:function(e){var t=tN.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function tD(e){tN.setTimeout(function(){var t=tj.onUnhandledError;if(t)t(e);else throw e})}function tL(){}var tz=tF("C",void 0,void 0);function tF(e,t,n){return{kind:e,value:t,error:n}}var tB=null;function t$(e){if(tj.useDeprecatedSynchronousErrorHandling){var t=!tB;if(t&&(tB={errorThrown:!1,error:null}),e(),t){var n=tB,r=n.errorThrown,i=n.error;if(tB=null,r)throw i}}else e()}var tU=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,tR(t)&&t.add(n)):n.destination=tK,n}return(0,C.ZT)(t,e),t.create=function(e,t,n){return new tH(e,t,n)},t.prototype.next=function(e){this.isStopped?tZ(tF("N",e,void 0),this):this._next(e)},t.prototype.error=function(e){this.isStopped?tZ(tF("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?tZ(tz,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}(tP),tV=Function.prototype.bind;function tq(e,t){return tV.call(e,t)}var tW=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){tG(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){tG(e)}else tG(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){tG(e)}},e}(),tH=function(e){function t(t,n,r){var i,o,s=e.call(this)||this;return t_(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:s&&tj.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},i={next:t.next&&tq(t.next,o),error:t.error&&tq(t.error,o),complete:t.complete&&tq(t.complete,o)}):i=t,s.destination=new tW(i),s}return(0,C.ZT)(t,e),t}(tU);function tG(e){tj.useDeprecatedSynchronousErrorHandling?tj.useDeprecatedSynchronousErrorHandling&&tB&&(tB.errorThrown=!0,tB.error=e):tD(e)}function tZ(e,t){var n=tj.onStoppedNotification;n&&tN.setTimeout(function(){return n(e,t)})}var tK={closed:!0,next:tL,error:function(e){throw e},complete:tL},tY="function"==typeof Symbol&&Symbol.observable||"@@observable";function tJ(e){return e}var tX=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 tU||r&&t_(r.next)&&t_(r.error)&&t_(r.complete)&&tR(r)?e:new tH(e,t,n);return t$(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=tQ(t))(function(t,r){var i=new tH({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[tY]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0===e.length?tJ: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=tQ(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 tQ(e){var t;return null!==(t=null!=e?e:tj.Promise)&&void 0!==t?t:Promise}function t0(e){return Symbol.asyncIterator&&t_(null==e?void 0:e[Symbol.asyncIterator])}function t1(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 t2="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function t3(e){return t_(null==e?void 0:e[t2])}function t5(e){return(0,C.FC)(this,arguments,function(){var t,n,r;return(0,C.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,C.qq)(t.read())];case 3:if(r=(n=i.sent()).value,!n.done)return[3,5];return[4,(0,C.qq)(void 0)];case 4:return[2,i.sent()];case 5:return[4,(0,C.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 t4(e){return t_(null==e?void 0:e.getReader)}function t6(e){if(e instanceof tX)return e;if(null!=e){if(t_(e[tY]))return new tX(function(t){var n=e[tY]();if(t_(n.subscribe))return n.subscribe(t);throw TypeError("Provided object does not correctly implement Symbol.observable")});if(tE(e))return new tX(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()});if(tC(e))return new tX(function(t){e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,tD)});if(t0(e))return t9(e);if(t3(e))return new tX(function(t){var n,r;try{for(var i=(0,C.XA)(e),o=i.next();!o.done;o=i.next()){var s=o.value;if(t.next(s),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(t4(e))return t9(t5(e))}throw t1(e)}function t9(e){return new tX(function(t){(function(e,t){var n,r,i,o;return(0,C.mG)(this,void 0,void 0,function(){var s;return(0,C.Jh)(this,function(a){switch(a.label){case 0:a.trys.push([0,5,6,11]),n=(0,C.KL)(e),a.label=1;case 1:return[4,n.next()];case 2:if((r=a.sent()).done)return[3,4];if(s=r.value,t.next(s),t.closed)return[2];a.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i={error:a.sent()},[3,11];case 6:if(a.trys.push([6,,9,10]),!(r&&!r.done&&(o=n.return)))return[3,8];return[4,o.call(n)];case 7:a.sent(),a.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 t8(e){return function(t){if(t_(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 t7(e,t,n,r,i){return new ne(e,t,n,r,i)}var ne=function(e){function t(t,n,r,i,o,s){var a=e.call(this,t)||this;return a.onFinalize=o,a.shouldUnsubscribe=s,a._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return(0,C.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}(tU);function nt(e,t){return t8(function(n,r){var i=0;n.subscribe(t7(r,function(n){r.next(e.call(t,n,i++))}))})}function nn(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 nr(e,t,n){return(void 0===n&&(n=1/0),t_(t))?nr(function(n,r){return nt(function(e,i){return t(n,e,r,i)})(t6(e(n,r)))},n):("number"==typeof t&&(n=t),t8(function(t,r){var i,o,s,a,l,u,c,d,f;return i=n,s=[],a=0,l=0,u=!1,c=function(){!u||s.length||a||r.complete()},d=function(e){return a<i?f(e):s.push(e)},f=function(t){a++;var n=!1;t6(e(t,l++)).subscribe(t7(r,function(e){o?d(e):r.next(e)},function(){n=!0},void 0,function(){if(n)try{for(a--;s.length&&a<i;)!function(){var e=s.shift();f(e)}();c()}catch(e){r.error(e)}}))},t.subscribe(t7(r,d,function(){u=!0,c()})),function(){}}))}var ni=Array.isArray,no=["addListener","removeListener"],ns=["addEventListener","removeEventListener"],na=["on","off"];function nl(e,t,n,r){if(t_(n)&&(r=n,n=void 0),r)return nl(e,t,n).pipe((i=r,nt(function(e){return ni(e)?i.apply(void 0,(0,C.ev)([],(0,C.CR)(e))):i(e)})));var i,o=(0,C.CR)(t_(e.addEventListener)&&t_(e.removeEventListener)?ns.map(function(r){return function(i){return e[r](t,i,n)}}):t_(e.addListener)&&t_(e.removeListener)?no.map(nu(e,t)):t_(e.on)&&t_(e.off)?na.map(nu(e,t)):[],2),s=o[0],a=o[1];if(!s&&tE(e))return nr(function(e){return nl(e,t,n)})(t6(e));if(!s)throw TypeError("Invalid event target");return new tX(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 s(t),function(){return a(t)}})}function nu(e,t){return function(n){return function(r){return e[n](t,r)}}}var nc=tO(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),nd=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return(0,C.ZT)(t,e),t.prototype.lift=function(e){var t=new nf(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new nc},t.prototype.next=function(e){var t=this;t$(function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=(0,C.XA)(t.currentObservers),o=i.next();!o.done;o=i.next())o.value.next(e)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var t=this;t$(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;t$(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this.hasError,r=this.isStopped,i=this.observers;return n||r?tA:(this.currentObservers=null,i.push(e),new tP(function(){t.currentObservers=null,tI(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},t.prototype.asObservable=function(){var e=new tX;return e.source=this,e},t.create=function(e,t){return new nf(e,t)},t}(tX),nf=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return(0,C.ZT)(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:tA},t}(nd);function nh(e){void 0===e&&(e={});var t=e.connector,n=void 0===t?function(){return new nd}:t,r=e.resetOnError,i=void 0===r||r,o=e.resetOnComplete,s=void 0===o||o,a=e.resetOnRefCountZero,l=void 0===a||a;return function(e){var t,r,o,a=0,u=!1,c=!1,d=function(){null==r||r.unsubscribe(),r=void 0},f=function(){d(),t=o=void 0,u=c=!1},h=function(){var e=t;f(),null==e||e.unsubscribe()};return t8(function(e,p){a++,c||u||d();var m=o=null!=o?o:n();p.add(function(){0!=--a||c||u||(r=np(h,l))}),m.subscribe(p),!t&&a>0&&(t=new tH({next:function(e){return m.next(e)},error:function(e){c=!0,d(),r=np(f,i,e),m.error(e)},complete:function(){u=!0,d(),r=np(f,s),m.complete()}}),t6(e).subscribe(t))})(e)}}function np(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!0===t){e();return}if(!1!==t){var i=new tH({next:function(){i.unsubscribe(),e()}});return t6(t.apply(void 0,(0,C.ev)([],(0,C.CR)(n)))).subscribe(i)}}var nm=["input","select","textarea"],ng=function(e,t){return function(n,r){var i,o,s,a=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(!nw(window.location.href,a))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===(s=null==window?void 0:window.getComputedStyle)||void 0===s?void 0:s.call(window,r);if(d&&"pointer"===d.getPropertyValue("cursor")&&"click"===n)return!0;return"click"===n}}},nv=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)))},ny=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},nb=function(e){var t="";return ny(e)&&e.childNodes&&e.childNodes.length&&e.childNodes.forEach(function(e){var n="";e&&3===e.nodeType?e.textContent&&(n=e.textContent):n=nb(e),t+=n.split(/(\s+)/).filter(nv).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}),t},nw=function(e,t){return!t||!t.length||t.some(function(t){return"string"==typeof t?e===t:e.match(t)})},nx=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},{})},nS=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 nv(r)?r:""}return nS(n)},nk=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:nk(null==e?void 0:e.parentElement,t):null},nE=function(e){if(!e)return{};var t,n,r,i=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);return nx(((t={})[tb]=i,t[tw]=nb(e),t[tx]=window.location.href.split("?")[0],t))},n_=function(e){return null!==e.event.target&&!!e.closestTrackedAncestor},nC=function(){function e(e){var t=(void 0===e?{}:e).origin,n=this;this.endpoint=tS,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?tS: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,s){r.requestCallbacks[i]={resolve:t,reject:s},r.notify(o),(null==n?void 0:n.timeout)>0&&setTimeout(function(){s(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,s=n.cssSelectorAllowlist,a=n.actionClickAllowlist;this.logger=r,i&&this.endpoint===tS&&(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:nE,isElementSelectable:function(e){return!o||o((null==p?void 0:p.actionType)||"click",e)},onTrack:t.onTrack,onSelect:t.onSelect,visualHighlightClass:"amp-visual-tagging-selector-highlight",messenger:t,cssSelectorAllowlist:s,actionClickAllowlist:a}),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}(),nO=["id","class","style","value","onclick","onchange","oninput","onblur","onsubmit","onfocus","onkeydown","onkeyup","onkeypress","data-reactid","data-react-checksum","data-reactroot"],nT=["type"],nI=["svg","path","g"],nP=["password","hidden"];function nA(e,t){return t8(function(n,r){var i=0;n.subscribe(t7(r,function(n){return e.call(t,n,i++)&&r.next(n)}))})}var nR=function(e){function t(t,n){return e.call(this)||this}return(0,C.ZT)(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(tP),nM={setInterval:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=nM.delegate;return(null==i?void 0:i.setInterval)?i.setInterval.apply(i,(0,C.ev)([e,t],(0,C.CR)(n))):setInterval.apply(void 0,(0,C.ev)([e,t],(0,C.CR)(n)))},clearInterval:function(e){var t=nM.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},nj=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,C.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),nM.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&&nM.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,tI(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(nR),nN={now:function(){return(nN.delegate||Date).now()},delegate:void 0},nD=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=nN.now,e}(),nL=new(function(e){function t(t,n){void 0===n&&(n=nD.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r}return(0,C.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}(nD))(nj);function nz(e){return void 0===e&&(e=1/0),nr(tJ,e)}var nF=new tX(function(e){return e.complete()});function nB(e){return e&&t_(e.schedule)}function n$(e){return e[e.length-1]}function nU(e){return nB(n$(e))?e.pop():void 0}function nV(e,t){return void 0===t&&(t=0),t8(function(n,r){n.subscribe(t7(r,function(n){return nn(r,e,function(){return r.next(n)},t)},function(){return nn(r,e,function(){return r.complete()},t)},function(n){return nn(r,e,function(){return r.error(n)},t)}))})}function nq(e,t){return void 0===t&&(t=0),t8(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function nW(e,t){if(!e)throw Error("Iterable cannot be null");return new tX(function(n){nn(n,t,function(){var r=e[Symbol.asyncIterator]();nn(n,t,function(){r.next().then(function(e){e.done?n.complete():n.next(e.value)})},0,!0)})})}function nH(e,t){return t?function(e,t){if(null!=e){if(t_(e[tY]))return t6(e).pipe(nq(t),nV(t));if(tE(e))return new tX(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})});if(tC(e))return t6(e).pipe(nq(t),nV(t));if(t0(e))return nW(e,t);if(t3(e))return new tX(function(n){var r;return nn(n,t,function(){r=e[t2](),nn(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 t_(null==r?void 0:r.return)&&r.return()}});if(t4(e))return nW(t5(e),t)}throw t1(e)}(e,t):t6(e)}function nG(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=nU(t),i=(e=1/0,"number"==typeof n$(t)?t.pop():e);return t.length?1===t.length?t6(t[0]):nz(i)(nH(t,r)):nF}function nZ(e){return e<=0?function(){return nF}:t8(function(t,n){var r=0;t.subscribe(t7(n,function(t){++r<=e&&(n.next(t),e<=r&&n.complete())}))})}function nK(e){return e instanceof Date&&!isNaN(e)}var nY=tO(function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}});function nJ(e){throw new nY(e)}(f=k||(k={})).ClickObservable="clickObservable",f.ChangeObservable="changeObservable",f.NavigateObservable="navigateObservable",f.MutationObservable="mutationObservable";var nX=function(e){void 0===e&&(e={});var t,n,r,i=e.dataAttributePrefix,o=void 0===i?"data-amp-track-":i,s=e.visualTaggingOptions,a=void 0===s?{enabled:!0,messenger:new nC}:s;e.cssSelectorAllowlist=null!==(t=e.cssSelectorAllowlist)&&void 0!==t?t:tg,e.actionClickAllowlist=null!==(n=e.actionClickAllowlist)&&void 0!==n?n:tv,e.debounceTime=null!==(r=e.debounceTime)&&void 0!==r?r:0;var l="@amplitude/plugin-autocapture-browser",u=[],c=function(){var e,t,n=nl(document,"click",{capture:!0}).pipe(nt(function(e){return f(e,"click")}),nh()),r=nl(document,"change",{capture:!0}).pipe(nt(function(e){return f(e,"change")}),nh());window.navigation&&(t=nl(window.navigation,"navigate").pipe(nt(function(e){return f(e,"navigate")}),nh()));var i=new tX(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(nt(function(e){return f(e,"mutation")}),nh());return(e={})[k.ClickObservable]=n,e[k.ChangeObservable]=r,e[k.NavigateObservable]=t,e[k.MutationObservable]=i,e},d=function(e,t){var n,r,i,s,a=null===(s=null===(i=null==t?void 0:t.tagName)||void 0===i?void 0:i.toLowerCase)||void 0===s?void 0:s.call(i),l="function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{left:null,top:null},u=t.getAttribute("aria-label"),c=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},{}),d=nS(t),f=((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,C.CR)(e,1)[0];return null!=t}).map(function(t){var n=(0,C.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,s,a=String(e.tagName).toLowerCase(),l={tag:a},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===(s=null===(o=e.previousElementSibling)||void 0===o?void 0:o.tagName)||void 0===s?void 0:s.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!nO.includes(e.name)}),m=!ny(e);if(!nP.includes(String(e.getAttribute("type")))&&!nI.includes(a))try{for(var g=(0,C.XA)(p),v=g.next();!v.done;v=g.next()){var y=v.value;(!m||nT.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[tb]=a,r[tw]=nb(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"]=c,r["[Amplitude] Element Parent Label"]=d,r[tx]=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"===a&&"click"===e&&t instanceof HTMLAnchorElement&&(f["[Amplitude] Element Href"]=t.href),nx(f)},f=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=nk(r.event.target,e.cssSelectorAllowlist);i&&(r.closestTrackedAncestor=i,r.targetElementProperties=d(r.type,i))}return r};return{name:l,type:"enrichment",setup:function(t,n){return(0,C.mG)(void 0,void 0,void 0,function(){var r,i,o,s,f,h,p,m,g,v;return(0,C.Jh)(this,function(y){var b,w,x,S,k,E,_,O,T,I,P,A,R,M,j,N,D,L,z,F,B,$,U,V,q,W,H,G,Z,K,Y,J,X,Q;return"undefined"==typeof document||(r=ng(e,e.cssSelectorAllowlist),i=ng(e,e.actionClickAllowlist),w=(b={allObservables:o=c(),options:e,amplitude:n,shouldTrackEvent:r}).amplitude,x=b.allObservables,S=b.options,k=b.shouldTrackEvent,T=nG((E=x.clickObservable).pipe(t8(function(e,t){var n,r=!1;e.subscribe(t7(t,function(e){var i=n;n=e,r&&t.next([i,e]),r=!0}))}),nA(function(e){var t=(0,C.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})),E.pipe((_=S.debounceTime,void 0===O&&(O=nL),t8(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 s(){var e=i+_,r=O.now();if(r<e){n=this.schedule(void 0,e-r),t.add(n);return}o()}e.subscribe(t7(t,function(e){r=e,i=O.now(),n||(n=O.schedule(s,_),t.add(n))},function(){o(),t.complete()},void 0,function(){r=n=null}))})),nt(function(){return"timeout"}))),s=E.pipe((void 0===I&&(I=nL),P=0,A=I,void 0===P&&(P=0),void 0===R&&(R=nL),M=-1,null!=A&&(nB(A)?R=A:M=A),j=new tX(function(e){var t=nK(P)?+P-R.now():P;t<0&&(t=0);var n=0;return R.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 nz(1)(nH(e,nU(e)))}(n.pipe(nZ(1),t8(function(e,t){e.subscribe(t7(t,tL))})),r.pipe(e(t)))}:nr(function(e,n){return t6(t(e,n)).pipe(nZ(1),nt(function(){return e}))})}(function(){return j})),nA(n_),nA(function(e){return k("click",e.closestTrackedAncestor)}),t8(function(e,t){var n=[];return e.subscribe(t7(t,function(e){return n.push(e)},function(){t.next(n),t.complete()})),t6(T).subscribe(t7(t,function(){var e=n;n=[],t.next(e)},tL)),function(){n=null}})).subscribe(function(e){var t,n,r=(e.length,ty);try{for(var i=(0,C.XA)(e),o=i.next();!o.done;o=i.next()){var s=o.value;null==w||w.track(r,s.targetElementProperties)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}),u.push(s),D=(N={allObservables:o,getEventProperties:d,amplitude:n,shouldTrackEvent:r}).amplitude,L=N.allObservables,z=N.getEventProperties,F=N.shouldTrackEvent,f=L.changeObservable.pipe(nA(n_),nA(function(e){return F("change",e.closestTrackedAncestor)})).subscribe(function(e){null==D||D.track("[Amplitude] Element Changed",z("change",e.closestTrackedAncestor))}),u.push(f),$=(B={allObservables:o,options:e,getEventProperties:d,amplitude:n,shouldTrackEvent:r,shouldTrackActionClick:i}).amplitude,U=B.allObservables,V=B.options,q=B.getEventProperties,W=B.shouldTrackEvent,H=B.shouldTrackActionClick,G=U.clickObservable,Z=U.mutationObservable,K=U.navigateObservable,Y=G.pipe(nA(function(e){return!W("click",e.closestTrackedAncestor)}),nt(function(e){var t=nk(e.event.target,V.actionClickAllowlist);return e.closestTrackedAncestor=t,null!==e.closestTrackedAncestor&&(e.targetElementProperties=q(e.type,e.closestTrackedAncestor)),e}),nA(n_),nA(function(e){return H("click",e.closestTrackedAncestor)})),J=[Z],K&&J.push(K),X=nG.apply(void 0,(0,C.ev)([],(0,C.CR)(J),!1)),h=Y.pipe((Q=function(e){return X.pipe(nZ(1),function(e,t){var n=nK(e)?{first:e}:"number"==typeof e?{each:e}:e,r=n.first,i=n.each,o=n.with,s=void 0===o?nJ:o,a=n.scheduler,l=void 0===a?nL:a,u=n.meta,c=void 0===u?null:u;if(null==r&&null==i)throw TypeError("No timeout provided.");return t8(function(e,t){var n,o,a=null,u=0,d=function(e){o=nn(t,l,function(){try{n.unsubscribe(),t6(s({meta:c,lastValue:a,seen:u})).subscribe(t)}catch(e){t.error(e)}},e)};n=e.subscribe(t7(t,function(e){null==o||o.unsubscribe(),u++,t.next(a=e),i>0&&d(i)},void 0,void 0,function(){(null==o?void 0:o.closed)||null==o||o.unsubscribe(),a=null})),u||d(null!=r?"number"==typeof r?r:+r-l.now():i)})}({first:500,with:function(){return nF}}),nt(function(){return e}))},t8(function(e,t){var n=null,r=0,i=!1,o=function(){return i&&!n&&t.complete()};e.subscribe(t7(t,function(e){null==n||n.unsubscribe(),t6(Q(e,r++)).subscribe(n=t7(t,function(e){return t.next(e)},function(){n=null,o()}))},function(){i=!0,o()}))}))).subscribe(function(e){null==$||$.track(ty,q("click",e.closestTrackedAncestor))}),u.push(h),null===(g=null==t?void 0:t.loggerProvider)||void 0===g||g.log("".concat(l," has been successfully added.")),window.opener&&a.enabled&&(p=e.cssSelectorAllowlist,m=e.actionClickAllowlist,null===(v=a.messenger)||void 0===v||v.setup((0,C.pi)((0,C.pi)({logger:null==t?void 0:t.loggerProvider},(null==t?void 0:t.serverZone)&&{endpoint:tk[t.serverZone]}),{isElementSelectable:ng(e,(0,C.ev)((0,C.ev)([],(0,C.CR)(p),!1),(0,C.CR)(m),!1)),cssSelectorAllowlist:p,actionClickAllowlist:m})))),[2]})})},execute:function(e){return(0,C.mG)(void 0,void 0,void 0,function(){return(0,C.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,C.mG)(void 0,void 0,void 0,function(){var e,t,n,r;return(0,C.Jh)(this,function(i){try{for(t=(e=(0,C.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]})})}}},nQ=function(e,t){void 0===t&&(t=z()),this.callback=e,this.id=t},n0=new(function(){function e(t){this.eventCallbacks=new Map,this.isObserving=!1;var n,r=(0,T.l)();if(!e.isSupported()){null==t||t.error("Fetch API is not supported in this environment.");return}this.globalScope=r,this.originalFetch=null===(n=this.globalScope)||void 0===n?void 0:n.fetch}return e.isSupported=function(){var e=(0,T.l)();return!!e&&!!e.fetch},e.prototype.subscribe=function(e){this.eventCallbacks.set(e.id,e),this.isObserving||(this.observeFetch(),this.isObserving=!0)},e.prototype.unsubscribe=function(e){this.eventCallbacks.delete(e.id),this.originalFetch&&this.globalScope&&0===this.eventCallbacks.size&&this.isObserving&&(this.globalScope.fetch=this.originalFetch,this.isObserving=!1)},e.prototype.triggerEventCallbacks=function(e){this.eventCallbacks.forEach(function(t){t.callback(e)})},e.prototype.observeFetch=function(){var e=this;if(this.globalScope&&this.originalFetch){var t=this.globalScope.fetch;this.globalScope.fetch=function(n,r){return(0,C.mG)(e,void 0,void 0,function(){var e,i,o,s,a,l,u,c,d;return(0,C.Jh)(this,function(f){switch(f.label){case 0:e=Date.now(),i=performance.now(),o={timestamp:e,startTime:e,type:"fetch",method:(null==r?void 0:r.method)||"GET",url:n.toString(),requestHeaders:null==r?void 0:r.headers,requestBodySize:function(e){var t,n,r=(0,T.l)();if(null==r?void 0:r.TextEncoder){var i=r.TextEncoder;if("string"==typeof e)return new i().encode(e).length;if(e instanceof Blob)return e.size;if(e instanceof URLSearchParams)return new i().encode(e.toString()).length;if(e instanceof ArrayBuffer)return e.byteLength;if(ArrayBuffer.isView(e))return e.byteLength;else if(e instanceof FormData){var o=0,s=0;try{for(var a=(0,C.XA)(e.entries()),l=a.next();!l.done;l=a.next()){var u=(0,C.CR)(l.value,2),c=u[0],d=u[1];if(o+=c.length,"string"==typeof d?o+=new i().encode(d).length:d.size&&(o+=d.size),++s>=100)return}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return o}}}(null==r?void 0:r.body)},f.label=1;case 1:return f.trys.push([1,3,,4]),[4,t(n,r)];case 2:return s=f.sent(),o.status=s.status,o.duration=Math.floor(performance.now()-i),o.startTime=e,o.endTime=Math.floor(e+o.duration),a={},l=void 0,s.headers.forEach(function(e,t){a[t]=e,"content-length"===t&&(l=parseInt(e,10)||void 0)}),o.responseHeaders=a,o.responseBodySize=l,this.triggerEventCallbacks(o),[2,s];case 3:throw u=f.sent(),c=Date.now(),o.duration=c-e,d=u,o.error={name:d.name||"UnknownError",message:d.message||"An unknown error occurred"},this.triggerEventCallbacks(o),u;case 4:return[2]}})})}}},e}()),n1="500-599";function n2(e,t){return RegExp("^"+t.replace(/[-[\]{}()+?.,\\^$|#\s]/g,"\\$&").replace(/\*/g,".*")+"$").test(e)}function n3(e,t){var n,r,i=t.split(",");try{for(var o=(0,C.XA)(i),s=o.next();!s.done;s=o.next()){var a=s.value,l=(0,C.CR)(a.split("-").map(Number),2),u=l[0],c=l[1];if(e===u&&void 0===c||e>=u&&e<=c)return!0}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1}(E||(E={})).NetworkObservable="networkObservable";var n5=function(e){void 0===e&&(e={});var t="@amplitude/plugin-network-capture-browser",n=[],r=function(){var e,t=new tX(function(e){var t=new nQ(function(t){var n={event:t,timestamp:Date.now(),type:"network"};e.next(n)});return n0.subscribe(t),function(){n0.unsubscribe(t)}});return(e={})[E.NetworkObservable]=t,e};return{name:t,type:"enrichment",setup:function(i,o){return(0,C.mG)(void 0,void 0,void 0,function(){var s,a;return(0,C.Jh)(this,function(l){var u,c,d,f;return"undefined"==typeof document||(c=(u={allObservables:r(),networkTrackingOptions:e,amplitude:o}).allObservables,d=u.networkTrackingOptions,f=u.amplitude,s=c.networkObservable.pipe(nA(function(e){var t,n,r,i,o;return t=e.event,void 0===(n=d)&&(n={}),o=new URL(t.url).hostname,!(!1!==n.ignoreAmplitudeRequests&&(n2(o,"*.amplitude.com")||n2(o,"amplitude.com"))||(null===(r=n.ignoreHosts)||void 0===r?void 0:r.find(function(e){return n2(o,e)})))&&(!!n.captureRules||void 0===t.status||!!n3(t.status,n1))&&(!n.captureRules||((0,C.ev)([],(0,C.CR)(n.captureRules),!1).reverse().find(function(e){var n;return n=t.status,void 0!==(i=e.hosts&&!e.hosts.find(function(e){return n2(o,e)})?void 0:!n&&0!==n||!!n3(n,e.statusCodeRange||n1))}),!!i))})).subscribe(function(e){var t,n,r,i,o=e.event;try{r=(n=new URL(o.url)).searchParams.toString(),i=n.hash.replace("#","")}catch(e){}var s=((t={})["[Amplitude] URL"]=o.url,t["[Amplitude] URL Query"]=r,t["[Amplitude] URL Fragment"]=i,t["[Amplitude] Request Method"]=o.method,t["[Amplitude] Status Code"]=o.status,t["[Amplitude] Start Time"]=o.startTime,t["[Amplitude] Completion Time"]=o.endTime,t["[Amplitude] Duration"]=o.duration,t["[Amplitude] Request Body Size"]=o.requestBodySize,t["[Amplitude] Response Body Size"]=o.responseBodySize,t);null==f||f.track("[Amplitude] Network Request",s)}),n.push(s),null===(a=null==i?void 0:i.loggerProvider)||void 0===a||a.log("".concat(t," has been successfully added."))),[2]})})},execute:function(e){return(0,C.mG)(void 0,void 0,void 0,function(){return(0,C.Jh)(this,function(t){return[2,e]})})},teardown:function(){return(0,C.mG)(void 0,void 0,void 0,function(){var e,t,r,i;return(0,C.Jh)(this,function(o){try{for(t=(e=(0,C.XA)(n)).next();!t.done;t=e.next())t.value.unsubscribe()}catch(e){r={error:e}}finally{try{t&&!t.done&&(i=e.return)&&i.call(e)}finally{if(r)throw r.error}}return[2]})})}}},n4="dclid",n6="fbclid",n9="gbraid",n8="gclid",n7="ko_click_id",re="li_fat_id",rt="msclkid",rn="rtd_cid",rr="ttclid",ri="twclid",ro="wbraid",rs={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},ra=function(e){var t=e.split(".");return t.length<=2?e:t.slice(t.length-2,t.length).join(".")},rl=function(e,t,n,r,i){void 0===i&&(i=!0),e.referrer;var o=e.referring_domain,s=(0,C._T)(e,["referrer","referring_domain"]),a=t||{},l=(a.referrer,a.referring_domain),u=(0,C._T)(a,["referrer","referring_domain"]);if(ru(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(s)!==JSON.stringify(u),d=ra(o||"")!==ra(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},ru=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})},rc=function(e){var t=e;return t?(t.startsWith(".")&&(t=t.substring(1)),[new RegExp("".concat(t.replace(".","\\."),"$"))]):[]},rd=function(){function e(){}return e.prototype.parse=function(){return(0,C.mG)(this,void 0,void 0,function(){return(0,C.Jh)(this,function(e){return[2,(0,C.pi)((0,C.pi)((0,C.pi)((0,C.pi)({},rs),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var e=I();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=I();return(e={})[n4]=t[n4],e[n6]=t[n6],e[n9]=t[n9],e[n8]=t[n8],e[n7]=t[n7],e[re]=t[re],e[rt]=t[rt],e[rn]=t[rn],e[rr]=t[rr],e[ri]=t[ri],e[ro]=t[ro],e},e}(),rf=function(){function e(e,t){var n,r,i,o;this.shouldTrackNewCampaign=!1,this.options=(0,C.pi)({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:rc(null===(n=t.cookieOptions)||void 0===n?void 0:n.domain)},e),this.storage=t.cookieStorage,this.storageKey=(r=t.apiKey,i="MKTG",void 0===o&&(o=10),[M.xp,i,r.substring(0,o)].filter(Boolean).join("_")),this.currentCampaign=rs,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,C.mG)(this,void 0,void 0,function(){var e,t;return(0,C.Jh)(this,function(n){switch(n.label){case 0:return[4,this.fetchCampaign()];case 1:if(t=C.CR.apply(void 0,[n.sent(),2]),this.currentCampaign=t[0],this.previousCampaign=t[1],e=!this.lastEventTime||G(this.sessionTimeout,this.lastEventTime),!rl(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,C.mG)(this,void 0,void 0,function(){return(0,C.Jh)(this,function(e){switch(e.label){case 0:return[4,Promise.all([new rd().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,K(Object.entries((0,C.pi)((0,C.pi)({},rs),t)).reduce(function(e,t){var r,i=(0,C.CR)(t,2),o=i[0],s=i[1];return(e.setOnce("initial_".concat(o),null!==(r=null!=s?s:n.initialEmptyValue)&&void 0!==r?r:"EMPTY"),s)?e.set(o,s):e.unset(o)},new q)));return e&&(r.event_id=e),r},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e}(),rh=(h=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,C.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),(0,O.S)(this._init((0,C.pi)((0,C.pi)({},i),{userId:r,apiKey:e})))},t.prototype._init=function(t){var n,r,i;return(0,C.mG)(this,void 0,void 0,function(){var o,s,a,l,u,c=this;return(0,C.Jh)(this,function(d){var f,h,p,m,g;switch(d.label){case 0:if(this.initializing)return[2];return this.initializing=!0,[4,(f=t.apiKey,h=t,p=this,void 0===h&&(h={}),(0,C.mG)(void 0,void 0,void 0,function(){var e,t,n,r,i,o,s,a,l,u,c,d,m,g,v,y,b,w,x,S,k,E,_,O,T,P,A,R,j,N,D,L,F,B,$,U,V,q,W,H,G,Z,K;return(0,C.Jh)(this,function(Y){var J,X,Q;switch(Y.label){case 0:if(e=h.identityStorage||eV,x={},!(e!==eV))return[3,1];return n="",[3,5];case 1:if(!(null!==(k=null===(S=h.cookieOptions)||void 0===S?void 0:S.domain)&&void 0!==k))return[3,2];return r=k,[3,4];case 2:return[4,(0,C.mG)(void 0,void 0,void 0,function(){var e,t,n,r,i,o;return(0,C.Jh)(this,function(s){switch(s.label){case 0:return[4,new ev().isEnabled()];case 1:if(!s.sent()||"undefined"==typeof location||!location.hostname)return[2,""];for(e=(null!=J?J:location.hostname).split("."),t=[],n="AMP_TLDTEST",r=e.length-2;r>=0;--r)t.push(e.slice(r).join("."));r=0,s.label=2;case 2:if(!(r<t.length))return[3,7];return[4,(o=new ev({domain:"."+(i=t[r])})).set(n,1)];case 3:return s.sent(),[4,o.get(n)];case 4:if(!s.sent())return[3,6];return[4,o.remove(n)];case 5:return s.sent(),[2,"."+i];case 6:return r++,[3,2];case 7:return[2,""]}})})];case 3:r=Y.sent(),Y.label=4;case 4:n=r,Y.label=5;case 5:return t=C.pi.apply(void 0,[(x.domain=n,x.expiration=365,x.sameSite="Lax",x.secure=!1,x.upgrade=!0,x),h.cookieOptions]),[4,(X=i=eW(h.identityStorage,t),void 0===(Q=null===(_=null===(E=h.cookieOptions)||void 0===E?void 0:E.upgrade)||void 0===_||_)&&(Q=!0),(0,C.mG)(void 0,void 0,void 0,function(){var e,t,n,r,i,o,s,a,l;return(0,C.Jh)(this,function(u){switch(u.label){case 0:return e="".concat(M.xp.toLowerCase(),"_").concat(f.substring(0,6)),[4,X.getRaw(e)];case 1:if(!(t=u.sent()))return[2,{optOut:!1}];if(!Q)return[3,3];return[4,X.remove(e)];case 2:u.sent(),u.label=3;case 3:return r=(n=(0,C.CR)(t.split("."),6))[0],i=n[1],o=n[2],s=n[3],a=n[4],l=n[5],[2,{deviceId:r,userId:eT(i),sessionId:eO(s),lastEventId:eO(l),lastEventTime:eO(a),optOut:!!o}]}})}))];case 6:return o=Y.sent(),[4,i.get(eg(f))];case 7:return s=Y.sent(),a=I(),l=null!==(R=null!==(A=null!==(P=null!==(T=null!==(O=h.deviceId)&&void 0!==O?O:a.ampDeviceId)&&void 0!==T?T:a.deviceId)&&void 0!==P?P:null==s?void 0:s.deviceId)&&void 0!==A?A:o.deviceId)&&void 0!==R?R:z(),u=null!==(j=null==s?void 0:s.lastEventId)&&void 0!==j?j:o.lastEventId,c=null!==(N=null==s?void 0:s.lastEventTime)&&void 0!==N?N:o.lastEventTime,d=null!==(L=null!==(D=h.optOut)&&void 0!==D?D:null==s?void 0:s.optOut)&&void 0!==L?L:o.optOut,m=null!==(F=null==s?void 0:s.sessionId)&&void 0!==F?F:o.sessionId,g=null!==($=null!==(B=h.userId)&&void 0!==B?B:null==s?void 0:s.userId)&&void 0!==$?$:o.userId,p.previousSessionDeviceId=null!==(U=null==s?void 0:s.deviceId)&&void 0!==U?U:o.deviceId,p.previousSessionUserId=null!==(V=null==s?void 0:s.userId)&&void 0!==V?V:o.userId,v={ipAddress:null===(W=null===(q=h.trackingOptions)||void 0===q?void 0:q.ipAddress)||void 0===W||W,language:null===(G=null===(H=h.trackingOptions)||void 0===H?void 0:H.language)||void 0===G||G,platform:null===(K=null===(Z=h.trackingOptions)||void 0===Z?void 0:Z.platform)||void 0===K||K},y=null==s?void 0:s.pageCounter,b=null==s?void 0:s.debugLogsEnabled,void 0!==h.autocapture&&(h.defaultTracking=h.autocapture),[4,(w=new eq(f,h.appVersion,i,t,h.defaultTracking,h.autocapture,l,h.flushIntervalMillis,h.flushMaxRetries,h.flushQueueSize,e,h.ingestionMetadata,h.instanceName,u,c,h.loggerProvider,h.logLevel,h.minIdLength,h.offline,d,h.partnerId,h.plan,h.serverUrl,h.serverZone,m,h.sessionTimeout,h.storageProvider,v,h.transport,h.useBatch,h.fetchRemoteConfig,g,y,b,h.networkTrackingOptions)).storageProvider.isEnabled()];case 8:return Y.sent()||(w.loggerProvider.warn("Storage provider ".concat(w.storageProvider.constructor.name," is not enabled. Falling back to MemoryStorage.")),w.storageProvider=new eh),[2,w]}})}))];case 1:if(!(o=d.sent()).fetchRemoteConfig)return[3,4];return[4,(m=o,(0,C.mG)(void 0,void 0,void 0,function(){var e;return(0,C.Jh)(this,function(t){switch(t.label){case 0:return[4,(e=new tm(m)).initialize()];case 1:return t.sent(),[2,e]}})}))];case 2:return[4,d.sent().generateJoinedConfig()];case 3:o=d.sent(),d.label=4;case 4:return[4,e.prototype._init.call(this,o)];case 5:if(d.sent(),this.logBrowserOptions(o),!ee(this.config.defaultTracking))return[3,7];return s=ee((g=this.config).defaultTracking)&&g.defaultTracking&&"object"==typeof g.defaultTracking&&g.defaultTracking.attribution&&"object"==typeof g.defaultTracking.attribution?(0,C.pi)({},g.defaultTracking.attribution):{},this.webAttribution=new rf(s,this.config),[4,this.webAttribution.init()];case 6:d.sent(),d.label=7;case 7:if(l=Number.isNaN(Number((a=I()).ampSessionId))?void 0:Number(a.ampSessionId),this.setSessionId(null!==(i=null!==(r=null!==(n=t.sessionId)&&void 0!==n?n:l)&&void 0!==r?r:this.config.sessionId)&&void 0!==i?i:Date.now()),(u=(0,A.bM)(t.instanceName)).identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),!(null!==this.config.offline))return[3,9];return[4,this.add(tc()).promise];case 8:d.sent(),d.label=9;case 9:return[4,this.add(new B).promise];case 10:return d.sent(),[4,this.add(new ef).promise];case 11:return d.sent(),[4,this.add(new $).promise];case 12:if(d.sent(),tu(this.config),!Q(this.config.defaultTracking,"fileDownloads",!0))return[3,14];return this.config.loggerProvider.debug("Adding file download tracking plugin"),[4,this.add(ta()).promise];case 13:d.sent(),d.label=14;case 14:if(!Q(this.config.defaultTracking,"formInteractions",!0))return[3,16];return this.config.loggerProvider.debug("Adding form interaction plugin"),[4,this.add(ti()).promise];case 15:d.sent(),d.label=16;case 16:if(!et(this.config.defaultTracking))return[3,18];return this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(te(ea(this.config))).promise];case 17:d.sent(),d.label=18;case 18:if(!ei(this.config.autocapture))return[3,20];return this.config.loggerProvider.debug("Adding user interactions plugin (autocapture plugin)"),[4,this.add(nX(eo(this.config))).promise];case 19:d.sent(),d.label=20;case 20:if(!(er(this.config.autocapture)&&this.config.networkTrackingOptions))return[3,22];return this.config.loggerProvider.debug("Adding network tracking plugin"),[4,this.add(n5(es(this.config))).promise];case 21:d.sent(),d.label=22;case 22:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 23:return d.sent(),u.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,this.timeline.onIdentityChanged({userId:e}),(0,A.x)(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),e!==this.config.deviceId&&(this.config.deviceId=e,this.timeline.onIdentityChanged({deviceId:e}),(0,A.Sb)(e,this.config.instanceName))},t.prototype.reset=function(){this.setDeviceId(z()),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)),(0,O.S)(Promise.resolve());if(e===this.config.sessionId)return(0,O.S)(Promise.resolve());this.config.loggerProvider.debug("function setSessionId: ",e);var r=this.getSessionId();r!==e&&this.timeline.onSessionIdChanged(e);var 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,en(this.config.defaultTracking)&&(r&&i&&n.push(this.track(ej,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 s=this.trackCampaignEventIfNeeded(++o,n);return en(this.config.defaultTracking)&&n.push(this.track(eM,void 0,{event_id:s?++o:o,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,(0,O.S)(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=eH(e)},t.prototype.identify=function(t,n){if(eu(t)){var r=t._q;t._q=[],t=el(new q,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(eu(r)){var o=r._q;r._q=[],r=el(new q,o)}return e.prototype.groupIdentify.call(this,t,n,r,i)},t.prototype.revenue=function(t,n){if(eu(t)){var r=t._q;t._q=[],t=el(new H,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,C.mG)(this,void 0,void 0,function(){var n,r,i;return(0,C.Jh)(this,function(o){return n=Date.now(),r=G(this.config.sessionTimeout,this.config.lastEventTime),i=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),t.event_type===eM||t.event_type===ej||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,C.pi)((0,C.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}(X)),{init:(0,_.w_)(h.init.bind(h),"init",(0,_.yh)(h),(0,_.zn)(h,["config"])),add:(0,_.w_)(h.add.bind(h),"add",(0,_.yh)(h),(0,_.zn)(h,["config.apiKey","timeline.plugins"])),remove:(0,_.w_)(h.remove.bind(h),"remove",(0,_.yh)(h),(0,_.zn)(h,["config.apiKey","timeline.plugins"])),track:(0,_.w_)(h.track.bind(h),"track",(0,_.yh)(h),(0,_.zn)(h,["config.apiKey","timeline.queue.length"])),logEvent:(0,_.w_)(h.logEvent.bind(h),"logEvent",(0,_.yh)(h),(0,_.zn)(h,["config.apiKey","timeline.queue.length"])),identify:(0,_.w_)(h.identify.bind(h),"identify",(0,_.yh)(h),(0,_.zn)(h,["config.apiKey","timeline.queue.length"])),groupIdentify:(0,_.w_)(h.groupIdentify.bind(h),"groupIdentify",(0,_.yh)(h),(0,_.zn)(h,["config.apiKey","timeline.queue.length"])),setGroup:(0,_.w_)(h.setGroup.bind(h),"setGroup",(0,_.yh)(h),(0,_.zn)(h,["config.apiKey","timeline.queue.length"])),revenue:(0,_.w_)(h.revenue.bind(h),"revenue",(0,_.yh)(h),(0,_.zn)(h,["config.apiKey","timeline.queue.length"])),flush:(0,_.w_)(h.flush.bind(h),"flush",(0,_.yh)(h),(0,_.zn)(h,["config.apiKey","timeline.queue.length"])),getUserId:(0,_.w_)(h.getUserId.bind(h),"getUserId",(0,_.yh)(h),(0,_.zn)(h,["config","config.userId"])),setUserId:(0,_.w_)(h.setUserId.bind(h),"setUserId",(0,_.yh)(h),(0,_.zn)(h,["config","config.userId"])),getDeviceId:(0,_.w_)(h.getDeviceId.bind(h),"getDeviceId",(0,_.yh)(h),(0,_.zn)(h,["config","config.deviceId"])),setDeviceId:(0,_.w_)(h.setDeviceId.bind(h),"setDeviceId",(0,_.yh)(h),(0,_.zn)(h,["config","config.deviceId"])),reset:(0,_.w_)(h.reset.bind(h),"reset",(0,_.yh)(h),(0,_.zn)(h,["config","config.userId","config.deviceId"])),getSessionId:(0,_.w_)(h.getSessionId.bind(h),"getSessionId",(0,_.yh)(h),(0,_.zn)(h,["config"])),setSessionId:(0,_.w_)(h.setSessionId.bind(h),"setSessionId",(0,_.yh)(h),(0,_.zn)(h,["config"])),extendSession:(0,_.w_)(h.extendSession.bind(h),"extendSession",(0,_.yh)(h),(0,_.zn)(h,["config"])),setOptOut:(0,_.w_)(h.setOptOut.bind(h),"setOptOut",(0,_.yh)(h),(0,_.zn)(h,["config"])),setTransport:(0,_.w_)(h.setTransport.bind(h),"setTransport",(0,_.yh)(h),(0,_.zn)(h,["config"]))}),rp=rh.add,rm=(rh.extendSession,rh.flush,rh.getDeviceId,rh.getSessionId,rh.getUserId,rh.groupIdentify,rh.identify,rh.init),rg=(rh.logEvent,rh.remove,rh.reset,rh.revenue,rh.setDeviceId,rh.setGroup,rh.setOptOut,rh.setSessionId,rh.setTransport,rh.setUserId,rh.track)},56493:function(e,t,n){"use strict";n.d(t,{bM:function(){return h},Sb:function(){return m},x:function(){return p}});var r=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:i(),platform:"Web",os:void 0,deviceModel:void 0}},e}(),i=function(){return"undefined"!=typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},o=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}(),s=function(){return(s=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 a(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 l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.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 s}"function"==typeof SuppressedError&&SuppressedError;var u=function(e,t){var n,r,i=typeof e;if(i!==typeof t)return!1;try{for(var o=a(["string","number","boolean","undefined"]),s=o.next();!s.done;s=o.next())if(s.value===i)return e===t}catch(e){n={error:e}}finally{try{s&&!s.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 l=Array.isArray(e),c=Array.isArray(t);if(l!==c)return!1;if(l&&c){for(var d=0;d<e.length;d++)if(!u(e[d],t[d]))return!1}else{if(!u(Object.keys(e).sort(),Object.keys(t).sort()))return!1;var f=!0;return Object.keys(e).forEach(function(n){u(e[n],t[n])||(f=!1)}),f}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 c=function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var e=this,t=s({},this.identity.userProperties),n=s(s({},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,s,u,c=n.userProperties||{};try{for(var d=a(Object.entries(e)),f=d.next();!f.done;f=d.next()){var h=l(f.value,2),p=h[0],m=h[1];switch(p){case"$set":try{for(var g=(i=void 0,a(Object.entries(m))),v=g.next();!v.done;v=g.next()){var y=l(v.value,2),b=y[0],w=y[1];c[b]=w}}catch(e){i={error:e}}finally{try{v&&!v.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}break;case"$unset":try{for(var x=(s=void 0,a(Object.keys(m))),S=x.next();!S.done;S=x.next()){var b=S.value;delete c[b]}}catch(e){s={error:e}}finally{try{S&&!S.done&&(u=x.return)&&u.call(x)}finally{if(s)throw s.error}}break;case"$clearAll":c={}}}}catch(e){t={error:e}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(t)throw t.error}}return n.userProperties=c,this},commit:function(){return e.setIdentity(n),this}}},e.prototype.getIdentity=function(){return s({},this.identity)},e.prototype.setIdentity=function(e){var t=s({},this.identity);this.identity=s({},e),u(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}(),d="undefined"!=typeof globalThis?globalThis:void 0!==n.g?n.g:self,f=function(){function e(){this.identityStore=new c,this.eventBridge=new o,this.applicationContextProvider=new r}return e.getInstance=function(t){return d.analyticsConnectorInstances||(d.analyticsConnectorInstances={}),d.analyticsConnectorInstances[t]||(d.analyticsConnectorInstances[t]=new e),d.analyticsConnectorInstances[t]},e}(),h=function(e){return void 0===e&&(e="$default_instance"),f.getInstance(e)},p=function(e,t){h(t).identityStore.editIdentity().setUserId(e).commit()},m=function(e,t){h(t).identityStore.editIdentity().setDeviceId(e).commit()}},50119:function(e,t,n){"use strict";n.d(t,{De:function(){return a},Dg:function(){return u},RG:function(){return l}});var r=n(68501),i=n(34102),o=n(45745),s=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,instanceName:"$default_instance",logLevel:o.i.Warn,loggerProvider:new i.Y,offline:!1,optOut:!1,serverUrl:r.EG,serverZone:"US",useBatch:!1}},a=function(){function e(e){this._optOut=!1;var t,n,r,i,o=s();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=l(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}(),l=function(e,t,n){if(void 0===e&&(e=""),void 0===t&&(t=s().serverZone),void 0===n&&(n=s().useBatch),e)return{serverUrl:e,serverZone:void 0};var i,o=["US","EU"].includes(t)?t:s().serverZone;return{serverZone:o,serverUrl:(i=n,"EU"===o?i?r.RE:r.y_:i?r.h8:r.EG)}},u=function(){function e(){this.sdk={metrics:{histogram:{}}}}return e.prototype.recordHistogram=function(e,t){this.sdk.metrics.histogram[e]=t},e}()},37843:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});var r=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}},34102:function(e,t,n){"use strict";n.d(t,{Y:function(){return o}});var r=n(45745),i="Amplitude Logger ",o=function(){function e(){this.logLevel=r.i.None}return e.prototype.disable=function(){this.logLevel=r.i.None},e.prototype.enable=function(e){void 0===e&&(e=r.i.Warn),this.logLevel=e},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<r.i.Verbose||console.log("".concat(i,"[Log]: ").concat(e.join(" ")))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<r.i.Warn||console.warn("".concat(i,"[Warn]: ").concat(e.join(" ")))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<r.i.Error||console.error("".concat(i,"[Error]: ").concat(e.join(" ")))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<r.i.Debug||console.log("".concat(i,"[Debug]: ").concat(e.join(" ")))},e}()},35077:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var r=n(98018),i=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,i,o,s,a,l,u,c,d,f,h,p,m,g,v,y,b,w,x,S,k,E=e.code||0,_=this.buildStatus(E);switch(_){case r.q.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!==(i=e.server_upload_time)&&void 0!==i?i:0}};case r.q.Invalid:return{status:_,statusCode:E,body:{error:null!==(o=e.error)&&void 0!==o?o:"",missingField:null!==(s=e.missing_field)&&void 0!==s?s:"",eventsWithInvalidFields:null!==(a=e.events_with_invalid_fields)&&void 0!==a?a:{},eventsWithMissingFields:null!==(l=e.events_with_missing_fields)&&void 0!==l?l:{},eventsWithInvalidIdLengths:null!==(u=e.events_with_invalid_id_lengths)&&void 0!==u?u:{},epsThreshold:null!==(c=e.eps_threshold)&&void 0!==c?c:0,exceededDailyQuotaDevices:null!==(d=e.exceeded_daily_quota_devices)&&void 0!==d?d:{},silencedDevices:null!==(f=e.silenced_devices)&&void 0!==f?f:[],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 r.q.PayloadTooLarge:return{status:_,statusCode:E,body:{error:null!==(g=e.error)&&void 0!==g?g:""}};case r.q.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!==(w=e.throttled_users)&&void 0!==w?w:{},exceededDailyQuotaDevices:null!==(x=e.exceeded_daily_quota_devices)&&void 0!==x?x:{},exceededDailyQuotaUsers:null!==(S=e.exceeded_daily_quota_users)&&void 0!==S?S:{},throttledEvents:null!==(k=e.throttled_events)&&void 0!==k?k:[]}};case r.q.Timeout:default:return{status:_,statusCode:E}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?r.q.Success:429===e?r.q.RateLimit:413===e?r.q.PayloadTooLarge:408===e?r.q.Timeout:e>=400&&e<500?r.q.Invalid:e>=500?r.q.Failed:r.q.Unknown},e}()},4481:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var r=n(95379),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t.prototype.send=function(e,t){return(0,r.mG)(this,void 0,void 0,function(){var n,i;return(0,r.Jh)(this,function(r){switch(r.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=r.sent()).text()];case 2:i=r.sent();try{return[2,this.buildResponse(JSON.parse(i))]}catch(e){return[2,this.buildResponse({code:n.status})]}return[2]}})})},t}(n(35077).d)},68501:function(e,t,n){"use strict";n.d(t,{EG:function(){return s},RE:function(){return u},f1:function(){return o},h8:function(){return l},q$:function(){return r},xp:function(){return i},y_:function(){return a}});var r="-",i="AMP",o="".concat(i,"_unsent"),s="https://api2.amplitude.com/2/httpapi",a="https://api.eu.amplitude.com/2/httpapi",l="https://api2.amplitude.com/batch",u="https://api.eu.amplitude.com/batch"},45745:function(e,t,n){"use strict";var r,i;n.d(t,{i:function(){return r}}),(i=r||(r={}))[i.None=0]="None",i[i.Error=1]="Error",i[i.Warn=2]="Warn",i[i.Verbose=3]="Verbose",i[i.Debug=4]="Debug"},98018:function(e,t,n){"use strict";var r,i;n.d(t,{q:function(){return r}}),(i=r||(r={})).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"},38231:function(e,t,n){"use strict";n.d(t,{w_:function(){return l},yh:function(){return o},zn:function(){return a}});var r=n(95379),i=n(45745),o=function(e){return function(){var t=(0,r.pi)({},e.config);return{logger:t.loggerProvider,logLevel:t.logLevel}}},s=function(e,t){var n,i;t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"");try{for(var o=(0,r.XA)(t.split(".")),s=o.next();!s.done;s=o.next()){var a=s.value;if(!(a in e))return;e=e[a]}}catch(e){n={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return e},a=function(e,t){return function(){var n,i,o={};try{for(var a=(0,r.XA)(t),l=a.next();!l.done;l=a.next()){var u=l.value;o[u]=s(e,u)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return o}},l=function(e,t,n,r,o){return void 0===o&&(o=null),function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];var l=n(),u=l.logger,c=l.logLevel;if(c&&c<i.i.Debug||!c||!u)return e.apply(o,s);var d={type:"invoke public method",name:t,args:s,stacktrace:(Error().stack||"").split("\n").slice(3).map(function(e){return e.trim()}),time:{start:new Date().toISOString()},states:{}};r&&d.states&&(d.states.before=r());var f=e.apply(o,s);return f&&f.promise?f.promise.then(function(){r&&d.states&&(d.states.after=r()),d.time&&(d.time.end=new Date().toISOString()),u.debug(JSON.stringify(d,null,2))}):(r&&d.states&&(d.states.after=r()),d.time&&(d.time.end=new Date().toISOString()),u.debug(JSON.stringify(d,null,2))),f}}},55199:function(e,t,n){"use strict";n.d(t,{S:function(){return r}});var r=function(e){return{promise:e||Promise.resolve()}}},8536:function(e,t,n){"use strict";let r,i,o,s;n.d(t,{k:function(){return t2}});var a,l,u,c,d,f,h,p,m,g,v,y,b,w,x,S,k,E,_,C,O,T,I=n(95379),P=n(38231),A=n(45745),R=n(34102),M=n(4481),j=n(50119);(a=x||(x={})).US="US",a.EU="EU",a.STAGING="STAGING";var N=n(68501),D="[Amplitude]",L="".concat(D," Session Replay ID"),z=x.US,F="".concat(D," Session Replay Debug"),B="amp-mask";N.xp,(l=S||(S={})).GET_SR_PROPS="get-sr-props",l.DEBUG_INFO="debug-info",l.FETCH_REQUEST="fetch-request";var $=function(){function e(e){this.logger=e,this.log=this.getSafeMethod("log"),this.warn=this.getSafeMethod("warn"),this.error=this.getSafeMethod("error"),this.debug=this.getSafeMethod("debug")}return e.prototype.getSafeMethod=function(e){if(!this.logger)return function(){};var t,n=this.logger[e];return"function"==typeof n?(null!==(t=n.__rrweb_original__)&&void 0!==t?t:n).bind(this.logger):function(){}},e.prototype.enable=function(e){this.logger.enable(e)},e.prototype.disable=function(){this.logger.disable()},e}(),U=function(){return{flushMaxRetries:2,logLevel:A.i.Warn,loggerProvider:new R.Y,transportProvider:new M.V}},V=function(e){function t(t,n){var r,i=this,o=U();return(i=e.call(this,(0,I.pi)((0,I.pi)({transportProvider:o.transportProvider,loggerProvider:new $(n.loggerProvider||o.loggerProvider)},n),{apiKey:t}))||this).flushMaxRetries=void 0!==n.flushMaxRetries&&n.flushMaxRetries<=o.flushMaxRetries?n.flushMaxRetries:o.flushMaxRetries,i.apiKey=t,i.sampleRate=n.sampleRate||0,i.serverZone=n.serverZone||z,i.configServerUrl=n.configServerUrl,i.trackServerUrl=n.trackServerUrl,i.shouldInlineStylesheet=n.shouldInlineStylesheet,i.version=n.version,i.performanceConfig=n.performanceConfig,i.storeType=null!==(r=n.storeType)&&void 0!==r?r:"idb",n.privacyConfig&&(i.privacyConfig=n.privacyConfig),n.debugMode&&(i.debugMode=n.debugMode),n.experimental&&(i.experimental=n.experimental),i}return(0,I.ZT)(t,e),t}(j.De),q=n(37843),W=n(55199),H=n(56493),G=n(57508);(u=k||(k={})).Unknown="unknown",u.Skipped="skipped",u.Success="success",u.RateLimit="rate_limit",u.PayloadTooLarge="payload_too_large",u.Invalid="invalid",u.Failed="failed",u.Timeout="Timeout",u.SystemError="SystemError";var Z=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,s,a,l,u,c,d,f,h,p,m,g,v,y,b,w,x,S,E=e.code||0,_=this.buildStatus(E);switch(_){case k.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 k.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!==(s=e.events_with_invalid_fields)&&void 0!==s?s:{},eventsWithMissingFields:null!==(a=e.events_with_missing_fields)&&void 0!==a?a:{},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!==(f=e.silenced_events)&&void 0!==f?f:[],throttledDevices:null!==(h=e.throttled_devices)&&void 0!==h?h:{},throttledEvents:null!==(p=e.throttled_events)&&void 0!==p?p:[]}};case k.PayloadTooLarge:return{status:_,statusCode:E,body:{error:null!==(m=e.error)&&void 0!==m?m:""}};case k.RateLimit:return{status:_,statusCode:E,body:{error:null!==(g=e.error)&&void 0!==g?g:"",epsThreshold:null!==(v=e.eps_threshold)&&void 0!==v?v:0,throttledDevices:null!==(y=e.throttled_devices)&&void 0!==y?y:{},throttledUsers:null!==(b=e.throttled_users)&&void 0!==b?b:{},exceededDailyQuotaDevices:null!==(w=e.exceeded_daily_quota_devices)&&void 0!==w?w:{},exceededDailyQuotaUsers:null!==(x=e.exceeded_daily_quota_users)&&void 0!==x?x:{},throttledEvents:null!==(S=e.throttled_events)&&void 0!==S?S:[]}};case k.Timeout:default:return{status:_,statusCode:E}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?k.Success:429===e?k.RateLimit:413===e?k.PayloadTooLarge:408===e?k.Timeout:e>=400&&e<500?k.Invalid:e>=500?k.Failed:k.Unknown},e}();(c=E||(E={})).US="US",c.EU="EU",c.STAGING="STAGING";var K="Remote config fetch rejected due to timeout after 5 seconds",Y="Unexpected error occurred",J=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,I.mG)(r,void 0,void 0,function(){var r,i,o;return(0,I.Jh)(this,function(s){switch(s.label){case 0:return r=Date.now(),[4,this.fetchWithTimeout(n)];case 1:if((i=s.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,I.mG)(r,void 0,void 0,function(){var t,n,r;return(0,I.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,I.mG)(r,void 0,void 0,function(){var n,r,i,o,s,a,l,u,c,d,f;return(0,I.Jh)(this,function(h){switch(h.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:K})];t!==this.lastFetchedSessionId&&(this.lastFetchedSessionId=t,this.attempts=0),h.label=1;case 1:h.trys.push([1,3,,4]),n=new URLSearchParams({api_key:this.localConfig.apiKey});try{for(i=(r=(0,I.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)),s={headers:{Accept:"*/*"},method:"GET"},a="".concat(this.getServerUrl(),"?").concat(n.toString()),this.attempts+=1,[4,fetch(a,(0,I.pi)((0,I.pi)({},s),{signal:e}))];case 2:if(null===(l=h.sent()))return[2,this.completeRequest({err:Y})];switch(new Z().buildStatus(l.status)){case k.Success:return this.attempts=0,[2,this.parseAndStoreConfig(l)];case k.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=h.sent(),e.aborted)return[2,this.completeRequest({err:K})];return[2,this.completeRequest({err:null!==(f=u.message)&&void 0!==f?f:Y})];case 4:return[2]}})})},this.retryFetch=function(e,t){return(0,I.mG)(r,void 0,void 0,function(){var n=this;return(0,I.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,I.mG)(r,void 0,void 0,function(){var t;return(0,I.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.configServerUrl?this.localConfig.configServerUrl:this.localConfig.serverZone===E.STAGING?"https://sr-client-cfg.stag2.amplitude.com/config":this.localConfig.serverZone===E.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}(),X=function(e){var t=e.localConfig,n=e.configKeys;return(0,I.mG)(void 0,void 0,void 0,function(){return(0,I.Jh)(this,function(e){return[2,new J({localConfig:t,configKeys:n})]})})},Q=n(77918),ee="medium",et=function(e,t,n){switch(t){case"light":if("input"!==e)return!0;var r=n?(0,Q.kv)(n):"";if(!r)return!1;if(["password","hidden","email","tel"].includes(r)||n.autocomplete.startsWith("cc-"))return!0;return!1;case"medium":case"conservative":return!0;default:return et(e,ee,n)}},en=function(e,t,n){var r,i,o;if(void 0===t&&(t={defaultMaskLevel:ee}),n){if(n.closest("."+B)||(null!==(r=t.maskSelector)&&void 0!==r?r:[]).some(function(e){return n.closest(e)}))return!0;if(n.closest(".amp-unmask")||(null!==(i=t.unmaskSelector)&&void 0!==i?i:[]).some(function(e){return n.closest(e)}))return!1}return et(e,null!==(o=t.defaultMaskLevel)&&void 0!==o?o:ee,n)},er=function(e,t){return function(n,r){return en(e,t,r)?n.replace(/[^\s]/g,"*"):n}},ei=function(e){var t=0;if(0===e.length)return t;for(var n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return t},eo=function(){var e=(0,q.l)();return(null==e?void 0:e.location)?e.location.href:""},es=function(e,t){return t||(e===x.STAGING?"https://api-sr.stag2.amplitude.com/sessions/v2/track":e===x.EU?"https://api-sr.eu.amplitude.com/sessions/v2/track":"https://api-sr.amplitude.com/sessions/v2/track")},ea=function(){return(0,I.mG)(void 0,void 0,void 0,function(){var e,t,n,r;return(0,I.Jh)(this,function(i){switch(i.label){case 0:if(i.trys.push([0,3,,4]),!(e=(0,q.l)()))return[3,2];return[4,e.navigator.storage.estimate()];case 1:return n=(t=i.sent()).usage,r=t.quota,[2,{totalStorageSize:n?Math.round(n/1024):0,percentOfQuota:n&&r?Math.round((n/r+Number.EPSILON)*1e3)/1e3:0,usageDetails:JSON.stringify(t.usageDetails)}];case 2:return[3,4];case 3:return i.sent(),[3,4];case 4:return[2,{totalStorageSize:0,percentOfQuota:0,usageDetails:""}]}})})},el=function(e){var t=(0,I.pi)({},e),n=t.apiKey;return t.apiKey="****".concat(n.substring(n.length-4)),t},eu=function(e,t){var n=document.createDocumentFragment(),r=function(e){if(void 0===e&&(e=[]),"string"==typeof e&&(e=[e]),0!==(e=e.filter(function(e){try{n.querySelector(e)}catch(n){return t.warn('[session-replay-browser] omitting selector "'.concat(e,'" because it is invalid')),!1}return!0})).length)return e};return e.blockSelector=r(e.blockSelector),e.maskSelector=r(e.maskSelector),e.unmaskSelector=r(e.unmaskSelector),e},ec=function(){function e(e,t){this.localConfig=t,this.remoteConfigFetch=e}return e.prototype.generateJoinedConfig=function(e){var t,n,r;return(0,I.mG)(this,void 0,void 0,function(){var i,o,s,a,l,u,c,d,f,h,p,m,g,v,y,b,w,x,S,k;return(0,I.Jh)(this,function(E){switch(E.label){case 0:(i=(0,I.pi)({},this.localConfig)).optOut=this.localConfig.optOut,i.captureEnabled=!0,E.label=1;case 1:return E.trys.push([1,6,,7]),[4,this.remoteConfigFetch.getRemoteConfig("sessionReplay","sr_sampling_config",e)];case 2:return s=E.sent(),[4,this.remoteConfigFetch.getRemoteConfig("sessionReplay","sr_privacy_config",e)];case 3:return a=E.sent(),l=i,[4,this.remoteConfigFetch.getRemoteConfig("sessionReplay","sr_interaction_config",e)];case 4:return l.interactionConfig=E.sent(),u=i,[4,this.remoteConfigFetch.getRemoteConfig("sessionReplay","sr_logging_config",e)];case 5:return u.loggingConfig=E.sent(),(s||a)&&(o={},s&&(o.sr_sampling_config=s),a&&(o.sr_privacy_config=a)),[3,7];case 6:return c=E.sent(),this.localConfig.loggerProvider.warn(c.message),i.captureEnabled=!1,[3,7];case 7:if(!o)return[2,i];if(d=o.sr_sampling_config,f=o.sr_privacy_config,d&&Object.keys(d).length>0?(Object.prototype.hasOwnProperty.call(d,"capture_enabled")?i.captureEnabled=d.capture_enabled:i.captureEnabled=!1,Object.prototype.hasOwnProperty.call(d,"sample_rate")&&(i.sampleRate=d.sample_rate)):(i.captureEnabled=!0,this.localConfig.loggerProvider.debug("Remote config successfully fetched, but no values set for project, Session Replay capture enabled.")),f){h=null!==(t=i.privacyConfig)&&void 0!==t?t:{},p={defaultMaskLevel:null!==(r=null!==(n=f.defaultMaskLevel)&&void 0!==n?n:h.defaultMaskLevel)&&void 0!==r?r:"medium",blockSelector:[],maskSelector:[],unmaskSelector:[]},m=function(e){var t,n,r,i,o,s,a,l,u,c={};"string"==typeof e.blockSelector&&(e.blockSelector=[e.blockSelector]);try{for(var d=(0,I.XA)(null!==(a=e.blockSelector)&&void 0!==a?a:[]),f=d.next();!f.done;f=d.next()){var h=f.value;c[h]="block"}}catch(e){t={error:e}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(t)throw t.error}}try{for(var p=(0,I.XA)(null!==(l=e.maskSelector)&&void 0!==l?l:[]),m=p.next();!m.done;m=p.next()){var h=m.value;c[h]="mask"}}catch(e){r={error:e}}finally{try{m&&!m.done&&(i=p.return)&&i.call(p)}finally{if(r)throw r.error}}try{for(var g=(0,I.XA)(null!==(u=e.unmaskSelector)&&void 0!==u?u:[]),v=g.next();!v.done;v=g.next()){var h=v.value;c[h]="unmask"}}catch(e){o={error:e}}finally{try{v&&!v.done&&(s=g.return)&&s.call(g)}finally{if(o)throw o.error}}return c},g=(0,I.pi)((0,I.pi)({},m(h)),m(f));try{for(y=(v=(0,I.XA)(Object.entries(g))).next();!y.done;y=v.next())w=(b=(0,I.CR)(y.value,2))[0],x=b[1],"mask"===x?p.maskSelector.push(w):"block"===x?p.blockSelector.push(w):"unmask"===x&&p.unmaskSelector.push(w)}catch(e){S={error:e}}finally{try{y&&!y.done&&(k=v.return)&&k.call(v)}finally{if(S)throw S.error}}i.privacyConfig=eu(p,this.localConfig.loggerProvider)}return this.localConfig.loggerProvider.debug(JSON.stringify({name:"session replay joined config",config:el(i)},null,2)),[2,i]}})})},e}(),ed=n(35077),ef=n(98018),eh="Failed to store session replay events in IndexedDB",ep="1.22.5",em=function(){function e(e){var t=e.trackServerUrl,n=e.loggerProvider,r=e.payloadBatcher;this.storageKey="",this.retryTimeout=1e3,this.scheduled=null,this.queue=[],this.loggerProvider=n,this.payloadBatcher=r||function(e){return e},this.trackServerUrl=t}return e.prototype.sendEventsList=function(e){this.addToQueue((0,I.pi)((0,I.pi)({},e),{attempts:0,timeout:0}))},e.prototype.addToQueue=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];t.filter(function(t){return t.attempts<(t.flushMaxRetries||0)?(t.attempts+=1,!0):(e.completeRequest({context:t,err:"Session replay event batch rejected due to exceeded retry count"}),!1)}).forEach(function(t){if(e.queue=e.queue.concat(t),0===t.timeout){e.schedule(0);return}setTimeout(function(){t.timeout=0,e.schedule(0)},t.timeout)})},e.prototype.schedule=function(e){var t=this;this.scheduled||(this.scheduled=setTimeout(function(){t.flush(!0).then(function(){t.queue.length>0&&t.schedule(e)})},e))},e.prototype.flush=function(e){return void 0===e&&(e=!1),(0,I.mG)(this,void 0,void 0,function(){var t,n,r=this;return(0,I.Jh)(this,function(i){switch(i.label){case 0:return t=[],n=[],this.queue.forEach(function(e){return 0===e.timeout?t.push(e):n.push(e)}),this.queue=n,this.scheduled&&(clearTimeout(this.scheduled),this.scheduled=null),[4,Promise.all(t.map(function(t){return r.send(t,e)}))];case 1:return i.sent(),[2]}})})},e.prototype.send=function(e,t){var n,r;return void 0===t&&(t=!0),(0,I.mG)(this,void 0,void 0,function(){var i,o,s,a,l,u,c,d,f,h,p,m;return(0,I.Jh)(this,function(g){switch(g.label){case 0:if(!(i=e.apiKey))return[2,this.completeRequest({context:e,err:"Session replay event batch not sent due to missing api key"})];if(!(o=e.deviceId))return[2,this.completeRequest({context:e,err:"Session replay event batch not sent due to missing device ID"})];if(s=eo(),a=ep,l=e.sampleRate,u=new URLSearchParams({device_id:o,session_id:"".concat(e.sessionId),type:"".concat(e.type)}),c="".concat((null===(n=e.version)||void 0===n?void 0:n.type)||"standalone","/").concat((null===(r=e.version)||void 0===r?void 0:r.version)||a),0===(d=this.payloadBatcher({version:1,events:e.events})).events.length)return this.completeRequest({context:e}),[2];g.label=1;case 1:return g.trys.push([1,3,,4]),f={headers:{"Content-Type":"application/json",Accept:"*/*",Authorization:"Bearer ".concat(i),"X-Client-Version":a,"X-Client-Library":c,"X-Client-Url":s.substring(0,1e3),"X-Client-Sample-Rate":"".concat(l)},body:JSON.stringify(d),method:"POST"},[4,fetch("".concat(es(e.serverZone,this.trackServerUrl),"?").concat(u.toString()),f)];case 2:if(null===(h=g.sent()))return this.completeRequest({context:e,err:"Unexpected error occurred"}),[2];if(t)this.handleReponse(h.status,e);else{p="";try{p=JSON.stringify(h.body,null,2)}catch(e){}this.completeRequest({context:e,success:"".concat(h.status,": ").concat(p)})}return[3,4];case 3:return m=g.sent(),this.completeRequest({context:e,err:m}),[3,4];case 4:return[2]}})})},e.prototype.handleReponse=function(e,t){switch(new ed.d().buildStatus(e)){case ef.q.Success:this.handleSuccessResponse(t);break;case ef.q.Failed:this.handleOtherResponse(t);break;default:this.completeRequest({context:t,err:"Network error occurred, event batch rejected"})}},e.prototype.handleSuccessResponse=function(e){var t=Math.round(new Blob(e.events).size/1024);this.completeRequest({context:e,success:"Session replay event batch tracked successfully for session id ".concat(e.sessionId,", size of events: ").concat(t," KB")})},e.prototype.handleOtherResponse=function(e){this.addToQueue((0,I.pi)((0,I.pi)({},e),{timeout:e.attempts*this.retryTimeout}))},e.prototype.completeRequest=function(e){var t=e.context,n=e.err,r=e.success;t.onComplete(),n?this.loggerProvider.warn(n):r&&this.loggerProvider.log(r)},e}();let eg=(e,t)=>t.some(t=>e instanceof t),ev=new WeakMap,ey=new WeakMap,eb=new WeakMap,ew={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return ev.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return ex(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function ex(e){var t;if(e instanceof IDBRequest)return function(e){let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(ex(e.result)),r()},o=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",o)});return eb.set(t,e),t}(e);if(ey.has(e))return ey.get(e);let n="function"==typeof(t=e)?(i||(i=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(eS(this),e),ex(this.request)}:function(...e){return ex(t.apply(eS(this),e))}:(t instanceof IDBTransaction&&function(e){if(ev.has(e))return;let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),r()},o=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)});ev.set(e,t)}(t),eg(t,r||(r=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(t,ew):t;return n!==e&&(ey.set(e,n),eb.set(n,e)),n}let eS=e=>eb.get(e),ek=["get","getKey","getAll","getAllKeys","count"],eE=["put","add","delete","clear"],e_=new Map;function eC(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(e_.get(t))return e_.get(t);let n=t.replace(/FromIndex$/,""),r=t!==n,i=eE.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||ek.includes(n)))return;let o=async function(e,...t){let o=this.transaction(e,i?"readwrite":"readonly"),s=o.store;return r&&(s=s.index(t.shift())),(await Promise.all([s[n](...t),i&&o.done]))[0]};return e_.set(t,o),o}ew={...o=ew,get:(e,t,n)=>eC(e,t)||o.get(e,t,n),has:(e,t)=>!!eC(e,t)||o.has(e,t)};let eO=["continue","continuePrimaryKey","advance"],eT={},eI=new WeakMap,eP=new WeakMap,eA={get(e,t){if(!eO.includes(t))return e[t];let n=eT[t];return n||(n=eT[t]=function(...e){eI.set(this,eP.get(this)[t](...e))}),n}};async function*eR(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;let n=new Proxy(t,eA);for(eP.set(n,t),eb.set(n,eS(t));t;)yield n,t=await (eI.get(n)||t.continue()),eI.delete(n)}function eM(e,t){return t===Symbol.asyncIterator&&eg(e,[IDBIndex,IDBObjectStore,IDBCursor])||"iterate"===t&&eg(e,[IDBIndex,IDBObjectStore])}ew={...s=ew,get:(e,t,n)=>eM(e,t)?eR:s.get(e,t,n),has:(e,t)=>eM(e,t)||s.has(e,t)};var ej=function(){function e(e){var t,n,r,i=this;this.minInterval=500,this.maxInterval=1e4,this.maxPersistedEventsSize=1e6,this.interval=this.minInterval,this._timeAtLastSplit=Date.now(),this.shouldSplitEventsList=function(e,t){var n=new Blob([t]).size;return new Blob(e).size+n>=i.maxPersistedEventsSize||Date.now()-i.timeAtLastSplit>i.interval&&!!e.length&&(i.interval=Math.min(i.maxInterval,i.interval+i.minInterval),i._timeAtLastSplit=Date.now(),!0)},this.loggerProvider=e.loggerProvider,this.minInterval=null!==(t=e.minInterval)&&void 0!==t?t:this.minInterval,this.maxInterval=null!==(n=e.maxInterval)&&void 0!==n?n:this.maxInterval,this.maxPersistedEventsSize=null!==(r=e.maxPersistedEventsSize)&&void 0!==r?r:this.maxPersistedEventsSize}return Object.defineProperty(e.prototype,"timeAtLastSplit",{get:function(){return this._timeAtLastSplit},enumerable:!1,configurable:!0}),e}();(d=_||(_={})).RECORDING="recording",d.SENT="sent";var eN="sessionCurrentSequence",eD="sequencesToSend",eL=function(){var e=(0,q.l)();return new Promise(function(t,n){if(!e)return n(Error("Global scope not found"));if(!e.indexedDB)return n(Error("Session Replay: cannot find indexedDB"));try{var r=e.indexedDB.open("keyval-store");r.onupgradeneeded=function(){1===r.result.version&&(r.result.close(),r.transaction&&r.transaction.abort(),e.indexedDB.deleteDatabase("keyval-store"),t())},r.onsuccess=function(){t(r.result)}}catch(e){n(e)}})},ez=function(e){return(0,I.mG)(void 0,void 0,void 0,function(){return(0,I.Jh)(this,function(t){switch(t.label){case 0:if(!(e.length>0))return[3,2];return[4,Promise.all(e.splice(0,10))];case 1:return t.sent(),[3,0];case 2:return[2]}})})},eF=function(e){var t,n;return e.objectStoreNames.contains(eN)||(n=e.createObjectStore(eN,{keyPath:"sessionId"})),e.objectStoreNames.contains(eD)||(t=e.createObjectStore(eD,{keyPath:"sequenceId",autoIncrement:!0})).createIndex("sessionId","sessionId"),{sequencesStore:t,currentSequenceStore:n}},eB=function(e){function t(t){var n=e.call(this,t)||this;return n.getSequencesToSend=function(){return(0,I.mG)(n,void 0,void 0,function(){var e,t,n,r,i,o;return(0,I.Jh)(this,function(s){switch(s.label){case 0:return s.trys.push([0,5,,6]),e=[],[4,this.db.transaction("sequencesToSend").store.openCursor()];case 1:t=s.sent(),s.label=2;case 2:if(!t)return[3,4];return r=(n=t.value).sessionId,i=n.events,e.push({events:i,sequenceId:t.key,sessionId:r}),[4,t.continue()];case 3:return t=s.sent(),[3,2];case 4:return[2,e];case 5:return o=s.sent(),this.loggerProvider.warn("".concat(eh,": ").concat(o)),[3,6];case 6:return[2,void 0]}})})},n.storeCurrentSequence=function(e){return(0,I.mG)(n,void 0,void 0,function(){var t,n,r;return(0,I.Jh)(this,function(i){switch(i.label){case 0:return i.trys.push([0,4,,5]),[4,this.db.get(eN,e)];case 1:if(!(t=i.sent()))return[2,void 0];return[4,this.db.put(eD,{sessionId:e,events:t.events})];case 2:return n=i.sent(),[4,this.db.put(eN,{sessionId:e,events:[]})];case 3:return i.sent(),[2,(0,I.pi)((0,I.pi)({},t),{sessionId:e,sequenceId:n})];case 4:return r=i.sent(),this.loggerProvider.warn("".concat(eh,": ").concat(r)),[3,5];case 5:return[2,void 0]}})})},n.addEventToCurrentSequence=function(e,t){return(0,I.mG)(n,void 0,void 0,function(){var n,r,i,o,s,a;return(0,I.Jh)(this,function(l){switch(l.label){case 0:return l.trys.push([0,10,,11]),[4,(n=this.db.transaction(eN,"readwrite")).store.get(e)];case 1:if(r=l.sent())return[3,3];return[4,n.store.put({sessionId:e,events:[t]})];case 2:return l.sent(),[2];case 3:if(i=void 0,!this.shouldSplitEventsList(r.events,t))return[3,5];return i=r.events,[4,n.store.put({sessionId:e,events:[t]})];case 4:return l.sent(),[3,7];case 5:return o=r.events.concat(t),[4,n.store.put({sessionId:e,events:o})];case 6:l.sent(),l.label=7;case 7:return[4,n.done];case 8:if(l.sent(),!i)return[2,void 0];return[4,this.storeSendingEvents(e,i)];case 9:if(!(s=l.sent()))return[2,void 0];return[2,{events:i,sessionId:e,sequenceId:s}];case 10:return a=l.sent(),this.loggerProvider.warn("".concat(eh,": ").concat(a)),[3,11];case 11:return[2,void 0]}})})},n.storeSendingEvents=function(e,t){return(0,I.mG)(n,void 0,void 0,function(){var n;return(0,I.Jh)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.db.put(eD,{sessionId:e,events:t})];case 1:return[2,r.sent()];case 2:return n=r.sent(),this.loggerProvider.warn("".concat(eh,": ").concat(n)),[3,3];case 3:return[2,void 0]}})})},n.cleanUpSessionEventsStore=function(e,t){return(0,I.mG)(n,void 0,void 0,function(){var e;return(0,I.Jh)(this,function(n){switch(n.label){case 0:if(!t)return[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.db.delete(eD,t)];case 2:return n.sent(),[3,4];case 3:return e=n.sent(),this.loggerProvider.warn("".concat(eh,": ").concat(e)),[3,4];case 4:return[2]}})})},n.transitionFromKeyValStore=function(e){return(0,I.mG)(n,void 0,void 0,function(){var t,n,r,i,o,s,a,l=this;return(0,I.Jh)(this,function(u){switch(u.label){case 0:return u.trys.push([0,6,,7]),[4,eL()];case 1:if(!(t=u.sent()))return[2];n=function(e,t){return(0,I.mG)(l,void 0,void 0,function(){var n,r,i=this;return(0,I.Jh)(this,function(o){switch(o.label){case 0:return n=t.sessionSequences,r=[],Object.keys(n).forEach(function(o){var s=parseInt(o,10),a=n[s];if(s===t.currentSequenceId){var l=a.events.map(function(t){return(0,I.mG)(i,void 0,void 0,function(){return(0,I.Jh)(this,function(n){return[2,this.addEventToCurrentSequence(e,t)]})})});r.concat(l)}else a.status!==_.SENT&&r.push(i.storeSendingEvents(e,a.events))}),[4,ez(r)];case 1:return o.sent(),[2]}})})},r="".concat(N.f1,"_").concat(this.apiKey.substring(0,10)),u.label=2;case 2:return u.trys.push([2,4,,5]),i=t.transaction("keyval").objectStore("keyval").getAll(r),[4,new Promise(function(t){i.onsuccess=function(r){return(0,I.mG)(l,void 0,void 0,function(){var i,o,s,a=this;return(0,I.Jh)(this,function(l){switch(l.label){case 0:if(!(o=(i=r&&r.target.result)&&i[0]))return[3,2];return s=[],Object.keys(o).forEach(function(t){var r=parseInt(t,10),i=o[r];if(e===r)s.push(n(r,i));else{var l=i.sessionSequences;Object.keys(l).forEach(function(e){var t=parseInt(e,10);l[t].status!==_.SENT&&s.push(a.storeSendingEvents(r,l[t].events))})}}),[4,ez(s)];case 1:l.sent(),l.label=2;case 2:return t(),[2]}})})}})];case 3:return u.sent(),(o=(0,q.l)())&&o.indexedDB.deleteDatabase("keyval-store"),[3,5];case 4:return s=u.sent(),this.loggerProvider.warn("Failed to transition session replay events from keyval to new store: ".concat(s)),[3,5];case 5:return[3,7];case 6:return a=u.sent(),this.loggerProvider.warn("Failed to access keyval store: ".concat(a,". For more information, visit: https://www.docs.developers.amplitude.com/session-replay/sdks/standalone/#indexeddb-best-practices")),[3,7];case 7:return[2]}})})},n.apiKey=t.apiKey,n.db=t.db,n}return(0,I.ZT)(t,e),t.new=function(e,n,r){return(0,I.mG)(this,void 0,void 0,function(){var i,o,s,a;return(0,I.Jh)(this,function(l){switch(l.label){case 0:var u;return l.trys.push([0,3,,4]),i="replay"===e?"":"_".concat(e),[4,(u="".concat(n.apiKey.substring(0,10),"_amp_session_replay_events").concat(i),(0,I.mG)(void 0,void 0,void 0,function(){return(0,I.Jh)(this,function(e){switch(e.label){case 0:return[4,function(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){let s=indexedDB.open(e,1),a=ex(s);return r&&s.addEventListener("upgradeneeded",e=>{r(ex(s.result),e.oldVersion,e.newVersion,ex(s.transaction),e)}),n&&s.addEventListener("blocked",e=>n(e.oldVersion,e.newVersion,e)),a.then(e=>{o&&e.addEventListener("close",()=>o()),i&&e.addEventListener("versionchange",e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),a}(u,0,{upgrade:eF})];case 1:return[2,e.sent()]}})}))];case 1:return o=l.sent(),[4,(s=new t((0,I.pi)((0,I.pi)({},n),{db:o}))).transitionFromKeyValStore(r)];case 2:return l.sent(),[2,s];case 3:return a=l.sent(),n.loggerProvider.warn("".concat(eh,": ").concat(a)),[3,4];case 4:return[2]}})})},t.prototype.getCurrentSequenceEvents=function(e){return(0,I.mG)(this,void 0,void 0,function(){var t,n,r,i,o,s;return(0,I.Jh)(this,function(a){switch(a.label){case 0:if(!e)return[3,2];return[4,this.db.get("sessionCurrentSequence",e)];case 1:if(!(t=a.sent()))return[2,void 0];return[2,[t]];case 2:n=[],a.label=3;case 3:return a.trys.push([3,8,9,10]),[4,this.db.getAll("sessionCurrentSequence")];case 4:i=(r=I.XA.apply(void 0,[a.sent()])).next(),a.label=5;case 5:if(i.done)return[3,7];t=i.value,n.push(t),a.label=6;case 6:return i=r.next(),[3,5];case 7:return[3,10];case 8:return o={error:a.sent()},[3,10];case 9:try{i&&!i.done&&(s=r.return)&&s.call(r)}finally{if(o)throw o.error}return[7];case 10:return[2,n]}})})},t}(ej),e$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.finalizedSequences={},t.sequences={},t.sequenceId=0,t}return(0,I.ZT)(t,e),t.prototype.resetCurrentSequence=function(e){this.sequences[e]=[]},t.prototype.addSequence=function(e){var t=this.sequenceId++,n=(0,I.ev)([],(0,I.CR)(this.sequences[e]),!1);return this.finalizedSequences[t]={sessionId:e,events:n},this.resetCurrentSequence(e),{sequenceId:t,events:n,sessionId:e}},t.prototype.getSequencesToSend=function(){return(0,I.mG)(this,void 0,void 0,function(){return(0,I.Jh)(this,function(e){return[2,Object.entries(this.finalizedSequences).map(function(e){var t=(0,I.CR)(e,2),n=t[0],r=t[1],i=r.sessionId,o=r.events;return{sequenceId:Number(n),sessionId:i,events:o}})]})})},t.prototype.storeCurrentSequence=function(e){return(0,I.mG)(this,void 0,void 0,function(){return(0,I.Jh)(this,function(t){return this.sequences[e]?[2,this.addSequence(e)]:[2,void 0]})})},t.prototype.addEventToCurrentSequence=function(e,t){return(0,I.mG)(this,void 0,void 0,function(){var n;return(0,I.Jh)(this,function(r){return this.sequences[e]||this.resetCurrentSequence(e),this.shouldSplitEventsList(this.sequences[e],t)&&(n=this.addSequence(e)),this.sequences[e].push(t),[2,n]})})},t.prototype.storeSendingEvents=function(e,t){return(0,I.mG)(this,void 0,void 0,function(){return(0,I.Jh)(this,function(n){return this.finalizedSequences[this.sequenceId]={sessionId:e,events:t},[2,this.sequenceId++]})})},t.prototype.cleanUpSessionEventsStore=function(e,t){return(0,I.mG)(this,void 0,void 0,function(){return(0,I.Jh)(this,function(e){return void 0!==t&&delete this.finalizedSequences[t],[2]})})},t}(ej),eU=function(e){var t=e.config,n=e.sessionId,r=e.minInterval,i=e.maxInterval,o=e.type,s=e.payloadBatcher,a=e.storeType;return(0,I.mG)(void 0,void 0,void 0,function(){var e,l,u,c,d,f;function h(t){return void 0===t&&(t=!1),(0,I.mG)(this,void 0,void 0,function(){return(0,I.Jh)(this,function(n){return[2,e.flush(t)]})})}return(0,I.Jh)(this,function(p){switch(p.label){case 0:if(e=new em((0,I.pi)((0,I.pi)({},t),{loggerProvider:t.loggerProvider,payloadBatcher:s})),l=function(){return new e$({loggerProvider:t.loggerProvider,maxInterval:i,minInterval:r})},u=function(){return(0,I.mG)(void 0,void 0,void 0,function(){var e;return(0,I.Jh)(this,function(s){switch(s.label){case 0:return[4,eB.new(o,{loggerProvider:t.loggerProvider,minInterval:r,maxInterval:i,apiKey:t.apiKey},n)];case 1:return e=s.sent(),t.loggerProvider.log("Failed to initialize idb store, falling back to memory store."),[2,null!=e?e:l()]}})})},"idb"!==a)return[3,2];return[4,u()];case 1:return d=p.sent(),[3,3];case 2:d=l(),p.label=3;case 3:return c=d,f=function(n){var r=n.events,i=n.sessionId,s=n.deviceId,a=n.sequenceId;t.debugMode&&ea().then(function(e){var n=e.totalStorageSize,r=e.percentOfQuota,i=e.usageDetails;t.loggerProvider.debug("Total storage size: ".concat(n," KB, percentage of quota: ").concat(r,"%, usage details: ").concat(i))}).catch(function(){}),e.sendEventsList({events:r,sessionId:i,flushMaxRetries:t.flushMaxRetries,apiKey:t.apiKey,deviceId:s,sampleRate:t.sampleRate,serverZone:t.serverZone,version:t.version,type:o,onComplete:function(){return(0,I.mG)(void 0,void 0,void 0,function(){return(0,I.Jh)(this,function(e){switch(e.label){case 0:return[4,c.cleanUpSessionEventsStore(i,a)];case 1:return e.sent(),[2]}})})}})},[2,{sendCurrentSequenceEvents:function(e){var n=e.sessionId,r=e.deviceId;c.storeCurrentSequence(n).then(function(e){e&&f({sequenceId:e.sequenceId,events:e.events,sessionId:e.sessionId,deviceId:r})}).catch(function(e){t.loggerProvider.warn("Failed to get current sequence of session replay events for session:",e)})},addEvent:function(e){var n=e.event,r=e.sessionId,i=e.deviceId;c.addEventToCurrentSequence(r,n.data).then(function(e){return e&&f({sequenceId:e.sequenceId,events:e.events,sessionId:e.sessionId,deviceId:i})}).catch(function(e){t.loggerProvider.warn("Failed to add event to session replay capture:",e)})},sendStoredEvents:function(e){var t=e.deviceId;return(0,I.mG)(void 0,void 0,void 0,function(){var e;return(0,I.Jh)(this,function(n){switch(n.label){case 0:return[4,c.getSequencesToSend()];case 1:return(e=n.sent())&&e.forEach(function(e){f({sequenceId:e.sequenceId,events:e.events,sessionId:e.sessionId,deviceId:t})}),[2]}})})},flush:h}]}})})},eV=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=new Map;e.forEach(function(e){n.set(e.name,e.manager)}),this.managers=n}return e.prototype.sendStoredEvents=function(e){return(0,I.mG)(this,void 0,void 0,function(){var t;return(0,I.Jh)(this,function(n){switch(n.label){case 0:return t=[],this.managers.forEach(function(n){t.push(n.sendStoredEvents(e))}),[4,Promise.all(t)];case 1:return n.sent(),[2]}})})},e.prototype.addEvent=function(e){var t,n=e.sessionId,r=e.event,i=e.deviceId;null===(t=this.managers.get(r.type))||void 0===t||t.addEvent({sessionId:n,event:r,deviceId:i})},e.prototype.sendCurrentSequenceEvents=function(e){var t=e.sessionId,n=e.deviceId;this.managers.forEach(function(e){e.sendCurrentSequenceEvents({sessionId:t,deviceId:n})})},e.prototype.flush=function(e){return(0,I.mG)(this,void 0,void 0,function(){var t;return(0,I.Jh)(this,function(n){switch(n.label){case 0:return t=[],this.managers.forEach(function(n){t.push(n.flush(e))}),[4,Promise.all(t)];case 1:return n.sent(),[2]}})})},e}(),eq=((f=eq||{})[f.DomContentLoaded=0]="DomContentLoaded",f[f.Load=1]="Load",f[f.FullSnapshot=2]="FullSnapshot",f[f.IncrementalSnapshot=3]="IncrementalSnapshot",f[f.Meta=4]="Meta",f[f.Custom=5]="Custom",f[f.Plugin=6]="Plugin",f),eW=((h=eW||{})[h.Mutation=0]="Mutation",h[h.MouseMove=1]="MouseMove",h[h.MouseInteraction=2]="MouseInteraction",h[h.Scroll=3]="Scroll",h[h.ViewportResize=4]="ViewportResize",h[h.Input=5]="Input",h[h.TouchMove=6]="TouchMove",h[h.MediaInteraction=7]="MediaInteraction",h[h.StyleSheetRule=8]="StyleSheetRule",h[h.CanvasMutation=9]="CanvasMutation",h[h.Font=10]="Font",h[h.Log=11]="Log",h[h.Drag=12]="Drag",h[h.StyleDeclaration=13]="StyleDeclaration",h[h.Selection=14]="Selection",h[h.AdoptedStyleSheet=15]="AdoptedStyleSheet",h[h.CustomElement=16]="CustomElement",h),eH=((p=eH||{})[p.MouseUp=0]="MouseUp",p[p.MouseDown=1]="MouseDown",p[p.Click=2]="Click",p[p.ContextMenu=3]="ContextMenu",p[p.DblClick=4]="DblClick",p[p.Focus=5]="Focus",p[p.Blur=6]="Blur",p[p.TouchStart=7]="TouchStart",p[p.TouchMove_Departed=8]="TouchMove_Departed",p[p.TouchEnd=9]="TouchEnd",p[p.TouchCancel=10]="TouchCancel",p),eG=((m=eG||{})[m.Mouse=0]="Mouse",m[m.Pen=1]="Pen",m[m.Touch=2]="Touch",m),eZ=((g=eZ||{})[g["2D"]=0]="2D",g[g.WebGL=1]="WebGL",g[g.WebGL2=2]="WebGL2",g),eK=((v=eK||{})[v.Play=0]="Play",v[v.Pause=1]="Pause",v[v.Seeked=2]="Seeked",v[v.VolumeChange=3]="VolumeChange",v[v.RateChange=4]="RateChange",v),eY=((y=eY||{}).Start="start",y.Pause="pause",y.Resume="resume",y.Resize="resize",y.Finish="finish",y.FullsnapshotRebuilded="fullsnapshot-rebuilded",y.LoadStylesheetStart="load-stylesheet-start",y.LoadStylesheetEnd="load-stylesheet-end",y.SkipStart="skip-start",y.SkipEnd="skip-end",y.MouseInteraction="mouse-interaction",y.EventCast="event-cast",y.CustomEvent="custom-event",y.Flush="flush",y.StateChange="state-change",y.PlayBack="play-back",y.Destroy="destroy",y),eJ=((b=eJ||{})[b.Document=0]="Document",b[b.DocumentType=1]="DocumentType",b[b.Element=2]="Element",b[b.Text=3]="Text",b[b.CDATA=4]="CDATA",b[b.Comment=5]="Comment",b);function eX(e,t,n){for(var r=null,i=[],o=e,s=0;o&&"break"!==function(){var e,a,l,u,c=new Date().getTime()-T.getTime();if(void 0!==C.timeoutMs&&c>C.timeoutMs)throw Error("Timeout: Can't find a unique selector after ".concat(c,"ms"));var d=e6((e=o.getAttribute("id"))&&C.idName(e)?{name:"#"+CSS.escape(e),penalty:0}:null)||e6.apply(void 0,(0,I.ev)([],(0,I.CR)(Array.from(o.attributes).filter(function(e){return C.attr(e.name,e.value)}).map(function(e){return{name:"[".concat(CSS.escape(e.name),'="').concat(CSS.escape(e.value),'"]'),penalty:.5}})),!1))||e6.apply(void 0,(0,I.ev)([],(0,I.CR)(Array.from(o.classList).filter(C.className).map(function(e){return{name:"."+CSS.escape(e),penalty:1}})),!1))||e6((a=o.tagName.toLowerCase(),C.tagName(a)?{name:a,penalty:2}:null))||[e3()],f=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)f&&(d=d.concat(d.filter(e4).map(function(e){return e5(e,f)})));else if("two"==t)d=d.slice(0,1),f&&(d=d.concat(d.filter(e4).map(function(e){return e5(e,f)})));else if("one"==t){var h=(0,I.CR)(d=d.slice(0,1),1)[0];f&&e4(h)&&(d=[e5(h,f)])}else"none"==t&&(d=[e3()],f&&(d=[e5(d[0],f)]));try{for(var p=(l=void 0,(0,I.XA)(d)),m=p.next();!m.done;m=p.next()){var h=m.value;h.level=s}}catch(e){l={error:e}}finally{try{m&&!m.done&&(u=p.return)&&u.call(p)}finally{if(l)throw l.error}}if(i.push(d),i.length>=C.seedMinLength&&(r=eQ(i,n)))return"break";o=o.parentElement,s++}(););return(r||(r=eQ(i,n)),!r&&n)?n():r}function eQ(e,t){var n,r,i=e8(function e(t,n){var r,i,o,s,a;return void 0===n&&(n=[]),(0,I.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,I.XA)(t[0])).next(),l.label=2;case 2:if(i.done)return[3,5];return o=i.value,[5,(0,I.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 s={error:l.sent()},[3,8];case 7:try{i&&!i.done&&(a=r.return)&&a.call(r)}finally{if(s)throw s.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));if(i.length>C.threshold)return t?t():null;try{for(var o=(0,I.XA)(i),s=o.next();!s.done;s=o.next()){var a=s.value;if(e2(a))return a}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}function e0(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 e1(e){return e.map(function(e){return e.penalty}).reduce(function(e,t){return e+t},0)}function e2(e){var t=e0(e);switch(O.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 e3(){return{name:"*",penalty:3}}function e5(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function e4(e){return"html"!==e.name&&!e.name.startsWith("#")}function e6(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter(e9);return n.length>0?n:null}function e9(e){return null!=e}function e8(e){return(0,I.ev)([],(0,I.CR)(e),!1).sort(function(e,t){return e1(e)-e1(t)})}var e7=function(e){var t=e.version,n=e.events,r=[];return n.forEach(function(e){var t=JSON.parse(e);t.count=1,"click"===t.type&&r.push(t)}),{version:t,events:r}},te=function(e){var t=e.version,n=e.events,r=[];return n.forEach(function(e){var t=JSON.parse(e);"click"===t.type&&r.push(t)}),{version:t,events:Object.values(r.reduce(function(e,t){var n=t.x,r=t.y,i=t.selector,o=t.timestamp,s=o-o%36e5,a="".concat(n,":").concat(r,":").concat(null!=i?i:"",":").concat(s);return e[a]?e[a].count+=1:e[a]=(0,I.pi)((0,I.pi)({},t),{timestamp:s,count:1}),e},{}))}},tt=function(e,t){var n=t.eventsManager,r=t.sessionId,i=t.deviceIdFn;return function(t){if(t.type===eH.Click){var o,s=(0,q.l)();if(s){var a=s.location,l=s.innerHeight,u=s.innerWidth;if(a){var c=t.x,d=t.y;if(void 0!==c&&void 0!==d){var f=G.IM.mirror.getNode(t.id);if(f)try{o=function(e,t){if(T=new Date,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,timeoutMs:void 0};O=(n=(C=(0,I.pi)((0,I.pi)({},r),void 0)).root).nodeType===Node.DOCUMENT_NODE?n:n===r.root?n.ownerDocument:n;var i=eX(e,"all",function(){return eX(e,"two",function(){return eX(e,"one",function(){return eX(e,"none")})})});if(i){var o=e8(function e(t,n,r){var i,o,s;return void 0===r&&(r={counter:0,visited:new Map}),(0,I.Jh)(this,function(a){switch(a.label){case 0:if(!(t.length>2&&t.length>C.optimizedMinLength))return[3,5];i=1,a.label=1;case 1:var l;if(!(i<t.length-1))return[3,5];if(r.counter>C.maxNumberOfTries||(r.counter+=1,(o=(0,I.ev)([],(0,I.CR)(t),!1)).splice(i,1),s=e0(o),r.visited.has(s)))return[2];if(!(e2(o)&&(l=o,O.querySelector(e0(l))===n)))return[3,4];return[4,o];case 2:return a.sent(),r.visited.set(s,!0),[5,(0,I.XA)(e(o,n,r))];case 3:a.sent(),a.label=4;case 4:return i++,[3,1];case 5:return[2]}})}(i,e));return o.length>0&&(i=o[0]),e0(i)}throw Error("Selector was not found.")}(f)}catch(t){e.debug("error resolving selector from finder")}var h=G.P6.getWindowScroll(s),p={x:c+h.left,y:d+h.top,selector:o,viewportHeight:l,viewportWidth:u,pageUrl:a.href,timestamp:Date.now(),type:"click"},m=i();m&&n.addEvent({sessionId:r,event:{type:"interaction",data:JSON.stringify(p)},deviceId:m})}}}}}},tn=function(){function e(e,t){var n=(0,q.l)();n&&n.navigator&&"function"==typeof n.navigator.sendBeacon?this.sendBeacon=function(e,t){try{if(n.navigator.sendBeacon(e,JSON.stringify(t)))return!0}catch(e){}return!1}:this.sendBeacon=function(){return!1},this.sendXhr=function(e,t){var n=new XMLHttpRequest;return n.open("POST",e,!0),n.setRequestHeader("Accept","*/*"),n.send(JSON.stringify(t)),!0},this.basePageUrl=es(t.serverZone,t.trackServerUrl),this.apiKey=t.apiKey,this.context=e}return e.prototype.send=function(e,t){var n=this.context,r=n.sessionId,i=n.type,o=new URLSearchParams({device_id:e,session_id:String(r),type:String(i),api_key:this.apiKey}),s="".concat(this.basePageUrl,"?").concat(o.toString());this.sendBeacon(s,t)||this.sendXhr(s,t)},e}(),tr=G.P6.getWindowHeight,ti=G.P6.getWindowWidth,to=function(){function e(e){var t=this;this.timestamp=Date.now(),this.hook=function(e){t.update(e)},this.send=function(e){return function(n){var r=e(),i=(0,q.l)();i&&r&&t.transport.send(r,{version:1,events:[{maxScrollX:t._maxScrollX,maxScrollY:t._maxScrollY,maxScrollWidth:t._maxScrollWidth,maxScrollHeight:t._maxScrollHeight,viewportHeight:tr(),viewportWidth:ti(),pageUrl:i.location.href,timestamp:t.timestamp,type:"scroll"}]})}},this._maxScrollX=0,this._maxScrollY=0,this._maxScrollWidth=ti(),this._maxScrollHeight=tr(),this.transport=e}return e.default=function(t,n){return new e(new tn(t,n))},Object.defineProperty(e.prototype,"maxScrollX",{get:function(){return this._maxScrollX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollY",{get:function(){return this._maxScrollY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollWidth",{get:function(){return this._maxScrollWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollHeight",{get:function(){return this._maxScrollHeight},enumerable:!1,configurable:!0}),e.prototype.update=function(e){var t=Date.now();if(e.x>this._maxScrollX){var n=ti();this._maxScrollX=e.x;var r=e.x+n;r>this._maxScrollWidth&&(this._maxScrollWidth=r),this.timestamp=t}if(e.y>this._maxScrollY){var i=tr();this._maxScrollY=e.y;var o=e.y+i;o>this._maxScrollHeight&&(this._maxScrollHeight=o),this.timestamp=t}},e}(),ts=function(e){var t=e.sessionId,n=e.deviceId;this.deviceId=n,this.sessionId=t,t&&n&&(this.sessionReplayId="".concat(n,"/").concat(t))},ta=Uint8Array,tl=Uint16Array,tu=Uint32Array,tc=new ta([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),td=new ta([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),tf=new ta([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),th=function(e,t){for(var n=new tl(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new tu(n[30]),r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return[n,i]},tp=th(tc,2),tm=tp[0],tg=tp[1];tm[28]=258,tg[258]=28;for(var tv=th(td,0),ty=(tv[0],tv[1]),tb=new tl(32768),tw=0;tw<32768;++tw){var tx=(43690&tw)>>>1|(21845&tw)<<1;tx=(61680&(tx=(52428&tx)>>>2|(13107&tx)<<2))>>>4|(3855&tx)<<4,tb[tw]=((65280&tx)>>>8|(255&tx)<<8)>>>1}for(var tS=function(e,t,n){for(var r,i=e.length,o=0,s=new tl(t);o<i;++o)++s[e[o]-1];var a=new tl(t);for(o=0;o<t;++o)a[o]=a[o-1]+s[o-1]<<1;if(n){r=new tl(1<<t);var l=15-t;for(o=0;o<i;++o)if(e[o])for(var u=o<<4|e[o],c=t-e[o],d=a[e[o]-1]++<<c,f=d|(1<<c)-1;d<=f;++d)r[tb[d]>>>l]=u}else for(o=0,r=new tl(i);o<i;++o)r[o]=tb[a[e[o]-1]++]>>>15-e[o];return r},tk=new ta(288),tw=0;tw<144;++tw)tk[tw]=8;for(var tw=144;tw<256;++tw)tk[tw]=9;for(var tw=256;tw<280;++tw)tk[tw]=7;for(var tw=280;tw<288;++tw)tk[tw]=8;for(var tE=new ta(32),tw=0;tw<32;++tw)tE[tw]=5;var t_=tS(tk,9,0),tC=tS(tE,5,0),tO=function(e){return(e/8>>0)+(7&e&&1)},tT=function(e,t,n){(null==n||n>e.length)&&(n=e.length);var r=new(e instanceof tl?tl:e instanceof tu?tu:ta)(n-t);return r.set(e.subarray(t,n)),r},tI=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8},tP=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},tA=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,o=n.slice();if(!i)return[new ta(0),0];if(1==i){var s=new ta(n[0].s+1);return s[n[0].s]=1,[s,1]}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var a=n[0],l=n[1],u=0,c=1,d=2;for(n[0]={s:-1,f:a.f+l.f,l:a,r:l};c!=i-1;)a=n[n[u].f<n[d].f?u++:d++],l=n[u!=c&&n[u].f<n[d].f?u++:d++],n[c++]={s:-1,f:a.f+l.f,l:a,r:l};for(var f=o[0].s,r=1;r<i;++r)o[r].s>f&&(f=o[r].s);var h=new tl(f+1),p=tR(n[c-1],h,0);if(p>t){var r=0,m=0,g=p-t,v=1<<g;for(o.sort(function(e,t){return h[t.s]-h[e.s]||e.f-t.f});r<i;++r){var y=o[r].s;if(h[y]>t)m+=v-(1<<p-h[y]),h[y]=t;else break}for(m>>>=g;m>0;){var b=o[r].s;h[b]<t?m-=1<<t-h[b]++-1:++r}for(;r>=0&&m;--r){var w=o[r].s;h[w]==t&&(--h[w],++m)}p=t}return[new ta(h),p]},tR=function(e,t,n){return -1==e.s?Math.max(tR(e.l,t,n+1),tR(e.r,t,n+1)):t[e.s]=n},tM=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new tl(++t),r=0,i=e[0],o=1,s=function(e){n[r++]=e},a=1;a<=t;++a)if(e[a]==i&&a!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(i),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(i);o=1,i=e[a]}return[n.subarray(0,r),t]},tj=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},tN=function(e,t,n){var r=n.length,i=tO(t+2);e[i]=255&r,e[i+1]=r>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<r;++o)e[i+o+4]=n[o];return(i+4+r)*8},tD=function(e,t,n,r,i,o,s,a,l,u,c){tI(t,c++,n),++i[256];for(var d,f,h,p,m=tA(i,15),g=m[0],v=m[1],y=tA(o,15),b=y[0],w=y[1],x=tM(g),S=x[0],k=x[1],E=tM(b),_=E[0],C=E[1],O=new tl(19),T=0;T<S.length;++T)O[31&S[T]]++;for(var T=0;T<_.length;++T)O[31&_[T]]++;for(var I=tA(O,7),P=I[0],A=I[1],R=19;R>4&&!P[tf[R-1]];--R);var M=u+5<<3,j=tj(i,tk)+tj(o,tE)+s,N=tj(i,g)+tj(o,b)+s+14+3*R+tj(O,P)+(2*O[16]+3*O[17]+7*O[18]);if(M<=j&&M<=N)return tN(t,c,e.subarray(l,l+u));if(tI(t,c,1+(N<j)),c+=2,N<j){d=tS(g,v,0),f=g,h=tS(b,w,0),p=b;var D=tS(P,A,0);tI(t,c,k-257),tI(t,c+5,C-1),tI(t,c+10,R-4),c+=14;for(var T=0;T<R;++T)tI(t,c+3*T,P[tf[T]]);c+=3*R;for(var L=[S,_],z=0;z<2;++z)for(var F=L[z],T=0;T<F.length;++T){var B=31&F[T];tI(t,c,D[B]),c+=P[B],B>15&&(tI(t,c,F[T]>>>5&127),c+=F[T]>>>12)}}else d=t_,f=tk,h=tC,p=tE;for(var T=0;T<a;++T)if(r[T]>255){var B=r[T]>>>18&31;tP(t,c,d[B+257]),c+=f[B+257],B>7&&(tI(t,c,r[T]>>>23&31),c+=tc[B]);var $=31&r[T];tP(t,c,h[$]),c+=p[$],$>3&&(tP(t,c,r[T]>>>5&8191),c+=td[$])}else tP(t,c,d[r[T]]),c+=f[r[T]];return tP(t,c,d[256]),c+f[256]},tL=new tu([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),tz=function(e,t,n,r,i,o){var s=e.length,a=new ta(r+s+5*(1+Math.floor(s/7e3))+i),l=a.subarray(r,a.length-i),u=0;if(!t||s<8)for(var c=0;c<=s;c+=65535){var d=c+65535;d<s?u=tN(l,u,e.subarray(c,d)):(l[c]=o,u=tN(l,u,e.subarray(c,s)))}else{for(var f=tL[t-1],h=f>>>13,p=8191&f,m=(1<<n)-1,g=new tl(32768),v=new tl(m+1),y=Math.ceil(n/3),b=2*y,w=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<b)&m},x=new tu(25e3),S=new tl(288),k=new tl(32),E=0,_=0,c=0,C=0,O=0,T=0;c<s;++c){var I=w(c),P=32767&c,A=v[I];if(g[P]=A,v[I]=P,O<=c){var R=s-c;if((E>7e3||C>24576)&&R>423){u=tD(e,l,0,x,S,k,_,C,T,c-T,u),C=E=_=0,T=c;for(var M=0;M<286;++M)S[M]=0;for(var M=0;M<30;++M)k[M]=0}var j=2,N=0,D=p,L=P-A&32767;if(R>2&&I==w(c-L))for(var z=Math.min(h,R)-1,F=Math.min(32767,c),B=Math.min(258,R);L<=F&&--D&&P!=A;){if(e[c+j]==e[c+j-L]){for(var $=0;$<B&&e[c+$]==e[c+$-L];++$);if($>j){if(j=$,N=L,$>z)break;for(var U=Math.min(L,$-2),V=0,M=0;M<U;++M){var q=c-L+M+32768&32767,W=g[q],H=q-W+32768&32767;H>V&&(V=H,A=q)}}}A=g[P=A],L+=P-A+32768&32767}if(N){x[C++]=268435456|tg[j]<<18|ty[N];var G=31&tg[j],Z=31&ty[N];_+=tc[G]+td[Z],++S[257+G],++k[Z],O=c+j,++E}else x[C++]=e[c],++S[e[c]]}}u=tD(e,l,o,x,S,k,_,C,T,c-T,u)}return tT(a,0,r+tO(u)+i)},tF=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,o=n.length,s=0;s!=o;){for(var a=Math.min(s+5552,o);s<a;++s)r+=n[s],i+=r;r%=65521,i%=65521}e=r,t=i},d:function(){return(e>>>8<<16|(255&t)<<8|t>>>8)+((255&e)<<23)*2}}},tB=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},t$=function(e,t){var n=t.level,r=0==n?0:n<6?1:9==n?3:2;e[0]=120,e[1]=r<<6|(r?32-2*r:1)};let tU=e=>{var t,n,r,i,o;return function(e,t){var n="";if(!t&&"undefined"!=typeof TextDecoder)return new TextDecoder().decode(e);for(var r=0;r<e.length;){var i=e[r++];i<128||t?n+=String.fromCharCode(i):i<224?n+=String.fromCharCode((31&i)<<6|63&e[r++]):i<240?n+=String.fromCharCode((15&i)<<12|(63&e[r++])<<6|63&e[r++]):n+=String.fromCharCode(55296|(i=((15&i)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-65536)>>10,56320|1023&i)}return n}((t=function(e,t){var n=e.length;if("undefined"!=typeof TextEncoder)return new TextEncoder().encode(e);for(var r=new ta(e.length+(e.length>>>1)),i=0,o=function(e){r[i++]=e},s=0;s<n;++s){if(i+5>r.length){var a=new ta(i+8+(n-s<<1));a.set(r),r=a}var l=e.charCodeAt(s);l<128?o(l):(l<2048?o(192|l>>>6):(l>55295&&l<57344?(o(240|(l=65536+(1047552&l)|1023&e.charCodeAt(++s))>>>18),o(128|l>>>12&63)):o(224|l>>>12),o(128|l>>>6&63)),o(128|63&l))}return tT(r,0,i)}(JSON.stringify({...e,v:"v1"})),void 0===n&&(n={}),(r=tF()).p(t),t$(o=tz(t,null==(i=n).level?6:i.level,null==i.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+i.mem,2,4,!0),n),tB(o,o.length-4,r.d()),o),!0)};var tV=function(){function e(e,t,n,r){var i,o,s,a=this;this.taskQueue=[],this.isProcessing=!1,this.compressEvent=function(e){return JSON.stringify(tU(e))},this.addCompressedEventToManager=function(e,t){a.eventsManager&&a.deviceId&&a.eventsManager.addEvent({event:{type:"replay",data:e},sessionId:t,deviceId:a.deviceId})},this.addCompressedEvent=function(e,t){if(a.worker)a.worker.postMessage({event:e,sessionId:t});else{var n=a.compressEvent(e);a.addCompressedEventToManager(n,t)}},this.terminate=function(){var e;null===(e=a.worker)||void 0===e||e.terminate()};var l=(0,q.l)();this.canUseIdleCallback=l&&"requestIdleCallback"in l,this.eventsManager=e,this.config=t,this.deviceId=n,this.timeout=(null===(i=t.performanceConfig)||void 0===i?void 0:i.timeout)||2e3;var u=null!==(o=({}).COMPRESSION_WEBWORKER_BODY)&&void 0!==o?o:r;if((null===(s=this.config.experimental)||void 0===s?void 0:s.useWebWorker)&&l&&l.Worker&&u){t.loggerProvider.log("[Experimental] Enabling web worker for compression");var c=new Worker(URL.createObjectURL(new Blob([u],{type:"application/javascript"})));c.onerror=function(e){t.loggerProvider.error(e)},c.onmessage=function(e){var t=e.data,n=t.compressedEvent,r=t.sessionId;a.addCompressedEventToManager(n,r)},this.worker=c}}return e.prototype.scheduleIdleProcessing=function(){var e=this;this.isProcessing||(this.isProcessing=!0,requestIdleCallback(function(t){e.processQueue(t)},{timeout:this.timeout}))},e.prototype.enqueueEvent=function(e,t){var n;this.canUseIdleCallback&&(null===(n=this.config.performanceConfig)||void 0===n?void 0:n.enabled)?(this.config.loggerProvider.debug("Enqueuing event for processing during idle time."),this.taskQueue.push({event:e,sessionId:t}),this.scheduleIdleProcessing()):(this.config.loggerProvider.debug("Processing event without idle callback."),this.addCompressedEvent(e,t))},e.prototype.processQueue=function(e){for(var t=this;this.taskQueue.length>0&&(e.timeRemaining()>0||e.didTimeout);){var n=this.taskQueue.shift();if(n){var r=n.event,i=n.sessionId;this.addCompressedEvent(r,i)}}this.taskQueue.length>0?requestIdleCallback(function(e){t.processQueue(e)},{timeout:this.timeout}):this.isProcessing=!1},e}(),tq=function(){function e(){this.fetchObserver=null}return e.prototype.start=function(e){this.eventCallback=e,this.observeFetch()},e.prototype.stop=function(){var e;null===(e=this.fetchObserver)||void 0===e||e.call(this),this.fetchObserver=null,this.eventCallback=void 0},e.prototype.notifyEvent=function(e){var t;null===(t=this.eventCallback)||void 0===t||t.call(this,e)},e.prototype.observeFetch=function(){var e=this,t=(0,q.l)();if(t){var n=t.fetch;n&&(t.fetch=function(t,r){return(0,I.mG)(e,void 0,void 0,function(){var e,i,o,s,a,l,u;return(0,I.Jh)(this,function(c){switch(c.label){case 0:i={timestamp:e=Date.now(),type:"fetch",method:(null==r?void 0:r.method)||"GET",url:t.toString(),requestHeaders:null==r?void 0:r.headers},c.label=1;case 1:return c.trys.push([1,3,,4]),[4,n(t,r)];case 2:return o=c.sent(),s=Date.now(),i.status=o.status,i.duration=s-e,a={},o.headers.forEach(function(e,t){a[t]=e}),i.responseHeaders=a,this.notifyEvent(i),[2,o];case 3:throw l=c.sent(),s=Date.now(),i.duration=s-e,u=l,i.error={name:u.name||"UnknownError",message:u.message||"An unknown error occurred"},this.notifyEvent(i),l;case 4:return[2]}})})},this.fetchObserver=function(){t.fetch=n})}},e}(),tW=function(){function e(){var e=this;this.name="@amplitude/session-replay-browser",this.recordCancelCallback=null,this.eventCount=0,this.pageLeaveFns=[],this.teardownEventListeners=function(t){var n=(0,q.l)();n&&(n.removeEventListener("blur",e.blurListener),n.removeEventListener("focus",e.focusListener),t||n.addEventListener("blur",e.blurListener),t||n.addEventListener("focus",e.focusListener),n.self&&"onpagehide"in n.self?(n.removeEventListener("pagehide",e.pageLeaveListener),t||n.addEventListener("pagehide",e.pageLeaveListener)):(n.removeEventListener("beforeunload",e.pageLeaveListener),t||n.addEventListener("beforeunload",e.pageLeaveListener)))},this.blurListener=function(){e.sendEvents()},this.focusListener=function(){e.recordEvents()},this.pageLeaveListener=function(t){e.pageLeaveFns.forEach(function(e){e(t)})},this.addCustomRRWebEvent=function(t,n,r){return void 0===n&&(n={}),void 0===r&&(r=!0),(0,I.mG)(e,void 0,void 0,function(){var e,i,o,s;return(0,I.Jh)(this,function(a){switch(a.label){case 0:if(a.trys.push([0,3,,4]),e=void 0,!(i=this.config)||(e={config:el(i),version:ep},!r))return[3,2];return[4,ea()];case 1:o=a.sent(),e=(0,I.pi)((0,I.pi)({},o),e),a.label=2;case 2:return this.recordCancelCallback?G.IM.addCustomEvent(t,(0,I.pi)((0,I.pi)({},n),e)):this.loggerProvider.debug("Not able to add custom replay capture event ".concat(t," due to no ongoing recording.")),[3,4];case 3:return s=a.sent(),this.loggerProvider.debug("Error while adding custom replay capture event: ",s),[3,4];case 4:return[2]}})})},this.stopRecordingEvents=function(){var t;try{e.loggerProvider.log("Session Replay capture stopping."),e.recordCancelCallback&&e.recordCancelCallback(),e.recordCancelCallback=null,null===(t=e.networkObservers)||void 0===t||t.stop()}catch(t){e.loggerProvider.warn("Error occurred while stopping replay capture: ".concat(t.toString()))}},this.loggerProvider=new $(new R.Y)}return e.prototype.init=function(e,t){return(0,W.S)(this._init(e,t))},e.prototype._init=function(e,t){var n,r,i,o,s,a;return(0,I.mG)(this,void 0,void 0,function(){var l,u,c,d,f,h,p,m,g;return(0,I.Jh)(this,function(v){switch(v.label){case 0:return this.loggerProvider=new $(t.loggerProvider||new R.Y),Object.prototype.hasOwnProperty.call(t,"logLevel")&&this.loggerProvider.enable(t.logLevel),this.identifiers=new ts({sessionId:t.sessionId,deviceId:t.deviceId}),l=this,[4,(0,I.mG)(void 0,void 0,void 0,function(){var n;return(0,I.Jh)(this,function(r){switch(r.label){case 0:return[4,X({localConfig:n=new V(e,t),configKeys:["sessionReplay"]})];case 1:return[2,new ec(r.sent(),n)]}})})];case 1:return l.joinedConfigGenerator=v.sent(),u=this,[4,this.joinedConfigGenerator.generateJoinedConfig(this.identifiers.sessionId)];case 2:u.config=v.sent(),t.sessionId&&(null===(n=this.config.interactionConfig)||void 0===n?void 0:n.enabled)&&(c=to.default({sessionId:t.sessionId,type:"interaction"},this.config),this.pageLeaveFns=[c.send(this.getDeviceId.bind(this)).bind(c)],this.scrollHook=c.hook.bind(c)),d=[],"idb"!==(f=this.config.storeType)||(null===(r=(0,q.l)())||void 0===r?void 0:r.indexedDB)||(f="memory",this.loggerProvider.warn("Could not use preferred indexedDB storage, reverting to in memory option.")),this.loggerProvider.log("Using ".concat(f," for event storage.")),v.label=3;case 3:return v.trys.push([3,5,,6]),[4,eU({config:this.config,sessionId:this.identifiers.sessionId,type:"replay",storeType:f})];case 4:return h=v.sent(),d.push({name:"replay",manager:h}),[3,6];case 5:return p=v.sent(),this.loggerProvider.warn("Error occurred while creating replay events manager: ".concat(p.toString())),[3,6];case 6:if(!(null===(i=this.config.interactionConfig)||void 0===i?void 0:i.enabled))return[3,10];m=this.config.interactionConfig.batch?te:e7,v.label=7;case 7:return v.trys.push([7,9,,10]),[4,eU({config:this.config,sessionId:this.identifiers.sessionId,type:"interaction",minInterval:null!==(o=this.config.interactionConfig.trackEveryNms)&&void 0!==o?o:3e4,maxInterval:6e4,payloadBatcher:m,storeType:f})];case 8:return g=v.sent(),d.push({name:"interaction",manager:g}),[3,10];case 9:return p=v.sent(),this.loggerProvider.warn("Error occurred while creating interaction events manager: ".concat(p.toString())),[3,10];case 10:return this.eventsManager=new(eV.bind.apply(eV,(0,I.ev)([void 0],(0,I.CR)(d),!1))),this.eventCompressor&&this.eventCompressor.terminate(),this.eventCompressor=new tV(this.eventsManager,this.config,this.getDeviceId()),(null===(a=null===(s=this.config.loggingConfig)||void 0===s?void 0:s.network)||void 0===a?void 0:a.enabled)&&(this.networkObservers=new tq),this.loggerProvider.log("Installing @amplitude/session-replay-browser."),this.teardownEventListeners(!1),this.initialize(!0),[2]}})})},e.prototype.setSessionId=function(e,t){return(0,W.S)(this.asyncSetSessionId(e,t))},e.prototype.asyncSetSessionId=function(e,t){return(0,I.mG)(this,void 0,void 0,function(){var n,r,i;return(0,I.Jh)(this,function(o){switch(o.label){case 0:if((n=this.identifiers&&this.identifiers.sessionId)&&this.sendEvents(n),r=t||this.getDeviceId(),this.identifiers=new ts({sessionId:e,deviceId:r}),!(this.joinedConfigGenerator&&n))return[3,2];return i=this,[4,this.joinedConfigGenerator.generateJoinedConfig(this.identifiers.sessionId)];case 1:i.config=o.sent(),o.label=2;case 2:return this.recordEvents(),[2]}})})},e.prototype.getSessionReplayProperties=function(){var e,t=this.config,n=this.identifiers;if(!t||!n)return this.loggerProvider.warn("Session replay init has not been called, cannot get session replay properties."),{};var r=this.getShouldRecord(),i={};return r&&((e={})[L]=n.sessionReplayId?n.sessionReplayId:null,i=e,t.debugMode&&(i[F]=JSON.stringify({appHash:ei(t.apiKey).toString()}))),this.addCustomRRWebEvent(S.GET_SR_PROPS,{shouldRecord:r,eventProperties:i},10===this.eventCount),10===this.eventCount&&(this.eventCount=0),this.eventCount++,i},e.prototype.sendEvents=function(e){var t,n=e||(null===(t=this.identifiers)||void 0===t?void 0:t.sessionId),r=this.getDeviceId();this.eventsManager&&n&&r&&this.eventsManager.sendCurrentSequenceEvents({sessionId:n,deviceId:r})},e.prototype.initialize=function(e){var t;return void 0===e&&(e=!1),(0,I.mG)(this,void 0,void 0,function(){var n;return(0,I.Jh)(this,function(r){return(null===(t=this.identifiers)||void 0===t?void 0:t.sessionId)?(n=this.getDeviceId())?(this.eventsManager&&e&&this.eventsManager.sendStoredEvents({deviceId:n}),[2,this.recordEvents()]):(this.loggerProvider.log("Session is not being recorded due to lack of device id."),[2,Promise.resolve()]):(this.loggerProvider.log("Session is not being recorded due to lack of session id."),[2,Promise.resolve()])})})},e.prototype.shouldOptOut=function(){if(null===(e=this.config)||void 0===e?void 0:e.instanceName){var e,t,n;n=(0,H.bM)(this.config.instanceName).identityStore.getIdentity().optOut}return void 0!==n?n:null===(t=this.config)||void 0===t?void 0:t.optOut},e.prototype.getShouldRecord=function(){if(!this.identifiers||!this.config||!this.identifiers.sessionId)return this.loggerProvider.warn("Session is not being recorded due to lack of config, please call sessionReplay.init."),!1;if(!this.config.captureEnabled)return this.loggerProvider.log("Session ".concat(this.identifiers.sessionId," not being captured due to capture being disabled for project or because the remote config could not be fetched.")),!1;if(this.shouldOptOut())return this.loggerProvider.log("Opting session ".concat(this.identifiers.sessionId," out of recording due to optOut config.")),!1;var e,t,n=(e=this.identifiers.sessionId,t=this.config.sampleRate,31*Math.abs(ei(e.toString()))%1e6/1e6<t);return n||this.loggerProvider.log("Opting session ".concat(this.identifiers.sessionId," out of recording due to sample rate.")),n},e.prototype.getBlockSelectors=function(){var e,t,n,r=null!==(n=null===(t=null===(e=this.config)||void 0===e?void 0:e.privacyConfig)||void 0===t?void 0:t.blockSelector)&&void 0!==n?n:[];if(0!==r.length)return r},e.prototype.getMaskTextSelectors=function(){if((null===(t=null===(e=this.config)||void 0===e?void 0:e.privacyConfig)||void 0===t?void 0:t.defaultMaskLevel)==="conservative")return"*";var e,t,n,r,i=null===(r=null===(n=this.config)||void 0===n?void 0:n.privacyConfig)||void 0===r?void 0:r.maskSelector;if(i)return i},e.prototype.getRecordingPlugins=function(e){var t;return(0,I.mG)(this,void 0,void 0,function(){var r,i,o;return(0,I.Jh)(this,function(s){switch(s.label){case 0:if(r=[],!(null===(t=null==e?void 0:e.console)||void 0===t?void 0:t.enabled))return[3,4];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,n.e(881).then(n.bind(n,96142))];case 2:return i=s.sent().getRecordConsolePlugin,r.push(i({level:e.console.levels})),[3,4];case 3:return o=s.sent(),this.loggerProvider.warn("Failed to load console plugin:",o),[3,4];case 4:return[2,r.length>0?r:void 0]}})})},e.prototype.recordEvents=function(){var e,t;return(0,I.mG)(this,void 0,void 0,function(){var n,r,i,o,s,a,l,u,c,d,f,h=this;return(0,I.Jh)(this,function(p){switch(p.label){case 0:if(n=this.config,r=this.getShouldRecord(),i=null===(e=this.identifiers)||void 0===e?void 0:e.sessionId,!r||!i||!n)return[2];this.stopRecordingEvents(),null===(t=this.networkObservers)||void 0===t||t.start(function(e){h.addCustomRRWebEvent(S.FETCH_REQUEST,e)}),o=n.privacyConfig,s=n.interactionConfig,a=n.loggingConfig,l=(null==s?void 0:s.enabled)?{mouseInteraction:this.eventsManager&&tt(this.loggerProvider,{eventsManager:this.eventsManager,sessionId:i,deviceIdFn:this.getDeviceId.bind(this)}),scroll:this.scrollHook}:{},this.loggerProvider.log("Session Replay capture beginning for ".concat(i,".")),p.label=1;case 1:return p.trys.push([1,3,,4]),u=this,c=G.IM,f={emit:function(e){if(h.shouldOptOut()){h.loggerProvider.log("Opting session ".concat(i," out of recording due to optOut config.")),h.stopRecordingEvents(),h.sendEvents();return}h.eventCompressor&&h.eventCompressor.enqueueEvent(e,i)},inlineStylesheet:n.shouldInlineStylesheet,hooks:l,maskAllInputs:!0,maskTextClass:B,blockClass:"amp-block",blockSelector:this.getBlockSelectors(),maskInputFn:er("input",o),maskTextFn:er("text",o),maskTextSelector:this.getMaskTextSelectors(),recordCanvas:!1,errorHandler:function(e){if(e.message.includes("insertRule")&&e.message.includes("CSSStyleSheet")||e._external_)throw e;return h.loggerProvider.warn("Error while capturing replay: ",e.toString()),!0}},[4,this.getRecordingPlugins(a)];case 2:return u.recordCancelCallback=c.apply(void 0,[(f.plugins=p.sent(),f)]),this.addCustomRRWebEvent(S.DEBUG_INFO),[3,4];case 3:return d=p.sent(),this.loggerProvider.warn("Failed to initialize session replay:",d),[3,4];case 4:return[2]}})})},e.prototype.getDeviceId=function(){var e;return null===(e=this.identifiers)||void 0===e?void 0:e.deviceId},e.prototype.getSessionId=function(){var e;return null===(e=this.identifiers)||void 0===e?void 0:e.sessionId},e.prototype.flush=function(e){var t;return void 0===e&&(e=!1),(0,I.mG)(this,void 0,void 0,function(){return(0,I.Jh)(this,function(n){return[2,null===(t=this.eventsManager)||void 0===t?void 0:t.flush(e)]})})},e.prototype.shutdown=function(){this.teardownEventListeners(!0),this.stopRecordingEvents(),this.sendEvents()},e}(),tH=function(e){return function(){var t=e.config||U();return{logger:t.loggerProvider,logLevel:t.logLevel}}},tG=(w=new tW,{init:(0,P.w_)(w.init.bind(w),"init",tH(w)),setSessionId:(0,P.w_)(w.setSessionId.bind(w),"setSessionId",tH(w)),getSessionId:(0,P.w_)(w.getSessionId.bind(w),"getSessionId",tH(w)),getSessionReplayProperties:(0,P.w_)(w.getSessionReplayProperties.bind(w),"getSessionReplayProperties",tH(w)),flush:(0,P.w_)(w.flush.bind(w),"flush",tH(w)),shutdown:(0,P.w_)(w.shutdown.bind(w),"shutdown",tH(w))}),tZ=tG.init,tK=tG.setSessionId,tY=tG.getSessionId,tJ=tG.getSessionReplayProperties,tX=tG.flush,tQ=tG.shutdown,t0="1.16.7",t1=function(){function e(t){this.name=e.pluginName,this.type="enrichment",this.sr={flush:tX,getSessionId:tY,getSessionReplayProperties:tJ,init:tZ,setSessionId:tK,shutdown:tQ},this.options=(0,I.pi)({forceSessionTracking:!1},t),this.srInitOptions=this.options}return e.prototype.setup=function(e,t){var n,r,i,o,s;return(0,I.mG)(this,void 0,void 0,function(){var t;return(0,I.Jh)(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),null==e||e.loggerProvider.log("Installing @amplitude/plugin-session-replay, version ".concat(t0,".")),this.config=e,this.options.forceSessionTracking&&("boolean"==typeof e.defaultTracking?!1===e.defaultTracking&&(e.defaultTracking={pageViews:!1,formInteractions:!1,fileDownloads:!1,sessions:!0}):e.defaultTracking=(0,I.pi)((0,I.pi)({},e.defaultTracking),{sessions:!0})),this.srInitOptions={instanceName:this.config.instanceName,deviceId:null!==(n=this.options.deviceId)&&void 0!==n?n:this.config.deviceId,optOut:this.config.optOut,sessionId:this.options.customSessionId?void 0:this.config.sessionId,loggerProvider:this.config.loggerProvider,logLevel:this.config.logLevel,flushMaxRetries:this.config.flushMaxRetries,serverZone:this.config.serverZone,configServerUrl:this.options.configServerUrl,trackServerUrl:this.options.trackServerUrl,sampleRate:this.options.sampleRate,privacyConfig:{blockSelector:null===(r=this.options.privacyConfig)||void 0===r?void 0:r.blockSelector,maskSelector:null===(i=this.options.privacyConfig)||void 0===i?void 0:i.maskSelector,unmaskSelector:null===(o=this.options.privacyConfig)||void 0===o?void 0:o.unmaskSelector,defaultMaskLevel:null===(s=this.options.privacyConfig)||void 0===s?void 0:s.defaultMaskLevel},debugMode:this.options.debugMode,shouldInlineStylesheet:this.options.shouldInlineStylesheet,version:{type:"plugin",version:t0},performanceConfig:this.options.performanceConfig,storeType:this.options.storeType,experimental:this.options.experimental},[4,this.sr.init(e.apiKey,this.srInitOptions).promise];case 1:return a.sent(),[3,3];case 2:return t=a.sent(),null==e||e.loggerProvider.error("Session Replay: Failed to initialize due to ".concat(t.message)),[3,3];case 3:return[2]}})})},e.prototype.onSessionIdChanged=function(e){return(0,I.mG)(this,void 0,void 0,function(){return(0,I.Jh)(this,function(t){switch(t.label){case 0:return this.config.loggerProvider.debug("Analytics session id is changed to ".concat(e,", SR session id is ").concat(String(this.sr.getSessionId()),".")),[4,this.sr.setSessionId(e).promise];case 1:return t.sent(),[2]}})})},e.prototype.onOptOutChanged=function(e){return(0,I.mG)(this,void 0,void 0,function(){return(0,I.Jh)(this,function(t){switch(t.label){case 0:if(this.config.loggerProvider.debug("optOut is changed to ".concat(String(e),", calling ").concat(e?"sessionReplay.shutdown()":"sessionReplay.init()",".")),!e)return[3,1];return this.sr.shutdown(),[3,3];case 1:return[4,this.sr.init(this.config.apiKey,this.srInitOptions).promise];case 2:t.sent(),t.label=3;case 3:return[2]}})})},e.prototype.execute=function(e){var t;return(0,I.mG)(this,void 0,void 0,function(){var n,r,i;return(0,I.Jh)(this,function(o){switch(o.label){case 0:if(o.trys.push([0,8,,9]),!this.options.customSessionId)return[3,4];if(!(n=this.options.customSessionId(e)))return[3,3];if(!(n!==this.sr.getSessionId()))return[3,2];return[4,this.sr.setSessionId(n).promise];case 1:o.sent(),o.label=2;case 2:r=this.sr.getSessionReplayProperties(),e.event_properties=(0,I.pi)((0,I.pi)({},e.event_properties),r),o.label=3;case 3:return[3,7];case 4:if(!((n=this.config.sessionId)&&n!==this.sr.getSessionId()))return[3,6];return[4,this.sr.setSessionId(n).promise];case 5:o.sent(),o.label=6;case 6:n&&n===e.session_id&&(r=this.sr.getSessionReplayProperties(),e.event_properties=(0,I.pi)((0,I.pi)({},e.event_properties),r)),o.label=7;case 7:return[2,Promise.resolve(e)];case 8:return i=o.sent(),null===(t=this.config)||void 0===t||t.loggerProvider.error("Session Replay: Failed to enrich event due to ".concat(i.message)),[2,Promise.resolve(e)];case 9:return[2]}})})},e.prototype.teardown=function(){var e;return(0,I.mG)(this,void 0,void 0,function(){return(0,I.Jh)(this,function(t){try{this.sr.shutdown(),this.config=null}catch(t){null===(e=this.config)||void 0===e||e.loggerProvider.error("Session Replay: teardown failed due to ".concat(t.message))}return[2]})})},e.prototype.getSessionReplayProperties=function(){return this.sr.getSessionReplayProperties()},e.pluginName="@amplitude/plugin-session-replay-browser",e}(),t2=function(e){return new t1(e)}},76317:function(e,t,n){"use strict";n.d(t,{Z:function(){return q}});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,s=Object.assign;function a(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,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:h,column:p,length:s,return:""}}function w(e,t){return s(b("",null,null,"",null,null,0),e,{length:-e.length},t)}function x(){return v=g<m?u(y,g++):0,p++,10===v&&(p=1,h++),v}function S(){return u(y,g)}function k(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(;x();)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:x()}return g}(91===e?e+2:40===e?e+1:e),c(y,t,n)).trim()}var C="-ms-",O="-moz-",T="-webkit-",I="comm",P="rule",A="decl",R="@keyframes";function M(e,t){for(var n="",r=e.length,i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function j(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case A:return e.return=e.return||e.value;case I:return"";case R:return e.return=e.value+"{"+M(e.children,r)+"}";case P:e.value=e.props.join(",")}return d(n=M(e.children,r))?e.return=e.value+"{"+n+"}":""}function N(e,t,n,r,o,s,l,u,d,f,h){for(var p=o-1,m=0===o?s:[""],g=m.length,v=0,y=0,w=0;v<r;++v)for(var x=0,S=c(e,p+1,p=i(y=l[v])),k=e;x<g;++x)(k=(y>0?m[x]+" "+S:a(S,/&\f/g,m[x])).trim())&&(d[w++]=k);return b(e,t,n,0===o?P:u,d,f,h)}function D(e,t,n,r){return b(e,t,n,A,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=S(),38===r&&12===i&&(t[n]=1),!k(i);)x();return c(y,e,g)},z=function(e,t){var n=-1,r=44;do switch(k(r)){case 0:38===r&&12===S()&&(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===S()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}while(r=x());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),s=n.props,a=0,l=0;a<o.length;a++)for(var u=0;u<s.length;u++,l++)e.props[l]=i[a]?o[a].replace(/&\f/g,s[u]):s[u]+" "+o[a]}}},U=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},V=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case A: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+a(t,/(\w+).+(:[^]+)/,T+"box-$1$2"+C+"flex-$1$2")+t;case 5443:return T+t+C+"flex-item-"+a(t,/flex-|-self/,"")+t;case 4675:return T+t+C+"flex-line-pack"+a(t,/align-content|flex-|-self/,"")+t;case 5548:return T+t+C+a(t,"shrink","negative")+t;case 5292:return T+t+C+a(t,"basis","preferred-size")+t;case 6060:return T+"box-"+a(t,"-grow","")+T+t+C+a(t,"grow","positive")+t;case 4554:return T+a(t,/([^-])(transform)/g,"$1"+T+"$2")+t;case 6187:return a(a(a(t,/(zoom-|grab)/,T+"$1"),/(image-set)/,T+"$1"),t,"")+t;case 5495:case 3959:return a(t,/(image-set\([^]*)/,T+"$1$`$1");case 4968:return a(a(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 a(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 a(t,/(.+:)(.+)-([^]+)/,"$1"+T+"$2-$3$1"+O+(108==u(t,n+3)?"$3":"$2-$3"))+t;case 115:return~l(t,"stretch")?e(a(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 a(t,":",":"+T)+t;case 101:return a(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+a(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return T+t+C+a(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return T+t+C+a(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return T+t+C+t+t}return t}(e.value,e.length);break;case R:return M([w(e,{value:a(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 M([w(e,{props:[a(t,/:(read-\w+)/,":"+O+"$1")]})],r);case"::placeholder":return M([w(e,{props:[a(t,/:(plac\w+)/,":"+T+"input-$1")]}),w(e,{props:[a(t,/:(plac\w+)/,":"+O+"$1")]}),w(e,{props:[a(t,/:(plac\w+)/,C+"input-$1")]})],r)}return""},i.map(o).join("")}}}],q=function(e){var t,n,i,s,m,w,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||V,P={},A=[];s=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;A.push(e)});var R=(n=(t=[$,U].concat(T,[j,(i=function(e){w.insert(e)},function(e){!e.root&&(e=e.return)&&i(e)})])).length,function(e,r,i,o){for(var s="",a=0;a<n;a++)s+=t[a](e,r,i,o)||"";return s}),L=function(e){var t,n;return M((n=function e(t,n,r,i,s,m,w,E,C){for(var O,T=0,P=0,A=w,R=0,M=0,j=0,L=1,z=1,F=1,B=0,$="",U=s,V=m,q=i,W=$;z;)switch(j=B,B=x()){case 40:if(108!=j&&58==u(W,A-1)){-1!=l(W+=a(_(B),"&","&\f"),"&\f")&&(F=-1);break}case 34:case 39:case 91:W+=_(B);break;case 9:case 10:case 13:case 32:W+=function(e){for(;v=S();)if(v<33)x();else break;return k(e)>2||k(v)>3?"":" "}(j);break;case 92:W+=function(e,t){for(var n;--t&&x()&&!(v<48)&&!(v>102)&&(!(v>57)||!(v<65))&&(!(v>70)||!(v<97)););return n=g+(t<6&&32==S()&&32==x()),c(y,e,n)}(g-1,7);continue;case 47:switch(S()){case 42:case 47:f(b(O=function(e,t){for(;x();)if(e+v===57)break;else if(e+v===84&&47===S())break;return"/*"+c(y,t,g-1)+"*"+o(47===e?e:x())}(x(),g),n,r,I,o(v),c(O,2,-2),0),C);break;default:W+="/"}break;case 123*L:E[T++]=d(W)*F;case 125*L:case 59:case 0:switch(B){case 0:case 125:z=0;case 59+P:-1==F&&(W=a(W,/\f/g,"")),M>0&&d(W)-A&&f(M>32?D(W+";",i,r,A-1):D(a(W," ","")+";",i,r,A-2),C);break;case 59:W+=";";default:if(f(q=N(W,n,r,T,P,s,E,$,U=[],V=[],A),m),123===B){if(0===P)e(W,n,q,q,U,m,A,E,V);else switch(99===R&&110===u(W,3)?100:R){case 100:case 108:case 109:case 115:e(t,q,q,i&&f(N(t,q,q,0,0,s,E,$,s,U=[],A),V),s,V,A,E,i?U:V);break;default:e(W,q,q,q,[""],V,0,E,V)}}}T=P=M=0,L=F=1,$=W="",A=w;break;case 58:A=1+d(W),M=j;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(W+=o(B),B*L){case 38:F=P>0?1:(W+="\f",-1);break;case 44:E[T++]=(d(W)-1)*F,F=1;break;case 64:45===S()&&(W+=_(x())),R=S(),P=A=d($=W+=function(e){for(;!k(S());)x();return c(y,e,g)}(g)),B++;break;case 45:45===j&&2==d(W)&&(L=0)}}return m}("",null,null,null,[""],t=E(t=e),0,[0],t),y="",n),R)};m=function(e,t,n,r){w=n,L(e?e+"{"+t.styles+"}":t.styles),r&&(z.inserted[t.name]=!0)};var z={key:C,sheet:new r({key:C,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:P,registered:{},insert:m};return z.sheet.hydrate(A),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 w},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(82040),s=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}},a=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=s(function(e){return s(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,a.hC)(t,n,r),(0,u.L)(function(){return(0,a.My)(t,n,r)}),null},w=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],s=[i],u="";"string"==typeof e.className?u=(0,a.fp)(t.registered,s,e.className):null!=e.className&&(u=e.className+" ");var c=(0,l.O)(s,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),s=n(66703),a=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 s.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 a=2;a<r;a++)i[a]=n[a];return s.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,s.useContext(o.T)),i=s.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,s=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==s&&(o=!0,s.setAttribute("data-emotion",e),n.hydrate([s])),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,a.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),s=/[A-Z]|^ms/g,a=/_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(s,"-$&").toLowerCase()}),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(a,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 s=n[o];if("object"!=typeof s)null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":u(s)&&(r+=c(o)+":"+d(o,s)+";");else if(Array.isArray(s)&&"string"==typeof s[0]&&(null==t||void 0===t[s[0]]))for(var a=0;a<s.length;a++)u(s[a])&&(r+=c(o)+":"+d(o,s[a])+";");else{var l=f(e,t,s);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,s=n(e);return r=o,f(e,t,s)}}if(null==t)return n;var a=t[n];return void 0!==a?a: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,s="";r=void 0;var a=e[0];null==a||void 0===a.raw?(o=!1,s+=f(n,t,a)):s+=a[0];for(var l=1;l<e.length;l++)s+=f(n,t,e[l]),o&&(s+=a[l]);h.lastIndex=0;for(var u="";null!==(i=h.exec(s));)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)}(s)+u,styles:s,next:r}}},93949:function(e,t,n){"use strict";n.d(t,{L:function(){return s},j:function(){return a}});var r,i=n(66703),o=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,s=o||function(e){return e()},a=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 k}});var r=n(82040),i=n(14022),o=n(66703);let s=o.createContext(null);function a(){return o.useContext(s)}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=a(),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)(s.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 s=n(o),a=e?(0,r.Z)({},t,{[e]:s}):s;return i?()=>a:a}return e?(0,r.Z)({},t,{[e]:n}):(0,r.Z)({},t,n)},[e,t,n,i])}var w=function(e){let{children:t,theme:n,themeId:r}=e,i=f(y),o=a()||y,s=b(r,i,n),l=b(r,o,n,!0),h="rtl"===s.direction;return(0,u.jsx)(c,{theme:l,children:(0,u.jsx)(d.T.Provider,{value:s,children:(0,u.jsx)(m,{value:h,children:(0,u.jsx)(v,{value:null==s?void 0:s.components,children:t})})})})},x="$$material";let S=["theme"];function k(e){let{theme:t}=e,n=(0,i.Z)(e,S),o=t[x];return(0,u.jsx)(w,(0,r.Z)({},n,{themeId:o?x:void 0,theme:o||t}))}},9779:function(e,t,n){"use strict";n.d(t,{Z:function(){return eV}});var r=n(82040),i=n(14022),o=n(20139),s=n(66703);function a(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 a(e)&&a(t)&&Object.keys(t).forEach(r=>{s.isValidElement(t[r])?i[r]=t[r]:a(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&a(e[r])?i[r]=l(e[r],t[r],n):n.clone?i[r]=a(t[r])?function e(t){if(s.isValidElement(t)||!a(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],s=h(e.theme,r)||{};return d(e,o,e=>{let r=p(s,i,e);return(e===r&&"string"==typeof e&&(r=p(s,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"},w=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]}),x=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],S=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],k=[...x,...S];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=w(n),e=>i.reduce((t,n)=>(t[n]=C(r,e),t),{})),s=e[n];return d(e,s,o)})(e,t,r,n)).reduce(g,{})}function T(e){return O(e,x)}function I(e){return O(e,S)}function P(e){return O(e,k)}T.propTypes={},T.filterProps=x,I.propTypes={},I.filterProps=S,P.propTypes={},P.filterProps=k;var A=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 M(e,t){return m({prop:e,themeKey:"borders",transform:t})}let j=M("border",R),N=M("borderTop",R),D=M("borderRight",R),L=M("borderBottom",R),z=M("borderLeft",R),F=M("borderColor"),B=M("borderTopColor"),$=M("borderRightColor"),U=M("borderBottomColor"),V=M("borderLeftColor"),q=M("outline",R),W=M("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"],A(j,N,D,L,z,F,B,$,U,V,H,q,W);let G=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};G.propTypes={},G.filterProps=["gap"];let Z=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};Z.propTypes={},Z.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"}),J=m({prop:"gridRow"}),X=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}A(G,Z,K,Y,J,X,Q,ee,et,m({prop:"gridTemplateRows"}),m({prop:"gridTemplateAreas"}),m({prop:"gridArea"})),A(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 es=m({prop:"minWidth",transform:er}),ea=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}),A(ei,eo,es,ea,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:I},pt:{style:I},pr:{style:I},pb:{style:I},pl:{style:I},px:{style:I},py:{style:I},padding:{style:I},paddingTop:{style:I},paddingRight:{style:I},paddingBottom:{style:I},paddingLeft:{style:I},paddingX:{style:I},paddingY:{style:I},paddingInline:{style:I},paddingInlineStart:{style:I},paddingInlineEnd:{style:I},paddingBlock:{style:I},paddingBlockStart:{style:I},paddingBlockEnd:{style:I},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:G},rowGap:{style:K},columnGap:{style:Z},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:s=e,themeKey:a,transform:l,style:u}=o;if(null==t)return null;if("typography"===a&&"inherit"===t)return{[e]:t};let c=h(n,a)||{};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===s)?n:{[s]:n}})}return function t(n){var r;let{sx:i,theme:o={}}=n||{};if(!i)return null;let s=null!=(r=o.unstable_sxConfig)?r:ec;function a(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 a=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(a),u=a;return Object.keys(i).forEach(n=>{var r;let a="function"==typeof(r=i[n])?r(o):r;if(null!=a){if("object"==typeof a){if(s[n])u=g(u,e(n,a,o,s));else{let e=d({theme:o},a,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,a)?u[n]=t({sx:a,theme:o}):u=g(u,e)}}else u=g(u,e(n,a,o,s))}}),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(a):a(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:s,shape:a={}}=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,s=(0,i.Z)(e,ef),a=eh(t),l=Object.keys(a);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:a,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},s)}(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}(s),f=l({breakpoints:c,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},o),spacing:d,shape:(0,r.Z)({},ep,a)},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"},ew={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"},ex={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"},eS={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"},ek={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}},eI={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 eA=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],eR={textTransform:"uppercase"},eM='"Roboto", "Helvetica", "Arial", sans-serif';function ej(){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",ej(0,2,1,-1,0,1,1,0,0,1,3,0),ej(0,3,1,-2,0,2,2,0,0,1,5,0),ej(0,3,3,-2,0,3,4,0,0,1,8,0),ej(0,2,4,-1,0,4,5,0,0,1,10,0),ej(0,3,5,-1,0,5,8,0,0,1,14,0),ej(0,3,5,-1,0,6,10,0,0,1,18,0),ej(0,4,5,-2,0,7,10,1,0,2,16,1),ej(0,5,5,-3,0,8,10,1,0,3,14,2),ej(0,5,6,-3,0,9,12,1,0,3,16,2),ej(0,6,6,-3,0,10,14,1,0,4,18,3),ej(0,6,7,-4,0,11,15,1,0,4,20,3),ej(0,7,8,-4,0,12,17,2,0,5,22,4),ej(0,7,8,-4,0,13,19,2,0,5,24,4),ej(0,7,9,-4,0,14,21,2,0,5,26,4),ej(0,8,9,-5,0,15,22,2,0,6,28,5),ej(0,8,10,-5,0,16,24,2,0,6,30,5),ej(0,8,11,-5,0,17,26,2,0,6,32,5),ej(0,9,11,-5,0,18,28,2,0,7,34,6),ej(0,9,12,-6,0,19,29,2,0,7,36,6),ej(0,10,13,-6,0,20,31,3,0,8,38,7),ej(0,10,13,-6,0,21,33,3,0,8,40,7),ej(0,10,14,-6,0,22,35,3,0,8,42,7),ej(0,11,14,-7,0,23,36,3,0,9,44,8),ej(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 eU=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];var eV=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t,n=arguments.length,s=Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];let{mixins:u={},palette:c={},transitions:d={},typography:f={}}=e,h=(0,i.Z)(e,eU);if(e.vars)throw Error((0,o.Z)(18));let p=function(e){let{mode:t="light",contrastThreshold:n=3,tonalOffset:s=.2}=e,a=(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:ex[200],light:ex[50],dark:ex[400]}:{main:ex[500],light:ex[300],dark:ex[700]}}(t),d=e.error||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:eS[500],light:eS[300],dark:eS[700]}:{main:eS[700],light:eS[400],dark:eS[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:ek[400],light:ek[300],dark:ek[700]}:{main:"#ed6c02",light:ek[500],dark:ek[900]}}(t);function m(e){return(0,ey.mi)(e,eI.text.primary)>=n?eI.text.primary:eT.text.primary}let g=e=>{let{color:t,name:n,mainShade:i=500,lightShade:a=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",a,s),eP(t,"dark",l,s),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:ew,contrastThreshold:n,getContrastText:m,augmentColor:g,tonalOffset:s},{dark:eI,light:eT}[t]),a)}(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=eM,fontSize:s=14,fontWeightLight:a=300,fontWeightRegular:u=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:f=16,allVariants:h,pxToRem:p}=n,m=(0,i.Z)(n,eA),g=s/14,v=p||(e=>"".concat(e/f*g,"rem")),y=(e,t,n,i,s)=>(0,r.Z)({fontFamily:o,fontWeight:e,fontSize:v(t),lineHeight:n},o===eM?{letterSpacing:"".concat(Math.round(i/t*1e5)/1e5,"em")}:{},s,h),b={h1:y(a,96,1.167,-1.5),h2:y(a,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:s,fontWeightLight:a,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:s=t.easeInOut,delay:a=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(s," ").concat("string"==typeof a?a:eF(a))).join(",")}},e,{easing:t,duration:n})}(d),zIndex:(0,r.Z)({},e$)});return g=l(g,h),(g=s.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(4776);t._j=function(e,t){if(e=a(e),t=s(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=a(e),t=s(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 s(e,t=0,n=1){return(0,o.default)(e,t,n)}function a(e){let t;if(e.type)return e;if("#"===e.charAt(0))return a(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=a(e)).type||"hsla"===e.type?a(function(e){let{values:t}=e=a(e),n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),s=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1),u="rgb",c=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(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,s,a;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 w(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}function x(e){return e&&e.Math==Math?e:void 0}let S="object"==typeof globalThis&&x(globalThis)||"object"==typeof window&&x(window)||"object"==typeof self&&x(self)||"object"==typeof n.g&&x(n.g)||function(){return this}()||{};function k(e,t,n){let r=n||S,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}function E(){let e=S.crypto||S.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 I(){return Date.now()/1e3}let P=function(){let{performance:e}=S;if(!e||!e.now)return I;let t=Date.now()-e.now(),n=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();(()=>{let{performance:e}=S;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 A="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,R=["debug","info","warn","error","log","assert","trace"],M={};function j(e){if(!("console"in S))return e();let t=S.console,n={},r=Object.keys(M);r.forEach(e=>{let r=M[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 A?R.forEach(n=>{t[n]=(...t)=>{e&&j(()=>{S.console[n](`Sentry Logger [${n}]:`,...t)})}}):R.forEach(e=>{t[e]=()=>void 0}),t}(),D="production",L="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;(tx=tS||(tS={}))[tx.PENDING=0]="PENDING",tx[tx.RESOLVED=1]="RESOLVED",tx[tx.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=tS.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(tS.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(tS.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===tS.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===tS.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===tS.RESOLVED&&e[1](this._value),this._state===tS.REJECTED&&e[2](this._value),e[0]=!0)})}}}function F(e,t={}){if(!e)return"<unknown>";try{let n,r=e,i=[],o=0,s=0,a=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,s;let a=[];if(!e||!e.tagName)return"";if(S.HTMLElement&&e instanceof HTMLElement&&e.dataset&&e.dataset.sentryComponent)return e.dataset.sentryComponent;a.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=>{a.push(`[${e[0]}="${e[1]}"]`)});else if(e.id&&a.push(`#${e.id}`),(n=e.className)&&h(n))for(s=0,r=n.split(/\s+/);s<r.length;s++)a.push(`.${r[s]}`);let u=["aria-label","type","name","title","alt"];for(s=0;s<u.length;s++)i=u[s],(o=e.getAttribute(i))&&a.push(`[${i}="${o}"]`);return a.join("")}(r,a),"html"!==n&&(!(o>1)||!(s+3*i.length+n.length>=l)));)i.push(n),s+=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{w(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function U(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 V(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);"function"==typeof i&&W(i,r),e[t]=i}function q(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){A&&N.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function W(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,q(e,"__sentry_original__",t)}catch(e){}}function H(e){return e.__sentry_original__}function G(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:Z(e.target),currentTarget:Z(e.currentTarget),...K(e)};return"undefined"!=typeof CustomEvent&&b(e,CustomEvent)&&(t.detail=e.detail),t}}function Z(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 J(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 X(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&&J(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:I(),...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:s,_fingerprint:a,_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:s,fingerprint:a||[],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:s}=t;(function(e,t){let{extra:n,tags:r,user:i,contexts:o,level:s,transactionName:a}=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}),s&&(e.level=s),a&&(e.transaction=a)})(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:s,tags:a,origin:l}=Q(e);return Y({data:r,op:i,parent_span_id:o,span_id:t,status:s,tags:a,trace_id:n,origin:l})}(t),...e.contexts};let n=X(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()||{},s=Y({environment:r.environment||D,release:r.release,user_segment:o,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",s),s}(Q(e).trace_id||"",t,es().getScope()),r=X(e);if(!r)return n;let i=r&&r._frozenDynamicSamplingContext;if(i)return i;let{sampleRate:o,source:s}=r.metadata;null!=o&&(n.sample_rate=`${o}`);let a=Q(r);return s&&"url"!==s&&(n.transaction=a.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,...s}}(e,this.getScopeData()),function e(t,n,r,i=0){return new z((o,s)=>{let a=t[i];if(null===n||"function"!=typeof a)o(n);else{let l=a({...n},r);L&&a.id&&null===l&&N.log(`Event processor "${a.id}" dropped event`),y(l)?l.then(n=>e(t,n,r,i+1).then(o)).then(null,s):e(t,l,r,i+1).then(o).then(null,s)}})}([...n,...k("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 s={timestamp:I(),...e},a=i?j(()=>i(s,t)):s;null!==a&&(r.emit&&r.emit("beforeAddBreadcrumb",a,t),n.addBreadcrumb(a,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"}),J(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}=S.navigator||{},s=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&&J(n,e),n}({release:r,environment:i,user:t.getUser(),...o&&{userAgent:o},...e}),a=t.getSession&&t.getSession();return a&&"ok"===a.status&&J(a,{status:"exited"}),this.endSession(),t.setSession(s),s}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 S.__SENTRY__=S.__SENTRY__||{extensions:{},hub:void 0},S}function eo(e){let t=ei(),n=ea(t);return el(t,e),n}function es(){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)||ea(e).isOlderThan(en))&&el(e,new er),ea(e)}(e)}function ea(e){return k("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 es().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 es().captureEvent(e,t)}function ef(e,t){es().addBreadcrumb(e,t)}function eh(...e){let t=es();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 es().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 S&&R.forEach(function(e){e in S.console&&V
|
|
|
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:s})),[s,e,i]);return l.useMemo(()=>C?l.createElement(u.Provider,{value:k},z):z,[u,z,k])}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)}},M=function({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:o="once"}){let s=l.useMemo(()=>{let t=E(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:o}},[e,r,i,o]),a=l.useMemo(()=>e.getState(),[e]);return _(()=>{let{subscription:t}=s;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),a!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}},[s,a]),l.createElement((t||d).Provider,{value:s},n)};i.useSyncExternalStoreWithSelector,I=r.useSyncExternalStore,s=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),s="undefined"!=typeof window?window:null,a=null===s,l=a?void 0:s.document,u="addEventListener",c="removeEventListener",d="getBoundingClientRect",f="horizontal",h=function(){return!1},p=a?"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},w=function(e,t,n){var r={};return m(t)?r[e]=t:r[e]=p+"("+t+"% - "+n+"px)",r},x=function(e,t){var n;return(n={})[e]=t+"px",n},S=function(e,t){if(void 0===t&&(t={}),a)return{};var n,r,i,o,p,m,S=e;Array.from&&(S=Array.from(S));var k=g(S[0]).parentNode,E=getComputedStyle?getComputedStyle(k):null,_=E?E.flexDirection:null,C=v(t,"sizes")||S.map(function(){return 100/S.length}),O=v(t,"minSize",100),T=Array.isArray(O)?O:S.map(function(){return O}),I=v(t,"maxSize",1/0),P=Array.isArray(I)?I:S.map(function(){return I}),A=v(t,"expandToMin",!1),R=v(t,"gutterSize",10),M=v(t,"gutterAlign","center"),j=v(t,"snapOffset",30),N=Array.isArray(j)?j:S.map(function(){return j}),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",w),$=v(t,"gutterStyle",x);function U(e,t,r,i){var o=B(n,t,r,i);Object.keys(o).forEach(function(t){e.style[t]=o[t]})}function V(){return m.map(function(e){return e.size})}function q(e){return"touches"in e?e.touches[0][r]:e[r]}function W(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,U(t.element,t.size,this._b,t.i),U(n.element,n.size,this._c,n.i)}function H(e){var n,r=m[this.a],i=m[this.b];this.dragging&&(n=q(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)),W.call(this,n),v(t,"onDrag",h)(V()))}function G(){var e=m[this.a].element,t=m[this.b].element,r=e[d](),s=t[d]();this.size=r[n]+s[n]+this._b+this._c,this.start=r[i],this.end=r[o]}function Z(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)}(k);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 s=t*i/100,a=y(R,0===o,o===e.length-1,M),l=T[o]+a;return s<l?(n+=l-s,r.push(0),l):(r.push(s-l),s)});return 0===n?e:i.map(function(e,i){var o=e;if(n>0&&r[i]-n>0){var s=Math.min(n,r[i]-n);n-=s,o=e-s}return o/t*100})}function K(){var e=m[this.a].element,n=m[this.b].element;this.dragging&&v(t,"onDragEnd",h)(V()),this.dragging=!1,s[c]("mouseup",this.stop),s[c]("touchend",this.stop),s[c]("touchcancel",this.stop),s[c]("mousemove",this.move),s[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)(V()),e.preventDefault(),this.dragging=!0,this.move=H.bind(this),this.stop=K.bind(this),s[u]("mouseup",this.stop),s[u]("touchend",this.stop),s[u]("touchcancel",this.stop),s[u]("mousemove",this.move),s[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,G.call(this),this.dragOffset=q(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=Z(C);var J=[];function X(e){var t=e.i===J.length,n=t?J[e.i-1]:J[e.i];G.call(n);var r=t?n.size-e.minSize-n._c:e.minSize+n._b;W.call(n,r)}return(m=S.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:k})._b=y(R,t-1==0,!1,M),r._c=y(R,!1,t===S.length-1,M),"row-reverse"===_||"column-reverse"===_)){var o=r.a;r.a=r.b,r.b=o}if(t>0){var s,a=F(t,L,i.element);Object.keys(s=$(n,R,t)).forEach(function(e){a.style[e]=s[e]}),r._a=Y.bind(r),a[u]("mousedown",r._a),a[u]("touchstart",r._a),k.insertBefore(a,i.element),r.gutter=a}return U(i.element,i.size,y(R,0===t,t===S.length-1,M),t),t>0&&J.push(r),i})).forEach(function(e){var t=e.element[d]()[n];t<e.minSize&&(A?X(e):e.minSize=t)}),{setSizes:function(e){var t=Z(e);t.forEach(function(e,n){if(n>0){var r=J[n-1],i=m[r.a],o=m[r.b];i.size=t[n-1],o.size=e,U(i.element,i.size,r._b,i.i),U(o.element,o.size,r._c,o.i)}})},getSizes:V,collapse:function(e){X(m[e])},destroy:function(e,t){J.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:k,pairs:J}};function k(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=k(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=S(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,s=k(n,["children","minSize","sizes","collapsed"]),a=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(a)){var d=!1;r.forEach(function(e,t){d=d||e!==a[t]}),c=c||d}else c=!!(Array.isArray(r)||Array.isArray(a))||c||r!==a;if(c)s.minSize=r,s.sizes=i||this.split.getSizes(),this.split.destroy(!0,!0),s.gutter=function(e,t,n){return n.previousSibling},this.split=S(Array.from(this.parent.children).filter(function(e){return!e.__isSplitGutter}),s);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=k(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(80830);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",s=function(){return Math.random().toString(36).substring(7).split("").join(".")},a={INIT:"@@redux/INIT"+s(),REPLACE:"@@redux/REPLACE"+s(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+s()}};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,s=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=s(u,e)}finally{f=!1}for(var t=c=d,n=0;n<t.length;n++)(0,t[n])();return e}return g({type:a.INIT}),(r={dispatch:g,subscribe:m,getState:p,replaceReducer:function(e){if("function"!=typeof e)throw Error(i(10));s=e,g({type:a.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))},s={getState:n.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=t.map(function(e){return e(s)});return o=d.apply(void 0,a)(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 s},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),s=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=s},[s]),s.result}var o=i,s=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,s=r.useEffect,a=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 a(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),s(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},s=i.useSyncExternalStore,a=r.useRef,l=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var h=s(e,(d=u(function(){function e(e){if(!l){if(l=!0,s=e,e=r(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return a=t}return a=e}if(t=a,o(s,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(s=e,t):(s=e,a=n)}var s,a,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(){},4776:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},52907:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(32295);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}},82040: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}})},80830:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(52907);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}},14022: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}})},37399: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}})},32295:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(81109);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+""}},81109: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 s}});var r=n(95034),i=n(66703),o=n(37584);function s(e){let{isOpen:t,ref:n}=e,[s,a]=(0,i.useState)(t),[l,u]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{l||(a(t),u(!0))},[t,l,s]),(0,o.O)(()=>n.current,"animationend",()=>{a(t)}),{present:!(!t&&!s),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),[s,a]=(0,r.useState)(e);(0,r.useEffect)(()=>a(e),[e]);let{timeout:l=1500,...u}="number"==typeof t?{timeout:t}:t,c=(0,r.useCallback)(e=>{let t="string"==typeof e?e:s;"clipboard"in navigator?navigator.clipboard.writeText(t).then(()=>o(!0)).catch(()=>o(i(t,u))):o(i(t,u))},[s,u]);return(0,r.useEffect)(()=>{let e=null;return n&&(e=window.setTimeout(()=>{o(!1)},l)),()=>{e&&window.clearTimeout(e)}},[l,n]),{value:s,setValue:a,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:s}=e,a=(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!=s?s:"disclosure-".concat(h),m=(0,i.useCallback)(()=>{f||c(!1),null==l||l()},[f,l]),g=(0,i.useCallback)(()=>{f||c(!0),null==a||a()},[f,a]),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 s=(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,s,o),()=>{r.removeEventListener(t,s,o)}},[t,e,o,s,n]),()=>{let n="function"==typeof e?e():null!=e?e:document;null==n||n.removeEventListener(t,s,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),s=n(66703),a=n(37584),l=n(59129),u=n(95318);function c(e,t){let{shouldFocus:n,visible:o,focusRef:s}=t,a=n&&!o;(0,u.r)(()=>{let t;if(!a||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==s?void 0:s.current)||e.current;if(n)return t=requestAnimationFrame(()=>{n.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(t)}},[a,e,s])}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,s.useRef)(h),m=(0,s.useRef)(c);(0,l.G)(()=>{!m.current&&c&&(p.current=h),m.current=c},[c,h]);let g=(0,s.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,a.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=>{s(e,t)&&(u.isPointerDown=!0)},r=e=>{if(u.ignoreEmulatedMouseEvents){u.ignoreEmulatedMouseEvents=!1;return}u.isPointerDown&&n&&s(e,t)&&(u.isPointerDown=!1,l(e))},i=e=>{u.ignoreEmulatedMouseEvents=!0,n&&u.isPointerDown&&s(e,t)&&(u.isPointerDown=!1,l(e))},c=a(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 s(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||!!a(o).contains(o))&&!(null===(r=t.current)||void 0===r?void 0:r.contains(o))}function a(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 s(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 a=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:s,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:s,colorScheme:"red"},loading:{icon:a.$,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),s=n(50393),a=n(43906),l=n(49110);let u=(0,a.G)(function(e,t){let{status:n}=(0,s.oX)(),a=(0,s.uL)(),u=(0,i.k0)({display:"inline",...a.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 a}});var r=n(20130),i=n(90010),o=n(50393),s=n(49110);function a(e){let{status:t}=(0,o.oX)(),n=(0,o.XO)(t),a=(0,o.uL)(),l="loading"===t?a.spinner:a.icon;return(0,r.jsx)(s.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%"})})}a.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),s=n(90010),a=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,a.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)(a.uZ,{value:{status:u},children:(0,r.jsx)(a.Hm,{value:p,children:(0,r.jsx)(c.m.div,{"data-status":u,role:d?"alert":void 0,ref:t,...f,className:(0,s.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),s=n(43906),a=n(35364),l=n(49110);let u=(0,s.G)(function(e,t){let n=(0,a.m)("Badge",e),{className:s,...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),s=n(90010),a=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:a,...u}=e,d=(0,l.w)(),f={ref:t,as:i,className:(0,s.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:a,...f})});d.displayName="BreadcrumbLink";let f=(0,u.G)(function(e,t){let{spacing:n,...o}=e,s=(0,l.w)(),a=(0,i.k0)({mx:n,...s.separator});return(0,r.jsx)(c.m.span,{ref:t,role:"presentation",...o,__css:a})});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,a.cloneElement)(e,{isCurrentPage:n}):e.type===f?(0,a.cloneElement)(e,{spacing:p,children:e.props.children||u}):e),b=(0,l.w)(),w=(0,i.k0)({display:"inline-flex",alignItems:"center",...b.item}),x=(0,s.cx)("chakra-breadcrumb__list-item",g);return(0,r.jsxs)(c.m.li,{ref:t,className:x,...v,__css:w,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),s=n(90010),a=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,a.cloneElement)(e,{separator:h,spacing:f,isLastChild:y===t+1})),w=(0,s.cx)("chakra-breadcrumb",p);return(0,r.jsx)(d.m.nav,{ref:t,"aria-label":"breadcrumb",className:w,__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),s=n(13319),a=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,a.G)(function(e,t){let{size:n,colorScheme:a,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:a,variant:d,isDisabled:m}),[n,a,d,m]),w={display:"inline-flex",...p?u[g]:c[g](h)},x="vertical"===g;return(0,r.jsx)(s.D,{value:b,children:(0,r.jsx)(l.m.div,{ref:t,role:"group",__css:w,className:y,"data-attached":p?"":void 0,"data-orientation":g,flexDir:x?"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),s=n(26934),a=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,s=(0,a.cx)("chakra-button__icon",n);return(0,r.jsx)(c.m.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...i,className:s,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:s,__css:u,...d}=e,p=(0,a.cx)("chakra-button__spinner",s),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:w,loadingText:x,iconSpacing:S="0.5rem",type:k,spinner:E,spinnerPlacement:_="start",className:C,as:O,shouldWrapChildren:T,...I}=(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:A,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),M={rightIcon:w,leftIcon:b,iconSpacing:S,children:v,shouldWrapChildren:T};return(0,r.jsxs)(c.m.button,{disabled:f||h,ref:(0,i.qq)(t,A),as:O,type:null!=k?k:R,"data-active":(0,s.P)(m),"data-loading":(0,s.P)(h),__css:P,className:(0,a.cx)("chakra-button",C),...I,children:[h&&"start"===_&&(0,r.jsx)(p,{className:"chakra-button__spinner--start",label:x,placement:"start",spacing:S,children:E}),h?x||(0,r.jsx)(c.m.span,{opacity:0,children:(0,r.jsx)(y,{...M})}):(0,r.jsx)(y,{...M}),h&&"end"===_&&(0,r.jsx)(p,{className:"chakra-button__spinner--end",label:x,placement:"end",spacing:S,children:E})]})});function y(e){let{leftIcon:t,rightIcon:n,children:i,iconSpacing:o,shouldWrapChildren:s}=e;return s?(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 s}});var r=n(20130),i=n(66703),o=n(19736);let s=(0,n(43906).G)((e,t)=>{let{icon:n,children:s,isRound:a,"aria-label":l,...u}=e,c=n||s,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:a?"full":void 0,ref:t,"aria-label":l,...u,children:d})});s.displayName="IconButton"},50537:function(e,t,n){"use strict";n.d(t,{M:function(){return s}});var r=n(20130),i=n(49110),o=n(43906);let s=(0,i.m)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});s.displayName="Center";let a={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:a[n],...o,position:"absolute"})})},29354:function(e,t,n){"use strict";let r;n.d(t,{x:function(){return Z}});var i=n(30171),o=n(20130),s=n(19249),a=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,s.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:s}={},colorModeManager:d=f}=e,g=(0,a._)(),v="dark"===i?"dark":"light",[y,b]=(0,l.useState)(()=>m(d,v)),[w,x]=(0,l.useState)(()=>m(d)),{getSystemTheme:S,setClassName:k,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:s,nonce:null==g?void 0:g.nonce}),[s,null==g?void 0:g.nonce]),C="system"!==i||y?y:w,O=(0,l.useCallback)(e=>{let t="system"===e?S():e;b(t),k("dark"===t),E(t),d.set(t)},[d,S,k,E]);p(()=>{"system"===i&&x(S())},[]),(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 I=(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:I,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 w(){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 w=function(){return e},e}let x=String.raw,S=x(b()),k=()=>(0,o.jsx)(y.xB,{styles:S}),E=e=>{let{scope:t=""}=e;return(0,o.jsx)(y.xB,{styles:x(w(),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,S)})};var _=n(96549),C=n(93031),O=n(58450),T=n(23880),I=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 s={};for(let[a,l]of Object.entries(n)){let u=i?.(a)??a,c=[...o,u];if(r?.(n,c))return t(n,o);s[u]=e(l,c)}return s}return t(n,o)}(e)}var A=n(57386),R=n(47301);let M=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function j(e,t){return(0,I.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,M),n=e.semanticTokens,r=e=>A._.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:s,value:a}=o,{variable:l,reference:u}=j(e,n);if(!s){if(e.startsWith("space")){let[t,...n]=e.split("."),r=`${t}.-${n.join(".")}`,o=T.y.negate(a),s=T.y.negate(u);i[r]={value:o,var:l,varRef:s}}r[l]=a,i[e]={value:a,var:l,varRef:u};continue}r=O(r,Object.entries((0,C.Kn)(a)?a:{default:a}).reduce((r,[i,o])=>{if(!o)return r;let s=function(e,r){let i=[String(e).split(".")[0],r].join(".");if(!t[i])return r;let{reference:o}=j(i,n);return o}(e,`${o}`);return"default"===i?r[l]=s:r[A.v?.[i]??i]={[l]:s},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)(a.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[$,U]=(0,D.k)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function V(){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 q=n(43415),W=n(16909);let H=e=>{let{children:t,colorModeManager:n,portalZIndex:r,resetScope:i,resetCSS:s=!0,theme:a={},environment:l,cssVarsRoot:u,disableEnvironment:c,disableGlobalStyle:d}=e,f=(0,o.jsx)(W.u,{environment:l,disabled:c,children:t});return(0,o.jsx)(F,{theme:a,cssVarsRoot:u,children:(0,o.jsxs)(g,{colorModeManager:n,options:a.config,children:[s?(0,o.jsx)(E,{scope:i}):(0,o.jsx)(k,{}),!d&&(0,o.jsx)(V,{}),r?(0,o.jsx)(q.h,{zIndex:r,children:f}):f]})})};var G=n(76694);let Z=(r=i.rS,function(e){let{children:t,theme:n=r,toastOptions:i,...s}=e;return(0,o.jsxs)(H,{theme:n,...s,children:[(0,o.jsx)(G.Qi,{value:null==i?void 0:i.defaultOptions,children:t}),(0,o.jsx)(G.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),s=n(33164),a=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},w={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},x=(0,l.F4)({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),S=(0,l.F4)({from:{opacity:0},to:{opacity:1}}),k=(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:I=null==n?void 0:n.isDisabled,onChange:P,inputProps:A,...R}=h,M=T;(null==n?void 0:n.value)&&h.value&&(M=n.value.includes(h.value));let j=P;(null==n?void 0:n.onChange)&&h.value&&(j=(0,o.P)(n.onChange,P));let{state:N,getInputProps:D,getCheckboxProps:L,getLabelProps:z,getRootProps:F}=(0,g.O)({...R,isDisabled:I,isChecked:M,onChange:j}),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(S," 20ms linear, ").concat(k," 200ms linear"):"".concat(x," 200ms linear"):void 0,...c.icon,...(0,s.o)({fontSize:C,color:_})}),[_,C,B,N.isIndeterminate,c.icon]),U=(0,u.cloneElement)(O,{__css:$,isIndeterminate:N.isIndeterminate,isChecked:N.isChecked});return(0,r.jsxs)(f.m.label,{__css:{...w,...c.container},className:(0,a.cx)("chakra-checkbox",v),...F(),children:[(0,r.jsx)("input",{className:"chakra-checkbox__input",...D(A,t)}),(0,r.jsx)(f.m.span,{__css:{...b,...c.control},className:"chakra-checkbox__control",...L(),children:U}),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),s=n(6461),a=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":w}=(0,f.K)(e),{defaultChecked:x,isChecked:S,isFocusable:k,onChange:E,isIndeterminate:_,name:C,value:O,tabIndex:T,"aria-label":I,"aria-labelledby":P,"aria-invalid":A,...R}=e,M=(0,a.C)(R,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),j=(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),[$,U]=(0,d.useState)(!1),[V,q]=(0,d.useState)(!1);(0,d.useEffect)(()=>(0,c.BT)(z),[]);let W=(0,d.useRef)(null),[H,G]=(0,d.useState)(!0),[Z,K]=(0,d.useState)(!!x),Y=void 0!==S,J=Y?S:Z,X=(0,d.useCallback)(e=>{if(n||t){e.preventDefault();return}Y||(J?K(e.currentTarget.checked):K(!!_||e.currentTarget.checked)),null==j||j(e)},[n,t,J,Y,_,j]);(0,i.G)(()=>{W.current&&(W.current.indeterminate=!!_)},[_]),(0,o.r)(()=>{t&&B(!1)},[t,B]),(0,i.G)(()=>{let e=W.current;if(!(null==e?void 0:e.form))return;let t=()=>{K(!!x)};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&&!k,ee=(0,d.useCallback)(e=>{" "===e.key&&q(!0)},[q]),et=(0,d.useCallback)(e=>{" "===e.key&&q(!1)},[q]);(0,i.G)(()=>{W.current&&W.current.checked!==J&&K(W.current.checked)},[W.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)(V),"data-hover":(0,l.P)($),"data-checked":(0,l.P)(J),"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(),q(!0)}),onMouseUp:(0,u.v)(e.onMouseUp,()=>q(!1)),onMouseEnter:(0,u.v)(e.onMouseEnter,()=>U(!0)),onMouseLeave:(0,u.v)(e.onMouseLeave,()=>U(!1))}},[V,J,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)(V),"data-hover":(0,l.P)($),"data-checked":(0,l.P)(J),"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)}},[V,J,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{...M,htmlFor:H?v:void 0,...e,ref:(0,s.lq)(n,e=>{e&&G("LABEL"===e.tagName)}),onClick:(0,u.v)(e.onClick,()=>{if(!H){var e;null===(e=W.current)||void 0===e||e.click(),requestAnimationFrame(()=>{var e;null===(e=W.current)||void 0===e||e.focus({preventScroll:!0})})}}),"data-disabled":(0,l.P)(t),"data-checked":(0,l.P)(J),"data-invalid":(0,l.P)(g)}},[M,t,J,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,s.lq)(W,r),type:"checkbox",name:C,value:O,id:v,tabIndex:T,onChange:(0,u.v)(e.onChange,X),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:J,disabled:Q,readOnly:n,"aria-label":I,"aria-labelledby":P,"aria-invalid":A?!!A:g,"aria-describedby":w,"aria-disabled":t,"aria-checked":_?"mixed":J,style:h.N}},[C,O,v,T,X,N,D,ee,et,p,J,Q,n,I,P,A,g,w,t,_]),es=(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)(J),"data-invalid":(0,l.P)(g)}},[J,t,g]);return{state:{isInvalid:g,isFocused:F,isChecked:J,isActive:V,isHovered:$,isIndeterminate:_,isDisabled:t,isReadOnly:n,isRequired:p},getRootProps:ei,getCheckboxProps:en,getIndicatorProps:er,getInputProps:eo,getLabelProps:es,htmlProps:M}}function m(e){e.preventDefault(),e.stopPropagation()}},74269:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var r=n(6461),i=n(26934),o=n(66703);function s(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 a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{ref:t,isDisabled:n,isFocusable:a,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,w]=(0,o.useState)(!0),[x,S]=(0,o.useState)(!1),k=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&&!a,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=>{x&&s(e)&&(e.preventDefault(),e.stopPropagation(),S(!1),k.remove(document,"keyup",O,!1))},[x,k]),T=(0,o.useCallback)(e=>{if(null==h||h(e),n||e.defaultPrevented||e.metaKey||!s(e.nativeEvent)||b)return;let t=l&&"Enter"===e.key;u&&" "===e.key&&(e.preventDefault(),S(!0)),t&&(e.preventDefault(),e.currentTarget.click()),k.add(document,"keyup",O,!1)},[n,b,h,l,u,k,O]),I=(0,o.useCallback)(e=>{null==p||p(e),!n&&!e.defaultPrevented&&!e.metaKey&&s(e.nativeEvent)&&!b&&u&&" "===e.key&&(e.preventDefault(),S(!1),e.currentTarget.click())},[u,b,n,p]),P=(0,o.useCallback)(e=>{0===e.button&&(S(!1),k.remove(document,"mouseup",P,!1))},[k]),A=(0,o.useCallback)(e=>{if(0===e.button){if(n){e.stopPropagation(),e.preventDefault();return}b||S(!0),e.currentTarget.focus({preventScroll:!0}),k.add(document,"mouseup",P,!1),null==c||c(e)}},[n,b,c,k,P]),R=(0,o.useCallback)(e=>{0===e.button&&(b||S(!1),null==d||d(e))},[d,b]),M=(0,o.useCallback)(e=>{if(n){e.preventDefault();return}null==g||g(e)},[n,g]),j=(0,o.useCallback)(e=>{x&&(e.preventDefault(),S(!1)),null==v||v(e)},[x,v]),N=(0,r.lq)(t,e=>{e&&"BUTTON"!==e.tagName&&w(!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)(x),"aria-disabled":n?"true":void 0,tabIndex:_?void 0:E,onClick:C,onMouseDown:A,onMouseUp:R,onKeyUp:I,onKeyDown:T,onMouseOver:M,onMouseLeave:j}}},10994:function(e,t,n){"use strict";n.d(t,{P:function(){return c}});var r=n(20130),i=n(66861),o=n(5845),s=n(43906),a=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,s.G)(function(e,t){let n=(0,a.m)("CloseButton",e),{children:o,isDisabled:s,__css:c,...d}=(0,i.L)(e);return(0,r.jsx)(l.m.button,{type:"button","aria-label":"Close",ref:t,disabled:s,__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),s=n(43906),a=n(35364),l=n(49110);let u=(0,s.G)(function(e,t){let n=(0,a.m)("Code",e),{className:s,...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 s},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 s(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 s(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 a=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 a(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),p(this,"unregister",e=>{this.descendants.delete(e);let t=s(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=s(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,s]=(0,o.useState)(-1),a=(0,o.useRef)(null);c(()=>()=>{a.current&&n.unregister(a.current)},[]),c(()=>{if(!a.current)return;let e=Number(a.current.dataset.index);i==e||Number.isNaN(e)||s(e)});let l=e?d(n.register(e)):d(n.register);return{descendants:n,index:i,enabledIndex:n.enabledIndexOf(a.current),register:(0,r.lq)(l,a)}}]}},38622:function(e,t,n){"use strict";n.d(t,{i:function(){return u}});var r=n(20130),i=n(66861),o=n(90010),s=n(43906),a=n(35364),l=n(49110);let u=(0,s.G)(function(e,t){let{borderLeftWidth:n,borderBottomWidth:s,borderTopWidth:u,borderRightWidth:c,borderWidth:d,borderStyle:f,borderColor:h,...p}=(0,a.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:s||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 a},u:function(){return l}});var r=n(20130),i=n(59129),o=n(66703);let s=(0,o.createContext)({getDocument:()=>document,getWindow:()=>window});function a(){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)(s)}function l(e){let{children:t,environment:n,disabled:i}=e,a=(0,o.useRef)(null),l=(0,o.useMemo)(()=>n||{getDocument:()=>{var e,t;return null!==(t=null===(e=a.current)||void 0===e?void 0:e.ownerDocument)&&void 0!==t?t:document},getWindow:()=>{var e,t;return null!==(t=null===(e=a.current)||void 0===e?void 0:e.ownerDocument.defaultView)&&void 0!==t?t:window}},[n]),u=!i||!n;return(0,r.jsxs)(s.Provider,{value:l,children:[t,u&&(0,r.jsx)("span",{id:"__chakra_env",hidden:!0,ref:a})]})}s.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),s=n(58450);function a(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=>a(e)?e(t):function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return s({},...t,c)}(t,e)))(d)},u=l(o.rS);function c(e,t,n,i){return(a(e)||a(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 s({},a(e)?e(...r):e,a(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 s}});var r=n(20130),i=n(43906),o=n(49110);let s=(0,i.G)(function(e,t){let{direction:n,align:i,justify:s,wrap:a,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:s,flexWrap:a,flexBasis:l,flexGrow:u,flexShrink:c},...d})});s.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),s=n(9396),a=n(26934),l=n(90010),u=n(66703),c=n(43906),d=n(35364),f=n(49110);let[h,p]=(0,s.k)({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<FormControl />\" "}),[m,g]=(0,s.k)({strict:!1,name:"FormControlContext"}),v=(0,c.G)(function(e,t){let n=(0,d.j)("Form",e),{getRootProps:s,htmlProps:c,...p}=function(e){let{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:s,...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,w]=(0,u.useState)(!1),x=(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]),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{...e,ref:t,"data-focus":(0,a.P)(b),"data-disabled":(0,a.P)(o),"data-invalid":(0,a.P)(r),"data-readonly":(0,a.P)(s),id:void 0!==e.id?e.id:f,htmlFor:void 0!==e.htmlFor?e.htmlFor:d}},[d,o,b,r,s,f]),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{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,a.P)(b),"data-disabled":(0,a.P)(o),"data-invalid":(0,a.P)(r),"data-readonly":(0,a.P)(s)}},[l,o,b,r,s]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!s,isDisabled:!!o,isFocused:!!b,onFocus:()=>w(!0),onBlur:()=>w(!1),hasFeedbackText:m,setHasFeedbackText:g,hasHelpText:v,setHasHelpText:y,id:d,labelId:f,feedbackId:h,helpTextId:p,htmlProps:l,getHelpTextProps:x,getErrorMessageProps:k,getRootProps:E,getLabelProps:S,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,{...s({},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),s=n(90010),a=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,a.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,s.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,a.NJ)();if(!(null==i?void 0:i.isInvalid))return null;let o=(0,s.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),s=n(22488),a=n(43906),l=n(35364),u=n(49110);let c=(0,a.G)(function(e,t){var n;let a=(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,s.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",...a},children:[h,(null==v?void 0:v.isRequired)?p:m]})});c.displayName="FormLabel";let d=(0,a.G)(function(e,t){let n=(0,s.NJ)(),i=(0,s.e)();if(!(null==n?void 0:n.isRequired))return null;let a=(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:a})});d.displayName="RequiredIndicator"},31172:function(e,t,n){"use strict";n.d(t,{K:function(){return a},Y:function(){return s}});var r=n(26934),i=n(11915),o=n(22488);function s(e){let{isDisabled:t,isInvalid:n,isReadOnly:i,isRequired:o,...s}=a(e);return{...s,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 a(e){var t,n,r;let s=(0,o.NJ)(),{id:a,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==s?void 0:s.hasFeedbackText)&&(null==s?void 0:s.isInvalid)&&y.push(s.feedbackId),(null==s?void 0:s.hasHelpText)&&y.push(s.helpTextId),{...v,"aria-describedby":y.join(" ")||void 0,id:null!=a?a:null==s?void 0:s.id,isDisabled:null!==(t=null!=l?l:p)&&void 0!==t?t:null==s?void 0:s.isDisabled,isReadOnly:null!==(n=null!=u?u:h)&&void 0!==n?n:null==s?void 0:s.isReadOnly,isRequired:null!==(r=null!=c?c:d)&&void 0!==r?r:null==s?void 0:s.isRequired,isInvalid:null!=f?f:null==s?void 0:s.isInvalid,onFocus:(0,i.v)(null==s?void 0:s.onFocus,m),onBlur:(0,i.v)(null==s?void 0:s.onBlur,g)}}},72025:function(e,t,n){"use strict";n.d(t,{r:function(){return s}});var r=n(20130),i=n(43906),o=n(49110);let s=(0,i.G)(function(e,t){let{templateAreas:n,gap:i,rowGap:s,columnGap:a,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:s,gridColumnGap:a,gridAutoColumns:h,gridColumn:l,gridRow:u,gridAutoFlow:c,gridAutoRows:d,gridTemplateRows:f,gridTemplateColumns:p},...m})});s.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),s=n(28561),a=n(43906),l=n(35364);let u=(0,a.G)(function(e,t){let n=(0,l.m)("Mark",e),i=(0,o.L)(e);return(0,r.jsx)(s.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 s=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:s.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 a}});var r=n(20130),i=n(66703),o=n(5845),s=n(43906);function a(e){let{viewBox:t="0 0 24 24",d:n,displayName:a,defaultProps:l={}}=e,u=i.Children.toArray(e.path),c=(0,s.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=a,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),s=n(35364),a=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,s.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)(a.m.svg,{as:n,...v,...p});let b=null!=d?d:l.path;return(0,r.jsx)(a.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 s=(0,o.G)(function(e,t){let{htmlWidth:n,htmlHeight:i,alt:o,...s}=e;return(0,r.jsx)("img",{width:n,height:i,ref:t,alt:o,...s})});s.displayName="NativeImage";var a=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,...w}=e,x=void 0!==n||void 0!==o,S=null!=m||g||!x,k=u(function(e){let{loading:t,src:n,srcSet:r,onLoad:i,onError:o,crossOrigin:s,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,s&&(e.crossOrigin=s),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,s,r,u,i,o,t]),m=()=>{h.current&&(h.current.onload=null,h.current.onerror=null,h.current=null)};return(0,a.G)(()=>{if(!c)return"loading"===d&&p(),()=>{m()}},[d,p,c]),c?"loaded":d}({...e,crossOrigin:v,ignoreFallback:S}),y),E={ref:t,objectFit:p,objectPosition:h,...S?w:(0,i.C)(w,["onError","onLoad"])};return k?o||(0,r.jsx)(c.m.img,{as:s,className:"chakra-image__placeholder",src:n,...E}):(0,r.jsx)(c.m.img,{as:s,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),s=n(49110),a=n(43906);let l=(0,s.m)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),u=(0,a.G)(function(e,t){var n,i;let{placement:s="left",...a}=e,u=(0,o.m)(),c=u.field,d={["left"===s?"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,...a})});u.id="InputElement",u.displayName="InputElement";let c=(0,a.G)(function(e,t){let{className:n,...o}=e,s=(0,i.cx)("chakra-input__left-element",n);return(0,r.jsx)(u,{ref:t,placement:"left",className:s,...o})});c.id="InputLeftElement",c.displayName="InputLeftElement";let d=(0,a.G)(function(e,t){let{className:n,...o}=e,s=(0,i.cx)("chakra-input__right-element",n);return(0,r.jsx)(u,{ref:t,placement:"right",className:s,...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),s=n(90010),a=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,s.cx)("chakra-input__group",c),g={},v=(0,a.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),s=n(31172),a=n(43906),l=n(35364),u=n(49110);let c=(0,a.G)(function(e,t){let{htmlSize:n,...a}=e,c=(0,l.j)("Input",a),d=(0,i.L)(a),f=(0,s.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),s=n(43906),a=n(35364),l=n(49110);let u=(0,s.G)(function(e,t){let n=(0,a.m)("Link",e),{className:s,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",s),...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),s=n(84535),a=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:a="none",stylePosition:l,spacing:f,...h}=(0,i.L)(e),p=(0,s.W)(o);return(0,r.jsx)(d,{value:n,children:(0,r.jsx)(c.m.ul,{ref:t,listStyleType:a,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)(a.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),s=n(16909),a=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,a.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,s.O)(),a=Array.isArray(e)?e:[e],l=Array.isArray(r)?r:[r];l=l.filter(e=>null!=e);let[u,c]=(0,o.useState)(()=>a.map((e,t)=>({media:e,matches:n?!!l[t]:i().matchMedia(e).matches})));return(0,o.useEffect)(()=>{let e=i();c(a.map(t=>({media:t,matches:e.matchMedia(t).matches})));let t=a.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,a.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),s=n(37261),a=n(43906),l=n(49110);let u=(0,a.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,a.G)((e,t)=>{let{children:n,as:o,...a}=e,c=(0,s.zZ)(a,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 a}});var r=n(20130),i=n(90010),o=n(91504),s=n(49110);let a=e=>{let{className:t,...n}=e,a=(0,o.x)();return(0,r.jsx)(s.m.hr,{"aria-orientation":"horizontal",className:(0,i.cx)("chakra-menu__divider",t),...n,__css:a.divider})};a.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),s=n(43906),a=n(49110);let l=(0,s.G)((e,t)=>{let{title:n,children:s,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)(a.m.p,{className:c,...u,__css:d.groupTitle,children:n}),s]})});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),s=n(91504),a=n(49110);let l=e=>{let{className:t,children:n,...l}=e,u=(0,s.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)(a.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),s=n(43906),a=n(49110);let l=(0,s.G)((e,t)=>{let n=(0,o.x)();return(0,r.jsx)(a.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,s.G)((e,t)=>{let{type:n,...i}=e,s=(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,...s.item}),[s.item]);return(0,r.jsx)(a.m.button,{ref:t,type:l,...i,__css:u})});var f=n(37261);let h=(0,s.G)((e,t)=>{let{icon:n,iconSpacing:o="0.75rem",command:s,commandSpacing:a="0.75rem",children:c,...h}=e,p=(0,f.iX)(h,t),m=n||s?(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,s&&(0,r.jsx)(l,{marginStart:a,children:s})]})});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),s=n(42349),a=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)(s.E.div),h=(0,c.G)(function(e,t){var n,s;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),w=(0,a.x)();return(0,r.jsx)(u.m.div,{...b,__css:{zIndex:null!==(s=e.zIndex)&&void 0!==s?s:null===(n=w.list)||void 0===n?void 0:n.zIndex},children:(0,r.jsx)(f,{variants:d,initial:!1,animate:m?"enter":"exit",__css:{outline:0,...w.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),s=n(69072),a=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,a.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,s.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 x},H9:function(){return E},zZ:function(){return _},Xh:function(){return S},iX:function(){return I},_l:function(){return O},Qh:function(){return T}});var r=n(85071),i=n(18404),o=n(15749),s=n(19774),a=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,w]=(0,p.n)(),[x,S]=(0,c.k)({strict:!1,name:"MenuContext"});function k(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:w="unmount",direction:x,computePositionOnMount:S=!1,...E}=e,_=(0,a.useRef)(null),C=(0,a.useRef)(null),O=(0,a.useRef)(!0),T=b(),I=(0,a.useCallback)(()=>{requestAnimationFrame(()=>{var e;null===(e=_.current)||void 0===e||e.focus({preventScroll:!1})})},[]),P=(0,a.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})});q.current.add(e)},[T,c]),A=(0,a.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})}});q.current.add(e)},[T]),R=(0,a.useCallback)(()=>{null==v||v(),d?P():I()},[d,P,I,v]),{isOpen:M,onOpen:j,onClose:N,onToggle:D}=(0,r.q)({isOpen:h,defaultIsOpen:p,onClose:g,onOpen:R});(0,i.O)({enabled:M&&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:M||S,placement:y,direction:x}),[z,F]=(0,a.useState)(-1);(0,o.C)(_,{focusRef:C,visible:M,shouldFocus:!0});let B=(0,s.h)({isOpen:M,ref:_}),[$,U]=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,a.useId)();return(0,a.useMemo)(()=>e||[void 0,n].filter(Boolean).join("-"),[e,void 0,n])}(e);return(0,a.useMemo)(()=>n.map(e=>"".concat(e,"-").concat(i)),[i,n])}(t,"menu-button","menu-list"),V=(0,a.useCallback)(()=>{j(),I()},[j,I]),q=(0,a.useRef)(new Set([]));return(0,a.useEffect)(()=>{let e=q.current;return()=>{e.forEach(e=>clearTimeout(e)),e.clear()}},[]),(0,l.r)(()=>{var e;M||(F(-1),null===(e=_.current)||void 0===e||e.scrollTo(0,0))},[M]),(0,l.r)(()=>{M&&-1===z&&I()},[z,M]),(0,a.useEffect)(()=>{var e;if(!M)return;let t=T.item(z);null==t||null===(e=t.node)||void 0===e||e.focus({preventScroll:!O.current})},[T,z,M]),{openAndFocusMenu:V,openAndFocusFirstItem:(0,a.useCallback)(()=>{j(),P()},[P,j]),openAndFocusLastItem:(0,a.useCallback)(()=>{O.current=!0,j(),A()},[j,A]),onTransitionEnd:(0,a.useCallback)(()=>{var e,t;let n=k(_.current),r=null===(e=_.current)||void 0===e?void 0:e.contains(n.activeElement);if(!(M&&!r))return;let i=null===(t=T.item(z))||void 0===t?void 0:t.node;null==i||i.focus({preventScroll:!O.current})},[M,z,T]),unstable__animationState:B,descendants:T,popper:L,buttonId:$,menuId:U,forceUpdate:L.forceUpdate,orientation:"vertical",isOpen:M,onToggle:D,onOpen:j,onClose:N,menuRef:_,buttonRef:C,focusedIndex:z,closeOnSelect:n,closeOnBlur:u,autoSelect:d,setFocusedIndex:F,isLazy:f,lazyBehavior:w,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=S(),{onToggle:r,popper:i,openAndFocusFirstItem:o,openAndFocusLastItem:s,scrollIntoViewRef:l}=n,c=(0,a.useCallback)(e=>{let t={Enter:o,ArrowDown:o,ArrowUp:s}[e.key];t&&(l.current=!0,e.preventDefault(),e.stopPropagation(),t(e))},[o,s,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=S();if(!n)throw Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");let{focusedIndex:r,setFocusedIndex:i,menuRef:o,isOpen:s,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,a.useState)([]),o=(0,a.useRef)(void 0),s=()=>{o.current&&(clearTimeout(o.current),o.current=null)},l=()=>{s(),o.current=setTimeout(()=>{i([]),o.current=null},t)};return(0,a.useEffect)(()=>s,[]),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)}),w=(0,a.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]),x=(0,a.useRef)(!1);s&&(x.current=!0);let k=(0,h.k)({wasSelected:x.current,enabled:d,mode:p,isSelected:g.present});return{...e,ref:(0,u.lq)(o,t),children:k?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,w)}}function T(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{popper:t,isOpen:n}=S();return t.getPopperProps({...e,style:{visibility:n?"visible":"hidden",...e.style}})}function I(){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:s,isDisabled:l,isFocusable:c,closeOnSelect:d,type:f,...h}=e,{setFocusedIndex:p,focusedIndex:m,closeOnSelect:v,onClose:y,menuId:b,scrollIntoViewRef:x}=S(),E=(0,a.useRef)(null),_="".concat(b,"-menuitem-").concat((0,a.useId)()),{index:O,register:T}=w({disabled:l&&!c}),I=(0,a.useCallback)(e=>{null==n||n(e),l||(x.current=!1,p(O))},[p,O,l,n,x]),P=(0,a.useCallback)(e=>{var t;null==r||r(e),E.current&&k(t=E.current).activeElement!==t&&I(e)},[I,r]),A=(0,a.useCallback)(e=>{null==i||i(e),l||p(-1)},[p,l,i]),R=(0,a.useCallback)(e=>{null==o||o(e),C(e.currentTarget)&&(null!=d?d:v)&&y()},[y,o,v,d]),M=(0,a.useCallback)(e=>{null==s||s(e),p(O)},[p,s,O]),j=O===m,N=(0,g.h)({onClick:R,onFocus:M,onMouseEnter:I,onMouseMove:P,onMouseLeave:A,ref:(0,u.lq)(T,E,t),isDisabled:l,isFocusable:c});return{...h,...N,type:null!=f?f:N.type,id:_,role:"menuitem",tabIndex:j?0:-1}}},12276:function(e,t,n){"use strict";n.d(t,{_T:function(){return a},aR:function(){return s}});var r=n(20130),i=n(32850),o=n(81845);function s(e){let{leastDestructiveRef:t,...n}=e;return(0,r.jsx)(i.u_,{...n,initialFocusRef:t})}let a=(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),s=n(32850),a=n(43906),l=n(49110);let u=(0,a.G)((e,t)=>{let{className:n,...a}=e,{bodyId:u,setBodyMounted:c}=(0,s.vR)();(0,o.useEffect)(()=>(c(!0),()=>c(!1)),[c]);let d=(0,i.cx)("chakra-modal__body",n),f=(0,s.I_)();return(0,r.jsx)(l.m.div,{ref:t,className:d,id:u,...a,__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),s=n(32850),a=n(10994);let l=(0,n(43906).G)((e,t)=>{let{onClick:n,className:l,...u}=e,{onClose:c}=(0,s.vR)(),d=(0,i.cx)("chakra-modal__close-btn",l),f=(0,s.I_)();return(0,r.jsx)(a.P,{ref:t,__css:f.closeButton,className:d,onClick:(0,o.v)(n,e=>{e.stopPropagation(),c()}),...u})});l.displayName="ModalCloseButton"},81845:function(e,t,n){"use strict";n.d(t,{h:function(){return tJ}});var r,i,o,s,a,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 w(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 x(e){return e}function S(e,t){void 0===t&&(t=x);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)},s=function(){return Promise.resolve().then(o)};s(),n={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),n}}}}}function k(e,t){return void 0===t&&(t=x),S(e,t)}function E(e){void 0===e&&(e={});var t=S(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],s=e.forwardProps,a=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,x=(0,p._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=w([n,t]),k=(0,p.pi)((0,p.pi)({},x),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}),s?h.cloneElement(h.Children.only(a),(0,p.pi)((0,p.pi)({},k),{ref:S})):h.createElement(void 0===y?"div":y,(0,p.pi)({},k,{className:l,ref:S}),a))});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 I=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=s||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=I();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},A=function(){var e=P();return function(t){return e(t.styles,t.dynamic),null}},R={left:0,top:0,right:0,gap:0},M=function(e){return parseInt(e||"",10)||0},j=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[M(n),M(r),M(i)]},N=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return R;var t=j(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=A(),L="data-scroll-locked",z=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(a,"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(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(m," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(g," {\n margin-right: ").concat(a,"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(a,"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")})},U=!1;if("undefined"!=typeof window)try{var V=Object.defineProperty({},"passive",{get:function(){return U=!0,!0}});window.addEventListener("test",V,V),window.removeEventListener("test",V,V)}catch(e){U=!1}var q=!!U&&{passive:!1},W=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),G(e,r)){var i=Z(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},G=function(e,t){return"v"===e?W(t,"overflowY"):W(t,"overflowX")},Z=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,s=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),a=s*r,l=n.target,u=t.contains(l),c=!1,d=a>0,f=0,h=0;do{var p=Z(e,l),m=p[0],g=p[1]-p[2]-s*m;(m||g)&&G(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&&a>f)?c=!0:!d&&(i&&1>Math.abs(h)||!i&&-a>h)&&(c=!0),c},Y=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},J=function(e){return[e.deltaX,e.deltaY]},X=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(A)[0],s=h.useRef(e);h.useEffect(function(){s.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(X),!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 a=h.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var i,o=Y(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-o[0],u="deltaY"in e?e.deltaY:a[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?J(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=(s.current.shards||[]).map(X).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?a(e,i[0]):!s.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,J(t),t.target,a(t,e.lockRef.current))},[]),f=h.useCallback(function(t){u(t.type,Y(t),t.target,a(t,e.lockRef.current))},[]);h.useEffect(function(){return ee.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,q),document.addEventListener("touchmove",l,q),document.addEventListener("touchstart",c,q),function(){ee=ee.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,q),document.removeEventListener("touchmove",l,q),document.removeEventListener("touchstart",c,q)}},[]);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(14022),eo=n(82040),es="data-focus-lock",ea="data-focus-lock-disabled",el={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},eu=k({},function(e){return{target:e.target,currentTarget:e.currentTarget}}),ec=k(),ed=k(),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],s=(0,h.useRef)(),a=(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),x=e.className,S=e.whiteList,k=e.hasPositiveIndices,E=e.shards,_=void 0===E?ep:E,C=e.as,O=e.lockProps,T=e.sideCar,I=e.returnFocus,P=void 0!==I&&I,A=e.focusOptions,R=e.onActivation,M=e.onDeactivation,j=(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))}s.current&&R&&R(s.current),a.current=!0,u()},[R]),D=(0,h.useCallback)(function(){a.current=!1,M&&M(s.current),u()},[M]),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){a.current&&eu.useMedium(e)},[]),F=ec.useMedium,B=(0,h.useCallback)(function(e){s.current!==e&&(s.current=e,o(e))},[]),$=(0,eo.Z)(((n={})[ea]=f&&"disabled",n[es]=b,n),void 0===O?{}:O),U=!0!==m,V=U&&"tail"!==m,q=w([t,B]),W=(0,h.useMemo)(function(){return{observed:s,shards:_,enabled:!f,active:a.current}},[f,a.current,_,i]);return h.createElement(h.Fragment,null,U&&[h.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:f?-1:0,style:el}),k?h.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:f?-1:1,style:el}):null],!f&&h.createElement(T,{id:j,sideCar:ef,observed:i,disabled:f,persistentFocus:void 0!==g&&g,crossFrame:void 0===v||v,autoFocus:void 0===y||y,whiteList:S,shards:_,onActivation:N,onDeactivation:D,returnFocus:L,focusOptions:A,noFocusGuards:m}),h.createElement(void 0===C?"div":C,(0,eo.Z)({ref:q},$,{className:x,onBlur:F,onFocus:z}),h.createElement(eh.Provider,{value:W},c)),V&&h.createElement("div",{"data-focus-guard":!0,tabIndex:f?-1:0,style:el}))});em.propTypes={};var eg=n(37399),ev=n(52907),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]},ew=function(e){return Array.isArray(e)?e[0]:e},ex=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"))},eS=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},ek=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||ek(t)||!ex(t)&&!t.hasAttribute("inert")&&n(eS(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||!!ek(t)||!!eI(t)&&n(eS(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},eI=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))},eA=function(e){return!eP(e)},eR=function(e){return!!e},eM=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},ej=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(eM)},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)})},eU=function(e,t,n){return ej(eB(eF(e,n),t),!0,n)},eV=function(e,t){return ej(eB(eF(e),t),!1)},eq=function(e,t){return e.shadowRoot?eq(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&&eq(r,t)}return eq(e,t)})},eW=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&&eW(function(){return t.contentWindow.document})?eH(t.contentWindow.document):t}},eG=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 eq(e,t)})},eZ=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(es);return e.push.apply(e,n?eZ(ey(eK(t).querySelectorAll("[".concat(es,'="').concat(n,'"]:not([').concat(ea,'="disabled"])')))):[t]),e},[])},eJ=function(e,t){return void 0===t&&(t=eH(ew(e).ownerDocument)),!!t&&(!t.dataset||!t.dataset.focusGuard)&&eY(e).some(function(e){var n;return eq(e,t)||(n=t,!!ey(e.querySelectorAll("iframe")).some(function(e){return e===n}))})},eX=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))},e3="NEW_FOCUS",e5=function(e,t,n,r,i){var o=e.length,s=e[0],a=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:e3;if(-1===d)return e3;var f=u-c,h=n.indexOf(s),p=n.indexOf(a),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,w=i?y.indexOf(i):b;if(!f&&d>=0||0===t.length)return d;var x=e2(e,t[0]),S=e2(e,t[t.length-1]);if(u<=h&&l&&Math.abs(f)>1)return S;if(u>=p&&l&&Math.abs(f)>1)return x;if(f&&Math.abs(b>=0&&w>=0?w-b:v-g)>1)return d;if(u<=h)return S;if(u>p)return x;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],s=!1;return i.filter(Boolean).forEach(function(e){s=e9(s||e,e)||s,n.filter(Boolean).forEach(function(e){var t=e9(o,e);t&&(s=!s||eq(t,s)?t:e9(t,s))})}),s},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:ew(e).ownerDocument),r=eY(e).filter(eA),i=e8(n||e,e,r),o=new Map,s=eV(r,o),a=s.filter(function(e){return eA(e.node)});if(a[0]){var l=eV([i],o).map(function(e){return e.node}),u=te(l,a),c=u.map(function(e){return e.node}),d=u.filter(function(e){return e.tabIndex>=0}).map(function(e){return e.node}),f=e5(c,d,l,n,t);if(f===e3){var h=e4(s,d,e7(r,o))||e4(s,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++,eX(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 ts=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}},ta=function(e){if(e)for(var t,n,r,i,o,s=e.stack,a=e.ownerDocument,l=new Map,u=0;u<s.length;u++){var c=s[u],d=null===(t=c.parent)||void 0===t?void 0:t.call(c);if(d&&a.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=eU([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=ts(e);return function(){return ta(t)}},tu=function(e){var t=eY(e).filter(eA),n=ej(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!eq(t,e)}))return console.error("Active element is not contained in the scope"),{};var i=n?eU(r,new Map):eV(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?eU(eb(e),new Map):eV(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 s=n(o,i.cycle);s&&eX(s.node,i.focusOptions)}},th=function(e,t,n){var r,i=td(e,null===(r=t.onlyTabbable)||void 0===r||r)[n];i&&eX(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},tw=null,tx=!1,tS=!1,tk=function(e,t){tw={observerNode:e,portaledElement:t}};function tE(e,t,n,r){var i=null,o=e;do{var s=r[o];if(s.guard)s.node.dataset.focusAutoGuard&&(i=s);else if(s.lockItem){if(o!==e)return;i=null}else break}while((o+=n)!==t);i&&(i.node.tabIndex=0)}var t_=function(e){return eV(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,s=t.crossFrame,a=t.focusOptions,l=t.noFocusGuards,u=n||tw&&tw.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(!(s?!!tx:"meanwhile"===tx)||!l||!ty||tS)return!1;var e=t_(h),t=e.findIndex(function(e){return e.node===ty});return 0===t||t===e.length-1}()||!(tg()||eG())||!ty&&i)&&(u&&!(eJ(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)})||tw&&tw.portaledElement===d)&&(document&&!ty&&d&&!i?(d.blur&&d.blur(),document.body.focus()):(e=ti(h,ty,{focusOptions:a}),tw={})),(ty=document&&document.activeElement)!==document.body&&(tb=tl(ty)),tx=!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)},tI=function(){tS=!0},tP=function(){tS=!1,tx="just",tp(function(){tx="meanwhile"})},tA=function(){document.addEventListener("focusin",tO),document.addEventListener("focusout",tT),window.addEventListener("focus",tI),window.addEventListener("blur",tP)},tR=function(){document.removeEventListener("focusin",tO),document.removeEventListener("focusout",tT),window.removeEventListener("focus",tI),window.removeEventListener("blur",tP)},tM={moveFocusInside:ti,focusInside:eJ,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)||tk(n,t)}),ec.assignMedium(tT),ed.assignMedium(function(e){return e(tM)});var tj=(i=function(e){return e.filter(function(e){return!e.disabled})},o=function(e){var t=e.slice(-1)[0];t&&!tv&&tA();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(tM),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 s=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 s=o.prototype;return s.componentDidMount=function(){n.push(this),r()},s.componentDidUpdate=function(){r()},s.componentWillUnmount=function(){var e=n.indexOf(this);n.splice(e,1),r()},s.render=function(){return h.createElement(e,this.props)},o}(h.PureComponent);return(0,ev.Z)(s,"displayName","SideEffect("+(e.displayName||e.name||"Component")+")"),s})(function(){return null}),tN=(0,h.forwardRef)(function(e,t){return h.createElement(em,(0,eo.Z)({sideCar:tj,ref:t},e))}),tD=em.propTypes||{};tD.sideCar,(0,ei.Z)(tD,["sideCar"]),tN.propTypes={};var tL=n(29239);let tz=null!==(a=tN.default)&&void 0!==a?a:tN,tF=e=>{let{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:i,children:o,isDisabled:s,autoFocus:a,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:a,disabled:s,onActivation:d,onDeactivation:f,returnFocus:p,children:o})};function tB(e){let{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:i,blockScrollOnMount:o,allowPinchZoom:s,finalFocusRef:a,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:a,restoreFocus:u,contentRef:r,lockFocusAcrossFrames:p,children:(0,l.jsx)(en,{removeScrollBar:!c,allowPinchZoom:s,enabled:1===y&&o,forwardProps:!0,children:e.children})})}tF.displayName="FocusLock";var t$=n(42349),tU=n(40880),tV=n(35278);let tq={initial:"initial",animate:"enter",exit:"exit",variants:{initial:e=>{var t;let{offsetX:n,offsetY:r,transition:i,transitionEnd:o,delay:s}=e;return{opacity:0,x:n,y:r,transition:null!==(t=null==i?void 0:i.exit)&&void 0!==t?t:tV.p$.exit(tV.Sh.exit,s),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:tV.p$.enter(tV.Sh.enter,i),transitionEnd:null==r?void 0:r.enter}},exit:e=>{var t;let{offsetY:n,offsetX:r,transition:i,transitionEnd:o,reverse:s,delay:a}=e,l={x:r,y:n};return{opacity:0,transition:null!==(t=null==i?void 0:i.exit)&&void 0!==t?t:tV.p$.exit(tV.Sh.exit,a),...s?{...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:s=0,offsetY:a=8,transition:u,transitionEnd:d,delay:f,animatePresenceProps:h,...p}=e,m=!n||r&&n,g=r||n?"enter":"exit",v={offsetX:s,offsetY:a,reverse:i,transition:u,transitionEnd:d,delay:f};return(0,l.jsx)(tU.M,{...h,custom:v,children:m&&(0,l.jsx)(t$.E.div,{ref:t,className:(0,c.cx)("chakra-offset-slide",o),custom:v,...tq,animate:g,...p})})}).displayName="SlideFade";let tW={initial:"exit",animate:"enter",exit:"exit",variants:{exit:e=>{var t;let{reverse:n,initialScale:r,transition:i,transitionEnd:o,delay:s}=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:tV.p$.exit(tV.Sh.exit,s)}},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:tV.p$.enter(tV.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:s,transition:a,transitionEnd:u,delay:d,animatePresenceProps:f,...h}=e,p=!n||r&&n,m=r||n?"enter":"exit",g={initialScale:o,reverse:i,transition:a,transitionEnd:u,delay:d};return(0,l.jsx)(tU.M,{...f,custom:g,children:p&&(0,l.jsx)(t$.E.div,{ref:t,className:(0,c.cx)("chakra-offset-slide",s),...tW,animate:m,custom:g,...h})})}).displayName="ScaleFade";var tH=n(49110);let tG={slideInBottom:{...tq,custom:{offsetY:16,reverse:!0}},slideInRight:{...tq,custom:{offsetX:16,reverse:!0}},slideInTop:{...tq,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...tq,custom:{offsetX:-16,reverse:!0}},scale:{...tW,custom:{initialScale:.95,reverse:!0}},none:{}},tZ=(0,tH.m)(t$.E.section),tK=e=>tG[e||"none"],tY=(0,h.forwardRef)((e,t)=>{let{preset:n,motionProps:r=tK(n),...i}=e;return(0,l.jsx)(tZ,{ref:t,...r,...i})});tY.displayName="ModalTransition";let tJ=(0,n(43906).G)((e,t)=>{let{className:n,children:r,containerProps:i,motionProps:o,...s}=e,{getDialogProps:a,getDialogContainerProps:f}=(0,d.vR)(),h=a(s,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})})})});tJ.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),s=n(32850),a=n(43906),l=n(49110);let u=(0,a.G)((e,t)=>{let{className:n,...a}=e,u=(0,o.cx)("chakra-modal__footer",n),c=(0,s.I_)(),d=(0,i.k0)({display:"flex",alignItems:"center",justifyContent:"flex-end",...c.footer});return(0,r.jsx)(l.m.footer,{ref:t,...a,__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),s=n(66703),a=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,a.vR)();(0,s.useEffect)(()=>(d(!0),()=>d(!1)),[d]);let f=(0,o.cx)("chakra-modal__header",n),h=(0,a.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,s=(e,t,n)=>(o(e,"symbol"!=typeof t?t+"":t,n),n);class a{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(){s(this,"modals"),this.modals=new Set}}let l=new a;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),s=n(32850),a=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:s,className:l,transition:u,transitionEnd:d,delay:f,animatePresenceProps:h,...p}=e,m=s||n?"enter":"exit",g=!n||s&&n,v={transition:u,transitionEnd:d,delay:f};return(0,r.jsx)(a.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:a,...l}=e,u=(0,i.cx)("chakra-modal__overlay",n),d={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...(0,s.I_)().overlay},{motionPreset:f}=(0,s.vR)(),p="none"===f?{}:c;return(0,r.jsx)(h,{...a||p,__css:d,ref:t,className:u,...l})});p.displayName="ModalOverlay"},32850:function(e,t,n){"use strict";n.d(t,{u_:function(){return k},vR:function(){return S},I_:function(){return w}});var r=n(20130),i=n(9396),o=n(40880),s=n(6461),a=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],s=[],a=new Set,h=new Set(i),p=function(e){!e||a.has(e)||(a.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(a.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),s.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),a.clear(),d++,function(){s.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,w]=(0,i.k)({name:"ModalStylesContext",errorMessage:"useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Modal />\" "}),[x,S]=(0,i.k)({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),k=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:w,preserveScrollBarGap:S,motionPreset:k,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),w=(0,m.useRef)(null),x=(0,m.useCallback)(e=>{w.current=e.target},[]),S=(0,m.useCallback)(e=>{"Escape"===e.key&&(e.stopPropagation(),o&&(null==n||n()),null==c||c())},[o,n,c]),[k,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,s.lq)(t,d),id:h,tabIndex:-1,"aria-modal":!0,"aria-labelledby":k?v:void 0,"aria-describedby":_?y:void 0,onClick:(0,a.v)(e.onClick,e=>e.stopPropagation())}},[y,_,h,v,k]),T=(0,m.useCallback)(e=>{e.stopPropagation(),w.current===e.target&&g.m.isTopModal(d.current)&&(i&&(null==n||n()),null==u||u())},[n,i,u]),I=(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,s.lq)(t,f),onClick:(0,a.v)(e.onClick,T),onKeyDown:(0,a.v)(e.onKeyDown,S),onMouseDown:(0,a.v)(e.onMouseDown,x)}},[S,x,T]);return{isOpen:t,onClose:n,headerId:v,bodyId:y,setBodyMounted:C,setHeaderMounted:E,dialogRef:d,overlayRef:f,getDialogProps:O,getDialogContainerProps:I,index:b}}(t),autoFocus:l,trapFocus:u,initialFocusRef:c,finalFocusRef:d,returnFocusOnClose:f,blockScrollOnMount:h,allowPinchZoom:w,preserveScrollBarGap:S,motionPreset:k,lockFocusAcrossFrames:E};return(0,r.jsx)(x,{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})})})})};k.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),s=n(43906),a=n(49110);let l=(0,s.G)(function(e,t){let{getBodyProps:n}=(0,o.lp)(),s=(0,o.SV)();return(0,r.jsx)(a.m.div,{...n(e,t),className:(0,i.cx)("chakra-popover__body",e.className),__css:s.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),s=n(90010),a=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,a.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,a.lp)(),m=(0,a.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,s.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 a},WG:function(){return s},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 />`"}),[s,a]=(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 a}});var r=n(20130),i=n(66703),o=n(76151),s=n(6010);function a(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,s.e)(t)))})}a.displayName="PopoverTrigger"},7749:function(e,t,n){"use strict";n.d(t,{J:function(){return I}});var r=n(20130),i=n(66861),o=n(69072),s=n(76151),a=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),w=n(11915),x=n(66703),S=n(48961),k=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 I(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:s=!0,arrowSize:c,arrowShadowColor:d,trigger:f=E.click,openDelay:h=200,closeDelay:O=200,isLazy:T,lazyBehavior:I="unmount",computePositionOnMount:P,...A}=e,{isOpen:R,onClose:M,onOpen:j,onToggle:N}=(0,a.q)(e),[D,L]=(0,x.useState)(o);(0,x.useEffect)(()=>L(o),[o]);let z=(0,x.useRef)(null),F=(0,x.useRef)(null),B=(0,x.useRef)(null),$=(0,x.useRef)(!1),U=(0,x.useRef)(!1);R&&(U.current=!0);let[V,q]=(0,x.useState)(!1),[W,H]=(0,x.useState)(!1),G=(0,x.useId)(),Z=null!=i?i:G,[K,Y,J,X]=["popover-trigger","popover-content","popover-header","popover-body"].map(e=>"".concat(e,"-").concat(Z)),{referenceRef:Q,getArrowProps:ee,getPopperProps:et,getArrowInnerProps:en,forceUpdate:er}=(0,S.D)({...A,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,s,a;if(!p()||!r)return;let l=null!==(a=null===(s=e.composedPath)||void 0===s?void 0:null===(o=s.call(e))||void 0===o?void 0:o[0])&&void 0!==a?a: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:s&&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)),M())}});let eo=(0,b.k)({wasSelected:U.current,enabled:T,mode:I,isSelected:ei.present}),es=(0,x.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:k.Dq.transformOrigin.varRef,[k.Dq.arrowSize.var]:c?"".concat(c,"px"):void 0,[k.Dq.arrowShadowColor.var]:d},ref:(0,v.lq)(B,r),children:eo?e.children:null,id:Y,tabIndex:-1,role:"dialog",onKeyDown:(0,w.v)(e.onKeyDown,e=>{!e.nativeEvent.isComposing&&n&&"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),M())}),onBlur:(0,w.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&&M()}),"aria-labelledby":V?J:void 0,"aria-describedby":W?X:void 0};return f===E.hover&&(i.role="tooltip",i.onMouseEnter=(0,w.v)(e.onMouseEnter,()=>{$.current=!0}),i.onMouseLeave=(0,w.v)(e.onMouseLeave,e=>{null!==e.nativeEvent.relatedTarget&&($.current=!1,setTimeout(()=>M(),O))})),i},[eo,Y,V,J,W,X,f,n,M,R,t,O,d,c]),ea=(0,x.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,x.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,x.useRef)(void 0),ec=(0,x.useRef)(void 0),ed=(0,x.useCallback)(e=>{null==z.current&&Q(e)},[Q]),ef=(0,x.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,w.v)(e.onClick,N)),f===E.hover&&(r.onFocus=(0,w.v)(e.onFocus,()=>{void 0===eu.current&&j()}),r.onBlur=(0,w.v)(e.onBlur,e=>{let n=C(e),r=!_(B.current,n);R&&t&&r&&M()}),r.onKeyDown=(0,w.v)(e.onKeyDown,e=>{"Escape"===e.key&&M()}),r.onMouseEnter=(0,w.v)(e.onMouseEnter,()=>{$.current=!0,eu.current=window.setTimeout(()=>j(),h)}),r.onMouseLeave=(0,w.v)(e.onMouseLeave,()=>{$.current=!1,eu.current&&(clearTimeout(eu.current),eu.current=void 0),ec.current=window.setTimeout(()=>{!1===$.current&&M()},O)})),r},[K,R,Y,f,ed,N,j,t,M,h,O]);(0,x.useEffect)(()=>()=>{eu.current&&clearTimeout(eu.current),ec.current&&clearTimeout(ec.current)},[]);let eh=(0,x.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=>{q(!!e)})}},[J]),ep=(0,x.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=>{H(!!e)})}},[X]);return{forceUpdate:er,isOpen:R,onAnimationComplete:ei.onComplete,onClose:M,getAnchorProps:el,getArrowProps:ee,getArrowInnerProps:en,getPopoverPositionerProps:ea,getPopoverProps:es,getTriggerProps:ef,getHeaderProps:eh,getBodyProps:ep}}({...c,direction:d.direction});return(0,r.jsx)(s.H2,{value:f,children:(0,r.jsx)(s.WG,{value:t,children:(0,o.P)(n,{isOpen:f.isOpen,onClose:f.onClose,forceUpdate:f.forceUpdate})})})}I.displayName="Popover"},48961:function(e,t,n){"use strict";n.d(t,{D:function(){return ek}});var r,i,o,s,a,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 s=(c(e)?u(e):window).visualViewport,a=!v()&&n,l=(r.left+(a&&s?s.offsetLeft:0))/i,f=(r.top+(a&&s?s.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 w(e){return e?(e.nodeName||"").toLowerCase():null}function x(e){return((c(e)?e.ownerDocument:e.document)||window.document).documentElement}function S(e){return y(x(e)).left+b(e).scrollLeft}function k(e){return u(e).getComputedStyle(e)}function E(e){var t=k(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"===w(e)?e:e.assignedSlot||e.parentNode||(f(e)?e.host:null)||x(e)}function O(e,t){void 0===t&&(t=[]);var n,r=function e(t){return["html","body","#document"].indexOf(w(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),s=i?[o].concat(o.visualViewport||[],E(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(O(C(s)))}function T(e){return d(e)&&"fixed"!==k(e).position?e.offsetParent:null}function I(e){for(var t=u(e),n=T(e);n&&["table","td","th"].indexOf(w(n))>=0&&"static"===k(n).position;)n=T(n);return n&&("html"===w(n)||"body"===w(n)&&"static"===k(n).position)?t:n||function(e){var t=/firefox/i.test(g());if(/Trident/i.test(g())&&d(e)&&"fixed"===k(e).position)return null;var n=C(e);for(f(n)&&(n=n.host);d(n)&&0>["html","body"].indexOf(w(n));){var r=k(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",A="right",R="left",M="auto",j=["top",P,A,R],N="start",D="viewport",L="popper",z=j.reduce(function(e,t){return e.concat([t+"-"+N,t+"-end"])},[]),F=[].concat(j,[M]).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 U(){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 V={passive:!0};function q(e){return e.split("-")[0]}function W(e){return e.split("-")[1]}function H(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function G(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?q(i):null,s=i?W(i):null,a=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case"top":t={x:a,y:n.y-r.height};break;case P:t={x:a,y:n.y+n.height};break;case A: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(s){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 Z={top:"auto",right:"auto",bottom:"auto",left:"auto"};function K(e){var t,n,r,i,o,s,a,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,w=h.x,S=void 0===w?0:w,E=h.y,_=void 0===E?0:E,C="function"==typeof y?y({x:S,y:_}):{x:S,y:_};S=C.x,_=C.y;var O=h.hasOwnProperty("x"),T=h.hasOwnProperty("y"),M=R,j="top",N=window;if(v){var D=I(l),L="clientHeight",z="clientWidth";D===u(l)&&"static"!==k(D=x(l)).position&&"absolute"===p&&(L="scrollHeight",z="scrollWidth"),("top"===d||(d===R||d===A)&&"end"===f)&&(j=P,_-=(b&&D===N&&N.visualViewport?N.visualViewport.height:D[L])-c.height,_*=g?1:-1),(d===R||("top"===d||d===P)&&"end"===f)&&(M=A,S-=(b&&D===N&&N.visualViewport?N.visualViewport.width:D[z])-c.width,S*=g?1:-1)}var F=Object.assign({position:p},v&&Z),B=!0===y?(t={x:S,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:S,y:_};return(S=B.x,_=B.y,g)?Object.assign({},F,((a={})[j]=T?"0":"",a[M]=O?"0":"",a.transform=1>=(N.devicePixelRatio||1)?"translate("+S+"px, "+_+"px)":"translate3d("+S+"px, "+_+"px, 0)",a)):Object.assign({},F,((s={})[j]=T?_+"px":"",s[M]=O?S+"px":"",s.transform="",s))}var Y={left:"right",right:"left",bottom:"top",top:"bottom"};function J(e){return e.replace(/left|right|bottom|top/g,function(e){return Y[e]})}var X={start:"end",end:"start"};function Q(e){return e.replace(/start|end/g,function(e){return X[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,s,a,l,d,f,p,m;return t===D?et(function(e,t){var n=u(e),r=x(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var c=v();(c||!c&&"fixed"===t)&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+S(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=x(e),s=x(i),a=b(i),l=null==(o=i.ownerDocument)?void 0:o.body,d=h(s.scrollWidth,s.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),f=h(s.scrollHeight,s.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),p=-a.scrollLeft+S(i),m=-a.scrollTop,"rtl"===k(l||s).direction&&(p+=h(s.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 es(e,t){void 0===t&&(t={});var n,r,i,o,s,a,l,u,f=t,m=f.placement,g=void 0===m?e.placement:m,v=f.strategy,b=void 0===v?e.strategy:v,S=f.boundary,E=f.rootBoundary,_=f.elementContext,T=void 0===_?L:_,R=f.altBoundary,M=f.padding,N=void 0===M?0:M,z=ei("number"!=typeof N?N:eo(N,j)),F=e.rects.popper,B=e.elements[void 0!==R&&R?T===L?"reference":L:T],$=(n=c(B)?B:B.contextElement||x(e.elements.popper),r=void 0===S?"clippingParents":S,i=void 0===E?D:E,l=(a=[].concat("clippingParents"===r?(o=O(C(n)),c(s=["absolute","fixed"].indexOf(k(n).position)>=0&&d(n)?I(n):n)?o.filter(function(e){return c(e)&&ee(e,s)&&"body"!==w(e)}):[]):[].concat(r),[i]))[0],(u=a.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),U=y(e.elements.reference),V=G({reference:U,element:F,strategy:"absolute",placement:g}),q=et(Object.assign({},F,V)),W=T===L?q:U,H={top:$.top-W.top+z.top,bottom:W.bottom-$.bottom+z.bottom,left:$.left-W.left+z.left,right:W.right-$.right+z.right},Z=e.modifiersData.offset;if(T===L&&Z){var K=Z[g];Object.keys(H).forEach(function(e){var t=[A,P].indexOf(e)>=0?1:-1,n=["top",P].indexOf(e)>=0?"y":"x";H[e]+=K[n]*t})}return H}function ea(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",A,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,s=r.resize,a=void 0===s||s,l=u(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(e){e.addEventListener("scroll",n.update,V)}),a&&l.addEventListener("resize",n.update,V),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",n.update,V)}),a&&l.removeEventListener("resize",n.update,V)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=G({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,s=void 0===o||o,a={placement:q(t.placement),variation:W(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({},a,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===i||i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,K(Object.assign({},a,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),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)&&w(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)&&w(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,s=F.reduce(function(e,n){var r,i,s,a,l,u;return e[n]=(r=t.rects,s=[R,"top"].indexOf(i=q(n))>=0?-1:1,l=(a="function"==typeof o?o(Object.assign({},r,{placement:n})):o)[0],u=a[1],l=l||0,u=(u||0)*s,[R,A].indexOf(i)>=0?{x:u,y:l}:{x:l,y:u}),e},{}),a=s[t.placement],l=a.x,u=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}},{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,s=n.altAxis,a=void 0===s||s,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=q(g)===g,y=l||(v||!p?[J(g)]:function(e){if(q(e)===M)return[];var t=J(e);return[Q(e),t,Q(t)]}(g)),b=[g].concat(y).reduce(function(e,n){var r,i,o,s,a,l,f,h,g,v,y,b;return e.concat(q(n)===M?(i=(r={placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:m}).placement,o=r.boundary,s=r.rootBoundary,a=r.padding,l=r.flipVariations,h=void 0===(f=r.allowedAutoPlacements)?F:f,0===(y=(v=(g=W(i))?l?z:z.filter(function(e){return W(e)===g}):j).filter(function(e){return h.indexOf(e)>=0})).length&&(y=v),Object.keys(b=y.reduce(function(e,n){return e[n]=es(t,{placement:n,boundary:o,rootBoundary:s,padding:a})[q(n)],e},{})).sort(function(e,t){return b[e]-b[t]})):n)},[]),w=t.rects.reference,x=t.rects.popper,S=new Map,k=!0,E=b[0],_=0;_<b.length;_++){var C=b[_],O=q(C),T=W(C)===N,I=["top",P].indexOf(O)>=0,D=I?"width":"height",L=es(t,{placement:C,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),B=I?T?A:R:T?P:"top";w[D]>x[D]&&(B=J(B));var $=J(B),U=[];if(o&&U.push(L[O]<=0),a&&U.push(L[B]<=0,L[$]<=0),U.every(function(e){return e})){E=C,k=!1;break}S.set(C,U)}if(k)for(var V=p?3:1,H=function(e){var t=b.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return E=t,"break"},G=V;G>0&&"break"!==H(G);G--);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,s=n.boundary,a=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=es(t,{boundary:s,rootBoundary:a,padding:u,altBoundary:l}),v=q(t.placement),y=W(t.placement),b=!y,w=H(v),x="x"===w?"y":"x",S=t.modifiersData.popperOffsets,k=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,M={x:0,y:0};if(S){if(void 0===i||i){var j,D="y"===w?"top":R,L="y"===w?P:A,z="y"===w?"height":"width",F=S[w],B=F+g[D],$=F-g[L],U=d?-E[z]/2:0,V=y===N?k[z]:E[z],G=y===N?-E[z]:-k[z],Z=t.elements.arrow,K=d&&Z?_(Z):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:er(),J=Y[D],X=Y[L],Q=ea(0,k[z],K[z]),ee=b?k[z]/2-U-Q-J-O.mainAxis:V-Q-J-O.mainAxis,et=b?-k[z]/2+U+Q+X+O.mainAxis:G+Q+X+O.mainAxis,en=t.elements.arrow&&I(t.elements.arrow),ei=en?"y"===w?en.clientTop||0:en.clientLeft||0:0,eo=null!=(j=null==T?void 0:T[w])?j:0,el=ea(d?p(B,F+ee-eo-ei):B,F,d?h($,F+et-eo):$);S[w]=el,M[w]=el-F}if(void 0!==o&&o){var eu,ec,ed="x"===w?"top":R,ef="x"===w?P:A,eh=S[x],ep="y"===x?"height":"width",em=eh+g[ed],eg=eh-g[ef],ev=-1!==["top",R].indexOf(v),ey=null!=(ec=null==T?void 0:T[x])?ec:0,eb=ev?em:eh-k[ep]-E[ep]-ey+O.altAxis,ew=ev?eh+k[ep]+E[ep]-ey-O.altAxis:eg,ex=d&&ev?(eu=ea(eb,eh,ew))>ew?ew:eu:ea(d?eb:em,eh,d?ew:eg);S[x]=ex,M[x]=ex-eh}t.modifiersData[r]=M}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n,r=e.state,i=e.name,o=e.options,s=r.elements.arrow,a=r.modifiersData.popperOffsets,l=q(r.placement),u=H(l),c=[R,A].indexOf(l)>=0?"height":"width";if(s&&a){var d=ei("number"!=typeof(t="function"==typeof(t=o.padding)?t(Object.assign({},r.rects,{placement:r.placement})):t)?t:eo(t,j)),f=_(s),h="y"===u?"top":R,p="y"===u?P:A,m=r.rects.reference[c]+r.rects.reference[u]-a[u]-r.rects.popper[c],g=a[u]-r.rects.reference[u],v=I(s),y=v?"y"===u?v.clientHeight||0:v.clientWidth||0:0,b=d[h],w=y-f[c]-d[p],x=y/2-f[c]/2+(m/2-g/2),S=ea(b,x,w);r.modifiersData[i]=((n={})[u]=S,n.centerOffset=S-x,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,s=es(t,{elementContext:"reference"}),a=es(t,{altBoundary:!0}),l=el(s,r),u=el(a,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,a=void 0===(s=r.defaultOptions)?$:s,function(e,t,n){void 0===n&&(n=a);var r,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},$,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],f=!1,h={state:s,setOptions:function(n){var r,i,u,d,f,m="function"==typeof n?n(s.options):n;p(),s.options=Object.assign({},a,s.options,m),s.scrollParents={reference:c(e)?O(e):e.contextElement?O(e.contextElement):[],popper:O(t)};var g=(i=Object.keys(r=[].concat(o,s.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 s.orderedModifiers=g.filter(function(e){return e.enabled}),s.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=e.effect;if("function"==typeof r){var i=r({state:s,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,a,l,c,p,g,v,k=s.elements,C=k.reference,O=k.popper;if(U(C,O)){s.rects={reference:(t=I(O),n="fixed"===s.options.strategy,r=d(t),l=d(t)&&(o=m((i=t.getBoundingClientRect()).width)/t.offsetWidth||1,a=m(i.height)/t.offsetHeight||1,1!==o||1!==a),c=x(t),p=y(C,l,n),g={scrollLeft:0,scrollTop:0},v={x:0,y:0},(r||!r&&!n)&&(("body"!==w(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=S(c))),{x:p.left+g.scrollLeft-v.x,y:p.top+g.scrollTop-v.y,width:p.width,height:p.height}),popper:_(O)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var T=0;T<s.orderedModifiers.length;T++){if(!0===s.reset){s.reset=!1,T=-1;continue}var P=s.orderedModifiers[T],A=P.fn,R=P.options,M=void 0===R?{}:R,j=P.name;"function"==typeof A&&(s=A({state:s,options:M,name:j,instance:h})||s)}}}},update:(r=function(){return new Promise(function(e){h.forceUpdate(),e(s)})},function(){return i||(i=new Promise(function(e){Promise.resolve().then(function(){i=void 0,e(r())})})),i}),destroy:function(){p(),f=!0}};if(!U(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;ew(t)},effect:e=>{let{state:t}=e;return()=>{ew(t)}}},ew=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))"})},ex={"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"}},eS={"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 ek(){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:s=!0,offset:a,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=ex[e])||void 0===t?void 0:t[r])||e;return"ltr"===r?i:null!==(n=eS[e])&&void 0!==n?n:i}(r,p),b=(0,ed.useRef)(()=>{}),w=(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)(s)},{name:"arrow",options:{padding:o}},{name:"offset",options:{offset:null!=a?a:[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,s,o,a,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 x=(0,ed.useCallback)(e=>{m.current=e,w()},[w]),S=(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)(x,t)}},[x]),k=(0,ed.useCallback)(e=>{g.current=e,w()},[w]),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)(k,t),style:{...e.style,position:i,minWidth:h?void 0:"max-content",inset:"0 auto auto 0"}}},[i,k,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,...s}=e;return{...s,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:x,popperRef:k,getPopperProps:E,getArrowProps:_,getArrowInnerProps:C,getReferenceProps:S}}},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 a}});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 s={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"},a=e=>s[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 s}});var r=n(20130);let[i,o]=(0,n(9396).k)({strict:!1,name:"PortalManagerContext"});function s(e){let{children:t,zIndex:n}=e;return(0,r.jsx)(i,{value:{zIndex:n},children:t})}s.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),s=n(66703),a=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,s.useState)(null),p=(0,s.useRef)(null),[,m]=(0,s.useState)({});(0,s.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,a.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,s.useMemo)(()=>{let e=null==l?void 0:l.ownerDocument.createElement("div");return e&&(e.className=d),e},[l]),[,h]=(0,s.useState)({});return((0,i.G)(()=>h({}),[]),(0,i.G)(()=>{if(f&&c)return c.appendChild(f),()=>{c.removeChild(f)}},[f,c]),c&&f)?(0,a.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 s=e=>(0,r.jsx)(o.m.circle,{cx:50,cy:50,r:42,fill:"transparent",...e});s.displayName="Circle";var a=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(a.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:w,...x}=e,S=(0,a.Wt)({min:d,max:c,value:p,valueText:f,getValueText:h,isIndeterminate:w}),k=w?void 0:(null!==(n=S.percent)&&void 0!==n?n:0)*2.64,E=null==k?void 0:"".concat(k," ").concat(264-k),_=w?{css:{animation:"".concat(a.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",...S.bind,...x,__css:C,children:[(0,r.jsxs)(l,{size:u,isIndeterminate:w,children:[(0,r.jsx)(s,{stroke:b,strokeWidth:v,className:"chakra-progress__track"}),(0,r.jsx)(s,{stroke:y,strokeWidth:v,className:"chakra-progress__indicator",strokeLinecap:m?"round":void 0,opacity:0!==S.value||w?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),s=n(90913),a=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,a.G)((e,t)=>{let{min:n,max:i,value:o,isIndeterminate:a,role:u,...c}=e,f=(0,s.Wt)({value:o,min:n,max:i,isIndeterminate:a,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,a.G)((e,t)=>{var n;let{value:o,min:a=0,max:d=100,hasStripe:h,isAnimated:p,children:m,borderRadius:g,isIndeterminate:v,"aria-label":y,"aria-labelledby":b,"aria-valuetext":w,title:x,role:S,...k}=(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(s.Ag," 1s linear infinite")},O={...!v&&h&&p&&C,...v&&{position:"absolute",willChange:"left",minWidth:"50%",animation:"".concat(s.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,...k,children:(0,r.jsxs)(c,{value:E,children:[(0,r.jsx)(f,{"aria-label":y,"aria-labelledby":b,"aria-valuetext":w,min:a,max:d,value:o,isIndeterminate:v,css:O,borderRadius:_,title:x,role:S}),m]})})});h.displayName="Progress"},90913:function(e,t,n){"use strict";n.d(t,{Ag:function(){return a},O2:function(){return i},U1:function(){return o},Wt:function(){return l},YD:function(){return s}});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)"}}),s=(0,r.F4)({"0%":{left:"-40%"},"100%":{left:"100%"}}),a=(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:s,role:a="progressbar"}=e,l=(t-n)*100/(r-n);return{bind:{"data-indeterminate":s?"":void 0,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":s?void 0:t,"aria-valuetext":(()=>{if(null!=t)return"function"==typeof o?o(t,l):i})(),role:a},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),s=n(66703),a=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:w,htmlProps:x}=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,s.useState)(r||""),p=void 0!==n,m=p?n:f,g=(0,s.useRef)(null),v=(0,s.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,s.useId)(),b=i||"radio-".concat(y),w=(0,s.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,s.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,g),role:"radiogroup"}},[]),getRadioProps:(0,s.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){w(e)},"data-radiogroup":!0}},[c,b,w,m]),name:b,ref:g,focus:v,setValue:h,value:m,onChange:w,isDisabled:o,isFocusable:u,htmlProps:d}}(g),S=(0,s.useMemo)(()=>({name:w,size:i,onChange:y,colorScheme:n,value:v,variant:u,isDisabled:p,isFocusable:m}),[w,i,y,n,v,u,p,m]);return(0,r.jsx)(d,{value:S,children:(0,r.jsx)(c.m.div,{...b(x,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),s=n(11915),a=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,w=(0,g.j)("Radio",{...m,...e}),{spacing:x="0.5rem",children:S,isDisabled:k=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,s.P)(m.onChange,y));let I=null!==(n=null==e?void 0:e.name)&&void 0!==n?n:null==m?void 0:m.name,{getInputProps:P,getRadioProps:A,getLabelProps:R,getRootProps:M,htmlProps:j}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultChecked:t,isChecked:n,isFocusable:r,isDisabled:i,isReadOnly:o,isRequired:a,onChange:m,isInvalid:g,name:v,value:y,id:b,"data-radiogroup":w,"aria-describedby":x,...S}=e,k="radio-".concat((0,d.useId)()),E=(0,f.NJ)(),_=(0,l.X)(),C=E&&!(_||w)?E.id:k;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,I=null!=a?a:null==E?void 0:E.isRequired,P=null!=g?g:null==E?void 0:E.isInvalid,[A,R]=(0,d.useState)(!1),[M,j]=(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,U=$?n:F;(0,d.useEffect)(()=>(0,c.BT)(R),[]);let V=(0,d.useCallback)(e=>{if(T||O){e.preventDefault();return}$||B(e.currentTarget.checked),null==m||m(e)},[$,O,T,m]),q=(0,d.useCallback)(e=>{" "===e.key&&z(!0)},[z]),W=(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)(U),"data-focus":(0,u.P)(M),"data-focus-visible":(0,u.P)(M&&A),"data-readonly":(0,u.P)(T),"aria-hidden":!0,onMouseDown:(0,s.v)(e.onMouseDown,()=>z(!0)),onMouseUp:(0,s.v)(e.onMouseUp,()=>z(!1)),onMouseEnter:(0,s.v)(e.onMouseEnter,()=>D(!0)),onMouseLeave:(0,s.v)(e.onMouseLeave,()=>D(!1))}},[L,N,O,P,U,M,T,A]),{onFocus:G,onBlur:Z}=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,s.v)(e.onChange,V),onBlur:(0,s.v)(Z,e.onBlur,()=>j(!1)),onFocus:(0,s.v)(G,e.onFocus,()=>j(!0)),onKeyDown:(0,s.v)(e.onKeyDown,q),onKeyUp:(0,s.v)(e.onKeyUp,W),checked:U,disabled:n,readOnly:T,required:I,"aria-invalid":(0,u.Q)(P),"aria-disabled":(0,u.Q)(n),"aria-required":(0,u.Q)(I),"data-readonly":(0,u.P)(T),"aria-describedby":x,style:h.N}},[O,r,C,v,y,V,Z,G,q,W,U,T,I,P,x]);return{state:{isInvalid:P,isFocused:M,isChecked:U,isActive:L,isHovered:N,isDisabled:O,isReadOnly:T,isRequired:I},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,s.v)(e.onMouseDown,p),"data-disabled":(0,u.P)(O),"data-checked":(0,u.P)(U),"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)(U),"data-invalid":(0,u.P)(P)}},htmlProps:S}}({...C,isChecked:O,isFocusable:E,isDisabled:k,onChange:T,name:I}),[N,D]=(0,a.V)(j,o.oE),L=A(D),z=P(_,t),F=R(),B=Object.assign({},N,M()),$={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...w.container},U={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...w.control},V={userSelect:"none",marginStart:x,...w.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:U}),S&&(0,r.jsx)(v.m.span,{className:"chakra-radio__label",...F,__css:V,children:S})]})});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),s=n(57835),a=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,...s}=e;return(0,r.jsxs)(d.m.select,{...s,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:w,minHeight:x,iconColor:S,iconSize:k,...E}=(0,i.L)(e),[_,C]=(0,s.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!=w?w:x,placeholder:c,...O,__css:T,children:e.children}),(0,r.jsx)(y,{"data-disabled":(0,a.P)(O.disabled),...(S||g)&&{color:S||g},__css:l.icon,...k&&{fontSize:k},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 w}});var r=n(20130),i=n(90010),o=n(66703),s=n(41293),a=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,s.gJ)("skeleton-start-color"),m=(0,s.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},s=(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:w,speed:x,className:S,fitContent:k,animation:E,..._}=(0,a.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),I=(0,i.cx)("chakra-skeleton",S),P={...C&&{[p.variable]:C},...O&&{[m.variable]:O}};if(b){let e=l||T?"none":"".concat(g," ").concat(w,"s");return(0,r.jsx)(c.m.div,{ref:t,className:I,__css:{animation:e},..._})}return(0,r.jsx)(h,{ref:t,className:I,..._,__css:{width:k?"fit-content":void 0,...s,...P,_dark:{...s._dark,...P},animation:E||"".concat(x,"s linear infinite alternate ").concat(v)}})});y.displayName="Skeleton";var b=n(20395);let w=e=>{let{noOfLines:t=3,spacing:n="0.5rem",skeletonHeight:o="0.5rem",className:s,startColor:a,endColor:l,isLoaded:u,fadeDuration:d,speed:f,variant:h,size:p,colorScheme:m,children:g,...v}=e,w=(0,b.S)("number"==typeof t?[t]:t)||3,x=Array(w).fill(1).map((e,t)=>t+1),S=e=>w>1&&e===x.length?"80%":"100%",k=(0,i.cx)("chakra-skeleton__group",s);return(0,r.jsx)(c.m.div,{className:k,...v,children:x.map((e,t)=>{if(u&&t>0)return null;let i=u?null:{mb:e===x.length?"0":n,width:S(e),height:o};return(0,r.jsx)(y,{startColor:a,endColor:l,isLoaded:u,fadeDuration:d,speed:f,variant:h,size:p,colorScheme:m,...i,children:0===t?g:void 0},x.length.toString()+e)})})};w.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),s=n(68312),a=n(43906),l=n(35364),u=n(49110);let c=(0,s.F4)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),d=(0,a.G)((e,t)=>{let n=(0,l.m)("Spinner",e),{label:s="Loading...",thickness:a="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:a,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:s&&(0,r.jsx)(u.m.span,{srOnly:!0,children:s})})});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),s=n(66703),a=n(49110);let l=e=>(0,r.jsx)(a.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,w=n?"row":null!=c?c:"column",x=(0,s.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:w}),[h,w]),S=!!g,k=!y&&!S,E=(0,s.useMemo)(()=>{let e=(0,i.W)(m);return k?e:e.map((t,n)=>{let i=void 0!==t.key?t.key:n,o=n+1===e.length,a=(0,r.jsx)(l,{children:t},i),u=y?a:t;if(!S)return u;let c=(0,s.cloneElement)(g,{__css:x});return(0,r.jsxs)(s.Fragment,{children:[u,o?null:c]},i)})},[g,x,S,k,y,m]),_=(0,o.cx)("chakra-stack",v);return(0,r.jsx)(a.m.div,{ref:t,display:"flex",alignItems:d,justifyContent:f,flexDirection:w,flexWrap:p,gap:S?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),s=n(66703),a=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,a.O)(f),y=(0,s.useMemo)(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...n.container}),[n.container]),b=(0,s.useMemo)(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...n.track}),[n.track]),w=(0,s.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:w,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),s=n(33164),a=n(82040),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},w=(function e(t,n){var r,i,o=t.__emotion_real===t,s=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var c=y(t,n,o),h=c||v(s),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 w=m[0];g.push(w[0]);for(var x=m.length,S=1;S<x;S++)g.push(m[S],w[S])}var k=(0,l.w)(function(e,t,n){var r=p&&e.as||s,o="",a=[],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,a,e.className):null!=e.className&&(o=e.className+" ");var w=(0,u.O)(g.concat(a),t.registered,m);o+=t.key+"-"+w.name,void 0!==i&&(o+=" "+i);var x=p&&void 0===c?v(r):h,S={};for(var k in e)(!p||"as"!==k)&&x(k)&&(S[k]=e[k]);return S.className=o,n&&(S.ref=n),f.createElement(f.Fragment,null,f.createElement(b,{cache:t,serialized:w,isStringTag:"string"==typeof r}),f.createElement(r,S))});return k.displayName=void 0!==r?r:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",k.defaultProps=t.defaultProps,k.__emotion_real=k,k.__emotion_base=s,k.__emotion_styles=g,k.__emotion_forwardProp=c,Object.defineProperty(k,"toString",{value:function(){return"."+i}}),k.withComponent=function(t,r){return e(t,(0,a.Z)({},n,r,{shouldForwardProp:y(k,r,!0)})).apply(void 0,g)},k}}).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){w[e]=w(e)});let x=new Set([...r.cC,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),S=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function k(e){return(S.has(e)||!x.has(e))&&"_"!==e[0]}var E=n(16276);let _=w.default||w,C=e=>{let{baseStyle:t}=e;return e=>{let{theme:n,css:a,__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,s.o)(d),u),h=(0,i.i)(f)(e.theme);return a?[h,a]:h}};function O(e,t){let{baseStyle:n,...r}=null!=t?t:{};r.shouldForwardProp||(r.shouldForwardProp=k);let i=C({baseStyle:n}),o=_(e,r)(i);return(0,f.forwardRef)(function(e,t){let{children:n,...r}=e,{colorMode:i,forced:s}=(0,E.If)();return(0,f.createElement)(o,{ref:t,"data-theme":s?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 s},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 s(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),s=r.map((t,r)=>{var i,s;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!==(s=o[r])&&void 0!==s?s:t)});return Array.isArray(t)?s:s[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),s=n(58450),a=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,a.W)(m,"components.".concat(e)):void 0,y=h||v,b=s({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),w=(0,c.useRef)({});if(y){let e=(e=>{let{variant:t,size:n,theme:a}=e,l=function(e){let t=e.__breakpoints;return function(e,n,a,l){var u;if(!t)return;let c={},d=(u=t.toArrayValue,Array.isArray(a)?a:(0,r.Kn)(a)?u(a):null!=a?[a]:void 0);if(!d)return c;let f=d.length,h=1===f,p=!!e.parts;for(let r=0;r<f;r++){let a=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)(a.minW,u?._minW),m=(0,o.P)(e[n]?.[d[r]],l);if(m){if(p){e.parts?.forEach(e=>{s(c,{[e]:h?m[e]:{[f]:m[e]}})});continue}if(!p){h?s(c,m):c[f]=m;continue}c[f]=m}}return c}}(a);return s({},(0,o.P)(y.baseStyle??{},e),l(y,"sizes",n,e),l(y,"variants",t,e))})(b);d(w.current,e)||(w.current=e)}return w.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 a}});var r=n(20130),i=n(90010),o=n(43906),s=n(49110);let a=(0,o.G)((e,t)=>{var n;let{overflow:o,overflowX:a,className:l,...u}=e;return(0,r.jsx)(s.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:a)&&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),s=n(90010),a=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,a.G)((e,t)=>{let n=(0,l.j)("Table",e),{className:o,layout:a,...d}=(0,i.L)(e);return(0,r.jsx)(c,{value:n,children:(0,r.jsx)(u.m.table,{ref:t,__css:{tableLayout:a,...n.table},className:(0,s.cx)("chakra-table",o),...d})})});f.displayName="Table"},68100:function(e,t,n){"use strict";n.d(t,{p:function(){return a}});var r=n(20130),i=n(65610),o=n(43906),s=n(49110);let a=(0,o.G)((e,t)=>{let n=(0,i.p)();return(0,r.jsx)(s.m.tbody,{...e,ref:t,__css:n.tbody})})},29313:function(e,t,n){"use strict";n.d(t,{Td:function(){return a}});var r=n(20130),i=n(65610),o=n(43906),s=n(49110);let a=(0,o.G)((e,t)=>{let{isNumeric:n,...o}=e,a=(0,i.p)();return(0,r.jsx)(s.m.td,{...o,ref:t,__css:a.td,"data-is-numeric":n})})},46321:function(e,t,n){"use strict";n.d(t,{Th:function(){return a}});var r=n(20130),i=n(65610),o=n(43906),s=n(49110);let a=(0,o.G)((e,t)=>{let{isNumeric:n,...o}=e,a=(0,i.p)();return(0,r.jsx)(s.m.th,{...o,ref:t,__css:a.th,"data-is-numeric":n})})},30874:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var r=n(20130),i=n(65610),o=n(43906),s=n(49110);let a=(0,o.G)((e,t)=>{let n=(0,i.p)();return(0,r.jsx)(s.m.thead,{...e,ref:t,__css:n.thead})})},97020:function(e,t,n){"use strict";n.d(t,{Tr:function(){return a}});var r=n(20130),i=n(65610),o=n(43906),s=n(49110);let a=(0,o.G)((e,t)=>{let n=(0,i.p)();return(0,r.jsx)(s.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),s=n(69711),a=n(4751),l=n(43906),u=n(49110);let c=(0,l.G)(function(e,t){let n=(0,a.hp)({...e,ref:t}),l=(0,s.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),s=n(4751),a=n(43906),l=n(49110);let u=(0,a.G)(function(e,t){let n=(0,s.WE)({...e,ref:t}),a=(0,o.s)();return(0,r.jsx)(l.m.div,{outline:"0",...n,className:(0,i.cx)("chakra-tabs__tab-panel",e.className),__css:a.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),s=n(4751),a=n(43906),l=n(49110);let u=(0,a.G)(function(e,t){let n=(0,s.bt)(e),a=(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:a.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),s=n(69711),a=n(4751),l=n(43906),u=n(49110);let c=(0,l.G)(function(e,t){let n=(0,s.s)(),l=(0,a.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),s=n(90010),a=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,a.useMemo)(()=>g,[g]),{isFitted:y,...b}=p,w={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,s.cx)("chakra-tabs",u),ref:t,...b,__css:w,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 w},hp:function(){return b},WE:function(){return E},bt:function(){return k},YE:function(){return g}});var r=n(66703),i=n(55229),o=n(6461),s=n(9396),a=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:s,isManual:a,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:s=(e,t)=>e!==t}=e,a=(0,i.W)(o),l=(0,i.W)(s),[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),a(t))},[d,a,f,l]);return[f,h]}({defaultValue:null!=n?n:0,value:s,onChange:o});(0,r.useEffect)(()=>{null!=s&&m(s)},[s]);let y=p(),b=(0,r.useId)(),w=null!==(t=e.id)&&void 0!==t?t:b;return{id:"tabs-".concat(w),selectedIndex:g,focusedIndex:h,setSelectedIndex:v,setFocusedIndex:m,isManual:a,isLazy:l,lazyBehavior:u,orientation:c,descendants:y,direction:d,htmlProps:f}}let[v,y]=(0,s.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(),s=(0,r.useCallback)(e=>{let r=()=>{var e;let n=o.nextEnabled(t);n&&(null===(e=n.node)||void 0===e||e.focus())},s=()=>{var e;let n=o.prevEnabled(t);n&&(null===(e=n.node)||void 0===e||e.focus())},a="horizontal"===n,l="vertical"===n,u={["ltr"===i?"ArrowLeft":"ArrowRight"]:()=>a&&s(),["ltr"===i?"ArrowRight":"ArrowLeft"]:()=>a&&r(),ArrowDown:()=>l&&r(),ArrowUp:()=>l&&s(),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,a.v)(e.onKeyDown,s)}}function w(e){let{isDisabled:t=!1,isFocusable:n=!1,...r}=e,{setSelectedIndex:i,isManual:s,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,a.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,a.v)(e.onFocus,()=>{u(f);let e=t&&n;s||e||i(f)})}}let[x,S]=(0,s.k)({});function k(e){let{id:t,selectedIndex:n}=y(),i=(0,l.W)(e.children).map((e,i)=>{var o;return(0,r.createElement)(x,{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:s,id:a,tabId:l}=S(),c=(0,r.useRef)(!1);s&&(c.current=!0);let d=(0,u.k)({wasSelected:c.current,isSelected:s,enabled:i,mode:o});return{tabIndex:0,...n,children:d?t:null,role:"tabpanel","aria-labelledby":l,hidden:!s,id:a}}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),s=n(5845),a=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,a.G)((e,t)=>{let n=(0,l.j)("Tag",e),o=(0,i.L)(e),s={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:s})})});f.displayName="Tag";let h=(0,a.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,a.G)((e,t)=>(0,r.jsx)(s.J,{ref:t,verticalAlign:"top",marginEnd:"0.5rem",...e}));p.displayName="TagLeftIcon";let m=(0,a.G)((e,t)=>(0,r.jsx)(s.J,{ref:t,verticalAlign:"top",marginStart:"0.5rem",...e}));m.displayName="TagRightIcon";let g=e=>(0,r.jsx)(s.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,a.G)((e,t)=>{let{isDisabled:n,children:i,...o}=e,s={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:s,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),s=n(90010),a=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,a.Y)(h),m=f?(0,o.C)(n,d):n;return(0,r.jsx)(c.m.textarea,{ref:t,rows:f,...p,className:(0,s.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),s=n(90010),a=n(50393),l=n(43906),u=n(49110);let c=(0,l.G)(function(e,t){let n=(0,a.uL)(),{status:i}=(0,a.oX)();return(0,r.jsx)(u.m.div,{ref:t,"data-status":i,...e,className:(0,s.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:s,title:a,isClosable:l,onClose:h,description:p,colorScheme:m,icon:g}=e,v=s?{root:"toast-".concat(s),title:"toast-".concat(s,"-title"),description:"toast-".concat(s,"-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:[a&&(0,r.jsx)(c,{id:null==v?void 0:v.title,children:a}),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 w},OX:function(){return b}});var r=n(20130),i=n(9396),o=n(40880),s=n(66703),a=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,s.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:w="0.5rem"}=e,[x,S]=(0,s.useState)(v),k=(0,c.hO)();(0,a.r)(()=>{k||null==i||i()},[k]),(0,a.r)(()=>{S(v)},[v]);let E=()=>{k&&o()};(0,s.useEffect)(()=>{k&&m&&o()},[k,m,o]),function(e,t){let n=(0,l.W)(e);(0,s.useEffect)(()=>{if(null==t)return;let e=null;return e=window.setTimeout(()=>{n()},t),()=>{e&&window.clearTimeout(e)}},[t,n])}(E,x);let _=(0,s.useMemo)(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:w,...y}),[y,w]),C=(0,s.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:()=>S(null),onHoverEnd:()=>S(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}),w=e=>{let t=(0,s.useSyncExternalStore)(g.f.subscribe,g.f.getState,g.f.getState),{motionVariants:n,component:i=m,portalProps:a,animatePresenceProps:l}=e,u=Object.keys(t).map(e=>{let s=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:s.map(e=>(0,r.jsx)(i,{motionVariants:n,...e},e.id))})},e)});return(0,r.jsx)(v.h,{...a,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,a=e=>{t=e(t),n.forEach(e=>e())};return{getState:()=>t,subscribe:t=>(n.add(t),()=>{a(()=>e),n.delete(t)}),removeToast:(e,t)=>{a(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]:{};s+=1;let i=null!==(t=r.id)&&void 0!==t?t:s,a=null!==(n=r.position)&&void 0!==n?n:"bottom";return{id:i,message:e,position:a,duration:r.duration,onCloseComplete:r.onCloseComplete,onRequestRemove:()=>o.removeToast(String(i),a),status:r.status,requestClose:!1,containerStyle:r.containerStyle}}(e,t),{position:r,id:i}=n;return a(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&&a(n=>{let o={...n},{position:s,index:a}=(0,i.Dn)(o,e);return s&&-1!==a&&(o[s][a]={...o[s][a],...t,message:(0,r.C)(t)}),o})},closeAll:function(){let{positions:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a(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=>{a(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":[]}),s=0},97038:function(e,t,n){"use strict";n.d(t,{Dn:function(){return i},IW:function(){return a},sv:function(){return s},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 s(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 a(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),s=n(43317),a=n(76694),l=n(94181);function u(e){let{theme:t}=(0,l.uP)(),n=(0,a.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 s.f.notify(r,t)};return r.update=(e,t)=>{s.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=s.f.closeAll,r.close=s.f.close,r.isActive=s.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),s=n(47301),a=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},w=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},x="chakra-ui:close-tooltip";var S=n(35518),k=n(72669),E=n(49110),_=n(43906),C=n(35364);let O=(0,E.m)(a.E.div),T=(0,_.G)((e,t)=>{var n,a;let _;let T=(0,C.m)("Tooltip",e),I=(0,i.L)(e),P=(0,S.F)(),{children:A,label:R,shouldWrapChildren:M,"aria-label":j,hasArrow:N,bg:D,portalProps:L,background:z,backgroundColor:F,bgColor:B,motionProps:$,animatePresenceProps:U,...V}=I,q=null!==(a=null!==(n=null!=z?z:F)&&void 0!==n?n:D)&&void 0!==a?a:B;if(q){T.bg=q;let e=P.__cssMap?.[`colors.${q}`]?.varRef??q;T[y.Dq.arrowBg.var]=e}let W=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:s=i,closeOnEsc:a=!0,onOpen:l,onClose:c,placement:d,id:S,isOpen:k,defaultIsOpen:E,arrowSize:_=10,arrowShadowColor:C,arrowPadding:O,modifiers:T,isDisabled:I,gutter:P,offset:A,direction:R,...M}=e,{isOpen:j,onOpen:N,onClose:D}=(0,f.q)({isOpen:k,defaultIsOpen:E,onOpen:l,onClose:c}),{referenceRef:L,getPopperProps:z,getArrowInnerProps:F,getArrowProps:B}=(0,v.D)({enabled:j,placement:d,arrowPadding:O,modifiers:T,gutter:P,offset:A,direction:R}),$=(0,u.useId)(),U="tooltip-".concat(null!=S?S:$),V=(0,u.useRef)(null),q=(0,u.useRef)(void 0),W=(0,u.useCallback)(()=>{q.current&&(clearTimeout(q.current),q.current=void 0)},[]),H=(0,u.useRef)(void 0),G=(0,u.useCallback)(()=>{H.current&&(clearTimeout(H.current),H.current=void 0)},[]),Z=(0,u.useCallback)(()=>{G(),D()},[D,G]),K=((0,u.useEffect)(()=>{let e=b(V);return e.addEventListener(x,Z),()=>e.removeEventListener(x,Z)},[Z,V]),()=>{let e=b(V),t=w(V);e.dispatchEvent(new t.CustomEvent(x))}),Y=(0,u.useCallback)(()=>{if(!I&&!q.current){j&&K();let e=w(V);q.current=e.setTimeout(N,t)}},[K,I,j,N,t]),J=(0,u.useCallback)(()=>{W();let e=w(V);H.current=e.setTimeout(Z,n)},[n,Z,W]),X=(0,u.useCallback)(()=>{j&&r&&J()},[r,J,j]),Q=(0,u.useCallback)(()=>{j&&s&&J()},[s,J,j]),ee=(0,u.useCallback)(e=>{j&&"Escape"===e.key&&J()},[j,J]);(0,h.O)(()=>b(V),"keydown",a?ee:void 0),(0,h.O)(()=>{if(!o)return null;let e=V.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?w(V):t},"scroll",()=>{j&&o&&Z()},{passive:!0,capture:!0}),(0,u.useEffect)(()=>{I&&(W(),j&&D())},[I,j,D,W]),(0,u.useEffect)(()=>()=>{W(),G()},[W,G]),(0,h.O)(()=>V.current,"pointerleave",J);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)(V,t,L),onPointerEnter:(0,g.v)(e.onPointerEnter,e=>{"touch"!==e.pointerType&&Y()}),onClick:(0,g.v)(e.onClick,X),onPointerDown:(0,g.v)(e.onPointerDown,Q),onFocus:(0,g.v)(e.onFocus,Y),onBlur:(0,g.v)(e.onBlur,J),"aria-describedby":j?U:void 0}},[Y,J,Q,j,U,X,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:j,show:Y,hide:J,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,...M,...e,id:U,role:"tooltip",style:n}},[M,U]),getTooltipPositionerProps:en,getArrowProps:B,getArrowInnerProps:F}}({...V,direction:P.direction});if(!(0,u.isValidElement)(A)||M)_=(0,r.jsx)(E.m.span,{display:"inline-block",tabIndex:0,...W.getTriggerProps(),children:A});else{let e=u.Children.only(A);_=(0,u.cloneElement)(e,W.getTriggerProps(e.props,(0,c.e)(e)))}let H=!!j,G=W.getTooltipProps({},t),Z=H?(0,o.C)(G,["role","id"]):G,K=(0,s.e)(G,["role","id"]);return R?(0,r.jsxs)(r.Fragment,{children:[_,(0,r.jsx)(l.M,{...U,children:W.isOpen&&(0,r.jsx)(k.h,{...L,children:(0,r.jsx)(E.m.div,{...W.getTooltipPositionerProps(),__css:{zIndex:T.zIndex,pointerEvents:"none"},children:(0,r.jsxs)(O,{variants:d,initial:"exit",animate:"enter",exit:"exit",...$,...Z,__css:T,children:[R,H&&(0,r.jsx)(E.m.span,{srOnly:!0,...K,children:j}),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:A})});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),s=n(43906),a=n(35364),l=n(49110);let u=(0,s.G)(function(e,t){let n=(0,a.m)("Heading",e),{className:s,...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),s=n(90010),a=n(43906),l=n(35364),u=n(49110);let c=(0,a.G)(function(e,t){let n=(0,l.m)("Text",e),{className:a,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,s.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),s=n(43906),a=n(49110);let l=(0,s.G)(function(e,t){let{spacing:n="0.5rem",spacingX:s,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)(a.m.div,{ref:t,className:(0,i.cx)("chakra-wrap",p),...g,children:(0,r.jsx)(a.m.ul,{className:"chakra-wrap__list",__css:{display:"flex",flexWrap:"wrap",justifyContent:d,alignItems:h,flexDirection:f,listStyleType:"none",gap:n,columnGap:s,rowGap:l,padding:"0"},children:v})})});l.displayName="Wrap";let u=(0,s.G)(function(e,t){let{className:n,...o}=e;return(0,r.jsx)(a.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,""),s=(...e)=>`calc(${o("+",...e)})`,a=(...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(s(e,...t)),subtract:(...t)=>d(a(e,...t)),multiply:(...t)=>d(l(e,...t)),divide:(...t)=>d(u(e,...t)),negate:()=>d(c(e)),toString:()=>e.toString()}),{add:s,subtract:a,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),s=n(57386),a=n(60571);let l=e=>t=>{if(!t.__breakpoints)return e;let{isResponsive:n,toArrayValue:o,media:s}=t.__breakpoints,a={};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)){a[l]=u;continue}let c=u.slice(0,s.length).length;for(let e=0;e<c;e+=1){let t=s?.[e];if(!t){a[l]=u[e];continue}a[t]=a[t]||{},null!=u[e]&&(a[t][l]=u[e])}}return a},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:s}=e,a=(e,d=!1)=>{let f=(0,r.P)(e,s),h=l(f)(s),p={};for(let e in h){let l=h[e],m=(0,r.P)(l,s);e in n&&(e=n[e]),u(e,m)&&(m=c(s,m));let g=t[e];if(!0===g&&(g={property:e}),(0,i.Kn)(m)){p[e]=p[e]??{},p[e]=o({},p[e],a(m,!0));continue}let v=g?.transform?.(m,s,f)??m;v=g?.processResult?a(v,!0):v;let y=(0,r.P)(g?.property,s);if(!d&&g?.static&&(p=o({},p,(0,r.P)(g.static,s))),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 a})({theme:t,pseudos:s.v,configs:a.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}`,s=(e,t)=>`${e}:focus-within ${t}`,a=(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(a),_peerActive:f(a),_groupDisabled:d(l),_peerDisabled:f(l),_groupInvalid:d(u),_peerInvalid:f(u),_groupChecked:d(c),_peerChecked:f(c),_groupFocusWithin:d(s),_peerFocusWithin:f(s),_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 G},cC:function(){return Z},Ul:function(){return H}});var r=n(58450),i=n(57386),o=n(93031);let s=e=>/!(important)?$/.test(e),a=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e,l=(e,t)=>n=>{let r=String(t),i=s(r),l=a(r),u=e?`${e}.${l}`:l,c=(0,o.Kn)(n.__cssMap)&&u in n.__cssMap?n.__cssMap[u].varRef:t;return c=a(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),s=n?.(o,i)??o;return r&&(s=r(s,i)),s}}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"]),w=e=>e.trim(),x=e=>"string"==typeof e&&e.includes("(")&&e.includes(")"),S=e=>{let t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},k=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}=S(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(!(x(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`,[s,...a]=i.split(",").map(w).filter(Boolean);if(a?.length===0)return e;let l=s in v?v[s]:s;a.unshift(l);let u=a.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=x(i)?i:i&&i.split(" "),s=`colors.${r}`,a=s in t.__cssMap?t.__cssMap[s].varRef:r;return o?[a,...Array.isArray(o)?o:[o]].join(" "):a});return`${o}(${u.join(", ")})`})(e,t??{}),blur:k("blur"),opacity:k("opacity"),brightness:k("brightness"),contrast:k("contrast"),dropShadow:k("drop-shadow"),grayscale:k("grayscale"),hueRotate:e=>k("hue-rotate")(E.degree(e)),invert:k("invert"),saturate:k("saturate"),sepia:k("sepia"),bgImage:e=>null==e?e:x(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")},I={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(I,{flexDir:I.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 A={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")},M={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:E.outline},outlineOffset:!0,outlineColor:_.colors("outlineColor")},j={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 s=t.get(n);if(s.has(r))return s.get(r);let a=e(n,r,i,o);return s.set(r,a),a}})(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 U={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"])},V={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"}},q={textDecorationColor:_.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:_.shadows("textShadow")},W={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,I,P,A,R,M,j,{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,$,U,V,q,W,{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")}),G=Object.keys(Object.assign({},$,P,I,j,F)),Z=[...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 iX}});let i=r("accordion").parts("root","container","button","panel","icon"),o=r("alert").parts("title","description","container","icon","spinner"),s=r("avatar").parts("label","badge","container","excessLabel","group"),a=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"),w=r("radio").parts("container","control","label"),x=r("select").parts("field","icon"),S=r("slider").parts("container","track","thumb","filledTrack","mark"),k=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 I=n(71034);let{definePartsStyle:P,defineMultiStyleConfig:A}=(0,I.D)(i.keys),R=(0,I.k0)({borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}}),M=A({baseStyle:P({container:R,button:(0,I.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,I.k0)({pt:"2",px:"4",pb:"5"}),icon:(0,I.k0)({fontSize:"1.25em"})})});var j=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=W.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=U.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=V.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=q.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[...G(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"),U=RegExp(`^#${B("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),V=RegExp(`^rgba?\\(\\s*(\\d+)\\s*${B(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),q=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,W=/^[a-z]+$/i,H=e=>Math.round(255*e),G=(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)),s=o*(1-Math.abs(i%2-1)),a=0,l=0,u=0;i>=0&&i<1?(a=o,l=s):i>=1&&i<2?(a=s,l=o):i>=2&&i<3?(l=o,u=s):i>=3&&i<4?(l=s,u=o):i>=4&&i<5?(a=s,u=o):i>=5&&i<6&&(a=o,u=s);let c=r-o/2;return[a+c,l+c,u+c].map(H)},Z=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},J=e=>t=>128>Y(K(t,e))?"dark":"light",X=e=>t=>"dark"===J(e)(t),Q=(e,t)=>n=>(function(e,t){var n;let[r,i,o,s]=L(e);return n=s-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:s})),[s,e,i]);return l.useMemo(()=>C?l.createElement(u.Provider,{value:k},z):z,[u,z,k])}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)}},M=function({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:o="once"}){let s=l.useMemo(()=>{let t=E(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:o}},[e,r,i,o]),a=l.useMemo(()=>e.getState(),[e]);return _(()=>{let{subscription:t}=s;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),a!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}},[s,a]),l.createElement((t||d).Provider,{value:s},n)};i.useSyncExternalStoreWithSelector,I=r.useSyncExternalStore,s=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),s="undefined"!=typeof window?window:null,a=null===s,l=a?void 0:s.document,u="addEventListener",c="removeEventListener",d="getBoundingClientRect",f="horizontal",h=function(){return!1},p=a?"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},w=function(e,t,n){var r={};return m(t)?r[e]=t:r[e]=p+"("+t+"% - "+n+"px)",r},x=function(e,t){var n;return(n={})[e]=t+"px",n},S=function(e,t){if(void 0===t&&(t={}),a)return{};var n,r,i,o,p,m,S=e;Array.from&&(S=Array.from(S));var k=g(S[0]).parentNode,E=getComputedStyle?getComputedStyle(k):null,_=E?E.flexDirection:null,C=v(t,"sizes")||S.map(function(){return 100/S.length}),O=v(t,"minSize",100),T=Array.isArray(O)?O:S.map(function(){return O}),I=v(t,"maxSize",1/0),P=Array.isArray(I)?I:S.map(function(){return I}),A=v(t,"expandToMin",!1),R=v(t,"gutterSize",10),M=v(t,"gutterAlign","center"),j=v(t,"snapOffset",30),N=Array.isArray(j)?j:S.map(function(){return j}),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",w),$=v(t,"gutterStyle",x);function U(e,t,r,i){var o=B(n,t,r,i);Object.keys(o).forEach(function(t){e.style[t]=o[t]})}function V(){return m.map(function(e){return e.size})}function q(e){return"touches"in e?e.touches[0][r]:e[r]}function W(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,U(t.element,t.size,this._b,t.i),U(n.element,n.size,this._c,n.i)}function H(e){var n,r=m[this.a],i=m[this.b];this.dragging&&(n=q(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)),W.call(this,n),v(t,"onDrag",h)(V()))}function G(){var e=m[this.a].element,t=m[this.b].element,r=e[d](),s=t[d]();this.size=r[n]+s[n]+this._b+this._c,this.start=r[i],this.end=r[o]}function Z(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)}(k);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 s=t*i/100,a=y(R,0===o,o===e.length-1,M),l=T[o]+a;return s<l?(n+=l-s,r.push(0),l):(r.push(s-l),s)});return 0===n?e:i.map(function(e,i){var o=e;if(n>0&&r[i]-n>0){var s=Math.min(n,r[i]-n);n-=s,o=e-s}return o/t*100})}function K(){var e=m[this.a].element,n=m[this.b].element;this.dragging&&v(t,"onDragEnd",h)(V()),this.dragging=!1,s[c]("mouseup",this.stop),s[c]("touchend",this.stop),s[c]("touchcancel",this.stop),s[c]("mousemove",this.move),s[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)(V()),e.preventDefault(),this.dragging=!0,this.move=H.bind(this),this.stop=K.bind(this),s[u]("mouseup",this.stop),s[u]("touchend",this.stop),s[u]("touchcancel",this.stop),s[u]("mousemove",this.move),s[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,G.call(this),this.dragOffset=q(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=Z(C);var J=[];function X(e){var t=e.i===J.length,n=t?J[e.i-1]:J[e.i];G.call(n);var r=t?n.size-e.minSize-n._c:e.minSize+n._b;W.call(n,r)}return(m=S.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:k})._b=y(R,t-1==0,!1,M),r._c=y(R,!1,t===S.length-1,M),"row-reverse"===_||"column-reverse"===_)){var o=r.a;r.a=r.b,r.b=o}if(t>0){var s,a=F(t,L,i.element);Object.keys(s=$(n,R,t)).forEach(function(e){a.style[e]=s[e]}),r._a=Y.bind(r),a[u]("mousedown",r._a),a[u]("touchstart",r._a),k.insertBefore(a,i.element),r.gutter=a}return U(i.element,i.size,y(R,0===t,t===S.length-1,M),t),t>0&&J.push(r),i})).forEach(function(e){var t=e.element[d]()[n];t<e.minSize&&(A?X(e):e.minSize=t)}),{setSizes:function(e){var t=Z(e);t.forEach(function(e,n){if(n>0){var r=J[n-1],i=m[r.a],o=m[r.b];i.size=t[n-1],o.size=e,U(i.element,i.size,r._b,i.i),U(o.element,o.size,r._c,o.i)}})},getSizes:V,collapse:function(e){X(m[e])},destroy:function(e,t){J.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:k,pairs:J}};function k(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=k(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=S(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,s=k(n,["children","minSize","sizes","collapsed"]),a=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(a)){var d=!1;r.forEach(function(e,t){d=d||e!==a[t]}),c=c||d}else c=!!(Array.isArray(r)||Array.isArray(a))||c||r!==a;if(c)s.minSize=r,s.sizes=i||this.split.getSizes(),this.split.destroy(!0,!0),s.gutter=function(e,t,n){return n.previousSibling},this.split=S(Array.from(this.parent.children).filter(function(e){return!e.__isSplitGutter}),s);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=k(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(80830);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",s=function(){return Math.random().toString(36).substring(7).split("").join(".")},a={INIT:"@@redux/INIT"+s(),REPLACE:"@@redux/REPLACE"+s(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+s()}};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,s=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=s(u,e)}finally{f=!1}for(var t=c=d,n=0;n<t.length;n++)(0,t[n])();return e}return g({type:a.INIT}),(r={dispatch:g,subscribe:m,getState:p,replaceReducer:function(e){if("function"!=typeof e)throw Error(i(10));s=e,g({type:a.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))},s={getState:n.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=t.map(function(e){return e(s)});return o=d.apply(void 0,a)(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 s},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),s=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=s},[s]),s.result}var o=i,s=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,s=r.useEffect,a=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 a(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),s(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},s=i.useSyncExternalStore,a=r.useRef,l=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var h=s(e,(d=u(function(){function e(e){if(!l){if(l=!0,s=e,e=r(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return a=t}return a=e}if(t=a,o(s,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(s=e,t):(s=e,a=n)}var s,a,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(){},4776:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},52907:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(32295);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}},82040: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}})},80830:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(52907);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}},14022: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}})},37399: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}})},32295:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(81109);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+""}},81109: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 s}});var r=n(95034),i=n(66703),o=n(37584);function s(e){let{isOpen:t,ref:n}=e,[s,a]=(0,i.useState)(t),[l,u]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{l||(a(t),u(!0))},[t,l,s]),(0,o.O)(()=>n.current,"animationend",()=>{a(t)}),{present:!(!t&&!s),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),[s,a]=(0,r.useState)(e);(0,r.useEffect)(()=>a(e),[e]);let{timeout:l=1500,...u}="number"==typeof t?{timeout:t}:t,c=(0,r.useCallback)(e=>{let t="string"==typeof e?e:s;"clipboard"in navigator?navigator.clipboard.writeText(t).then(()=>o(!0)).catch(()=>o(i(t,u))):o(i(t,u))},[s,u]);return(0,r.useEffect)(()=>{let e=null;return n&&(e=window.setTimeout(()=>{o(!1)},l)),()=>{e&&window.clearTimeout(e)}},[l,n]),{value:s,setValue:a,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:s}=e,a=(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!=s?s:"disclosure-".concat(h),m=(0,i.useCallback)(()=>{f||c(!1),null==l||l()},[f,l]),g=(0,i.useCallback)(()=>{f||c(!0),null==a||a()},[f,a]),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 s=(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,s,o),()=>{r.removeEventListener(t,s,o)}},[t,e,o,s,n]),()=>{let n="function"==typeof e?e():null!=e?e:document;null==n||n.removeEventListener(t,s,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),s=n(66703),a=n(37584),l=n(59129),u=n(95318);function c(e,t){let{shouldFocus:n,visible:o,focusRef:s}=t,a=n&&!o;(0,u.r)(()=>{let t;if(!a||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==s?void 0:s.current)||e.current;if(n)return t=requestAnimationFrame(()=>{n.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(t)}},[a,e,s])}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,s.useRef)(h),m=(0,s.useRef)(c);(0,l.G)(()=>{!m.current&&c&&(p.current=h),m.current=c},[c,h]);let g=(0,s.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,a.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=>{s(e,t)&&(u.isPointerDown=!0)},r=e=>{if(u.ignoreEmulatedMouseEvents){u.ignoreEmulatedMouseEvents=!1;return}u.isPointerDown&&n&&s(e,t)&&(u.isPointerDown=!1,l(e))},i=e=>{u.ignoreEmulatedMouseEvents=!0,n&&u.isPointerDown&&s(e,t)&&(u.isPointerDown=!1,l(e))},c=a(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 s(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||!!a(o).contains(o))&&!(null===(r=t.current)||void 0===r?void 0:r.contains(o))}function a(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"})})})},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 s(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 a=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:s,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:s,colorScheme:"red"},loading:{icon:a.$,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),s=n(50393),a=n(43906),l=n(49110);let u=(0,a.G)(function(e,t){let{status:n}=(0,s.oX)(),a=(0,s.uL)(),u=(0,i.k0)({display:"inline",...a.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 a}});var r=n(20130),i=n(90010),o=n(50393),s=n(49110);function a(e){let{status:t}=(0,o.oX)(),n=(0,o.XO)(t),a=(0,o.uL)(),l="loading"===t?a.spinner:a.icon;return(0,r.jsx)(s.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%"})})}a.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),s=n(90010),a=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,a.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)(a.uZ,{value:{status:u},children:(0,r.jsx)(a.Hm,{value:p,children:(0,r.jsx)(c.m.div,{"data-status":u,role:d?"alert":void 0,ref:t,...f,className:(0,s.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),s=n(43906),a=n(35364),l=n(49110);let u=(0,s.G)(function(e,t){let n=(0,a.m)("Badge",e),{className:s,...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),s=n(90010),a=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:a,...u}=e,d=(0,l.w)(),f={ref:t,as:i,className:(0,s.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:a,...f})});d.displayName="BreadcrumbLink";let f=(0,u.G)(function(e,t){let{spacing:n,...o}=e,s=(0,l.w)(),a=(0,i.k0)({mx:n,...s.separator});return(0,r.jsx)(c.m.span,{ref:t,role:"presentation",...o,__css:a})});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,a.cloneElement)(e,{isCurrentPage:n}):e.type===f?(0,a.cloneElement)(e,{spacing:p,children:e.props.children||u}):e),b=(0,l.w)(),w=(0,i.k0)({display:"inline-flex",alignItems:"center",...b.item}),x=(0,s.cx)("chakra-breadcrumb__list-item",g);return(0,r.jsxs)(c.m.li,{ref:t,className:x,...v,__css:w,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),s=n(90010),a=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,a.cloneElement)(e,{separator:h,spacing:f,isLastChild:y===t+1})),w=(0,s.cx)("chakra-breadcrumb",p);return(0,r.jsx)(d.m.nav,{ref:t,"aria-label":"breadcrumb",className:w,__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),s=n(13319),a=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,a.G)(function(e,t){let{size:n,colorScheme:a,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:a,variant:d,isDisabled:m}),[n,a,d,m]),w={display:"inline-flex",...p?u[g]:c[g](h)},x="vertical"===g;return(0,r.jsx)(s.D,{value:b,children:(0,r.jsx)(l.m.div,{ref:t,role:"group",__css:w,className:y,"data-attached":p?"":void 0,"data-orientation":g,flexDir:x?"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),s=n(26934),a=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,s=(0,a.cx)("chakra-button__icon",n);return(0,r.jsx)(c.m.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...i,className:s,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:s,__css:u,...d}=e,p=(0,a.cx)("chakra-button__spinner",s),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:w,loadingText:x,iconSpacing:S="0.5rem",type:k,spinner:E,spinnerPlacement:_="start",className:C,as:O,shouldWrapChildren:T,...I}=(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:A,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),M={rightIcon:w,leftIcon:b,iconSpacing:S,children:v,shouldWrapChildren:T};return(0,r.jsxs)(c.m.button,{disabled:f||h,ref:(0,i.qq)(t,A),as:O,type:null!=k?k:R,"data-active":(0,s.P)(m),"data-loading":(0,s.P)(h),__css:P,className:(0,a.cx)("chakra-button",C),...I,children:[h&&"start"===_&&(0,r.jsx)(p,{className:"chakra-button__spinner--start",label:x,placement:"start",spacing:S,children:E}),h?x||(0,r.jsx)(c.m.span,{opacity:0,children:(0,r.jsx)(y,{...M})}):(0,r.jsx)(y,{...M}),h&&"end"===_&&(0,r.jsx)(p,{className:"chakra-button__spinner--end",label:x,placement:"end",spacing:S,children:E})]})});function y(e){let{leftIcon:t,rightIcon:n,children:i,iconSpacing:o,shouldWrapChildren:s}=e;return s?(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 s}});var r=n(20130),i=n(66703),o=n(19736);let s=(0,n(43906).G)((e,t)=>{let{icon:n,children:s,isRound:a,"aria-label":l,...u}=e,c=n||s,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:a?"full":void 0,ref:t,"aria-label":l,...u,children:d})});s.displayName="IconButton"},50537:function(e,t,n){"use strict";n.d(t,{M:function(){return s}});var r=n(20130),i=n(49110),o=n(43906);let s=(0,i.m)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});s.displayName="Center";let a={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:a[n],...o,position:"absolute"})})},29354:function(e,t,n){"use strict";let r;n.d(t,{x:function(){return Z}});var i=n(30171),o=n(20130),s=n(19249),a=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,s.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:s}={},colorModeManager:d=f}=e,g=(0,a._)(),v="dark"===i?"dark":"light",[y,b]=(0,l.useState)(()=>m(d,v)),[w,x]=(0,l.useState)(()=>m(d)),{getSystemTheme:S,setClassName:k,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:s,nonce:null==g?void 0:g.nonce}),[s,null==g?void 0:g.nonce]),C="system"!==i||y?y:w,O=(0,l.useCallback)(e=>{let t="system"===e?S():e;b(t),k("dark"===t),E(t),d.set(t)},[d,S,k,E]);p(()=>{"system"===i&&x(S())},[]),(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 I=(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:I,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 w(){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 w=function(){return e},e}let x=String.raw,S=x(b()),k=()=>(0,o.jsx)(y.xB,{styles:S}),E=e=>{let{scope:t=""}=e;return(0,o.jsx)(y.xB,{styles:x(w(),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,S)})};var _=n(96549),C=n(93031),O=n(58450),T=n(23880),I=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 s={};for(let[a,l]of Object.entries(n)){let u=i?.(a)??a,c=[...o,u];if(r?.(n,c))return t(n,o);s[u]=e(l,c)}return s}return t(n,o)}(e)}var A=n(57386),R=n(47301);let M=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function j(e,t){return(0,I.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,M),n=e.semanticTokens,r=e=>A._.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:s,value:a}=o,{variable:l,reference:u}=j(e,n);if(!s){if(e.startsWith("space")){let[t,...n]=e.split("."),r=`${t}.-${n.join(".")}`,o=T.y.negate(a),s=T.y.negate(u);i[r]={value:o,var:l,varRef:s}}r[l]=a,i[e]={value:a,var:l,varRef:u};continue}r=O(r,Object.entries((0,C.Kn)(a)?a:{default:a}).reduce((r,[i,o])=>{if(!o)return r;let s=function(e,r){let i=[String(e).split(".")[0],r].join(".");if(!t[i])return r;let{reference:o}=j(i,n);return o}(e,`${o}`);return"default"===i?r[l]=s:r[A.v?.[i]??i]={[l]:s},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)(a.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[$,U]=(0,D.k)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function V(){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 q=n(43415),W=n(16909);let H=e=>{let{children:t,colorModeManager:n,portalZIndex:r,resetScope:i,resetCSS:s=!0,theme:a={},environment:l,cssVarsRoot:u,disableEnvironment:c,disableGlobalStyle:d}=e,f=(0,o.jsx)(W.u,{environment:l,disabled:c,children:t});return(0,o.jsx)(F,{theme:a,cssVarsRoot:u,children:(0,o.jsxs)(g,{colorModeManager:n,options:a.config,children:[s?(0,o.jsx)(E,{scope:i}):(0,o.jsx)(k,{}),!d&&(0,o.jsx)(V,{}),r?(0,o.jsx)(q.h,{zIndex:r,children:f}):f]})})};var G=n(76694);let Z=(r=i.rS,function(e){let{children:t,theme:n=r,toastOptions:i,...s}=e;return(0,o.jsxs)(H,{theme:n,...s,children:[(0,o.jsx)(G.Qi,{value:null==i?void 0:i.defaultOptions,children:t}),(0,o.jsx)(G.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),s=n(33164),a=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},w={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},x=(0,l.F4)({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),S=(0,l.F4)({from:{opacity:0},to:{opacity:1}}),k=(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:I=null==n?void 0:n.isDisabled,onChange:P,inputProps:A,...R}=h,M=T;(null==n?void 0:n.value)&&h.value&&(M=n.value.includes(h.value));let j=P;(null==n?void 0:n.onChange)&&h.value&&(j=(0,o.P)(n.onChange,P));let{state:N,getInputProps:D,getCheckboxProps:L,getLabelProps:z,getRootProps:F}=(0,g.O)({...R,isDisabled:I,isChecked:M,onChange:j}),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(S," 20ms linear, ").concat(k," 200ms linear"):"".concat(x," 200ms linear"):void 0,...c.icon,...(0,s.o)({fontSize:C,color:_})}),[_,C,B,N.isIndeterminate,c.icon]),U=(0,u.cloneElement)(O,{__css:$,isIndeterminate:N.isIndeterminate,isChecked:N.isChecked});return(0,r.jsxs)(f.m.label,{__css:{...w,...c.container},className:(0,a.cx)("chakra-checkbox",v),...F(),children:[(0,r.jsx)("input",{className:"chakra-checkbox__input",...D(A,t)}),(0,r.jsx)(f.m.span,{__css:{...b,...c.control},className:"chakra-checkbox__control",...L(),children:U}),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),s=n(6461),a=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":w}=(0,f.K)(e),{defaultChecked:x,isChecked:S,isFocusable:k,onChange:E,isIndeterminate:_,name:C,value:O,tabIndex:T,"aria-label":I,"aria-labelledby":P,"aria-invalid":A,...R}=e,M=(0,a.C)(R,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),j=(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),[$,U]=(0,d.useState)(!1),[V,q]=(0,d.useState)(!1);(0,d.useEffect)(()=>(0,c.BT)(z),[]);let W=(0,d.useRef)(null),[H,G]=(0,d.useState)(!0),[Z,K]=(0,d.useState)(!!x),Y=void 0!==S,J=Y?S:Z,X=(0,d.useCallback)(e=>{if(n||t){e.preventDefault();return}Y||(J?K(e.currentTarget.checked):K(!!_||e.currentTarget.checked)),null==j||j(e)},[n,t,J,Y,_,j]);(0,i.G)(()=>{W.current&&(W.current.indeterminate=!!_)},[_]),(0,o.r)(()=>{t&&B(!1)},[t,B]),(0,i.G)(()=>{let e=W.current;if(!(null==e?void 0:e.form))return;let t=()=>{K(!!x)};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&&!k,ee=(0,d.useCallback)(e=>{" "===e.key&&q(!0)},[q]),et=(0,d.useCallback)(e=>{" "===e.key&&q(!1)},[q]);(0,i.G)(()=>{W.current&&W.current.checked!==J&&K(W.current.checked)},[W.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)(V),"data-hover":(0,l.P)($),"data-checked":(0,l.P)(J),"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(),q(!0)}),onMouseUp:(0,u.v)(e.onMouseUp,()=>q(!1)),onMouseEnter:(0,u.v)(e.onMouseEnter,()=>U(!0)),onMouseLeave:(0,u.v)(e.onMouseLeave,()=>U(!1))}},[V,J,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)(V),"data-hover":(0,l.P)($),"data-checked":(0,l.P)(J),"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)}},[V,J,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{...M,htmlFor:H?v:void 0,...e,ref:(0,s.lq)(n,e=>{e&&G("LABEL"===e.tagName)}),onClick:(0,u.v)(e.onClick,()=>{if(!H){var e;null===(e=W.current)||void 0===e||e.click(),requestAnimationFrame(()=>{var e;null===(e=W.current)||void 0===e||e.focus({preventScroll:!0})})}}),"data-disabled":(0,l.P)(t),"data-checked":(0,l.P)(J),"data-invalid":(0,l.P)(g)}},[M,t,J,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,s.lq)(W,r),type:"checkbox",name:C,value:O,id:v,tabIndex:T,onChange:(0,u.v)(e.onChange,X),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:J,disabled:Q,readOnly:n,"aria-label":I,"aria-labelledby":P,"aria-invalid":A?!!A:g,"aria-describedby":w,"aria-disabled":t,"aria-checked":_?"mixed":J,style:h.N}},[C,O,v,T,X,N,D,ee,et,p,J,Q,n,I,P,A,g,w,t,_]),es=(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)(J),"data-invalid":(0,l.P)(g)}},[J,t,g]);return{state:{isInvalid:g,isFocused:F,isChecked:J,isActive:V,isHovered:$,isIndeterminate:_,isDisabled:t,isReadOnly:n,isRequired:p},getRootProps:ei,getCheckboxProps:en,getIndicatorProps:er,getInputProps:eo,getLabelProps:es,htmlProps:M}}function m(e){e.preventDefault(),e.stopPropagation()}},74269:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var r=n(6461),i=n(26934),o=n(66703);function s(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 a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{ref:t,isDisabled:n,isFocusable:a,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,w]=(0,o.useState)(!0),[x,S]=(0,o.useState)(!1),k=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&&!a,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=>{x&&s(e)&&(e.preventDefault(),e.stopPropagation(),S(!1),k.remove(document,"keyup",O,!1))},[x,k]),T=(0,o.useCallback)(e=>{if(null==h||h(e),n||e.defaultPrevented||e.metaKey||!s(e.nativeEvent)||b)return;let t=l&&"Enter"===e.key;u&&" "===e.key&&(e.preventDefault(),S(!0)),t&&(e.preventDefault(),e.currentTarget.click()),k.add(document,"keyup",O,!1)},[n,b,h,l,u,k,O]),I=(0,o.useCallback)(e=>{null==p||p(e),!n&&!e.defaultPrevented&&!e.metaKey&&s(e.nativeEvent)&&!b&&u&&" "===e.key&&(e.preventDefault(),S(!1),e.currentTarget.click())},[u,b,n,p]),P=(0,o.useCallback)(e=>{0===e.button&&(S(!1),k.remove(document,"mouseup",P,!1))},[k]),A=(0,o.useCallback)(e=>{if(0===e.button){if(n){e.stopPropagation(),e.preventDefault();return}b||S(!0),e.currentTarget.focus({preventScroll:!0}),k.add(document,"mouseup",P,!1),null==c||c(e)}},[n,b,c,k,P]),R=(0,o.useCallback)(e=>{0===e.button&&(b||S(!1),null==d||d(e))},[d,b]),M=(0,o.useCallback)(e=>{if(n){e.preventDefault();return}null==g||g(e)},[n,g]),j=(0,o.useCallback)(e=>{x&&(e.preventDefault(),S(!1)),null==v||v(e)},[x,v]),N=(0,r.lq)(t,e=>{e&&"BUTTON"!==e.tagName&&w(!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)(x),"aria-disabled":n?"true":void 0,tabIndex:_?void 0:E,onClick:C,onMouseDown:A,onMouseUp:R,onKeyUp:I,onKeyDown:T,onMouseOver:M,onMouseLeave:j}}},10994:function(e,t,n){"use strict";n.d(t,{P:function(){return c}});var r=n(20130),i=n(66861),o=n(5845),s=n(43906),a=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,s.G)(function(e,t){let n=(0,a.m)("CloseButton",e),{children:o,isDisabled:s,__css:c,...d}=(0,i.L)(e);return(0,r.jsx)(l.m.button,{type:"button","aria-label":"Close",ref:t,disabled:s,__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),s=n(43906),a=n(35364),l=n(49110);let u=(0,s.G)(function(e,t){let n=(0,a.m)("Code",e),{className:s,...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 s},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 s(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 s(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 a=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 a(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),p(this,"unregister",e=>{this.descendants.delete(e);let t=s(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=s(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,s]=(0,o.useState)(-1),a=(0,o.useRef)(null);c(()=>()=>{a.current&&n.unregister(a.current)},[]),c(()=>{if(!a.current)return;let e=Number(a.current.dataset.index);i==e||Number.isNaN(e)||s(e)});let l=e?d(n.register(e)):d(n.register);return{descendants:n,index:i,enabledIndex:n.enabledIndexOf(a.current),register:(0,r.lq)(l,a)}}]}},38622:function(e,t,n){"use strict";n.d(t,{i:function(){return u}});var r=n(20130),i=n(66861),o=n(90010),s=n(43906),a=n(35364),l=n(49110);let u=(0,s.G)(function(e,t){let{borderLeftWidth:n,borderBottomWidth:s,borderTopWidth:u,borderRightWidth:c,borderWidth:d,borderStyle:f,borderColor:h,...p}=(0,a.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:s||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 a},u:function(){return l}});var r=n(20130),i=n(59129),o=n(66703);let s=(0,o.createContext)({getDocument:()=>document,getWindow:()=>window});function a(){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)(s)}function l(e){let{children:t,environment:n,disabled:i}=e,a=(0,o.useRef)(null),l=(0,o.useMemo)(()=>n||{getDocument:()=>{var e,t;return null!==(t=null===(e=a.current)||void 0===e?void 0:e.ownerDocument)&&void 0!==t?t:document},getWindow:()=>{var e,t;return null!==(t=null===(e=a.current)||void 0===e?void 0:e.ownerDocument.defaultView)&&void 0!==t?t:window}},[n]),u=!i||!n;return(0,r.jsxs)(s.Provider,{value:l,children:[t,u&&(0,r.jsx)("span",{id:"__chakra_env",hidden:!0,ref:a})]})}s.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),s=n(58450);function a(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=>a(e)?e(t):function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return s({},...t,c)}(t,e)))(d)},u=l(o.rS);function c(e,t,n,i){return(a(e)||a(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 s({},a(e)?e(...r):e,a(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 s}});var r=n(20130),i=n(43906),o=n(49110);let s=(0,i.G)(function(e,t){let{direction:n,align:i,justify:s,wrap:a,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:s,flexWrap:a,flexBasis:l,flexGrow:u,flexShrink:c},...d})});s.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),s=n(9396),a=n(26934),l=n(90010),u=n(66703),c=n(43906),d=n(35364),f=n(49110);let[h,p]=(0,s.k)({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<FormControl />\" "}),[m,g]=(0,s.k)({strict:!1,name:"FormControlContext"}),v=(0,c.G)(function(e,t){let n=(0,d.j)("Form",e),{getRootProps:s,htmlProps:c,...p}=function(e){let{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:s,...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,w]=(0,u.useState)(!1),x=(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]),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{...e,ref:t,"data-focus":(0,a.P)(b),"data-disabled":(0,a.P)(o),"data-invalid":(0,a.P)(r),"data-readonly":(0,a.P)(s),id:void 0!==e.id?e.id:f,htmlFor:void 0!==e.htmlFor?e.htmlFor:d}},[d,o,b,r,s,f]),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{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,a.P)(b),"data-disabled":(0,a.P)(o),"data-invalid":(0,a.P)(r),"data-readonly":(0,a.P)(s)}},[l,o,b,r,s]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!s,isDisabled:!!o,isFocused:!!b,onFocus:()=>w(!0),onBlur:()=>w(!1),hasFeedbackText:m,setHasFeedbackText:g,hasHelpText:v,setHasHelpText:y,id:d,labelId:f,feedbackId:h,helpTextId:p,htmlProps:l,getHelpTextProps:x,getErrorMessageProps:k,getRootProps:E,getLabelProps:S,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,{...s({},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),s=n(90010),a=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,a.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,s.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,a.NJ)();if(!(null==i?void 0:i.isInvalid))return null;let o=(0,s.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),s=n(22488),a=n(43906),l=n(35364),u=n(49110);let c=(0,a.G)(function(e,t){var n;let a=(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,s.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",...a},children:[h,(null==v?void 0:v.isRequired)?p:m]})});c.displayName="FormLabel";let d=(0,a.G)(function(e,t){let n=(0,s.NJ)(),i=(0,s.e)();if(!(null==n?void 0:n.isRequired))return null;let a=(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:a})});d.displayName="RequiredIndicator"},31172:function(e,t,n){"use strict";n.d(t,{K:function(){return a},Y:function(){return s}});var r=n(26934),i=n(11915),o=n(22488);function s(e){let{isDisabled:t,isInvalid:n,isReadOnly:i,isRequired:o,...s}=a(e);return{...s,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 a(e){var t,n,r;let s=(0,o.NJ)(),{id:a,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==s?void 0:s.hasFeedbackText)&&(null==s?void 0:s.isInvalid)&&y.push(s.feedbackId),(null==s?void 0:s.hasHelpText)&&y.push(s.helpTextId),{...v,"aria-describedby":y.join(" ")||void 0,id:null!=a?a:null==s?void 0:s.id,isDisabled:null!==(t=null!=l?l:p)&&void 0!==t?t:null==s?void 0:s.isDisabled,isReadOnly:null!==(n=null!=u?u:h)&&void 0!==n?n:null==s?void 0:s.isReadOnly,isRequired:null!==(r=null!=c?c:d)&&void 0!==r?r:null==s?void 0:s.isRequired,isInvalid:null!=f?f:null==s?void 0:s.isInvalid,onFocus:(0,i.v)(null==s?void 0:s.onFocus,m),onBlur:(0,i.v)(null==s?void 0:s.onBlur,g)}}},72025:function(e,t,n){"use strict";n.d(t,{r:function(){return s}});var r=n(20130),i=n(43906),o=n(49110);let s=(0,i.G)(function(e,t){let{templateAreas:n,gap:i,rowGap:s,columnGap:a,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:s,gridColumnGap:a,gridAutoColumns:h,gridColumn:l,gridRow:u,gridAutoFlow:c,gridAutoRows:d,gridTemplateRows:f,gridTemplateColumns:p},...m})});s.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),s=n(28561),a=n(43906),l=n(35364);let u=(0,a.G)(function(e,t){let n=(0,l.m)("Mark",e),i=(0,o.L)(e);return(0,r.jsx)(s.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 s=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:s.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 a}});var r=n(20130),i=n(66703),o=n(5845),s=n(43906);function a(e){let{viewBox:t="0 0 24 24",d:n,displayName:a,defaultProps:l={}}=e,u=i.Children.toArray(e.path),c=(0,s.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=a,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),s=n(35364),a=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,s.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)(a.m.svg,{as:n,...v,...p});let b=null!=d?d:l.path;return(0,r.jsx)(a.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 s=(0,o.G)(function(e,t){let{htmlWidth:n,htmlHeight:i,alt:o,...s}=e;return(0,r.jsx)("img",{width:n,height:i,ref:t,alt:o,...s})});s.displayName="NativeImage";var a=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,...w}=e,x=void 0!==n||void 0!==o,S=null!=m||g||!x,k=u(function(e){let{loading:t,src:n,srcSet:r,onLoad:i,onError:o,crossOrigin:s,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,s&&(e.crossOrigin=s),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,s,r,u,i,o,t]),m=()=>{h.current&&(h.current.onload=null,h.current.onerror=null,h.current=null)};return(0,a.G)(()=>{if(!c)return"loading"===d&&p(),()=>{m()}},[d,p,c]),c?"loaded":d}({...e,crossOrigin:v,ignoreFallback:S}),y),E={ref:t,objectFit:p,objectPosition:h,...S?w:(0,i.C)(w,["onError","onLoad"])};return k?o||(0,r.jsx)(c.m.img,{as:s,className:"chakra-image__placeholder",src:n,...E}):(0,r.jsx)(c.m.img,{as:s,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),s=n(49110),a=n(43906);let l=(0,s.m)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),u=(0,a.G)(function(e,t){var n,i;let{placement:s="left",...a}=e,u=(0,o.m)(),c=u.field,d={["left"===s?"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,...a})});u.id="InputElement",u.displayName="InputElement";let c=(0,a.G)(function(e,t){let{className:n,...o}=e,s=(0,i.cx)("chakra-input__left-element",n);return(0,r.jsx)(u,{ref:t,placement:"left",className:s,...o})});c.id="InputLeftElement",c.displayName="InputLeftElement";let d=(0,a.G)(function(e,t){let{className:n,...o}=e,s=(0,i.cx)("chakra-input__right-element",n);return(0,r.jsx)(u,{ref:t,placement:"right",className:s,...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),s=n(90010),a=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,s.cx)("chakra-input__group",c),g={},v=(0,a.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),s=n(31172),a=n(43906),l=n(35364),u=n(49110);let c=(0,a.G)(function(e,t){let{htmlSize:n,...a}=e,c=(0,l.j)("Input",a),d=(0,i.L)(a),f=(0,s.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),s=n(43906),a=n(35364),l=n(49110);let u=(0,s.G)(function(e,t){let n=(0,a.m)("Link",e),{className:s,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",s),...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),s=n(84535),a=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:a="none",stylePosition:l,spacing:f,...h}=(0,i.L)(e),p=(0,s.W)(o);return(0,r.jsx)(d,{value:n,children:(0,r.jsx)(c.m.ul,{ref:t,listStyleType:a,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)(a.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),s=n(16909),a=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,a.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,s.O)(),a=Array.isArray(e)?e:[e],l=Array.isArray(r)?r:[r];l=l.filter(e=>null!=e);let[u,c]=(0,o.useState)(()=>a.map((e,t)=>({media:e,matches:n?!!l[t]:i().matchMedia(e).matches})));return(0,o.useEffect)(()=>{let e=i();c(a.map(t=>({media:t,matches:e.matchMedia(t).matches})));let t=a.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,a.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),s=n(37261),a=n(43906),l=n(49110);let u=(0,a.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,a.G)((e,t)=>{let{children:n,as:o,...a}=e,c=(0,s.zZ)(a,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 a}});var r=n(20130),i=n(90010),o=n(91504),s=n(49110);let a=e=>{let{className:t,...n}=e,a=(0,o.x)();return(0,r.jsx)(s.m.hr,{"aria-orientation":"horizontal",className:(0,i.cx)("chakra-menu__divider",t),...n,__css:a.divider})};a.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),s=n(43906),a=n(49110);let l=(0,s.G)((e,t)=>{let{title:n,children:s,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)(a.m.p,{className:c,...u,__css:d.groupTitle,children:n}),s]})});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),s=n(91504),a=n(49110);let l=e=>{let{className:t,children:n,...l}=e,u=(0,s.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)(a.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),s=n(43906),a=n(49110);let l=(0,s.G)((e,t)=>{let n=(0,o.x)();return(0,r.jsx)(a.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,s.G)((e,t)=>{let{type:n,...i}=e,s=(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,...s.item}),[s.item]);return(0,r.jsx)(a.m.button,{ref:t,type:l,...i,__css:u})});var f=n(37261);let h=(0,s.G)((e,t)=>{let{icon:n,iconSpacing:o="0.75rem",command:s,commandSpacing:a="0.75rem",children:c,...h}=e,p=(0,f.iX)(h,t),m=n||s?(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,s&&(0,r.jsx)(l,{marginStart:a,children:s})]})});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),s=n(42349),a=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)(s.E.div),h=(0,c.G)(function(e,t){var n,s;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),w=(0,a.x)();return(0,r.jsx)(u.m.div,{...b,__css:{zIndex:null!==(s=e.zIndex)&&void 0!==s?s:null===(n=w.list)||void 0===n?void 0:n.zIndex},children:(0,r.jsx)(f,{variants:d,initial:!1,animate:m?"enter":"exit",__css:{outline:0,...w.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),s=n(69072),a=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,a.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,s.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 x},H9:function(){return E},zZ:function(){return _},Xh:function(){return S},iX:function(){return I},_l:function(){return O},Qh:function(){return T}});var r=n(85071),i=n(18404),o=n(15749),s=n(19774),a=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,w]=(0,p.n)(),[x,S]=(0,c.k)({strict:!1,name:"MenuContext"});function k(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:w="unmount",direction:x,computePositionOnMount:S=!1,...E}=e,_=(0,a.useRef)(null),C=(0,a.useRef)(null),O=(0,a.useRef)(!0),T=b(),I=(0,a.useCallback)(()=>{requestAnimationFrame(()=>{var e;null===(e=_.current)||void 0===e||e.focus({preventScroll:!1})})},[]),P=(0,a.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})});q.current.add(e)},[T,c]),A=(0,a.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})}});q.current.add(e)},[T]),R=(0,a.useCallback)(()=>{null==v||v(),d?P():I()},[d,P,I,v]),{isOpen:M,onOpen:j,onClose:N,onToggle:D}=(0,r.q)({isOpen:h,defaultIsOpen:p,onClose:g,onOpen:R});(0,i.O)({enabled:M&&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:M||S,placement:y,direction:x}),[z,F]=(0,a.useState)(-1);(0,o.C)(_,{focusRef:C,visible:M,shouldFocus:!0});let B=(0,s.h)({isOpen:M,ref:_}),[$,U]=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,a.useId)();return(0,a.useMemo)(()=>e||[void 0,n].filter(Boolean).join("-"),[e,void 0,n])}(e);return(0,a.useMemo)(()=>n.map(e=>"".concat(e,"-").concat(i)),[i,n])}(t,"menu-button","menu-list"),V=(0,a.useCallback)(()=>{j(),I()},[j,I]),q=(0,a.useRef)(new Set([]));return(0,a.useEffect)(()=>{let e=q.current;return()=>{e.forEach(e=>clearTimeout(e)),e.clear()}},[]),(0,l.r)(()=>{var e;M||(F(-1),null===(e=_.current)||void 0===e||e.scrollTo(0,0))},[M]),(0,l.r)(()=>{M&&-1===z&&I()},[z,M]),(0,a.useEffect)(()=>{var e;if(!M)return;let t=T.item(z);null==t||null===(e=t.node)||void 0===e||e.focus({preventScroll:!O.current})},[T,z,M]),{openAndFocusMenu:V,openAndFocusFirstItem:(0,a.useCallback)(()=>{j(),P()},[P,j]),openAndFocusLastItem:(0,a.useCallback)(()=>{O.current=!0,j(),A()},[j,A]),onTransitionEnd:(0,a.useCallback)(()=>{var e,t;let n=k(_.current),r=null===(e=_.current)||void 0===e?void 0:e.contains(n.activeElement);if(!(M&&!r))return;let i=null===(t=T.item(z))||void 0===t?void 0:t.node;null==i||i.focus({preventScroll:!O.current})},[M,z,T]),unstable__animationState:B,descendants:T,popper:L,buttonId:$,menuId:U,forceUpdate:L.forceUpdate,orientation:"vertical",isOpen:M,onToggle:D,onOpen:j,onClose:N,menuRef:_,buttonRef:C,focusedIndex:z,closeOnSelect:n,closeOnBlur:u,autoSelect:d,setFocusedIndex:F,isLazy:f,lazyBehavior:w,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=S(),{onToggle:r,popper:i,openAndFocusFirstItem:o,openAndFocusLastItem:s,scrollIntoViewRef:l}=n,c=(0,a.useCallback)(e=>{let t={Enter:o,ArrowDown:o,ArrowUp:s}[e.key];t&&(l.current=!0,e.preventDefault(),e.stopPropagation(),t(e))},[o,s,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=S();if(!n)throw Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");let{focusedIndex:r,setFocusedIndex:i,menuRef:o,isOpen:s,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,a.useState)([]),o=(0,a.useRef)(void 0),s=()=>{o.current&&(clearTimeout(o.current),o.current=null)},l=()=>{s(),o.current=setTimeout(()=>{i([]),o.current=null},t)};return(0,a.useEffect)(()=>s,[]),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)}),w=(0,a.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]),x=(0,a.useRef)(!1);s&&(x.current=!0);let k=(0,h.k)({wasSelected:x.current,enabled:d,mode:p,isSelected:g.present});return{...e,ref:(0,u.lq)(o,t),children:k?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,w)}}function T(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{popper:t,isOpen:n}=S();return t.getPopperProps({...e,style:{visibility:n?"visible":"hidden",...e.style}})}function I(){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:s,isDisabled:l,isFocusable:c,closeOnSelect:d,type:f,...h}=e,{setFocusedIndex:p,focusedIndex:m,closeOnSelect:v,onClose:y,menuId:b,scrollIntoViewRef:x}=S(),E=(0,a.useRef)(null),_="".concat(b,"-menuitem-").concat((0,a.useId)()),{index:O,register:T}=w({disabled:l&&!c}),I=(0,a.useCallback)(e=>{null==n||n(e),l||(x.current=!1,p(O))},[p,O,l,n,x]),P=(0,a.useCallback)(e=>{var t;null==r||r(e),E.current&&k(t=E.current).activeElement!==t&&I(e)},[I,r]),A=(0,a.useCallback)(e=>{null==i||i(e),l||p(-1)},[p,l,i]),R=(0,a.useCallback)(e=>{null==o||o(e),C(e.currentTarget)&&(null!=d?d:v)&&y()},[y,o,v,d]),M=(0,a.useCallback)(e=>{null==s||s(e),p(O)},[p,s,O]),j=O===m,N=(0,g.h)({onClick:R,onFocus:M,onMouseEnter:I,onMouseMove:P,onMouseLeave:A,ref:(0,u.lq)(T,E,t),isDisabled:l,isFocusable:c});return{...h,...N,type:null!=f?f:N.type,id:_,role:"menuitem",tabIndex:j?0:-1}}},12276:function(e,t,n){"use strict";n.d(t,{_T:function(){return a},aR:function(){return s}});var r=n(20130),i=n(32850),o=n(81845);function s(e){let{leastDestructiveRef:t,...n}=e;return(0,r.jsx)(i.u_,{...n,initialFocusRef:t})}let a=(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),s=n(32850),a=n(43906),l=n(49110);let u=(0,a.G)((e,t)=>{let{className:n,...a}=e,{bodyId:u,setBodyMounted:c}=(0,s.vR)();(0,o.useEffect)(()=>(c(!0),()=>c(!1)),[c]);let d=(0,i.cx)("chakra-modal__body",n),f=(0,s.I_)();return(0,r.jsx)(l.m.div,{ref:t,className:d,id:u,...a,__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),s=n(32850),a=n(10994);let l=(0,n(43906).G)((e,t)=>{let{onClick:n,className:l,...u}=e,{onClose:c}=(0,s.vR)(),d=(0,i.cx)("chakra-modal__close-btn",l),f=(0,s.I_)();return(0,r.jsx)(a.P,{ref:t,__css:f.closeButton,className:d,onClick:(0,o.v)(n,e=>{e.stopPropagation(),c()}),...u})});l.displayName="ModalCloseButton"},81845:function(e,t,n){"use strict";n.d(t,{h:function(){return tJ}});var r,i,o,s,a,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 w(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 x(e){return e}function S(e,t){void 0===t&&(t=x);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)},s=function(){return Promise.resolve().then(o)};s(),n={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),n}}}}}function k(e,t){return void 0===t&&(t=x),S(e,t)}function E(e){void 0===e&&(e={});var t=S(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],s=e.forwardProps,a=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,x=(0,p._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=w([n,t]),k=(0,p.pi)((0,p.pi)({},x),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}),s?h.cloneElement(h.Children.only(a),(0,p.pi)((0,p.pi)({},k),{ref:S})):h.createElement(void 0===y?"div":y,(0,p.pi)({},k,{className:l,ref:S}),a))});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 I=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=s||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=I();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},A=function(){var e=P();return function(t){return e(t.styles,t.dynamic),null}},R={left:0,top:0,right:0,gap:0},M=function(e){return parseInt(e||"",10)||0},j=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[M(n),M(r),M(i)]},N=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return R;var t=j(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=A(),L="data-scroll-locked",z=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(a,"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(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(m," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(g," {\n margin-right: ").concat(a,"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(a,"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")})},U=!1;if("undefined"!=typeof window)try{var V=Object.defineProperty({},"passive",{get:function(){return U=!0,!0}});window.addEventListener("test",V,V),window.removeEventListener("test",V,V)}catch(e){U=!1}var q=!!U&&{passive:!1},W=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),G(e,r)){var i=Z(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},G=function(e,t){return"v"===e?W(t,"overflowY"):W(t,"overflowX")},Z=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,s=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),a=s*r,l=n.target,u=t.contains(l),c=!1,d=a>0,f=0,h=0;do{var p=Z(e,l),m=p[0],g=p[1]-p[2]-s*m;(m||g)&&G(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&&a>f)?c=!0:!d&&(i&&1>Math.abs(h)||!i&&-a>h)&&(c=!0),c},Y=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},J=function(e){return[e.deltaX,e.deltaY]},X=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(A)[0],s=h.useRef(e);h.useEffect(function(){s.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(X),!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 a=h.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var i,o=Y(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-o[0],u="deltaY"in e?e.deltaY:a[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?J(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=(s.current.shards||[]).map(X).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?a(e,i[0]):!s.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,J(t),t.target,a(t,e.lockRef.current))},[]),f=h.useCallback(function(t){u(t.type,Y(t),t.target,a(t,e.lockRef.current))},[]);h.useEffect(function(){return ee.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,q),document.addEventListener("touchmove",l,q),document.addEventListener("touchstart",c,q),function(){ee=ee.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,q),document.removeEventListener("touchmove",l,q),document.removeEventListener("touchstart",c,q)}},[]);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(14022),eo=n(82040),es="data-focus-lock",ea="data-focus-lock-disabled",el={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},eu=k({},function(e){return{target:e.target,currentTarget:e.currentTarget}}),ec=k(),ed=k(),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],s=(0,h.useRef)(),a=(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),x=e.className,S=e.whiteList,k=e.hasPositiveIndices,E=e.shards,_=void 0===E?ep:E,C=e.as,O=e.lockProps,T=e.sideCar,I=e.returnFocus,P=void 0!==I&&I,A=e.focusOptions,R=e.onActivation,M=e.onDeactivation,j=(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))}s.current&&R&&R(s.current),a.current=!0,u()},[R]),D=(0,h.useCallback)(function(){a.current=!1,M&&M(s.current),u()},[M]),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){a.current&&eu.useMedium(e)},[]),F=ec.useMedium,B=(0,h.useCallback)(function(e){s.current!==e&&(s.current=e,o(e))},[]),$=(0,eo.Z)(((n={})[ea]=f&&"disabled",n[es]=b,n),void 0===O?{}:O),U=!0!==m,V=U&&"tail"!==m,q=w([t,B]),W=(0,h.useMemo)(function(){return{observed:s,shards:_,enabled:!f,active:a.current}},[f,a.current,_,i]);return h.createElement(h.Fragment,null,U&&[h.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:f?-1:0,style:el}),k?h.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:f?-1:1,style:el}):null],!f&&h.createElement(T,{id:j,sideCar:ef,observed:i,disabled:f,persistentFocus:void 0!==g&&g,crossFrame:void 0===v||v,autoFocus:void 0===y||y,whiteList:S,shards:_,onActivation:N,onDeactivation:D,returnFocus:L,focusOptions:A,noFocusGuards:m}),h.createElement(void 0===C?"div":C,(0,eo.Z)({ref:q},$,{className:x,onBlur:F,onFocus:z}),h.createElement(eh.Provider,{value:W},c)),V&&h.createElement("div",{"data-focus-guard":!0,tabIndex:f?-1:0,style:el}))});em.propTypes={};var eg=n(37399),ev=n(52907),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]},ew=function(e){return Array.isArray(e)?e[0]:e},ex=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"))},eS=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},ek=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||ek(t)||!ex(t)&&!t.hasAttribute("inert")&&n(eS(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||!!ek(t)||!!eI(t)&&n(eS(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},eI=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))},eA=function(e){return!eP(e)},eR=function(e){return!!e},eM=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},ej=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(eM)},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)})},eU=function(e,t,n){return ej(eB(eF(e,n),t),!0,n)},eV=function(e,t){return ej(eB(eF(e),t),!1)},eq=function(e,t){return e.shadowRoot?eq(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&&eq(r,t)}return eq(e,t)})},eW=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&&eW(function(){return t.contentWindow.document})?eH(t.contentWindow.document):t}},eG=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 eq(e,t)})},eZ=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(es);return e.push.apply(e,n?eZ(ey(eK(t).querySelectorAll("[".concat(es,'="').concat(n,'"]:not([').concat(ea,'="disabled"])')))):[t]),e},[])},eJ=function(e,t){return void 0===t&&(t=eH(ew(e).ownerDocument)),!!t&&(!t.dataset||!t.dataset.focusGuard)&&eY(e).some(function(e){var n;return eq(e,t)||(n=t,!!ey(e.querySelectorAll("iframe")).some(function(e){return e===n}))})},eX=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))},e3="NEW_FOCUS",e5=function(e,t,n,r,i){var o=e.length,s=e[0],a=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:e3;if(-1===d)return e3;var f=u-c,h=n.indexOf(s),p=n.indexOf(a),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,w=i?y.indexOf(i):b;if(!f&&d>=0||0===t.length)return d;var x=e2(e,t[0]),S=e2(e,t[t.length-1]);if(u<=h&&l&&Math.abs(f)>1)return S;if(u>=p&&l&&Math.abs(f)>1)return x;if(f&&Math.abs(b>=0&&w>=0?w-b:v-g)>1)return d;if(u<=h)return S;if(u>p)return x;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],s=!1;return i.filter(Boolean).forEach(function(e){s=e9(s||e,e)||s,n.filter(Boolean).forEach(function(e){var t=e9(o,e);t&&(s=!s||eq(t,s)?t:e9(t,s))})}),s},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:ew(e).ownerDocument),r=eY(e).filter(eA),i=e8(n||e,e,r),o=new Map,s=eV(r,o),a=s.filter(function(e){return eA(e.node)});if(a[0]){var l=eV([i],o).map(function(e){return e.node}),u=te(l,a),c=u.map(function(e){return e.node}),d=u.filter(function(e){return e.tabIndex>=0}).map(function(e){return e.node}),f=e5(c,d,l,n,t);if(f===e3){var h=e4(s,d,e7(r,o))||e4(s,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++,eX(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 ts=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}},ta=function(e){if(e)for(var t,n,r,i,o,s=e.stack,a=e.ownerDocument,l=new Map,u=0;u<s.length;u++){var c=s[u],d=null===(t=c.parent)||void 0===t?void 0:t.call(c);if(d&&a.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=eU([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=ts(e);return function(){return ta(t)}},tu=function(e){var t=eY(e).filter(eA),n=ej(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!eq(t,e)}))return console.error("Active element is not contained in the scope"),{};var i=n?eU(r,new Map):eV(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?eU(eb(e),new Map):eV(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 s=n(o,i.cycle);s&&eX(s.node,i.focusOptions)}},th=function(e,t,n){var r,i=td(e,null===(r=t.onlyTabbable)||void 0===r||r)[n];i&&eX(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},tw=null,tx=!1,tS=!1,tk=function(e,t){tw={observerNode:e,portaledElement:t}};function tE(e,t,n,r){var i=null,o=e;do{var s=r[o];if(s.guard)s.node.dataset.focusAutoGuard&&(i=s);else if(s.lockItem){if(o!==e)return;i=null}else break}while((o+=n)!==t);i&&(i.node.tabIndex=0)}var t_=function(e){return eV(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,s=t.crossFrame,a=t.focusOptions,l=t.noFocusGuards,u=n||tw&&tw.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(!(s?!!tx:"meanwhile"===tx)||!l||!ty||tS)return!1;var e=t_(h),t=e.findIndex(function(e){return e.node===ty});return 0===t||t===e.length-1}()||!(tg()||eG())||!ty&&i)&&(u&&!(eJ(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)})||tw&&tw.portaledElement===d)&&(document&&!ty&&d&&!i?(d.blur&&d.blur(),document.body.focus()):(e=ti(h,ty,{focusOptions:a}),tw={})),(ty=document&&document.activeElement)!==document.body&&(tb=tl(ty)),tx=!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)},tI=function(){tS=!0},tP=function(){tS=!1,tx="just",tp(function(){tx="meanwhile"})},tA=function(){document.addEventListener("focusin",tO),document.addEventListener("focusout",tT),window.addEventListener("focus",tI),window.addEventListener("blur",tP)},tR=function(){document.removeEventListener("focusin",tO),document.removeEventListener("focusout",tT),window.removeEventListener("focus",tI),window.removeEventListener("blur",tP)},tM={moveFocusInside:ti,focusInside:eJ,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)||tk(n,t)}),ec.assignMedium(tT),ed.assignMedium(function(e){return e(tM)});var tj=(i=function(e){return e.filter(function(e){return!e.disabled})},o=function(e){var t=e.slice(-1)[0];t&&!tv&&tA();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(tM),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 s=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 s=o.prototype;return s.componentDidMount=function(){n.push(this),r()},s.componentDidUpdate=function(){r()},s.componentWillUnmount=function(){var e=n.indexOf(this);n.splice(e,1),r()},s.render=function(){return h.createElement(e,this.props)},o}(h.PureComponent);return(0,ev.Z)(s,"displayName","SideEffect("+(e.displayName||e.name||"Component")+")"),s})(function(){return null}),tN=(0,h.forwardRef)(function(e,t){return h.createElement(em,(0,eo.Z)({sideCar:tj,ref:t},e))}),tD=em.propTypes||{};tD.sideCar,(0,ei.Z)(tD,["sideCar"]),tN.propTypes={};var tL=n(29239);let tz=null!==(a=tN.default)&&void 0!==a?a:tN,tF=e=>{let{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:i,children:o,isDisabled:s,autoFocus:a,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:a,disabled:s,onActivation:d,onDeactivation:f,returnFocus:p,children:o})};function tB(e){let{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:i,blockScrollOnMount:o,allowPinchZoom:s,finalFocusRef:a,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:a,restoreFocus:u,contentRef:r,lockFocusAcrossFrames:p,children:(0,l.jsx)(en,{removeScrollBar:!c,allowPinchZoom:s,enabled:1===y&&o,forwardProps:!0,children:e.children})})}tF.displayName="FocusLock";var t$=n(42349),tU=n(40880),tV=n(35278);let tq={initial:"initial",animate:"enter",exit:"exit",variants:{initial:e=>{var t;let{offsetX:n,offsetY:r,transition:i,transitionEnd:o,delay:s}=e;return{opacity:0,x:n,y:r,transition:null!==(t=null==i?void 0:i.exit)&&void 0!==t?t:tV.p$.exit(tV.Sh.exit,s),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:tV.p$.enter(tV.Sh.enter,i),transitionEnd:null==r?void 0:r.enter}},exit:e=>{var t;let{offsetY:n,offsetX:r,transition:i,transitionEnd:o,reverse:s,delay:a}=e,l={x:r,y:n};return{opacity:0,transition:null!==(t=null==i?void 0:i.exit)&&void 0!==t?t:tV.p$.exit(tV.Sh.exit,a),...s?{...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:s=0,offsetY:a=8,transition:u,transitionEnd:d,delay:f,animatePresenceProps:h,...p}=e,m=!n||r&&n,g=r||n?"enter":"exit",v={offsetX:s,offsetY:a,reverse:i,transition:u,transitionEnd:d,delay:f};return(0,l.jsx)(tU.M,{...h,custom:v,children:m&&(0,l.jsx)(t$.E.div,{ref:t,className:(0,c.cx)("chakra-offset-slide",o),custom:v,...tq,animate:g,...p})})}).displayName="SlideFade";let tW={initial:"exit",animate:"enter",exit:"exit",variants:{exit:e=>{var t;let{reverse:n,initialScale:r,transition:i,transitionEnd:o,delay:s}=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:tV.p$.exit(tV.Sh.exit,s)}},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:tV.p$.enter(tV.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:s,transition:a,transitionEnd:u,delay:d,animatePresenceProps:f,...h}=e,p=!n||r&&n,m=r||n?"enter":"exit",g={initialScale:o,reverse:i,transition:a,transitionEnd:u,delay:d};return(0,l.jsx)(tU.M,{...f,custom:g,children:p&&(0,l.jsx)(t$.E.div,{ref:t,className:(0,c.cx)("chakra-offset-slide",s),...tW,animate:m,custom:g,...h})})}).displayName="ScaleFade";var tH=n(49110);let tG={slideInBottom:{...tq,custom:{offsetY:16,reverse:!0}},slideInRight:{...tq,custom:{offsetX:16,reverse:!0}},slideInTop:{...tq,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...tq,custom:{offsetX:-16,reverse:!0}},scale:{...tW,custom:{initialScale:.95,reverse:!0}},none:{}},tZ=(0,tH.m)(t$.E.section),tK=e=>tG[e||"none"],tY=(0,h.forwardRef)((e,t)=>{let{preset:n,motionProps:r=tK(n),...i}=e;return(0,l.jsx)(tZ,{ref:t,...r,...i})});tY.displayName="ModalTransition";let tJ=(0,n(43906).G)((e,t)=>{let{className:n,children:r,containerProps:i,motionProps:o,...s}=e,{getDialogProps:a,getDialogContainerProps:f}=(0,d.vR)(),h=a(s,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})})})});tJ.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),s=n(32850),a=n(43906),l=n(49110);let u=(0,a.G)((e,t)=>{let{className:n,...a}=e,u=(0,o.cx)("chakra-modal__footer",n),c=(0,s.I_)(),d=(0,i.k0)({display:"flex",alignItems:"center",justifyContent:"flex-end",...c.footer});return(0,r.jsx)(l.m.footer,{ref:t,...a,__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),s=n(66703),a=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,a.vR)();(0,s.useEffect)(()=>(d(!0),()=>d(!1)),[d]);let f=(0,o.cx)("chakra-modal__header",n),h=(0,a.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,s=(e,t,n)=>(o(e,"symbol"!=typeof t?t+"":t,n),n);class a{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(){s(this,"modals"),this.modals=new Set}}let l=new a;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),s=n(32850),a=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:s,className:l,transition:u,transitionEnd:d,delay:f,animatePresenceProps:h,...p}=e,m=s||n?"enter":"exit",g=!n||s&&n,v={transition:u,transitionEnd:d,delay:f};return(0,r.jsx)(a.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:a,...l}=e,u=(0,i.cx)("chakra-modal__overlay",n),d={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...(0,s.I_)().overlay},{motionPreset:f}=(0,s.vR)(),p="none"===f?{}:c;return(0,r.jsx)(h,{...a||p,__css:d,ref:t,className:u,...l})});p.displayName="ModalOverlay"},32850:function(e,t,n){"use strict";n.d(t,{u_:function(){return k},vR:function(){return S},I_:function(){return w}});var r=n(20130),i=n(9396),o=n(40880),s=n(6461),a=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],s=[],a=new Set,h=new Set(i),p=function(e){!e||a.has(e)||(a.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(a.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),s.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),a.clear(),d++,function(){s.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,w]=(0,i.k)({name:"ModalStylesContext",errorMessage:"useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Modal />\" "}),[x,S]=(0,i.k)({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),k=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:w,preserveScrollBarGap:S,motionPreset:k,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),w=(0,m.useRef)(null),x=(0,m.useCallback)(e=>{w.current=e.target},[]),S=(0,m.useCallback)(e=>{"Escape"===e.key&&(e.stopPropagation(),o&&(null==n||n()),null==c||c())},[o,n,c]),[k,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,s.lq)(t,d),id:h,tabIndex:-1,"aria-modal":!0,"aria-labelledby":k?v:void 0,"aria-describedby":_?y:void 0,onClick:(0,a.v)(e.onClick,e=>e.stopPropagation())}},[y,_,h,v,k]),T=(0,m.useCallback)(e=>{e.stopPropagation(),w.current===e.target&&g.m.isTopModal(d.current)&&(i&&(null==n||n()),null==u||u())},[n,i,u]),I=(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,s.lq)(t,f),onClick:(0,a.v)(e.onClick,T),onKeyDown:(0,a.v)(e.onKeyDown,S),onMouseDown:(0,a.v)(e.onMouseDown,x)}},[S,x,T]);return{isOpen:t,onClose:n,headerId:v,bodyId:y,setBodyMounted:C,setHeaderMounted:E,dialogRef:d,overlayRef:f,getDialogProps:O,getDialogContainerProps:I,index:b}}(t),autoFocus:l,trapFocus:u,initialFocusRef:c,finalFocusRef:d,returnFocusOnClose:f,blockScrollOnMount:h,allowPinchZoom:w,preserveScrollBarGap:S,motionPreset:k,lockFocusAcrossFrames:E};return(0,r.jsx)(x,{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})})})})};k.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),s=n(43906),a=n(49110);let l=(0,s.G)(function(e,t){let{getBodyProps:n}=(0,o.lp)(),s=(0,o.SV)();return(0,r.jsx)(a.m.div,{...n(e,t),className:(0,i.cx)("chakra-popover__body",e.className),__css:s.body})});l.displayName="PopoverBody"},79769:function(e,t,n){"use strict";n.d(t,{u:function(){return a}});var r=n(20130),i=n(90010),o=n(76151),s=n(10994);let a=(0,n(43906).G)(function(e,t){let{onClose:n}=(0,o.lp)(),a=(0,o.SV)();return(0,r.jsx)(s.P,{size:"sm",onClick:n,className:(0,i.cx)("chakra-popover__close-btn",e.className),__css:a.closeButton,ref:t,...e})});a.displayName="PopoverCloseButton"},72682:function(e,t,n){"use strict";n.d(t,{y:function(){return p}});var r=n(20130),i=n(71034),o=n(11915),s=n(90010),a=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,a.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,a.lp)(),m=(0,a.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,s.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 a},WG:function(){return s},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 />`"}),[s,a]=(0,r.k)({name:"PopoverStylesContext",errorMessage:"usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Popover />\" "})},80384:function(e,t,n){"use strict";n.d(t,{D:function(){return a}});var r=n(20130),i=n(90010),o=n(76151),s=n(49110);function a(e){let t=(0,o.SV)();return(0,r.jsx)(s.m.footer,{...e,className:(0,i.cx)("chakra-popover__footer",e.className),__css:t.footer})}a.displayName="PopoverFooter"},21468:function(e,t,n){"use strict";n.d(t,{Y:function(){return l}});var r=n(20130),i=n(90010),o=n(76151),s=n(43906),a=n(49110);let l=(0,s.G)(function(e,t){let{getHeaderProps:n}=(0,o.lp)(),s=(0,o.SV)();return(0,r.jsx)(a.m.header,{...n(e,t),className:(0,i.cx)("chakra-popover__header",e.className),__css:s.header})});l.displayName="PopoverHeader"},34885:function(e,t,n){"use strict";n.d(t,{x:function(){return a}});var r=n(20130),i=n(66703),o=n(76151),s=n(6010);function a(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,s.e)(t)))})}a.displayName="PopoverTrigger"},7749:function(e,t,n){"use strict";n.d(t,{J:function(){return I}});var r=n(20130),i=n(66861),o=n(69072),s=n(76151),a=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),w=n(11915),x=n(66703),S=n(48961),k=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 I(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:s=!0,arrowSize:c,arrowShadowColor:d,trigger:f=E.click,openDelay:h=200,closeDelay:O=200,isLazy:T,lazyBehavior:I="unmount",computePositionOnMount:P,...A}=e,{isOpen:R,onClose:M,onOpen:j,onToggle:N}=(0,a.q)(e),[D,L]=(0,x.useState)(o);(0,x.useEffect)(()=>L(o),[o]);let z=(0,x.useRef)(null),F=(0,x.useRef)(null),B=(0,x.useRef)(null),$=(0,x.useRef)(!1),U=(0,x.useRef)(!1);R&&(U.current=!0);let[V,q]=(0,x.useState)(!1),[W,H]=(0,x.useState)(!1),G=(0,x.useId)(),Z=null!=i?i:G,[K,Y,J,X]=["popover-trigger","popover-content","popover-header","popover-body"].map(e=>"".concat(e,"-").concat(Z)),{referenceRef:Q,getArrowProps:ee,getPopperProps:et,getArrowInnerProps:en,forceUpdate:er}=(0,S.D)({...A,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,s,a;if(!p()||!r)return;let l=null!==(a=null===(s=e.composedPath)||void 0===s?void 0:null===(o=s.call(e))||void 0===o?void 0:o[0])&&void 0!==a?a: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:s&&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)),M())}});let eo=(0,b.k)({wasSelected:U.current,enabled:T,mode:I,isSelected:ei.present}),es=(0,x.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:k.Dq.transformOrigin.varRef,[k.Dq.arrowSize.var]:c?"".concat(c,"px"):void 0,[k.Dq.arrowShadowColor.var]:d},ref:(0,v.lq)(B,r),children:eo?e.children:null,id:Y,tabIndex:-1,role:"dialog",onKeyDown:(0,w.v)(e.onKeyDown,e=>{!e.nativeEvent.isComposing&&n&&"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),M())}),onBlur:(0,w.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&&M()}),"aria-labelledby":V?J:void 0,"aria-describedby":W?X:void 0};return f===E.hover&&(i.role="tooltip",i.onMouseEnter=(0,w.v)(e.onMouseEnter,()=>{$.current=!0}),i.onMouseLeave=(0,w.v)(e.onMouseLeave,e=>{null!==e.nativeEvent.relatedTarget&&($.current=!1,setTimeout(()=>M(),O))})),i},[eo,Y,V,J,W,X,f,n,M,R,t,O,d,c]),ea=(0,x.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,x.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,x.useRef)(void 0),ec=(0,x.useRef)(void 0),ed=(0,x.useCallback)(e=>{null==z.current&&Q(e)},[Q]),ef=(0,x.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,w.v)(e.onClick,N)),f===E.hover&&(r.onFocus=(0,w.v)(e.onFocus,()=>{void 0===eu.current&&j()}),r.onBlur=(0,w.v)(e.onBlur,e=>{let n=C(e),r=!_(B.current,n);R&&t&&r&&M()}),r.onKeyDown=(0,w.v)(e.onKeyDown,e=>{"Escape"===e.key&&M()}),r.onMouseEnter=(0,w.v)(e.onMouseEnter,()=>{$.current=!0,eu.current=window.setTimeout(()=>j(),h)}),r.onMouseLeave=(0,w.v)(e.onMouseLeave,()=>{$.current=!1,eu.current&&(clearTimeout(eu.current),eu.current=void 0),ec.current=window.setTimeout(()=>{!1===$.current&&M()},O)})),r},[K,R,Y,f,ed,N,j,t,M,h,O]);(0,x.useEffect)(()=>()=>{eu.current&&clearTimeout(eu.current),ec.current&&clearTimeout(ec.current)},[]);let eh=(0,x.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=>{q(!!e)})}},[J]),ep=(0,x.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=>{H(!!e)})}},[X]);return{forceUpdate:er,isOpen:R,onAnimationComplete:ei.onComplete,onClose:M,getAnchorProps:el,getArrowProps:ee,getArrowInnerProps:en,getPopoverPositionerProps:ea,getPopoverProps:es,getTriggerProps:ef,getHeaderProps:eh,getBodyProps:ep}}({...c,direction:d.direction});return(0,r.jsx)(s.H2,{value:f,children:(0,r.jsx)(s.WG,{value:t,children:(0,o.P)(n,{isOpen:f.isOpen,onClose:f.onClose,forceUpdate:f.forceUpdate})})})}I.displayName="Popover"},48961:function(e,t,n){"use strict";n.d(t,{D:function(){return ek}});var r,i,o,s,a,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 s=(c(e)?u(e):window).visualViewport,a=!v()&&n,l=(r.left+(a&&s?s.offsetLeft:0))/i,f=(r.top+(a&&s?s.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 w(e){return e?(e.nodeName||"").toLowerCase():null}function x(e){return((c(e)?e.ownerDocument:e.document)||window.document).documentElement}function S(e){return y(x(e)).left+b(e).scrollLeft}function k(e){return u(e).getComputedStyle(e)}function E(e){var t=k(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"===w(e)?e:e.assignedSlot||e.parentNode||(f(e)?e.host:null)||x(e)}function O(e,t){void 0===t&&(t=[]);var n,r=function e(t){return["html","body","#document"].indexOf(w(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),s=i?[o].concat(o.visualViewport||[],E(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(O(C(s)))}function T(e){return d(e)&&"fixed"!==k(e).position?e.offsetParent:null}function I(e){for(var t=u(e),n=T(e);n&&["table","td","th"].indexOf(w(n))>=0&&"static"===k(n).position;)n=T(n);return n&&("html"===w(n)||"body"===w(n)&&"static"===k(n).position)?t:n||function(e){var t=/firefox/i.test(g());if(/Trident/i.test(g())&&d(e)&&"fixed"===k(e).position)return null;var n=C(e);for(f(n)&&(n=n.host);d(n)&&0>["html","body"].indexOf(w(n));){var r=k(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",A="right",R="left",M="auto",j=["top",P,A,R],N="start",D="viewport",L="popper",z=j.reduce(function(e,t){return e.concat([t+"-"+N,t+"-end"])},[]),F=[].concat(j,[M]).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 U(){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 V={passive:!0};function q(e){return e.split("-")[0]}function W(e){return e.split("-")[1]}function H(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function G(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?q(i):null,s=i?W(i):null,a=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case"top":t={x:a,y:n.y-r.height};break;case P:t={x:a,y:n.y+n.height};break;case A: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(s){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 Z={top:"auto",right:"auto",bottom:"auto",left:"auto"};function K(e){var t,n,r,i,o,s,a,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,w=h.x,S=void 0===w?0:w,E=h.y,_=void 0===E?0:E,C="function"==typeof y?y({x:S,y:_}):{x:S,y:_};S=C.x,_=C.y;var O=h.hasOwnProperty("x"),T=h.hasOwnProperty("y"),M=R,j="top",N=window;if(v){var D=I(l),L="clientHeight",z="clientWidth";D===u(l)&&"static"!==k(D=x(l)).position&&"absolute"===p&&(L="scrollHeight",z="scrollWidth"),("top"===d||(d===R||d===A)&&"end"===f)&&(j=P,_-=(b&&D===N&&N.visualViewport?N.visualViewport.height:D[L])-c.height,_*=g?1:-1),(d===R||("top"===d||d===P)&&"end"===f)&&(M=A,S-=(b&&D===N&&N.visualViewport?N.visualViewport.width:D[z])-c.width,S*=g?1:-1)}var F=Object.assign({position:p},v&&Z),B=!0===y?(t={x:S,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:S,y:_};return(S=B.x,_=B.y,g)?Object.assign({},F,((a={})[j]=T?"0":"",a[M]=O?"0":"",a.transform=1>=(N.devicePixelRatio||1)?"translate("+S+"px, "+_+"px)":"translate3d("+S+"px, "+_+"px, 0)",a)):Object.assign({},F,((s={})[j]=T?_+"px":"",s[M]=O?S+"px":"",s.transform="",s))}var Y={left:"right",right:"left",bottom:"top",top:"bottom"};function J(e){return e.replace(/left|right|bottom|top/g,function(e){return Y[e]})}var X={start:"end",end:"start"};function Q(e){return e.replace(/start|end/g,function(e){return X[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,s,a,l,d,f,p,m;return t===D?et(function(e,t){var n=u(e),r=x(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var c=v();(c||!c&&"fixed"===t)&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+S(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=x(e),s=x(i),a=b(i),l=null==(o=i.ownerDocument)?void 0:o.body,d=h(s.scrollWidth,s.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),f=h(s.scrollHeight,s.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),p=-a.scrollLeft+S(i),m=-a.scrollTop,"rtl"===k(l||s).direction&&(p+=h(s.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 es(e,t){void 0===t&&(t={});var n,r,i,o,s,a,l,u,f=t,m=f.placement,g=void 0===m?e.placement:m,v=f.strategy,b=void 0===v?e.strategy:v,S=f.boundary,E=f.rootBoundary,_=f.elementContext,T=void 0===_?L:_,R=f.altBoundary,M=f.padding,N=void 0===M?0:M,z=ei("number"!=typeof N?N:eo(N,j)),F=e.rects.popper,B=e.elements[void 0!==R&&R?T===L?"reference":L:T],$=(n=c(B)?B:B.contextElement||x(e.elements.popper),r=void 0===S?"clippingParents":S,i=void 0===E?D:E,l=(a=[].concat("clippingParents"===r?(o=O(C(n)),c(s=["absolute","fixed"].indexOf(k(n).position)>=0&&d(n)?I(n):n)?o.filter(function(e){return c(e)&&ee(e,s)&&"body"!==w(e)}):[]):[].concat(r),[i]))[0],(u=a.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),U=y(e.elements.reference),V=G({reference:U,element:F,strategy:"absolute",placement:g}),q=et(Object.assign({},F,V)),W=T===L?q:U,H={top:$.top-W.top+z.top,bottom:W.bottom-$.bottom+z.bottom,left:$.left-W.left+z.left,right:W.right-$.right+z.right},Z=e.modifiersData.offset;if(T===L&&Z){var K=Z[g];Object.keys(H).forEach(function(e){var t=[A,P].indexOf(e)>=0?1:-1,n=["top",P].indexOf(e)>=0?"y":"x";H[e]+=K[n]*t})}return H}function ea(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",A,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,s=r.resize,a=void 0===s||s,l=u(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(e){e.addEventListener("scroll",n.update,V)}),a&&l.addEventListener("resize",n.update,V),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",n.update,V)}),a&&l.removeEventListener("resize",n.update,V)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=G({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,s=void 0===o||o,a={placement:q(t.placement),variation:W(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({},a,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===i||i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,K(Object.assign({},a,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),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)&&w(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)&&w(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,s=F.reduce(function(e,n){var r,i,s,a,l,u;return e[n]=(r=t.rects,s=[R,"top"].indexOf(i=q(n))>=0?-1:1,l=(a="function"==typeof o?o(Object.assign({},r,{placement:n})):o)[0],u=a[1],l=l||0,u=(u||0)*s,[R,A].indexOf(i)>=0?{x:u,y:l}:{x:l,y:u}),e},{}),a=s[t.placement],l=a.x,u=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}},{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,s=n.altAxis,a=void 0===s||s,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=q(g)===g,y=l||(v||!p?[J(g)]:function(e){if(q(e)===M)return[];var t=J(e);return[Q(e),t,Q(t)]}(g)),b=[g].concat(y).reduce(function(e,n){var r,i,o,s,a,l,f,h,g,v,y,b;return e.concat(q(n)===M?(i=(r={placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:m}).placement,o=r.boundary,s=r.rootBoundary,a=r.padding,l=r.flipVariations,h=void 0===(f=r.allowedAutoPlacements)?F:f,0===(y=(v=(g=W(i))?l?z:z.filter(function(e){return W(e)===g}):j).filter(function(e){return h.indexOf(e)>=0})).length&&(y=v),Object.keys(b=y.reduce(function(e,n){return e[n]=es(t,{placement:n,boundary:o,rootBoundary:s,padding:a})[q(n)],e},{})).sort(function(e,t){return b[e]-b[t]})):n)},[]),w=t.rects.reference,x=t.rects.popper,S=new Map,k=!0,E=b[0],_=0;_<b.length;_++){var C=b[_],O=q(C),T=W(C)===N,I=["top",P].indexOf(O)>=0,D=I?"width":"height",L=es(t,{placement:C,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),B=I?T?A:R:T?P:"top";w[D]>x[D]&&(B=J(B));var $=J(B),U=[];if(o&&U.push(L[O]<=0),a&&U.push(L[B]<=0,L[$]<=0),U.every(function(e){return e})){E=C,k=!1;break}S.set(C,U)}if(k)for(var V=p?3:1,H=function(e){var t=b.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return E=t,"break"},G=V;G>0&&"break"!==H(G);G--);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,s=n.boundary,a=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=es(t,{boundary:s,rootBoundary:a,padding:u,altBoundary:l}),v=q(t.placement),y=W(t.placement),b=!y,w=H(v),x="x"===w?"y":"x",S=t.modifiersData.popperOffsets,k=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,M={x:0,y:0};if(S){if(void 0===i||i){var j,D="y"===w?"top":R,L="y"===w?P:A,z="y"===w?"height":"width",F=S[w],B=F+g[D],$=F-g[L],U=d?-E[z]/2:0,V=y===N?k[z]:E[z],G=y===N?-E[z]:-k[z],Z=t.elements.arrow,K=d&&Z?_(Z):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:er(),J=Y[D],X=Y[L],Q=ea(0,k[z],K[z]),ee=b?k[z]/2-U-Q-J-O.mainAxis:V-Q-J-O.mainAxis,et=b?-k[z]/2+U+Q+X+O.mainAxis:G+Q+X+O.mainAxis,en=t.elements.arrow&&I(t.elements.arrow),ei=en?"y"===w?en.clientTop||0:en.clientLeft||0:0,eo=null!=(j=null==T?void 0:T[w])?j:0,el=ea(d?p(B,F+ee-eo-ei):B,F,d?h($,F+et-eo):$);S[w]=el,M[w]=el-F}if(void 0!==o&&o){var eu,ec,ed="x"===w?"top":R,ef="x"===w?P:A,eh=S[x],ep="y"===x?"height":"width",em=eh+g[ed],eg=eh-g[ef],ev=-1!==["top",R].indexOf(v),ey=null!=(ec=null==T?void 0:T[x])?ec:0,eb=ev?em:eh-k[ep]-E[ep]-ey+O.altAxis,ew=ev?eh+k[ep]+E[ep]-ey-O.altAxis:eg,ex=d&&ev?(eu=ea(eb,eh,ew))>ew?ew:eu:ea(d?eb:em,eh,d?ew:eg);S[x]=ex,M[x]=ex-eh}t.modifiersData[r]=M}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n,r=e.state,i=e.name,o=e.options,s=r.elements.arrow,a=r.modifiersData.popperOffsets,l=q(r.placement),u=H(l),c=[R,A].indexOf(l)>=0?"height":"width";if(s&&a){var d=ei("number"!=typeof(t="function"==typeof(t=o.padding)?t(Object.assign({},r.rects,{placement:r.placement})):t)?t:eo(t,j)),f=_(s),h="y"===u?"top":R,p="y"===u?P:A,m=r.rects.reference[c]+r.rects.reference[u]-a[u]-r.rects.popper[c],g=a[u]-r.rects.reference[u],v=I(s),y=v?"y"===u?v.clientHeight||0:v.clientWidth||0:0,b=d[h],w=y-f[c]-d[p],x=y/2-f[c]/2+(m/2-g/2),S=ea(b,x,w);r.modifiersData[i]=((n={})[u]=S,n.centerOffset=S-x,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,s=es(t,{elementContext:"reference"}),a=es(t,{altBoundary:!0}),l=el(s,r),u=el(a,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,a=void 0===(s=r.defaultOptions)?$:s,function(e,t,n){void 0===n&&(n=a);var r,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},$,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],f=!1,h={state:s,setOptions:function(n){var r,i,u,d,f,m="function"==typeof n?n(s.options):n;p(),s.options=Object.assign({},a,s.options,m),s.scrollParents={reference:c(e)?O(e):e.contextElement?O(e.contextElement):[],popper:O(t)};var g=(i=Object.keys(r=[].concat(o,s.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 s.orderedModifiers=g.filter(function(e){return e.enabled}),s.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=e.effect;if("function"==typeof r){var i=r({state:s,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,a,l,c,p,g,v,k=s.elements,C=k.reference,O=k.popper;if(U(C,O)){s.rects={reference:(t=I(O),n="fixed"===s.options.strategy,r=d(t),l=d(t)&&(o=m((i=t.getBoundingClientRect()).width)/t.offsetWidth||1,a=m(i.height)/t.offsetHeight||1,1!==o||1!==a),c=x(t),p=y(C,l,n),g={scrollLeft:0,scrollTop:0},v={x:0,y:0},(r||!r&&!n)&&(("body"!==w(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=S(c))),{x:p.left+g.scrollLeft-v.x,y:p.top+g.scrollTop-v.y,width:p.width,height:p.height}),popper:_(O)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var T=0;T<s.orderedModifiers.length;T++){if(!0===s.reset){s.reset=!1,T=-1;continue}var P=s.orderedModifiers[T],A=P.fn,R=P.options,M=void 0===R?{}:R,j=P.name;"function"==typeof A&&(s=A({state:s,options:M,name:j,instance:h})||s)}}}},update:(r=function(){return new Promise(function(e){h.forceUpdate(),e(s)})},function(){return i||(i=new Promise(function(e){Promise.resolve().then(function(){i=void 0,e(r())})})),i}),destroy:function(){p(),f=!0}};if(!U(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;ew(t)},effect:e=>{let{state:t}=e;return()=>{ew(t)}}},ew=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))"})},ex={"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"}},eS={"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 ek(){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:s=!0,offset:a,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=ex[e])||void 0===t?void 0:t[r])||e;return"ltr"===r?i:null!==(n=eS[e])&&void 0!==n?n:i}(r,p),b=(0,ed.useRef)(()=>{}),w=(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)(s)},{name:"arrow",options:{padding:o}},{name:"offset",options:{offset:null!=a?a:[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,s,o,a,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 x=(0,ed.useCallback)(e=>{m.current=e,w()},[w]),S=(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)(x,t)}},[x]),k=(0,ed.useCallback)(e=>{g.current=e,w()},[w]),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)(k,t),style:{...e.style,position:i,minWidth:h?void 0:"max-content",inset:"0 auto auto 0"}}},[i,k,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,...s}=e;return{...s,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:x,popperRef:k,getPopperProps:E,getArrowProps:_,getArrowInnerProps:C,getReferenceProps:S}}},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 a}});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 s={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"},a=e=>s[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 s}});var r=n(20130);let[i,o]=(0,n(9396).k)({strict:!1,name:"PortalManagerContext"});function s(e){let{children:t,zIndex:n}=e;return(0,r.jsx)(i,{value:{zIndex:n},children:t})}s.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),s=n(66703),a=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,s.useState)(null),p=(0,s.useRef)(null),[,m]=(0,s.useState)({});(0,s.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,a.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,s.useMemo)(()=>{let e=null==l?void 0:l.ownerDocument.createElement("div");return e&&(e.className=d),e},[l]),[,h]=(0,s.useState)({});return((0,i.G)(()=>h({}),[]),(0,i.G)(()=>{if(f&&c)return c.appendChild(f),()=>{c.removeChild(f)}},[f,c]),c&&f)?(0,a.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 s=e=>(0,r.jsx)(o.m.circle,{cx:50,cy:50,r:42,fill:"transparent",...e});s.displayName="Circle";var a=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(a.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:w,...x}=e,S=(0,a.Wt)({min:d,max:c,value:p,valueText:f,getValueText:h,isIndeterminate:w}),k=w?void 0:(null!==(n=S.percent)&&void 0!==n?n:0)*2.64,E=null==k?void 0:"".concat(k," ").concat(264-k),_=w?{css:{animation:"".concat(a.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",...S.bind,...x,__css:C,children:[(0,r.jsxs)(l,{size:u,isIndeterminate:w,children:[(0,r.jsx)(s,{stroke:b,strokeWidth:v,className:"chakra-progress__track"}),(0,r.jsx)(s,{stroke:y,strokeWidth:v,className:"chakra-progress__indicator",strokeLinecap:m?"round":void 0,opacity:0!==S.value||w?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),s=n(90913),a=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,a.G)((e,t)=>{let{min:n,max:i,value:o,isIndeterminate:a,role:u,...c}=e,f=(0,s.Wt)({value:o,min:n,max:i,isIndeterminate:a,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,a.G)((e,t)=>{var n;let{value:o,min:a=0,max:d=100,hasStripe:h,isAnimated:p,children:m,borderRadius:g,isIndeterminate:v,"aria-label":y,"aria-labelledby":b,"aria-valuetext":w,title:x,role:S,...k}=(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(s.Ag," 1s linear infinite")},O={...!v&&h&&p&&C,...v&&{position:"absolute",willChange:"left",minWidth:"50%",animation:"".concat(s.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,...k,children:(0,r.jsxs)(c,{value:E,children:[(0,r.jsx)(f,{"aria-label":y,"aria-labelledby":b,"aria-valuetext":w,min:a,max:d,value:o,isIndeterminate:v,css:O,borderRadius:_,title:x,role:S}),m]})})});h.displayName="Progress"},90913:function(e,t,n){"use strict";n.d(t,{Ag:function(){return a},O2:function(){return i},U1:function(){return o},Wt:function(){return l},YD:function(){return s}});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)"}}),s=(0,r.F4)({"0%":{left:"-40%"},"100%":{left:"100%"}}),a=(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:s,role:a="progressbar"}=e,l=(t-n)*100/(r-n);return{bind:{"data-indeterminate":s?"":void 0,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":s?void 0:t,"aria-valuetext":(()=>{if(null!=t)return"function"==typeof o?o(t,l):i})(),role:a},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),s=n(66703),a=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:w,htmlProps:x}=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,s.useState)(r||""),p=void 0!==n,m=p?n:f,g=(0,s.useRef)(null),v=(0,s.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,s.useId)(),b=i||"radio-".concat(y),w=(0,s.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,s.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,g),role:"radiogroup"}},[]),getRadioProps:(0,s.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){w(e)},"data-radiogroup":!0}},[c,b,w,m]),name:b,ref:g,focus:v,setValue:h,value:m,onChange:w,isDisabled:o,isFocusable:u,htmlProps:d}}(g),S=(0,s.useMemo)(()=>({name:w,size:i,onChange:y,colorScheme:n,value:v,variant:u,isDisabled:p,isFocusable:m}),[w,i,y,n,v,u,p,m]);return(0,r.jsx)(d,{value:S,children:(0,r.jsx)(c.m.div,{...b(x,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),s=n(11915),a=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,w=(0,g.j)("Radio",{...m,...e}),{spacing:x="0.5rem",children:S,isDisabled:k=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,s.P)(m.onChange,y));let I=null!==(n=null==e?void 0:e.name)&&void 0!==n?n:null==m?void 0:m.name,{getInputProps:P,getRadioProps:A,getLabelProps:R,getRootProps:M,htmlProps:j}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultChecked:t,isChecked:n,isFocusable:r,isDisabled:i,isReadOnly:o,isRequired:a,onChange:m,isInvalid:g,name:v,value:y,id:b,"data-radiogroup":w,"aria-describedby":x,...S}=e,k="radio-".concat((0,d.useId)()),E=(0,f.NJ)(),_=(0,l.X)(),C=E&&!(_||w)?E.id:k;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,I=null!=a?a:null==E?void 0:E.isRequired,P=null!=g?g:null==E?void 0:E.isInvalid,[A,R]=(0,d.useState)(!1),[M,j]=(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,U=$?n:F;(0,d.useEffect)(()=>(0,c.BT)(R),[]);let V=(0,d.useCallback)(e=>{if(T||O){e.preventDefault();return}$||B(e.currentTarget.checked),null==m||m(e)},[$,O,T,m]),q=(0,d.useCallback)(e=>{" "===e.key&&z(!0)},[z]),W=(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)(U),"data-focus":(0,u.P)(M),"data-focus-visible":(0,u.P)(M&&A),"data-readonly":(0,u.P)(T),"aria-hidden":!0,onMouseDown:(0,s.v)(e.onMouseDown,()=>z(!0)),onMouseUp:(0,s.v)(e.onMouseUp,()=>z(!1)),onMouseEnter:(0,s.v)(e.onMouseEnter,()=>D(!0)),onMouseLeave:(0,s.v)(e.onMouseLeave,()=>D(!1))}},[L,N,O,P,U,M,T,A]),{onFocus:G,onBlur:Z}=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,s.v)(e.onChange,V),onBlur:(0,s.v)(Z,e.onBlur,()=>j(!1)),onFocus:(0,s.v)(G,e.onFocus,()=>j(!0)),onKeyDown:(0,s.v)(e.onKeyDown,q),onKeyUp:(0,s.v)(e.onKeyUp,W),checked:U,disabled:n,readOnly:T,required:I,"aria-invalid":(0,u.Q)(P),"aria-disabled":(0,u.Q)(n),"aria-required":(0,u.Q)(I),"data-readonly":(0,u.P)(T),"aria-describedby":x,style:h.N}},[O,r,C,v,y,V,Z,G,q,W,U,T,I,P,x]);return{state:{isInvalid:P,isFocused:M,isChecked:U,isActive:L,isHovered:N,isDisabled:O,isReadOnly:T,isRequired:I},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,s.v)(e.onMouseDown,p),"data-disabled":(0,u.P)(O),"data-checked":(0,u.P)(U),"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)(U),"data-invalid":(0,u.P)(P)}},htmlProps:S}}({...C,isChecked:O,isFocusable:E,isDisabled:k,onChange:T,name:I}),[N,D]=(0,a.V)(j,o.oE),L=A(D),z=P(_,t),F=R(),B=Object.assign({},N,M()),$={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...w.container},U={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...w.control},V={userSelect:"none",marginStart:x,...w.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:U}),S&&(0,r.jsx)(v.m.span,{className:"chakra-radio__label",...F,__css:V,children:S})]})});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),s=n(57835),a=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,...s}=e;return(0,r.jsxs)(d.m.select,{...s,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:w,minHeight:x,iconColor:S,iconSize:k,...E}=(0,i.L)(e),[_,C]=(0,s.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!=w?w:x,placeholder:c,...O,__css:T,children:e.children}),(0,r.jsx)(y,{"data-disabled":(0,a.P)(O.disabled),...(S||g)&&{color:S||g},__css:l.icon,...k&&{fontSize:k},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 w}});var r=n(20130),i=n(90010),o=n(66703),s=n(41293),a=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,s.gJ)("skeleton-start-color"),m=(0,s.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},s=(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:w,speed:x,className:S,fitContent:k,animation:E,..._}=(0,a.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),I=(0,i.cx)("chakra-skeleton",S),P={...C&&{[p.variable]:C},...O&&{[m.variable]:O}};if(b){let e=l||T?"none":"".concat(g," ").concat(w,"s");return(0,r.jsx)(c.m.div,{ref:t,className:I,__css:{animation:e},..._})}return(0,r.jsx)(h,{ref:t,className:I,..._,__css:{width:k?"fit-content":void 0,...s,...P,_dark:{...s._dark,...P},animation:E||"".concat(x,"s linear infinite alternate ").concat(v)}})});y.displayName="Skeleton";var b=n(20395);let w=e=>{let{noOfLines:t=3,spacing:n="0.5rem",skeletonHeight:o="0.5rem",className:s,startColor:a,endColor:l,isLoaded:u,fadeDuration:d,speed:f,variant:h,size:p,colorScheme:m,children:g,...v}=e,w=(0,b.S)("number"==typeof t?[t]:t)||3,x=Array(w).fill(1).map((e,t)=>t+1),S=e=>w>1&&e===x.length?"80%":"100%",k=(0,i.cx)("chakra-skeleton__group",s);return(0,r.jsx)(c.m.div,{className:k,...v,children:x.map((e,t)=>{if(u&&t>0)return null;let i=u?null:{mb:e===x.length?"0":n,width:S(e),height:o};return(0,r.jsx)(y,{startColor:a,endColor:l,isLoaded:u,fadeDuration:d,speed:f,variant:h,size:p,colorScheme:m,...i,children:0===t?g:void 0},x.length.toString()+e)})})};w.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),s=n(68312),a=n(43906),l=n(35364),u=n(49110);let c=(0,s.F4)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),d=(0,a.G)((e,t)=>{let n=(0,l.m)("Spinner",e),{label:s="Loading...",thickness:a="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:a,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:s&&(0,r.jsx)(u.m.span,{srOnly:!0,children:s})})});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),s=n(66703),a=n(49110);let l=e=>(0,r.jsx)(a.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,w=n?"row":null!=c?c:"column",x=(0,s.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:w}),[h,w]),S=!!g,k=!y&&!S,E=(0,s.useMemo)(()=>{let e=(0,i.W)(m);return k?e:e.map((t,n)=>{let i=void 0!==t.key?t.key:n,o=n+1===e.length,a=(0,r.jsx)(l,{children:t},i),u=y?a:t;if(!S)return u;let c=(0,s.cloneElement)(g,{__css:x});return(0,r.jsxs)(s.Fragment,{children:[u,o?null:c]},i)})},[g,x,S,k,y,m]),_=(0,o.cx)("chakra-stack",v);return(0,r.jsx)(a.m.div,{ref:t,display:"flex",alignItems:d,justifyContent:f,flexDirection:w,flexWrap:p,gap:S?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),s=n(66703),a=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,a.O)(f),y=(0,s.useMemo)(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...n.container}),[n.container]),b=(0,s.useMemo)(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...n.track}),[n.track]),w=(0,s.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:w,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),s=n(33164),a=n(82040),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},w=(function e(t,n){var r,i,o=t.__emotion_real===t,s=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var c=y(t,n,o),h=c||v(s),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 w=m[0];g.push(w[0]);for(var x=m.length,S=1;S<x;S++)g.push(m[S],w[S])}var k=(0,l.w)(function(e,t,n){var r=p&&e.as||s,o="",a=[],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,a,e.className):null!=e.className&&(o=e.className+" ");var w=(0,u.O)(g.concat(a),t.registered,m);o+=t.key+"-"+w.name,void 0!==i&&(o+=" "+i);var x=p&&void 0===c?v(r):h,S={};for(var k in e)(!p||"as"!==k)&&x(k)&&(S[k]=e[k]);return S.className=o,n&&(S.ref=n),f.createElement(f.Fragment,null,f.createElement(b,{cache:t,serialized:w,isStringTag:"string"==typeof r}),f.createElement(r,S))});return k.displayName=void 0!==r?r:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",k.defaultProps=t.defaultProps,k.__emotion_real=k,k.__emotion_base=s,k.__emotion_styles=g,k.__emotion_forwardProp=c,Object.defineProperty(k,"toString",{value:function(){return"."+i}}),k.withComponent=function(t,r){return e(t,(0,a.Z)({},n,r,{shouldForwardProp:y(k,r,!0)})).apply(void 0,g)},k}}).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){w[e]=w(e)});let x=new Set([...r.cC,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),S=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function k(e){return(S.has(e)||!x.has(e))&&"_"!==e[0]}var E=n(16276);let _=w.default||w,C=e=>{let{baseStyle:t}=e;return e=>{let{theme:n,css:a,__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,s.o)(d),u),h=(0,i.i)(f)(e.theme);return a?[h,a]:h}};function O(e,t){let{baseStyle:n,...r}=null!=t?t:{};r.shouldForwardProp||(r.shouldForwardProp=k);let i=C({baseStyle:n}),o=_(e,r)(i);return(0,f.forwardRef)(function(e,t){let{children:n,...r}=e,{colorMode:i,forced:s}=(0,E.If)();return(0,f.createElement)(o,{ref:t,"data-theme":s?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 s},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 s(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),s=r.map((t,r)=>{var i,s;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!==(s=o[r])&&void 0!==s?s:t)});return Array.isArray(t)?s:s[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),s=n(58450),a=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,a.W)(m,"components.".concat(e)):void 0,y=h||v,b=s({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),w=(0,c.useRef)({});if(y){let e=(e=>{let{variant:t,size:n,theme:a}=e,l=function(e){let t=e.__breakpoints;return function(e,n,a,l){var u;if(!t)return;let c={},d=(u=t.toArrayValue,Array.isArray(a)?a:(0,r.Kn)(a)?u(a):null!=a?[a]:void 0);if(!d)return c;let f=d.length,h=1===f,p=!!e.parts;for(let r=0;r<f;r++){let a=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)(a.minW,u?._minW),m=(0,o.P)(e[n]?.[d[r]],l);if(m){if(p){e.parts?.forEach(e=>{s(c,{[e]:h?m[e]:{[f]:m[e]}})});continue}if(!p){h?s(c,m):c[f]=m;continue}c[f]=m}}return c}}(a);return s({},(0,o.P)(y.baseStyle??{},e),l(y,"sizes",n,e),l(y,"variants",t,e))})(b);d(w.current,e)||(w.current=e)}return w.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 a}});var r=n(20130),i=n(90010),o=n(43906),s=n(49110);let a=(0,o.G)((e,t)=>{var n;let{overflow:o,overflowX:a,className:l,...u}=e;return(0,r.jsx)(s.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:a)&&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),s=n(90010),a=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,a.G)((e,t)=>{let n=(0,l.j)("Table",e),{className:o,layout:a,...d}=(0,i.L)(e);return(0,r.jsx)(c,{value:n,children:(0,r.jsx)(u.m.table,{ref:t,__css:{tableLayout:a,...n.table},className:(0,s.cx)("chakra-table",o),...d})})});f.displayName="Table"},68100:function(e,t,n){"use strict";n.d(t,{p:function(){return a}});var r=n(20130),i=n(65610),o=n(43906),s=n(49110);let a=(0,o.G)((e,t)=>{let n=(0,i.p)();return(0,r.jsx)(s.m.tbody,{...e,ref:t,__css:n.tbody})})},29313:function(e,t,n){"use strict";n.d(t,{Td:function(){return a}});var r=n(20130),i=n(65610),o=n(43906),s=n(49110);let a=(0,o.G)((e,t)=>{let{isNumeric:n,...o}=e,a=(0,i.p)();return(0,r.jsx)(s.m.td,{...o,ref:t,__css:a.td,"data-is-numeric":n})})},46321:function(e,t,n){"use strict";n.d(t,{Th:function(){return a}});var r=n(20130),i=n(65610),o=n(43906),s=n(49110);let a=(0,o.G)((e,t)=>{let{isNumeric:n,...o}=e,a=(0,i.p)();return(0,r.jsx)(s.m.th,{...o,ref:t,__css:a.th,"data-is-numeric":n})})},30874:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var r=n(20130),i=n(65610),o=n(43906),s=n(49110);let a=(0,o.G)((e,t)=>{let n=(0,i.p)();return(0,r.jsx)(s.m.thead,{...e,ref:t,__css:n.thead})})},97020:function(e,t,n){"use strict";n.d(t,{Tr:function(){return a}});var r=n(20130),i=n(65610),o=n(43906),s=n(49110);let a=(0,o.G)((e,t)=>{let n=(0,i.p)();return(0,r.jsx)(s.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),s=n(69711),a=n(4751),l=n(43906),u=n(49110);let c=(0,l.G)(function(e,t){let n=(0,a.hp)({...e,ref:t}),l=(0,s.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),s=n(4751),a=n(43906),l=n(49110);let u=(0,a.G)(function(e,t){let n=(0,s.WE)({...e,ref:t}),a=(0,o.s)();return(0,r.jsx)(l.m.div,{outline:"0",...n,className:(0,i.cx)("chakra-tabs__tab-panel",e.className),__css:a.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),s=n(4751),a=n(43906),l=n(49110);let u=(0,a.G)(function(e,t){let n=(0,s.bt)(e),a=(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:a.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),s=n(69711),a=n(4751),l=n(43906),u=n(49110);let c=(0,l.G)(function(e,t){let n=(0,s.s)(),l=(0,a.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),s=n(90010),a=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,a.useMemo)(()=>g,[g]),{isFitted:y,...b}=p,w={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,s.cx)("chakra-tabs",u),ref:t,...b,__css:w,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 w},hp:function(){return b},WE:function(){return E},bt:function(){return k},YE:function(){return g}});var r=n(66703),i=n(55229),o=n(6461),s=n(9396),a=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:s,isManual:a,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:s=(e,t)=>e!==t}=e,a=(0,i.W)(o),l=(0,i.W)(s),[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),a(t))},[d,a,f,l]);return[f,h]}({defaultValue:null!=n?n:0,value:s,onChange:o});(0,r.useEffect)(()=>{null!=s&&m(s)},[s]);let y=p(),b=(0,r.useId)(),w=null!==(t=e.id)&&void 0!==t?t:b;return{id:"tabs-".concat(w),selectedIndex:g,focusedIndex:h,setSelectedIndex:v,setFocusedIndex:m,isManual:a,isLazy:l,lazyBehavior:u,orientation:c,descendants:y,direction:d,htmlProps:f}}let[v,y]=(0,s.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(),s=(0,r.useCallback)(e=>{let r=()=>{var e;let n=o.nextEnabled(t);n&&(null===(e=n.node)||void 0===e||e.focus())},s=()=>{var e;let n=o.prevEnabled(t);n&&(null===(e=n.node)||void 0===e||e.focus())},a="horizontal"===n,l="vertical"===n,u={["ltr"===i?"ArrowLeft":"ArrowRight"]:()=>a&&s(),["ltr"===i?"ArrowRight":"ArrowLeft"]:()=>a&&r(),ArrowDown:()=>l&&r(),ArrowUp:()=>l&&s(),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,a.v)(e.onKeyDown,s)}}function w(e){let{isDisabled:t=!1,isFocusable:n=!1,...r}=e,{setSelectedIndex:i,isManual:s,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,a.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,a.v)(e.onFocus,()=>{u(f);let e=t&&n;s||e||i(f)})}}let[x,S]=(0,s.k)({});function k(e){let{id:t,selectedIndex:n}=y(),i=(0,l.W)(e.children).map((e,i)=>{var o;return(0,r.createElement)(x,{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:s,id:a,tabId:l}=S(),c=(0,r.useRef)(!1);s&&(c.current=!0);let d=(0,u.k)({wasSelected:c.current,isSelected:s,enabled:i,mode:o});return{tabIndex:0,...n,children:d?t:null,role:"tabpanel","aria-labelledby":l,hidden:!s,id:a}}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),s=n(5845),a=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,a.G)((e,t)=>{let n=(0,l.j)("Tag",e),o=(0,i.L)(e),s={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:s})})});f.displayName="Tag";let h=(0,a.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,a.G)((e,t)=>(0,r.jsx)(s.J,{ref:t,verticalAlign:"top",marginEnd:"0.5rem",...e}));p.displayName="TagLeftIcon";let m=(0,a.G)((e,t)=>(0,r.jsx)(s.J,{ref:t,verticalAlign:"top",marginStart:"0.5rem",...e}));m.displayName="TagRightIcon";let g=e=>(0,r.jsx)(s.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,a.G)((e,t)=>{let{isDisabled:n,children:i,...o}=e,s={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:s,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),s=n(90010),a=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,a.Y)(h),m=f?(0,o.C)(n,d):n;return(0,r.jsx)(c.m.textarea,{ref:t,rows:f,...p,className:(0,s.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),s=n(90010),a=n(50393),l=n(43906),u=n(49110);let c=(0,l.G)(function(e,t){let n=(0,a.uL)(),{status:i}=(0,a.oX)();return(0,r.jsx)(u.m.div,{ref:t,"data-status":i,...e,className:(0,s.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:s,title:a,isClosable:l,onClose:h,description:p,colorScheme:m,icon:g}=e,v=s?{root:"toast-".concat(s),title:"toast-".concat(s,"-title"),description:"toast-".concat(s,"-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:[a&&(0,r.jsx)(c,{id:null==v?void 0:v.title,children:a}),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 w},OX:function(){return b}});var r=n(20130),i=n(9396),o=n(40880),s=n(66703),a=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,s.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:w="0.5rem"}=e,[x,S]=(0,s.useState)(v),k=(0,c.hO)();(0,a.r)(()=>{k||null==i||i()},[k]),(0,a.r)(()=>{S(v)},[v]);let E=()=>{k&&o()};(0,s.useEffect)(()=>{k&&m&&o()},[k,m,o]),function(e,t){let n=(0,l.W)(e);(0,s.useEffect)(()=>{if(null==t)return;let e=null;return e=window.setTimeout(()=>{n()},t),()=>{e&&window.clearTimeout(e)}},[t,n])}(E,x);let _=(0,s.useMemo)(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:w,...y}),[y,w]),C=(0,s.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:()=>S(null),onHoverEnd:()=>S(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}),w=e=>{let t=(0,s.useSyncExternalStore)(g.f.subscribe,g.f.getState,g.f.getState),{motionVariants:n,component:i=m,portalProps:a,animatePresenceProps:l}=e,u=Object.keys(t).map(e=>{let s=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:s.map(e=>(0,r.jsx)(i,{motionVariants:n,...e},e.id))})},e)});return(0,r.jsx)(v.h,{...a,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,a=e=>{t=e(t),n.forEach(e=>e())};return{getState:()=>t,subscribe:t=>(n.add(t),()=>{a(()=>e),n.delete(t)}),removeToast:(e,t)=>{a(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]:{};s+=1;let i=null!==(t=r.id)&&void 0!==t?t:s,a=null!==(n=r.position)&&void 0!==n?n:"bottom";return{id:i,message:e,position:a,duration:r.duration,onCloseComplete:r.onCloseComplete,onRequestRemove:()=>o.removeToast(String(i),a),status:r.status,requestClose:!1,containerStyle:r.containerStyle}}(e,t),{position:r,id:i}=n;return a(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&&a(n=>{let o={...n},{position:s,index:a}=(0,i.Dn)(o,e);return s&&-1!==a&&(o[s][a]={...o[s][a],...t,message:(0,r.C)(t)}),o})},closeAll:function(){let{positions:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a(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=>{a(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":[]}),s=0},97038:function(e,t,n){"use strict";n.d(t,{Dn:function(){return i},IW:function(){return a},sv:function(){return s},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 s(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 a(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),s=n(43317),a=n(76694),l=n(94181);function u(e){let{theme:t}=(0,l.uP)(),n=(0,a.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 s.f.notify(r,t)};return r.update=(e,t)=>{s.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=s.f.closeAll,r.close=s.f.close,r.isActive=s.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),s=n(47301),a=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},w=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},x="chakra-ui:close-tooltip";var S=n(35518),k=n(72669),E=n(49110),_=n(43906),C=n(35364);let O=(0,E.m)(a.E.div),T=(0,_.G)((e,t)=>{var n,a;let _;let T=(0,C.m)("Tooltip",e),I=(0,i.L)(e),P=(0,S.F)(),{children:A,label:R,shouldWrapChildren:M,"aria-label":j,hasArrow:N,bg:D,portalProps:L,background:z,backgroundColor:F,bgColor:B,motionProps:$,animatePresenceProps:U,...V}=I,q=null!==(a=null!==(n=null!=z?z:F)&&void 0!==n?n:D)&&void 0!==a?a:B;if(q){T.bg=q;let e=P.__cssMap?.[`colors.${q}`]?.varRef??q;T[y.Dq.arrowBg.var]=e}let W=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:s=i,closeOnEsc:a=!0,onOpen:l,onClose:c,placement:d,id:S,isOpen:k,defaultIsOpen:E,arrowSize:_=10,arrowShadowColor:C,arrowPadding:O,modifiers:T,isDisabled:I,gutter:P,offset:A,direction:R,...M}=e,{isOpen:j,onOpen:N,onClose:D}=(0,f.q)({isOpen:k,defaultIsOpen:E,onOpen:l,onClose:c}),{referenceRef:L,getPopperProps:z,getArrowInnerProps:F,getArrowProps:B}=(0,v.D)({enabled:j,placement:d,arrowPadding:O,modifiers:T,gutter:P,offset:A,direction:R}),$=(0,u.useId)(),U="tooltip-".concat(null!=S?S:$),V=(0,u.useRef)(null),q=(0,u.useRef)(void 0),W=(0,u.useCallback)(()=>{q.current&&(clearTimeout(q.current),q.current=void 0)},[]),H=(0,u.useRef)(void 0),G=(0,u.useCallback)(()=>{H.current&&(clearTimeout(H.current),H.current=void 0)},[]),Z=(0,u.useCallback)(()=>{G(),D()},[D,G]),K=((0,u.useEffect)(()=>{let e=b(V);return e.addEventListener(x,Z),()=>e.removeEventListener(x,Z)},[Z,V]),()=>{let e=b(V),t=w(V);e.dispatchEvent(new t.CustomEvent(x))}),Y=(0,u.useCallback)(()=>{if(!I&&!q.current){j&&K();let e=w(V);q.current=e.setTimeout(N,t)}},[K,I,j,N,t]),J=(0,u.useCallback)(()=>{W();let e=w(V);H.current=e.setTimeout(Z,n)},[n,Z,W]),X=(0,u.useCallback)(()=>{j&&r&&J()},[r,J,j]),Q=(0,u.useCallback)(()=>{j&&s&&J()},[s,J,j]),ee=(0,u.useCallback)(e=>{j&&"Escape"===e.key&&J()},[j,J]);(0,h.O)(()=>b(V),"keydown",a?ee:void 0),(0,h.O)(()=>{if(!o)return null;let e=V.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?w(V):t},"scroll",()=>{j&&o&&Z()},{passive:!0,capture:!0}),(0,u.useEffect)(()=>{I&&(W(),j&&D())},[I,j,D,W]),(0,u.useEffect)(()=>()=>{W(),G()},[W,G]),(0,h.O)(()=>V.current,"pointerleave",J);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)(V,t,L),onPointerEnter:(0,g.v)(e.onPointerEnter,e=>{"touch"!==e.pointerType&&Y()}),onClick:(0,g.v)(e.onClick,X),onPointerDown:(0,g.v)(e.onPointerDown,Q),onFocus:(0,g.v)(e.onFocus,Y),onBlur:(0,g.v)(e.onBlur,J),"aria-describedby":j?U:void 0}},[Y,J,Q,j,U,X,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:j,show:Y,hide:J,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,...M,...e,id:U,role:"tooltip",style:n}},[M,U]),getTooltipPositionerProps:en,getArrowProps:B,getArrowInnerProps:F}}({...V,direction:P.direction});if(!(0,u.isValidElement)(A)||M)_=(0,r.jsx)(E.m.span,{display:"inline-block",tabIndex:0,...W.getTriggerProps(),children:A});else{let e=u.Children.only(A);_=(0,u.cloneElement)(e,W.getTriggerProps(e.props,(0,c.e)(e)))}let H=!!j,G=W.getTooltipProps({},t),Z=H?(0,o.C)(G,["role","id"]):G,K=(0,s.e)(G,["role","id"]);return R?(0,r.jsxs)(r.Fragment,{children:[_,(0,r.jsx)(l.M,{...U,children:W.isOpen&&(0,r.jsx)(k.h,{...L,children:(0,r.jsx)(E.m.div,{...W.getTooltipPositionerProps(),__css:{zIndex:T.zIndex,pointerEvents:"none"},children:(0,r.jsxs)(O,{variants:d,initial:"exit",animate:"enter",exit:"exit",...$,...Z,__css:T,children:[R,H&&(0,r.jsx)(E.m.span,{srOnly:!0,...K,children:j}),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:A})});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),s=n(43906),a=n(35364),l=n(49110);let u=(0,s.G)(function(e,t){let n=(0,a.m)("Heading",e),{className:s,...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),s=n(90010),a=n(43906),l=n(35364),u=n(49110);let c=(0,a.G)(function(e,t){let n=(0,l.m)("Text",e),{className:a,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,s.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),s=n(43906),a=n(49110);let l=(0,s.G)(function(e,t){let{spacing:n="0.5rem",spacingX:s,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)(a.m.div,{ref:t,className:(0,i.cx)("chakra-wrap",p),...g,children:(0,r.jsx)(a.m.ul,{className:"chakra-wrap__list",__css:{display:"flex",flexWrap:"wrap",justifyContent:d,alignItems:h,flexDirection:f,listStyleType:"none",gap:n,columnGap:s,rowGap:l,padding:"0"},children:v})})});l.displayName="Wrap";let u=(0,s.G)(function(e,t){let{className:n,...o}=e;return(0,r.jsx)(a.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,""),s=(...e)=>`calc(${o("+",...e)})`,a=(...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(s(e,...t)),subtract:(...t)=>d(a(e,...t)),multiply:(...t)=>d(l(e,...t)),divide:(...t)=>d(u(e,...t)),negate:()=>d(c(e)),toString:()=>e.toString()}),{add:s,subtract:a,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),s=n(57386),a=n(60571);let l=e=>t=>{if(!t.__breakpoints)return e;let{isResponsive:n,toArrayValue:o,media:s}=t.__breakpoints,a={};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)){a[l]=u;continue}let c=u.slice(0,s.length).length;for(let e=0;e<c;e+=1){let t=s?.[e];if(!t){a[l]=u[e];continue}a[t]=a[t]||{},null!=u[e]&&(a[t][l]=u[e])}}return a},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:s}=e,a=(e,d=!1)=>{let f=(0,r.P)(e,s),h=l(f)(s),p={};for(let e in h){let l=h[e],m=(0,r.P)(l,s);e in n&&(e=n[e]),u(e,m)&&(m=c(s,m));let g=t[e];if(!0===g&&(g={property:e}),(0,i.Kn)(m)){p[e]=p[e]??{},p[e]=o({},p[e],a(m,!0));continue}let v=g?.transform?.(m,s,f)??m;v=g?.processResult?a(v,!0):v;let y=(0,r.P)(g?.property,s);if(!d&&g?.static&&(p=o({},p,(0,r.P)(g.static,s))),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 a})({theme:t,pseudos:s.v,configs:a.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}`,s=(e,t)=>`${e}:focus-within ${t}`,a=(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(a),_peerActive:f(a),_groupDisabled:d(l),_peerDisabled:f(l),_groupInvalid:d(u),_peerInvalid:f(u),_groupChecked:d(c),_peerChecked:f(c),_groupFocusWithin:d(s),_peerFocusWithin:f(s),_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 G},cC:function(){return Z},Ul:function(){return H}});var r=n(58450),i=n(57386),o=n(93031);let s=e=>/!(important)?$/.test(e),a=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e,l=(e,t)=>n=>{let r=String(t),i=s(r),l=a(r),u=e?`${e}.${l}`:l,c=(0,o.Kn)(n.__cssMap)&&u in n.__cssMap?n.__cssMap[u].varRef:t;return c=a(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),s=n?.(o,i)??o;return r&&(s=r(s,i)),s}}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"]),w=e=>e.trim(),x=e=>"string"==typeof e&&e.includes("(")&&e.includes(")"),S=e=>{let t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},k=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}=S(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(!(x(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`,[s,...a]=i.split(",").map(w).filter(Boolean);if(a?.length===0)return e;let l=s in v?v[s]:s;a.unshift(l);let u=a.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=x(i)?i:i&&i.split(" "),s=`colors.${r}`,a=s in t.__cssMap?t.__cssMap[s].varRef:r;return o?[a,...Array.isArray(o)?o:[o]].join(" "):a});return`${o}(${u.join(", ")})`})(e,t??{}),blur:k("blur"),opacity:k("opacity"),brightness:k("brightness"),contrast:k("contrast"),dropShadow:k("drop-shadow"),grayscale:k("grayscale"),hueRotate:e=>k("hue-rotate")(E.degree(e)),invert:k("invert"),saturate:k("saturate"),sepia:k("sepia"),bgImage:e=>null==e?e:x(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")},I={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(I,{flexDir:I.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 A={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")},M={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:E.outline},outlineOffset:!0,outlineColor:_.colors("outlineColor")},j={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 s=t.get(n);if(s.has(r))return s.get(r);let a=e(n,r,i,o);return s.set(r,a),a}})(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 U={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"])},V={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"}},q={textDecorationColor:_.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:_.shadows("textShadow")},W={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,I,P,A,R,M,j,{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,$,U,V,q,W,{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")}),G=Object.keys(Object.assign({},$,P,I,j,F)),Z=[...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 iX}});let i=r("accordion").parts("root","container","button","panel","icon"),o=r("alert").parts("title","description","container","icon","spinner"),s=r("avatar").parts("label","badge","container","excessLabel","group"),a=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"),w=r("radio").parts("container","control","label"),x=r("select").parts("field","icon"),S=r("slider").parts("container","track","thumb","filledTrack","mark"),k=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 I=n(71034);let{definePartsStyle:P,defineMultiStyleConfig:A}=(0,I.D)(i.keys),R=(0,I.k0)({borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}}),M=A({baseStyle:P({container:R,button:(0,I.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,I.k0)({pt:"2",px:"4",pb:"5"}),icon:(0,I.k0)({fontSize:"1.25em"})})});var j=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=W.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=U.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=V.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=q.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[...G(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"),U=RegExp(`^#${B("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),V=RegExp(`^rgba?\\(\\s*(\\d+)\\s*${B(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),q=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,W=/^[a-z]+$/i,H=e=>Math.round(255*e),G=(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)),s=o*(1-Math.abs(i%2-1)),a=0,l=0,u=0;i>=0&&i<1?(a=o,l=s):i>=1&&i<2?(a=s,l=o):i>=2&&i<3?(l=o,u=s):i>=3&&i<4?(l=s,u=o):i>=4&&i<5?(a=s,u=o):i>=5&&i<6&&(a=o,u=s);let c=r-o/2;return[a+c,l+c,u+c].map(H)},Z=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},J=e=>t=>128>Y(K(t,e))?"dark":"light",X=e=>t=>"dark"===J(e)(t),Q=(e,t)=>n=>(function(e,t){var n;let[r,i,o,s]=L(e);return n=s-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%,
|